2020/10/29 - Amazon Elastic Compute Cloud - 9 updated api methods
Changes Update ec2 client to latest version
{'TransitGatewayVpcAttachment': {'Options': {'ApplianceModeSupport': 'enable | ' 'disable'}}}
Accepts a request to attach a VPC to a transit gateway.
The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.
See also: AWS API Documentation
Request Syntax
client.accept_transit_gateway_vpc_attachment( TransitGatewayAttachmentId='string', DryRun=True|False )
string
[REQUIRED]
The ID of the attachment.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
dict
Response Syntax
{ 'TransitGatewayVpcAttachment': { 'TransitGatewayAttachmentId': 'string', 'TransitGatewayId': 'string', 'VpcId': 'string', 'VpcOwnerId': 'string', 'State': 'initiating'|'initiatingRequest'|'pendingAcceptance'|'rollingBack'|'pending'|'available'|'modifying'|'deleting'|'deleted'|'failed'|'rejected'|'rejecting'|'failing', 'SubnetIds': [ 'string', ], 'CreationTime': datetime(2015, 1, 1), 'Options': { 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } }
Response Structure
(dict) --
TransitGatewayVpcAttachment (dict) --
The VPC attachment.
TransitGatewayAttachmentId (string) --
The ID of the attachment.
TransitGatewayId (string) --
The ID of the transit gateway.
VpcId (string) --
The ID of the VPC.
VpcOwnerId (string) --
The ID of the AWS account that owns the VPC.
State (string) --
The state of the VPC attachment. Note that the initiating state has been deprecated.
SubnetIds (list) --
The IDs of the subnets.
(string) --
CreationTime (datetime) --
The creation time.
Options (dict) --
The VPC attachment options.
DnsSupport (string) --
Indicates whether DNS support is enabled.
Ipv6Support (string) --
Indicates whether IPv6 support is disabled.
ApplianceModeSupport (string) --
Indicates whether appliance mode support is enabled.
Tags (list) --
The tags for the VPC attachment.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
{'AuthenticationOptions': {'FederatedAuthentication': {'SelfServiceSAMLProviderArn': 'string'}}, 'SelfServicePortal': 'enabled | disabled'}
Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.
See also: AWS API Documentation
Request Syntax
client.create_client_vpn_endpoint( ClientCidrBlock='string', ServerCertificateArn='string', AuthenticationOptions=[ { 'Type': 'certificate-authentication'|'directory-service-authentication'|'federated-authentication', 'ActiveDirectory': { 'DirectoryId': 'string' }, 'MutualAuthentication': { 'ClientRootCertificateChainArn': 'string' }, 'FederatedAuthentication': { 'SAMLProviderArn': 'string', 'SelfServiceSAMLProviderArn': 'string' } }, ], ConnectionLogOptions={ 'Enabled': True|False, 'CloudwatchLogGroup': 'string', 'CloudwatchLogStream': 'string' }, DnsServers=[ 'string', ], TransportProtocol='tcp'|'udp', VpnPort=123, Description='string', SplitTunnel=True|False, DryRun=True|False, ClientToken='string', TagSpecifications=[ { 'ResourceType': 'client-vpn-endpoint'|'customer-gateway'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'internet-gateway'|'key-pair'|'launch-template'|'local-gateway-route-table-vpc-association'|'natgateway'|'network-acl'|'network-interface'|'placement-group'|'reserved-instances'|'route-table'|'security-group'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-multicast-domain'|'transit-gateway-route-table'|'volume'|'vpc'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }, ], SecurityGroupIds=[ 'string', ], VpcId='string', SelfServicePortal='enabled'|'disabled' )
string
[REQUIRED]
The IPv4 address range, in CIDR notation, from which to assign client IP addresses. The address range cannot overlap with the local CIDR of the VPC in which the associated subnet is located, or the routes that you add manually. The address range cannot be changed after the Client VPN endpoint has been created. The CIDR block should be /22 or greater.
string
[REQUIRED]
The ARN of the server certificate. For more information, see the AWS Certificate Manager User Guide.
list
[REQUIRED]
Information about the authentication method to be used to authenticate clients.
(dict) --
Describes the authentication method to be used by a Client VPN endpoint. For more information, see Authentication in the AWS Client VPN Administrator Guide.
Type (string) --
The type of client authentication to be used.
ActiveDirectory (dict) --
Information about the Active Directory to be used, if applicable. You must provide this information if Type is directory-service-authentication.
DirectoryId (string) --
The ID of the Active Directory to be used for authentication.
MutualAuthentication (dict) --
Information about the authentication certificates to be used, if applicable. You must provide this information if Type is certificate-authentication.
ClientRootCertificateChainArn (string) --
The ARN of the client certificate. The certificate must be signed by a certificate authority (CA) and it must be provisioned in AWS Certificate Manager (ACM).
FederatedAuthentication (dict) --
Information about the IAM SAML identity provider to be used, if applicable. You must provide this information if Type is federated-authentication.
SAMLProviderArn (string) --
The Amazon Resource Name (ARN) of the IAM SAML identity provider.
SelfServiceSAMLProviderArn (string) --
The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal.
dict
[REQUIRED]
Information about the client connection logging options.
If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
Client connection requests
Client connection results (successful and unsuccessful)
Reasons for unsuccessful client connection requests
Client connection termination time
Enabled (boolean) --
Indicates whether connection logging is enabled.
CloudwatchLogGroup (string) --
The name of the CloudWatch Logs log group. Required if connection logging is enabled.
CloudwatchLogStream (string) --
The name of the CloudWatch Logs log stream to which the connection data is published.
list
Information about the DNS servers to be used for DNS resolution. A Client VPN endpoint can have up to two DNS servers. If no DNS server is specified, the DNS address configured on the device is used for the DNS server.
(string) --
string
The transport protocol to be used by the VPN session.
Default value: udp
integer
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
Valid Values: 443 | 1194
Default Value: 443
string
A brief description of the Client VPN endpoint.
boolean
Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.
By default, split-tunnel on a VPN endpoint is disabled.
For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint in the AWS Client VPN Administrator Guide.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
string
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency.
This field is autopopulated if not provided.
list
The tags to apply to the Client VPN endpoint during creation.
(dict) --
The tags to apply to a resource when the resource is being created.
ResourceType (string) --
The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume | vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.
To tag a resource after it has been created, see CreateTags.
Tags (list) --
The tags to apply to the resource.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
list
The IDs of one or more security groups to apply to the target network. You must also specify the ID of the VPC that contains the security groups.
(string) --
string
The ID of the VPC to associate with the Client VPN endpoint. If no security group IDs are specified in the request, the default security group for the VPC is applied.
string
Specify whether to enable the self-service portal for the Client VPN endpoint.
Default Value: enabled
dict
Response Syntax
{ 'ClientVpnEndpointId': 'string', 'Status': { 'Code': 'pending-associate'|'available'|'deleting'|'deleted', 'Message': 'string' }, 'DnsName': 'string' }
Response Structure
(dict) --
ClientVpnEndpointId (string) --
The ID of the Client VPN endpoint.
Status (dict) --
The current state of the Client VPN endpoint.
Code (string) --
The state of the Client VPN endpoint. Possible states include:
pending-associate - The Client VPN endpoint has been created but no target networks have been associated. The Client VPN endpoint cannot accept connections.
available - The Client VPN endpoint has been created and a target network has been associated. The Client VPN endpoint can accept connections.
deleting - The Client VPN endpoint is being deleted. The Client VPN endpoint cannot accept connections.
deleted - The Client VPN endpoint has been deleted. The Client VPN endpoint cannot accept connections.
Message (string) --
A message about the status of the Client VPN endpoint.
DnsName (string) --
The DNS name to be used by clients when establishing their VPN session.
{'Options': {'ApplianceModeSupport': 'enable | disable'}}Response
{'TransitGatewayVpcAttachment': {'Options': {'ApplianceModeSupport': 'enable | ' 'disable'}}}
Attaches the specified VPC to the specified transit gateway.
If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.
To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.
See also: AWS API Documentation
Request Syntax
client.create_transit_gateway_vpc_attachment( TransitGatewayId='string', VpcId='string', SubnetIds=[ 'string', ], Options={ 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, TagSpecifications=[ { 'ResourceType': 'client-vpn-endpoint'|'customer-gateway'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'internet-gateway'|'key-pair'|'launch-template'|'local-gateway-route-table-vpc-association'|'natgateway'|'network-acl'|'network-interface'|'placement-group'|'reserved-instances'|'route-table'|'security-group'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-multicast-domain'|'transit-gateway-route-table'|'volume'|'vpc'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }, ], DryRun=True|False )
string
[REQUIRED]
The ID of the transit gateway.
string
[REQUIRED]
The ID of the VPC.
list
[REQUIRED]
The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
(string) --
dict
The VPC attachment options.
DnsSupport (string) --
Enable or disable DNS support. The default is enable.
Ipv6Support (string) --
Enable or disable IPv6 support. The default is enable.
ApplianceModeSupport (string) --
Enable or disable support for appliance mode. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. The default is disable.
list
The tags to apply to the VPC attachment.
(dict) --
The tags to apply to a resource when the resource is being created.
ResourceType (string) --
The type of resource to tag. Currently, the resource types that support tagging on creation are: capacity-reservation | client-vpn-endpoint | customer-gateway | dedicated-host | dhcp-options | export-image-task | export-instance-task | fleet | fpga-image | host-reservation | import-image-task | import-snapshot-task | instance | internet-gateway | ipv4pool-ec2 | ipv6pool-ec2 | key-pair | launch-template | placement-group | prefix-list | natgateway | network-acl | route-table | security-group | spot-fleet-request | spot-instances-request | snapshot | subnet | traffic-mirror-filter | traffic-mirror-session | traffic-mirror-target | transit-gateway | transit-gateway-attachment | transit-gateway-route-table | volume | vpc | vpc-peering-connection | vpc-endpoint (for interface and gateway endpoints) | vpc-endpoint-service (for AWS PrivateLink) | vpc-flow-log | vpn-connection | vpn-gateway.
To tag a resource after it has been created, see CreateTags.
Tags (list) --
The tags to apply to the resource.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
dict
Response Syntax
{ 'TransitGatewayVpcAttachment': { 'TransitGatewayAttachmentId': 'string', 'TransitGatewayId': 'string', 'VpcId': 'string', 'VpcOwnerId': 'string', 'State': 'initiating'|'initiatingRequest'|'pendingAcceptance'|'rollingBack'|'pending'|'available'|'modifying'|'deleting'|'deleted'|'failed'|'rejected'|'rejecting'|'failing', 'SubnetIds': [ 'string', ], 'CreationTime': datetime(2015, 1, 1), 'Options': { 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } }
Response Structure
(dict) --
TransitGatewayVpcAttachment (dict) --
Information about the VPC attachment.
TransitGatewayAttachmentId (string) --
The ID of the attachment.
TransitGatewayId (string) --
The ID of the transit gateway.
VpcId (string) --
The ID of the VPC.
VpcOwnerId (string) --
The ID of the AWS account that owns the VPC.
State (string) --
The state of the VPC attachment. Note that the initiating state has been deprecated.
SubnetIds (list) --
The IDs of the subnets.
(string) --
CreationTime (datetime) --
The creation time.
Options (dict) --
The VPC attachment options.
DnsSupport (string) --
Indicates whether DNS support is enabled.
Ipv6Support (string) --
Indicates whether IPv6 support is disabled.
ApplianceModeSupport (string) --
Indicates whether appliance mode support is enabled.
Tags (list) --
The tags for the VPC attachment.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
{'TransitGatewayVpcAttachment': {'Options': {'ApplianceModeSupport': 'enable | ' 'disable'}}}
Deletes the specified VPC attachment.
See also: AWS API Documentation
Request Syntax
client.delete_transit_gateway_vpc_attachment( TransitGatewayAttachmentId='string', DryRun=True|False )
string
[REQUIRED]
The ID of the attachment.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
dict
Response Syntax
{ 'TransitGatewayVpcAttachment': { 'TransitGatewayAttachmentId': 'string', 'TransitGatewayId': 'string', 'VpcId': 'string', 'VpcOwnerId': 'string', 'State': 'initiating'|'initiatingRequest'|'pendingAcceptance'|'rollingBack'|'pending'|'available'|'modifying'|'deleting'|'deleted'|'failed'|'rejected'|'rejecting'|'failing', 'SubnetIds': [ 'string', ], 'CreationTime': datetime(2015, 1, 1), 'Options': { 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } }
Response Structure
(dict) --
TransitGatewayVpcAttachment (dict) --
Information about the deleted VPC attachment.
TransitGatewayAttachmentId (string) --
The ID of the attachment.
TransitGatewayId (string) --
The ID of the transit gateway.
VpcId (string) --
The ID of the VPC.
VpcOwnerId (string) --
The ID of the AWS account that owns the VPC.
State (string) --
The state of the VPC attachment. Note that the initiating state has been deprecated.
SubnetIds (list) --
The IDs of the subnets.
(string) --
CreationTime (datetime) --
The creation time.
Options (dict) --
The VPC attachment options.
DnsSupport (string) --
Indicates whether DNS support is enabled.
Ipv6Support (string) --
Indicates whether IPv6 support is disabled.
ApplianceModeSupport (string) --
Indicates whether appliance mode support is enabled.
Tags (list) --
The tags for the VPC attachment.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
{'ClientVpnEndpoints': {'AuthenticationOptions': {'FederatedAuthentication': {'SelfServiceSamlProviderArn': 'string'}}, 'SelfServicePortalUrl': 'string'}}
Describes one or more Client VPN endpoints in the account.
See also: AWS API Documentation
Request Syntax
client.describe_client_vpn_endpoints( ClientVpnEndpointIds=[ 'string', ], MaxResults=123, NextToken='string', Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], DryRun=True|False )
list
The ID of the Client VPN endpoint.
(string) --
integer
The maximum number of results to return for the request in a single page. The remaining results can be seen by sending another request with the nextToken value.
string
The token to retrieve the next page of results.
list
One or more filters. Filter names and values are case-sensitive.
endpoint-id - The ID of the Client VPN endpoint.
transport-protocol - The transport protocol ( tcp | udp).
(dict) --
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a describe operation are documented with the describe operation. For example:
DescribeAvailabilityZones
DescribeImages
DescribeInstances
DescribeKeyPairs
DescribeSecurityGroups
DescribeSnapshots
DescribeSubnets
DescribeTags
DescribeVolumes
DescribeVpcs
Name (string) --
The name of the filter. Filter names are case-sensitive.
Values (list) --
The filter values. Filter values are case-sensitive.
(string) --
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
dict
Response Syntax
{ 'ClientVpnEndpoints': [ { 'ClientVpnEndpointId': 'string', 'Description': 'string', 'Status': { 'Code': 'pending-associate'|'available'|'deleting'|'deleted', 'Message': 'string' }, 'CreationTime': 'string', 'DeletionTime': 'string', 'DnsName': 'string', 'ClientCidrBlock': 'string', 'DnsServers': [ 'string', ], 'SplitTunnel': True|False, 'VpnProtocol': 'openvpn', 'TransportProtocol': 'tcp'|'udp', 'VpnPort': 123, 'AssociatedTargetNetworks': [ { 'NetworkId': 'string', 'NetworkType': 'vpc' }, ], 'ServerCertificateArn': 'string', 'AuthenticationOptions': [ { 'Type': 'certificate-authentication'|'directory-service-authentication'|'federated-authentication', 'ActiveDirectory': { 'DirectoryId': 'string' }, 'MutualAuthentication': { 'ClientRootCertificateChain': 'string' }, 'FederatedAuthentication': { 'SamlProviderArn': 'string', 'SelfServiceSamlProviderArn': 'string' } }, ], 'ConnectionLogOptions': { 'Enabled': True|False, 'CloudwatchLogGroup': 'string', 'CloudwatchLogStream': 'string' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'SecurityGroupIds': [ 'string', ], 'VpcId': 'string', 'SelfServicePortalUrl': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) --
ClientVpnEndpoints (list) --
Information about the Client VPN endpoints.
(dict) --
Describes a Client VPN endpoint.
ClientVpnEndpointId (string) --
The ID of the Client VPN endpoint.
Description (string) --
A brief description of the endpoint.
Status (dict) --
The current state of the Client VPN endpoint.
Code (string) --
The state of the Client VPN endpoint. Possible states include:
pending-associate - The Client VPN endpoint has been created but no target networks have been associated. The Client VPN endpoint cannot accept connections.
available - The Client VPN endpoint has been created and a target network has been associated. The Client VPN endpoint can accept connections.
deleting - The Client VPN endpoint is being deleted. The Client VPN endpoint cannot accept connections.
deleted - The Client VPN endpoint has been deleted. The Client VPN endpoint cannot accept connections.
Message (string) --
A message about the status of the Client VPN endpoint.
CreationTime (string) --
The date and time the Client VPN endpoint was created.
DeletionTime (string) --
The date and time the Client VPN endpoint was deleted, if applicable.
DnsName (string) --
The DNS name to be used by clients when connecting to the Client VPN endpoint.
ClientCidrBlock (string) --
The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
DnsServers (list) --
Information about the DNS servers to be used for DNS resolution.
(string) --
SplitTunnel (boolean) --
Indicates whether split-tunnel is enabled in the AWS Client VPN endpoint.
For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint in the AWS Client VPN Administrator Guide.
VpnProtocol (string) --
The protocol used by the VPN session.
TransportProtocol (string) --
The transport protocol used by the Client VPN endpoint.
VpnPort (integer) --
The port number for the Client VPN endpoint.
AssociatedTargetNetworks (list) --
Information about the associated target networks. A target network is a subnet in a VPC.
(dict) --
Describes a target network that is associated with a Client VPN endpoint. A target network is a subnet in a VPC.
NetworkId (string) --
The ID of the subnet.
NetworkType (string) --
The target network type.
ServerCertificateArn (string) --
The ARN of the server certificate.
AuthenticationOptions (list) --
Information about the authentication method used by the Client VPN endpoint.
(dict) --
Describes the authentication methods used by a Client VPN endpoint. For more information, see Authentication in the AWS Client VPN Administrator Guide.
Type (string) --
The authentication type used.
ActiveDirectory (dict) --
Information about the Active Directory, if applicable.
DirectoryId (string) --
The ID of the Active Directory used for authentication.
MutualAuthentication (dict) --
Information about the authentication certificates, if applicable.
ClientRootCertificateChain (string) --
The ARN of the client certificate.
FederatedAuthentication (dict) --
Information about the IAM SAML identity provider, if applicable.
SamlProviderArn (string) --
The Amazon Resource Name (ARN) of the IAM SAML identity provider.
SelfServiceSamlProviderArn (string) --
The Amazon Resource Name (ARN) of the IAM SAML identity provider for the self-service portal.
ConnectionLogOptions (dict) --
Information about the client connection logging options for the Client VPN endpoint.
Enabled (boolean) --
Indicates whether client connection logging is enabled for the Client VPN endpoint.
CloudwatchLogGroup (string) --
The name of the Amazon CloudWatch Logs log group to which connection logging data is published.
CloudwatchLogStream (string) --
The name of the Amazon CloudWatch Logs log stream to which connection logging data is published.
Tags (list) --
Any tags assigned to the Client VPN endpoint.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
SecurityGroupIds (list) --
The IDs of the security groups for the target network.
(string) --
VpcId (string) --
The ID of the VPC.
SelfServicePortalUrl (string) --
The URL of the self-service portal.
NextToken (string) --
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
{'TransitGatewayVpcAttachments': {'Options': {'ApplianceModeSupport': 'enable ' '| ' 'disable'}}}
Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results.
See also: AWS API Documentation
Request Syntax
client.describe_transit_gateway_vpc_attachments( TransitGatewayAttachmentIds=[ 'string', ], Filters=[ { 'Name': 'string', 'Values': [ 'string', ] }, ], MaxResults=123, NextToken='string', DryRun=True|False )
list
The IDs of the attachments.
(string) --
list
One or more filters. The possible values are:
state - The state of the attachment. Valid values are available | deleted | deleting | failed | failing | initiatingRequest | modifying | pendingAcceptance | pending | rollingBack | rejected | rejecting.
transit-gateway-attachment-id - The ID of the attachment.
transit-gateway-id - The ID of the transit gateway.
vpc-id - The ID of the VPC.
(dict) --
A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs. The filters supported by a describe operation are documented with the describe operation. For example:
DescribeAvailabilityZones
DescribeImages
DescribeInstances
DescribeKeyPairs
DescribeSecurityGroups
DescribeSnapshots
DescribeSubnets
DescribeTags
DescribeVolumes
DescribeVpcs
Name (string) --
The name of the filter. Filter names are case-sensitive.
Values (list) --
The filter values. Filter values are case-sensitive.
(string) --
integer
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
string
The token for the next page of results.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
dict
Response Syntax
{ 'TransitGatewayVpcAttachments': [ { 'TransitGatewayAttachmentId': 'string', 'TransitGatewayId': 'string', 'VpcId': 'string', 'VpcOwnerId': 'string', 'State': 'initiating'|'initiatingRequest'|'pendingAcceptance'|'rollingBack'|'pending'|'available'|'modifying'|'deleting'|'deleted'|'failed'|'rejected'|'rejecting'|'failing', 'SubnetIds': [ 'string', ], 'CreationTime': datetime(2015, 1, 1), 'Options': { 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] }, ], 'NextToken': 'string' }
Response Structure
(dict) --
TransitGatewayVpcAttachments (list) --
Information about the VPC attachments.
(dict) --
Describes a VPC attachment.
TransitGatewayAttachmentId (string) --
The ID of the attachment.
TransitGatewayId (string) --
The ID of the transit gateway.
VpcId (string) --
The ID of the VPC.
VpcOwnerId (string) --
The ID of the AWS account that owns the VPC.
State (string) --
The state of the VPC attachment. Note that the initiating state has been deprecated.
SubnetIds (list) --
The IDs of the subnets.
(string) --
CreationTime (datetime) --
The creation time.
Options (dict) --
The VPC attachment options.
DnsSupport (string) --
Indicates whether DNS support is enabled.
Ipv6Support (string) --
Indicates whether IPv6 support is disabled.
ApplianceModeSupport (string) --
Indicates whether appliance mode support is enabled.
Tags (list) --
The tags for the VPC attachment.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
NextToken (string) --
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
{'SelfServicePortal': 'enabled | disabled'}
Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.
See also: AWS API Documentation
Request Syntax
client.modify_client_vpn_endpoint( ClientVpnEndpointId='string', ServerCertificateArn='string', ConnectionLogOptions={ 'Enabled': True|False, 'CloudwatchLogGroup': 'string', 'CloudwatchLogStream': 'string' }, DnsServers={ 'CustomDnsServers': [ 'string', ], 'Enabled': True|False }, VpnPort=123, Description='string', SplitTunnel=True|False, DryRun=True|False, SecurityGroupIds=[ 'string', ], VpcId='string', SelfServicePortal='enabled'|'disabled' )
string
[REQUIRED]
The ID of the Client VPN endpoint to modify.
string
The ARN of the server certificate to be used. The server certificate must be provisioned in AWS Certificate Manager (ACM).
dict
Information about the client connection logging options.
If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
Client connection requests
Client connection results (successful and unsuccessful)
Reasons for unsuccessful client connection requests
Client connection termination time
Enabled (boolean) --
Indicates whether connection logging is enabled.
CloudwatchLogGroup (string) --
The name of the CloudWatch Logs log group. Required if connection logging is enabled.
CloudwatchLogStream (string) --
The name of the CloudWatch Logs log stream to which the connection data is published.
dict
Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up to two DNS servers.
CustomDnsServers (list) --
The IPv4 address range, in CIDR notation, of the DNS servers to be used. You can specify up to two DNS servers. Ensure that the DNS servers can be reached by the clients. The specified values overwrite the existing values.
(string) --
Enabled (boolean) --
Indicates whether DNS servers should be used. Specify False to delete the existing DNS servers.
integer
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
Valid Values: 443 | 1194
Default Value: 443
string
A brief description of the Client VPN endpoint.
boolean
Indicates whether the VPN is split-tunnel.
For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN Endpoint in the AWS Client VPN Administrator Guide.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
list
The IDs of one or more security groups to apply to the target network.
(string) --
string
The ID of the VPC to associate with the Client VPN endpoint.
string
Specify whether to enable the self-service portal for the Client VPN endpoint.
dict
Response Syntax
{ 'Return': True|False }
Response Structure
(dict) --
Return (boolean) --
Returns true if the request succeeds; otherwise, it returns an error.
{'Options': {'ApplianceModeSupport': 'enable | disable'}}Response
{'TransitGatewayVpcAttachment': {'Options': {'ApplianceModeSupport': 'enable | ' 'disable'}}}
Modifies the specified VPC attachment.
See also: AWS API Documentation
Request Syntax
client.modify_transit_gateway_vpc_attachment( TransitGatewayAttachmentId='string', AddSubnetIds=[ 'string', ], RemoveSubnetIds=[ 'string', ], Options={ 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, DryRun=True|False )
string
[REQUIRED]
The ID of the attachment.
list
The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.
(string) --
list
The IDs of one or more subnets to remove.
(string) --
dict
The new VPC attachment options.
DnsSupport (string) --
Enable or disable DNS support. The default is enable.
Ipv6Support (string) --
Enable or disable IPv6 support. The default is enable.
ApplianceModeSupport (string) --
Enable or disable support for appliance mode. If enabled, a traffic flow between a source and destination uses the same Availability Zone for the VPC attachment for the lifetime of that flow. The default is disable.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
dict
Response Syntax
{ 'TransitGatewayVpcAttachment': { 'TransitGatewayAttachmentId': 'string', 'TransitGatewayId': 'string', 'VpcId': 'string', 'VpcOwnerId': 'string', 'State': 'initiating'|'initiatingRequest'|'pendingAcceptance'|'rollingBack'|'pending'|'available'|'modifying'|'deleting'|'deleted'|'failed'|'rejected'|'rejecting'|'failing', 'SubnetIds': [ 'string', ], 'CreationTime': datetime(2015, 1, 1), 'Options': { 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } }
Response Structure
(dict) --
TransitGatewayVpcAttachment (dict) --
Information about the modified attachment.
TransitGatewayAttachmentId (string) --
The ID of the attachment.
TransitGatewayId (string) --
The ID of the transit gateway.
VpcId (string) --
The ID of the VPC.
VpcOwnerId (string) --
The ID of the AWS account that owns the VPC.
State (string) --
The state of the VPC attachment. Note that the initiating state has been deprecated.
SubnetIds (list) --
The IDs of the subnets.
(string) --
CreationTime (datetime) --
The creation time.
Options (dict) --
The VPC attachment options.
DnsSupport (string) --
Indicates whether DNS support is enabled.
Ipv6Support (string) --
Indicates whether IPv6 support is disabled.
ApplianceModeSupport (string) --
Indicates whether appliance mode support is enabled.
Tags (list) --
The tags for the VPC attachment.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
{'TransitGatewayVpcAttachment': {'Options': {'ApplianceModeSupport': 'enable | ' 'disable'}}}
Rejects a request to attach a VPC to a transit gateway.
The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.
See also: AWS API Documentation
Request Syntax
client.reject_transit_gateway_vpc_attachment( TransitGatewayAttachmentId='string', DryRun=True|False )
string
[REQUIRED]
The ID of the attachment.
boolean
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
dict
Response Syntax
{ 'TransitGatewayVpcAttachment': { 'TransitGatewayAttachmentId': 'string', 'TransitGatewayId': 'string', 'VpcId': 'string', 'VpcOwnerId': 'string', 'State': 'initiating'|'initiatingRequest'|'pendingAcceptance'|'rollingBack'|'pending'|'available'|'modifying'|'deleting'|'deleted'|'failed'|'rejected'|'rejecting'|'failing', 'SubnetIds': [ 'string', ], 'CreationTime': datetime(2015, 1, 1), 'Options': { 'DnsSupport': 'enable'|'disable', 'Ipv6Support': 'enable'|'disable', 'ApplianceModeSupport': 'enable'|'disable' }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ] } }
Response Structure
(dict) --
TransitGatewayVpcAttachment (dict) --
Information about the attachment.
TransitGatewayAttachmentId (string) --
The ID of the attachment.
TransitGatewayId (string) --
The ID of the transit gateway.
VpcId (string) --
The ID of the VPC.
VpcOwnerId (string) --
The ID of the AWS account that owns the VPC.
State (string) --
The state of the VPC attachment. Note that the initiating state has been deprecated.
SubnetIds (list) --
The IDs of the subnets.
(string) --
CreationTime (datetime) --
The creation time.
Options (dict) --
The VPC attachment options.
DnsSupport (string) --
Indicates whether DNS support is enabled.
Ipv6Support (string) --
Indicates whether IPv6 support is disabled.
ApplianceModeSupport (string) --
Indicates whether appliance mode support is enabled.
Tags (list) --
The tags for the VPC attachment.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.
Value (string) --
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.