Skip to content

Commit

Permalink
feat(client-direct-connect): Update DescribeDirectConnectGatewayAssoc…
Browse files Browse the repository at this point in the history
…iations API to return associated core network information if a Direct Connect gateway is attached to a Cloud WAN core network.
  • Loading branch information
awstools committed Nov 25, 2024
1 parent 7497406 commit 26dccd9
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ export interface AcceptDirectConnectGatewayAssociationProposalCommandOutput
* // cidr: "STRING_VALUE",
* // },
* // ],
* // associatedCoreNetwork: { // AssociatedCoreNetwork
* // id: "STRING_VALUE",
* // ownerAccount: "STRING_VALUE",
* // attachmentId: "STRING_VALUE",
* // },
* // virtualGatewayId: "STRING_VALUE",
* // virtualGatewayRegion: "STRING_VALUE",
* // virtualGatewayOwnerAccount: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ export interface CreateDirectConnectGatewayAssociationCommandOutput
* // cidr: "STRING_VALUE",
* // },
* // ],
* // associatedCoreNetwork: { // AssociatedCoreNetwork
* // id: "STRING_VALUE",
* // ownerAccount: "STRING_VALUE",
* // attachmentId: "STRING_VALUE",
* // },
* // virtualGatewayId: "STRING_VALUE",
* // virtualGatewayRegion: "STRING_VALUE",
* // virtualGatewayOwnerAccount: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ export interface DeleteDirectConnectGatewayAssociationCommandOutput
* // cidr: "STRING_VALUE",
* // },
* // ],
* // associatedCoreNetwork: { // AssociatedCoreNetwork
* // id: "STRING_VALUE",
* // ownerAccount: "STRING_VALUE",
* // attachmentId: "STRING_VALUE",
* // },
* // virtualGatewayId: "STRING_VALUE",
* // virtualGatewayRegion: "STRING_VALUE",
* // virtualGatewayOwnerAccount: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ export interface DescribeDirectConnectGatewayAssociationsCommandOutput
* // cidr: "STRING_VALUE",
* // },
* // ],
* // associatedCoreNetwork: { // AssociatedCoreNetwork
* // id: "STRING_VALUE",
* // ownerAccount: "STRING_VALUE",
* // attachmentId: "STRING_VALUE",
* // },
* // virtualGatewayId: "STRING_VALUE",
* // virtualGatewayRegion: "STRING_VALUE",
* // virtualGatewayOwnerAccount: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ export interface UpdateDirectConnectGatewayAssociationCommandOutput
* // cidr: "STRING_VALUE",
* // },
* // ],
* // associatedCoreNetwork: { // AssociatedCoreNetwork
* // id: "STRING_VALUE",
* // ownerAccount: "STRING_VALUE",
* // attachmentId: "STRING_VALUE",
* // },
* // virtualGatewayId: "STRING_VALUE",
* // virtualGatewayRegion: "STRING_VALUE",
* // virtualGatewayOwnerAccount: "STRING_VALUE",
Expand Down
30 changes: 30 additions & 0 deletions clients/client-direct-connect/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,30 @@ export interface AcceptDirectConnectGatewayAssociationProposalRequest {
overrideAllowedPrefixesToDirectConnectGateway?: RouteFilterPrefix[] | undefined;
}

/**
* <p>The Amazon Web Services Cloud WAN core network that the Direct Connect attachment is associated with.</p>
* @public
*/
export interface AssociatedCoreNetwork {
/**
* <p>The ID of the Cloud WAN core network.</p>
* @public
*/
id?: string | undefined;

/**
* <p>The account owner of the Cloud WAN core network.</p>
* @public
*/
ownerAccount?: string | undefined;

/**
* <p>the ID of the Direct Connect attachment</p>
* @public
*/
attachmentId?: string | undefined;
}

/**
* @public
* @enum
Expand Down Expand Up @@ -178,6 +202,12 @@ export interface DirectConnectGatewayAssociation {
*/
allowedPrefixesToDirectConnectGateway?: RouteFilterPrefix[] | undefined;

/**
* <p>The ID of the Cloud WAN core network associated with the Direct Connect attachment.</p>
* @public
*/
associatedCoreNetwork?: AssociatedCoreNetwork | undefined;

/**
* <p>The ID of the virtual private gateway. Applies only to private virtual interfaces.</p>
* @public
Expand Down
2 changes: 2 additions & 0 deletions clients/client-direct-connect/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2635,6 +2635,8 @@ const de_TooManyTagsExceptionRes = async (

// de_AllocateTransitVirtualInterfaceResult omitted.

// de_AssociatedCoreNetwork omitted.

// de_AssociatedGateway omitted.

// de_AssociateMacSecKeyResponse omitted.
Expand Down
52 changes: 52 additions & 0 deletions codegen/sdk-codegen/aws-models/direct-connect.json
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,32 @@
"smithy.api#input": {}
}
},
"com.amazonaws.directconnect#AssociatedCoreNetwork": {
"type": "structure",
"members": {
"id": {
"target": "com.amazonaws.directconnect#CoreNetworkIdentifier",
"traits": {
"smithy.api#documentation": "<p>The ID of the Cloud WAN core network.</p>"
}
},
"ownerAccount": {
"target": "com.amazonaws.directconnect#OwnerAccount",
"traits": {
"smithy.api#documentation": "<p>The account owner of the Cloud WAN core network.</p>"
}
},
"attachmentId": {
"target": "com.amazonaws.directconnect#CoreNetworkAttachmentId",
"traits": {
"smithy.api#documentation": "<p>the ID of the Direct Connect attachment</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The Amazon Web Services Cloud WAN core network that the Direct Connect attachment is associated with.</p>"
}
},
"com.amazonaws.directconnect#AssociatedGateway": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -1366,6 +1392,26 @@
}
}
},
"com.amazonaws.directconnect#CoreNetworkAttachmentId": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 12,
"max": 28
},
"smithy.api#pattern": "^attachment-([0-9a-f]{1,17})$"
}
},
"com.amazonaws.directconnect#CoreNetworkIdentifier": {
"type": "string",
"traits": {
"smithy.api#length": {
"min": 14,
"max": 30
},
"smithy.api#pattern": "^core-network-([0-9a-f]{1,17})$"
}
},
"com.amazonaws.directconnect#Count": {
"type": "integer",
"traits": {
Expand Down Expand Up @@ -3456,6 +3502,12 @@
"smithy.api#documentation": "<p>The Amazon VPC prefixes to advertise to the Direct Connect gateway.</p>"
}
},
"associatedCoreNetwork": {
"target": "com.amazonaws.directconnect#AssociatedCoreNetwork",
"traits": {
"smithy.api#documentation": "<p>The ID of the Cloud WAN core network associated with the Direct Connect attachment.</p>"
}
},
"virtualGatewayId": {
"target": "com.amazonaws.directconnect#VirtualGatewayId",
"traits": {
Expand Down

0 comments on commit 26dccd9

Please sign in to comment.