Skip to content

Commit 0da24f7

Browse files
Update API model
1 parent c14a561 commit 0da24f7

7 files changed

Lines changed: 2314 additions & 44 deletions

File tree

tools/code-generation/smithy/api-descriptions/direct-connect.json

Lines changed: 271 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,55 @@
468468
"com.amazonaws.directconnect#AmazonAddress": {
469469
"type": "string"
470470
},
471+
"com.amazonaws.directconnect#AsPathList": {
472+
"type": "list",
473+
"member": {
474+
"target": "com.amazonaws.directconnect#LongAsn"
475+
}
476+
},
477+
"com.amazonaws.directconnect#AsPathSegment": {
478+
"type": "structure",
479+
"members": {
480+
"pathType": {
481+
"target": "com.amazonaws.directconnect#AsPathType",
482+
"traits": {
483+
"smithy.api#documentation": "<p>The type of the AS path segment.</p>\n <p>The valid values are <code>seq</code> (an ordered <code>AS_SEQUENCE</code>) and <code>set</code> (an unordered <code>AS_SET</code>).</p>"
484+
}
485+
},
486+
"path": {
487+
"target": "com.amazonaws.directconnect#AsPathList",
488+
"traits": {
489+
"smithy.api#documentation": "<p>The autonomous system (AS) numbers in the segment.</p>"
490+
}
491+
}
492+
},
493+
"traits": {
494+
"smithy.api#documentation": "<p>A segment of an autonomous system (AS) path.</p>"
495+
}
496+
},
497+
"com.amazonaws.directconnect#AsPathSegmentList": {
498+
"type": "list",
499+
"member": {
500+
"target": "com.amazonaws.directconnect#AsPathSegment"
501+
}
502+
},
503+
"com.amazonaws.directconnect#AsPathType": {
504+
"type": "enum",
505+
"members": {
506+
"Seq": {
507+
"target": "smithy.api#Unit",
508+
"traits": {
509+
"smithy.api#enumValue": "seq"
510+
}
511+
},
512+
"Set": {
513+
"target": "smithy.api#Unit",
514+
"traits": {
515+
"smithy.api#enumValue": "set"
516+
}
517+
}
518+
}
519+
},
471520
"com.amazonaws.directconnect#AssociateConnectionWithLag": {
472521
"type": "operation",
473522
"input": {
@@ -924,6 +973,15 @@
924973
"com.amazonaws.directconnect#Ckn": {
925974
"type": "string"
926975
},
976+
"com.amazonaws.directconnect#CommunityEntry": {
977+
"type": "string"
978+
},
979+
"com.amazonaws.directconnect#CommunityList": {
980+
"type": "list",
981+
"member": {
982+
"target": "com.amazonaws.directconnect#CommunityEntry"
983+
}
984+
},
927985
"com.amazonaws.directconnect#ConfirmConnection": {
928986
"type": "operation",
929987
"input": {
@@ -4552,6 +4610,84 @@
45524610
"smithy.api#httpError": 400
45534611
}
45544612
},
4613+
"com.amazonaws.directconnect#ListVirtualInterfaceRoutes": {
4614+
"type": "operation",
4615+
"input": {
4616+
"target": "com.amazonaws.directconnect#ListVirtualInterfaceRoutesRequest"
4617+
},
4618+
"output": {
4619+
"target": "com.amazonaws.directconnect#ListVirtualInterfaceRoutesResponse"
4620+
},
4621+
"errors": [
4622+
{
4623+
"target": "com.amazonaws.directconnect#DirectConnectClientException"
4624+
},
4625+
{
4626+
"target": "com.amazonaws.directconnect#DirectConnectServerException"
4627+
}
4628+
],
4629+
"traits": {
4630+
"smithy.api#documentation": "<p>Lists the routes for the specified virtual interface.</p>\n <p>Use the <code>routeDirection</code> filter to control which routes are returned:</p>\n <ul>\n <li>\n <p>\n <code>accepted</code>: routes received from the customer network over the virtual interface.</p>\n </li>\n <li>\n <p>\n <code>advertised</code>: routes advertised to the customer network over the virtual interface.</p>\n </li>\n </ul>"
4631+
}
4632+
},
4633+
"com.amazonaws.directconnect#ListVirtualInterfaceRoutesRequest": {
4634+
"type": "structure",
4635+
"members": {
4636+
"virtualInterfaceId": {
4637+
"target": "com.amazonaws.directconnect#VirtualInterfaceId",
4638+
"traits": {
4639+
"smithy.api#documentation": "<p>The ID of the virtual interface.</p>"
4640+
}
4641+
},
4642+
"filters": {
4643+
"target": "com.amazonaws.directconnect#RouteFilters",
4644+
"traits": {
4645+
"smithy.api#documentation": "<p>The filters to apply to the routes returned.</p>"
4646+
}
4647+
},
4648+
"maxResults": {
4649+
"target": "com.amazonaws.directconnect#MaxResultSetSize",
4650+
"traits": {
4651+
"smithy.api#documentation": "<p>The maximum number of results to return with a single call.\n\tTo retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>\n <p>If <code>MaxResults</code> is given a value larger than 100, only 100 results are\n returned.</p>"
4652+
}
4653+
},
4654+
"nextToken": {
4655+
"target": "com.amazonaws.directconnect#PaginationToken",
4656+
"traits": {
4657+
"smithy.api#documentation": "<p>The token for the next page of results.</p>"
4658+
}
4659+
}
4660+
},
4661+
"traits": {
4662+
"smithy.api#input": {}
4663+
}
4664+
},
4665+
"com.amazonaws.directconnect#ListVirtualInterfaceRoutesResponse": {
4666+
"type": "structure",
4667+
"members": {
4668+
"virtualInterfaceId": {
4669+
"target": "com.amazonaws.directconnect#VirtualInterfaceId",
4670+
"traits": {
4671+
"smithy.api#documentation": "<p>The ID of the virtual interface.</p>"
4672+
}
4673+
},
4674+
"routes": {
4675+
"target": "com.amazonaws.directconnect#RouteList",
4676+
"traits": {
4677+
"smithy.api#documentation": "<p>The routes for the virtual interface.</p>"
4678+
}
4679+
},
4680+
"nextToken": {
4681+
"target": "com.amazonaws.directconnect#PaginationToken",
4682+
"traits": {
4683+
"smithy.api#documentation": "<p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>"
4684+
}
4685+
}
4686+
},
4687+
"traits": {
4688+
"smithy.api#output": {}
4689+
}
4690+
},
45554691
"com.amazonaws.directconnect#ListVirtualInterfaceTestHistory": {
45564692
"type": "operation",
45574693
"input": {
@@ -5515,6 +5651,9 @@
55155651
{
55165652
"target": "com.amazonaws.directconnect#DisassociateMacSecKey"
55175653
},
5654+
{
5655+
"target": "com.amazonaws.directconnect#ListVirtualInterfaceRoutes"
5656+
},
55185657
{
55195658
"target": "com.amazonaws.directconnect#ListVirtualInterfaceTestHistory"
55205659
},
@@ -6798,6 +6937,91 @@
67986937
"target": "com.amazonaws.directconnect#ResourceTag"
67996938
}
68006939
},
6940+
"com.amazonaws.directconnect#Route": {
6941+
"type": "structure",
6942+
"members": {
6943+
"cidr": {
6944+
"target": "com.amazonaws.directconnect#RouteCidr",
6945+
"traits": {
6946+
"smithy.api#documentation": "<p>The CIDR (prefix) of the route.</p>"
6947+
}
6948+
},
6949+
"routeDirection": {
6950+
"target": "com.amazonaws.directconnect#RouteDirection",
6951+
"traits": {
6952+
"smithy.api#documentation": "<p>The direction of the route.</p>\n <p>The valid values are <code>accepted</code> (received from the customer network) and <code>advertised</code> (advertised to the customer network).</p>"
6953+
}
6954+
},
6955+
"addressFamily": {
6956+
"target": "com.amazonaws.directconnect#AddressFamily",
6957+
"traits": {
6958+
"smithy.api#documentation": "<p>The address family of the route.</p>\n <p>The valid values are <code>ipv4</code> and <code>ipv6</code>.</p>"
6959+
}
6960+
},
6961+
"asPath": {
6962+
"target": "com.amazonaws.directconnect#AsPathSegmentList",
6963+
"traits": {
6964+
"smithy.api#documentation": "<p>The autonomous system (AS) path of the route.</p>"
6965+
}
6966+
},
6967+
"communities": {
6968+
"target": "com.amazonaws.directconnect#CommunityList",
6969+
"traits": {
6970+
"smithy.api#documentation": "<p>The BGP communities associated with the route.</p>"
6971+
}
6972+
},
6973+
"awsLogicalDeviceId": {
6974+
"target": "com.amazonaws.directconnect#AwsLogicalDeviceId",
6975+
"traits": {
6976+
"smithy.api#documentation": "<p>The Direct Connect endpoint that terminates the logical connection. This device might be\n different than the device that terminates the physical connection.</p>"
6977+
}
6978+
},
6979+
"routeInstalledAt": {
6980+
"target": "com.amazonaws.directconnect#RouteInstalledAt",
6981+
"traits": {
6982+
"smithy.api#documentation": "<p>The time when the route was installed. The value is displayed in UTC format.</p>"
6983+
}
6984+
}
6985+
},
6986+
"traits": {
6987+
"smithy.api#documentation": "<p>Information about a route for a virtual interface.</p>"
6988+
}
6989+
},
6990+
"com.amazonaws.directconnect#RouteCidr": {
6991+
"type": "string"
6992+
},
6993+
"com.amazonaws.directconnect#RouteDirection": {
6994+
"type": "enum",
6995+
"members": {
6996+
"Accepted": {
6997+
"target": "smithy.api#Unit",
6998+
"traits": {
6999+
"smithy.api#enumValue": "accepted"
7000+
}
7001+
},
7002+
"Advertised": {
7003+
"target": "smithy.api#Unit",
7004+
"traits": {
7005+
"smithy.api#enumValue": "advertised"
7006+
}
7007+
}
7008+
}
7009+
},
7010+
"com.amazonaws.directconnect#RouteFilterCidrString": {
7011+
"type": "string"
7012+
},
7013+
"com.amazonaws.directconnect#RouteFilterCidrStringList": {
7014+
"type": "list",
7015+
"member": {
7016+
"target": "com.amazonaws.directconnect#RouteFilterCidrString"
7017+
},
7018+
"traits": {
7019+
"smithy.api#length": {
7020+
"min": 1,
7021+
"max": 10
7022+
}
7023+
}
7024+
},
68017025
"com.amazonaws.directconnect#RouteFilterPrefix": {
68027026
"type": "structure",
68037027
"members": {
@@ -6818,6 +7042,53 @@
68187042
"target": "com.amazonaws.directconnect#RouteFilterPrefix"
68197043
}
68207044
},
7045+
"com.amazonaws.directconnect#RouteFilters": {
7046+
"type": "structure",
7047+
"members": {
7048+
"routeDirection": {
7049+
"target": "com.amazonaws.directconnect#RouteDirection",
7050+
"traits": {
7051+
"smithy.api#documentation": "<p>The direction of the routes to return.</p>\n <p>The valid values are <code>accepted</code> (routes received from the customer network) and <code>advertised</code> (routes advertised to the customer network).</p>"
7052+
}
7053+
},
7054+
"addressFamily": {
7055+
"target": "com.amazonaws.directconnect#AddressFamily",
7056+
"traits": {
7057+
"smithy.api#documentation": "<p>The address family of the routes to return.</p>\n <p>The valid values are <code>ipv4</code> and <code>ipv6</code>.</p>"
7058+
}
7059+
},
7060+
"cidrs": {
7061+
"target": "com.amazonaws.directconnect#RouteFilterCidrStringList",
7062+
"traits": {
7063+
"smithy.api#documentation": "<p>The CIDRs (prefixes) used to filter the routes. You can specify up to 10 CIDRs.</p>"
7064+
}
7065+
},
7066+
"asPath": {
7067+
"target": "com.amazonaws.directconnect#AsPathList",
7068+
"traits": {
7069+
"smithy.api#documentation": "<p>The autonomous system (AS) numbers used to filter the routes by their AS path.</p>"
7070+
}
7071+
},
7072+
"communities": {
7073+
"target": "com.amazonaws.directconnect#CommunityList",
7074+
"traits": {
7075+
"smithy.api#documentation": "<p>The BGP communities used to filter the routes.</p>"
7076+
}
7077+
}
7078+
},
7079+
"traits": {
7080+
"smithy.api#documentation": "<p>The filters used to limit the routes returned by <a>ListVirtualInterfaceRoutes</a>.</p>"
7081+
}
7082+
},
7083+
"com.amazonaws.directconnect#RouteInstalledAt": {
7084+
"type": "timestamp"
7085+
},
7086+
"com.amazonaws.directconnect#RouteList": {
7087+
"type": "list",
7088+
"member": {
7089+
"target": "com.amazonaws.directconnect#Route"
7090+
}
7091+
},
68217092
"com.amazonaws.directconnect#RouterConfig": {
68227093
"type": "string"
68237094
},

0 commit comments

Comments
 (0)