NetworkManager.Client.
get_vpc_attachment
(**kwargs)¶Returns information about a VPC attachment.
See also: AWS API Documentation
Request Syntax
response = client.get_vpc_attachment(
AttachmentId='string'
)
[REQUIRED]
The ID of the attachment.
{
'VpcAttachment': {
'Attachment': {
'CoreNetworkId': 'string',
'CoreNetworkArn': 'string',
'AttachmentId': 'string',
'OwnerAccountId': 'string',
'AttachmentType': 'CONNECT'|'SITE_TO_SITE_VPN'|'VPC'|'TRANSIT_GATEWAY_ROUTE_TABLE',
'State': 'REJECTED'|'PENDING_ATTACHMENT_ACCEPTANCE'|'CREATING'|'FAILED'|'AVAILABLE'|'UPDATING'|'PENDING_NETWORK_UPDATE'|'PENDING_TAG_ACCEPTANCE'|'DELETING',
'EdgeLocation': 'string',
'ResourceArn': 'string',
'AttachmentPolicyRuleNumber': 123,
'SegmentName': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'ProposedSegmentChange': {
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
],
'AttachmentPolicyRuleNumber': 123,
'SegmentName': 'string'
},
'CreatedAt': datetime(2015, 1, 1),
'UpdatedAt': datetime(2015, 1, 1)
},
'SubnetArns': [
'string',
],
'Options': {
'Ipv6Support': True|False,
'ApplianceModeSupport': True|False
}
}
}
Response Structure
Returns details about a VPC attachment.
Provides details about the VPC attachment.
The ID of a core network.
The ARN of a core network.
The ID of the attachment.
The ID of the attachment account owner.
The type of attachment.
The state of the attachment.
The Region where the edge is located.
The attachment resource ARN.
The policy rule number associated with the attachment.
The name of the segment attachment.
The tags associated with the attachment.
Describes a tag.
The tag key.
Constraints: Maximum length of 128 characters.
The tag value.
Constraints: Maximum length of 256 characters.
The attachment to move from one segment to another.
The list of key-value tags that changed for the segment.
Describes a tag.
The tag key.
Constraints: Maximum length of 128 characters.
The tag value.
Constraints: Maximum length of 256 characters.
The rule number in the policy document that applies to this change.
The name of the segment to change.
The timestamp when the attachment was created.
The timestamp when the attachment was last updated.
The subnet ARNs.
Provides details about the VPC attachment.
Indicates whether IPv6 is supported.
Indicates whether appliance mode is supported. If enabled, traffic flow between a source and destination use the same Availability Zone for the VPC attachment for the lifetime of that flow. The default value is false
.
Exceptions
NetworkManager.Client.exceptions.ValidationException
NetworkManager.Client.exceptions.AccessDeniedException
NetworkManager.Client.exceptions.ResourceNotFoundException
NetworkManager.Client.exceptions.ThrottlingException
NetworkManager.Client.exceptions.InternalServerException