EC2Client#
Auto-generated documentation for EC2 type annotations stubs module types-aiobotocore-ec2.
EC2Client#
Type annotations and code completion for session.create_client("ec2")
boto3 documentation
EC2Client usage example
from aiobotocore.session import get_session
from types_aiobotocore_ec2.client import EC2Client
session = get_session()
async with session.create_client("ec2") as client:
client: EC2Client
Exceptions#
aiobotocore
client exceptions are generated in runtime.
This class provides code completion for session.create_client("ec2").exceptions
structure.
EC2Client.exceptions usage example
async with session.create_client("ec2") as client:
try:
do_something(client)
except (
client.ClientError,
) as e:
print(e)
EC2Client usage type checking example
from types_aiobotocore_ec2.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
accept_address_transfer#
Accepts an Elastic IP address transfer.
Type annotations and code completion for session.create_client("ec2").accept_address_transfer
method.
boto3 documentation
# accept_address_transfer method definition
await def accept_address_transfer(
self,
*,
Address: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> AcceptAddressTransferResultTypeDef: # (2)
...
# accept_address_transfer method usage example with argument unpacking
kwargs: AcceptAddressTransferRequestRequestTypeDef = { # (1)
"Address": ...,
}
parent.accept_address_transfer(**kwargs)
accept_reserved_instances_exchange_quote#
Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.
Type annotations and code completion for session.create_client("ec2").accept_reserved_instances_exchange_quote
method.
boto3 documentation
# accept_reserved_instances_exchange_quote method definition
await def accept_reserved_instances_exchange_quote(
self,
*,
ReservedInstanceIds: Sequence[str],
DryRun: bool = ...,
TargetConfigurations: Sequence[TargetConfigurationRequestTypeDef] = ..., # (1)
) -> AcceptReservedInstancesExchangeQuoteResultTypeDef: # (2)
...
# accept_reserved_instances_exchange_quote method usage example with argument unpacking
kwargs: AcceptReservedInstancesExchangeQuoteRequestRequestTypeDef = { # (1)
"ReservedInstanceIds": ...,
}
parent.accept_reserved_instances_exchange_quote(**kwargs)
accept_transit_gateway_multicast_domain_associations#
Accepts a request to associate subnets with a transit gateway multicast domain.
Type annotations and code completion for session.create_client("ec2").accept_transit_gateway_multicast_domain_associations
method.
boto3 documentation
# accept_transit_gateway_multicast_domain_associations method definition
await def accept_transit_gateway_multicast_domain_associations(
self,
*,
TransitGatewayMulticastDomainId: str = ...,
TransitGatewayAttachmentId: str = ...,
SubnetIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> AcceptTransitGatewayMulticastDomainAssociationsResultTypeDef: # (1)
...
# accept_transit_gateway_multicast_domain_associations method usage example with argument unpacking
kwargs: AcceptTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
}
parent.accept_transit_gateway_multicast_domain_associations(**kwargs)
accept_transit_gateway_peering_attachment#
Accepts a transit gateway peering attachment request.
Type annotations and code completion for session.create_client("ec2").accept_transit_gateway_peering_attachment
method.
boto3 documentation
# accept_transit_gateway_peering_attachment method definition
await def accept_transit_gateway_peering_attachment(
self,
*,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> AcceptTransitGatewayPeeringAttachmentResultTypeDef: # (1)
...
# accept_transit_gateway_peering_attachment method usage example with argument unpacking
kwargs: AcceptTransitGatewayPeeringAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.accept_transit_gateway_peering_attachment(**kwargs)
accept_transit_gateway_vpc_attachment#
Accepts a request to attach a VPC to a transit gateway.
Type annotations and code completion for session.create_client("ec2").accept_transit_gateway_vpc_attachment
method.
boto3 documentation
# accept_transit_gateway_vpc_attachment method definition
await def accept_transit_gateway_vpc_attachment(
self,
*,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> AcceptTransitGatewayVpcAttachmentResultTypeDef: # (1)
...
# accept_transit_gateway_vpc_attachment method usage example with argument unpacking
kwargs: AcceptTransitGatewayVpcAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.accept_transit_gateway_vpc_attachment(**kwargs)
accept_vpc_endpoint_connections#
Accepts connection requests to your VPC endpoint service.
Type annotations and code completion for session.create_client("ec2").accept_vpc_endpoint_connections
method.
boto3 documentation
# accept_vpc_endpoint_connections method definition
await def accept_vpc_endpoint_connections(
self,
*,
ServiceId: str,
VpcEndpointIds: Sequence[str],
DryRun: bool = ...,
) -> AcceptVpcEndpointConnectionsResultTypeDef: # (1)
...
# accept_vpc_endpoint_connections method usage example with argument unpacking
kwargs: AcceptVpcEndpointConnectionsRequestRequestTypeDef = { # (1)
"ServiceId": ...,
"VpcEndpointIds": ...,
}
parent.accept_vpc_endpoint_connections(**kwargs)
accept_vpc_peering_connection#
Accept a VPC peering connection request.
Type annotations and code completion for session.create_client("ec2").accept_vpc_peering_connection
method.
boto3 documentation
# accept_vpc_peering_connection method definition
await def accept_vpc_peering_connection(
self,
*,
VpcPeeringConnectionId: str,
DryRun: bool = ...,
) -> AcceptVpcPeeringConnectionResultTypeDef: # (1)
...
# accept_vpc_peering_connection method usage example with argument unpacking
kwargs: AcceptVpcPeeringConnectionRequestRequestTypeDef = { # (1)
"VpcPeeringConnectionId": ...,
}
parent.accept_vpc_peering_connection(**kwargs)
advertise_byoip_cidr#
Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).
Type annotations and code completion for session.create_client("ec2").advertise_byoip_cidr
method.
boto3 documentation
# advertise_byoip_cidr method definition
await def advertise_byoip_cidr(
self,
*,
Cidr: str,
DryRun: bool = ...,
) -> AdvertiseByoipCidrResultTypeDef: # (1)
...
# advertise_byoip_cidr method usage example with argument unpacking
kwargs: AdvertiseByoipCidrRequestRequestTypeDef = { # (1)
"Cidr": ...,
}
parent.advertise_byoip_cidr(**kwargs)
allocate_address#
Allocates an Elastic IP address to your Amazon Web Services account.
Type annotations and code completion for session.create_client("ec2").allocate_address
method.
boto3 documentation
# allocate_address method definition
await def allocate_address(
self,
*,
Domain: DomainTypeType = ..., # (1)
Address: str = ...,
PublicIpv4Pool: str = ...,
NetworkBorderGroup: str = ...,
CustomerOwnedIpv4Pool: str = ...,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> AllocateAddressResultTypeDef: # (3)
...
# allocate_address method usage example with argument unpacking
kwargs: AllocateAddressRequestRequestTypeDef = { # (1)
"Domain": ...,
}
parent.allocate_address(**kwargs)
allocate_hosts#
Allocates a Dedicated Host to your account.
Type annotations and code completion for session.create_client("ec2").allocate_hosts
method.
boto3 documentation
# allocate_hosts method definition
await def allocate_hosts(
self,
*,
AvailabilityZone: str,
AutoPlacement: AutoPlacementType = ..., # (1)
ClientToken: str = ...,
InstanceType: str = ...,
InstanceFamily: str = ...,
Quantity: int = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
HostRecovery: HostRecoveryType = ..., # (3)
OutpostArn: str = ...,
HostMaintenance: HostMaintenanceType = ..., # (4)
AssetIds: Sequence[str] = ...,
) -> AllocateHostsResultTypeDef: # (5)
...
- See AutoPlacementType
- See TagSpecificationTypeDef
- See HostRecoveryType
- See HostMaintenanceType
- See AllocateHostsResultTypeDef
# allocate_hosts method usage example with argument unpacking
kwargs: AllocateHostsRequestRequestTypeDef = { # (1)
"AvailabilityZone": ...,
}
parent.allocate_hosts(**kwargs)
allocate_ipam_pool_cidr#
Allocate a CIDR from an IPAM pool.
Type annotations and code completion for session.create_client("ec2").allocate_ipam_pool_cidr
method.
boto3 documentation
# allocate_ipam_pool_cidr method definition
await def allocate_ipam_pool_cidr(
self,
*,
IpamPoolId: str,
DryRun: bool = ...,
Cidr: str = ...,
NetmaskLength: int = ...,
ClientToken: str = ...,
Description: str = ...,
PreviewNextCidr: bool = ...,
DisallowedCidrs: Sequence[str] = ...,
) -> AllocateIpamPoolCidrResultTypeDef: # (1)
...
# allocate_ipam_pool_cidr method usage example with argument unpacking
kwargs: AllocateIpamPoolCidrRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
}
parent.allocate_ipam_pool_cidr(**kwargs)
apply_security_groups_to_client_vpn_target_network#
Applies a security group to the association between the target network and the Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").apply_security_groups_to_client_vpn_target_network
method.
boto3 documentation
# apply_security_groups_to_client_vpn_target_network method definition
await def apply_security_groups_to_client_vpn_target_network(
self,
*,
ClientVpnEndpointId: str,
VpcId: str,
SecurityGroupIds: Sequence[str],
DryRun: bool = ...,
) -> ApplySecurityGroupsToClientVpnTargetNetworkResultTypeDef: # (1)
...
# apply_security_groups_to_client_vpn_target_network method usage example with argument unpacking
kwargs: ApplySecurityGroupsToClientVpnTargetNetworkRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"VpcId": ...,
"SecurityGroupIds": ...,
}
parent.apply_security_groups_to_client_vpn_target_network(**kwargs)
assign_ipv6_addresses#
Assigns one or more IPv6 addresses to the specified network interface.
Type annotations and code completion for session.create_client("ec2").assign_ipv6_addresses
method.
boto3 documentation
# assign_ipv6_addresses method definition
await def assign_ipv6_addresses(
self,
*,
NetworkInterfaceId: str,
Ipv6AddressCount: int = ...,
Ipv6Addresses: Sequence[str] = ...,
Ipv6PrefixCount: int = ...,
Ipv6Prefixes: Sequence[str] = ...,
) -> AssignIpv6AddressesResultTypeDef: # (1)
...
# assign_ipv6_addresses method usage example with argument unpacking
kwargs: AssignIpv6AddressesRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.assign_ipv6_addresses(**kwargs)
assign_private_ip_addresses#
Assigns one or more secondary private IP addresses to the specified network interface.
Type annotations and code completion for session.create_client("ec2").assign_private_ip_addresses
method.
boto3 documentation
# assign_private_ip_addresses method definition
await def assign_private_ip_addresses(
self,
*,
NetworkInterfaceId: str,
AllowReassignment: bool = ...,
PrivateIpAddresses: Sequence[str] = ...,
SecondaryPrivateIpAddressCount: int = ...,
Ipv4Prefixes: Sequence[str] = ...,
Ipv4PrefixCount: int = ...,
) -> AssignPrivateIpAddressesResultTypeDef: # (1)
...
# assign_private_ip_addresses method usage example with argument unpacking
kwargs: AssignPrivateIpAddressesRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.assign_private_ip_addresses(**kwargs)
assign_private_nat_gateway_address#
Assigns one or more private IPv4 addresses to a private NAT gateway.
Type annotations and code completion for session.create_client("ec2").assign_private_nat_gateway_address
method.
boto3 documentation
# assign_private_nat_gateway_address method definition
await def assign_private_nat_gateway_address(
self,
*,
NatGatewayId: str,
PrivateIpAddresses: Sequence[str] = ...,
PrivateIpAddressCount: int = ...,
DryRun: bool = ...,
) -> AssignPrivateNatGatewayAddressResultTypeDef: # (1)
...
# assign_private_nat_gateway_address method usage example with argument unpacking
kwargs: AssignPrivateNatGatewayAddressRequestRequestTypeDef = { # (1)
"NatGatewayId": ...,
}
parent.assign_private_nat_gateway_address(**kwargs)
associate_address#
Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface.
Type annotations and code completion for session.create_client("ec2").associate_address
method.
boto3 documentation
# associate_address method definition
await def associate_address(
self,
*,
AllocationId: str = ...,
InstanceId: str = ...,
PublicIp: str = ...,
AllowReassociation: bool = ...,
DryRun: bool = ...,
NetworkInterfaceId: str = ...,
PrivateIpAddress: str = ...,
) -> AssociateAddressResultTypeDef: # (1)
...
# associate_address method usage example with argument unpacking
kwargs: AssociateAddressRequestRequestTypeDef = { # (1)
"AllocationId": ...,
}
parent.associate_address(**kwargs)
associate_client_vpn_target_network#
Associates a target network with a Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").associate_client_vpn_target_network
method.
boto3 documentation
# associate_client_vpn_target_network method definition
await def associate_client_vpn_target_network(
self,
*,
ClientVpnEndpointId: str,
SubnetId: str,
ClientToken: str = ...,
DryRun: bool = ...,
) -> AssociateClientVpnTargetNetworkResultTypeDef: # (1)
...
# associate_client_vpn_target_network method usage example with argument unpacking
kwargs: AssociateClientVpnTargetNetworkRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"SubnetId": ...,
}
parent.associate_client_vpn_target_network(**kwargs)
associate_dhcp_options#
Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.
Type annotations and code completion for session.create_client("ec2").associate_dhcp_options
method.
boto3 documentation
# associate_dhcp_options method definition
await def associate_dhcp_options(
self,
*,
DhcpOptionsId: str,
VpcId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# associate_dhcp_options method usage example with argument unpacking
kwargs: AssociateDhcpOptionsRequestRequestTypeDef = { # (1)
"DhcpOptionsId": ...,
"VpcId": ...,
}
parent.associate_dhcp_options(**kwargs)
associate_enclave_certificate_iam_role#
Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate.
Type annotations and code completion for session.create_client("ec2").associate_enclave_certificate_iam_role
method.
boto3 documentation
# associate_enclave_certificate_iam_role method definition
await def associate_enclave_certificate_iam_role(
self,
*,
CertificateArn: str,
RoleArn: str,
DryRun: bool = ...,
) -> AssociateEnclaveCertificateIamRoleResultTypeDef: # (1)
...
# associate_enclave_certificate_iam_role method usage example with argument unpacking
kwargs: AssociateEnclaveCertificateIamRoleRequestRequestTypeDef = { # (1)
"CertificateArn": ...,
"RoleArn": ...,
}
parent.associate_enclave_certificate_iam_role(**kwargs)
associate_iam_instance_profile#
Associates an IAM instance profile with a running or stopped instance.
Type annotations and code completion for session.create_client("ec2").associate_iam_instance_profile
method.
boto3 documentation
# associate_iam_instance_profile method definition
await def associate_iam_instance_profile(
self,
*,
IamInstanceProfile: IamInstanceProfileSpecificationTypeDef, # (1)
InstanceId: str,
) -> AssociateIamInstanceProfileResultTypeDef: # (2)
...
# associate_iam_instance_profile method usage example with argument unpacking
kwargs: AssociateIamInstanceProfileRequestRequestTypeDef = { # (1)
"IamInstanceProfile": ...,
"InstanceId": ...,
}
parent.associate_iam_instance_profile(**kwargs)
associate_instance_event_window#
Associates one or more targets with an event window.
Type annotations and code completion for session.create_client("ec2").associate_instance_event_window
method.
boto3 documentation
# associate_instance_event_window method definition
await def associate_instance_event_window(
self,
*,
InstanceEventWindowId: str,
AssociationTarget: InstanceEventWindowAssociationRequestTypeDef, # (1)
DryRun: bool = ...,
) -> AssociateInstanceEventWindowResultTypeDef: # (2)
...
# associate_instance_event_window method usage example with argument unpacking
kwargs: AssociateInstanceEventWindowRequestRequestTypeDef = { # (1)
"InstanceEventWindowId": ...,
"AssociationTarget": ...,
}
parent.associate_instance_event_window(**kwargs)
associate_ipam_resource_discovery#
Associates an IPAM resource discovery with an Amazon VPC IPAM.
Type annotations and code completion for session.create_client("ec2").associate_ipam_resource_discovery
method.
boto3 documentation
# associate_ipam_resource_discovery method definition
await def associate_ipam_resource_discovery(
self,
*,
IpamId: str,
IpamResourceDiscoveryId: str,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
ClientToken: str = ...,
) -> AssociateIpamResourceDiscoveryResultTypeDef: # (2)
...
# associate_ipam_resource_discovery method usage example with argument unpacking
kwargs: AssociateIpamResourceDiscoveryRequestRequestTypeDef = { # (1)
"IpamId": ...,
"IpamResourceDiscoveryId": ...,
}
parent.associate_ipam_resource_discovery(**kwargs)
associate_nat_gateway_address#
Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway.
Type annotations and code completion for session.create_client("ec2").associate_nat_gateway_address
method.
boto3 documentation
# associate_nat_gateway_address method definition
await def associate_nat_gateway_address(
self,
*,
NatGatewayId: str,
AllocationIds: Sequence[str],
PrivateIpAddresses: Sequence[str] = ...,
DryRun: bool = ...,
) -> AssociateNatGatewayAddressResultTypeDef: # (1)
...
# associate_nat_gateway_address method usage example with argument unpacking
kwargs: AssociateNatGatewayAddressRequestRequestTypeDef = { # (1)
"NatGatewayId": ...,
"AllocationIds": ...,
}
parent.associate_nat_gateway_address(**kwargs)
associate_route_table#
Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC.
Type annotations and code completion for session.create_client("ec2").associate_route_table
method.
boto3 documentation
# associate_route_table method definition
await def associate_route_table(
self,
*,
RouteTableId: str,
DryRun: bool = ...,
SubnetId: str = ...,
GatewayId: str = ...,
) -> AssociateRouteTableResultTypeDef: # (1)
...
# associate_route_table method usage example with argument unpacking
kwargs: AssociateRouteTableRequestRequestTypeDef = { # (1)
"RouteTableId": ...,
}
parent.associate_route_table(**kwargs)
associate_subnet_cidr_block#
Associates a CIDR block with your subnet.
Type annotations and code completion for session.create_client("ec2").associate_subnet_cidr_block
method.
boto3 documentation
# associate_subnet_cidr_block method definition
await def associate_subnet_cidr_block(
self,
*,
Ipv6CidrBlock: str,
SubnetId: str,
) -> AssociateSubnetCidrBlockResultTypeDef: # (1)
...
# associate_subnet_cidr_block method usage example with argument unpacking
kwargs: AssociateSubnetCidrBlockRequestRequestTypeDef = { # (1)
"Ipv6CidrBlock": ...,
"SubnetId": ...,
}
parent.associate_subnet_cidr_block(**kwargs)
associate_transit_gateway_multicast_domain#
Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.
Type annotations and code completion for session.create_client("ec2").associate_transit_gateway_multicast_domain
method.
boto3 documentation
# associate_transit_gateway_multicast_domain method definition
await def associate_transit_gateway_multicast_domain(
self,
*,
TransitGatewayMulticastDomainId: str,
TransitGatewayAttachmentId: str,
SubnetIds: Sequence[str],
DryRun: bool = ...,
) -> AssociateTransitGatewayMulticastDomainResultTypeDef: # (1)
...
# associate_transit_gateway_multicast_domain method usage example with argument unpacking
kwargs: AssociateTransitGatewayMulticastDomainRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
"TransitGatewayAttachmentId": ...,
"SubnetIds": ...,
}
parent.associate_transit_gateway_multicast_domain(**kwargs)
associate_transit_gateway_policy_table#
Associates the specified transit gateway attachment with a transit gateway policy table.
Type annotations and code completion for session.create_client("ec2").associate_transit_gateway_policy_table
method.
boto3 documentation
# associate_transit_gateway_policy_table method definition
await def associate_transit_gateway_policy_table(
self,
*,
TransitGatewayPolicyTableId: str,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> AssociateTransitGatewayPolicyTableResultTypeDef: # (1)
...
# associate_transit_gateway_policy_table method usage example with argument unpacking
kwargs: AssociateTransitGatewayPolicyTableRequestRequestTypeDef = { # (1)
"TransitGatewayPolicyTableId": ...,
"TransitGatewayAttachmentId": ...,
}
parent.associate_transit_gateway_policy_table(**kwargs)
associate_transit_gateway_route_table#
Associates the specified attachment with the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").associate_transit_gateway_route_table
method.
boto3 documentation
# associate_transit_gateway_route_table method definition
await def associate_transit_gateway_route_table(
self,
*,
TransitGatewayRouteTableId: str,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> AssociateTransitGatewayRouteTableResultTypeDef: # (1)
...
# associate_transit_gateway_route_table method usage example with argument unpacking
kwargs: AssociateTransitGatewayRouteTableRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"TransitGatewayAttachmentId": ...,
}
parent.associate_transit_gateway_route_table(**kwargs)
associate_trunk_interface#
.
Type annotations and code completion for session.create_client("ec2").associate_trunk_interface
method.
boto3 documentation
# associate_trunk_interface method definition
await def associate_trunk_interface(
self,
*,
BranchInterfaceId: str,
TrunkInterfaceId: str,
VlanId: int = ...,
GreKey: int = ...,
ClientToken: str = ...,
DryRun: bool = ...,
) -> AssociateTrunkInterfaceResultTypeDef: # (1)
...
# associate_trunk_interface method usage example with argument unpacking
kwargs: AssociateTrunkInterfaceRequestRequestTypeDef = { # (1)
"BranchInterfaceId": ...,
"TrunkInterfaceId": ...,
}
parent.associate_trunk_interface(**kwargs)
associate_vpc_cidr_block#
Associates a CIDR block with your VPC.
Type annotations and code completion for session.create_client("ec2").associate_vpc_cidr_block
method.
boto3 documentation
# associate_vpc_cidr_block method definition
await def associate_vpc_cidr_block(
self,
*,
VpcId: str,
AmazonProvidedIpv6CidrBlock: bool = ...,
CidrBlock: str = ...,
Ipv6CidrBlockNetworkBorderGroup: str = ...,
Ipv6Pool: str = ...,
Ipv6CidrBlock: str = ...,
Ipv4IpamPoolId: str = ...,
Ipv4NetmaskLength: int = ...,
Ipv6IpamPoolId: str = ...,
Ipv6NetmaskLength: int = ...,
) -> AssociateVpcCidrBlockResultTypeDef: # (1)
...
# associate_vpc_cidr_block method usage example with argument unpacking
kwargs: AssociateVpcCidrBlockRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.associate_vpc_cidr_block(**kwargs)
attach_classic_link_vpc#
.
Type annotations and code completion for session.create_client("ec2").attach_classic_link_vpc
method.
boto3 documentation
# attach_classic_link_vpc method definition
await def attach_classic_link_vpc(
self,
*,
Groups: Sequence[str],
InstanceId: str,
VpcId: str,
DryRun: bool = ...,
) -> AttachClassicLinkVpcResultTypeDef: # (1)
...
# attach_classic_link_vpc method usage example with argument unpacking
kwargs: AttachClassicLinkVpcRequestRequestTypeDef = { # (1)
"Groups": ...,
"InstanceId": ...,
"VpcId": ...,
}
parent.attach_classic_link_vpc(**kwargs)
attach_internet_gateway#
Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC.
Type annotations and code completion for session.create_client("ec2").attach_internet_gateway
method.
boto3 documentation
# attach_internet_gateway method definition
await def attach_internet_gateway(
self,
*,
InternetGatewayId: str,
VpcId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# attach_internet_gateway method usage example with argument unpacking
kwargs: AttachInternetGatewayRequestRequestTypeDef = { # (1)
"InternetGatewayId": ...,
"VpcId": ...,
}
parent.attach_internet_gateway(**kwargs)
attach_network_interface#
Attaches a network interface to an instance.
Type annotations and code completion for session.create_client("ec2").attach_network_interface
method.
boto3 documentation
# attach_network_interface method definition
await def attach_network_interface(
self,
*,
DeviceIndex: int,
InstanceId: str,
NetworkInterfaceId: str,
DryRun: bool = ...,
NetworkCardIndex: int = ...,
EnaSrdSpecification: EnaSrdSpecificationTypeDef = ..., # (1)
) -> AttachNetworkInterfaceResultTypeDef: # (2)
...
# attach_network_interface method usage example with argument unpacking
kwargs: AttachNetworkInterfaceRequestRequestTypeDef = { # (1)
"DeviceIndex": ...,
"InstanceId": ...,
"NetworkInterfaceId": ...,
}
parent.attach_network_interface(**kwargs)
attach_verified_access_trust_provider#
Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance.
Type annotations and code completion for session.create_client("ec2").attach_verified_access_trust_provider
method.
boto3 documentation
# attach_verified_access_trust_provider method definition
await def attach_verified_access_trust_provider(
self,
*,
VerifiedAccessInstanceId: str,
VerifiedAccessTrustProviderId: str,
ClientToken: str = ...,
DryRun: bool = ...,
) -> AttachVerifiedAccessTrustProviderResultTypeDef: # (1)
...
# attach_verified_access_trust_provider method usage example with argument unpacking
kwargs: AttachVerifiedAccessTrustProviderRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceId": ...,
"VerifiedAccessTrustProviderId": ...,
}
parent.attach_verified_access_trust_provider(**kwargs)
attach_volume#
Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.
Type annotations and code completion for session.create_client("ec2").attach_volume
method.
boto3 documentation
# attach_volume method definition
await def attach_volume(
self,
*,
Device: str,
InstanceId: str,
VolumeId: str,
DryRun: bool = ...,
) -> VolumeAttachmentTypeDef: # (1)
...
# attach_volume method usage example with argument unpacking
kwargs: AttachVolumeRequestRequestTypeDef = { # (1)
"Device": ...,
"InstanceId": ...,
"VolumeId": ...,
}
parent.attach_volume(**kwargs)
attach_vpn_gateway#
Attaches a virtual private gateway to a VPC.
Type annotations and code completion for session.create_client("ec2").attach_vpn_gateway
method.
boto3 documentation
# attach_vpn_gateway method definition
await def attach_vpn_gateway(
self,
*,
VpcId: str,
VpnGatewayId: str,
DryRun: bool = ...,
) -> AttachVpnGatewayResultTypeDef: # (1)
...
# attach_vpn_gateway method usage example with argument unpacking
kwargs: AttachVpnGatewayRequestRequestTypeDef = { # (1)
"VpcId": ...,
"VpnGatewayId": ...,
}
parent.attach_vpn_gateway(**kwargs)
authorize_client_vpn_ingress#
Adds an ingress authorization rule to a Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").authorize_client_vpn_ingress
method.
boto3 documentation
# authorize_client_vpn_ingress method definition
await def authorize_client_vpn_ingress(
self,
*,
ClientVpnEndpointId: str,
TargetNetworkCidr: str,
AccessGroupId: str = ...,
AuthorizeAllGroups: bool = ...,
Description: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
) -> AuthorizeClientVpnIngressResultTypeDef: # (1)
...
# authorize_client_vpn_ingress method usage example with argument unpacking
kwargs: AuthorizeClientVpnIngressRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"TargetNetworkCidr": ...,
}
parent.authorize_client_vpn_ingress(**kwargs)
authorize_security_group_egress#
Adds the specified outbound (egress) rules to a security group for use with a VPC.
Type annotations and code completion for session.create_client("ec2").authorize_security_group_egress
method.
boto3 documentation
# authorize_security_group_egress method definition
await def authorize_security_group_egress(
self,
*,
GroupId: str,
DryRun: bool = ...,
IpPermissions: Sequence[IpPermissionTypeDef] = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
CidrIp: str = ...,
FromPort: int = ...,
IpProtocol: str = ...,
ToPort: int = ...,
SourceSecurityGroupName: str = ...,
SourceSecurityGroupOwnerId: str = ...,
) -> AuthorizeSecurityGroupEgressResultTypeDef: # (3)
...
# authorize_security_group_egress method usage example with argument unpacking
kwargs: AuthorizeSecurityGroupEgressRequestRequestTypeDef = { # (1)
"GroupId": ...,
}
parent.authorize_security_group_egress(**kwargs)
authorize_security_group_ingress#
Adds the specified inbound (ingress) rules to a security group.
Type annotations and code completion for session.create_client("ec2").authorize_security_group_ingress
method.
boto3 documentation
# authorize_security_group_ingress method definition
await def authorize_security_group_ingress(
self,
*,
CidrIp: str = ...,
FromPort: int = ...,
GroupId: str = ...,
GroupName: str = ...,
IpPermissions: Sequence[IpPermissionTypeDef] = ..., # (1)
IpProtocol: str = ...,
SourceSecurityGroupName: str = ...,
SourceSecurityGroupOwnerId: str = ...,
ToPort: int = ...,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> AuthorizeSecurityGroupIngressResultTypeDef: # (3)
...
# authorize_security_group_ingress method usage example with argument unpacking
kwargs: AuthorizeSecurityGroupIngressRequestRequestTypeDef = { # (1)
"CidrIp": ...,
}
parent.authorize_security_group_ingress(**kwargs)
bundle_instance#
Bundles an Amazon instance store-backed Windows instance.
Type annotations and code completion for session.create_client("ec2").bundle_instance
method.
boto3 documentation
# bundle_instance method definition
await def bundle_instance(
self,
*,
InstanceId: str,
Storage: StorageTypeDef, # (1)
DryRun: bool = ...,
) -> BundleInstanceResultTypeDef: # (2)
...
# bundle_instance method usage example with argument unpacking
kwargs: BundleInstanceRequestRequestTypeDef = { # (1)
"InstanceId": ...,
"Storage": ...,
}
parent.bundle_instance(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for session.create_client("ec2").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
cancel_bundle_task#
Cancels a bundling operation for an instance store-backed Windows instance.
Type annotations and code completion for session.create_client("ec2").cancel_bundle_task
method.
boto3 documentation
# cancel_bundle_task method definition
await def cancel_bundle_task(
self,
*,
BundleId: str,
DryRun: bool = ...,
) -> CancelBundleTaskResultTypeDef: # (1)
...
# cancel_bundle_task method usage example with argument unpacking
kwargs: CancelBundleTaskRequestRequestTypeDef = { # (1)
"BundleId": ...,
}
parent.cancel_bundle_task(**kwargs)
cancel_capacity_reservation#
Cancels the specified Capacity Reservation, releases the reserved capacity, and
changes the Capacity Reservation's state to cancelled
.
Type annotations and code completion for session.create_client("ec2").cancel_capacity_reservation
method.
boto3 documentation
# cancel_capacity_reservation method definition
await def cancel_capacity_reservation(
self,
*,
CapacityReservationId: str,
DryRun: bool = ...,
) -> CancelCapacityReservationResultTypeDef: # (1)
...
# cancel_capacity_reservation method usage example with argument unpacking
kwargs: CancelCapacityReservationRequestRequestTypeDef = { # (1)
"CapacityReservationId": ...,
}
parent.cancel_capacity_reservation(**kwargs)
cancel_capacity_reservation_fleets#
Cancels one or more Capacity Reservation Fleets.
Type annotations and code completion for session.create_client("ec2").cancel_capacity_reservation_fleets
method.
boto3 documentation
# cancel_capacity_reservation_fleets method definition
await def cancel_capacity_reservation_fleets(
self,
*,
CapacityReservationFleetIds: Sequence[str],
DryRun: bool = ...,
) -> CancelCapacityReservationFleetsResultTypeDef: # (1)
...
# cancel_capacity_reservation_fleets method usage example with argument unpacking
kwargs: CancelCapacityReservationFleetsRequestRequestTypeDef = { # (1)
"CapacityReservationFleetIds": ...,
}
parent.cancel_capacity_reservation_fleets(**kwargs)
cancel_conversion_task#
Cancels an active conversion task.
Type annotations and code completion for session.create_client("ec2").cancel_conversion_task
method.
boto3 documentation
# cancel_conversion_task method definition
await def cancel_conversion_task(
self,
*,
ConversionTaskId: str,
DryRun: bool = ...,
ReasonMessage: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# cancel_conversion_task method usage example with argument unpacking
kwargs: CancelConversionRequestRequestTypeDef = { # (1)
"ConversionTaskId": ...,
}
parent.cancel_conversion_task(**kwargs)
cancel_export_task#
Cancels an active export task.
Type annotations and code completion for session.create_client("ec2").cancel_export_task
method.
boto3 documentation
# cancel_export_task method definition
await def cancel_export_task(
self,
*,
ExportTaskId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# cancel_export_task method usage example with argument unpacking
kwargs: CancelExportTaskRequestRequestTypeDef = { # (1)
"ExportTaskId": ...,
}
parent.cancel_export_task(**kwargs)
cancel_image_launch_permission#
Removes your Amazon Web Services account from the launch permissions for the specified AMI.
Type annotations and code completion for session.create_client("ec2").cancel_image_launch_permission
method.
boto3 documentation
# cancel_image_launch_permission method definition
await def cancel_image_launch_permission(
self,
*,
ImageId: str,
DryRun: bool = ...,
) -> CancelImageLaunchPermissionResultTypeDef: # (1)
...
# cancel_image_launch_permission method usage example with argument unpacking
kwargs: CancelImageLaunchPermissionRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.cancel_image_launch_permission(**kwargs)
cancel_import_task#
Cancels an in-process import virtual machine or import snapshot task.
Type annotations and code completion for session.create_client("ec2").cancel_import_task
method.
boto3 documentation
# cancel_import_task method definition
await def cancel_import_task(
self,
*,
CancelReason: str = ...,
DryRun: bool = ...,
ImportTaskId: str = ...,
) -> CancelImportTaskResultTypeDef: # (1)
...
# cancel_import_task method usage example with argument unpacking
kwargs: CancelImportTaskRequestRequestTypeDef = { # (1)
"CancelReason": ...,
}
parent.cancel_import_task(**kwargs)
cancel_reserved_instances_listing#
Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.
Type annotations and code completion for session.create_client("ec2").cancel_reserved_instances_listing
method.
boto3 documentation
# cancel_reserved_instances_listing method definition
await def cancel_reserved_instances_listing(
self,
*,
ReservedInstancesListingId: str,
) -> CancelReservedInstancesListingResultTypeDef: # (1)
...
# cancel_reserved_instances_listing method usage example with argument unpacking
kwargs: CancelReservedInstancesListingRequestRequestTypeDef = { # (1)
"ReservedInstancesListingId": ...,
}
parent.cancel_reserved_instances_listing(**kwargs)
cancel_spot_fleet_requests#
Cancels the specified Spot Fleet requests.
Type annotations and code completion for session.create_client("ec2").cancel_spot_fleet_requests
method.
boto3 documentation
# cancel_spot_fleet_requests method definition
await def cancel_spot_fleet_requests(
self,
*,
SpotFleetRequestIds: Sequence[str],
TerminateInstances: bool,
DryRun: bool = ...,
) -> CancelSpotFleetRequestsResponseTypeDef: # (1)
...
# cancel_spot_fleet_requests method usage example with argument unpacking
kwargs: CancelSpotFleetRequestsRequestRequestTypeDef = { # (1)
"SpotFleetRequestIds": ...,
"TerminateInstances": ...,
}
parent.cancel_spot_fleet_requests(**kwargs)
cancel_spot_instance_requests#
Cancels one or more Spot Instance requests.
Type annotations and code completion for session.create_client("ec2").cancel_spot_instance_requests
method.
boto3 documentation
# cancel_spot_instance_requests method definition
await def cancel_spot_instance_requests(
self,
*,
SpotInstanceRequestIds: Sequence[str],
DryRun: bool = ...,
) -> CancelSpotInstanceRequestsResultTypeDef: # (1)
...
# cancel_spot_instance_requests method usage example with argument unpacking
kwargs: CancelSpotInstanceRequestsRequestRequestTypeDef = { # (1)
"SpotInstanceRequestIds": ...,
}
parent.cancel_spot_instance_requests(**kwargs)
close#
Closes underlying endpoint connections.
Type annotations and code completion for session.create_client("ec2").close
method.
boto3 documentation
# close method definition
await def close(
self,
) -> None:
...
confirm_product_instance#
Determines whether a product code is associated with an instance.
Type annotations and code completion for session.create_client("ec2").confirm_product_instance
method.
boto3 documentation
# confirm_product_instance method definition
await def confirm_product_instance(
self,
*,
InstanceId: str,
ProductCode: str,
DryRun: bool = ...,
) -> ConfirmProductInstanceResultTypeDef: # (1)
...
# confirm_product_instance method usage example with argument unpacking
kwargs: ConfirmProductInstanceRequestRequestTypeDef = { # (1)
"InstanceId": ...,
"ProductCode": ...,
}
parent.confirm_product_instance(**kwargs)
copy_fpga_image#
Copies the specified Amazon FPGA Image (AFI) to the current Region.
Type annotations and code completion for session.create_client("ec2").copy_fpga_image
method.
boto3 documentation
# copy_fpga_image method definition
await def copy_fpga_image(
self,
*,
SourceFpgaImageId: str,
SourceRegion: str,
DryRun: bool = ...,
Description: str = ...,
Name: str = ...,
ClientToken: str = ...,
) -> CopyFpgaImageResultTypeDef: # (1)
...
# copy_fpga_image method usage example with argument unpacking
kwargs: CopyFpgaImageRequestRequestTypeDef = { # (1)
"SourceFpgaImageId": ...,
"SourceRegion": ...,
}
parent.copy_fpga_image(**kwargs)
copy_image#
Initiates the copy of an AMI.
Type annotations and code completion for session.create_client("ec2").copy_image
method.
boto3 documentation
# copy_image method definition
await def copy_image(
self,
*,
Name: str,
SourceImageId: str,
SourceRegion: str,
ClientToken: str = ...,
Description: str = ...,
Encrypted: bool = ...,
KmsKeyId: str = ...,
DestinationOutpostArn: str = ...,
DryRun: bool = ...,
CopyImageTags: bool = ...,
) -> CopyImageResultTypeDef: # (1)
...
# copy_image method usage example with argument unpacking
kwargs: CopyImageRequestRequestTypeDef = { # (1)
"Name": ...,
"SourceImageId": ...,
"SourceRegion": ...,
}
parent.copy_image(**kwargs)
copy_snapshot#
Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3.
Type annotations and code completion for session.create_client("ec2").copy_snapshot
method.
boto3 documentation
# copy_snapshot method definition
await def copy_snapshot(
self,
*,
SourceRegion: str,
SourceSnapshotId: str,
Description: str = ...,
DestinationOutpostArn: str = ...,
DestinationRegion: str = ...,
Encrypted: bool = ...,
KmsKeyId: str = ...,
PresignedUrl: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CopySnapshotResultTypeDef: # (2)
...
# copy_snapshot method usage example with argument unpacking
kwargs: CopySnapshotRequestRequestTypeDef = { # (1)
"SourceRegion": ...,
"SourceSnapshotId": ...,
}
parent.copy_snapshot(**kwargs)
create_capacity_reservation#
Creates a new Capacity Reservation with the specified attributes.
Type annotations and code completion for session.create_client("ec2").create_capacity_reservation
method.
boto3 documentation
# create_capacity_reservation method definition
await def create_capacity_reservation(
self,
*,
InstanceType: str,
InstancePlatform: CapacityReservationInstancePlatformType, # (1)
InstanceCount: int,
ClientToken: str = ...,
AvailabilityZone: str = ...,
AvailabilityZoneId: str = ...,
Tenancy: CapacityReservationTenancyType = ..., # (2)
EbsOptimized: bool = ...,
EphemeralStorage: bool = ...,
EndDate: Union[datetime, str] = ...,
EndDateType: EndDateTypeType = ..., # (3)
InstanceMatchCriteria: InstanceMatchCriteriaType = ..., # (4)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (5)
DryRun: bool = ...,
OutpostArn: str = ...,
PlacementGroupArn: str = ...,
) -> CreateCapacityReservationResultTypeDef: # (6)
...
- See CapacityReservationInstancePlatformType
- See CapacityReservationTenancyType
- See EndDateTypeType
- See InstanceMatchCriteriaType
- See TagSpecificationTypeDef
- See CreateCapacityReservationResultTypeDef
# create_capacity_reservation method usage example with argument unpacking
kwargs: CreateCapacityReservationRequestRequestTypeDef = { # (1)
"InstanceType": ...,
"InstancePlatform": ...,
"InstanceCount": ...,
}
parent.create_capacity_reservation(**kwargs)
create_capacity_reservation_fleet#
Creates a Capacity Reservation Fleet.
Type annotations and code completion for session.create_client("ec2").create_capacity_reservation_fleet
method.
boto3 documentation
# create_capacity_reservation_fleet method definition
await def create_capacity_reservation_fleet(
self,
*,
InstanceTypeSpecifications: Sequence[ReservationFleetInstanceSpecificationTypeDef], # (1)
TotalTargetCapacity: int,
AllocationStrategy: str = ...,
ClientToken: str = ...,
Tenancy: FleetCapacityReservationTenancyType = ..., # (2)
EndDate: Union[datetime, str] = ...,
InstanceMatchCriteria: FleetInstanceMatchCriteriaType = ..., # (3)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (4)
DryRun: bool = ...,
) -> CreateCapacityReservationFleetResultTypeDef: # (5)
...
- See ReservationFleetInstanceSpecificationTypeDef
- See FleetCapacityReservationTenancyType
- See FleetInstanceMatchCriteriaType
- See TagSpecificationTypeDef
- See CreateCapacityReservationFleetResultTypeDef
# create_capacity_reservation_fleet method usage example with argument unpacking
kwargs: CreateCapacityReservationFleetRequestRequestTypeDef = { # (1)
"InstanceTypeSpecifications": ...,
"TotalTargetCapacity": ...,
}
parent.create_capacity_reservation_fleet(**kwargs)
create_carrier_gateway#
Creates a carrier gateway.
Type annotations and code completion for session.create_client("ec2").create_carrier_gateway
method.
boto3 documentation
# create_carrier_gateway method definition
await def create_carrier_gateway(
self,
*,
VpcId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
ClientToken: str = ...,
) -> CreateCarrierGatewayResultTypeDef: # (2)
...
# create_carrier_gateway method usage example with argument unpacking
kwargs: CreateCarrierGatewayRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.create_carrier_gateway(**kwargs)
create_client_vpn_endpoint#
Creates a Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").create_client_vpn_endpoint
method.
boto3 documentation
# create_client_vpn_endpoint method definition
await def create_client_vpn_endpoint(
self,
*,
ClientCidrBlock: str,
ServerCertificateArn: str,
AuthenticationOptions: Sequence[ClientVpnAuthenticationRequestTypeDef], # (1)
ConnectionLogOptions: ConnectionLogOptionsTypeDef, # (2)
DnsServers: Sequence[str] = ...,
TransportProtocol: TransportProtocolType = ..., # (3)
VpnPort: int = ...,
Description: str = ...,
SplitTunnel: bool = ...,
DryRun: bool = ...,
ClientToken: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (4)
SecurityGroupIds: Sequence[str] = ...,
VpcId: str = ...,
SelfServicePortal: SelfServicePortalType = ..., # (5)
ClientConnectOptions: ClientConnectOptionsTypeDef = ..., # (6)
SessionTimeoutHours: int = ...,
ClientLoginBannerOptions: ClientLoginBannerOptionsTypeDef = ..., # (7)
) -> CreateClientVpnEndpointResultTypeDef: # (8)
...
- See ClientVpnAuthenticationRequestTypeDef
- See ConnectionLogOptionsTypeDef
- See TransportProtocolType
- See TagSpecificationTypeDef
- See SelfServicePortalType
- See ClientConnectOptionsTypeDef
- See ClientLoginBannerOptionsTypeDef
- See CreateClientVpnEndpointResultTypeDef
# create_client_vpn_endpoint method usage example with argument unpacking
kwargs: CreateClientVpnEndpointRequestRequestTypeDef = { # (1)
"ClientCidrBlock": ...,
"ServerCertificateArn": ...,
"AuthenticationOptions": ...,
"ConnectionLogOptions": ...,
}
parent.create_client_vpn_endpoint(**kwargs)
create_client_vpn_route#
Adds a route to a network to a Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").create_client_vpn_route
method.
boto3 documentation
# create_client_vpn_route method definition
await def create_client_vpn_route(
self,
*,
ClientVpnEndpointId: str,
DestinationCidrBlock: str,
TargetVpcSubnetId: str,
Description: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
) -> CreateClientVpnRouteResultTypeDef: # (1)
...
# create_client_vpn_route method usage example with argument unpacking
kwargs: CreateClientVpnRouteRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"DestinationCidrBlock": ...,
"TargetVpcSubnetId": ...,
}
parent.create_client_vpn_route(**kwargs)
create_coip_cidr#
Creates a range of customer-owned IP addresses.
Type annotations and code completion for session.create_client("ec2").create_coip_cidr
method.
boto3 documentation
# create_coip_cidr method definition
await def create_coip_cidr(
self,
*,
Cidr: str,
CoipPoolId: str,
DryRun: bool = ...,
) -> CreateCoipCidrResultTypeDef: # (1)
...
# create_coip_cidr method usage example with argument unpacking
kwargs: CreateCoipCidrRequestRequestTypeDef = { # (1)
"Cidr": ...,
"CoipPoolId": ...,
}
parent.create_coip_cidr(**kwargs)
create_coip_pool#
Creates a pool of customer-owned IP (CoIP) addresses.
Type annotations and code completion for session.create_client("ec2").create_coip_pool
method.
boto3 documentation
# create_coip_pool method definition
await def create_coip_pool(
self,
*,
LocalGatewayRouteTableId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateCoipPoolResultTypeDef: # (2)
...
# create_coip_pool method usage example with argument unpacking
kwargs: CreateCoipPoolRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
}
parent.create_coip_pool(**kwargs)
create_customer_gateway#
Provides information to Amazon Web Services about your customer gateway device.
Type annotations and code completion for session.create_client("ec2").create_customer_gateway
method.
boto3 documentation
# create_customer_gateway method definition
await def create_customer_gateway(
self,
*,
Type: GatewayTypeType, # (1)
BgpAsn: int = ...,
PublicIp: str = ...,
CertificateArn: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DeviceName: str = ...,
IpAddress: str = ...,
DryRun: bool = ...,
) -> CreateCustomerGatewayResultTypeDef: # (3)
...
# create_customer_gateway method usage example with argument unpacking
kwargs: CreateCustomerGatewayRequestRequestTypeDef = { # (1)
"Type": ...,
}
parent.create_customer_gateway(**kwargs)
create_default_subnet#
Creates a default subnet with a size /20
IPv4 CIDR block in the specified
Availability Zone in your default VPC.
Type annotations and code completion for session.create_client("ec2").create_default_subnet
method.
boto3 documentation
# create_default_subnet method definition
await def create_default_subnet(
self,
*,
AvailabilityZone: str,
DryRun: bool = ...,
Ipv6Native: bool = ...,
) -> CreateDefaultSubnetResultTypeDef: # (1)
...
# create_default_subnet method usage example with argument unpacking
kwargs: CreateDefaultSubnetRequestRequestTypeDef = { # (1)
"AvailabilityZone": ...,
}
parent.create_default_subnet(**kwargs)
create_default_vpc#
Creates a default VPC with a size /16
IPv4 CIDR block and a default subnet in
each Availability Zone.
Type annotations and code completion for session.create_client("ec2").create_default_vpc
method.
boto3 documentation
# create_default_vpc method definition
await def create_default_vpc(
self,
*,
DryRun: bool = ...,
) -> CreateDefaultVpcResultTypeDef: # (1)
...
# create_default_vpc method usage example with argument unpacking
kwargs: CreateDefaultVpcRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.create_default_vpc(**kwargs)
create_dhcp_options#
Creates a set of DHCP options for your VPC.
Type annotations and code completion for session.create_client("ec2").create_dhcp_options
method.
boto3 documentation
# create_dhcp_options method definition
await def create_dhcp_options(
self,
*,
DhcpConfigurations: Sequence[NewDhcpConfigurationTypeDef], # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateDhcpOptionsResultTypeDef: # (3)
...
# create_dhcp_options method usage example with argument unpacking
kwargs: CreateDhcpOptionsRequestRequestTypeDef = { # (1)
"DhcpConfigurations": ...,
}
parent.create_dhcp_options(**kwargs)
create_egress_only_internet_gateway#
Type annotations and code completion for session.create_client("ec2").create_egress_only_internet_gateway
method.
boto3 documentation
# create_egress_only_internet_gateway method definition
await def create_egress_only_internet_gateway(
self,
*,
VpcId: str,
ClientToken: str = ...,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> CreateEgressOnlyInternetGatewayResultTypeDef: # (2)
...
# create_egress_only_internet_gateway method usage example with argument unpacking
kwargs: CreateEgressOnlyInternetGatewayRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.create_egress_only_internet_gateway(**kwargs)
create_fleet#
Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances.
Type annotations and code completion for session.create_client("ec2").create_fleet
method.
boto3 documentation
# create_fleet method definition
await def create_fleet(
self,
*,
LaunchTemplateConfigs: Sequence[FleetLaunchTemplateConfigRequestTypeDef], # (1)
TargetCapacitySpecification: TargetCapacitySpecificationRequestTypeDef, # (2)
DryRun: bool = ...,
ClientToken: str = ...,
SpotOptions: SpotOptionsRequestTypeDef = ..., # (3)
OnDemandOptions: OnDemandOptionsRequestTypeDef = ..., # (4)
ExcessCapacityTerminationPolicy: FleetExcessCapacityTerminationPolicyType = ..., # (5)
TerminateInstancesWithExpiration: bool = ...,
Type: FleetTypeType = ..., # (6)
ValidFrom: Union[datetime, str] = ...,
ValidUntil: Union[datetime, str] = ...,
ReplaceUnhealthyInstances: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (7)
Context: str = ...,
) -> CreateFleetResultTypeDef: # (8)
...
- See FleetLaunchTemplateConfigRequestTypeDef
- See TargetCapacitySpecificationRequestTypeDef
- See SpotOptionsRequestTypeDef
- See OnDemandOptionsRequestTypeDef
- See FleetExcessCapacityTerminationPolicyType
- See FleetTypeType
- See TagSpecificationTypeDef
- See CreateFleetResultTypeDef
# create_fleet method usage example with argument unpacking
kwargs: CreateFleetRequestRequestTypeDef = { # (1)
"LaunchTemplateConfigs": ...,
"TargetCapacitySpecification": ...,
}
parent.create_fleet(**kwargs)
create_flow_logs#
Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.
Type annotations and code completion for session.create_client("ec2").create_flow_logs
method.
boto3 documentation
# create_flow_logs method definition
await def create_flow_logs(
self,
*,
ResourceIds: Sequence[str],
ResourceType: FlowLogsResourceTypeType, # (1)
DryRun: bool = ...,
ClientToken: str = ...,
DeliverLogsPermissionArn: str = ...,
DeliverCrossAccountRole: str = ...,
LogGroupName: str = ...,
TrafficType: TrafficTypeType = ..., # (2)
LogDestinationType: LogDestinationTypeType = ..., # (3)
LogDestination: str = ...,
LogFormat: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (4)
MaxAggregationInterval: int = ...,
DestinationOptions: DestinationOptionsRequestTypeDef = ..., # (5)
) -> CreateFlowLogsResultTypeDef: # (6)
...
- See FlowLogsResourceTypeType
- See TrafficTypeType
- See LogDestinationTypeType
- See TagSpecificationTypeDef
- See DestinationOptionsRequestTypeDef
- See CreateFlowLogsResultTypeDef
# create_flow_logs method usage example with argument unpacking
kwargs: CreateFlowLogsRequestRequestTypeDef = { # (1)
"ResourceIds": ...,
"ResourceType": ...,
}
parent.create_flow_logs(**kwargs)
create_fpga_image#
Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
Type annotations and code completion for session.create_client("ec2").create_fpga_image
method.
boto3 documentation
# create_fpga_image method definition
await def create_fpga_image(
self,
*,
InputStorageLocation: StorageLocationTypeDef, # (1)
DryRun: bool = ...,
LogsStorageLocation: StorageLocationTypeDef = ..., # (1)
Description: str = ...,
Name: str = ...,
ClientToken: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (3)
) -> CreateFpgaImageResultTypeDef: # (4)
...
- See StorageLocationTypeDef
- See StorageLocationTypeDef
- See TagSpecificationTypeDef
- See CreateFpgaImageResultTypeDef
# create_fpga_image method usage example with argument unpacking
kwargs: CreateFpgaImageRequestRequestTypeDef = { # (1)
"InputStorageLocation": ...,
}
parent.create_fpga_image(**kwargs)
create_image#
Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.
Type annotations and code completion for session.create_client("ec2").create_image
method.
boto3 documentation
# create_image method definition
await def create_image(
self,
*,
InstanceId: str,
Name: str,
BlockDeviceMappings: Sequence[BlockDeviceMappingTypeDef] = ..., # (1)
Description: str = ...,
DryRun: bool = ...,
NoReboot: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> CreateImageResultTypeDef: # (3)
...
# create_image method usage example with argument unpacking
kwargs: CreateImageRequestRequestTypeDef = { # (1)
"InstanceId": ...,
"Name": ...,
}
parent.create_image(**kwargs)
create_instance_connect_endpoint#
Creates an EC2 Instance Connect Endpoint.
Type annotations and code completion for session.create_client("ec2").create_instance_connect_endpoint
method.
boto3 documentation
# create_instance_connect_endpoint method definition
await def create_instance_connect_endpoint(
self,
*,
SubnetId: str,
DryRun: bool = ...,
SecurityGroupIds: Sequence[str] = ...,
PreserveClientIp: bool = ...,
ClientToken: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> CreateInstanceConnectEndpointResultTypeDef: # (2)
...
# create_instance_connect_endpoint method usage example with argument unpacking
kwargs: CreateInstanceConnectEndpointRequestRequestTypeDef = { # (1)
"SubnetId": ...,
}
parent.create_instance_connect_endpoint(**kwargs)
create_instance_event_window#
Creates an event window in which scheduled events for the associated Amazon EC2 instances can run.
Type annotations and code completion for session.create_client("ec2").create_instance_event_window
method.
boto3 documentation
# create_instance_event_window method definition
await def create_instance_event_window(
self,
*,
DryRun: bool = ...,
Name: str = ...,
TimeRanges: Sequence[InstanceEventWindowTimeRangeRequestTypeDef] = ..., # (1)
CronExpression: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> CreateInstanceEventWindowResultTypeDef: # (3)
...
- See InstanceEventWindowTimeRangeRequestTypeDef
- See TagSpecificationTypeDef
- See CreateInstanceEventWindowResultTypeDef
# create_instance_event_window method usage example with argument unpacking
kwargs: CreateInstanceEventWindowRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.create_instance_event_window(**kwargs)
create_instance_export_task#
Exports a running or stopped instance to an Amazon S3 bucket.
Type annotations and code completion for session.create_client("ec2").create_instance_export_task
method.
boto3 documentation
# create_instance_export_task method definition
await def create_instance_export_task(
self,
*,
ExportToS3Task: ExportToS3TaskSpecificationTypeDef, # (1)
InstanceId: str,
TargetEnvironment: ExportEnvironmentType, # (2)
Description: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (3)
) -> CreateInstanceExportTaskResultTypeDef: # (4)
...
- See ExportToS3TaskSpecificationTypeDef
- See ExportEnvironmentType
- See TagSpecificationTypeDef
- See CreateInstanceExportTaskResultTypeDef
# create_instance_export_task method usage example with argument unpacking
kwargs: CreateInstanceExportTaskRequestRequestTypeDef = { # (1)
"ExportToS3Task": ...,
"InstanceId": ...,
"TargetEnvironment": ...,
}
parent.create_instance_export_task(**kwargs)
create_internet_gateway#
Creates an internet gateway for use with a VPC.
Type annotations and code completion for session.create_client("ec2").create_internet_gateway
method.
boto3 documentation
# create_internet_gateway method definition
await def create_internet_gateway(
self,
*,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateInternetGatewayResultTypeDef: # (2)
...
# create_internet_gateway method usage example with argument unpacking
kwargs: CreateInternetGatewayRequestRequestTypeDef = { # (1)
"TagSpecifications": ...,
}
parent.create_internet_gateway(**kwargs)
create_ipam#
Create an IPAM.
Type annotations and code completion for session.create_client("ec2").create_ipam
method.
boto3 documentation
# create_ipam method definition
await def create_ipam(
self,
*,
DryRun: bool = ...,
Description: str = ...,
OperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
ClientToken: str = ...,
) -> CreateIpamResultTypeDef: # (3)
...
# create_ipam method usage example with argument unpacking
kwargs: CreateIpamRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.create_ipam(**kwargs)
create_ipam_pool#
Create an IP address pool for Amazon VPC IP Address Manager (IPAM).
Type annotations and code completion for session.create_client("ec2").create_ipam_pool
method.
boto3 documentation
# create_ipam_pool method definition
await def create_ipam_pool(
self,
*,
IpamScopeId: str,
AddressFamily: AddressFamilyType, # (1)
DryRun: bool = ...,
Locale: str = ...,
SourceIpamPoolId: str = ...,
Description: str = ...,
AutoImport: bool = ...,
PubliclyAdvertisable: bool = ...,
AllocationMinNetmaskLength: int = ...,
AllocationMaxNetmaskLength: int = ...,
AllocationDefaultNetmaskLength: int = ...,
AllocationResourceTags: Sequence[RequestIpamResourceTagTypeDef] = ..., # (2)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (3)
ClientToken: str = ...,
AwsService: IpamPoolAwsServiceType = ..., # (4)
PublicIpSource: IpamPoolPublicIpSourceType = ..., # (5)
) -> CreateIpamPoolResultTypeDef: # (6)
...
- See AddressFamilyType
- See RequestIpamResourceTagTypeDef
- See TagSpecificationTypeDef
- See IpamPoolAwsServiceType
- See IpamPoolPublicIpSourceType
- See CreateIpamPoolResultTypeDef
# create_ipam_pool method usage example with argument unpacking
kwargs: CreateIpamPoolRequestRequestTypeDef = { # (1)
"IpamScopeId": ...,
"AddressFamily": ...,
}
parent.create_ipam_pool(**kwargs)
create_ipam_resource_discovery#
Creates an IPAM resource discovery.
Type annotations and code completion for session.create_client("ec2").create_ipam_resource_discovery
method.
boto3 documentation
# create_ipam_resource_discovery method definition
await def create_ipam_resource_discovery(
self,
*,
DryRun: bool = ...,
Description: str = ...,
OperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
ClientToken: str = ...,
) -> CreateIpamResourceDiscoveryResultTypeDef: # (3)
...
- See AddIpamOperatingRegionTypeDef
- See TagSpecificationTypeDef
- See CreateIpamResourceDiscoveryResultTypeDef
# create_ipam_resource_discovery method usage example with argument unpacking
kwargs: CreateIpamResourceDiscoveryRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.create_ipam_resource_discovery(**kwargs)
create_ipam_scope#
Create an IPAM scope.
Type annotations and code completion for session.create_client("ec2").create_ipam_scope
method.
boto3 documentation
# create_ipam_scope method definition
await def create_ipam_scope(
self,
*,
IpamId: str,
DryRun: bool = ...,
Description: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
ClientToken: str = ...,
) -> CreateIpamScopeResultTypeDef: # (2)
...
# create_ipam_scope method usage example with argument unpacking
kwargs: CreateIpamScopeRequestRequestTypeDef = { # (1)
"IpamId": ...,
}
parent.create_ipam_scope(**kwargs)
create_key_pair#
Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format.
Type annotations and code completion for session.create_client("ec2").create_key_pair
method.
boto3 documentation
# create_key_pair method definition
await def create_key_pair(
self,
*,
KeyName: str,
DryRun: bool = ...,
KeyType: KeyTypeType = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
KeyFormat: KeyFormatType = ..., # (3)
) -> KeyPairTypeDef: # (4)
...
- See KeyTypeType
- See TagSpecificationTypeDef
- See KeyFormatType
- See KeyPairTypeDef
# create_key_pair method usage example with argument unpacking
kwargs: CreateKeyPairRequestRequestTypeDef = { # (1)
"KeyName": ...,
}
parent.create_key_pair(**kwargs)
create_launch_template#
Creates a launch template.
Type annotations and code completion for session.create_client("ec2").create_launch_template
method.
boto3 documentation
# create_launch_template method definition
await def create_launch_template(
self,
*,
LaunchTemplateName: str,
LaunchTemplateData: RequestLaunchTemplateDataTypeDef, # (1)
DryRun: bool = ...,
ClientToken: str = ...,
VersionDescription: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> CreateLaunchTemplateResultTypeDef: # (3)
...
- See RequestLaunchTemplateDataTypeDef
- See TagSpecificationTypeDef
- See CreateLaunchTemplateResultTypeDef
# create_launch_template method usage example with argument unpacking
kwargs: CreateLaunchTemplateRequestRequestTypeDef = { # (1)
"LaunchTemplateName": ...,
"LaunchTemplateData": ...,
}
parent.create_launch_template(**kwargs)
create_launch_template_version#
Creates a new version of a launch template.
Type annotations and code completion for session.create_client("ec2").create_launch_template_version
method.
boto3 documentation
# create_launch_template_version method definition
await def create_launch_template_version(
self,
*,
LaunchTemplateData: RequestLaunchTemplateDataTypeDef, # (1)
DryRun: bool = ...,
ClientToken: str = ...,
LaunchTemplateId: str = ...,
LaunchTemplateName: str = ...,
SourceVersion: str = ...,
VersionDescription: str = ...,
ResolveAlias: bool = ...,
) -> CreateLaunchTemplateVersionResultTypeDef: # (2)
...
# create_launch_template_version method usage example with argument unpacking
kwargs: CreateLaunchTemplateVersionRequestRequestTypeDef = { # (1)
"LaunchTemplateData": ...,
}
parent.create_launch_template_version(**kwargs)
create_local_gateway_route#
Creates a static route for the specified local gateway route table.
Type annotations and code completion for session.create_client("ec2").create_local_gateway_route
method.
boto3 documentation
# create_local_gateway_route method definition
await def create_local_gateway_route(
self,
*,
LocalGatewayRouteTableId: str,
DestinationCidrBlock: str = ...,
LocalGatewayVirtualInterfaceGroupId: str = ...,
DryRun: bool = ...,
NetworkInterfaceId: str = ...,
DestinationPrefixListId: str = ...,
) -> CreateLocalGatewayRouteResultTypeDef: # (1)
...
# create_local_gateway_route method usage example with argument unpacking
kwargs: CreateLocalGatewayRouteRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
}
parent.create_local_gateway_route(**kwargs)
create_local_gateway_route_table#
Creates a local gateway route table.
Type annotations and code completion for session.create_client("ec2").create_local_gateway_route_table
method.
boto3 documentation
# create_local_gateway_route_table method definition
await def create_local_gateway_route_table(
self,
*,
LocalGatewayId: str,
Mode: LocalGatewayRouteTableModeType = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateLocalGatewayRouteTableResultTypeDef: # (3)
...
- See LocalGatewayRouteTableModeType
- See TagSpecificationTypeDef
- See CreateLocalGatewayRouteTableResultTypeDef
# create_local_gateway_route_table method usage example with argument unpacking
kwargs: CreateLocalGatewayRouteTableRequestRequestTypeDef = { # (1)
"LocalGatewayId": ...,
}
parent.create_local_gateway_route_table(**kwargs)
create_local_gateway_route_table_virtual_interface_group_association#
Creates a local gateway route table virtual interface group association.
Type annotations and code completion for session.create_client("ec2").create_local_gateway_route_table_virtual_interface_group_association
method.
boto3 documentation
# create_local_gateway_route_table_virtual_interface_group_association method definition
await def create_local_gateway_route_table_virtual_interface_group_association(
self,
*,
LocalGatewayRouteTableId: str,
LocalGatewayVirtualInterfaceGroupId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef: # (2)
...
- See TagSpecificationTypeDef
- See CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef
# create_local_gateway_route_table_virtual_interface_group_association method usage example with argument unpacking
kwargs: CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
"LocalGatewayVirtualInterfaceGroupId": ...,
}
parent.create_local_gateway_route_table_virtual_interface_group_association(**kwargs)
create_local_gateway_route_table_vpc_association#
Associates the specified VPC with the specified local gateway route table.
Type annotations and code completion for session.create_client("ec2").create_local_gateway_route_table_vpc_association
method.
boto3 documentation
# create_local_gateway_route_table_vpc_association method definition
await def create_local_gateway_route_table_vpc_association(
self,
*,
LocalGatewayRouteTableId: str,
VpcId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateLocalGatewayRouteTableVpcAssociationResultTypeDef: # (2)
...
# create_local_gateway_route_table_vpc_association method usage example with argument unpacking
kwargs: CreateLocalGatewayRouteTableVpcAssociationRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
"VpcId": ...,
}
parent.create_local_gateway_route_table_vpc_association(**kwargs)
create_managed_prefix_list#
Creates a managed prefix list.
Type annotations and code completion for session.create_client("ec2").create_managed_prefix_list
method.
boto3 documentation
# create_managed_prefix_list method definition
await def create_managed_prefix_list(
self,
*,
PrefixListName: str,
MaxEntries: int,
AddressFamily: str,
DryRun: bool = ...,
Entries: Sequence[AddPrefixListEntryTypeDef] = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
ClientToken: str = ...,
) -> CreateManagedPrefixListResultTypeDef: # (3)
...
# create_managed_prefix_list method usage example with argument unpacking
kwargs: CreateManagedPrefixListRequestRequestTypeDef = { # (1)
"PrefixListName": ...,
"MaxEntries": ...,
"AddressFamily": ...,
}
parent.create_managed_prefix_list(**kwargs)
create_nat_gateway#
Creates a NAT gateway in the specified subnet.
Type annotations and code completion for session.create_client("ec2").create_nat_gateway
method.
boto3 documentation
# create_nat_gateway method definition
await def create_nat_gateway(
self,
*,
SubnetId: str,
AllocationId: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
ConnectivityType: ConnectivityTypeType = ..., # (2)
PrivateIpAddress: str = ...,
SecondaryAllocationIds: Sequence[str] = ...,
SecondaryPrivateIpAddresses: Sequence[str] = ...,
SecondaryPrivateIpAddressCount: int = ...,
) -> CreateNatGatewayResultTypeDef: # (3)
...
# create_nat_gateway method usage example with argument unpacking
kwargs: CreateNatGatewayRequestRequestTypeDef = { # (1)
"SubnetId": ...,
}
parent.create_nat_gateway(**kwargs)
create_network_acl#
Creates a network ACL in a VPC.
Type annotations and code completion for session.create_client("ec2").create_network_acl
method.
boto3 documentation
# create_network_acl method definition
await def create_network_acl(
self,
*,
VpcId: str,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> CreateNetworkAclResultTypeDef: # (2)
...
# create_network_acl method usage example with argument unpacking
kwargs: CreateNetworkAclRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.create_network_acl(**kwargs)
create_network_acl_entry#
Creates an entry (a rule) in a network ACL with the specified rule number.
Type annotations and code completion for session.create_client("ec2").create_network_acl_entry
method.
boto3 documentation
# create_network_acl_entry method definition
await def create_network_acl_entry(
self,
*,
Egress: bool,
NetworkAclId: str,
Protocol: str,
RuleAction: RuleActionType, # (1)
RuleNumber: int,
CidrBlock: str = ...,
DryRun: bool = ...,
IcmpTypeCode: IcmpTypeCodeTypeDef = ..., # (2)
Ipv6CidrBlock: str = ...,
PortRange: PortRangeTypeDef = ..., # (3)
) -> EmptyResponseMetadataTypeDef: # (4)
...
# create_network_acl_entry method usage example with argument unpacking
kwargs: CreateNetworkAclEntryRequestRequestTypeDef = { # (1)
"Egress": ...,
"NetworkAclId": ...,
"Protocol": ...,
"RuleAction": ...,
"RuleNumber": ...,
}
parent.create_network_acl_entry(**kwargs)
create_network_insights_access_scope#
Creates a Network Access Scope.
Type annotations and code completion for session.create_client("ec2").create_network_insights_access_scope
method.
boto3 documentation
# create_network_insights_access_scope method definition
await def create_network_insights_access_scope(
self,
*,
ClientToken: str,
MatchPaths: Sequence[AccessScopePathRequestTypeDef] = ..., # (1)
ExcludePaths: Sequence[AccessScopePathRequestTypeDef] = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (3)
DryRun: bool = ...,
) -> CreateNetworkInsightsAccessScopeResultTypeDef: # (4)
...
- See AccessScopePathRequestTypeDef
- See AccessScopePathRequestTypeDef
- See TagSpecificationTypeDef
- See CreateNetworkInsightsAccessScopeResultTypeDef
# create_network_insights_access_scope method usage example with argument unpacking
kwargs: CreateNetworkInsightsAccessScopeRequestRequestTypeDef = { # (1)
"ClientToken": ...,
}
parent.create_network_insights_access_scope(**kwargs)
create_network_insights_path#
Creates a path to analyze for reachability.
Type annotations and code completion for session.create_client("ec2").create_network_insights_path
method.
boto3 documentation
# create_network_insights_path method definition
await def create_network_insights_path(
self,
*,
Source: str,
Protocol: ProtocolType, # (1)
ClientToken: str,
SourceIp: str = ...,
DestinationIp: str = ...,
Destination: str = ...,
DestinationPort: int = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
FilterAtSource: PathRequestFilterTypeDef = ..., # (3)
FilterAtDestination: PathRequestFilterTypeDef = ..., # (3)
) -> CreateNetworkInsightsPathResultTypeDef: # (5)
...
- See ProtocolType
- See TagSpecificationTypeDef
- See PathRequestFilterTypeDef
- See PathRequestFilterTypeDef
- See CreateNetworkInsightsPathResultTypeDef
# create_network_insights_path method usage example with argument unpacking
kwargs: CreateNetworkInsightsPathRequestRequestTypeDef = { # (1)
"Source": ...,
"Protocol": ...,
"ClientToken": ...,
}
parent.create_network_insights_path(**kwargs)
create_network_interface#
Creates a network interface in the specified subnet.
Type annotations and code completion for session.create_client("ec2").create_network_interface
method.
boto3 documentation
# create_network_interface method definition
await def create_network_interface(
self,
*,
SubnetId: str,
Description: str = ...,
DryRun: bool = ...,
Groups: Sequence[str] = ...,
Ipv6AddressCount: int = ...,
Ipv6Addresses: Sequence[InstanceIpv6AddressTypeDef] = ..., # (1)
PrivateIpAddress: str = ...,
PrivateIpAddresses: Sequence[PrivateIpAddressSpecificationTypeDef] = ..., # (2)
SecondaryPrivateIpAddressCount: int = ...,
Ipv4Prefixes: Sequence[Ipv4PrefixSpecificationRequestTypeDef] = ..., # (3)
Ipv4PrefixCount: int = ...,
Ipv6Prefixes: Sequence[Ipv6PrefixSpecificationRequestTypeDef] = ..., # (4)
Ipv6PrefixCount: int = ...,
InterfaceType: NetworkInterfaceCreationTypeType = ..., # (5)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (6)
ClientToken: str = ...,
EnablePrimaryIpv6: bool = ...,
) -> CreateNetworkInterfaceResultTypeDef: # (7)
...
- See InstanceIpv6AddressTypeDef
- See PrivateIpAddressSpecificationTypeDef
- See Ipv4PrefixSpecificationRequestTypeDef
- See Ipv6PrefixSpecificationRequestTypeDef
- See NetworkInterfaceCreationTypeType
- See TagSpecificationTypeDef
- See CreateNetworkInterfaceResultTypeDef
# create_network_interface method usage example with argument unpacking
kwargs: CreateNetworkInterfaceRequestRequestTypeDef = { # (1)
"SubnetId": ...,
}
parent.create_network_interface(**kwargs)
create_network_interface_permission#
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.
Type annotations and code completion for session.create_client("ec2").create_network_interface_permission
method.
boto3 documentation
# create_network_interface_permission method definition
await def create_network_interface_permission(
self,
*,
NetworkInterfaceId: str,
Permission: InterfacePermissionTypeType, # (1)
AwsAccountId: str = ...,
AwsService: str = ...,
DryRun: bool = ...,
) -> CreateNetworkInterfacePermissionResultTypeDef: # (2)
...
# create_network_interface_permission method usage example with argument unpacking
kwargs: CreateNetworkInterfacePermissionRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
"Permission": ...,
}
parent.create_network_interface_permission(**kwargs)
create_placement_group#
Creates a placement group in which to launch instances.
Type annotations and code completion for session.create_client("ec2").create_placement_group
method.
boto3 documentation
# create_placement_group method definition
await def create_placement_group(
self,
*,
DryRun: bool = ...,
GroupName: str = ...,
Strategy: PlacementStrategyType = ..., # (1)
PartitionCount: int = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
SpreadLevel: SpreadLevelType = ..., # (3)
) -> CreatePlacementGroupResultTypeDef: # (4)
...
- See PlacementStrategyType
- See TagSpecificationTypeDef
- See SpreadLevelType
- See CreatePlacementGroupResultTypeDef
# create_placement_group method usage example with argument unpacking
kwargs: CreatePlacementGroupRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.create_placement_group(**kwargs)
create_public_ipv4_pool#
Creates a public IPv4 address pool.
Type annotations and code completion for session.create_client("ec2").create_public_ipv4_pool
method.
boto3 documentation
# create_public_ipv4_pool method definition
await def create_public_ipv4_pool(
self,
*,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> CreatePublicIpv4PoolResultTypeDef: # (2)
...
# create_public_ipv4_pool method usage example with argument unpacking
kwargs: CreatePublicIpv4PoolRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.create_public_ipv4_pool(**kwargs)
create_replace_root_volume_task#
Replaces the EBS-backed root volume for a running
instance with a new volume
that is restored to the original root volume's launch state, that is restored to
a specific snapshot taken from the original root volume, or that is restored
from an AMI that has the same key characteristics as that ...
Type annotations and code completion for session.create_client("ec2").create_replace_root_volume_task
method.
boto3 documentation
# create_replace_root_volume_task method definition
await def create_replace_root_volume_task(
self,
*,
InstanceId: str,
SnapshotId: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
ImageId: str = ...,
DeleteReplacedRootVolume: bool = ...,
) -> CreateReplaceRootVolumeTaskResultTypeDef: # (2)
...
# create_replace_root_volume_task method usage example with argument unpacking
kwargs: CreateReplaceRootVolumeTaskRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.create_replace_root_volume_task(**kwargs)
create_reserved_instances_listing#
Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace.
Type annotations and code completion for session.create_client("ec2").create_reserved_instances_listing
method.
boto3 documentation
# create_reserved_instances_listing method definition
await def create_reserved_instances_listing(
self,
*,
ClientToken: str,
InstanceCount: int,
PriceSchedules: Sequence[PriceScheduleSpecificationTypeDef], # (1)
ReservedInstancesId: str,
) -> CreateReservedInstancesListingResultTypeDef: # (2)
...
# create_reserved_instances_listing method usage example with argument unpacking
kwargs: CreateReservedInstancesListingRequestRequestTypeDef = { # (1)
"ClientToken": ...,
"InstanceCount": ...,
"PriceSchedules": ...,
"ReservedInstancesId": ...,
}
parent.create_reserved_instances_listing(**kwargs)
create_restore_image_task#
Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask_.
Type annotations and code completion for session.create_client("ec2").create_restore_image_task
method.
boto3 documentation
# create_restore_image_task method definition
await def create_restore_image_task(
self,
*,
Bucket: str,
ObjectKey: str,
Name: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateRestoreImageTaskResultTypeDef: # (2)
...
# create_restore_image_task method usage example with argument unpacking
kwargs: CreateRestoreImageTaskRequestRequestTypeDef = { # (1)
"Bucket": ...,
"ObjectKey": ...,
}
parent.create_restore_image_task(**kwargs)
create_route#
Creates a route in a route table within a VPC.
Type annotations and code completion for session.create_client("ec2").create_route
method.
boto3 documentation
# create_route method definition
await def create_route(
self,
*,
RouteTableId: str,
DestinationCidrBlock: str = ...,
DestinationIpv6CidrBlock: str = ...,
DestinationPrefixListId: str = ...,
DryRun: bool = ...,
VpcEndpointId: str = ...,
EgressOnlyInternetGatewayId: str = ...,
GatewayId: str = ...,
InstanceId: str = ...,
NatGatewayId: str = ...,
TransitGatewayId: str = ...,
LocalGatewayId: str = ...,
CarrierGatewayId: str = ...,
NetworkInterfaceId: str = ...,
VpcPeeringConnectionId: str = ...,
CoreNetworkArn: str = ...,
) -> CreateRouteResultTypeDef: # (1)
...
# create_route method usage example with argument unpacking
kwargs: CreateRouteRequestRequestTypeDef = { # (1)
"RouteTableId": ...,
}
parent.create_route(**kwargs)
create_route_table#
Creates a route table for the specified VPC.
Type annotations and code completion for session.create_client("ec2").create_route_table
method.
boto3 documentation
# create_route_table method definition
await def create_route_table(
self,
*,
VpcId: str,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> CreateRouteTableResultTypeDef: # (2)
...
# create_route_table method usage example with argument unpacking
kwargs: CreateRouteTableRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.create_route_table(**kwargs)
create_security_group#
Creates a security group.
Type annotations and code completion for session.create_client("ec2").create_security_group
method.
boto3 documentation
# create_security_group method definition
await def create_security_group(
self,
*,
Description: str,
GroupName: str,
VpcId: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateSecurityGroupResultTypeDef: # (2)
...
# create_security_group method usage example with argument unpacking
kwargs: CreateSecurityGroupRequestRequestTypeDef = { # (1)
"Description": ...,
"GroupName": ...,
}
parent.create_security_group(**kwargs)
create_snapshot#
Creates a snapshot of an EBS volume and stores it in Amazon S3.
Type annotations and code completion for session.create_client("ec2").create_snapshot
method.
boto3 documentation
# create_snapshot method definition
await def create_snapshot(
self,
*,
VolumeId: str,
Description: str = ...,
OutpostArn: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> SnapshotResponseTypeDef: # (2)
...
# create_snapshot method usage example with argument unpacking
kwargs: CreateSnapshotRequestRequestTypeDef = { # (1)
"VolumeId": ...,
}
parent.create_snapshot(**kwargs)
create_snapshots#
Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3.
Type annotations and code completion for session.create_client("ec2").create_snapshots
method.
boto3 documentation
# create_snapshots method definition
await def create_snapshots(
self,
*,
InstanceSpecification: InstanceSpecificationTypeDef, # (1)
Description: str = ...,
OutpostArn: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
CopyTagsFromSource: CopyTagsFromSourceType = ..., # (3)
) -> CreateSnapshotsResultTypeDef: # (4)
...
- See InstanceSpecificationTypeDef
- See TagSpecificationTypeDef
- See CopyTagsFromSourceType
- See CreateSnapshotsResultTypeDef
# create_snapshots method usage example with argument unpacking
kwargs: CreateSnapshotsRequestRequestTypeDef = { # (1)
"InstanceSpecification": ...,
}
parent.create_snapshots(**kwargs)
create_spot_datafeed_subscription#
Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs.
Type annotations and code completion for session.create_client("ec2").create_spot_datafeed_subscription
method.
boto3 documentation
# create_spot_datafeed_subscription method definition
await def create_spot_datafeed_subscription(
self,
*,
Bucket: str,
DryRun: bool = ...,
Prefix: str = ...,
) -> CreateSpotDatafeedSubscriptionResultTypeDef: # (1)
...
# create_spot_datafeed_subscription method usage example with argument unpacking
kwargs: CreateSpotDatafeedSubscriptionRequestRequestTypeDef = { # (1)
"Bucket": ...,
}
parent.create_spot_datafeed_subscription(**kwargs)
create_store_image_task#
Stores an AMI as a single object in an Amazon S3 bucket.
Type annotations and code completion for session.create_client("ec2").create_store_image_task
method.
boto3 documentation
# create_store_image_task method definition
await def create_store_image_task(
self,
*,
ImageId: str,
Bucket: str,
S3ObjectTags: Sequence[S3ObjectTagTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateStoreImageTaskResultTypeDef: # (2)
...
# create_store_image_task method usage example with argument unpacking
kwargs: CreateStoreImageTaskRequestRequestTypeDef = { # (1)
"ImageId": ...,
"Bucket": ...,
}
parent.create_store_image_task(**kwargs)
create_subnet#
Creates a subnet in the specified VPC.
Type annotations and code completion for session.create_client("ec2").create_subnet
method.
boto3 documentation
# create_subnet method definition
await def create_subnet(
self,
*,
VpcId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
AvailabilityZone: str = ...,
AvailabilityZoneId: str = ...,
CidrBlock: str = ...,
Ipv6CidrBlock: str = ...,
OutpostArn: str = ...,
DryRun: bool = ...,
Ipv6Native: bool = ...,
) -> CreateSubnetResultTypeDef: # (2)
...
# create_subnet method usage example with argument unpacking
kwargs: CreateSubnetRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.create_subnet(**kwargs)
create_subnet_cidr_reservation#
Creates a subnet CIDR reservation.
Type annotations and code completion for session.create_client("ec2").create_subnet_cidr_reservation
method.
boto3 documentation
# create_subnet_cidr_reservation method definition
await def create_subnet_cidr_reservation(
self,
*,
SubnetId: str,
Cidr: str,
ReservationType: SubnetCidrReservationTypeType, # (1)
Description: str = ...,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> CreateSubnetCidrReservationResultTypeDef: # (3)
...
- See SubnetCidrReservationTypeType
- See TagSpecificationTypeDef
- See CreateSubnetCidrReservationResultTypeDef
# create_subnet_cidr_reservation method usage example with argument unpacking
kwargs: CreateSubnetCidrReservationRequestRequestTypeDef = { # (1)
"SubnetId": ...,
"Cidr": ...,
"ReservationType": ...,
}
parent.create_subnet_cidr_reservation(**kwargs)
create_tags#
Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources.
Type annotations and code completion for session.create_client("ec2").create_tags
method.
boto3 documentation
# create_tags method definition
await def create_tags(
self,
*,
Resources: Sequence[str],
Tags: Sequence[TagTypeDef], # (1)
DryRun: bool = ...,
) -> None:
...
- See TagTypeDef
# create_tags method usage example with argument unpacking
kwargs: ClientCreateTagsRequestTypeDef = { # (1)
"Resources": ...,
"Tags": ...,
}
parent.create_tags(**kwargs)
create_traffic_mirror_filter#
Creates a Traffic Mirror filter.
Type annotations and code completion for session.create_client("ec2").create_traffic_mirror_filter
method.
boto3 documentation
# create_traffic_mirror_filter method definition
await def create_traffic_mirror_filter(
self,
*,
Description: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
ClientToken: str = ...,
) -> CreateTrafficMirrorFilterResultTypeDef: # (2)
...
# create_traffic_mirror_filter method usage example with argument unpacking
kwargs: CreateTrafficMirrorFilterRequestRequestTypeDef = { # (1)
"Description": ...,
}
parent.create_traffic_mirror_filter(**kwargs)
create_traffic_mirror_filter_rule#
Creates a Traffic Mirror filter rule.
Type annotations and code completion for session.create_client("ec2").create_traffic_mirror_filter_rule
method.
boto3 documentation
# create_traffic_mirror_filter_rule method definition
await def create_traffic_mirror_filter_rule(
self,
*,
TrafficMirrorFilterId: str,
TrafficDirection: TrafficDirectionType, # (1)
RuleNumber: int,
RuleAction: TrafficMirrorRuleActionType, # (2)
DestinationCidrBlock: str,
SourceCidrBlock: str,
DestinationPortRange: TrafficMirrorPortRangeRequestTypeDef = ..., # (3)
SourcePortRange: TrafficMirrorPortRangeRequestTypeDef = ..., # (3)
Protocol: int = ...,
Description: str = ...,
DryRun: bool = ...,
ClientToken: str = ...,
) -> CreateTrafficMirrorFilterRuleResultTypeDef: # (5)
...
- See TrafficDirectionType
- See TrafficMirrorRuleActionType
- See TrafficMirrorPortRangeRequestTypeDef
- See TrafficMirrorPortRangeRequestTypeDef
- See CreateTrafficMirrorFilterRuleResultTypeDef
# create_traffic_mirror_filter_rule method usage example with argument unpacking
kwargs: CreateTrafficMirrorFilterRuleRequestRequestTypeDef = { # (1)
"TrafficMirrorFilterId": ...,
"TrafficDirection": ...,
"RuleNumber": ...,
"RuleAction": ...,
"DestinationCidrBlock": ...,
"SourceCidrBlock": ...,
}
parent.create_traffic_mirror_filter_rule(**kwargs)
create_traffic_mirror_session#
Creates a Traffic Mirror session.
Type annotations and code completion for session.create_client("ec2").create_traffic_mirror_session
method.
boto3 documentation
# create_traffic_mirror_session method definition
await def create_traffic_mirror_session(
self,
*,
NetworkInterfaceId: str,
TrafficMirrorTargetId: str,
TrafficMirrorFilterId: str,
SessionNumber: int,
PacketLength: int = ...,
VirtualNetworkId: int = ...,
Description: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
ClientToken: str = ...,
) -> CreateTrafficMirrorSessionResultTypeDef: # (2)
...
# create_traffic_mirror_session method usage example with argument unpacking
kwargs: CreateTrafficMirrorSessionRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
"TrafficMirrorTargetId": ...,
"TrafficMirrorFilterId": ...,
"SessionNumber": ...,
}
parent.create_traffic_mirror_session(**kwargs)
create_traffic_mirror_target#
Creates a target for your Traffic Mirror session.
Type annotations and code completion for session.create_client("ec2").create_traffic_mirror_target
method.
boto3 documentation
# create_traffic_mirror_target method definition
await def create_traffic_mirror_target(
self,
*,
NetworkInterfaceId: str = ...,
NetworkLoadBalancerArn: str = ...,
Description: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
ClientToken: str = ...,
GatewayLoadBalancerEndpointId: str = ...,
) -> CreateTrafficMirrorTargetResultTypeDef: # (2)
...
# create_traffic_mirror_target method usage example with argument unpacking
kwargs: CreateTrafficMirrorTargetRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.create_traffic_mirror_target(**kwargs)
create_transit_gateway#
Creates a transit gateway.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway
method.
boto3 documentation
# create_transit_gateway method definition
await def create_transit_gateway(
self,
*,
Description: str = ...,
Options: TransitGatewayRequestOptionsTypeDef = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateTransitGatewayResultTypeDef: # (3)
...
- See TransitGatewayRequestOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateTransitGatewayResultTypeDef
# create_transit_gateway method usage example with argument unpacking
kwargs: CreateTransitGatewayRequestRequestTypeDef = { # (1)
"Description": ...,
}
parent.create_transit_gateway(**kwargs)
create_transit_gateway_connect#
Creates a Connect attachment from a specified transit gateway attachment.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_connect
method.
boto3 documentation
# create_transit_gateway_connect method definition
await def create_transit_gateway_connect(
self,
*,
TransportTransitGatewayAttachmentId: str,
Options: CreateTransitGatewayConnectRequestOptionsTypeDef, # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateTransitGatewayConnectResultTypeDef: # (3)
...
- See CreateTransitGatewayConnectRequestOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateTransitGatewayConnectResultTypeDef
# create_transit_gateway_connect method usage example with argument unpacking
kwargs: CreateTransitGatewayConnectRequestRequestTypeDef = { # (1)
"TransportTransitGatewayAttachmentId": ...,
"Options": ...,
}
parent.create_transit_gateway_connect(**kwargs)
create_transit_gateway_connect_peer#
Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_connect_peer
method.
boto3 documentation
# create_transit_gateway_connect_peer method definition
await def create_transit_gateway_connect_peer(
self,
*,
TransitGatewayAttachmentId: str,
PeerAddress: str,
InsideCidrBlocks: Sequence[str],
TransitGatewayAddress: str = ...,
BgpOptions: TransitGatewayConnectRequestBgpOptionsTypeDef = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateTransitGatewayConnectPeerResultTypeDef: # (3)
...
- See TransitGatewayConnectRequestBgpOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateTransitGatewayConnectPeerResultTypeDef
# create_transit_gateway_connect_peer method usage example with argument unpacking
kwargs: CreateTransitGatewayConnectPeerRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
"PeerAddress": ...,
"InsideCidrBlocks": ...,
}
parent.create_transit_gateway_connect_peer(**kwargs)
create_transit_gateway_multicast_domain#
Creates a multicast domain using the specified transit gateway.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_multicast_domain
method.
boto3 documentation
# create_transit_gateway_multicast_domain method definition
await def create_transit_gateway_multicast_domain(
self,
*,
TransitGatewayId: str,
Options: CreateTransitGatewayMulticastDomainRequestOptionsTypeDef = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateTransitGatewayMulticastDomainResultTypeDef: # (3)
...
- See CreateTransitGatewayMulticastDomainRequestOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateTransitGatewayMulticastDomainResultTypeDef
# create_transit_gateway_multicast_domain method usage example with argument unpacking
kwargs: CreateTransitGatewayMulticastDomainRequestRequestTypeDef = { # (1)
"TransitGatewayId": ...,
}
parent.create_transit_gateway_multicast_domain(**kwargs)
create_transit_gateway_peering_attachment#
Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter).
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_peering_attachment
method.
boto3 documentation
# create_transit_gateway_peering_attachment method definition
await def create_transit_gateway_peering_attachment(
self,
*,
TransitGatewayId: str,
PeerTransitGatewayId: str,
PeerAccountId: str,
PeerRegion: str,
Options: CreateTransitGatewayPeeringAttachmentRequestOptionsTypeDef = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateTransitGatewayPeeringAttachmentResultTypeDef: # (3)
...
- See CreateTransitGatewayPeeringAttachmentRequestOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateTransitGatewayPeeringAttachmentResultTypeDef
# create_transit_gateway_peering_attachment method usage example with argument unpacking
kwargs: CreateTransitGatewayPeeringAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayId": ...,
"PeerTransitGatewayId": ...,
"PeerAccountId": ...,
"PeerRegion": ...,
}
parent.create_transit_gateway_peering_attachment(**kwargs)
create_transit_gateway_policy_table#
Creates a transit gateway policy table.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_policy_table
method.
boto3 documentation
# create_transit_gateway_policy_table method definition
await def create_transit_gateway_policy_table(
self,
*,
TransitGatewayId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateTransitGatewayPolicyTableResultTypeDef: # (2)
...
# create_transit_gateway_policy_table method usage example with argument unpacking
kwargs: CreateTransitGatewayPolicyTableRequestRequestTypeDef = { # (1)
"TransitGatewayId": ...,
}
parent.create_transit_gateway_policy_table(**kwargs)
create_transit_gateway_prefix_list_reference#
Creates a reference (route) to a prefix list in a specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_prefix_list_reference
method.
boto3 documentation
# create_transit_gateway_prefix_list_reference method definition
await def create_transit_gateway_prefix_list_reference(
self,
*,
TransitGatewayRouteTableId: str,
PrefixListId: str,
TransitGatewayAttachmentId: str = ...,
Blackhole: bool = ...,
DryRun: bool = ...,
) -> CreateTransitGatewayPrefixListReferenceResultTypeDef: # (1)
...
# create_transit_gateway_prefix_list_reference method usage example with argument unpacking
kwargs: CreateTransitGatewayPrefixListReferenceRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"PrefixListId": ...,
}
parent.create_transit_gateway_prefix_list_reference(**kwargs)
create_transit_gateway_route#
Creates a static route for the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_route
method.
boto3 documentation
# create_transit_gateway_route method definition
await def create_transit_gateway_route(
self,
*,
DestinationCidrBlock: str,
TransitGatewayRouteTableId: str,
TransitGatewayAttachmentId: str = ...,
Blackhole: bool = ...,
DryRun: bool = ...,
) -> CreateTransitGatewayRouteResultTypeDef: # (1)
...
# create_transit_gateway_route method usage example with argument unpacking
kwargs: CreateTransitGatewayRouteRequestRequestTypeDef = { # (1)
"DestinationCidrBlock": ...,
"TransitGatewayRouteTableId": ...,
}
parent.create_transit_gateway_route(**kwargs)
create_transit_gateway_route_table#
Creates a route table for the specified transit gateway.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_route_table
method.
boto3 documentation
# create_transit_gateway_route_table method definition
await def create_transit_gateway_route_table(
self,
*,
TransitGatewayId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateTransitGatewayRouteTableResultTypeDef: # (2)
...
# create_transit_gateway_route_table method usage example with argument unpacking
kwargs: CreateTransitGatewayRouteTableRequestRequestTypeDef = { # (1)
"TransitGatewayId": ...,
}
parent.create_transit_gateway_route_table(**kwargs)
create_transit_gateway_route_table_announcement#
Advertises a new transit gateway route table.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_route_table_announcement
method.
boto3 documentation
# create_transit_gateway_route_table_announcement method definition
await def create_transit_gateway_route_table_announcement(
self,
*,
TransitGatewayRouteTableId: str,
PeeringAttachmentId: str,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> CreateTransitGatewayRouteTableAnnouncementResultTypeDef: # (2)
...
# create_transit_gateway_route_table_announcement method usage example with argument unpacking
kwargs: CreateTransitGatewayRouteTableAnnouncementRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"PeeringAttachmentId": ...,
}
parent.create_transit_gateway_route_table_announcement(**kwargs)
create_transit_gateway_vpc_attachment#
Attaches the specified VPC to the specified transit gateway.
Type annotations and code completion for session.create_client("ec2").create_transit_gateway_vpc_attachment
method.
boto3 documentation
# create_transit_gateway_vpc_attachment method definition
await def create_transit_gateway_vpc_attachment(
self,
*,
TransitGatewayId: str,
VpcId: str,
SubnetIds: Sequence[str],
Options: CreateTransitGatewayVpcAttachmentRequestOptionsTypeDef = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
DryRun: bool = ...,
) -> CreateTransitGatewayVpcAttachmentResultTypeDef: # (3)
...
- See CreateTransitGatewayVpcAttachmentRequestOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateTransitGatewayVpcAttachmentResultTypeDef
# create_transit_gateway_vpc_attachment method usage example with argument unpacking
kwargs: CreateTransitGatewayVpcAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayId": ...,
"VpcId": ...,
"SubnetIds": ...,
}
parent.create_transit_gateway_vpc_attachment(**kwargs)
create_verified_access_endpoint#
An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy.
Type annotations and code completion for session.create_client("ec2").create_verified_access_endpoint
method.
boto3 documentation
# create_verified_access_endpoint method definition
await def create_verified_access_endpoint(
self,
*,
VerifiedAccessGroupId: str,
EndpointType: VerifiedAccessEndpointTypeType, # (1)
AttachmentType: VerifiedAccessEndpointAttachmentTypeType, # (2)
DomainCertificateArn: str,
ApplicationDomain: str,
EndpointDomainPrefix: str,
SecurityGroupIds: Sequence[str] = ...,
LoadBalancerOptions: CreateVerifiedAccessEndpointLoadBalancerOptionsTypeDef = ..., # (3)
NetworkInterfaceOptions: CreateVerifiedAccessEndpointEniOptionsTypeDef = ..., # (4)
Description: str = ...,
PolicyDocument: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (5)
ClientToken: str = ...,
DryRun: bool = ...,
) -> CreateVerifiedAccessEndpointResultTypeDef: # (6)
...
- See VerifiedAccessEndpointTypeType
- See VerifiedAccessEndpointAttachmentTypeType
- See CreateVerifiedAccessEndpointLoadBalancerOptionsTypeDef
- See CreateVerifiedAccessEndpointEniOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateVerifiedAccessEndpointResultTypeDef
# create_verified_access_endpoint method usage example with argument unpacking
kwargs: CreateVerifiedAccessEndpointRequestRequestTypeDef = { # (1)
"VerifiedAccessGroupId": ...,
"EndpointType": ...,
"AttachmentType": ...,
"DomainCertificateArn": ...,
"ApplicationDomain": ...,
"EndpointDomainPrefix": ...,
}
parent.create_verified_access_endpoint(**kwargs)
create_verified_access_group#
An Amazon Web Services Verified Access group is a collection of Amazon Web Services Verified Access endpoints who's associated applications have similar security requirements.
Type annotations and code completion for session.create_client("ec2").create_verified_access_group
method.
boto3 documentation
# create_verified_access_group method definition
await def create_verified_access_group(
self,
*,
VerifiedAccessInstanceId: str,
Description: str = ...,
PolicyDocument: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
ClientToken: str = ...,
DryRun: bool = ...,
) -> CreateVerifiedAccessGroupResultTypeDef: # (2)
...
# create_verified_access_group method usage example with argument unpacking
kwargs: CreateVerifiedAccessGroupRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceId": ...,
}
parent.create_verified_access_group(**kwargs)
create_verified_access_instance#
An Amazon Web Services Verified Access instance is a regional entity that evaluates application requests and grants access only when your security requirements are met.
Type annotations and code completion for session.create_client("ec2").create_verified_access_instance
method.
boto3 documentation
# create_verified_access_instance method definition
await def create_verified_access_instance(
self,
*,
Description: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
ClientToken: str = ...,
DryRun: bool = ...,
) -> CreateVerifiedAccessInstanceResultTypeDef: # (2)
...
# create_verified_access_instance method usage example with argument unpacking
kwargs: CreateVerifiedAccessInstanceRequestRequestTypeDef = { # (1)
"Description": ...,
}
parent.create_verified_access_instance(**kwargs)
create_verified_access_trust_provider#
A trust provider is a third-party entity that creates, maintains, and manages identity information for users and devices.
Type annotations and code completion for session.create_client("ec2").create_verified_access_trust_provider
method.
boto3 documentation
# create_verified_access_trust_provider method definition
await def create_verified_access_trust_provider(
self,
*,
TrustProviderType: TrustProviderTypeType, # (1)
PolicyReferenceName: str,
UserTrustProviderType: UserTrustProviderTypeType = ..., # (2)
DeviceTrustProviderType: DeviceTrustProviderTypeType = ..., # (3)
OidcOptions: CreateVerifiedAccessTrustProviderOidcOptionsTypeDef = ..., # (4)
DeviceOptions: CreateVerifiedAccessTrustProviderDeviceOptionsTypeDef = ..., # (5)
Description: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (6)
ClientToken: str = ...,
DryRun: bool = ...,
) -> CreateVerifiedAccessTrustProviderResultTypeDef: # (7)
...
- See TrustProviderTypeType
- See UserTrustProviderTypeType
- See DeviceTrustProviderTypeType
- See CreateVerifiedAccessTrustProviderOidcOptionsTypeDef
- See CreateVerifiedAccessTrustProviderDeviceOptionsTypeDef
- See TagSpecificationTypeDef
- See CreateVerifiedAccessTrustProviderResultTypeDef
# create_verified_access_trust_provider method usage example with argument unpacking
kwargs: CreateVerifiedAccessTrustProviderRequestRequestTypeDef = { # (1)
"TrustProviderType": ...,
"PolicyReferenceName": ...,
}
parent.create_verified_access_trust_provider(**kwargs)
create_volume#
Creates an EBS volume that can be attached to an instance in the same Availability Zone.
Type annotations and code completion for session.create_client("ec2").create_volume
method.
boto3 documentation
# create_volume method definition
await def create_volume(
self,
*,
AvailabilityZone: str,
Encrypted: bool = ...,
Iops: int = ...,
KmsKeyId: str = ...,
OutpostArn: str = ...,
Size: int = ...,
SnapshotId: str = ...,
VolumeType: VolumeTypeType = ..., # (1)
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
MultiAttachEnabled: bool = ...,
Throughput: int = ...,
ClientToken: str = ...,
) -> VolumeResponseTypeDef: # (3)
...
# create_volume method usage example with argument unpacking
kwargs: CreateVolumeRequestRequestTypeDef = { # (1)
"AvailabilityZone": ...,
}
parent.create_volume(**kwargs)
create_vpc#
Creates a VPC with the specified CIDR blocks.
Type annotations and code completion for session.create_client("ec2").create_vpc
method.
boto3 documentation
# create_vpc method definition
await def create_vpc(
self,
*,
CidrBlock: str = ...,
AmazonProvidedIpv6CidrBlock: bool = ...,
Ipv6Pool: str = ...,
Ipv6CidrBlock: str = ...,
Ipv4IpamPoolId: str = ...,
Ipv4NetmaskLength: int = ...,
Ipv6IpamPoolId: str = ...,
Ipv6NetmaskLength: int = ...,
DryRun: bool = ...,
InstanceTenancy: TenancyType = ..., # (1)
Ipv6CidrBlockNetworkBorderGroup: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> CreateVpcResultTypeDef: # (3)
...
- See TenancyType
- See TagSpecificationTypeDef
- See CreateVpcResultTypeDef
# create_vpc method usage example with argument unpacking
kwargs: CreateVpcRequestRequestTypeDef = { # (1)
"CidrBlock": ...,
}
parent.create_vpc(**kwargs)
create_vpc_endpoint#
Creates a VPC endpoint.
Type annotations and code completion for session.create_client("ec2").create_vpc_endpoint
method.
boto3 documentation
# create_vpc_endpoint method definition
await def create_vpc_endpoint(
self,
*,
VpcId: str,
ServiceName: str,
DryRun: bool = ...,
VpcEndpointType: VpcEndpointTypeType = ..., # (1)
PolicyDocument: str = ...,
RouteTableIds: Sequence[str] = ...,
SubnetIds: Sequence[str] = ...,
SecurityGroupIds: Sequence[str] = ...,
IpAddressType: IpAddressTypeType = ..., # (2)
DnsOptions: DnsOptionsSpecificationTypeDef = ..., # (3)
ClientToken: str = ...,
PrivateDnsEnabled: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (4)
) -> CreateVpcEndpointResultTypeDef: # (5)
...
- See VpcEndpointTypeType
- See IpAddressTypeType
- See DnsOptionsSpecificationTypeDef
- See TagSpecificationTypeDef
- See CreateVpcEndpointResultTypeDef
# create_vpc_endpoint method usage example with argument unpacking
kwargs: CreateVpcEndpointRequestRequestTypeDef = { # (1)
"VpcId": ...,
"ServiceName": ...,
}
parent.create_vpc_endpoint(**kwargs)
create_vpc_endpoint_connection_notification#
Creates a connection notification for a specified VPC endpoint or VPC endpoint service.
Type annotations and code completion for session.create_client("ec2").create_vpc_endpoint_connection_notification
method.
boto3 documentation
# create_vpc_endpoint_connection_notification method definition
await def create_vpc_endpoint_connection_notification(
self,
*,
ConnectionNotificationArn: str,
ConnectionEvents: Sequence[str],
DryRun: bool = ...,
ServiceId: str = ...,
VpcEndpointId: str = ...,
ClientToken: str = ...,
) -> CreateVpcEndpointConnectionNotificationResultTypeDef: # (1)
...
# create_vpc_endpoint_connection_notification method usage example with argument unpacking
kwargs: CreateVpcEndpointConnectionNotificationRequestRequestTypeDef = { # (1)
"ConnectionNotificationArn": ...,
"ConnectionEvents": ...,
}
parent.create_vpc_endpoint_connection_notification(**kwargs)
create_vpc_endpoint_service_configuration#
Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, users, and IAM roles) can connect.
Type annotations and code completion for session.create_client("ec2").create_vpc_endpoint_service_configuration
method.
boto3 documentation
# create_vpc_endpoint_service_configuration method definition
await def create_vpc_endpoint_service_configuration(
self,
*,
DryRun: bool = ...,
AcceptanceRequired: bool = ...,
PrivateDnsName: str = ...,
NetworkLoadBalancerArns: Sequence[str] = ...,
GatewayLoadBalancerArns: Sequence[str] = ...,
SupportedIpAddressTypes: Sequence[str] = ...,
ClientToken: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> CreateVpcEndpointServiceConfigurationResultTypeDef: # (2)
...
# create_vpc_endpoint_service_configuration method usage example with argument unpacking
kwargs: CreateVpcEndpointServiceConfigurationRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.create_vpc_endpoint_service_configuration(**kwargs)
create_vpc_peering_connection#
Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection.
Type annotations and code completion for session.create_client("ec2").create_vpc_peering_connection
method.
boto3 documentation
# create_vpc_peering_connection method definition
await def create_vpc_peering_connection(
self,
*,
VpcId: str,
DryRun: bool = ...,
PeerOwnerId: str = ...,
PeerVpcId: str = ...,
PeerRegion: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> CreateVpcPeeringConnectionResultTypeDef: # (2)
...
# create_vpc_peering_connection method usage example with argument unpacking
kwargs: CreateVpcPeeringConnectionRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.create_vpc_peering_connection(**kwargs)
create_vpn_connection#
Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway.
Type annotations and code completion for session.create_client("ec2").create_vpn_connection
method.
boto3 documentation
# create_vpn_connection method definition
await def create_vpn_connection(
self,
*,
CustomerGatewayId: str,
Type: str,
VpnGatewayId: str = ...,
TransitGatewayId: str = ...,
DryRun: bool = ...,
Options: VpnConnectionOptionsSpecificationTypeDef = ..., # (1)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> CreateVpnConnectionResultTypeDef: # (3)
...
- See VpnConnectionOptionsSpecificationTypeDef
- See TagSpecificationTypeDef
- See CreateVpnConnectionResultTypeDef
# create_vpn_connection method usage example with argument unpacking
kwargs: CreateVpnConnectionRequestRequestTypeDef = { # (1)
"CustomerGatewayId": ...,
"Type": ...,
}
parent.create_vpn_connection(**kwargs)
create_vpn_connection_route#
Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway.
Type annotations and code completion for session.create_client("ec2").create_vpn_connection_route
method.
boto3 documentation
# create_vpn_connection_route method definition
await def create_vpn_connection_route(
self,
*,
DestinationCidrBlock: str,
VpnConnectionId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# create_vpn_connection_route method usage example with argument unpacking
kwargs: CreateVpnConnectionRouteRequestRequestTypeDef = { # (1)
"DestinationCidrBlock": ...,
"VpnConnectionId": ...,
}
parent.create_vpn_connection_route(**kwargs)
create_vpn_gateway#
Creates a virtual private gateway.
Type annotations and code completion for session.create_client("ec2").create_vpn_gateway
method.
boto3 documentation
# create_vpn_gateway method definition
await def create_vpn_gateway(
self,
*,
Type: GatewayTypeType, # (1)
AvailabilityZone: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
AmazonSideAsn: int = ...,
DryRun: bool = ...,
) -> CreateVpnGatewayResultTypeDef: # (3)
...
# create_vpn_gateway method usage example with argument unpacking
kwargs: CreateVpnGatewayRequestRequestTypeDef = { # (1)
"Type": ...,
}
parent.create_vpn_gateway(**kwargs)
delete_carrier_gateway#
Deletes a carrier gateway.
Type annotations and code completion for session.create_client("ec2").delete_carrier_gateway
method.
boto3 documentation
# delete_carrier_gateway method definition
await def delete_carrier_gateway(
self,
*,
CarrierGatewayId: str,
DryRun: bool = ...,
) -> DeleteCarrierGatewayResultTypeDef: # (1)
...
# delete_carrier_gateway method usage example with argument unpacking
kwargs: DeleteCarrierGatewayRequestRequestTypeDef = { # (1)
"CarrierGatewayId": ...,
}
parent.delete_carrier_gateway(**kwargs)
delete_client_vpn_endpoint#
Deletes the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").delete_client_vpn_endpoint
method.
boto3 documentation
# delete_client_vpn_endpoint method definition
await def delete_client_vpn_endpoint(
self,
*,
ClientVpnEndpointId: str,
DryRun: bool = ...,
) -> DeleteClientVpnEndpointResultTypeDef: # (1)
...
# delete_client_vpn_endpoint method usage example with argument unpacking
kwargs: DeleteClientVpnEndpointRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.delete_client_vpn_endpoint(**kwargs)
delete_client_vpn_route#
Deletes a route from a Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").delete_client_vpn_route
method.
boto3 documentation
# delete_client_vpn_route method definition
await def delete_client_vpn_route(
self,
*,
ClientVpnEndpointId: str,
DestinationCidrBlock: str,
TargetVpcSubnetId: str = ...,
DryRun: bool = ...,
) -> DeleteClientVpnRouteResultTypeDef: # (1)
...
# delete_client_vpn_route method usage example with argument unpacking
kwargs: DeleteClientVpnRouteRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"DestinationCidrBlock": ...,
}
parent.delete_client_vpn_route(**kwargs)
delete_coip_cidr#
Deletes a range of customer-owned IP addresses.
Type annotations and code completion for session.create_client("ec2").delete_coip_cidr
method.
boto3 documentation
# delete_coip_cidr method definition
await def delete_coip_cidr(
self,
*,
Cidr: str,
CoipPoolId: str,
DryRun: bool = ...,
) -> DeleteCoipCidrResultTypeDef: # (1)
...
# delete_coip_cidr method usage example with argument unpacking
kwargs: DeleteCoipCidrRequestRequestTypeDef = { # (1)
"Cidr": ...,
"CoipPoolId": ...,
}
parent.delete_coip_cidr(**kwargs)
delete_coip_pool#
Deletes a pool of customer-owned IP (CoIP) addresses.
Type annotations and code completion for session.create_client("ec2").delete_coip_pool
method.
boto3 documentation
# delete_coip_pool method definition
await def delete_coip_pool(
self,
*,
CoipPoolId: str,
DryRun: bool = ...,
) -> DeleteCoipPoolResultTypeDef: # (1)
...
# delete_coip_pool method usage example with argument unpacking
kwargs: DeleteCoipPoolRequestRequestTypeDef = { # (1)
"CoipPoolId": ...,
}
parent.delete_coip_pool(**kwargs)
delete_customer_gateway#
Deletes the specified customer gateway.
Type annotations and code completion for session.create_client("ec2").delete_customer_gateway
method.
boto3 documentation
# delete_customer_gateway method definition
await def delete_customer_gateway(
self,
*,
CustomerGatewayId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_customer_gateway method usage example with argument unpacking
kwargs: DeleteCustomerGatewayRequestRequestTypeDef = { # (1)
"CustomerGatewayId": ...,
}
parent.delete_customer_gateway(**kwargs)
delete_dhcp_options#
Deletes the specified set of DHCP options.
Type annotations and code completion for session.create_client("ec2").delete_dhcp_options
method.
boto3 documentation
# delete_dhcp_options method definition
await def delete_dhcp_options(
self,
*,
DhcpOptionsId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_dhcp_options method usage example with argument unpacking
kwargs: DeleteDhcpOptionsRequestRequestTypeDef = { # (1)
"DhcpOptionsId": ...,
}
parent.delete_dhcp_options(**kwargs)
delete_egress_only_internet_gateway#
Deletes an egress-only internet gateway.
Type annotations and code completion for session.create_client("ec2").delete_egress_only_internet_gateway
method.
boto3 documentation
# delete_egress_only_internet_gateway method definition
await def delete_egress_only_internet_gateway(
self,
*,
EgressOnlyInternetGatewayId: str,
DryRun: bool = ...,
) -> DeleteEgressOnlyInternetGatewayResultTypeDef: # (1)
...
# delete_egress_only_internet_gateway method usage example with argument unpacking
kwargs: DeleteEgressOnlyInternetGatewayRequestRequestTypeDef = { # (1)
"EgressOnlyInternetGatewayId": ...,
}
parent.delete_egress_only_internet_gateway(**kwargs)
delete_fleets#
Deletes the specified EC2 Fleets.
Type annotations and code completion for session.create_client("ec2").delete_fleets
method.
boto3 documentation
# delete_fleets method definition
await def delete_fleets(
self,
*,
FleetIds: Sequence[str],
TerminateInstances: bool,
DryRun: bool = ...,
) -> DeleteFleetsResultTypeDef: # (1)
...
# delete_fleets method usage example with argument unpacking
kwargs: DeleteFleetsRequestRequestTypeDef = { # (1)
"FleetIds": ...,
"TerminateInstances": ...,
}
parent.delete_fleets(**kwargs)
delete_flow_logs#
Deletes one or more flow logs.
Type annotations and code completion for session.create_client("ec2").delete_flow_logs
method.
boto3 documentation
# delete_flow_logs method definition
await def delete_flow_logs(
self,
*,
FlowLogIds: Sequence[str],
DryRun: bool = ...,
) -> DeleteFlowLogsResultTypeDef: # (1)
...
# delete_flow_logs method usage example with argument unpacking
kwargs: DeleteFlowLogsRequestRequestTypeDef = { # (1)
"FlowLogIds": ...,
}
parent.delete_flow_logs(**kwargs)
delete_fpga_image#
Deletes the specified Amazon FPGA Image (AFI).
Type annotations and code completion for session.create_client("ec2").delete_fpga_image
method.
boto3 documentation
# delete_fpga_image method definition
await def delete_fpga_image(
self,
*,
FpgaImageId: str,
DryRun: bool = ...,
) -> DeleteFpgaImageResultTypeDef: # (1)
...
# delete_fpga_image method usage example with argument unpacking
kwargs: DeleteFpgaImageRequestRequestTypeDef = { # (1)
"FpgaImageId": ...,
}
parent.delete_fpga_image(**kwargs)
delete_instance_connect_endpoint#
Deletes the specified EC2 Instance Connect Endpoint.
Type annotations and code completion for session.create_client("ec2").delete_instance_connect_endpoint
method.
boto3 documentation
# delete_instance_connect_endpoint method definition
await def delete_instance_connect_endpoint(
self,
*,
InstanceConnectEndpointId: str,
DryRun: bool = ...,
) -> DeleteInstanceConnectEndpointResultTypeDef: # (1)
...
# delete_instance_connect_endpoint method usage example with argument unpacking
kwargs: DeleteInstanceConnectEndpointRequestRequestTypeDef = { # (1)
"InstanceConnectEndpointId": ...,
}
parent.delete_instance_connect_endpoint(**kwargs)
delete_instance_event_window#
Deletes the specified event window.
Type annotations and code completion for session.create_client("ec2").delete_instance_event_window
method.
boto3 documentation
# delete_instance_event_window method definition
await def delete_instance_event_window(
self,
*,
InstanceEventWindowId: str,
DryRun: bool = ...,
ForceDelete: bool = ...,
) -> DeleteInstanceEventWindowResultTypeDef: # (1)
...
# delete_instance_event_window method usage example with argument unpacking
kwargs: DeleteInstanceEventWindowRequestRequestTypeDef = { # (1)
"InstanceEventWindowId": ...,
}
parent.delete_instance_event_window(**kwargs)
delete_internet_gateway#
Deletes the specified internet gateway.
Type annotations and code completion for session.create_client("ec2").delete_internet_gateway
method.
boto3 documentation
# delete_internet_gateway method definition
await def delete_internet_gateway(
self,
*,
InternetGatewayId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_internet_gateway method usage example with argument unpacking
kwargs: DeleteInternetGatewayRequestRequestTypeDef = { # (1)
"InternetGatewayId": ...,
}
parent.delete_internet_gateway(**kwargs)
delete_ipam#
Delete an IPAM.
Type annotations and code completion for session.create_client("ec2").delete_ipam
method.
boto3 documentation
# delete_ipam method definition
await def delete_ipam(
self,
*,
IpamId: str,
DryRun: bool = ...,
Cascade: bool = ...,
) -> DeleteIpamResultTypeDef: # (1)
...
# delete_ipam method usage example with argument unpacking
kwargs: DeleteIpamRequestRequestTypeDef = { # (1)
"IpamId": ...,
}
parent.delete_ipam(**kwargs)
delete_ipam_pool#
Delete an IPAM pool.
Type annotations and code completion for session.create_client("ec2").delete_ipam_pool
method.
boto3 documentation
# delete_ipam_pool method definition
await def delete_ipam_pool(
self,
*,
IpamPoolId: str,
DryRun: bool = ...,
) -> DeleteIpamPoolResultTypeDef: # (1)
...
# delete_ipam_pool method usage example with argument unpacking
kwargs: DeleteIpamPoolRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
}
parent.delete_ipam_pool(**kwargs)
delete_ipam_resource_discovery#
Deletes an IPAM resource discovery.
Type annotations and code completion for session.create_client("ec2").delete_ipam_resource_discovery
method.
boto3 documentation
# delete_ipam_resource_discovery method definition
await def delete_ipam_resource_discovery(
self,
*,
IpamResourceDiscoveryId: str,
DryRun: bool = ...,
) -> DeleteIpamResourceDiscoveryResultTypeDef: # (1)
...
# delete_ipam_resource_discovery method usage example with argument unpacking
kwargs: DeleteIpamResourceDiscoveryRequestRequestTypeDef = { # (1)
"IpamResourceDiscoveryId": ...,
}
parent.delete_ipam_resource_discovery(**kwargs)
delete_ipam_scope#
Delete the scope for an IPAM.
Type annotations and code completion for session.create_client("ec2").delete_ipam_scope
method.
boto3 documentation
# delete_ipam_scope method definition
await def delete_ipam_scope(
self,
*,
IpamScopeId: str,
DryRun: bool = ...,
) -> DeleteIpamScopeResultTypeDef: # (1)
...
# delete_ipam_scope method usage example with argument unpacking
kwargs: DeleteIpamScopeRequestRequestTypeDef = { # (1)
"IpamScopeId": ...,
}
parent.delete_ipam_scope(**kwargs)
delete_key_pair#
Deletes the specified key pair, by removing the public key from Amazon EC2.
Type annotations and code completion for session.create_client("ec2").delete_key_pair
method.
boto3 documentation
# delete_key_pair method definition
await def delete_key_pair(
self,
*,
KeyName: str = ...,
KeyPairId: str = ...,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_key_pair method usage example with argument unpacking
kwargs: DeleteKeyPairRequestRequestTypeDef = { # (1)
"KeyName": ...,
}
parent.delete_key_pair(**kwargs)
delete_launch_template#
Deletes a launch template.
Type annotations and code completion for session.create_client("ec2").delete_launch_template
method.
boto3 documentation
# delete_launch_template method definition
await def delete_launch_template(
self,
*,
DryRun: bool = ...,
LaunchTemplateId: str = ...,
LaunchTemplateName: str = ...,
) -> DeleteLaunchTemplateResultTypeDef: # (1)
...
# delete_launch_template method usage example with argument unpacking
kwargs: DeleteLaunchTemplateRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.delete_launch_template(**kwargs)
delete_launch_template_versions#
Deletes one or more versions of a launch template.
Type annotations and code completion for session.create_client("ec2").delete_launch_template_versions
method.
boto3 documentation
# delete_launch_template_versions method definition
await def delete_launch_template_versions(
self,
*,
Versions: Sequence[str],
DryRun: bool = ...,
LaunchTemplateId: str = ...,
LaunchTemplateName: str = ...,
) -> DeleteLaunchTemplateVersionsResultTypeDef: # (1)
...
# delete_launch_template_versions method usage example with argument unpacking
kwargs: DeleteLaunchTemplateVersionsRequestRequestTypeDef = { # (1)
"Versions": ...,
}
parent.delete_launch_template_versions(**kwargs)
delete_local_gateway_route#
Deletes the specified route from the specified local gateway route table.
Type annotations and code completion for session.create_client("ec2").delete_local_gateway_route
method.
boto3 documentation
# delete_local_gateway_route method definition
await def delete_local_gateway_route(
self,
*,
LocalGatewayRouteTableId: str,
DestinationCidrBlock: str = ...,
DryRun: bool = ...,
DestinationPrefixListId: str = ...,
) -> DeleteLocalGatewayRouteResultTypeDef: # (1)
...
# delete_local_gateway_route method usage example with argument unpacking
kwargs: DeleteLocalGatewayRouteRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
}
parent.delete_local_gateway_route(**kwargs)
delete_local_gateway_route_table#
Deletes a local gateway route table.
Type annotations and code completion for session.create_client("ec2").delete_local_gateway_route_table
method.
boto3 documentation
# delete_local_gateway_route_table method definition
await def delete_local_gateway_route_table(
self,
*,
LocalGatewayRouteTableId: str,
DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableResultTypeDef: # (1)
...
# delete_local_gateway_route_table method usage example with argument unpacking
kwargs: DeleteLocalGatewayRouteTableRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
}
parent.delete_local_gateway_route_table(**kwargs)
delete_local_gateway_route_table_virtual_interface_group_association#
Deletes a local gateway route table virtual interface group association.
Type annotations and code completion for session.create_client("ec2").delete_local_gateway_route_table_virtual_interface_group_association
method.
boto3 documentation
# delete_local_gateway_route_table_virtual_interface_group_association method definition
await def delete_local_gateway_route_table_virtual_interface_group_association(
self,
*,
LocalGatewayRouteTableVirtualInterfaceGroupAssociationId: str,
DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef: # (1)
...
# delete_local_gateway_route_table_virtual_interface_group_association method usage example with argument unpacking
kwargs: DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableVirtualInterfaceGroupAssociationId": ...,
}
parent.delete_local_gateway_route_table_virtual_interface_group_association(**kwargs)
delete_local_gateway_route_table_vpc_association#
Deletes the specified association between a VPC and local gateway route table.
Type annotations and code completion for session.create_client("ec2").delete_local_gateway_route_table_vpc_association
method.
boto3 documentation
# delete_local_gateway_route_table_vpc_association method definition
await def delete_local_gateway_route_table_vpc_association(
self,
*,
LocalGatewayRouteTableVpcAssociationId: str,
DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVpcAssociationResultTypeDef: # (1)
...
# delete_local_gateway_route_table_vpc_association method usage example with argument unpacking
kwargs: DeleteLocalGatewayRouteTableVpcAssociationRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableVpcAssociationId": ...,
}
parent.delete_local_gateway_route_table_vpc_association(**kwargs)
delete_managed_prefix_list#
Deletes the specified managed prefix list.
Type annotations and code completion for session.create_client("ec2").delete_managed_prefix_list
method.
boto3 documentation
# delete_managed_prefix_list method definition
await def delete_managed_prefix_list(
self,
*,
PrefixListId: str,
DryRun: bool = ...,
) -> DeleteManagedPrefixListResultTypeDef: # (1)
...
# delete_managed_prefix_list method usage example with argument unpacking
kwargs: DeleteManagedPrefixListRequestRequestTypeDef = { # (1)
"PrefixListId": ...,
}
parent.delete_managed_prefix_list(**kwargs)
delete_nat_gateway#
Deletes the specified NAT gateway.
Type annotations and code completion for session.create_client("ec2").delete_nat_gateway
method.
boto3 documentation
# delete_nat_gateway method definition
await def delete_nat_gateway(
self,
*,
NatGatewayId: str,
DryRun: bool = ...,
) -> DeleteNatGatewayResultTypeDef: # (1)
...
# delete_nat_gateway method usage example with argument unpacking
kwargs: DeleteNatGatewayRequestRequestTypeDef = { # (1)
"NatGatewayId": ...,
}
parent.delete_nat_gateway(**kwargs)
delete_network_acl#
Deletes the specified network ACL.
Type annotations and code completion for session.create_client("ec2").delete_network_acl
method.
boto3 documentation
# delete_network_acl method definition
await def delete_network_acl(
self,
*,
NetworkAclId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_network_acl method usage example with argument unpacking
kwargs: DeleteNetworkAclRequestRequestTypeDef = { # (1)
"NetworkAclId": ...,
}
parent.delete_network_acl(**kwargs)
delete_network_acl_entry#
Deletes the specified ingress or egress entry (rule) from the specified network ACL.
Type annotations and code completion for session.create_client("ec2").delete_network_acl_entry
method.
boto3 documentation
# delete_network_acl_entry method definition
await def delete_network_acl_entry(
self,
*,
Egress: bool,
NetworkAclId: str,
RuleNumber: int,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_network_acl_entry method usage example with argument unpacking
kwargs: DeleteNetworkAclEntryRequestRequestTypeDef = { # (1)
"Egress": ...,
"NetworkAclId": ...,
"RuleNumber": ...,
}
parent.delete_network_acl_entry(**kwargs)
delete_network_insights_access_scope#
Deletes the specified Network Access Scope.
Type annotations and code completion for session.create_client("ec2").delete_network_insights_access_scope
method.
boto3 documentation
# delete_network_insights_access_scope method definition
await def delete_network_insights_access_scope(
self,
*,
NetworkInsightsAccessScopeId: str,
DryRun: bool = ...,
) -> DeleteNetworkInsightsAccessScopeResultTypeDef: # (1)
...
# delete_network_insights_access_scope method usage example with argument unpacking
kwargs: DeleteNetworkInsightsAccessScopeRequestRequestTypeDef = { # (1)
"NetworkInsightsAccessScopeId": ...,
}
parent.delete_network_insights_access_scope(**kwargs)
delete_network_insights_access_scope_analysis#
Deletes the specified Network Access Scope analysis.
Type annotations and code completion for session.create_client("ec2").delete_network_insights_access_scope_analysis
method.
boto3 documentation
# delete_network_insights_access_scope_analysis method definition
await def delete_network_insights_access_scope_analysis(
self,
*,
NetworkInsightsAccessScopeAnalysisId: str,
DryRun: bool = ...,
) -> DeleteNetworkInsightsAccessScopeAnalysisResultTypeDef: # (1)
...
# delete_network_insights_access_scope_analysis method usage example with argument unpacking
kwargs: DeleteNetworkInsightsAccessScopeAnalysisRequestRequestTypeDef = { # (1)
"NetworkInsightsAccessScopeAnalysisId": ...,
}
parent.delete_network_insights_access_scope_analysis(**kwargs)
delete_network_insights_analysis#
Deletes the specified network insights analysis.
Type annotations and code completion for session.create_client("ec2").delete_network_insights_analysis
method.
boto3 documentation
# delete_network_insights_analysis method definition
await def delete_network_insights_analysis(
self,
*,
NetworkInsightsAnalysisId: str,
DryRun: bool = ...,
) -> DeleteNetworkInsightsAnalysisResultTypeDef: # (1)
...
# delete_network_insights_analysis method usage example with argument unpacking
kwargs: DeleteNetworkInsightsAnalysisRequestRequestTypeDef = { # (1)
"NetworkInsightsAnalysisId": ...,
}
parent.delete_network_insights_analysis(**kwargs)
delete_network_insights_path#
Deletes the specified path.
Type annotations and code completion for session.create_client("ec2").delete_network_insights_path
method.
boto3 documentation
# delete_network_insights_path method definition
await def delete_network_insights_path(
self,
*,
NetworkInsightsPathId: str,
DryRun: bool = ...,
) -> DeleteNetworkInsightsPathResultTypeDef: # (1)
...
# delete_network_insights_path method usage example with argument unpacking
kwargs: DeleteNetworkInsightsPathRequestRequestTypeDef = { # (1)
"NetworkInsightsPathId": ...,
}
parent.delete_network_insights_path(**kwargs)
delete_network_interface#
Deletes the specified network interface.
Type annotations and code completion for session.create_client("ec2").delete_network_interface
method.
boto3 documentation
# delete_network_interface method definition
await def delete_network_interface(
self,
*,
NetworkInterfaceId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_network_interface method usage example with argument unpacking
kwargs: DeleteNetworkInterfaceRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.delete_network_interface(**kwargs)
delete_network_interface_permission#
Deletes a permission for a network interface.
Type annotations and code completion for session.create_client("ec2").delete_network_interface_permission
method.
boto3 documentation
# delete_network_interface_permission method definition
await def delete_network_interface_permission(
self,
*,
NetworkInterfacePermissionId: str,
Force: bool = ...,
DryRun: bool = ...,
) -> DeleteNetworkInterfacePermissionResultTypeDef: # (1)
...
# delete_network_interface_permission method usage example with argument unpacking
kwargs: DeleteNetworkInterfacePermissionRequestRequestTypeDef = { # (1)
"NetworkInterfacePermissionId": ...,
}
parent.delete_network_interface_permission(**kwargs)
delete_placement_group#
Deletes the specified placement group.
Type annotations and code completion for session.create_client("ec2").delete_placement_group
method.
boto3 documentation
# delete_placement_group method definition
await def delete_placement_group(
self,
*,
GroupName: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_placement_group method usage example with argument unpacking
kwargs: DeletePlacementGroupRequestRequestTypeDef = { # (1)
"GroupName": ...,
}
parent.delete_placement_group(**kwargs)
delete_public_ipv4_pool#
Delete a public IPv4 pool.
Type annotations and code completion for session.create_client("ec2").delete_public_ipv4_pool
method.
boto3 documentation
# delete_public_ipv4_pool method definition
await def delete_public_ipv4_pool(
self,
*,
PoolId: str,
DryRun: bool = ...,
) -> DeletePublicIpv4PoolResultTypeDef: # (1)
...
# delete_public_ipv4_pool method usage example with argument unpacking
kwargs: DeletePublicIpv4PoolRequestRequestTypeDef = { # (1)
"PoolId": ...,
}
parent.delete_public_ipv4_pool(**kwargs)
delete_queued_reserved_instances#
Deletes the queued purchases for the specified Reserved Instances.
Type annotations and code completion for session.create_client("ec2").delete_queued_reserved_instances
method.
boto3 documentation
# delete_queued_reserved_instances method definition
await def delete_queued_reserved_instances(
self,
*,
ReservedInstancesIds: Sequence[str],
DryRun: bool = ...,
) -> DeleteQueuedReservedInstancesResultTypeDef: # (1)
...
# delete_queued_reserved_instances method usage example with argument unpacking
kwargs: DeleteQueuedReservedInstancesRequestRequestTypeDef = { # (1)
"ReservedInstancesIds": ...,
}
parent.delete_queued_reserved_instances(**kwargs)
delete_route#
Deletes the specified route from the specified route table.
Type annotations and code completion for session.create_client("ec2").delete_route
method.
boto3 documentation
# delete_route method definition
await def delete_route(
self,
*,
RouteTableId: str,
DestinationCidrBlock: str = ...,
DestinationIpv6CidrBlock: str = ...,
DestinationPrefixListId: str = ...,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_route method usage example with argument unpacking
kwargs: DeleteRouteRequestRequestTypeDef = { # (1)
"RouteTableId": ...,
}
parent.delete_route(**kwargs)
delete_route_table#
Deletes the specified route table.
Type annotations and code completion for session.create_client("ec2").delete_route_table
method.
boto3 documentation
# delete_route_table method definition
await def delete_route_table(
self,
*,
RouteTableId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_route_table method usage example with argument unpacking
kwargs: DeleteRouteTableRequestRequestTypeDef = { # (1)
"RouteTableId": ...,
}
parent.delete_route_table(**kwargs)
delete_security_group#
Deletes a security group.
Type annotations and code completion for session.create_client("ec2").delete_security_group
method.
boto3 documentation
# delete_security_group method definition
await def delete_security_group(
self,
*,
GroupId: str = ...,
GroupName: str = ...,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_security_group method usage example with argument unpacking
kwargs: DeleteSecurityGroupRequestRequestTypeDef = { # (1)
"GroupId": ...,
}
parent.delete_security_group(**kwargs)
delete_snapshot#
Deletes the specified snapshot.
Type annotations and code completion for session.create_client("ec2").delete_snapshot
method.
boto3 documentation
# delete_snapshot method definition
await def delete_snapshot(
self,
*,
SnapshotId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_snapshot method usage example with argument unpacking
kwargs: DeleteSnapshotRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
}
parent.delete_snapshot(**kwargs)
delete_spot_datafeed_subscription#
Deletes the data feed for Spot Instances.
Type annotations and code completion for session.create_client("ec2").delete_spot_datafeed_subscription
method.
boto3 documentation
# delete_spot_datafeed_subscription method definition
await def delete_spot_datafeed_subscription(
self,
*,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_spot_datafeed_subscription method usage example with argument unpacking
kwargs: DeleteSpotDatafeedSubscriptionRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.delete_spot_datafeed_subscription(**kwargs)
delete_subnet#
Deletes the specified subnet.
Type annotations and code completion for session.create_client("ec2").delete_subnet
method.
boto3 documentation
# delete_subnet method definition
await def delete_subnet(
self,
*,
SubnetId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_subnet method usage example with argument unpacking
kwargs: DeleteSubnetRequestRequestTypeDef = { # (1)
"SubnetId": ...,
}
parent.delete_subnet(**kwargs)
delete_subnet_cidr_reservation#
Deletes a subnet CIDR reservation.
Type annotations and code completion for session.create_client("ec2").delete_subnet_cidr_reservation
method.
boto3 documentation
# delete_subnet_cidr_reservation method definition
await def delete_subnet_cidr_reservation(
self,
*,
SubnetCidrReservationId: str,
DryRun: bool = ...,
) -> DeleteSubnetCidrReservationResultTypeDef: # (1)
...
# delete_subnet_cidr_reservation method usage example with argument unpacking
kwargs: DeleteSubnetCidrReservationRequestRequestTypeDef = { # (1)
"SubnetCidrReservationId": ...,
}
parent.delete_subnet_cidr_reservation(**kwargs)
delete_tags#
Deletes the specified set of tags from the specified set of resources.
Type annotations and code completion for session.create_client("ec2").delete_tags
method.
boto3 documentation
# delete_tags method definition
await def delete_tags(
self,
*,
Resources: Sequence[str],
Tags: Sequence[TagTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> None:
...
- See TagTypeDef
# delete_tags method usage example with argument unpacking
kwargs: ClientDeleteTagsRequestTypeDef = { # (1)
"Resources": ...,
}
parent.delete_tags(**kwargs)
delete_traffic_mirror_filter#
Deletes the specified Traffic Mirror filter.
Type annotations and code completion for session.create_client("ec2").delete_traffic_mirror_filter
method.
boto3 documentation
# delete_traffic_mirror_filter method definition
await def delete_traffic_mirror_filter(
self,
*,
TrafficMirrorFilterId: str,
DryRun: bool = ...,
) -> DeleteTrafficMirrorFilterResultTypeDef: # (1)
...
# delete_traffic_mirror_filter method usage example with argument unpacking
kwargs: DeleteTrafficMirrorFilterRequestRequestTypeDef = { # (1)
"TrafficMirrorFilterId": ...,
}
parent.delete_traffic_mirror_filter(**kwargs)
delete_traffic_mirror_filter_rule#
Deletes the specified Traffic Mirror rule.
Type annotations and code completion for session.create_client("ec2").delete_traffic_mirror_filter_rule
method.
boto3 documentation
# delete_traffic_mirror_filter_rule method definition
await def delete_traffic_mirror_filter_rule(
self,
*,
TrafficMirrorFilterRuleId: str,
DryRun: bool = ...,
) -> DeleteTrafficMirrorFilterRuleResultTypeDef: # (1)
...
# delete_traffic_mirror_filter_rule method usage example with argument unpacking
kwargs: DeleteTrafficMirrorFilterRuleRequestRequestTypeDef = { # (1)
"TrafficMirrorFilterRuleId": ...,
}
parent.delete_traffic_mirror_filter_rule(**kwargs)
delete_traffic_mirror_session#
Deletes the specified Traffic Mirror session.
Type annotations and code completion for session.create_client("ec2").delete_traffic_mirror_session
method.
boto3 documentation
# delete_traffic_mirror_session method definition
await def delete_traffic_mirror_session(
self,
*,
TrafficMirrorSessionId: str,
DryRun: bool = ...,
) -> DeleteTrafficMirrorSessionResultTypeDef: # (1)
...
# delete_traffic_mirror_session method usage example with argument unpacking
kwargs: DeleteTrafficMirrorSessionRequestRequestTypeDef = { # (1)
"TrafficMirrorSessionId": ...,
}
parent.delete_traffic_mirror_session(**kwargs)
delete_traffic_mirror_target#
Deletes the specified Traffic Mirror target.
Type annotations and code completion for session.create_client("ec2").delete_traffic_mirror_target
method.
boto3 documentation
# delete_traffic_mirror_target method definition
await def delete_traffic_mirror_target(
self,
*,
TrafficMirrorTargetId: str,
DryRun: bool = ...,
) -> DeleteTrafficMirrorTargetResultTypeDef: # (1)
...
# delete_traffic_mirror_target method usage example with argument unpacking
kwargs: DeleteTrafficMirrorTargetRequestRequestTypeDef = { # (1)
"TrafficMirrorTargetId": ...,
}
parent.delete_traffic_mirror_target(**kwargs)
delete_transit_gateway#
Deletes the specified transit gateway.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway
method.
boto3 documentation
# delete_transit_gateway method definition
await def delete_transit_gateway(
self,
*,
TransitGatewayId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayResultTypeDef: # (1)
...
# delete_transit_gateway method usage example with argument unpacking
kwargs: DeleteTransitGatewayRequestRequestTypeDef = { # (1)
"TransitGatewayId": ...,
}
parent.delete_transit_gateway(**kwargs)
delete_transit_gateway_connect#
Deletes the specified Connect attachment.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_connect
method.
boto3 documentation
# delete_transit_gateway_connect method definition
await def delete_transit_gateway_connect(
self,
*,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayConnectResultTypeDef: # (1)
...
# delete_transit_gateway_connect method usage example with argument unpacking
kwargs: DeleteTransitGatewayConnectRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.delete_transit_gateway_connect(**kwargs)
delete_transit_gateway_connect_peer#
Deletes the specified Connect peer.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_connect_peer
method.
boto3 documentation
# delete_transit_gateway_connect_peer method definition
await def delete_transit_gateway_connect_peer(
self,
*,
TransitGatewayConnectPeerId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayConnectPeerResultTypeDef: # (1)
...
# delete_transit_gateway_connect_peer method usage example with argument unpacking
kwargs: DeleteTransitGatewayConnectPeerRequestRequestTypeDef = { # (1)
"TransitGatewayConnectPeerId": ...,
}
parent.delete_transit_gateway_connect_peer(**kwargs)
delete_transit_gateway_multicast_domain#
Deletes the specified transit gateway multicast domain.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_multicast_domain
method.
boto3 documentation
# delete_transit_gateway_multicast_domain method definition
await def delete_transit_gateway_multicast_domain(
self,
*,
TransitGatewayMulticastDomainId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayMulticastDomainResultTypeDef: # (1)
...
# delete_transit_gateway_multicast_domain method usage example with argument unpacking
kwargs: DeleteTransitGatewayMulticastDomainRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
}
parent.delete_transit_gateway_multicast_domain(**kwargs)
delete_transit_gateway_peering_attachment#
Deletes a transit gateway peering attachment.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_peering_attachment
method.
boto3 documentation
# delete_transit_gateway_peering_attachment method definition
await def delete_transit_gateway_peering_attachment(
self,
*,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayPeeringAttachmentResultTypeDef: # (1)
...
# delete_transit_gateway_peering_attachment method usage example with argument unpacking
kwargs: DeleteTransitGatewayPeeringAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.delete_transit_gateway_peering_attachment(**kwargs)
delete_transit_gateway_policy_table#
Deletes the specified transit gateway policy table.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_policy_table
method.
boto3 documentation
# delete_transit_gateway_policy_table method definition
await def delete_transit_gateway_policy_table(
self,
*,
TransitGatewayPolicyTableId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayPolicyTableResultTypeDef: # (1)
...
# delete_transit_gateway_policy_table method usage example with argument unpacking
kwargs: DeleteTransitGatewayPolicyTableRequestRequestTypeDef = { # (1)
"TransitGatewayPolicyTableId": ...,
}
parent.delete_transit_gateway_policy_table(**kwargs)
delete_transit_gateway_prefix_list_reference#
Deletes a reference (route) to a prefix list in a specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_prefix_list_reference
method.
boto3 documentation
# delete_transit_gateway_prefix_list_reference method definition
await def delete_transit_gateway_prefix_list_reference(
self,
*,
TransitGatewayRouteTableId: str,
PrefixListId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayPrefixListReferenceResultTypeDef: # (1)
...
# delete_transit_gateway_prefix_list_reference method usage example with argument unpacking
kwargs: DeleteTransitGatewayPrefixListReferenceRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"PrefixListId": ...,
}
parent.delete_transit_gateway_prefix_list_reference(**kwargs)
delete_transit_gateway_route#
Deletes the specified route from the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_route
method.
boto3 documentation
# delete_transit_gateway_route method definition
await def delete_transit_gateway_route(
self,
*,
TransitGatewayRouteTableId: str,
DestinationCidrBlock: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayRouteResultTypeDef: # (1)
...
# delete_transit_gateway_route method usage example with argument unpacking
kwargs: DeleteTransitGatewayRouteRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"DestinationCidrBlock": ...,
}
parent.delete_transit_gateway_route(**kwargs)
delete_transit_gateway_route_table#
Deletes the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_route_table
method.
boto3 documentation
# delete_transit_gateway_route_table method definition
await def delete_transit_gateway_route_table(
self,
*,
TransitGatewayRouteTableId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayRouteTableResultTypeDef: # (1)
...
# delete_transit_gateway_route_table method usage example with argument unpacking
kwargs: DeleteTransitGatewayRouteTableRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
}
parent.delete_transit_gateway_route_table(**kwargs)
delete_transit_gateway_route_table_announcement#
Advertises to the transit gateway that a transit gateway route table is deleted.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_route_table_announcement
method.
boto3 documentation
# delete_transit_gateway_route_table_announcement method definition
await def delete_transit_gateway_route_table_announcement(
self,
*,
TransitGatewayRouteTableAnnouncementId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayRouteTableAnnouncementResultTypeDef: # (1)
...
# delete_transit_gateway_route_table_announcement method usage example with argument unpacking
kwargs: DeleteTransitGatewayRouteTableAnnouncementRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableAnnouncementId": ...,
}
parent.delete_transit_gateway_route_table_announcement(**kwargs)
delete_transit_gateway_vpc_attachment#
Deletes the specified VPC attachment.
Type annotations and code completion for session.create_client("ec2").delete_transit_gateway_vpc_attachment
method.
boto3 documentation
# delete_transit_gateway_vpc_attachment method definition
await def delete_transit_gateway_vpc_attachment(
self,
*,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> DeleteTransitGatewayVpcAttachmentResultTypeDef: # (1)
...
# delete_transit_gateway_vpc_attachment method usage example with argument unpacking
kwargs: DeleteTransitGatewayVpcAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.delete_transit_gateway_vpc_attachment(**kwargs)
delete_verified_access_endpoint#
Delete an Amazon Web Services Verified Access endpoint.
Type annotations and code completion for session.create_client("ec2").delete_verified_access_endpoint
method.
boto3 documentation
# delete_verified_access_endpoint method definition
await def delete_verified_access_endpoint(
self,
*,
VerifiedAccessEndpointId: str,
ClientToken: str = ...,
DryRun: bool = ...,
) -> DeleteVerifiedAccessEndpointResultTypeDef: # (1)
...
# delete_verified_access_endpoint method usage example with argument unpacking
kwargs: DeleteVerifiedAccessEndpointRequestRequestTypeDef = { # (1)
"VerifiedAccessEndpointId": ...,
}
parent.delete_verified_access_endpoint(**kwargs)
delete_verified_access_group#
Delete an Amazon Web Services Verified Access group.
Type annotations and code completion for session.create_client("ec2").delete_verified_access_group
method.
boto3 documentation
# delete_verified_access_group method definition
await def delete_verified_access_group(
self,
*,
VerifiedAccessGroupId: str,
ClientToken: str = ...,
DryRun: bool = ...,
) -> DeleteVerifiedAccessGroupResultTypeDef: # (1)
...
# delete_verified_access_group method usage example with argument unpacking
kwargs: DeleteVerifiedAccessGroupRequestRequestTypeDef = { # (1)
"VerifiedAccessGroupId": ...,
}
parent.delete_verified_access_group(**kwargs)
delete_verified_access_instance#
Delete an Amazon Web Services Verified Access instance.
Type annotations and code completion for session.create_client("ec2").delete_verified_access_instance
method.
boto3 documentation
# delete_verified_access_instance method definition
await def delete_verified_access_instance(
self,
*,
VerifiedAccessInstanceId: str,
DryRun: bool = ...,
ClientToken: str = ...,
) -> DeleteVerifiedAccessInstanceResultTypeDef: # (1)
...
# delete_verified_access_instance method usage example with argument unpacking
kwargs: DeleteVerifiedAccessInstanceRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceId": ...,
}
parent.delete_verified_access_instance(**kwargs)
delete_verified_access_trust_provider#
Delete an Amazon Web Services Verified Access trust provider.
Type annotations and code completion for session.create_client("ec2").delete_verified_access_trust_provider
method.
boto3 documentation
# delete_verified_access_trust_provider method definition
await def delete_verified_access_trust_provider(
self,
*,
VerifiedAccessTrustProviderId: str,
DryRun: bool = ...,
ClientToken: str = ...,
) -> DeleteVerifiedAccessTrustProviderResultTypeDef: # (1)
...
# delete_verified_access_trust_provider method usage example with argument unpacking
kwargs: DeleteVerifiedAccessTrustProviderRequestRequestTypeDef = { # (1)
"VerifiedAccessTrustProviderId": ...,
}
parent.delete_verified_access_trust_provider(**kwargs)
delete_volume#
Deletes the specified EBS volume.
Type annotations and code completion for session.create_client("ec2").delete_volume
method.
boto3 documentation
# delete_volume method definition
await def delete_volume(
self,
*,
VolumeId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_volume method usage example with argument unpacking
kwargs: DeleteVolumeRequestRequestTypeDef = { # (1)
"VolumeId": ...,
}
parent.delete_volume(**kwargs)
delete_vpc#
Deletes the specified VPC.
Type annotations and code completion for session.create_client("ec2").delete_vpc
method.
boto3 documentation
# delete_vpc method definition
await def delete_vpc(
self,
*,
VpcId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_vpc method usage example with argument unpacking
kwargs: DeleteVpcRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.delete_vpc(**kwargs)
delete_vpc_endpoint_connection_notifications#
Deletes the specified VPC endpoint connection notifications.
Type annotations and code completion for session.create_client("ec2").delete_vpc_endpoint_connection_notifications
method.
boto3 documentation
# delete_vpc_endpoint_connection_notifications method definition
await def delete_vpc_endpoint_connection_notifications(
self,
*,
ConnectionNotificationIds: Sequence[str],
DryRun: bool = ...,
) -> DeleteVpcEndpointConnectionNotificationsResultTypeDef: # (1)
...
# delete_vpc_endpoint_connection_notifications method usage example with argument unpacking
kwargs: DeleteVpcEndpointConnectionNotificationsRequestRequestTypeDef = { # (1)
"ConnectionNotificationIds": ...,
}
parent.delete_vpc_endpoint_connection_notifications(**kwargs)
delete_vpc_endpoint_service_configurations#
Deletes the specified VPC endpoint service configurations.
Type annotations and code completion for session.create_client("ec2").delete_vpc_endpoint_service_configurations
method.
boto3 documentation
# delete_vpc_endpoint_service_configurations method definition
await def delete_vpc_endpoint_service_configurations(
self,
*,
ServiceIds: Sequence[str],
DryRun: bool = ...,
) -> DeleteVpcEndpointServiceConfigurationsResultTypeDef: # (1)
...
# delete_vpc_endpoint_service_configurations method usage example with argument unpacking
kwargs: DeleteVpcEndpointServiceConfigurationsRequestRequestTypeDef = { # (1)
"ServiceIds": ...,
}
parent.delete_vpc_endpoint_service_configurations(**kwargs)
delete_vpc_endpoints#
Deletes the specified VPC endpoints.
Type annotations and code completion for session.create_client("ec2").delete_vpc_endpoints
method.
boto3 documentation
# delete_vpc_endpoints method definition
await def delete_vpc_endpoints(
self,
*,
VpcEndpointIds: Sequence[str],
DryRun: bool = ...,
) -> DeleteVpcEndpointsResultTypeDef: # (1)
...
# delete_vpc_endpoints method usage example with argument unpacking
kwargs: DeleteVpcEndpointsRequestRequestTypeDef = { # (1)
"VpcEndpointIds": ...,
}
parent.delete_vpc_endpoints(**kwargs)
delete_vpc_peering_connection#
Deletes a VPC peering connection.
Type annotations and code completion for session.create_client("ec2").delete_vpc_peering_connection
method.
boto3 documentation
# delete_vpc_peering_connection method definition
await def delete_vpc_peering_connection(
self,
*,
VpcPeeringConnectionId: str,
DryRun: bool = ...,
) -> DeleteVpcPeeringConnectionResultTypeDef: # (1)
...
# delete_vpc_peering_connection method usage example with argument unpacking
kwargs: DeleteVpcPeeringConnectionRequestRequestTypeDef = { # (1)
"VpcPeeringConnectionId": ...,
}
parent.delete_vpc_peering_connection(**kwargs)
delete_vpn_connection#
Deletes the specified VPN connection.
Type annotations and code completion for session.create_client("ec2").delete_vpn_connection
method.
boto3 documentation
# delete_vpn_connection method definition
await def delete_vpn_connection(
self,
*,
VpnConnectionId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_vpn_connection method usage example with argument unpacking
kwargs: DeleteVpnConnectionRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
}
parent.delete_vpn_connection(**kwargs)
delete_vpn_connection_route#
Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway.
Type annotations and code completion for session.create_client("ec2").delete_vpn_connection_route
method.
boto3 documentation
# delete_vpn_connection_route method definition
await def delete_vpn_connection_route(
self,
*,
DestinationCidrBlock: str,
VpnConnectionId: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_vpn_connection_route method usage example with argument unpacking
kwargs: DeleteVpnConnectionRouteRequestRequestTypeDef = { # (1)
"DestinationCidrBlock": ...,
"VpnConnectionId": ...,
}
parent.delete_vpn_connection_route(**kwargs)
delete_vpn_gateway#
Deletes the specified virtual private gateway.
Type annotations and code completion for session.create_client("ec2").delete_vpn_gateway
method.
boto3 documentation
# delete_vpn_gateway method definition
await def delete_vpn_gateway(
self,
*,
VpnGatewayId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_vpn_gateway method usage example with argument unpacking
kwargs: DeleteVpnGatewayRequestRequestTypeDef = { # (1)
"VpnGatewayId": ...,
}
parent.delete_vpn_gateway(**kwargs)
deprovision_byoip_cidr#
Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.
Type annotations and code completion for session.create_client("ec2").deprovision_byoip_cidr
method.
boto3 documentation
# deprovision_byoip_cidr method definition
await def deprovision_byoip_cidr(
self,
*,
Cidr: str,
DryRun: bool = ...,
) -> DeprovisionByoipCidrResultTypeDef: # (1)
...
# deprovision_byoip_cidr method usage example with argument unpacking
kwargs: DeprovisionByoipCidrRequestRequestTypeDef = { # (1)
"Cidr": ...,
}
parent.deprovision_byoip_cidr(**kwargs)
deprovision_ipam_pool_cidr#
Deprovision a CIDR provisioned from an IPAM pool.
Type annotations and code completion for session.create_client("ec2").deprovision_ipam_pool_cidr
method.
boto3 documentation
# deprovision_ipam_pool_cidr method definition
await def deprovision_ipam_pool_cidr(
self,
*,
IpamPoolId: str,
DryRun: bool = ...,
Cidr: str = ...,
) -> DeprovisionIpamPoolCidrResultTypeDef: # (1)
...
# deprovision_ipam_pool_cidr method usage example with argument unpacking
kwargs: DeprovisionIpamPoolCidrRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
}
parent.deprovision_ipam_pool_cidr(**kwargs)
deprovision_public_ipv4_pool_cidr#
Deprovision a CIDR from a public IPv4 pool.
Type annotations and code completion for session.create_client("ec2").deprovision_public_ipv4_pool_cidr
method.
boto3 documentation
# deprovision_public_ipv4_pool_cidr method definition
await def deprovision_public_ipv4_pool_cidr(
self,
*,
PoolId: str,
Cidr: str,
DryRun: bool = ...,
) -> DeprovisionPublicIpv4PoolCidrResultTypeDef: # (1)
...
# deprovision_public_ipv4_pool_cidr method usage example with argument unpacking
kwargs: DeprovisionPublicIpv4PoolCidrRequestRequestTypeDef = { # (1)
"PoolId": ...,
"Cidr": ...,
}
parent.deprovision_public_ipv4_pool_cidr(**kwargs)
deregister_image#
Deregisters the specified AMI.
Type annotations and code completion for session.create_client("ec2").deregister_image
method.
boto3 documentation
# deregister_image method definition
await def deregister_image(
self,
*,
ImageId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# deregister_image method usage example with argument unpacking
kwargs: DeregisterImageRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.deregister_image(**kwargs)
deregister_instance_event_notification_attributes#
Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.
Type annotations and code completion for session.create_client("ec2").deregister_instance_event_notification_attributes
method.
boto3 documentation
# deregister_instance_event_notification_attributes method definition
await def deregister_instance_event_notification_attributes(
self,
*,
InstanceTagAttribute: DeregisterInstanceTagAttributeRequestTypeDef, # (1)
DryRun: bool = ...,
) -> DeregisterInstanceEventNotificationAttributesResultTypeDef: # (2)
...
- See DeregisterInstanceTagAttributeRequestTypeDef
- See DeregisterInstanceEventNotificationAttributesResultTypeDef
# deregister_instance_event_notification_attributes method usage example with argument unpacking
kwargs: DeregisterInstanceEventNotificationAttributesRequestRequestTypeDef = { # (1)
"InstanceTagAttribute": ...,
}
parent.deregister_instance_event_notification_attributes(**kwargs)
deregister_transit_gateway_multicast_group_members#
Deregisters the specified members (network interfaces) from the transit gateway multicast group.
Type annotations and code completion for session.create_client("ec2").deregister_transit_gateway_multicast_group_members
method.
boto3 documentation
# deregister_transit_gateway_multicast_group_members method definition
await def deregister_transit_gateway_multicast_group_members(
self,
*,
TransitGatewayMulticastDomainId: str = ...,
GroupIpAddress: str = ...,
NetworkInterfaceIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupMembersResultTypeDef: # (1)
...
# deregister_transit_gateway_multicast_group_members method usage example with argument unpacking
kwargs: DeregisterTransitGatewayMulticastGroupMembersRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
}
parent.deregister_transit_gateway_multicast_group_members(**kwargs)
deregister_transit_gateway_multicast_group_sources#
Deregisters the specified sources (network interfaces) from the transit gateway multicast group.
Type annotations and code completion for session.create_client("ec2").deregister_transit_gateway_multicast_group_sources
method.
boto3 documentation
# deregister_transit_gateway_multicast_group_sources method definition
await def deregister_transit_gateway_multicast_group_sources(
self,
*,
TransitGatewayMulticastDomainId: str = ...,
GroupIpAddress: str = ...,
NetworkInterfaceIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupSourcesResultTypeDef: # (1)
...
# deregister_transit_gateway_multicast_group_sources method usage example with argument unpacking
kwargs: DeregisterTransitGatewayMulticastGroupSourcesRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
}
parent.deregister_transit_gateway_multicast_group_sources(**kwargs)
describe_account_attributes#
Describes attributes of your Amazon Web Services account.
Type annotations and code completion for session.create_client("ec2").describe_account_attributes
method.
boto3 documentation
# describe_account_attributes method definition
await def describe_account_attributes(
self,
*,
AttributeNames: Sequence[AccountAttributeNameType] = ..., # (1)
DryRun: bool = ...,
) -> DescribeAccountAttributesResultTypeDef: # (2)
...
# describe_account_attributes method usage example with argument unpacking
kwargs: DescribeAccountAttributesRequestRequestTypeDef = { # (1)
"AttributeNames": ...,
}
parent.describe_account_attributes(**kwargs)
describe_address_transfers#
Describes an Elastic IP address transfer.
Type annotations and code completion for session.create_client("ec2").describe_address_transfers
method.
boto3 documentation
# describe_address_transfers method definition
await def describe_address_transfers(
self,
*,
AllocationIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
) -> DescribeAddressTransfersResultTypeDef: # (1)
...
# describe_address_transfers method usage example with argument unpacking
kwargs: DescribeAddressTransfersRequestRequestTypeDef = { # (1)
"AllocationIds": ...,
}
parent.describe_address_transfers(**kwargs)
describe_addresses#
Describes the specified Elastic IP addresses or all of your Elastic IP addresses.
Type annotations and code completion for session.create_client("ec2").describe_addresses
method.
boto3 documentation
# describe_addresses method definition
await def describe_addresses(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
PublicIps: Sequence[str] = ...,
AllocationIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DescribeAddressesResultTypeDef: # (2)
...
# describe_addresses method usage example with argument unpacking
kwargs: DescribeAddressesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_addresses(**kwargs)
describe_addresses_attribute#
Describes the attributes of the specified Elastic IP addresses.
Type annotations and code completion for session.create_client("ec2").describe_addresses_attribute
method.
boto3 documentation
# describe_addresses_attribute method definition
await def describe_addresses_attribute(
self,
*,
AllocationIds: Sequence[str] = ...,
Attribute: AddressAttributeNameType = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
) -> DescribeAddressesAttributeResultTypeDef: # (2)
...
# describe_addresses_attribute method usage example with argument unpacking
kwargs: DescribeAddressesAttributeRequestRequestTypeDef = { # (1)
"AllocationIds": ...,
}
parent.describe_addresses_attribute(**kwargs)
describe_aggregate_id_format#
Describes the longer ID format settings for all resource types in a specific Region.
Type annotations and code completion for session.create_client("ec2").describe_aggregate_id_format
method.
boto3 documentation
# describe_aggregate_id_format method definition
await def describe_aggregate_id_format(
self,
*,
DryRun: bool = ...,
) -> DescribeAggregateIdFormatResultTypeDef: # (1)
...
# describe_aggregate_id_format method usage example with argument unpacking
kwargs: DescribeAggregateIdFormatRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_aggregate_id_format(**kwargs)
describe_availability_zones#
Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you.
Type annotations and code completion for session.create_client("ec2").describe_availability_zones
method.
boto3 documentation
# describe_availability_zones method definition
await def describe_availability_zones(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ZoneNames: Sequence[str] = ...,
ZoneIds: Sequence[str] = ...,
AllAvailabilityZones: bool = ...,
DryRun: bool = ...,
) -> DescribeAvailabilityZonesResultTypeDef: # (2)
...
# describe_availability_zones method usage example with argument unpacking
kwargs: DescribeAvailabilityZonesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_availability_zones(**kwargs)
describe_aws_network_performance_metric_subscriptions#
Describes the current Infrastructure Performance metric subscriptions.
Type annotations and code completion for session.create_client("ec2").describe_aws_network_performance_metric_subscriptions
method.
boto3 documentation
# describe_aws_network_performance_metric_subscriptions method definition
await def describe_aws_network_performance_metric_subscriptions(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeAwsNetworkPerformanceMetricSubscriptionsResultTypeDef: # (2)
...
# describe_aws_network_performance_metric_subscriptions method usage example with argument unpacking
kwargs: DescribeAwsNetworkPerformanceMetricSubscriptionsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.describe_aws_network_performance_metric_subscriptions(**kwargs)
describe_bundle_tasks#
Describes the specified bundle tasks or all of your bundle tasks.
Type annotations and code completion for session.create_client("ec2").describe_bundle_tasks
method.
boto3 documentation
# describe_bundle_tasks method definition
await def describe_bundle_tasks(
self,
*,
BundleIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeBundleTasksResultTypeDef: # (2)
...
# describe_bundle_tasks method usage example with argument unpacking
kwargs: DescribeBundleTasksRequestRequestTypeDef = { # (1)
"BundleIds": ...,
}
parent.describe_bundle_tasks(**kwargs)
describe_byoip_cidrs#
Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.
Type annotations and code completion for session.create_client("ec2").describe_byoip_cidrs
method.
boto3 documentation
# describe_byoip_cidrs method definition
await def describe_byoip_cidrs(
self,
*,
MaxResults: int,
DryRun: bool = ...,
NextToken: str = ...,
) -> DescribeByoipCidrsResultTypeDef: # (1)
...
# describe_byoip_cidrs method usage example with argument unpacking
kwargs: DescribeByoipCidrsRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.describe_byoip_cidrs(**kwargs)
describe_capacity_reservation_fleets#
Describes one or more Capacity Reservation Fleets.
Type annotations and code completion for session.create_client("ec2").describe_capacity_reservation_fleets
method.
boto3 documentation
# describe_capacity_reservation_fleets method definition
await def describe_capacity_reservation_fleets(
self,
*,
CapacityReservationFleetIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeCapacityReservationFleetsResultTypeDef: # (2)
...
# describe_capacity_reservation_fleets method usage example with argument unpacking
kwargs: DescribeCapacityReservationFleetsRequestRequestTypeDef = { # (1)
"CapacityReservationFleetIds": ...,
}
parent.describe_capacity_reservation_fleets(**kwargs)
describe_capacity_reservations#
Describes one or more of your Capacity Reservations.
Type annotations and code completion for session.create_client("ec2").describe_capacity_reservations
method.
boto3 documentation
# describe_capacity_reservations method definition
await def describe_capacity_reservations(
self,
*,
CapacityReservationIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeCapacityReservationsResultTypeDef: # (2)
...
# describe_capacity_reservations method usage example with argument unpacking
kwargs: DescribeCapacityReservationsRequestRequestTypeDef = { # (1)
"CapacityReservationIds": ...,
}
parent.describe_capacity_reservations(**kwargs)
describe_carrier_gateways#
Describes one or more of your carrier gateways.
Type annotations and code completion for session.create_client("ec2").describe_carrier_gateways
method.
boto3 documentation
# describe_carrier_gateways method definition
await def describe_carrier_gateways(
self,
*,
CarrierGatewayIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeCarrierGatewaysResultTypeDef: # (2)
...
# describe_carrier_gateways method usage example with argument unpacking
kwargs: DescribeCarrierGatewaysRequestRequestTypeDef = { # (1)
"CarrierGatewayIds": ...,
}
parent.describe_carrier_gateways(**kwargs)
describe_classic_link_instances#
.
Type annotations and code completion for session.create_client("ec2").describe_classic_link_instances
method.
boto3 documentation
# describe_classic_link_instances method definition
await def describe_classic_link_instances(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
InstanceIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeClassicLinkInstancesResultTypeDef: # (2)
...
# describe_classic_link_instances method usage example with argument unpacking
kwargs: DescribeClassicLinkInstancesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_classic_link_instances(**kwargs)
describe_client_vpn_authorization_rules#
Describes the authorization rules for a specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").describe_client_vpn_authorization_rules
method.
boto3 documentation
# describe_client_vpn_authorization_rules method definition
await def describe_client_vpn_authorization_rules(
self,
*,
ClientVpnEndpointId: str,
DryRun: bool = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
) -> DescribeClientVpnAuthorizationRulesResultTypeDef: # (2)
...
# describe_client_vpn_authorization_rules method usage example with argument unpacking
kwargs: DescribeClientVpnAuthorizationRulesRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.describe_client_vpn_authorization_rules(**kwargs)
describe_client_vpn_connections#
Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").describe_client_vpn_connections
method.
boto3 documentation
# describe_client_vpn_connections method definition
await def describe_client_vpn_connections(
self,
*,
ClientVpnEndpointId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
) -> DescribeClientVpnConnectionsResultTypeDef: # (2)
...
# describe_client_vpn_connections method usage example with argument unpacking
kwargs: DescribeClientVpnConnectionsRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.describe_client_vpn_connections(**kwargs)
describe_client_vpn_endpoints#
Describes one or more Client VPN endpoints in the account.
Type annotations and code completion for session.create_client("ec2").describe_client_vpn_endpoints
method.
boto3 documentation
# describe_client_vpn_endpoints method definition
await def describe_client_vpn_endpoints(
self,
*,
ClientVpnEndpointIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeClientVpnEndpointsResultTypeDef: # (2)
...
# describe_client_vpn_endpoints method usage example with argument unpacking
kwargs: DescribeClientVpnEndpointsRequestRequestTypeDef = { # (1)
"ClientVpnEndpointIds": ...,
}
parent.describe_client_vpn_endpoints(**kwargs)
describe_client_vpn_routes#
Describes the routes for the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").describe_client_vpn_routes
method.
boto3 documentation
# describe_client_vpn_routes method definition
await def describe_client_vpn_routes(
self,
*,
ClientVpnEndpointId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeClientVpnRoutesResultTypeDef: # (2)
...
# describe_client_vpn_routes method usage example with argument unpacking
kwargs: DescribeClientVpnRoutesRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.describe_client_vpn_routes(**kwargs)
describe_client_vpn_target_networks#
Describes the target networks associated with the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").describe_client_vpn_target_networks
method.
boto3 documentation
# describe_client_vpn_target_networks method definition
await def describe_client_vpn_target_networks(
self,
*,
ClientVpnEndpointId: str,
AssociationIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeClientVpnTargetNetworksResultTypeDef: # (2)
...
# describe_client_vpn_target_networks method usage example with argument unpacking
kwargs: DescribeClientVpnTargetNetworksRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.describe_client_vpn_target_networks(**kwargs)
describe_coip_pools#
Describes the specified customer-owned address pools or all of your customer- owned address pools.
Type annotations and code completion for session.create_client("ec2").describe_coip_pools
method.
boto3 documentation
# describe_coip_pools method definition
await def describe_coip_pools(
self,
*,
PoolIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeCoipPoolsResultTypeDef: # (2)
...
# describe_coip_pools method usage example with argument unpacking
kwargs: DescribeCoipPoolsRequestRequestTypeDef = { # (1)
"PoolIds": ...,
}
parent.describe_coip_pools(**kwargs)
describe_conversion_tasks#
Describes the specified conversion tasks or all your conversion tasks.
Type annotations and code completion for session.create_client("ec2").describe_conversion_tasks
method.
boto3 documentation
# describe_conversion_tasks method definition
await def describe_conversion_tasks(
self,
*,
ConversionTaskIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DescribeConversionTasksResultTypeDef: # (1)
...
# describe_conversion_tasks method usage example with argument unpacking
kwargs: DescribeConversionTasksRequestRequestTypeDef = { # (1)
"ConversionTaskIds": ...,
}
parent.describe_conversion_tasks(**kwargs)
describe_customer_gateways#
Describes one or more of your VPN customer gateways.
Type annotations and code completion for session.create_client("ec2").describe_customer_gateways
method.
boto3 documentation
# describe_customer_gateways method definition
await def describe_customer_gateways(
self,
*,
CustomerGatewayIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeCustomerGatewaysResultTypeDef: # (2)
...
# describe_customer_gateways method usage example with argument unpacking
kwargs: DescribeCustomerGatewaysRequestRequestTypeDef = { # (1)
"CustomerGatewayIds": ...,
}
parent.describe_customer_gateways(**kwargs)
describe_dhcp_options#
Describes one or more of your DHCP options sets.
Type annotations and code completion for session.create_client("ec2").describe_dhcp_options
method.
boto3 documentation
# describe_dhcp_options method definition
await def describe_dhcp_options(
self,
*,
DhcpOptionsIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeDhcpOptionsResultTypeDef: # (2)
...
# describe_dhcp_options method usage example with argument unpacking
kwargs: DescribeDhcpOptionsRequestRequestTypeDef = { # (1)
"DhcpOptionsIds": ...,
}
parent.describe_dhcp_options(**kwargs)
describe_egress_only_internet_gateways#
Describes one or more of your egress-only internet gateways.
Type annotations and code completion for session.create_client("ec2").describe_egress_only_internet_gateways
method.
boto3 documentation
# describe_egress_only_internet_gateways method definition
await def describe_egress_only_internet_gateways(
self,
*,
DryRun: bool = ...,
EgressOnlyInternetGatewayIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribeEgressOnlyInternetGatewaysResultTypeDef: # (2)
...
# describe_egress_only_internet_gateways method usage example with argument unpacking
kwargs: DescribeEgressOnlyInternetGatewaysRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_egress_only_internet_gateways(**kwargs)
describe_elastic_gpus#
Describes the Elastic Graphics accelerator associated with your instances.
Type annotations and code completion for session.create_client("ec2").describe_elastic_gpus
method.
boto3 documentation
# describe_elastic_gpus method definition
await def describe_elastic_gpus(
self,
*,
ElasticGpuIds: Sequence[str] = ...,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeElasticGpusResultTypeDef: # (2)
...
# describe_elastic_gpus method usage example with argument unpacking
kwargs: DescribeElasticGpusRequestRequestTypeDef = { # (1)
"ElasticGpuIds": ...,
}
parent.describe_elastic_gpus(**kwargs)
describe_export_image_tasks#
Describes the specified export image tasks or all of your export image tasks.
Type annotations and code completion for session.create_client("ec2").describe_export_image_tasks
method.
boto3 documentation
# describe_export_image_tasks method definition
await def describe_export_image_tasks(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ExportImageTaskIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeExportImageTasksResultTypeDef: # (2)
...
# describe_export_image_tasks method usage example with argument unpacking
kwargs: DescribeExportImageTasksRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_export_image_tasks(**kwargs)
describe_export_tasks#
Describes the specified export instance tasks or all of your export instance tasks.
Type annotations and code completion for session.create_client("ec2").describe_export_tasks
method.
boto3 documentation
# describe_export_tasks method definition
await def describe_export_tasks(
self,
*,
ExportTaskIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribeExportTasksResultTypeDef: # (2)
...
# describe_export_tasks method usage example with argument unpacking
kwargs: DescribeExportTasksRequestRequestTypeDef = { # (1)
"ExportTaskIds": ...,
}
parent.describe_export_tasks(**kwargs)
describe_fast_launch_images#
Describe details for Windows AMIs that are configured for faster launching.
Type annotations and code completion for session.create_client("ec2").describe_fast_launch_images
method.
boto3 documentation
# describe_fast_launch_images method definition
await def describe_fast_launch_images(
self,
*,
ImageIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeFastLaunchImagesResultTypeDef: # (2)
...
# describe_fast_launch_images method usage example with argument unpacking
kwargs: DescribeFastLaunchImagesRequestRequestTypeDef = { # (1)
"ImageIds": ...,
}
parent.describe_fast_launch_images(**kwargs)
describe_fast_snapshot_restores#
Describes the state of fast snapshot restores for your snapshots.
Type annotations and code completion for session.create_client("ec2").describe_fast_snapshot_restores
method.
boto3 documentation
# describe_fast_snapshot_restores method definition
await def describe_fast_snapshot_restores(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeFastSnapshotRestoresResultTypeDef: # (2)
...
# describe_fast_snapshot_restores method usage example with argument unpacking
kwargs: DescribeFastSnapshotRestoresRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_fast_snapshot_restores(**kwargs)
describe_fleet_history#
Describes the events for the specified EC2 Fleet during the specified time.
Type annotations and code completion for session.create_client("ec2").describe_fleet_history
method.
boto3 documentation
# describe_fleet_history method definition
await def describe_fleet_history(
self,
*,
FleetId: str,
StartTime: Union[datetime, str],
DryRun: bool = ...,
EventType: FleetEventTypeType = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeFleetHistoryResultTypeDef: # (2)
...
# describe_fleet_history method usage example with argument unpacking
kwargs: DescribeFleetHistoryRequestRequestTypeDef = { # (1)
"FleetId": ...,
"StartTime": ...,
}
parent.describe_fleet_history(**kwargs)
describe_fleet_instances#
Describes the running instances for the specified EC2 Fleet.
Type annotations and code completion for session.create_client("ec2").describe_fleet_instances
method.
boto3 documentation
# describe_fleet_instances method definition
await def describe_fleet_instances(
self,
*,
FleetId: str,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribeFleetInstancesResultTypeDef: # (2)
...
# describe_fleet_instances method usage example with argument unpacking
kwargs: DescribeFleetInstancesRequestRequestTypeDef = { # (1)
"FleetId": ...,
}
parent.describe_fleet_instances(**kwargs)
describe_fleets#
Describes the specified EC2 Fleets or all of your EC2 Fleets.
Type annotations and code completion for session.create_client("ec2").describe_fleets
method.
boto3 documentation
# describe_fleets method definition
await def describe_fleets(
self,
*,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
FleetIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribeFleetsResultTypeDef: # (2)
...
# describe_fleets method usage example with argument unpacking
kwargs: DescribeFleetsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_fleets(**kwargs)
describe_flow_logs#
Describes one or more flow logs.
Type annotations and code completion for session.create_client("ec2").describe_flow_logs
method.
boto3 documentation
# describe_flow_logs method definition
await def describe_flow_logs(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
FlowLogIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeFlowLogsResultTypeDef: # (2)
...
# describe_flow_logs method usage example with argument unpacking
kwargs: DescribeFlowLogsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_flow_logs(**kwargs)
describe_fpga_image_attribute#
Describes the specified attribute of the specified Amazon FPGA Image (AFI).
Type annotations and code completion for session.create_client("ec2").describe_fpga_image_attribute
method.
boto3 documentation
# describe_fpga_image_attribute method definition
await def describe_fpga_image_attribute(
self,
*,
FpgaImageId: str,
Attribute: FpgaImageAttributeNameType, # (1)
DryRun: bool = ...,
) -> DescribeFpgaImageAttributeResultTypeDef: # (2)
...
# describe_fpga_image_attribute method usage example with argument unpacking
kwargs: DescribeFpgaImageAttributeRequestRequestTypeDef = { # (1)
"FpgaImageId": ...,
"Attribute": ...,
}
parent.describe_fpga_image_attribute(**kwargs)
describe_fpga_images#
Describes the Amazon FPGA Images (AFIs) available to you.
Type annotations and code completion for session.create_client("ec2").describe_fpga_images
method.
boto3 documentation
# describe_fpga_images method definition
await def describe_fpga_images(
self,
*,
DryRun: bool = ...,
FpgaImageIds: Sequence[str] = ...,
Owners: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeFpgaImagesResultTypeDef: # (2)
...
# describe_fpga_images method usage example with argument unpacking
kwargs: DescribeFpgaImagesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_fpga_images(**kwargs)
describe_host_reservation_offerings#
Describes the Dedicated Host reservations that are available to purchase.
Type annotations and code completion for session.create_client("ec2").describe_host_reservation_offerings
method.
boto3 documentation
# describe_host_reservation_offerings method definition
await def describe_host_reservation_offerings(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxDuration: int = ...,
MaxResults: int = ...,
MinDuration: int = ...,
NextToken: str = ...,
OfferingId: str = ...,
) -> DescribeHostReservationOfferingsResultTypeDef: # (2)
...
# describe_host_reservation_offerings method usage example with argument unpacking
kwargs: DescribeHostReservationOfferingsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_host_reservation_offerings(**kwargs)
describe_host_reservations#
Describes reservations that are associated with Dedicated Hosts in your account.
Type annotations and code completion for session.create_client("ec2").describe_host_reservations
method.
boto3 documentation
# describe_host_reservations method definition
await def describe_host_reservations(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
HostReservationIdSet: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeHostReservationsResultTypeDef: # (2)
...
# describe_host_reservations method usage example with argument unpacking
kwargs: DescribeHostReservationsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_host_reservations(**kwargs)
describe_hosts#
Describes the specified Dedicated Hosts or all your Dedicated Hosts.
Type annotations and code completion for session.create_client("ec2").describe_hosts
method.
boto3 documentation
# describe_hosts method definition
await def describe_hosts(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
HostIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeHostsResultTypeDef: # (2)
...
# describe_hosts method usage example with argument unpacking
kwargs: DescribeHostsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_hosts(**kwargs)
describe_iam_instance_profile_associations#
Describes your IAM instance profile associations.
Type annotations and code completion for session.create_client("ec2").describe_iam_instance_profile_associations
method.
boto3 documentation
# describe_iam_instance_profile_associations method definition
await def describe_iam_instance_profile_associations(
self,
*,
AssociationIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeIamInstanceProfileAssociationsResultTypeDef: # (2)
...
# describe_iam_instance_profile_associations method usage example with argument unpacking
kwargs: DescribeIamInstanceProfileAssociationsRequestRequestTypeDef = { # (1)
"AssociationIds": ...,
}
parent.describe_iam_instance_profile_associations(**kwargs)
describe_id_format#
Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs.
Type annotations and code completion for session.create_client("ec2").describe_id_format
method.
boto3 documentation
# describe_id_format method definition
await def describe_id_format(
self,
*,
Resource: str = ...,
) -> DescribeIdFormatResultTypeDef: # (1)
...
# describe_id_format method usage example with argument unpacking
kwargs: DescribeIdFormatRequestRequestTypeDef = { # (1)
"Resource": ...,
}
parent.describe_id_format(**kwargs)
describe_identity_id_format#
Describes the ID format settings for resources for the specified IAM user, IAM role, or root user.
Type annotations and code completion for session.create_client("ec2").describe_identity_id_format
method.
boto3 documentation
# describe_identity_id_format method definition
await def describe_identity_id_format(
self,
*,
PrincipalArn: str,
Resource: str = ...,
) -> DescribeIdentityIdFormatResultTypeDef: # (1)
...
# describe_identity_id_format method usage example with argument unpacking
kwargs: DescribeIdentityIdFormatRequestRequestTypeDef = { # (1)
"PrincipalArn": ...,
}
parent.describe_identity_id_format(**kwargs)
describe_image_attribute#
Describes the specified attribute of the specified AMI.
Type annotations and code completion for session.create_client("ec2").describe_image_attribute
method.
boto3 documentation
# describe_image_attribute method definition
await def describe_image_attribute(
self,
*,
Attribute: ImageAttributeNameType, # (1)
ImageId: str,
DryRun: bool = ...,
) -> ImageAttributeTypeDef: # (2)
...
# describe_image_attribute method usage example with argument unpacking
kwargs: DescribeImageAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"ImageId": ...,
}
parent.describe_image_attribute(**kwargs)
describe_images#
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.
Type annotations and code completion for session.create_client("ec2").describe_images
method.
boto3 documentation
# describe_images method definition
await def describe_images(
self,
*,
ExecutableUsers: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ImageIds: Sequence[str] = ...,
Owners: Sequence[str] = ...,
IncludeDeprecated: bool = ...,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeImagesResultTypeDef: # (2)
...
# describe_images method usage example with argument unpacking
kwargs: DescribeImagesRequestRequestTypeDef = { # (1)
"ExecutableUsers": ...,
}
parent.describe_images(**kwargs)
describe_import_image_tasks#
Displays details about an import virtual machine or import snapshot tasks that are already created.
Type annotations and code completion for session.create_client("ec2").describe_import_image_tasks
method.
boto3 documentation
# describe_import_image_tasks method definition
await def describe_import_image_tasks(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ImportTaskIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeImportImageTasksResultTypeDef: # (2)
...
# describe_import_image_tasks method usage example with argument unpacking
kwargs: DescribeImportImageTasksRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_import_image_tasks(**kwargs)
describe_import_snapshot_tasks#
Describes your import snapshot tasks.
Type annotations and code completion for session.create_client("ec2").describe_import_snapshot_tasks
method.
boto3 documentation
# describe_import_snapshot_tasks method definition
await def describe_import_snapshot_tasks(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ImportTaskIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeImportSnapshotTasksResultTypeDef: # (2)
...
# describe_import_snapshot_tasks method usage example with argument unpacking
kwargs: DescribeImportSnapshotTasksRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_import_snapshot_tasks(**kwargs)
describe_instance_attribute#
Describes the specified attribute of the specified instance.
Type annotations and code completion for session.create_client("ec2").describe_instance_attribute
method.
boto3 documentation
# describe_instance_attribute method definition
await def describe_instance_attribute(
self,
*,
Attribute: InstanceAttributeNameType, # (1)
InstanceId: str,
DryRun: bool = ...,
) -> InstanceAttributeTypeDef: # (2)
...
# describe_instance_attribute method usage example with argument unpacking
kwargs: DescribeInstanceAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"InstanceId": ...,
}
parent.describe_instance_attribute(**kwargs)
describe_instance_connect_endpoints#
Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints.
Type annotations and code completion for session.create_client("ec2").describe_instance_connect_endpoints
method.
boto3 documentation
# describe_instance_connect_endpoints method definition
await def describe_instance_connect_endpoints(
self,
*,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
InstanceConnectEndpointIds: Sequence[str] = ...,
) -> DescribeInstanceConnectEndpointsResultTypeDef: # (2)
...
# describe_instance_connect_endpoints method usage example with argument unpacking
kwargs: DescribeInstanceConnectEndpointsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_instance_connect_endpoints(**kwargs)
describe_instance_credit_specifications#
Describes the credit option for CPU usage of the specified burstable performance instances.
Type annotations and code completion for session.create_client("ec2").describe_instance_credit_specifications
method.
boto3 documentation
# describe_instance_credit_specifications method definition
await def describe_instance_credit_specifications(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
InstanceIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeInstanceCreditSpecificationsResultTypeDef: # (2)
...
# describe_instance_credit_specifications method usage example with argument unpacking
kwargs: DescribeInstanceCreditSpecificationsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_instance_credit_specifications(**kwargs)
describe_instance_event_notification_attributes#
Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.
Type annotations and code completion for session.create_client("ec2").describe_instance_event_notification_attributes
method.
boto3 documentation
# describe_instance_event_notification_attributes method definition
await def describe_instance_event_notification_attributes(
self,
*,
DryRun: bool = ...,
) -> DescribeInstanceEventNotificationAttributesResultTypeDef: # (1)
...
# describe_instance_event_notification_attributes method usage example with argument unpacking
kwargs: DescribeInstanceEventNotificationAttributesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_instance_event_notification_attributes(**kwargs)
describe_instance_event_windows#
Describes the specified event windows or all event windows.
Type annotations and code completion for session.create_client("ec2").describe_instance_event_windows
method.
boto3 documentation
# describe_instance_event_windows method definition
await def describe_instance_event_windows(
self,
*,
DryRun: bool = ...,
InstanceEventWindowIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeInstanceEventWindowsResultTypeDef: # (2)
...
# describe_instance_event_windows method usage example with argument unpacking
kwargs: DescribeInstanceEventWindowsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_instance_event_windows(**kwargs)
describe_instance_status#
Describes the status of the specified instances or all of your instances.
Type annotations and code completion for session.create_client("ec2").describe_instance_status
method.
boto3 documentation
# describe_instance_status method definition
await def describe_instance_status(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
InstanceIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
IncludeAllInstances: bool = ...,
) -> DescribeInstanceStatusResultTypeDef: # (2)
...
# describe_instance_status method usage example with argument unpacking
kwargs: DescribeInstanceStatusRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_instance_status(**kwargs)
describe_instance_type_offerings#
Returns a list of all instance types offered.
Type annotations and code completion for session.create_client("ec2").describe_instance_type_offerings
method.
boto3 documentation
# describe_instance_type_offerings method definition
await def describe_instance_type_offerings(
self,
*,
DryRun: bool = ...,
LocationType: LocationTypeType = ..., # (1)
Filters: Sequence[FilterTypeDef] = ..., # (2)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeInstanceTypeOfferingsResultTypeDef: # (3)
...
# describe_instance_type_offerings method usage example with argument unpacking
kwargs: DescribeInstanceTypeOfferingsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_instance_type_offerings(**kwargs)
describe_instance_types#
Describes the details of the instance types that are offered in a location.
Type annotations and code completion for session.create_client("ec2").describe_instance_types
method.
boto3 documentation
# describe_instance_types method definition
await def describe_instance_types(
self,
*,
DryRun: bool = ...,
InstanceTypes: Sequence[InstanceTypeType] = ..., # (1)
Filters: Sequence[FilterTypeDef] = ..., # (2)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeInstanceTypesResultTypeDef: # (3)
...
# describe_instance_types method usage example with argument unpacking
kwargs: DescribeInstanceTypesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_instance_types(**kwargs)
describe_instances#
Describes the specified instances or all instances.
Type annotations and code completion for session.create_client("ec2").describe_instances
method.
boto3 documentation
# describe_instances method definition
await def describe_instances(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
InstanceIds: Sequence[str] = ...,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeInstancesResultTypeDef: # (2)
...
# describe_instances method usage example with argument unpacking
kwargs: DescribeInstancesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_instances(**kwargs)
describe_internet_gateways#
Describes one or more of your internet gateways.
Type annotations and code completion for session.create_client("ec2").describe_internet_gateways
method.
boto3 documentation
# describe_internet_gateways method definition
await def describe_internet_gateways(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
InternetGatewayIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeInternetGatewaysResultTypeDef: # (2)
...
# describe_internet_gateways method usage example with argument unpacking
kwargs: DescribeInternetGatewaysRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_internet_gateways(**kwargs)
describe_ipam_pools#
Get information about your IPAM pools.
Type annotations and code completion for session.create_client("ec2").describe_ipam_pools
method.
boto3 documentation
# describe_ipam_pools method definition
await def describe_ipam_pools(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
IpamPoolIds: Sequence[str] = ...,
) -> DescribeIpamPoolsResultTypeDef: # (2)
...
# describe_ipam_pools method usage example with argument unpacking
kwargs: DescribeIpamPoolsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_ipam_pools(**kwargs)
describe_ipam_resource_discoveries#
Describes IPAM resource discoveries.
Type annotations and code completion for session.create_client("ec2").describe_ipam_resource_discoveries
method.
boto3 documentation
# describe_ipam_resource_discoveries method definition
await def describe_ipam_resource_discoveries(
self,
*,
DryRun: bool = ...,
IpamResourceDiscoveryIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribeIpamResourceDiscoveriesResultTypeDef: # (2)
...
# describe_ipam_resource_discoveries method usage example with argument unpacking
kwargs: DescribeIpamResourceDiscoveriesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_ipam_resource_discoveries(**kwargs)
describe_ipam_resource_discovery_associations#
Describes resource discovery association with an Amazon VPC IPAM.
Type annotations and code completion for session.create_client("ec2").describe_ipam_resource_discovery_associations
method.
boto3 documentation
# describe_ipam_resource_discovery_associations method definition
await def describe_ipam_resource_discovery_associations(
self,
*,
DryRun: bool = ...,
IpamResourceDiscoveryAssociationIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribeIpamResourceDiscoveryAssociationsResultTypeDef: # (2)
...
# describe_ipam_resource_discovery_associations method usage example with argument unpacking
kwargs: DescribeIpamResourceDiscoveryAssociationsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_ipam_resource_discovery_associations(**kwargs)
describe_ipam_scopes#
Get information about your IPAM scopes.
Type annotations and code completion for session.create_client("ec2").describe_ipam_scopes
method.
boto3 documentation
# describe_ipam_scopes method definition
await def describe_ipam_scopes(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
IpamScopeIds: Sequence[str] = ...,
) -> DescribeIpamScopesResultTypeDef: # (2)
...
# describe_ipam_scopes method usage example with argument unpacking
kwargs: DescribeIpamScopesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_ipam_scopes(**kwargs)
describe_ipams#
Get information about your IPAM pools.
Type annotations and code completion for session.create_client("ec2").describe_ipams
method.
boto3 documentation
# describe_ipams method definition
await def describe_ipams(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
IpamIds: Sequence[str] = ...,
) -> DescribeIpamsResultTypeDef: # (2)
...
# describe_ipams method usage example with argument unpacking
kwargs: DescribeIpamsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_ipams(**kwargs)
describe_ipv6_pools#
Describes your IPv6 address pools.
Type annotations and code completion for session.create_client("ec2").describe_ipv6_pools
method.
boto3 documentation
# describe_ipv6_pools method definition
await def describe_ipv6_pools(
self,
*,
PoolIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribeIpv6PoolsResultTypeDef: # (2)
...
# describe_ipv6_pools method usage example with argument unpacking
kwargs: DescribeIpv6PoolsRequestRequestTypeDef = { # (1)
"PoolIds": ...,
}
parent.describe_ipv6_pools(**kwargs)
describe_key_pairs#
Describes the specified key pairs or all of your key pairs.
Type annotations and code completion for session.create_client("ec2").describe_key_pairs
method.
boto3 documentation
# describe_key_pairs method definition
await def describe_key_pairs(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
KeyNames: Sequence[str] = ...,
KeyPairIds: Sequence[str] = ...,
DryRun: bool = ...,
IncludePublicKey: bool = ...,
) -> DescribeKeyPairsResultTypeDef: # (2)
...
# describe_key_pairs method usage example with argument unpacking
kwargs: DescribeKeyPairsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_key_pairs(**kwargs)
describe_launch_template_versions#
Describes one or more versions of a specified launch template.
Type annotations and code completion for session.create_client("ec2").describe_launch_template_versions
method.
boto3 documentation
# describe_launch_template_versions method definition
await def describe_launch_template_versions(
self,
*,
DryRun: bool = ...,
LaunchTemplateId: str = ...,
LaunchTemplateName: str = ...,
Versions: Sequence[str] = ...,
MinVersion: str = ...,
MaxVersion: str = ...,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ResolveAlias: bool = ...,
) -> DescribeLaunchTemplateVersionsResultTypeDef: # (2)
...
# describe_launch_template_versions method usage example with argument unpacking
kwargs: DescribeLaunchTemplateVersionsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_launch_template_versions(**kwargs)
describe_launch_templates#
Describes one or more launch templates.
Type annotations and code completion for session.create_client("ec2").describe_launch_templates
method.
boto3 documentation
# describe_launch_templates method definition
await def describe_launch_templates(
self,
*,
DryRun: bool = ...,
LaunchTemplateIds: Sequence[str] = ...,
LaunchTemplateNames: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeLaunchTemplatesResultTypeDef: # (2)
...
# describe_launch_templates method usage example with argument unpacking
kwargs: DescribeLaunchTemplatesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_launch_templates(**kwargs)
describe_local_gateway_route_table_virtual_interface_group_associations#
Describes the associations between virtual interface groups and local gateway route tables.
Type annotations and code completion for session.create_client("ec2").describe_local_gateway_route_table_virtual_interface_group_associations
method.
boto3 documentation
# describe_local_gateway_route_table_virtual_interface_group_associations method definition
await def describe_local_gateway_route_table_virtual_interface_group_associations(
self,
*,
LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResultTypeDef: # (2)
...
# describe_local_gateway_route_table_virtual_interface_group_associations method usage example with argument unpacking
kwargs: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds": ...,
}
parent.describe_local_gateway_route_table_virtual_interface_group_associations(**kwargs)
describe_local_gateway_route_table_vpc_associations#
Describes the specified associations between VPCs and local gateway route tables.
Type annotations and code completion for session.create_client("ec2").describe_local_gateway_route_table_vpc_associations
method.
boto3 documentation
# describe_local_gateway_route_table_vpc_associations method definition
await def describe_local_gateway_route_table_vpc_associations(
self,
*,
LocalGatewayRouteTableVpcAssociationIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTableVpcAssociationsResultTypeDef: # (2)
...
# describe_local_gateway_route_table_vpc_associations method usage example with argument unpacking
kwargs: DescribeLocalGatewayRouteTableVpcAssociationsRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableVpcAssociationIds": ...,
}
parent.describe_local_gateway_route_table_vpc_associations(**kwargs)
describe_local_gateway_route_tables#
Describes one or more local gateway route tables.
Type annotations and code completion for session.create_client("ec2").describe_local_gateway_route_tables
method.
boto3 documentation
# describe_local_gateway_route_tables method definition
await def describe_local_gateway_route_tables(
self,
*,
LocalGatewayRouteTableIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTablesResultTypeDef: # (2)
...
# describe_local_gateway_route_tables method usage example with argument unpacking
kwargs: DescribeLocalGatewayRouteTablesRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableIds": ...,
}
parent.describe_local_gateway_route_tables(**kwargs)
describe_local_gateway_virtual_interface_groups#
Describes the specified local gateway virtual interface groups.
Type annotations and code completion for session.create_client("ec2").describe_local_gateway_virtual_interface_groups
method.
boto3 documentation
# describe_local_gateway_virtual_interface_groups method definition
await def describe_local_gateway_virtual_interface_groups(
self,
*,
LocalGatewayVirtualInterfaceGroupIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeLocalGatewayVirtualInterfaceGroupsResultTypeDef: # (2)
...
# describe_local_gateway_virtual_interface_groups method usage example with argument unpacking
kwargs: DescribeLocalGatewayVirtualInterfaceGroupsRequestRequestTypeDef = { # (1)
"LocalGatewayVirtualInterfaceGroupIds": ...,
}
parent.describe_local_gateway_virtual_interface_groups(**kwargs)
describe_local_gateway_virtual_interfaces#
Describes the specified local gateway virtual interfaces.
Type annotations and code completion for session.create_client("ec2").describe_local_gateway_virtual_interfaces
method.
boto3 documentation
# describe_local_gateway_virtual_interfaces method definition
await def describe_local_gateway_virtual_interfaces(
self,
*,
LocalGatewayVirtualInterfaceIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeLocalGatewayVirtualInterfacesResultTypeDef: # (2)
...
# describe_local_gateway_virtual_interfaces method usage example with argument unpacking
kwargs: DescribeLocalGatewayVirtualInterfacesRequestRequestTypeDef = { # (1)
"LocalGatewayVirtualInterfaceIds": ...,
}
parent.describe_local_gateway_virtual_interfaces(**kwargs)
describe_local_gateways#
Describes one or more local gateways.
Type annotations and code completion for session.create_client("ec2").describe_local_gateways
method.
boto3 documentation
# describe_local_gateways method definition
await def describe_local_gateways(
self,
*,
LocalGatewayIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeLocalGatewaysResultTypeDef: # (2)
...
# describe_local_gateways method usage example with argument unpacking
kwargs: DescribeLocalGatewaysRequestRequestTypeDef = { # (1)
"LocalGatewayIds": ...,
}
parent.describe_local_gateways(**kwargs)
describe_managed_prefix_lists#
Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.
Type annotations and code completion for session.create_client("ec2").describe_managed_prefix_lists
method.
boto3 documentation
# describe_managed_prefix_lists method definition
await def describe_managed_prefix_lists(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
PrefixListIds: Sequence[str] = ...,
) -> DescribeManagedPrefixListsResultTypeDef: # (2)
...
# describe_managed_prefix_lists method usage example with argument unpacking
kwargs: DescribeManagedPrefixListsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_managed_prefix_lists(**kwargs)
describe_moving_addresses#
.
Type annotations and code completion for session.create_client("ec2").describe_moving_addresses
method.
boto3 documentation
# describe_moving_addresses method definition
await def describe_moving_addresses(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
PublicIps: Sequence[str] = ...,
) -> DescribeMovingAddressesResultTypeDef: # (2)
...
# describe_moving_addresses method usage example with argument unpacking
kwargs: DescribeMovingAddressesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_moving_addresses(**kwargs)
describe_nat_gateways#
Describes one or more of your NAT gateways.
Type annotations and code completion for session.create_client("ec2").describe_nat_gateways
method.
boto3 documentation
# describe_nat_gateways method definition
await def describe_nat_gateways(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NatGatewayIds: Sequence[str] = ...,
NextToken: str = ...,
) -> DescribeNatGatewaysResultTypeDef: # (2)
...
# describe_nat_gateways method usage example with argument unpacking
kwargs: DescribeNatGatewaysRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_nat_gateways(**kwargs)
describe_network_acls#
Describes one or more of your network ACLs.
Type annotations and code completion for session.create_client("ec2").describe_network_acls
method.
boto3 documentation
# describe_network_acls method definition
await def describe_network_acls(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
NetworkAclIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeNetworkAclsResultTypeDef: # (2)
...
# describe_network_acls method usage example with argument unpacking
kwargs: DescribeNetworkAclsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_network_acls(**kwargs)
describe_network_insights_access_scope_analyses#
Describes the specified Network Access Scope analyses.
Type annotations and code completion for session.create_client("ec2").describe_network_insights_access_scope_analyses
method.
boto3 documentation
# describe_network_insights_access_scope_analyses method definition
await def describe_network_insights_access_scope_analyses(
self,
*,
NetworkInsightsAccessScopeAnalysisIds: Sequence[str] = ...,
NetworkInsightsAccessScopeId: str = ...,
AnalysisStartTimeBegin: Union[datetime, str] = ...,
AnalysisStartTimeEnd: Union[datetime, str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
DryRun: bool = ...,
NextToken: str = ...,
) -> DescribeNetworkInsightsAccessScopeAnalysesResultTypeDef: # (2)
...
# describe_network_insights_access_scope_analyses method usage example with argument unpacking
kwargs: DescribeNetworkInsightsAccessScopeAnalysesRequestRequestTypeDef = { # (1)
"NetworkInsightsAccessScopeAnalysisIds": ...,
}
parent.describe_network_insights_access_scope_analyses(**kwargs)
describe_network_insights_access_scopes#
Describes the specified Network Access Scopes.
Type annotations and code completion for session.create_client("ec2").describe_network_insights_access_scopes
method.
boto3 documentation
# describe_network_insights_access_scopes method definition
await def describe_network_insights_access_scopes(
self,
*,
NetworkInsightsAccessScopeIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
DryRun: bool = ...,
NextToken: str = ...,
) -> DescribeNetworkInsightsAccessScopesResultTypeDef: # (2)
...
# describe_network_insights_access_scopes method usage example with argument unpacking
kwargs: DescribeNetworkInsightsAccessScopesRequestRequestTypeDef = { # (1)
"NetworkInsightsAccessScopeIds": ...,
}
parent.describe_network_insights_access_scopes(**kwargs)
describe_network_insights_analyses#
Describes one or more of your network insights analyses.
Type annotations and code completion for session.create_client("ec2").describe_network_insights_analyses
method.
boto3 documentation
# describe_network_insights_analyses method definition
await def describe_network_insights_analyses(
self,
*,
NetworkInsightsAnalysisIds: Sequence[str] = ...,
NetworkInsightsPathId: str = ...,
AnalysisStartTime: Union[datetime, str] = ...,
AnalysisEndTime: Union[datetime, str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
DryRun: bool = ...,
NextToken: str = ...,
) -> DescribeNetworkInsightsAnalysesResultTypeDef: # (2)
...
# describe_network_insights_analyses method usage example with argument unpacking
kwargs: DescribeNetworkInsightsAnalysesRequestRequestTypeDef = { # (1)
"NetworkInsightsAnalysisIds": ...,
}
parent.describe_network_insights_analyses(**kwargs)
describe_network_insights_paths#
Describes one or more of your paths.
Type annotations and code completion for session.create_client("ec2").describe_network_insights_paths
method.
boto3 documentation
# describe_network_insights_paths method definition
await def describe_network_insights_paths(
self,
*,
NetworkInsightsPathIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
DryRun: bool = ...,
NextToken: str = ...,
) -> DescribeNetworkInsightsPathsResultTypeDef: # (2)
...
# describe_network_insights_paths method usage example with argument unpacking
kwargs: DescribeNetworkInsightsPathsRequestRequestTypeDef = { # (1)
"NetworkInsightsPathIds": ...,
}
parent.describe_network_insights_paths(**kwargs)
describe_network_interface_attribute#
Describes a network interface attribute.
Type annotations and code completion for session.create_client("ec2").describe_network_interface_attribute
method.
boto3 documentation
# describe_network_interface_attribute method definition
await def describe_network_interface_attribute(
self,
*,
NetworkInterfaceId: str,
Attribute: NetworkInterfaceAttributeType = ..., # (1)
DryRun: bool = ...,
) -> DescribeNetworkInterfaceAttributeResultTypeDef: # (2)
...
# describe_network_interface_attribute method usage example with argument unpacking
kwargs: DescribeNetworkInterfaceAttributeRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.describe_network_interface_attribute(**kwargs)
describe_network_interface_permissions#
Describes the permissions for your network interfaces.
Type annotations and code completion for session.create_client("ec2").describe_network_interface_permissions
method.
boto3 documentation
# describe_network_interface_permissions method definition
await def describe_network_interface_permissions(
self,
*,
NetworkInterfacePermissionIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeNetworkInterfacePermissionsResultTypeDef: # (2)
...
# describe_network_interface_permissions method usage example with argument unpacking
kwargs: DescribeNetworkInterfacePermissionsRequestRequestTypeDef = { # (1)
"NetworkInterfacePermissionIds": ...,
}
parent.describe_network_interface_permissions(**kwargs)
describe_network_interfaces#
Describes one or more of your network interfaces.
Type annotations and code completion for session.create_client("ec2").describe_network_interfaces
method.
boto3 documentation
# describe_network_interfaces method definition
await def describe_network_interfaces(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
NetworkInterfaceIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeNetworkInterfacesResultTypeDef: # (2)
...
# describe_network_interfaces method usage example with argument unpacking
kwargs: DescribeNetworkInterfacesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_network_interfaces(**kwargs)
describe_placement_groups#
Describes the specified placement groups or all of your placement groups.
Type annotations and code completion for session.create_client("ec2").describe_placement_groups
method.
boto3 documentation
# describe_placement_groups method definition
await def describe_placement_groups(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
GroupNames: Sequence[str] = ...,
GroupIds: Sequence[str] = ...,
) -> DescribePlacementGroupsResultTypeDef: # (2)
...
# describe_placement_groups method usage example with argument unpacking
kwargs: DescribePlacementGroupsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_placement_groups(**kwargs)
describe_prefix_lists#
Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.
Type annotations and code completion for session.create_client("ec2").describe_prefix_lists
method.
boto3 documentation
# describe_prefix_lists method definition
await def describe_prefix_lists(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
PrefixListIds: Sequence[str] = ...,
) -> DescribePrefixListsResultTypeDef: # (2)
...
# describe_prefix_lists method usage example with argument unpacking
kwargs: DescribePrefixListsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_prefix_lists(**kwargs)
describe_principal_id_format#
Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.
Type annotations and code completion for session.create_client("ec2").describe_principal_id_format
method.
boto3 documentation
# describe_principal_id_format method definition
await def describe_principal_id_format(
self,
*,
DryRun: bool = ...,
Resources: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribePrincipalIdFormatResultTypeDef: # (1)
...
# describe_principal_id_format method usage example with argument unpacking
kwargs: DescribePrincipalIdFormatRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_principal_id_format(**kwargs)
describe_public_ipv4_pools#
Describes the specified IPv4 address pools.
Type annotations and code completion for session.create_client("ec2").describe_public_ipv4_pools
method.
boto3 documentation
# describe_public_ipv4_pools method definition
await def describe_public_ipv4_pools(
self,
*,
PoolIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
) -> DescribePublicIpv4PoolsResultTypeDef: # (2)
...
# describe_public_ipv4_pools method usage example with argument unpacking
kwargs: DescribePublicIpv4PoolsRequestRequestTypeDef = { # (1)
"PoolIds": ...,
}
parent.describe_public_ipv4_pools(**kwargs)
describe_regions#
Describes the Regions that are enabled for your account, or all Regions.
Type annotations and code completion for session.create_client("ec2").describe_regions
method.
boto3 documentation
# describe_regions method definition
await def describe_regions(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
RegionNames: Sequence[str] = ...,
DryRun: bool = ...,
AllRegions: bool = ...,
) -> DescribeRegionsResultTypeDef: # (2)
...
# describe_regions method usage example with argument unpacking
kwargs: DescribeRegionsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_regions(**kwargs)
describe_replace_root_volume_tasks#
Describes a root volume replacement task.
Type annotations and code completion for session.create_client("ec2").describe_replace_root_volume_tasks
method.
boto3 documentation
# describe_replace_root_volume_tasks method definition
await def describe_replace_root_volume_tasks(
self,
*,
ReplaceRootVolumeTaskIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeReplaceRootVolumeTasksResultTypeDef: # (2)
...
# describe_replace_root_volume_tasks method usage example with argument unpacking
kwargs: DescribeReplaceRootVolumeTasksRequestRequestTypeDef = { # (1)
"ReplaceRootVolumeTaskIds": ...,
}
parent.describe_replace_root_volume_tasks(**kwargs)
describe_reserved_instances#
Describes one or more of the Reserved Instances that you purchased.
Type annotations and code completion for session.create_client("ec2").describe_reserved_instances
method.
boto3 documentation
# describe_reserved_instances method definition
await def describe_reserved_instances(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
OfferingClass: OfferingClassTypeType = ..., # (2)
ReservedInstancesIds: Sequence[str] = ...,
DryRun: bool = ...,
OfferingType: OfferingTypeValuesType = ..., # (3)
) -> DescribeReservedInstancesResultTypeDef: # (4)
...
- See FilterTypeDef
- See OfferingClassTypeType
- See OfferingTypeValuesType
- See DescribeReservedInstancesResultTypeDef
# describe_reserved_instances method usage example with argument unpacking
kwargs: DescribeReservedInstancesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_reserved_instances(**kwargs)
describe_reserved_instances_listings#
Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.
Type annotations and code completion for session.create_client("ec2").describe_reserved_instances_listings
method.
boto3 documentation
# describe_reserved_instances_listings method definition
await def describe_reserved_instances_listings(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ReservedInstancesId: str = ...,
ReservedInstancesListingId: str = ...,
) -> DescribeReservedInstancesListingsResultTypeDef: # (2)
...
# describe_reserved_instances_listings method usage example with argument unpacking
kwargs: DescribeReservedInstancesListingsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_reserved_instances_listings(**kwargs)
describe_reserved_instances_modifications#
Describes the modifications made to your Reserved Instances.
Type annotations and code completion for session.create_client("ec2").describe_reserved_instances_modifications
method.
boto3 documentation
# describe_reserved_instances_modifications method definition
await def describe_reserved_instances_modifications(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
ReservedInstancesModificationIds: Sequence[str] = ...,
NextToken: str = ...,
) -> DescribeReservedInstancesModificationsResultTypeDef: # (2)
...
# describe_reserved_instances_modifications method usage example with argument unpacking
kwargs: DescribeReservedInstancesModificationsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_reserved_instances_modifications(**kwargs)
describe_reserved_instances_offerings#
Describes Reserved Instance offerings that are available for purchase.
Type annotations and code completion for session.create_client("ec2").describe_reserved_instances_offerings
method.
boto3 documentation
# describe_reserved_instances_offerings method definition
await def describe_reserved_instances_offerings(
self,
*,
AvailabilityZone: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
IncludeMarketplace: bool = ...,
InstanceType: InstanceTypeType = ..., # (2)
MaxDuration: int = ...,
MaxInstanceCount: int = ...,
MinDuration: int = ...,
OfferingClass: OfferingClassTypeType = ..., # (3)
ProductDescription: RIProductDescriptionType = ..., # (4)
ReservedInstancesOfferingIds: Sequence[str] = ...,
DryRun: bool = ...,
InstanceTenancy: TenancyType = ..., # (5)
MaxResults: int = ...,
NextToken: str = ...,
OfferingType: OfferingTypeValuesType = ..., # (6)
) -> DescribeReservedInstancesOfferingsResultTypeDef: # (7)
...
- See FilterTypeDef
- See InstanceTypeType
- See OfferingClassTypeType
- See RIProductDescriptionType
- See TenancyType
- See OfferingTypeValuesType
- See DescribeReservedInstancesOfferingsResultTypeDef
# describe_reserved_instances_offerings method usage example with argument unpacking
kwargs: DescribeReservedInstancesOfferingsRequestRequestTypeDef = { # (1)
"AvailabilityZone": ...,
}
parent.describe_reserved_instances_offerings(**kwargs)
describe_route_tables#
Describes one or more of your route tables.
Type annotations and code completion for session.create_client("ec2").describe_route_tables
method.
boto3 documentation
# describe_route_tables method definition
await def describe_route_tables(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
RouteTableIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeRouteTablesResultTypeDef: # (2)
...
# describe_route_tables method usage example with argument unpacking
kwargs: DescribeRouteTablesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_route_tables(**kwargs)
describe_scheduled_instance_availability#
Finds available schedules that meet the specified criteria.
Type annotations and code completion for session.create_client("ec2").describe_scheduled_instance_availability
method.
boto3 documentation
# describe_scheduled_instance_availability method definition
await def describe_scheduled_instance_availability(
self,
*,
FirstSlotStartTimeRange: SlotDateTimeRangeRequestTypeDef, # (1)
Recurrence: ScheduledInstanceRecurrenceRequestTypeDef, # (2)
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (3)
MaxResults: int = ...,
MaxSlotDurationInHours: int = ...,
MinSlotDurationInHours: int = ...,
NextToken: str = ...,
) -> DescribeScheduledInstanceAvailabilityResultTypeDef: # (4)
...
- See SlotDateTimeRangeRequestTypeDef
- See ScheduledInstanceRecurrenceRequestTypeDef
- See FilterTypeDef
- See DescribeScheduledInstanceAvailabilityResultTypeDef
# describe_scheduled_instance_availability method usage example with argument unpacking
kwargs: DescribeScheduledInstanceAvailabilityRequestRequestTypeDef = { # (1)
"FirstSlotStartTimeRange": ...,
"Recurrence": ...,
}
parent.describe_scheduled_instance_availability(**kwargs)
describe_scheduled_instances#
Describes the specified Scheduled Instances or all your Scheduled Instances.
Type annotations and code completion for session.create_client("ec2").describe_scheduled_instances
method.
boto3 documentation
# describe_scheduled_instances method definition
await def describe_scheduled_instances(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
ScheduledInstanceIds: Sequence[str] = ...,
SlotStartTimeRange: SlotStartTimeRangeRequestTypeDef = ..., # (2)
) -> DescribeScheduledInstancesResultTypeDef: # (3)
...
# describe_scheduled_instances method usage example with argument unpacking
kwargs: DescribeScheduledInstancesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_scheduled_instances(**kwargs)
describe_security_group_references#
Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you've specified in this request.
Type annotations and code completion for session.create_client("ec2").describe_security_group_references
method.
boto3 documentation
# describe_security_group_references method definition
await def describe_security_group_references(
self,
*,
GroupId: Sequence[str],
DryRun: bool = ...,
) -> DescribeSecurityGroupReferencesResultTypeDef: # (1)
...
# describe_security_group_references method usage example with argument unpacking
kwargs: DescribeSecurityGroupReferencesRequestRequestTypeDef = { # (1)
"GroupId": ...,
}
parent.describe_security_group_references(**kwargs)
describe_security_group_rules#
Describes one or more of your security group rules.
Type annotations and code completion for session.create_client("ec2").describe_security_group_rules
method.
boto3 documentation
# describe_security_group_rules method definition
await def describe_security_group_rules(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
SecurityGroupRuleIds: Sequence[str] = ...,
DryRun: bool = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeSecurityGroupRulesResultTypeDef: # (2)
...
# describe_security_group_rules method usage example with argument unpacking
kwargs: DescribeSecurityGroupRulesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_security_group_rules(**kwargs)
describe_security_groups#
Describes the specified security groups or all of your security groups.
Type annotations and code completion for session.create_client("ec2").describe_security_groups
method.
boto3 documentation
# describe_security_groups method definition
await def describe_security_groups(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
GroupIds: Sequence[str] = ...,
GroupNames: Sequence[str] = ...,
DryRun: bool = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeSecurityGroupsResultTypeDef: # (2)
...
# describe_security_groups method usage example with argument unpacking
kwargs: DescribeSecurityGroupsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_security_groups(**kwargs)
describe_snapshot_attribute#
Describes the specified attribute of the specified snapshot.
Type annotations and code completion for session.create_client("ec2").describe_snapshot_attribute
method.
boto3 documentation
# describe_snapshot_attribute method definition
await def describe_snapshot_attribute(
self,
*,
Attribute: SnapshotAttributeNameType, # (1)
SnapshotId: str,
DryRun: bool = ...,
) -> DescribeSnapshotAttributeResultTypeDef: # (2)
...
# describe_snapshot_attribute method usage example with argument unpacking
kwargs: DescribeSnapshotAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"SnapshotId": ...,
}
parent.describe_snapshot_attribute(**kwargs)
describe_snapshot_tier_status#
Describes the storage tier status of one or more Amazon EBS snapshots.
Type annotations and code completion for session.create_client("ec2").describe_snapshot_tier_status
method.
boto3 documentation
# describe_snapshot_tier_status method definition
await def describe_snapshot_tier_status(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeSnapshotTierStatusResultTypeDef: # (2)
...
# describe_snapshot_tier_status method usage example with argument unpacking
kwargs: DescribeSnapshotTierStatusRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_snapshot_tier_status(**kwargs)
describe_snapshots#
Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.
Type annotations and code completion for session.create_client("ec2").describe_snapshots
method.
boto3 documentation
# describe_snapshots method definition
await def describe_snapshots(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
OwnerIds: Sequence[str] = ...,
RestorableByUserIds: Sequence[str] = ...,
SnapshotIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DescribeSnapshotsResultTypeDef: # (2)
...
# describe_snapshots method usage example with argument unpacking
kwargs: DescribeSnapshotsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_snapshots(**kwargs)
describe_spot_datafeed_subscription#
Describes the data feed for Spot Instances.
Type annotations and code completion for session.create_client("ec2").describe_spot_datafeed_subscription
method.
boto3 documentation
# describe_spot_datafeed_subscription method definition
await def describe_spot_datafeed_subscription(
self,
*,
DryRun: bool = ...,
) -> DescribeSpotDatafeedSubscriptionResultTypeDef: # (1)
...
# describe_spot_datafeed_subscription method usage example with argument unpacking
kwargs: DescribeSpotDatafeedSubscriptionRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_spot_datafeed_subscription(**kwargs)
describe_spot_fleet_instances#
Describes the running instances for the specified Spot Fleet.
Type annotations and code completion for session.create_client("ec2").describe_spot_fleet_instances
method.
boto3 documentation
# describe_spot_fleet_instances method definition
await def describe_spot_fleet_instances(
self,
*,
SpotFleetRequestId: str,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeSpotFleetInstancesResponseTypeDef: # (1)
...
# describe_spot_fleet_instances method usage example with argument unpacking
kwargs: DescribeSpotFleetInstancesRequestRequestTypeDef = { # (1)
"SpotFleetRequestId": ...,
}
parent.describe_spot_fleet_instances(**kwargs)
describe_spot_fleet_request_history#
Describes the events for the specified Spot Fleet request during the specified time.
Type annotations and code completion for session.create_client("ec2").describe_spot_fleet_request_history
method.
boto3 documentation
# describe_spot_fleet_request_history method definition
await def describe_spot_fleet_request_history(
self,
*,
SpotFleetRequestId: str,
StartTime: Union[datetime, str],
DryRun: bool = ...,
EventType: EventTypeType = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeSpotFleetRequestHistoryResponseTypeDef: # (2)
...
# describe_spot_fleet_request_history method usage example with argument unpacking
kwargs: DescribeSpotFleetRequestHistoryRequestRequestTypeDef = { # (1)
"SpotFleetRequestId": ...,
"StartTime": ...,
}
parent.describe_spot_fleet_request_history(**kwargs)
describe_spot_fleet_requests#
Describes your Spot Fleet requests.
Type annotations and code completion for session.create_client("ec2").describe_spot_fleet_requests
method.
boto3 documentation
# describe_spot_fleet_requests method definition
await def describe_spot_fleet_requests(
self,
*,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
SpotFleetRequestIds: Sequence[str] = ...,
) -> DescribeSpotFleetRequestsResponseTypeDef: # (1)
...
# describe_spot_fleet_requests method usage example with argument unpacking
kwargs: DescribeSpotFleetRequestsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_spot_fleet_requests(**kwargs)
describe_spot_instance_requests#
Describes the specified Spot Instance requests.
Type annotations and code completion for session.create_client("ec2").describe_spot_instance_requests
method.
boto3 documentation
# describe_spot_instance_requests method definition
await def describe_spot_instance_requests(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
SpotInstanceRequestIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeSpotInstanceRequestsResultTypeDef: # (2)
...
# describe_spot_instance_requests method usage example with argument unpacking
kwargs: DescribeSpotInstanceRequestsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_spot_instance_requests(**kwargs)
describe_spot_price_history#
Describes the Spot price history.
Type annotations and code completion for session.create_client("ec2").describe_spot_price_history
method.
boto3 documentation
# describe_spot_price_history method definition
await def describe_spot_price_history(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
AvailabilityZone: str = ...,
DryRun: bool = ...,
EndTime: Union[datetime, str] = ...,
InstanceTypes: Sequence[InstanceTypeType] = ..., # (2)
MaxResults: int = ...,
NextToken: str = ...,
ProductDescriptions: Sequence[str] = ...,
StartTime: Union[datetime, str] = ...,
) -> DescribeSpotPriceHistoryResultTypeDef: # (3)
...
# describe_spot_price_history method usage example with argument unpacking
kwargs: DescribeSpotPriceHistoryRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_spot_price_history(**kwargs)
describe_stale_security_groups#
Describes the stale security group rules for security groups in a specified VPC.
Type annotations and code completion for session.create_client("ec2").describe_stale_security_groups
method.
boto3 documentation
# describe_stale_security_groups method definition
await def describe_stale_security_groups(
self,
*,
VpcId: str,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeStaleSecurityGroupsResultTypeDef: # (1)
...
# describe_stale_security_groups method usage example with argument unpacking
kwargs: DescribeStaleSecurityGroupsRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.describe_stale_security_groups(**kwargs)
describe_store_image_tasks#
Describes the progress of the AMI store tasks.
Type annotations and code completion for session.create_client("ec2").describe_store_image_tasks
method.
boto3 documentation
# describe_store_image_tasks method definition
await def describe_store_image_tasks(
self,
*,
ImageIds: Sequence[str] = ...,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeStoreImageTasksResultTypeDef: # (2)
...
# describe_store_image_tasks method usage example with argument unpacking
kwargs: DescribeStoreImageTasksRequestRequestTypeDef = { # (1)
"ImageIds": ...,
}
parent.describe_store_image_tasks(**kwargs)
describe_subnets#
Describes one or more of your subnets.
Type annotations and code completion for session.create_client("ec2").describe_subnets
method.
boto3 documentation
# describe_subnets method definition
await def describe_subnets(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
SubnetIds: Sequence[str] = ...,
DryRun: bool = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeSubnetsResultTypeDef: # (2)
...
# describe_subnets method usage example with argument unpacking
kwargs: DescribeSubnetsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_subnets(**kwargs)
describe_tags#
Describes the specified tags for your EC2 resources.
Type annotations and code completion for session.create_client("ec2").describe_tags
method.
boto3 documentation
# describe_tags method definition
await def describe_tags(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeTagsResultTypeDef: # (2)
...
# describe_tags method usage example with argument unpacking
kwargs: DescribeTagsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_tags(**kwargs)
describe_traffic_mirror_filters#
Describes one or more Traffic Mirror filters.
Type annotations and code completion for session.create_client("ec2").describe_traffic_mirror_filters
method.
boto3 documentation
# describe_traffic_mirror_filters method definition
await def describe_traffic_mirror_filters(
self,
*,
TrafficMirrorFilterIds: Sequence[str] = ...,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeTrafficMirrorFiltersResultTypeDef: # (2)
...
# describe_traffic_mirror_filters method usage example with argument unpacking
kwargs: DescribeTrafficMirrorFiltersRequestRequestTypeDef = { # (1)
"TrafficMirrorFilterIds": ...,
}
parent.describe_traffic_mirror_filters(**kwargs)
describe_traffic_mirror_sessions#
Describes one or more Traffic Mirror sessions.
Type annotations and code completion for session.create_client("ec2").describe_traffic_mirror_sessions
method.
boto3 documentation
# describe_traffic_mirror_sessions method definition
await def describe_traffic_mirror_sessions(
self,
*,
TrafficMirrorSessionIds: Sequence[str] = ...,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeTrafficMirrorSessionsResultTypeDef: # (2)
...
# describe_traffic_mirror_sessions method usage example with argument unpacking
kwargs: DescribeTrafficMirrorSessionsRequestRequestTypeDef = { # (1)
"TrafficMirrorSessionIds": ...,
}
parent.describe_traffic_mirror_sessions(**kwargs)
describe_traffic_mirror_targets#
Information about one or more Traffic Mirror targets.
Type annotations and code completion for session.create_client("ec2").describe_traffic_mirror_targets
method.
boto3 documentation
# describe_traffic_mirror_targets method definition
await def describe_traffic_mirror_targets(
self,
*,
TrafficMirrorTargetIds: Sequence[str] = ...,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeTrafficMirrorTargetsResultTypeDef: # (2)
...
# describe_traffic_mirror_targets method usage example with argument unpacking
kwargs: DescribeTrafficMirrorTargetsRequestRequestTypeDef = { # (1)
"TrafficMirrorTargetIds": ...,
}
parent.describe_traffic_mirror_targets(**kwargs)
describe_transit_gateway_attachments#
Describes one or more attachments between resources and transit gateways.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_attachments
method.
boto3 documentation
# describe_transit_gateway_attachments method definition
await def describe_transit_gateway_attachments(
self,
*,
TransitGatewayAttachmentIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayAttachmentsResultTypeDef: # (2)
...
# describe_transit_gateway_attachments method usage example with argument unpacking
kwargs: DescribeTransitGatewayAttachmentsRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentIds": ...,
}
parent.describe_transit_gateway_attachments(**kwargs)
describe_transit_gateway_connect_peers#
Describes one or more Connect peers.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_connect_peers
method.
boto3 documentation
# describe_transit_gateway_connect_peers method definition
await def describe_transit_gateway_connect_peers(
self,
*,
TransitGatewayConnectPeerIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayConnectPeersResultTypeDef: # (2)
...
# describe_transit_gateway_connect_peers method usage example with argument unpacking
kwargs: DescribeTransitGatewayConnectPeersRequestRequestTypeDef = { # (1)
"TransitGatewayConnectPeerIds": ...,
}
parent.describe_transit_gateway_connect_peers(**kwargs)
describe_transit_gateway_connects#
Describes one or more Connect attachments.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_connects
method.
boto3 documentation
# describe_transit_gateway_connects method definition
await def describe_transit_gateway_connects(
self,
*,
TransitGatewayAttachmentIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayConnectsResultTypeDef: # (2)
...
# describe_transit_gateway_connects method usage example with argument unpacking
kwargs: DescribeTransitGatewayConnectsRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentIds": ...,
}
parent.describe_transit_gateway_connects(**kwargs)
describe_transit_gateway_multicast_domains#
Describes one or more transit gateway multicast domains.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_multicast_domains
method.
boto3 documentation
# describe_transit_gateway_multicast_domains method definition
await def describe_transit_gateway_multicast_domains(
self,
*,
TransitGatewayMulticastDomainIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayMulticastDomainsResultTypeDef: # (2)
...
# describe_transit_gateway_multicast_domains method usage example with argument unpacking
kwargs: DescribeTransitGatewayMulticastDomainsRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainIds": ...,
}
parent.describe_transit_gateway_multicast_domains(**kwargs)
describe_transit_gateway_peering_attachments#
Describes your transit gateway peering attachments.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_peering_attachments
method.
boto3 documentation
# describe_transit_gateway_peering_attachments method definition
await def describe_transit_gateway_peering_attachments(
self,
*,
TransitGatewayAttachmentIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayPeeringAttachmentsResultTypeDef: # (2)
...
# describe_transit_gateway_peering_attachments method usage example with argument unpacking
kwargs: DescribeTransitGatewayPeeringAttachmentsRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentIds": ...,
}
parent.describe_transit_gateway_peering_attachments(**kwargs)
describe_transit_gateway_policy_tables#
Describes one or more transit gateway route policy tables.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_policy_tables
method.
boto3 documentation
# describe_transit_gateway_policy_tables method definition
await def describe_transit_gateway_policy_tables(
self,
*,
TransitGatewayPolicyTableIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayPolicyTablesResultTypeDef: # (2)
...
# describe_transit_gateway_policy_tables method usage example with argument unpacking
kwargs: DescribeTransitGatewayPolicyTablesRequestRequestTypeDef = { # (1)
"TransitGatewayPolicyTableIds": ...,
}
parent.describe_transit_gateway_policy_tables(**kwargs)
describe_transit_gateway_route_table_announcements#
Describes one or more transit gateway route table advertisements.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_route_table_announcements
method.
boto3 documentation
# describe_transit_gateway_route_table_announcements method definition
await def describe_transit_gateway_route_table_announcements(
self,
*,
TransitGatewayRouteTableAnnouncementIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayRouteTableAnnouncementsResultTypeDef: # (2)
...
# describe_transit_gateway_route_table_announcements method usage example with argument unpacking
kwargs: DescribeTransitGatewayRouteTableAnnouncementsRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableAnnouncementIds": ...,
}
parent.describe_transit_gateway_route_table_announcements(**kwargs)
describe_transit_gateway_route_tables#
Describes one or more transit gateway route tables.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_route_tables
method.
boto3 documentation
# describe_transit_gateway_route_tables method definition
await def describe_transit_gateway_route_tables(
self,
*,
TransitGatewayRouteTableIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayRouteTablesResultTypeDef: # (2)
...
# describe_transit_gateway_route_tables method usage example with argument unpacking
kwargs: DescribeTransitGatewayRouteTablesRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableIds": ...,
}
parent.describe_transit_gateway_route_tables(**kwargs)
describe_transit_gateway_vpc_attachments#
Describes one or more VPC attachments.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateway_vpc_attachments
method.
boto3 documentation
# describe_transit_gateway_vpc_attachments method definition
await def describe_transit_gateway_vpc_attachments(
self,
*,
TransitGatewayAttachmentIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewayVpcAttachmentsResultTypeDef: # (2)
...
# describe_transit_gateway_vpc_attachments method usage example with argument unpacking
kwargs: DescribeTransitGatewayVpcAttachmentsRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentIds": ...,
}
parent.describe_transit_gateway_vpc_attachments(**kwargs)
describe_transit_gateways#
Describes one or more transit gateways.
Type annotations and code completion for session.create_client("ec2").describe_transit_gateways
method.
boto3 documentation
# describe_transit_gateways method definition
await def describe_transit_gateways(
self,
*,
TransitGatewayIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> DescribeTransitGatewaysResultTypeDef: # (2)
...
# describe_transit_gateways method usage example with argument unpacking
kwargs: DescribeTransitGatewaysRequestRequestTypeDef = { # (1)
"TransitGatewayIds": ...,
}
parent.describe_transit_gateways(**kwargs)
describe_trunk_interface_associations#
.
Type annotations and code completion for session.create_client("ec2").describe_trunk_interface_associations
method.
boto3 documentation
# describe_trunk_interface_associations method definition
await def describe_trunk_interface_associations(
self,
*,
AssociationIds: Sequence[str] = ...,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeTrunkInterfaceAssociationsResultTypeDef: # (2)
...
# describe_trunk_interface_associations method usage example with argument unpacking
kwargs: DescribeTrunkInterfaceAssociationsRequestRequestTypeDef = { # (1)
"AssociationIds": ...,
}
parent.describe_trunk_interface_associations(**kwargs)
describe_verified_access_endpoints#
Describes the specified Amazon Web Services Verified Access endpoints.
Type annotations and code completion for session.create_client("ec2").describe_verified_access_endpoints
method.
boto3 documentation
# describe_verified_access_endpoints method definition
await def describe_verified_access_endpoints(
self,
*,
VerifiedAccessEndpointIds: Sequence[str] = ...,
VerifiedAccessInstanceId: str = ...,
VerifiedAccessGroupId: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeVerifiedAccessEndpointsResultTypeDef: # (2)
...
# describe_verified_access_endpoints method usage example with argument unpacking
kwargs: DescribeVerifiedAccessEndpointsRequestRequestTypeDef = { # (1)
"VerifiedAccessEndpointIds": ...,
}
parent.describe_verified_access_endpoints(**kwargs)
describe_verified_access_groups#
Describes the specified Verified Access groups.
Type annotations and code completion for session.create_client("ec2").describe_verified_access_groups
method.
boto3 documentation
# describe_verified_access_groups method definition
await def describe_verified_access_groups(
self,
*,
VerifiedAccessGroupIds: Sequence[str] = ...,
VerifiedAccessInstanceId: str = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeVerifiedAccessGroupsResultTypeDef: # (2)
...
# describe_verified_access_groups method usage example with argument unpacking
kwargs: DescribeVerifiedAccessGroupsRequestRequestTypeDef = { # (1)
"VerifiedAccessGroupIds": ...,
}
parent.describe_verified_access_groups(**kwargs)
describe_verified_access_instance_logging_configurations#
Describes the specified Amazon Web Services Verified Access instances.
Type annotations and code completion for session.create_client("ec2").describe_verified_access_instance_logging_configurations
method.
boto3 documentation
# describe_verified_access_instance_logging_configurations method definition
await def describe_verified_access_instance_logging_configurations(
self,
*,
VerifiedAccessInstanceIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeVerifiedAccessInstanceLoggingConfigurationsResultTypeDef: # (2)
...
# describe_verified_access_instance_logging_configurations method usage example with argument unpacking
kwargs: DescribeVerifiedAccessInstanceLoggingConfigurationsRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceIds": ...,
}
parent.describe_verified_access_instance_logging_configurations(**kwargs)
describe_verified_access_instances#
Describes the specified Amazon Web Services Verified Access instances.
Type annotations and code completion for session.create_client("ec2").describe_verified_access_instances
method.
boto3 documentation
# describe_verified_access_instances method definition
await def describe_verified_access_instances(
self,
*,
VerifiedAccessInstanceIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeVerifiedAccessInstancesResultTypeDef: # (2)
...
# describe_verified_access_instances method usage example with argument unpacking
kwargs: DescribeVerifiedAccessInstancesRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceIds": ...,
}
parent.describe_verified_access_instances(**kwargs)
describe_verified_access_trust_providers#
Describes the specified Amazon Web Services Verified Access trust providers.
Type annotations and code completion for session.create_client("ec2").describe_verified_access_trust_providers
method.
boto3 documentation
# describe_verified_access_trust_providers method definition
await def describe_verified_access_trust_providers(
self,
*,
VerifiedAccessTrustProviderIds: Sequence[str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> DescribeVerifiedAccessTrustProvidersResultTypeDef: # (2)
...
# describe_verified_access_trust_providers method usage example with argument unpacking
kwargs: DescribeVerifiedAccessTrustProvidersRequestRequestTypeDef = { # (1)
"VerifiedAccessTrustProviderIds": ...,
}
parent.describe_verified_access_trust_providers(**kwargs)
describe_volume_attribute#
Describes the specified attribute of the specified volume.
Type annotations and code completion for session.create_client("ec2").describe_volume_attribute
method.
boto3 documentation
# describe_volume_attribute method definition
await def describe_volume_attribute(
self,
*,
Attribute: VolumeAttributeNameType, # (1)
VolumeId: str,
DryRun: bool = ...,
) -> DescribeVolumeAttributeResultTypeDef: # (2)
...
# describe_volume_attribute method usage example with argument unpacking
kwargs: DescribeVolumeAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"VolumeId": ...,
}
parent.describe_volume_attribute(**kwargs)
describe_volume_status#
Describes the status of the specified volumes.
Type annotations and code completion for session.create_client("ec2").describe_volume_status
method.
boto3 documentation
# describe_volume_status method definition
await def describe_volume_status(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
VolumeIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DescribeVolumeStatusResultTypeDef: # (2)
...
# describe_volume_status method usage example with argument unpacking
kwargs: DescribeVolumeStatusRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_volume_status(**kwargs)
describe_volumes#
Describes the specified EBS volumes or all of your EBS volumes.
Type annotations and code completion for session.create_client("ec2").describe_volumes
method.
boto3 documentation
# describe_volumes method definition
await def describe_volumes(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
VolumeIds: Sequence[str] = ...,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeVolumesResultTypeDef: # (2)
...
# describe_volumes method usage example with argument unpacking
kwargs: DescribeVolumesRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_volumes(**kwargs)
describe_volumes_modifications#
Describes the most recent volume modification request for the specified EBS volumes.
Type annotations and code completion for session.create_client("ec2").describe_volumes_modifications
method.
boto3 documentation
# describe_volumes_modifications method definition
await def describe_volumes_modifications(
self,
*,
DryRun: bool = ...,
VolumeIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeVolumesModificationsResultTypeDef: # (2)
...
# describe_volumes_modifications method usage example with argument unpacking
kwargs: DescribeVolumesModificationsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_volumes_modifications(**kwargs)
describe_vpc_attribute#
Describes the specified attribute of the specified VPC.
Type annotations and code completion for session.create_client("ec2").describe_vpc_attribute
method.
boto3 documentation
# describe_vpc_attribute method definition
await def describe_vpc_attribute(
self,
*,
Attribute: VpcAttributeNameType, # (1)
VpcId: str,
DryRun: bool = ...,
) -> DescribeVpcAttributeResultTypeDef: # (2)
...
# describe_vpc_attribute method usage example with argument unpacking
kwargs: DescribeVpcAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"VpcId": ...,
}
parent.describe_vpc_attribute(**kwargs)
describe_vpc_classic_link#
.
Type annotations and code completion for session.create_client("ec2").describe_vpc_classic_link
method.
boto3 documentation
# describe_vpc_classic_link method definition
await def describe_vpc_classic_link(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
VpcIds: Sequence[str] = ...,
) -> DescribeVpcClassicLinkResultTypeDef: # (2)
...
# describe_vpc_classic_link method usage example with argument unpacking
kwargs: DescribeVpcClassicLinkRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_vpc_classic_link(**kwargs)
describe_vpc_classic_link_dns_support#
.
Type annotations and code completion for session.create_client("ec2").describe_vpc_classic_link_dns_support
method.
boto3 documentation
# describe_vpc_classic_link_dns_support method definition
await def describe_vpc_classic_link_dns_support(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
VpcIds: Sequence[str] = ...,
) -> DescribeVpcClassicLinkDnsSupportResultTypeDef: # (1)
...
# describe_vpc_classic_link_dns_support method usage example with argument unpacking
kwargs: DescribeVpcClassicLinkDnsSupportRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.describe_vpc_classic_link_dns_support(**kwargs)
describe_vpc_endpoint_connection_notifications#
Describes the connection notifications for VPC endpoints and VPC endpoint services.
Type annotations and code completion for session.create_client("ec2").describe_vpc_endpoint_connection_notifications
method.
boto3 documentation
# describe_vpc_endpoint_connection_notifications method definition
await def describe_vpc_endpoint_connection_notifications(
self,
*,
DryRun: bool = ...,
ConnectionNotificationId: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeVpcEndpointConnectionNotificationsResultTypeDef: # (2)
...
# describe_vpc_endpoint_connection_notifications method usage example with argument unpacking
kwargs: DescribeVpcEndpointConnectionNotificationsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_vpc_endpoint_connection_notifications(**kwargs)
describe_vpc_endpoint_connections#
Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.
Type annotations and code completion for session.create_client("ec2").describe_vpc_endpoint_connections
method.
boto3 documentation
# describe_vpc_endpoint_connections method definition
await def describe_vpc_endpoint_connections(
self,
*,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeVpcEndpointConnectionsResultTypeDef: # (2)
...
# describe_vpc_endpoint_connections method usage example with argument unpacking
kwargs: DescribeVpcEndpointConnectionsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_vpc_endpoint_connections(**kwargs)
describe_vpc_endpoint_service_configurations#
Describes the VPC endpoint service configurations in your account (your services).
Type annotations and code completion for session.create_client("ec2").describe_vpc_endpoint_service_configurations
method.
boto3 documentation
# describe_vpc_endpoint_service_configurations method definition
await def describe_vpc_endpoint_service_configurations(
self,
*,
DryRun: bool = ...,
ServiceIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeVpcEndpointServiceConfigurationsResultTypeDef: # (2)
...
# describe_vpc_endpoint_service_configurations method usage example with argument unpacking
kwargs: DescribeVpcEndpointServiceConfigurationsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_vpc_endpoint_service_configurations(**kwargs)
describe_vpc_endpoint_service_permissions#
Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.
Type annotations and code completion for session.create_client("ec2").describe_vpc_endpoint_service_permissions
method.
boto3 documentation
# describe_vpc_endpoint_service_permissions method definition
await def describe_vpc_endpoint_service_permissions(
self,
*,
ServiceId: str,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeVpcEndpointServicePermissionsResultTypeDef: # (2)
...
# describe_vpc_endpoint_service_permissions method usage example with argument unpacking
kwargs: DescribeVpcEndpointServicePermissionsRequestRequestTypeDef = { # (1)
"ServiceId": ...,
}
parent.describe_vpc_endpoint_service_permissions(**kwargs)
describe_vpc_endpoint_services#
Describes available services to which you can create a VPC endpoint.
Type annotations and code completion for session.create_client("ec2").describe_vpc_endpoint_services
method.
boto3 documentation
# describe_vpc_endpoint_services method definition
await def describe_vpc_endpoint_services(
self,
*,
DryRun: bool = ...,
ServiceNames: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeVpcEndpointServicesResultTypeDef: # (2)
...
# describe_vpc_endpoint_services method usage example with argument unpacking
kwargs: DescribeVpcEndpointServicesRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_vpc_endpoint_services(**kwargs)
describe_vpc_endpoints#
Describes your VPC endpoints.
Type annotations and code completion for session.create_client("ec2").describe_vpc_endpoints
method.
boto3 documentation
# describe_vpc_endpoints method definition
await def describe_vpc_endpoints(
self,
*,
DryRun: bool = ...,
VpcEndpointIds: Sequence[str] = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeVpcEndpointsResultTypeDef: # (2)
...
# describe_vpc_endpoints method usage example with argument unpacking
kwargs: DescribeVpcEndpointsRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.describe_vpc_endpoints(**kwargs)
describe_vpc_peering_connections#
Describes one or more of your VPC peering connections.
Type annotations and code completion for session.create_client("ec2").describe_vpc_peering_connections
method.
boto3 documentation
# describe_vpc_peering_connections method definition
await def describe_vpc_peering_connections(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
VpcPeeringConnectionIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeVpcPeeringConnectionsResultTypeDef: # (2)
...
# describe_vpc_peering_connections method usage example with argument unpacking
kwargs: DescribeVpcPeeringConnectionsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_vpc_peering_connections(**kwargs)
describe_vpcs#
Describes one or more of your VPCs.
Type annotations and code completion for session.create_client("ec2").describe_vpcs
method.
boto3 documentation
# describe_vpcs method definition
await def describe_vpcs(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
VpcIds: Sequence[str] = ...,
DryRun: bool = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> DescribeVpcsResultTypeDef: # (2)
...
# describe_vpcs method usage example with argument unpacking
kwargs: DescribeVpcsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_vpcs(**kwargs)
describe_vpn_connections#
Describes one or more of your VPN connections.
Type annotations and code completion for session.create_client("ec2").describe_vpn_connections
method.
boto3 documentation
# describe_vpn_connections method definition
await def describe_vpn_connections(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
VpnConnectionIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DescribeVpnConnectionsResultTypeDef: # (2)
...
# describe_vpn_connections method usage example with argument unpacking
kwargs: DescribeVpnConnectionsRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_vpn_connections(**kwargs)
describe_vpn_gateways#
Describes one or more of your virtual private gateways.
Type annotations and code completion for session.create_client("ec2").describe_vpn_gateways
method.
boto3 documentation
# describe_vpn_gateways method definition
await def describe_vpn_gateways(
self,
*,
Filters: Sequence[FilterTypeDef] = ..., # (1)
VpnGatewayIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> DescribeVpnGatewaysResultTypeDef: # (2)
...
# describe_vpn_gateways method usage example with argument unpacking
kwargs: DescribeVpnGatewaysRequestRequestTypeDef = { # (1)
"Filters": ...,
}
parent.describe_vpn_gateways(**kwargs)
detach_classic_link_vpc#
.
Type annotations and code completion for session.create_client("ec2").detach_classic_link_vpc
method.
boto3 documentation
# detach_classic_link_vpc method definition
await def detach_classic_link_vpc(
self,
*,
InstanceId: str,
VpcId: str,
DryRun: bool = ...,
) -> DetachClassicLinkVpcResultTypeDef: # (1)
...
# detach_classic_link_vpc method usage example with argument unpacking
kwargs: DetachClassicLinkVpcRequestRequestTypeDef = { # (1)
"InstanceId": ...,
"VpcId": ...,
}
parent.detach_classic_link_vpc(**kwargs)
detach_internet_gateway#
Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC.
Type annotations and code completion for session.create_client("ec2").detach_internet_gateway
method.
boto3 documentation
# detach_internet_gateway method definition
await def detach_internet_gateway(
self,
*,
InternetGatewayId: str,
VpcId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# detach_internet_gateway method usage example with argument unpacking
kwargs: DetachInternetGatewayRequestRequestTypeDef = { # (1)
"InternetGatewayId": ...,
"VpcId": ...,
}
parent.detach_internet_gateway(**kwargs)
detach_network_interface#
Detaches a network interface from an instance.
Type annotations and code completion for session.create_client("ec2").detach_network_interface
method.
boto3 documentation
# detach_network_interface method definition
await def detach_network_interface(
self,
*,
AttachmentId: str,
DryRun: bool = ...,
Force: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# detach_network_interface method usage example with argument unpacking
kwargs: DetachNetworkInterfaceRequestRequestTypeDef = { # (1)
"AttachmentId": ...,
}
parent.detach_network_interface(**kwargs)
detach_verified_access_trust_provider#
Detaches the specified Amazon Web Services Verified Access trust provider from the specified Amazon Web Services Verified Access instance.
Type annotations and code completion for session.create_client("ec2").detach_verified_access_trust_provider
method.
boto3 documentation
# detach_verified_access_trust_provider method definition
await def detach_verified_access_trust_provider(
self,
*,
VerifiedAccessInstanceId: str,
VerifiedAccessTrustProviderId: str,
ClientToken: str = ...,
DryRun: bool = ...,
) -> DetachVerifiedAccessTrustProviderResultTypeDef: # (1)
...
# detach_verified_access_trust_provider method usage example with argument unpacking
kwargs: DetachVerifiedAccessTrustProviderRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceId": ...,
"VerifiedAccessTrustProviderId": ...,
}
parent.detach_verified_access_trust_provider(**kwargs)
detach_volume#
Detaches an EBS volume from an instance.
Type annotations and code completion for session.create_client("ec2").detach_volume
method.
boto3 documentation
# detach_volume method definition
await def detach_volume(
self,
*,
VolumeId: str,
Device: str = ...,
Force: bool = ...,
InstanceId: str = ...,
DryRun: bool = ...,
) -> VolumeAttachmentTypeDef: # (1)
...
# detach_volume method usage example with argument unpacking
kwargs: DetachVolumeRequestRequestTypeDef = { # (1)
"VolumeId": ...,
}
parent.detach_volume(**kwargs)
detach_vpn_gateway#
Detaches a virtual private gateway from a VPC.
Type annotations and code completion for session.create_client("ec2").detach_vpn_gateway
method.
boto3 documentation
# detach_vpn_gateway method definition
await def detach_vpn_gateway(
self,
*,
VpcId: str,
VpnGatewayId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# detach_vpn_gateway method usage example with argument unpacking
kwargs: DetachVpnGatewayRequestRequestTypeDef = { # (1)
"VpcId": ...,
"VpnGatewayId": ...,
}
parent.detach_vpn_gateway(**kwargs)
disable_address_transfer#
Disables Elastic IP address transfer.
Type annotations and code completion for session.create_client("ec2").disable_address_transfer
method.
boto3 documentation
# disable_address_transfer method definition
await def disable_address_transfer(
self,
*,
AllocationId: str,
DryRun: bool = ...,
) -> DisableAddressTransferResultTypeDef: # (1)
...
# disable_address_transfer method usage example with argument unpacking
kwargs: DisableAddressTransferRequestRequestTypeDef = { # (1)
"AllocationId": ...,
}
parent.disable_address_transfer(**kwargs)
disable_aws_network_performance_metric_subscription#
Disables Infrastructure Performance metric subscriptions.
Type annotations and code completion for session.create_client("ec2").disable_aws_network_performance_metric_subscription
method.
boto3 documentation
# disable_aws_network_performance_metric_subscription method definition
await def disable_aws_network_performance_metric_subscription(
self,
*,
Source: str = ...,
Destination: str = ...,
Metric: MetricTypeType = ..., # (1)
Statistic: StatisticTypeType = ..., # (2)
DryRun: bool = ...,
) -> DisableAwsNetworkPerformanceMetricSubscriptionResultTypeDef: # (3)
...
- See MetricTypeType
- See StatisticTypeType
- See DisableAwsNetworkPerformanceMetricSubscriptionResultTypeDef
# disable_aws_network_performance_metric_subscription method usage example with argument unpacking
kwargs: DisableAwsNetworkPerformanceMetricSubscriptionRequestRequestTypeDef = { # (1)
"Source": ...,
}
parent.disable_aws_network_performance_metric_subscription(**kwargs)
disable_ebs_encryption_by_default#
Disables EBS encryption by default for your account in the current Region.
Type annotations and code completion for session.create_client("ec2").disable_ebs_encryption_by_default
method.
boto3 documentation
# disable_ebs_encryption_by_default method definition
await def disable_ebs_encryption_by_default(
self,
*,
DryRun: bool = ...,
) -> DisableEbsEncryptionByDefaultResultTypeDef: # (1)
...
# disable_ebs_encryption_by_default method usage example with argument unpacking
kwargs: DisableEbsEncryptionByDefaultRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.disable_ebs_encryption_by_default(**kwargs)
disable_fast_launch#
Discontinue faster launching for a Windows AMI, and clean up existing pre- provisioned snapshots.
Type annotations and code completion for session.create_client("ec2").disable_fast_launch
method.
boto3 documentation
# disable_fast_launch method definition
await def disable_fast_launch(
self,
*,
ImageId: str,
Force: bool = ...,
DryRun: bool = ...,
) -> DisableFastLaunchResultTypeDef: # (1)
...
# disable_fast_launch method usage example with argument unpacking
kwargs: DisableFastLaunchRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.disable_fast_launch(**kwargs)
disable_fast_snapshot_restores#
Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.
Type annotations and code completion for session.create_client("ec2").disable_fast_snapshot_restores
method.
boto3 documentation
# disable_fast_snapshot_restores method definition
await def disable_fast_snapshot_restores(
self,
*,
AvailabilityZones: Sequence[str],
SourceSnapshotIds: Sequence[str],
DryRun: bool = ...,
) -> DisableFastSnapshotRestoresResultTypeDef: # (1)
...
# disable_fast_snapshot_restores method usage example with argument unpacking
kwargs: DisableFastSnapshotRestoresRequestRequestTypeDef = { # (1)
"AvailabilityZones": ...,
"SourceSnapshotIds": ...,
}
parent.disable_fast_snapshot_restores(**kwargs)
disable_image_deprecation#
Cancels the deprecation of the specified AMI.
Type annotations and code completion for session.create_client("ec2").disable_image_deprecation
method.
boto3 documentation
# disable_image_deprecation method definition
await def disable_image_deprecation(
self,
*,
ImageId: str,
DryRun: bool = ...,
) -> DisableImageDeprecationResultTypeDef: # (1)
...
# disable_image_deprecation method usage example with argument unpacking
kwargs: DisableImageDeprecationRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.disable_image_deprecation(**kwargs)
disable_ipam_organization_admin_account#
Disable the IPAM account.
Type annotations and code completion for session.create_client("ec2").disable_ipam_organization_admin_account
method.
boto3 documentation
# disable_ipam_organization_admin_account method definition
await def disable_ipam_organization_admin_account(
self,
*,
DelegatedAdminAccountId: str,
DryRun: bool = ...,
) -> DisableIpamOrganizationAdminAccountResultTypeDef: # (1)
...
# disable_ipam_organization_admin_account method usage example with argument unpacking
kwargs: DisableIpamOrganizationAdminAccountRequestRequestTypeDef = { # (1)
"DelegatedAdminAccountId": ...,
}
parent.disable_ipam_organization_admin_account(**kwargs)
disable_serial_console_access#
Disables access to the EC2 serial console of all instances for your account.
Type annotations and code completion for session.create_client("ec2").disable_serial_console_access
method.
boto3 documentation
# disable_serial_console_access method definition
await def disable_serial_console_access(
self,
*,
DryRun: bool = ...,
) -> DisableSerialConsoleAccessResultTypeDef: # (1)
...
# disable_serial_console_access method usage example with argument unpacking
kwargs: DisableSerialConsoleAccessRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.disable_serial_console_access(**kwargs)
disable_transit_gateway_route_table_propagation#
Disables the specified resource attachment from propagating routes to the specified propagation route table.
Type annotations and code completion for session.create_client("ec2").disable_transit_gateway_route_table_propagation
method.
boto3 documentation
# disable_transit_gateway_route_table_propagation method definition
await def disable_transit_gateway_route_table_propagation(
self,
*,
TransitGatewayRouteTableId: str,
TransitGatewayAttachmentId: str = ...,
DryRun: bool = ...,
TransitGatewayRouteTableAnnouncementId: str = ...,
) -> DisableTransitGatewayRouteTablePropagationResultTypeDef: # (1)
...
# disable_transit_gateway_route_table_propagation method usage example with argument unpacking
kwargs: DisableTransitGatewayRouteTablePropagationRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
}
parent.disable_transit_gateway_route_table_propagation(**kwargs)
disable_vgw_route_propagation#
Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.
Type annotations and code completion for session.create_client("ec2").disable_vgw_route_propagation
method.
boto3 documentation
# disable_vgw_route_propagation method definition
await def disable_vgw_route_propagation(
self,
*,
GatewayId: str,
RouteTableId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# disable_vgw_route_propagation method usage example with argument unpacking
kwargs: DisableVgwRoutePropagationRequestRequestTypeDef = { # (1)
"GatewayId": ...,
"RouteTableId": ...,
}
parent.disable_vgw_route_propagation(**kwargs)
disable_vpc_classic_link#
.
Type annotations and code completion for session.create_client("ec2").disable_vpc_classic_link
method.
boto3 documentation
# disable_vpc_classic_link method definition
await def disable_vpc_classic_link(
self,
*,
VpcId: str,
DryRun: bool = ...,
) -> DisableVpcClassicLinkResultTypeDef: # (1)
...
# disable_vpc_classic_link method usage example with argument unpacking
kwargs: DisableVpcClassicLinkRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.disable_vpc_classic_link(**kwargs)
disable_vpc_classic_link_dns_support#
.
Type annotations and code completion for session.create_client("ec2").disable_vpc_classic_link_dns_support
method.
boto3 documentation
# disable_vpc_classic_link_dns_support method definition
await def disable_vpc_classic_link_dns_support(
self,
*,
VpcId: str = ...,
) -> DisableVpcClassicLinkDnsSupportResultTypeDef: # (1)
...
# disable_vpc_classic_link_dns_support method usage example with argument unpacking
kwargs: DisableVpcClassicLinkDnsSupportRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.disable_vpc_classic_link_dns_support(**kwargs)
disassociate_address#
Disassociates an Elastic IP address from the instance or network interface it's associated with.
Type annotations and code completion for session.create_client("ec2").disassociate_address
method.
boto3 documentation
# disassociate_address method definition
await def disassociate_address(
self,
*,
AssociationId: str = ...,
PublicIp: str = ...,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# disassociate_address method usage example with argument unpacking
kwargs: DisassociateAddressRequestRequestTypeDef = { # (1)
"AssociationId": ...,
}
parent.disassociate_address(**kwargs)
disassociate_client_vpn_target_network#
Disassociates a target network from the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").disassociate_client_vpn_target_network
method.
boto3 documentation
# disassociate_client_vpn_target_network method definition
await def disassociate_client_vpn_target_network(
self,
*,
ClientVpnEndpointId: str,
AssociationId: str,
DryRun: bool = ...,
) -> DisassociateClientVpnTargetNetworkResultTypeDef: # (1)
...
# disassociate_client_vpn_target_network method usage example with argument unpacking
kwargs: DisassociateClientVpnTargetNetworkRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"AssociationId": ...,
}
parent.disassociate_client_vpn_target_network(**kwargs)
disassociate_enclave_certificate_iam_role#
Disassociates an IAM role from an Certificate Manager (ACM) certificate.
Type annotations and code completion for session.create_client("ec2").disassociate_enclave_certificate_iam_role
method.
boto3 documentation
# disassociate_enclave_certificate_iam_role method definition
await def disassociate_enclave_certificate_iam_role(
self,
*,
CertificateArn: str,
RoleArn: str,
DryRun: bool = ...,
) -> DisassociateEnclaveCertificateIamRoleResultTypeDef: # (1)
...
# disassociate_enclave_certificate_iam_role method usage example with argument unpacking
kwargs: DisassociateEnclaveCertificateIamRoleRequestRequestTypeDef = { # (1)
"CertificateArn": ...,
"RoleArn": ...,
}
parent.disassociate_enclave_certificate_iam_role(**kwargs)
disassociate_iam_instance_profile#
Disassociates an IAM instance profile from a running or stopped instance.
Type annotations and code completion for session.create_client("ec2").disassociate_iam_instance_profile
method.
boto3 documentation
# disassociate_iam_instance_profile method definition
await def disassociate_iam_instance_profile(
self,
*,
AssociationId: str,
) -> DisassociateIamInstanceProfileResultTypeDef: # (1)
...
# disassociate_iam_instance_profile method usage example with argument unpacking
kwargs: DisassociateIamInstanceProfileRequestRequestTypeDef = { # (1)
"AssociationId": ...,
}
parent.disassociate_iam_instance_profile(**kwargs)
disassociate_instance_event_window#
Disassociates one or more targets from an event window.
Type annotations and code completion for session.create_client("ec2").disassociate_instance_event_window
method.
boto3 documentation
# disassociate_instance_event_window method definition
await def disassociate_instance_event_window(
self,
*,
InstanceEventWindowId: str,
AssociationTarget: InstanceEventWindowDisassociationRequestTypeDef, # (1)
DryRun: bool = ...,
) -> DisassociateInstanceEventWindowResultTypeDef: # (2)
...
- See InstanceEventWindowDisassociationRequestTypeDef
- See DisassociateInstanceEventWindowResultTypeDef
# disassociate_instance_event_window method usage example with argument unpacking
kwargs: DisassociateInstanceEventWindowRequestRequestTypeDef = { # (1)
"InstanceEventWindowId": ...,
"AssociationTarget": ...,
}
parent.disassociate_instance_event_window(**kwargs)
disassociate_ipam_resource_discovery#
Disassociates a resource discovery from an Amazon VPC IPAM.
Type annotations and code completion for session.create_client("ec2").disassociate_ipam_resource_discovery
method.
boto3 documentation
# disassociate_ipam_resource_discovery method definition
await def disassociate_ipam_resource_discovery(
self,
*,
IpamResourceDiscoveryAssociationId: str,
DryRun: bool = ...,
) -> DisassociateIpamResourceDiscoveryResultTypeDef: # (1)
...
# disassociate_ipam_resource_discovery method usage example with argument unpacking
kwargs: DisassociateIpamResourceDiscoveryRequestRequestTypeDef = { # (1)
"IpamResourceDiscoveryAssociationId": ...,
}
parent.disassociate_ipam_resource_discovery(**kwargs)
disassociate_nat_gateway_address#
Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway.
Type annotations and code completion for session.create_client("ec2").disassociate_nat_gateway_address
method.
boto3 documentation
# disassociate_nat_gateway_address method definition
await def disassociate_nat_gateway_address(
self,
*,
NatGatewayId: str,
AssociationIds: Sequence[str],
MaxDrainDurationSeconds: int = ...,
DryRun: bool = ...,
) -> DisassociateNatGatewayAddressResultTypeDef: # (1)
...
# disassociate_nat_gateway_address method usage example with argument unpacking
kwargs: DisassociateNatGatewayAddressRequestRequestTypeDef = { # (1)
"NatGatewayId": ...,
"AssociationIds": ...,
}
parent.disassociate_nat_gateway_address(**kwargs)
disassociate_route_table#
Disassociates a subnet or gateway from a route table.
Type annotations and code completion for session.create_client("ec2").disassociate_route_table
method.
boto3 documentation
# disassociate_route_table method definition
await def disassociate_route_table(
self,
*,
AssociationId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# disassociate_route_table method usage example with argument unpacking
kwargs: DisassociateRouteTableRequestRequestTypeDef = { # (1)
"AssociationId": ...,
}
parent.disassociate_route_table(**kwargs)
disassociate_subnet_cidr_block#
Disassociates a CIDR block from a subnet.
Type annotations and code completion for session.create_client("ec2").disassociate_subnet_cidr_block
method.
boto3 documentation
# disassociate_subnet_cidr_block method definition
await def disassociate_subnet_cidr_block(
self,
*,
AssociationId: str,
) -> DisassociateSubnetCidrBlockResultTypeDef: # (1)
...
# disassociate_subnet_cidr_block method usage example with argument unpacking
kwargs: DisassociateSubnetCidrBlockRequestRequestTypeDef = { # (1)
"AssociationId": ...,
}
parent.disassociate_subnet_cidr_block(**kwargs)
disassociate_transit_gateway_multicast_domain#
Disassociates the specified subnets from the transit gateway multicast domain.
Type annotations and code completion for session.create_client("ec2").disassociate_transit_gateway_multicast_domain
method.
boto3 documentation
# disassociate_transit_gateway_multicast_domain method definition
await def disassociate_transit_gateway_multicast_domain(
self,
*,
TransitGatewayMulticastDomainId: str,
TransitGatewayAttachmentId: str,
SubnetIds: Sequence[str],
DryRun: bool = ...,
) -> DisassociateTransitGatewayMulticastDomainResultTypeDef: # (1)
...
# disassociate_transit_gateway_multicast_domain method usage example with argument unpacking
kwargs: DisassociateTransitGatewayMulticastDomainRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
"TransitGatewayAttachmentId": ...,
"SubnetIds": ...,
}
parent.disassociate_transit_gateway_multicast_domain(**kwargs)
disassociate_transit_gateway_policy_table#
Removes the association between an an attachment and a policy table.
Type annotations and code completion for session.create_client("ec2").disassociate_transit_gateway_policy_table
method.
boto3 documentation
# disassociate_transit_gateway_policy_table method definition
await def disassociate_transit_gateway_policy_table(
self,
*,
TransitGatewayPolicyTableId: str,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> DisassociateTransitGatewayPolicyTableResultTypeDef: # (1)
...
# disassociate_transit_gateway_policy_table method usage example with argument unpacking
kwargs: DisassociateTransitGatewayPolicyTableRequestRequestTypeDef = { # (1)
"TransitGatewayPolicyTableId": ...,
"TransitGatewayAttachmentId": ...,
}
parent.disassociate_transit_gateway_policy_table(**kwargs)
disassociate_transit_gateway_route_table#
Disassociates a resource attachment from a transit gateway route table.
Type annotations and code completion for session.create_client("ec2").disassociate_transit_gateway_route_table
method.
boto3 documentation
# disassociate_transit_gateway_route_table method definition
await def disassociate_transit_gateway_route_table(
self,
*,
TransitGatewayRouteTableId: str,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> DisassociateTransitGatewayRouteTableResultTypeDef: # (1)
...
# disassociate_transit_gateway_route_table method usage example with argument unpacking
kwargs: DisassociateTransitGatewayRouteTableRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"TransitGatewayAttachmentId": ...,
}
parent.disassociate_transit_gateway_route_table(**kwargs)
disassociate_trunk_interface#
.
Type annotations and code completion for session.create_client("ec2").disassociate_trunk_interface
method.
boto3 documentation
# disassociate_trunk_interface method definition
await def disassociate_trunk_interface(
self,
*,
AssociationId: str,
ClientToken: str = ...,
DryRun: bool = ...,
) -> DisassociateTrunkInterfaceResultTypeDef: # (1)
...
# disassociate_trunk_interface method usage example with argument unpacking
kwargs: DisassociateTrunkInterfaceRequestRequestTypeDef = { # (1)
"AssociationId": ...,
}
parent.disassociate_trunk_interface(**kwargs)
disassociate_vpc_cidr_block#
Disassociates a CIDR block from a VPC.
Type annotations and code completion for session.create_client("ec2").disassociate_vpc_cidr_block
method.
boto3 documentation
# disassociate_vpc_cidr_block method definition
await def disassociate_vpc_cidr_block(
self,
*,
AssociationId: str,
) -> DisassociateVpcCidrBlockResultTypeDef: # (1)
...
# disassociate_vpc_cidr_block method usage example with argument unpacking
kwargs: DisassociateVpcCidrBlockRequestRequestTypeDef = { # (1)
"AssociationId": ...,
}
parent.disassociate_vpc_cidr_block(**kwargs)
enable_address_transfer#
Enables Elastic IP address transfer.
Type annotations and code completion for session.create_client("ec2").enable_address_transfer
method.
boto3 documentation
# enable_address_transfer method definition
await def enable_address_transfer(
self,
*,
AllocationId: str,
TransferAccountId: str,
DryRun: bool = ...,
) -> EnableAddressTransferResultTypeDef: # (1)
...
# enable_address_transfer method usage example with argument unpacking
kwargs: EnableAddressTransferRequestRequestTypeDef = { # (1)
"AllocationId": ...,
"TransferAccountId": ...,
}
parent.enable_address_transfer(**kwargs)
enable_aws_network_performance_metric_subscription#
Enables Infrastructure Performance subscriptions.
Type annotations and code completion for session.create_client("ec2").enable_aws_network_performance_metric_subscription
method.
boto3 documentation
# enable_aws_network_performance_metric_subscription method definition
await def enable_aws_network_performance_metric_subscription(
self,
*,
Source: str = ...,
Destination: str = ...,
Metric: MetricTypeType = ..., # (1)
Statistic: StatisticTypeType = ..., # (2)
DryRun: bool = ...,
) -> EnableAwsNetworkPerformanceMetricSubscriptionResultTypeDef: # (3)
...
- See MetricTypeType
- See StatisticTypeType
- See EnableAwsNetworkPerformanceMetricSubscriptionResultTypeDef
# enable_aws_network_performance_metric_subscription method usage example with argument unpacking
kwargs: EnableAwsNetworkPerformanceMetricSubscriptionRequestRequestTypeDef = { # (1)
"Source": ...,
}
parent.enable_aws_network_performance_metric_subscription(**kwargs)
enable_ebs_encryption_by_default#
Enables EBS encryption by default for your account in the current Region.
Type annotations and code completion for session.create_client("ec2").enable_ebs_encryption_by_default
method.
boto3 documentation
# enable_ebs_encryption_by_default method definition
await def enable_ebs_encryption_by_default(
self,
*,
DryRun: bool = ...,
) -> EnableEbsEncryptionByDefaultResultTypeDef: # (1)
...
# enable_ebs_encryption_by_default method usage example with argument unpacking
kwargs: EnableEbsEncryptionByDefaultRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.enable_ebs_encryption_by_default(**kwargs)
enable_fast_launch#
When you enable faster launching for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster.
Type annotations and code completion for session.create_client("ec2").enable_fast_launch
method.
boto3 documentation
# enable_fast_launch method definition
await def enable_fast_launch(
self,
*,
ImageId: str,
ResourceType: str = ...,
SnapshotConfiguration: FastLaunchSnapshotConfigurationRequestTypeDef = ..., # (1)
LaunchTemplate: FastLaunchLaunchTemplateSpecificationRequestTypeDef = ..., # (2)
MaxParallelLaunches: int = ...,
DryRun: bool = ...,
) -> EnableFastLaunchResultTypeDef: # (3)
...
- See FastLaunchSnapshotConfigurationRequestTypeDef
- See FastLaunchLaunchTemplateSpecificationRequestTypeDef
- See EnableFastLaunchResultTypeDef
# enable_fast_launch method usage example with argument unpacking
kwargs: EnableFastLaunchRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.enable_fast_launch(**kwargs)
enable_fast_snapshot_restores#
Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.
Type annotations and code completion for session.create_client("ec2").enable_fast_snapshot_restores
method.
boto3 documentation
# enable_fast_snapshot_restores method definition
await def enable_fast_snapshot_restores(
self,
*,
AvailabilityZones: Sequence[str],
SourceSnapshotIds: Sequence[str],
DryRun: bool = ...,
) -> EnableFastSnapshotRestoresResultTypeDef: # (1)
...
# enable_fast_snapshot_restores method usage example with argument unpacking
kwargs: EnableFastSnapshotRestoresRequestRequestTypeDef = { # (1)
"AvailabilityZones": ...,
"SourceSnapshotIds": ...,
}
parent.enable_fast_snapshot_restores(**kwargs)
enable_image_deprecation#
Enables deprecation of the specified AMI at the specified date and time.
Type annotations and code completion for session.create_client("ec2").enable_image_deprecation
method.
boto3 documentation
# enable_image_deprecation method definition
await def enable_image_deprecation(
self,
*,
ImageId: str,
DeprecateAt: Union[datetime, str],
DryRun: bool = ...,
) -> EnableImageDeprecationResultTypeDef: # (1)
...
# enable_image_deprecation method usage example with argument unpacking
kwargs: EnableImageDeprecationRequestRequestTypeDef = { # (1)
"ImageId": ...,
"DeprecateAt": ...,
}
parent.enable_image_deprecation(**kwargs)
enable_ipam_organization_admin_account#
Enable an Organizations member account as the IPAM admin account.
Type annotations and code completion for session.create_client("ec2").enable_ipam_organization_admin_account
method.
boto3 documentation
# enable_ipam_organization_admin_account method definition
await def enable_ipam_organization_admin_account(
self,
*,
DelegatedAdminAccountId: str,
DryRun: bool = ...,
) -> EnableIpamOrganizationAdminAccountResultTypeDef: # (1)
...
# enable_ipam_organization_admin_account method usage example with argument unpacking
kwargs: EnableIpamOrganizationAdminAccountRequestRequestTypeDef = { # (1)
"DelegatedAdminAccountId": ...,
}
parent.enable_ipam_organization_admin_account(**kwargs)
enable_reachability_analyzer_organization_sharing#
Establishes a trust relationship between Reachability Analyzer and Organizations.
Type annotations and code completion for session.create_client("ec2").enable_reachability_analyzer_organization_sharing
method.
boto3 documentation
# enable_reachability_analyzer_organization_sharing method definition
await def enable_reachability_analyzer_organization_sharing(
self,
*,
DryRun: bool = ...,
) -> EnableReachabilityAnalyzerOrganizationSharingResultTypeDef: # (1)
...
# enable_reachability_analyzer_organization_sharing method usage example with argument unpacking
kwargs: EnableReachabilityAnalyzerOrganizationSharingRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.enable_reachability_analyzer_organization_sharing(**kwargs)
enable_serial_console_access#
Enables access to the EC2 serial console of all instances for your account.
Type annotations and code completion for session.create_client("ec2").enable_serial_console_access
method.
boto3 documentation
# enable_serial_console_access method definition
await def enable_serial_console_access(
self,
*,
DryRun: bool = ...,
) -> EnableSerialConsoleAccessResultTypeDef: # (1)
...
# enable_serial_console_access method usage example with argument unpacking
kwargs: EnableSerialConsoleAccessRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.enable_serial_console_access(**kwargs)
enable_transit_gateway_route_table_propagation#
Enables the specified attachment to propagate routes to the specified propagation route table.
Type annotations and code completion for session.create_client("ec2").enable_transit_gateway_route_table_propagation
method.
boto3 documentation
# enable_transit_gateway_route_table_propagation method definition
await def enable_transit_gateway_route_table_propagation(
self,
*,
TransitGatewayRouteTableId: str,
TransitGatewayAttachmentId: str = ...,
DryRun: bool = ...,
TransitGatewayRouteTableAnnouncementId: str = ...,
) -> EnableTransitGatewayRouteTablePropagationResultTypeDef: # (1)
...
# enable_transit_gateway_route_table_propagation method usage example with argument unpacking
kwargs: EnableTransitGatewayRouteTablePropagationRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
}
parent.enable_transit_gateway_route_table_propagation(**kwargs)
enable_vgw_route_propagation#
Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
Type annotations and code completion for session.create_client("ec2").enable_vgw_route_propagation
method.
boto3 documentation
# enable_vgw_route_propagation method definition
await def enable_vgw_route_propagation(
self,
*,
GatewayId: str,
RouteTableId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# enable_vgw_route_propagation method usage example with argument unpacking
kwargs: EnableVgwRoutePropagationRequestRequestTypeDef = { # (1)
"GatewayId": ...,
"RouteTableId": ...,
}
parent.enable_vgw_route_propagation(**kwargs)
enable_volume_io#
Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.
Type annotations and code completion for session.create_client("ec2").enable_volume_io
method.
boto3 documentation
# enable_volume_io method definition
await def enable_volume_io(
self,
*,
VolumeId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# enable_volume_io method usage example with argument unpacking
kwargs: EnableVolumeIORequestRequestTypeDef = { # (1)
"VolumeId": ...,
}
parent.enable_volume_io(**kwargs)
enable_vpc_classic_link#
.
Type annotations and code completion for session.create_client("ec2").enable_vpc_classic_link
method.
boto3 documentation
# enable_vpc_classic_link method definition
await def enable_vpc_classic_link(
self,
*,
VpcId: str,
DryRun: bool = ...,
) -> EnableVpcClassicLinkResultTypeDef: # (1)
...
# enable_vpc_classic_link method usage example with argument unpacking
kwargs: EnableVpcClassicLinkRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.enable_vpc_classic_link(**kwargs)
enable_vpc_classic_link_dns_support#
.
Type annotations and code completion for session.create_client("ec2").enable_vpc_classic_link_dns_support
method.
boto3 documentation
# enable_vpc_classic_link_dns_support method definition
await def enable_vpc_classic_link_dns_support(
self,
*,
VpcId: str = ...,
) -> EnableVpcClassicLinkDnsSupportResultTypeDef: # (1)
...
# enable_vpc_classic_link_dns_support method usage example with argument unpacking
kwargs: EnableVpcClassicLinkDnsSupportRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.enable_vpc_classic_link_dns_support(**kwargs)
export_client_vpn_client_certificate_revocation_list#
Downloads the client certificate revocation list for the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").export_client_vpn_client_certificate_revocation_list
method.
boto3 documentation
# export_client_vpn_client_certificate_revocation_list method definition
await def export_client_vpn_client_certificate_revocation_list(
self,
*,
ClientVpnEndpointId: str,
DryRun: bool = ...,
) -> ExportClientVpnClientCertificateRevocationListResultTypeDef: # (1)
...
# export_client_vpn_client_certificate_revocation_list method usage example with argument unpacking
kwargs: ExportClientVpnClientCertificateRevocationListRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.export_client_vpn_client_certificate_revocation_list(**kwargs)
export_client_vpn_client_configuration#
Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").export_client_vpn_client_configuration
method.
boto3 documentation
# export_client_vpn_client_configuration method definition
await def export_client_vpn_client_configuration(
self,
*,
ClientVpnEndpointId: str,
DryRun: bool = ...,
) -> ExportClientVpnClientConfigurationResultTypeDef: # (1)
...
# export_client_vpn_client_configuration method usage example with argument unpacking
kwargs: ExportClientVpnClientConfigurationRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.export_client_vpn_client_configuration(**kwargs)
export_image#
Exports an Amazon Machine Image (AMI) to a VM file.
Type annotations and code completion for session.create_client("ec2").export_image
method.
boto3 documentation
# export_image method definition
await def export_image(
self,
*,
DiskImageFormat: DiskImageFormatType, # (1)
ImageId: str,
S3ExportLocation: ExportTaskS3LocationRequestTypeDef, # (2)
ClientToken: str = ...,
Description: str = ...,
DryRun: bool = ...,
RoleName: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (3)
) -> ExportImageResultTypeDef: # (4)
...
- See DiskImageFormatType
- See ExportTaskS3LocationRequestTypeDef
- See TagSpecificationTypeDef
- See ExportImageResultTypeDef
# export_image method usage example with argument unpacking
kwargs: ExportImageRequestRequestTypeDef = { # (1)
"DiskImageFormat": ...,
"ImageId": ...,
"S3ExportLocation": ...,
}
parent.export_image(**kwargs)
export_transit_gateway_routes#
Exports routes from the specified transit gateway route table to the specified S3 bucket.
Type annotations and code completion for session.create_client("ec2").export_transit_gateway_routes
method.
boto3 documentation
# export_transit_gateway_routes method definition
await def export_transit_gateway_routes(
self,
*,
TransitGatewayRouteTableId: str,
S3Bucket: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
) -> ExportTransitGatewayRoutesResultTypeDef: # (2)
...
# export_transit_gateway_routes method usage example with argument unpacking
kwargs: ExportTransitGatewayRoutesRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"S3Bucket": ...,
}
parent.export_transit_gateway_routes(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for session.create_client("ec2").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
await def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_associated_enclave_certificate_iam_roles#
Returns the IAM roles that are associated with the specified ACM (ACM) certificate.
Type annotations and code completion for session.create_client("ec2").get_associated_enclave_certificate_iam_roles
method.
boto3 documentation
# get_associated_enclave_certificate_iam_roles method definition
await def get_associated_enclave_certificate_iam_roles(
self,
*,
CertificateArn: str,
DryRun: bool = ...,
) -> GetAssociatedEnclaveCertificateIamRolesResultTypeDef: # (1)
...
# get_associated_enclave_certificate_iam_roles method usage example with argument unpacking
kwargs: GetAssociatedEnclaveCertificateIamRolesRequestRequestTypeDef = { # (1)
"CertificateArn": ...,
}
parent.get_associated_enclave_certificate_iam_roles(**kwargs)
get_associated_ipv6_pool_cidrs#
Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool.
Type annotations and code completion for session.create_client("ec2").get_associated_ipv6_pool_cidrs
method.
boto3 documentation
# get_associated_ipv6_pool_cidrs method definition
await def get_associated_ipv6_pool_cidrs(
self,
*,
PoolId: str,
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
) -> GetAssociatedIpv6PoolCidrsResultTypeDef: # (1)
...
# get_associated_ipv6_pool_cidrs method usage example with argument unpacking
kwargs: GetAssociatedIpv6PoolCidrsRequestRequestTypeDef = { # (1)
"PoolId": ...,
}
parent.get_associated_ipv6_pool_cidrs(**kwargs)
get_aws_network_performance_data#
Gets network performance data.
Type annotations and code completion for session.create_client("ec2").get_aws_network_performance_data
method.
boto3 documentation
# get_aws_network_performance_data method definition
await def get_aws_network_performance_data(
self,
*,
DataQueries: Sequence[DataQueryTypeDef] = ..., # (1)
StartTime: Union[datetime, str] = ...,
EndTime: Union[datetime, str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetAwsNetworkPerformanceDataResultTypeDef: # (2)
...
# get_aws_network_performance_data method usage example with argument unpacking
kwargs: GetAwsNetworkPerformanceDataRequestRequestTypeDef = { # (1)
"DataQueries": ...,
}
parent.get_aws_network_performance_data(**kwargs)
get_capacity_reservation_usage#
Gets usage information about a Capacity Reservation.
Type annotations and code completion for session.create_client("ec2").get_capacity_reservation_usage
method.
boto3 documentation
# get_capacity_reservation_usage method definition
await def get_capacity_reservation_usage(
self,
*,
CapacityReservationId: str,
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
) -> GetCapacityReservationUsageResultTypeDef: # (1)
...
# get_capacity_reservation_usage method usage example with argument unpacking
kwargs: GetCapacityReservationUsageRequestRequestTypeDef = { # (1)
"CapacityReservationId": ...,
}
parent.get_capacity_reservation_usage(**kwargs)
get_coip_pool_usage#
Describes the allocations from the specified customer-owned address pool.
Type annotations and code completion for session.create_client("ec2").get_coip_pool_usage
method.
boto3 documentation
# get_coip_pool_usage method definition
await def get_coip_pool_usage(
self,
*,
PoolId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetCoipPoolUsageResultTypeDef: # (2)
...
# get_coip_pool_usage method usage example with argument unpacking
kwargs: GetCoipPoolUsageRequestRequestTypeDef = { # (1)
"PoolId": ...,
}
parent.get_coip_pool_usage(**kwargs)
get_console_output#
Gets the console output for the specified instance.
Type annotations and code completion for session.create_client("ec2").get_console_output
method.
boto3 documentation
# get_console_output method definition
await def get_console_output(
self,
*,
InstanceId: str,
DryRun: bool = ...,
Latest: bool = ...,
) -> GetConsoleOutputResultTypeDef: # (1)
...
# get_console_output method usage example with argument unpacking
kwargs: GetConsoleOutputRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.get_console_output(**kwargs)
get_console_screenshot#
Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
Type annotations and code completion for session.create_client("ec2").get_console_screenshot
method.
boto3 documentation
# get_console_screenshot method definition
await def get_console_screenshot(
self,
*,
InstanceId: str,
DryRun: bool = ...,
WakeUp: bool = ...,
) -> GetConsoleScreenshotResultTypeDef: # (1)
...
# get_console_screenshot method usage example with argument unpacking
kwargs: GetConsoleScreenshotRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.get_console_screenshot(**kwargs)
get_default_credit_specification#
Describes the default credit option for CPU usage of a burstable performance instance family.
Type annotations and code completion for session.create_client("ec2").get_default_credit_specification
method.
boto3 documentation
# get_default_credit_specification method definition
await def get_default_credit_specification(
self,
*,
InstanceFamily: UnlimitedSupportedInstanceFamilyType, # (1)
DryRun: bool = ...,
) -> GetDefaultCreditSpecificationResultTypeDef: # (2)
...
# get_default_credit_specification method usage example with argument unpacking
kwargs: GetDefaultCreditSpecificationRequestRequestTypeDef = { # (1)
"InstanceFamily": ...,
}
parent.get_default_credit_specification(**kwargs)
get_ebs_default_kms_key_id#
Describes the default KMS key for EBS encryption by default for your account in this Region.
Type annotations and code completion for session.create_client("ec2").get_ebs_default_kms_key_id
method.
boto3 documentation
# get_ebs_default_kms_key_id method definition
await def get_ebs_default_kms_key_id(
self,
*,
DryRun: bool = ...,
) -> GetEbsDefaultKmsKeyIdResultTypeDef: # (1)
...
# get_ebs_default_kms_key_id method usage example with argument unpacking
kwargs: GetEbsDefaultKmsKeyIdRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.get_ebs_default_kms_key_id(**kwargs)
get_ebs_encryption_by_default#
Describes whether EBS encryption by default is enabled for your account in the current Region.
Type annotations and code completion for session.create_client("ec2").get_ebs_encryption_by_default
method.
boto3 documentation
# get_ebs_encryption_by_default method definition
await def get_ebs_encryption_by_default(
self,
*,
DryRun: bool = ...,
) -> GetEbsEncryptionByDefaultResultTypeDef: # (1)
...
# get_ebs_encryption_by_default method usage example with argument unpacking
kwargs: GetEbsEncryptionByDefaultRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.get_ebs_encryption_by_default(**kwargs)
get_flow_logs_integration_template#
Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena.
Type annotations and code completion for session.create_client("ec2").get_flow_logs_integration_template
method.
boto3 documentation
# get_flow_logs_integration_template method definition
await def get_flow_logs_integration_template(
self,
*,
FlowLogId: str,
ConfigDeliveryS3DestinationArn: str,
IntegrateServices: IntegrateServicesTypeDef, # (1)
DryRun: bool = ...,
) -> GetFlowLogsIntegrationTemplateResultTypeDef: # (2)
...
# get_flow_logs_integration_template method usage example with argument unpacking
kwargs: GetFlowLogsIntegrationTemplateRequestRequestTypeDef = { # (1)
"FlowLogId": ...,
"ConfigDeliveryS3DestinationArn": ...,
"IntegrateServices": ...,
}
parent.get_flow_logs_integration_template(**kwargs)
get_groups_for_capacity_reservation#
Lists the resource groups to which a Capacity Reservation has been added.
Type annotations and code completion for session.create_client("ec2").get_groups_for_capacity_reservation
method.
boto3 documentation
# get_groups_for_capacity_reservation method definition
await def get_groups_for_capacity_reservation(
self,
*,
CapacityReservationId: str,
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
) -> GetGroupsForCapacityReservationResultTypeDef: # (1)
...
# get_groups_for_capacity_reservation method usage example with argument unpacking
kwargs: GetGroupsForCapacityReservationRequestRequestTypeDef = { # (1)
"CapacityReservationId": ...,
}
parent.get_groups_for_capacity_reservation(**kwargs)
get_host_reservation_purchase_preview#
Preview a reservation purchase with configurations that match those of your Dedicated Host.
Type annotations and code completion for session.create_client("ec2").get_host_reservation_purchase_preview
method.
boto3 documentation
# get_host_reservation_purchase_preview method definition
await def get_host_reservation_purchase_preview(
self,
*,
HostIdSet: Sequence[str],
OfferingId: str,
) -> GetHostReservationPurchasePreviewResultTypeDef: # (1)
...
# get_host_reservation_purchase_preview method usage example with argument unpacking
kwargs: GetHostReservationPurchasePreviewRequestRequestTypeDef = { # (1)
"HostIdSet": ...,
"OfferingId": ...,
}
parent.get_host_reservation_purchase_preview(**kwargs)
get_instance_types_from_instance_requirements#
Returns a list of instance types with the specified instance attributes.
Type annotations and code completion for session.create_client("ec2").get_instance_types_from_instance_requirements
method.
boto3 documentation
# get_instance_types_from_instance_requirements method definition
await def get_instance_types_from_instance_requirements(
self,
*,
ArchitectureTypes: Sequence[ArchitectureTypeType], # (1)
VirtualizationTypes: Sequence[VirtualizationTypeType], # (2)
InstanceRequirements: InstanceRequirementsRequestTypeDef, # (3)
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> GetInstanceTypesFromInstanceRequirementsResultTypeDef: # (4)
...
- See ArchitectureTypeType
- See VirtualizationTypeType
- See InstanceRequirementsRequestTypeDef
- See GetInstanceTypesFromInstanceRequirementsResultTypeDef
# get_instance_types_from_instance_requirements method usage example with argument unpacking
kwargs: GetInstanceTypesFromInstanceRequirementsRequestRequestTypeDef = { # (1)
"ArchitectureTypes": ...,
"VirtualizationTypes": ...,
"InstanceRequirements": ...,
}
parent.get_instance_types_from_instance_requirements(**kwargs)
get_instance_uefi_data#
A binary representation of the UEFI variable store.
Type annotations and code completion for session.create_client("ec2").get_instance_uefi_data
method.
boto3 documentation
# get_instance_uefi_data method definition
await def get_instance_uefi_data(
self,
*,
InstanceId: str,
DryRun: bool = ...,
) -> GetInstanceUefiDataResultTypeDef: # (1)
...
# get_instance_uefi_data method usage example with argument unpacking
kwargs: GetInstanceUefiDataRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.get_instance_uefi_data(**kwargs)
get_ipam_address_history#
Retrieve historical information about a CIDR within an IPAM scope.
Type annotations and code completion for session.create_client("ec2").get_ipam_address_history
method.
boto3 documentation
# get_ipam_address_history method definition
await def get_ipam_address_history(
self,
*,
Cidr: str,
IpamScopeId: str,
DryRun: bool = ...,
VpcId: str = ...,
StartTime: Union[datetime, str] = ...,
EndTime: Union[datetime, str] = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> GetIpamAddressHistoryResultTypeDef: # (1)
...
# get_ipam_address_history method usage example with argument unpacking
kwargs: GetIpamAddressHistoryRequestRequestTypeDef = { # (1)
"Cidr": ...,
"IpamScopeId": ...,
}
parent.get_ipam_address_history(**kwargs)
get_ipam_discovered_accounts#
Gets IPAM discovered accounts.
Type annotations and code completion for session.create_client("ec2").get_ipam_discovered_accounts
method.
boto3 documentation
# get_ipam_discovered_accounts method definition
await def get_ipam_discovered_accounts(
self,
*,
IpamResourceDiscoveryId: str,
DiscoveryRegion: str,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> GetIpamDiscoveredAccountsResultTypeDef: # (2)
...
# get_ipam_discovered_accounts method usage example with argument unpacking
kwargs: GetIpamDiscoveredAccountsRequestRequestTypeDef = { # (1)
"IpamResourceDiscoveryId": ...,
"DiscoveryRegion": ...,
}
parent.get_ipam_discovered_accounts(**kwargs)
get_ipam_discovered_resource_cidrs#
Returns the resource CIDRs that are monitored as part of a resource discovery.
Type annotations and code completion for session.create_client("ec2").get_ipam_discovered_resource_cidrs
method.
boto3 documentation
# get_ipam_discovered_resource_cidrs method definition
await def get_ipam_discovered_resource_cidrs(
self,
*,
IpamResourceDiscoveryId: str,
ResourceRegion: str,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
NextToken: str = ...,
MaxResults: int = ...,
) -> GetIpamDiscoveredResourceCidrsResultTypeDef: # (2)
...
# get_ipam_discovered_resource_cidrs method usage example with argument unpacking
kwargs: GetIpamDiscoveredResourceCidrsRequestRequestTypeDef = { # (1)
"IpamResourceDiscoveryId": ...,
"ResourceRegion": ...,
}
parent.get_ipam_discovered_resource_cidrs(**kwargs)
get_ipam_pool_allocations#
Get a list of all the CIDR allocations in an IPAM pool.
Type annotations and code completion for session.create_client("ec2").get_ipam_pool_allocations
method.
boto3 documentation
# get_ipam_pool_allocations method definition
await def get_ipam_pool_allocations(
self,
*,
IpamPoolId: str,
DryRun: bool = ...,
IpamPoolAllocationId: str = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> GetIpamPoolAllocationsResultTypeDef: # (2)
...
# get_ipam_pool_allocations method usage example with argument unpacking
kwargs: GetIpamPoolAllocationsRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
}
parent.get_ipam_pool_allocations(**kwargs)
get_ipam_pool_cidrs#
Get the CIDRs provisioned to an IPAM pool.
Type annotations and code completion for session.create_client("ec2").get_ipam_pool_cidrs
method.
boto3 documentation
# get_ipam_pool_cidrs method definition
await def get_ipam_pool_cidrs(
self,
*,
IpamPoolId: str,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> GetIpamPoolCidrsResultTypeDef: # (2)
...
# get_ipam_pool_cidrs method usage example with argument unpacking
kwargs: GetIpamPoolCidrsRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
}
parent.get_ipam_pool_cidrs(**kwargs)
get_ipam_resource_cidrs#
Returns resource CIDRs managed by IPAM in a given scope.
Type annotations and code completion for session.create_client("ec2").get_ipam_resource_cidrs
method.
boto3 documentation
# get_ipam_resource_cidrs method definition
await def get_ipam_resource_cidrs(
self,
*,
IpamScopeId: str,
DryRun: bool = ...,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
IpamPoolId: str = ...,
ResourceId: str = ...,
ResourceType: IpamResourceTypeType = ..., # (2)
ResourceTag: RequestIpamResourceTagTypeDef = ..., # (3)
ResourceOwner: str = ...,
) -> GetIpamResourceCidrsResultTypeDef: # (4)
...
- See FilterTypeDef
- See IpamResourceTypeType
- See RequestIpamResourceTagTypeDef
- See GetIpamResourceCidrsResultTypeDef
# get_ipam_resource_cidrs method usage example with argument unpacking
kwargs: GetIpamResourceCidrsRequestRequestTypeDef = { # (1)
"IpamScopeId": ...,
}
parent.get_ipam_resource_cidrs(**kwargs)
get_launch_template_data#
Retrieves the configuration data of the specified instance.
Type annotations and code completion for session.create_client("ec2").get_launch_template_data
method.
boto3 documentation
# get_launch_template_data method definition
await def get_launch_template_data(
self,
*,
InstanceId: str,
DryRun: bool = ...,
) -> GetLaunchTemplateDataResultTypeDef: # (1)
...
# get_launch_template_data method usage example with argument unpacking
kwargs: GetLaunchTemplateDataRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.get_launch_template_data(**kwargs)
get_managed_prefix_list_associations#
Gets information about the resources that are associated with the specified managed prefix list.
Type annotations and code completion for session.create_client("ec2").get_managed_prefix_list_associations
method.
boto3 documentation
# get_managed_prefix_list_associations method definition
await def get_managed_prefix_list_associations(
self,
*,
PrefixListId: str,
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> GetManagedPrefixListAssociationsResultTypeDef: # (1)
...
# get_managed_prefix_list_associations method usage example with argument unpacking
kwargs: GetManagedPrefixListAssociationsRequestRequestTypeDef = { # (1)
"PrefixListId": ...,
}
parent.get_managed_prefix_list_associations(**kwargs)
get_managed_prefix_list_entries#
Gets information about the entries for a specified managed prefix list.
Type annotations and code completion for session.create_client("ec2").get_managed_prefix_list_entries
method.
boto3 documentation
# get_managed_prefix_list_entries method definition
await def get_managed_prefix_list_entries(
self,
*,
PrefixListId: str,
DryRun: bool = ...,
TargetVersion: int = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> GetManagedPrefixListEntriesResultTypeDef: # (1)
...
# get_managed_prefix_list_entries method usage example with argument unpacking
kwargs: GetManagedPrefixListEntriesRequestRequestTypeDef = { # (1)
"PrefixListId": ...,
}
parent.get_managed_prefix_list_entries(**kwargs)
get_network_insights_access_scope_analysis_findings#
Gets the findings for the specified Network Access Scope analysis.
Type annotations and code completion for session.create_client("ec2").get_network_insights_access_scope_analysis_findings
method.
boto3 documentation
# get_network_insights_access_scope_analysis_findings method definition
await def get_network_insights_access_scope_analysis_findings(
self,
*,
NetworkInsightsAccessScopeAnalysisId: str,
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeAnalysisFindingsResultTypeDef: # (1)
...
# get_network_insights_access_scope_analysis_findings method usage example with argument unpacking
kwargs: GetNetworkInsightsAccessScopeAnalysisFindingsRequestRequestTypeDef = { # (1)
"NetworkInsightsAccessScopeAnalysisId": ...,
}
parent.get_network_insights_access_scope_analysis_findings(**kwargs)
get_network_insights_access_scope_content#
Gets the content for the specified Network Access Scope.
Type annotations and code completion for session.create_client("ec2").get_network_insights_access_scope_content
method.
boto3 documentation
# get_network_insights_access_scope_content method definition
await def get_network_insights_access_scope_content(
self,
*,
NetworkInsightsAccessScopeId: str,
DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeContentResultTypeDef: # (1)
...
# get_network_insights_access_scope_content method usage example with argument unpacking
kwargs: GetNetworkInsightsAccessScopeContentRequestRequestTypeDef = { # (1)
"NetworkInsightsAccessScopeId": ...,
}
parent.get_network_insights_access_scope_content(**kwargs)
get_password_data#
Retrieves the encrypted administrator password for a running Windows instance.
Type annotations and code completion for session.create_client("ec2").get_password_data
method.
boto3 documentation
# get_password_data method definition
await def get_password_data(
self,
*,
InstanceId: str,
DryRun: bool = ...,
) -> GetPasswordDataResultTypeDef: # (1)
...
# get_password_data method usage example with argument unpacking
kwargs: GetPasswordDataRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.get_password_data(**kwargs)
get_reserved_instances_exchange_quote#
Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance.
Type annotations and code completion for session.create_client("ec2").get_reserved_instances_exchange_quote
method.
boto3 documentation
# get_reserved_instances_exchange_quote method definition
await def get_reserved_instances_exchange_quote(
self,
*,
ReservedInstanceIds: Sequence[str],
DryRun: bool = ...,
TargetConfigurations: Sequence[TargetConfigurationRequestTypeDef] = ..., # (1)
) -> GetReservedInstancesExchangeQuoteResultTypeDef: # (2)
...
# get_reserved_instances_exchange_quote method usage example with argument unpacking
kwargs: GetReservedInstancesExchangeQuoteRequestRequestTypeDef = { # (1)
"ReservedInstanceIds": ...,
}
parent.get_reserved_instances_exchange_quote(**kwargs)
get_serial_console_access_status#
Retrieves the access status of your account to the EC2 serial console of all instances.
Type annotations and code completion for session.create_client("ec2").get_serial_console_access_status
method.
boto3 documentation
# get_serial_console_access_status method definition
await def get_serial_console_access_status(
self,
*,
DryRun: bool = ...,
) -> GetSerialConsoleAccessStatusResultTypeDef: # (1)
...
# get_serial_console_access_status method usage example with argument unpacking
kwargs: GetSerialConsoleAccessStatusRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.get_serial_console_access_status(**kwargs)
get_spot_placement_scores#
Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.
Type annotations and code completion for session.create_client("ec2").get_spot_placement_scores
method.
boto3 documentation
# get_spot_placement_scores method definition
await def get_spot_placement_scores(
self,
*,
TargetCapacity: int,
InstanceTypes: Sequence[str] = ...,
TargetCapacityUnitType: TargetCapacityUnitTypeType = ..., # (1)
SingleAvailabilityZone: bool = ...,
RegionNames: Sequence[str] = ...,
InstanceRequirementsWithMetadata: InstanceRequirementsWithMetadataRequestTypeDef = ..., # (2)
DryRun: bool = ...,
MaxResults: int = ...,
NextToken: str = ...,
) -> GetSpotPlacementScoresResultTypeDef: # (3)
...
- See TargetCapacityUnitTypeType
- See InstanceRequirementsWithMetadataRequestTypeDef
- See GetSpotPlacementScoresResultTypeDef
# get_spot_placement_scores method usage example with argument unpacking
kwargs: GetSpotPlacementScoresRequestRequestTypeDef = { # (1)
"TargetCapacity": ...,
}
parent.get_spot_placement_scores(**kwargs)
get_subnet_cidr_reservations#
Gets information about the subnet CIDR reservations.
Type annotations and code completion for session.create_client("ec2").get_subnet_cidr_reservations
method.
boto3 documentation
# get_subnet_cidr_reservations method definition
await def get_subnet_cidr_reservations(
self,
*,
SubnetId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
DryRun: bool = ...,
NextToken: str = ...,
MaxResults: int = ...,
) -> GetSubnetCidrReservationsResultTypeDef: # (2)
...
# get_subnet_cidr_reservations method usage example with argument unpacking
kwargs: GetSubnetCidrReservationsRequestRequestTypeDef = { # (1)
"SubnetId": ...,
}
parent.get_subnet_cidr_reservations(**kwargs)
get_transit_gateway_attachment_propagations#
Lists the route tables to which the specified resource attachment propagates routes.
Type annotations and code completion for session.create_client("ec2").get_transit_gateway_attachment_propagations
method.
boto3 documentation
# get_transit_gateway_attachment_propagations method definition
await def get_transit_gateway_attachment_propagations(
self,
*,
TransitGatewayAttachmentId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetTransitGatewayAttachmentPropagationsResultTypeDef: # (2)
...
# get_transit_gateway_attachment_propagations method usage example with argument unpacking
kwargs: GetTransitGatewayAttachmentPropagationsRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.get_transit_gateway_attachment_propagations(**kwargs)
get_transit_gateway_multicast_domain_associations#
Gets information about the associations for the transit gateway multicast domain.
Type annotations and code completion for session.create_client("ec2").get_transit_gateway_multicast_domain_associations
method.
boto3 documentation
# get_transit_gateway_multicast_domain_associations method definition
await def get_transit_gateway_multicast_domain_associations(
self,
*,
TransitGatewayMulticastDomainId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetTransitGatewayMulticastDomainAssociationsResultTypeDef: # (2)
...
# get_transit_gateway_multicast_domain_associations method usage example with argument unpacking
kwargs: GetTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
}
parent.get_transit_gateway_multicast_domain_associations(**kwargs)
get_transit_gateway_policy_table_associations#
Gets a list of the transit gateway policy table associations.
Type annotations and code completion for session.create_client("ec2").get_transit_gateway_policy_table_associations
method.
boto3 documentation
# get_transit_gateway_policy_table_associations method definition
await def get_transit_gateway_policy_table_associations(
self,
*,
TransitGatewayPolicyTableId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetTransitGatewayPolicyTableAssociationsResultTypeDef: # (2)
...
# get_transit_gateway_policy_table_associations method usage example with argument unpacking
kwargs: GetTransitGatewayPolicyTableAssociationsRequestRequestTypeDef = { # (1)
"TransitGatewayPolicyTableId": ...,
}
parent.get_transit_gateway_policy_table_associations(**kwargs)
get_transit_gateway_policy_table_entries#
Returns a list of transit gateway policy table entries.
Type annotations and code completion for session.create_client("ec2").get_transit_gateway_policy_table_entries
method.
boto3 documentation
# get_transit_gateway_policy_table_entries method definition
await def get_transit_gateway_policy_table_entries(
self,
*,
TransitGatewayPolicyTableId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetTransitGatewayPolicyTableEntriesResultTypeDef: # (2)
...
# get_transit_gateway_policy_table_entries method usage example with argument unpacking
kwargs: GetTransitGatewayPolicyTableEntriesRequestRequestTypeDef = { # (1)
"TransitGatewayPolicyTableId": ...,
}
parent.get_transit_gateway_policy_table_entries(**kwargs)
get_transit_gateway_prefix_list_references#
Gets information about the prefix list references in a specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").get_transit_gateway_prefix_list_references
method.
boto3 documentation
# get_transit_gateway_prefix_list_references method definition
await def get_transit_gateway_prefix_list_references(
self,
*,
TransitGatewayRouteTableId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetTransitGatewayPrefixListReferencesResultTypeDef: # (2)
...
# get_transit_gateway_prefix_list_references method usage example with argument unpacking
kwargs: GetTransitGatewayPrefixListReferencesRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
}
parent.get_transit_gateway_prefix_list_references(**kwargs)
get_transit_gateway_route_table_associations#
Gets information about the associations for the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").get_transit_gateway_route_table_associations
method.
boto3 documentation
# get_transit_gateway_route_table_associations method definition
await def get_transit_gateway_route_table_associations(
self,
*,
TransitGatewayRouteTableId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetTransitGatewayRouteTableAssociationsResultTypeDef: # (2)
...
# get_transit_gateway_route_table_associations method usage example with argument unpacking
kwargs: GetTransitGatewayRouteTableAssociationsRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
}
parent.get_transit_gateway_route_table_associations(**kwargs)
get_transit_gateway_route_table_propagations#
Gets information about the route table propagations for the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").get_transit_gateway_route_table_propagations
method.
boto3 documentation
# get_transit_gateway_route_table_propagations method definition
await def get_transit_gateway_route_table_propagations(
self,
*,
TransitGatewayRouteTableId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetTransitGatewayRouteTablePropagationsResultTypeDef: # (2)
...
# get_transit_gateway_route_table_propagations method usage example with argument unpacking
kwargs: GetTransitGatewayRouteTablePropagationsRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
}
parent.get_transit_gateway_route_table_propagations(**kwargs)
get_verified_access_endpoint_policy#
Get the Verified Access policy associated with the endpoint.
Type annotations and code completion for session.create_client("ec2").get_verified_access_endpoint_policy
method.
boto3 documentation
# get_verified_access_endpoint_policy method definition
await def get_verified_access_endpoint_policy(
self,
*,
VerifiedAccessEndpointId: str,
DryRun: bool = ...,
) -> GetVerifiedAccessEndpointPolicyResultTypeDef: # (1)
...
# get_verified_access_endpoint_policy method usage example with argument unpacking
kwargs: GetVerifiedAccessEndpointPolicyRequestRequestTypeDef = { # (1)
"VerifiedAccessEndpointId": ...,
}
parent.get_verified_access_endpoint_policy(**kwargs)
get_verified_access_group_policy#
Shows the contents of the Verified Access policy associated with the group.
Type annotations and code completion for session.create_client("ec2").get_verified_access_group_policy
method.
boto3 documentation
# get_verified_access_group_policy method definition
await def get_verified_access_group_policy(
self,
*,
VerifiedAccessGroupId: str,
DryRun: bool = ...,
) -> GetVerifiedAccessGroupPolicyResultTypeDef: # (1)
...
# get_verified_access_group_policy method usage example with argument unpacking
kwargs: GetVerifiedAccessGroupPolicyRequestRequestTypeDef = { # (1)
"VerifiedAccessGroupId": ...,
}
parent.get_verified_access_group_policy(**kwargs)
get_vpn_connection_device_sample_configuration#
Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.
Type annotations and code completion for session.create_client("ec2").get_vpn_connection_device_sample_configuration
method.
boto3 documentation
# get_vpn_connection_device_sample_configuration method definition
await def get_vpn_connection_device_sample_configuration(
self,
*,
VpnConnectionId: str,
VpnConnectionDeviceTypeId: str,
InternetKeyExchangeVersion: str = ...,
DryRun: bool = ...,
) -> GetVpnConnectionDeviceSampleConfigurationResultTypeDef: # (1)
...
# get_vpn_connection_device_sample_configuration method usage example with argument unpacking
kwargs: GetVpnConnectionDeviceSampleConfigurationRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
"VpnConnectionDeviceTypeId": ...,
}
parent.get_vpn_connection_device_sample_configuration(**kwargs)
get_vpn_connection_device_types#
Obtain a list of customer gateway devices for which sample configuration files can be provided.
Type annotations and code completion for session.create_client("ec2").get_vpn_connection_device_types
method.
boto3 documentation
# get_vpn_connection_device_types method definition
await def get_vpn_connection_device_types(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> GetVpnConnectionDeviceTypesResultTypeDef: # (1)
...
# get_vpn_connection_device_types method usage example with argument unpacking
kwargs: GetVpnConnectionDeviceTypesRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.get_vpn_connection_device_types(**kwargs)
get_vpn_tunnel_replacement_status#
Get details of available tunnel endpoint maintenance.
Type annotations and code completion for session.create_client("ec2").get_vpn_tunnel_replacement_status
method.
boto3 documentation
# get_vpn_tunnel_replacement_status method definition
await def get_vpn_tunnel_replacement_status(
self,
*,
VpnConnectionId: str,
VpnTunnelOutsideIpAddress: str,
DryRun: bool = ...,
) -> GetVpnTunnelReplacementStatusResultTypeDef: # (1)
...
# get_vpn_tunnel_replacement_status method usage example with argument unpacking
kwargs: GetVpnTunnelReplacementStatusRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
"VpnTunnelOutsideIpAddress": ...,
}
parent.get_vpn_tunnel_replacement_status(**kwargs)
import_client_vpn_client_certificate_revocation_list#
Uploads a client certificate revocation list to the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").import_client_vpn_client_certificate_revocation_list
method.
boto3 documentation
# import_client_vpn_client_certificate_revocation_list method definition
await def import_client_vpn_client_certificate_revocation_list(
self,
*,
ClientVpnEndpointId: str,
CertificateRevocationList: str,
DryRun: bool = ...,
) -> ImportClientVpnClientCertificateRevocationListResultTypeDef: # (1)
...
# import_client_vpn_client_certificate_revocation_list method usage example with argument unpacking
kwargs: ImportClientVpnClientCertificateRevocationListRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"CertificateRevocationList": ...,
}
parent.import_client_vpn_client_certificate_revocation_list(**kwargs)
import_image#
.
Type annotations and code completion for session.create_client("ec2").import_image
method.
boto3 documentation
# import_image method definition
await def import_image(
self,
*,
Architecture: str = ...,
ClientData: ClientDataTypeDef = ..., # (1)
ClientToken: str = ...,
Description: str = ...,
DiskContainers: Sequence[ImageDiskContainerTypeDef] = ..., # (2)
DryRun: bool = ...,
Encrypted: bool = ...,
Hypervisor: str = ...,
KmsKeyId: str = ...,
LicenseType: str = ...,
Platform: str = ...,
RoleName: str = ...,
LicenseSpecifications: Sequence[ImportImageLicenseConfigurationRequestTypeDef] = ..., # (3)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (4)
UsageOperation: str = ...,
BootMode: BootModeValuesType = ..., # (5)
) -> ImportImageResultTypeDef: # (6)
...
- See ClientDataTypeDef
- See ImageDiskContainerTypeDef
- See ImportImageLicenseConfigurationRequestTypeDef
- See TagSpecificationTypeDef
- See BootModeValuesType
- See ImportImageResultTypeDef
# import_image method usage example with argument unpacking
kwargs: ImportImageRequestRequestTypeDef = { # (1)
"Architecture": ...,
}
parent.import_image(**kwargs)
import_instance#
.
Type annotations and code completion for session.create_client("ec2").import_instance
method.
boto3 documentation
# import_instance method definition
await def import_instance(
self,
*,
Platform: PlatformValuesType, # (1)
Description: str = ...,
DiskImages: Sequence[DiskImageTypeDef] = ..., # (2)
DryRun: bool = ...,
LaunchSpecification: ImportInstanceLaunchSpecificationTypeDef = ..., # (3)
) -> ImportInstanceResultTypeDef: # (4)
...
- See PlatformValuesType
- See DiskImageTypeDef
- See ImportInstanceLaunchSpecificationTypeDef
- See ImportInstanceResultTypeDef
# import_instance method usage example with argument unpacking
kwargs: ImportInstanceRequestRequestTypeDef = { # (1)
"Platform": ...,
}
parent.import_instance(**kwargs)
import_key_pair#
Imports the public key from an RSA or ED25519 key pair that you created with a third-party tool.
Type annotations and code completion for session.create_client("ec2").import_key_pair
method.
boto3 documentation
# import_key_pair method definition
await def import_key_pair(
self,
*,
KeyName: str,
PublicKeyMaterial: Union[str, bytes, IO[Any], StreamingBody],
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> ImportKeyPairResultTypeDef: # (2)
...
# import_key_pair method usage example with argument unpacking
kwargs: ImportKeyPairRequestRequestTypeDef = { # (1)
"KeyName": ...,
"PublicKeyMaterial": ...,
}
parent.import_key_pair(**kwargs)
import_snapshot#
Imports a disk into an EBS snapshot.
Type annotations and code completion for session.create_client("ec2").import_snapshot
method.
boto3 documentation
# import_snapshot method definition
await def import_snapshot(
self,
*,
ClientData: ClientDataTypeDef = ..., # (1)
ClientToken: str = ...,
Description: str = ...,
DiskContainer: SnapshotDiskContainerTypeDef = ..., # (2)
DryRun: bool = ...,
Encrypted: bool = ...,
KmsKeyId: str = ...,
RoleName: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (3)
) -> ImportSnapshotResultTypeDef: # (4)
...
- See ClientDataTypeDef
- See SnapshotDiskContainerTypeDef
- See TagSpecificationTypeDef
- See ImportSnapshotResultTypeDef
# import_snapshot method usage example with argument unpacking
kwargs: ImportSnapshotRequestRequestTypeDef = { # (1)
"ClientData": ...,
}
parent.import_snapshot(**kwargs)
import_volume#
Creates an import volume task using metadata from the specified disk image.
Type annotations and code completion for session.create_client("ec2").import_volume
method.
boto3 documentation
# import_volume method definition
await def import_volume(
self,
*,
AvailabilityZone: str,
Image: DiskImageDetailTypeDef, # (1)
Volume: VolumeDetailTypeDef, # (2)
Description: str = ...,
DryRun: bool = ...,
) -> ImportVolumeResultTypeDef: # (3)
...
# import_volume method usage example with argument unpacking
kwargs: ImportVolumeRequestRequestTypeDef = { # (1)
"AvailabilityZone": ...,
"Image": ...,
"Volume": ...,
}
parent.import_volume(**kwargs)
list_images_in_recycle_bin#
Lists one or more AMIs that are currently in the Recycle Bin.
Type annotations and code completion for session.create_client("ec2").list_images_in_recycle_bin
method.
boto3 documentation
# list_images_in_recycle_bin method definition
await def list_images_in_recycle_bin(
self,
*,
ImageIds: Sequence[str] = ...,
NextToken: str = ...,
MaxResults: int = ...,
DryRun: bool = ...,
) -> ListImagesInRecycleBinResultTypeDef: # (1)
...
# list_images_in_recycle_bin method usage example with argument unpacking
kwargs: ListImagesInRecycleBinRequestRequestTypeDef = { # (1)
"ImageIds": ...,
}
parent.list_images_in_recycle_bin(**kwargs)
list_snapshots_in_recycle_bin#
Lists one or more snapshots that are currently in the Recycle Bin.
Type annotations and code completion for session.create_client("ec2").list_snapshots_in_recycle_bin
method.
boto3 documentation
# list_snapshots_in_recycle_bin method definition
await def list_snapshots_in_recycle_bin(
self,
*,
MaxResults: int = ...,
NextToken: str = ...,
SnapshotIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> ListSnapshotsInRecycleBinResultTypeDef: # (1)
...
# list_snapshots_in_recycle_bin method usage example with argument unpacking
kwargs: ListSnapshotsInRecycleBinRequestRequestTypeDef = { # (1)
"MaxResults": ...,
}
parent.list_snapshots_in_recycle_bin(**kwargs)
modify_address_attribute#
Modifies an attribute of the specified Elastic IP address.
Type annotations and code completion for session.create_client("ec2").modify_address_attribute
method.
boto3 documentation
# modify_address_attribute method definition
await def modify_address_attribute(
self,
*,
AllocationId: str,
DomainName: str = ...,
DryRun: bool = ...,
) -> ModifyAddressAttributeResultTypeDef: # (1)
...
# modify_address_attribute method usage example with argument unpacking
kwargs: ModifyAddressAttributeRequestRequestTypeDef = { # (1)
"AllocationId": ...,
}
parent.modify_address_attribute(**kwargs)
modify_availability_zone_group#
Changes the opt-in status of the Local Zone and Wavelength Zone group for your account.
Type annotations and code completion for session.create_client("ec2").modify_availability_zone_group
method.
boto3 documentation
# modify_availability_zone_group method definition
await def modify_availability_zone_group(
self,
*,
GroupName: str,
OptInStatus: ModifyAvailabilityZoneOptInStatusType, # (1)
DryRun: bool = ...,
) -> ModifyAvailabilityZoneGroupResultTypeDef: # (2)
...
# modify_availability_zone_group method usage example with argument unpacking
kwargs: ModifyAvailabilityZoneGroupRequestRequestTypeDef = { # (1)
"GroupName": ...,
"OptInStatus": ...,
}
parent.modify_availability_zone_group(**kwargs)
modify_capacity_reservation#
Modifies a Capacity Reservation's capacity and the conditions under which it is to be released.
Type annotations and code completion for session.create_client("ec2").modify_capacity_reservation
method.
boto3 documentation
# modify_capacity_reservation method definition
await def modify_capacity_reservation(
self,
*,
CapacityReservationId: str,
InstanceCount: int = ...,
EndDate: Union[datetime, str] = ...,
EndDateType: EndDateTypeType = ..., # (1)
Accept: bool = ...,
DryRun: bool = ...,
AdditionalInfo: str = ...,
) -> ModifyCapacityReservationResultTypeDef: # (2)
...
# modify_capacity_reservation method usage example with argument unpacking
kwargs: ModifyCapacityReservationRequestRequestTypeDef = { # (1)
"CapacityReservationId": ...,
}
parent.modify_capacity_reservation(**kwargs)
modify_capacity_reservation_fleet#
Modifies a Capacity Reservation Fleet.
Type annotations and code completion for session.create_client("ec2").modify_capacity_reservation_fleet
method.
boto3 documentation
# modify_capacity_reservation_fleet method definition
await def modify_capacity_reservation_fleet(
self,
*,
CapacityReservationFleetId: str,
TotalTargetCapacity: int = ...,
EndDate: Union[datetime, str] = ...,
DryRun: bool = ...,
RemoveEndDate: bool = ...,
) -> ModifyCapacityReservationFleetResultTypeDef: # (1)
...
# modify_capacity_reservation_fleet method usage example with argument unpacking
kwargs: ModifyCapacityReservationFleetRequestRequestTypeDef = { # (1)
"CapacityReservationFleetId": ...,
}
parent.modify_capacity_reservation_fleet(**kwargs)
modify_client_vpn_endpoint#
Modifies the specified Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").modify_client_vpn_endpoint
method.
boto3 documentation
# modify_client_vpn_endpoint method definition
await def modify_client_vpn_endpoint(
self,
*,
ClientVpnEndpointId: str,
ServerCertificateArn: str = ...,
ConnectionLogOptions: ConnectionLogOptionsTypeDef = ..., # (1)
DnsServers: DnsServersOptionsModifyStructureTypeDef = ..., # (2)
VpnPort: int = ...,
Description: str = ...,
SplitTunnel: bool = ...,
DryRun: bool = ...,
SecurityGroupIds: Sequence[str] = ...,
VpcId: str = ...,
SelfServicePortal: SelfServicePortalType = ..., # (3)
ClientConnectOptions: ClientConnectOptionsTypeDef = ..., # (4)
SessionTimeoutHours: int = ...,
ClientLoginBannerOptions: ClientLoginBannerOptionsTypeDef = ..., # (5)
) -> ModifyClientVpnEndpointResultTypeDef: # (6)
...
- See ConnectionLogOptionsTypeDef
- See DnsServersOptionsModifyStructureTypeDef
- See SelfServicePortalType
- See ClientConnectOptionsTypeDef
- See ClientLoginBannerOptionsTypeDef
- See ModifyClientVpnEndpointResultTypeDef
# modify_client_vpn_endpoint method usage example with argument unpacking
kwargs: ModifyClientVpnEndpointRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.modify_client_vpn_endpoint(**kwargs)
modify_default_credit_specification#
Modifies the default credit option for CPU usage of burstable performance instances.
Type annotations and code completion for session.create_client("ec2").modify_default_credit_specification
method.
boto3 documentation
# modify_default_credit_specification method definition
await def modify_default_credit_specification(
self,
*,
InstanceFamily: UnlimitedSupportedInstanceFamilyType, # (1)
CpuCredits: str,
DryRun: bool = ...,
) -> ModifyDefaultCreditSpecificationResultTypeDef: # (2)
...
# modify_default_credit_specification method usage example with argument unpacking
kwargs: ModifyDefaultCreditSpecificationRequestRequestTypeDef = { # (1)
"InstanceFamily": ...,
"CpuCredits": ...,
}
parent.modify_default_credit_specification(**kwargs)
modify_ebs_default_kms_key_id#
Changes the default KMS key for EBS encryption by default for your account in this Region.
Type annotations and code completion for session.create_client("ec2").modify_ebs_default_kms_key_id
method.
boto3 documentation
# modify_ebs_default_kms_key_id method definition
await def modify_ebs_default_kms_key_id(
self,
*,
KmsKeyId: str,
DryRun: bool = ...,
) -> ModifyEbsDefaultKmsKeyIdResultTypeDef: # (1)
...
# modify_ebs_default_kms_key_id method usage example with argument unpacking
kwargs: ModifyEbsDefaultKmsKeyIdRequestRequestTypeDef = { # (1)
"KmsKeyId": ...,
}
parent.modify_ebs_default_kms_key_id(**kwargs)
modify_fleet#
Modifies the specified EC2 Fleet.
Type annotations and code completion for session.create_client("ec2").modify_fleet
method.
boto3 documentation
# modify_fleet method definition
await def modify_fleet(
self,
*,
FleetId: str,
DryRun: bool = ...,
ExcessCapacityTerminationPolicy: FleetExcessCapacityTerminationPolicyType = ..., # (1)
LaunchTemplateConfigs: Sequence[FleetLaunchTemplateConfigRequestTypeDef] = ..., # (2)
TargetCapacitySpecification: TargetCapacitySpecificationRequestTypeDef = ..., # (3)
Context: str = ...,
) -> ModifyFleetResultTypeDef: # (4)
...
- See FleetExcessCapacityTerminationPolicyType
- See FleetLaunchTemplateConfigRequestTypeDef
- See TargetCapacitySpecificationRequestTypeDef
- See ModifyFleetResultTypeDef
# modify_fleet method usage example with argument unpacking
kwargs: ModifyFleetRequestRequestTypeDef = { # (1)
"FleetId": ...,
}
parent.modify_fleet(**kwargs)
modify_fpga_image_attribute#
Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
Type annotations and code completion for session.create_client("ec2").modify_fpga_image_attribute
method.
boto3 documentation
# modify_fpga_image_attribute method definition
await def modify_fpga_image_attribute(
self,
*,
FpgaImageId: str,
DryRun: bool = ...,
Attribute: FpgaImageAttributeNameType = ..., # (1)
OperationType: OperationTypeType = ..., # (2)
UserIds: Sequence[str] = ...,
UserGroups: Sequence[str] = ...,
ProductCodes: Sequence[str] = ...,
LoadPermission: LoadPermissionModificationsTypeDef = ..., # (3)
Description: str = ...,
Name: str = ...,
) -> ModifyFpgaImageAttributeResultTypeDef: # (4)
...
- See FpgaImageAttributeNameType
- See OperationTypeType
- See LoadPermissionModificationsTypeDef
- See ModifyFpgaImageAttributeResultTypeDef
# modify_fpga_image_attribute method usage example with argument unpacking
kwargs: ModifyFpgaImageAttributeRequestRequestTypeDef = { # (1)
"FpgaImageId": ...,
}
parent.modify_fpga_image_attribute(**kwargs)
modify_hosts#
Modify the auto-placement setting of a Dedicated Host.
Type annotations and code completion for session.create_client("ec2").modify_hosts
method.
boto3 documentation
# modify_hosts method definition
await def modify_hosts(
self,
*,
HostIds: Sequence[str],
AutoPlacement: AutoPlacementType = ..., # (1)
HostRecovery: HostRecoveryType = ..., # (2)
InstanceType: str = ...,
InstanceFamily: str = ...,
HostMaintenance: HostMaintenanceType = ..., # (3)
) -> ModifyHostsResultTypeDef: # (4)
...
- See AutoPlacementType
- See HostRecoveryType
- See HostMaintenanceType
- See ModifyHostsResultTypeDef
# modify_hosts method usage example with argument unpacking
kwargs: ModifyHostsRequestRequestTypeDef = { # (1)
"HostIds": ...,
}
parent.modify_hosts(**kwargs)
modify_id_format#
Modifies the ID format for the specified resource on a per-Region basis.
Type annotations and code completion for session.create_client("ec2").modify_id_format
method.
boto3 documentation
# modify_id_format method definition
await def modify_id_format(
self,
*,
Resource: str,
UseLongIds: bool,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# modify_id_format method usage example with argument unpacking
kwargs: ModifyIdFormatRequestRequestTypeDef = { # (1)
"Resource": ...,
"UseLongIds": ...,
}
parent.modify_id_format(**kwargs)
modify_identity_id_format#
Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account.
Type annotations and code completion for session.create_client("ec2").modify_identity_id_format
method.
boto3 documentation
# modify_identity_id_format method definition
await def modify_identity_id_format(
self,
*,
PrincipalArn: str,
Resource: str,
UseLongIds: bool,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# modify_identity_id_format method usage example with argument unpacking
kwargs: ModifyIdentityIdFormatRequestRequestTypeDef = { # (1)
"PrincipalArn": ...,
"Resource": ...,
"UseLongIds": ...,
}
parent.modify_identity_id_format(**kwargs)
modify_image_attribute#
Modifies the specified attribute of the specified AMI.
Type annotations and code completion for session.create_client("ec2").modify_image_attribute
method.
boto3 documentation
# modify_image_attribute method definition
await def modify_image_attribute(
self,
*,
ImageId: str,
Attribute: str = ...,
Description: AttributeValueTypeDef = ..., # (1)
LaunchPermission: LaunchPermissionModificationsTypeDef = ..., # (2)
OperationType: OperationTypeType = ..., # (3)
ProductCodes: Sequence[str] = ...,
UserGroups: Sequence[str] = ...,
UserIds: Sequence[str] = ...,
Value: str = ...,
DryRun: bool = ...,
OrganizationArns: Sequence[str] = ...,
OrganizationalUnitArns: Sequence[str] = ...,
ImdsSupport: AttributeValueTypeDef = ..., # (1)
) -> EmptyResponseMetadataTypeDef: # (5)
...
- See AttributeValueTypeDef
- See LaunchPermissionModificationsTypeDef
- See OperationTypeType
- See AttributeValueTypeDef
- See EmptyResponseMetadataTypeDef
# modify_image_attribute method usage example with argument unpacking
kwargs: ModifyImageAttributeRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.modify_image_attribute(**kwargs)
modify_instance_attribute#
Modifies the specified attribute of the specified instance.
Type annotations and code completion for session.create_client("ec2").modify_instance_attribute
method.
boto3 documentation
# modify_instance_attribute method definition
await def modify_instance_attribute(
self,
*,
InstanceId: str,
SourceDestCheck: AttributeBooleanValueTypeDef = ..., # (1)
Attribute: InstanceAttributeNameType = ..., # (2)
BlockDeviceMappings: Sequence[InstanceBlockDeviceMappingSpecificationTypeDef] = ..., # (3)
DisableApiTermination: AttributeBooleanValueTypeDef = ..., # (1)
DryRun: bool = ...,
EbsOptimized: AttributeBooleanValueTypeDef = ..., # (1)
EnaSupport: AttributeBooleanValueTypeDef = ..., # (1)
Groups: Sequence[str] = ...,
InstanceInitiatedShutdownBehavior: AttributeValueTypeDef = ..., # (7)
InstanceType: AttributeValueTypeDef = ..., # (7)
Kernel: AttributeValueTypeDef = ..., # (7)
Ramdisk: AttributeValueTypeDef = ..., # (7)
SriovNetSupport: AttributeValueTypeDef = ..., # (7)
UserData: BlobAttributeValueTypeDef = ..., # (12)
Value: str = ...,
DisableApiStop: AttributeBooleanValueTypeDef = ..., # (1)
) -> EmptyResponseMetadataTypeDef: # (14)
...
- See AttributeBooleanValueTypeDef
- See InstanceAttributeNameType
- See InstanceBlockDeviceMappingSpecificationTypeDef
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See AttributeValueTypeDef
- See AttributeValueTypeDef
- See AttributeValueTypeDef
- See AttributeValueTypeDef
- See AttributeValueTypeDef
- See BlobAttributeValueTypeDef
- See AttributeBooleanValueTypeDef
- See EmptyResponseMetadataTypeDef
# modify_instance_attribute method usage example with argument unpacking
kwargs: ModifyInstanceAttributeRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.modify_instance_attribute(**kwargs)
modify_instance_capacity_reservation_attributes#
Modifies the Capacity Reservation settings for a stopped instance.
Type annotations and code completion for session.create_client("ec2").modify_instance_capacity_reservation_attributes
method.
boto3 documentation
# modify_instance_capacity_reservation_attributes method definition
await def modify_instance_capacity_reservation_attributes(
self,
*,
InstanceId: str,
CapacityReservationSpecification: CapacityReservationSpecificationTypeDef, # (1)
DryRun: bool = ...,
) -> ModifyInstanceCapacityReservationAttributesResultTypeDef: # (2)
...
- See CapacityReservationSpecificationTypeDef
- See ModifyInstanceCapacityReservationAttributesResultTypeDef
# modify_instance_capacity_reservation_attributes method usage example with argument unpacking
kwargs: ModifyInstanceCapacityReservationAttributesRequestRequestTypeDef = { # (1)
"InstanceId": ...,
"CapacityReservationSpecification": ...,
}
parent.modify_instance_capacity_reservation_attributes(**kwargs)
modify_instance_credit_specification#
Modifies the credit option for CPU usage on a running or stopped burstable performance instance.
Type annotations and code completion for session.create_client("ec2").modify_instance_credit_specification
method.
boto3 documentation
# modify_instance_credit_specification method definition
await def modify_instance_credit_specification(
self,
*,
InstanceCreditSpecifications: Sequence[InstanceCreditSpecificationRequestTypeDef], # (1)
DryRun: bool = ...,
ClientToken: str = ...,
) -> ModifyInstanceCreditSpecificationResultTypeDef: # (2)
...
# modify_instance_credit_specification method usage example with argument unpacking
kwargs: ModifyInstanceCreditSpecificationRequestRequestTypeDef = { # (1)
"InstanceCreditSpecifications": ...,
}
parent.modify_instance_credit_specification(**kwargs)
modify_instance_event_start_time#
Modifies the start time for a scheduled Amazon EC2 instance event.
Type annotations and code completion for session.create_client("ec2").modify_instance_event_start_time
method.
boto3 documentation
# modify_instance_event_start_time method definition
await def modify_instance_event_start_time(
self,
*,
InstanceId: str,
InstanceEventId: str,
NotBefore: Union[datetime, str],
DryRun: bool = ...,
) -> ModifyInstanceEventStartTimeResultTypeDef: # (1)
...
# modify_instance_event_start_time method usage example with argument unpacking
kwargs: ModifyInstanceEventStartTimeRequestRequestTypeDef = { # (1)
"InstanceId": ...,
"InstanceEventId": ...,
"NotBefore": ...,
}
parent.modify_instance_event_start_time(**kwargs)
modify_instance_event_window#
Modifies the specified event window.
Type annotations and code completion for session.create_client("ec2").modify_instance_event_window
method.
boto3 documentation
# modify_instance_event_window method definition
await def modify_instance_event_window(
self,
*,
InstanceEventWindowId: str,
DryRun: bool = ...,
Name: str = ...,
TimeRanges: Sequence[InstanceEventWindowTimeRangeRequestTypeDef] = ..., # (1)
CronExpression: str = ...,
) -> ModifyInstanceEventWindowResultTypeDef: # (2)
...
# modify_instance_event_window method usage example with argument unpacking
kwargs: ModifyInstanceEventWindowRequestRequestTypeDef = { # (1)
"InstanceEventWindowId": ...,
}
parent.modify_instance_event_window(**kwargs)
modify_instance_maintenance_options#
Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default.
Type annotations and code completion for session.create_client("ec2").modify_instance_maintenance_options
method.
boto3 documentation
# modify_instance_maintenance_options method definition
await def modify_instance_maintenance_options(
self,
*,
InstanceId: str,
AutoRecovery: InstanceAutoRecoveryStateType = ..., # (1)
DryRun: bool = ...,
) -> ModifyInstanceMaintenanceOptionsResultTypeDef: # (2)
...
# modify_instance_maintenance_options method usage example with argument unpacking
kwargs: ModifyInstanceMaintenanceOptionsRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.modify_instance_maintenance_options(**kwargs)
modify_instance_metadata_options#
Modify the instance metadata parameters on a running or stopped instance.
Type annotations and code completion for session.create_client("ec2").modify_instance_metadata_options
method.
boto3 documentation
# modify_instance_metadata_options method definition
await def modify_instance_metadata_options(
self,
*,
InstanceId: str,
HttpTokens: HttpTokensStateType = ..., # (1)
HttpPutResponseHopLimit: int = ...,
HttpEndpoint: InstanceMetadataEndpointStateType = ..., # (2)
DryRun: bool = ...,
HttpProtocolIpv6: InstanceMetadataProtocolStateType = ..., # (3)
InstanceMetadataTags: InstanceMetadataTagsStateType = ..., # (4)
) -> ModifyInstanceMetadataOptionsResultTypeDef: # (5)
...
- See HttpTokensStateType
- See InstanceMetadataEndpointStateType
- See InstanceMetadataProtocolStateType
- See InstanceMetadataTagsStateType
- See ModifyInstanceMetadataOptionsResultTypeDef
# modify_instance_metadata_options method usage example with argument unpacking
kwargs: ModifyInstanceMetadataOptionsRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.modify_instance_metadata_options(**kwargs)
modify_instance_placement#
Modifies the placement attributes for a specified instance.
Type annotations and code completion for session.create_client("ec2").modify_instance_placement
method.
boto3 documentation
# modify_instance_placement method definition
await def modify_instance_placement(
self,
*,
InstanceId: str,
Affinity: AffinityType = ..., # (1)
GroupName: str = ...,
HostId: str = ...,
Tenancy: HostTenancyType = ..., # (2)
PartitionNumber: int = ...,
HostResourceGroupArn: str = ...,
GroupId: str = ...,
) -> ModifyInstancePlacementResultTypeDef: # (3)
...
# modify_instance_placement method usage example with argument unpacking
kwargs: ModifyInstancePlacementRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.modify_instance_placement(**kwargs)
modify_ipam#
Modify the configurations of an IPAM.
Type annotations and code completion for session.create_client("ec2").modify_ipam
method.
boto3 documentation
# modify_ipam method definition
await def modify_ipam(
self,
*,
IpamId: str,
DryRun: bool = ...,
Description: str = ...,
AddOperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ..., # (1)
RemoveOperatingRegions: Sequence[RemoveIpamOperatingRegionTypeDef] = ..., # (2)
) -> ModifyIpamResultTypeDef: # (3)
...
# modify_ipam method usage example with argument unpacking
kwargs: ModifyIpamRequestRequestTypeDef = { # (1)
"IpamId": ...,
}
parent.modify_ipam(**kwargs)
modify_ipam_pool#
Modify the configurations of an IPAM pool.
Type annotations and code completion for session.create_client("ec2").modify_ipam_pool
method.
boto3 documentation
# modify_ipam_pool method definition
await def modify_ipam_pool(
self,
*,
IpamPoolId: str,
DryRun: bool = ...,
Description: str = ...,
AutoImport: bool = ...,
AllocationMinNetmaskLength: int = ...,
AllocationMaxNetmaskLength: int = ...,
AllocationDefaultNetmaskLength: int = ...,
ClearAllocationDefaultNetmaskLength: bool = ...,
AddAllocationResourceTags: Sequence[RequestIpamResourceTagTypeDef] = ..., # (1)
RemoveAllocationResourceTags: Sequence[RequestIpamResourceTagTypeDef] = ..., # (1)
) -> ModifyIpamPoolResultTypeDef: # (3)
...
# modify_ipam_pool method usage example with argument unpacking
kwargs: ModifyIpamPoolRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
}
parent.modify_ipam_pool(**kwargs)
modify_ipam_resource_cidr#
Modify a resource CIDR.
Type annotations and code completion for session.create_client("ec2").modify_ipam_resource_cidr
method.
boto3 documentation
# modify_ipam_resource_cidr method definition
await def modify_ipam_resource_cidr(
self,
*,
ResourceId: str,
ResourceCidr: str,
ResourceRegion: str,
CurrentIpamScopeId: str,
Monitored: bool,
DryRun: bool = ...,
DestinationIpamScopeId: str = ...,
) -> ModifyIpamResourceCidrResultTypeDef: # (1)
...
# modify_ipam_resource_cidr method usage example with argument unpacking
kwargs: ModifyIpamResourceCidrRequestRequestTypeDef = { # (1)
"ResourceId": ...,
"ResourceCidr": ...,
"ResourceRegion": ...,
"CurrentIpamScopeId": ...,
"Monitored": ...,
}
parent.modify_ipam_resource_cidr(**kwargs)
modify_ipam_resource_discovery#
Modifies a resource discovery.
Type annotations and code completion for session.create_client("ec2").modify_ipam_resource_discovery
method.
boto3 documentation
# modify_ipam_resource_discovery method definition
await def modify_ipam_resource_discovery(
self,
*,
IpamResourceDiscoveryId: str,
DryRun: bool = ...,
Description: str = ...,
AddOperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ..., # (1)
RemoveOperatingRegions: Sequence[RemoveIpamOperatingRegionTypeDef] = ..., # (2)
) -> ModifyIpamResourceDiscoveryResultTypeDef: # (3)
...
- See AddIpamOperatingRegionTypeDef
- See RemoveIpamOperatingRegionTypeDef
- See ModifyIpamResourceDiscoveryResultTypeDef
# modify_ipam_resource_discovery method usage example with argument unpacking
kwargs: ModifyIpamResourceDiscoveryRequestRequestTypeDef = { # (1)
"IpamResourceDiscoveryId": ...,
}
parent.modify_ipam_resource_discovery(**kwargs)
modify_ipam_scope#
Modify an IPAM scope.
Type annotations and code completion for session.create_client("ec2").modify_ipam_scope
method.
boto3 documentation
# modify_ipam_scope method definition
await def modify_ipam_scope(
self,
*,
IpamScopeId: str,
DryRun: bool = ...,
Description: str = ...,
) -> ModifyIpamScopeResultTypeDef: # (1)
...
# modify_ipam_scope method usage example with argument unpacking
kwargs: ModifyIpamScopeRequestRequestTypeDef = { # (1)
"IpamScopeId": ...,
}
parent.modify_ipam_scope(**kwargs)
modify_launch_template#
Modifies a launch template.
Type annotations and code completion for session.create_client("ec2").modify_launch_template
method.
boto3 documentation
# modify_launch_template method definition
await def modify_launch_template(
self,
*,
DryRun: bool = ...,
ClientToken: str = ...,
LaunchTemplateId: str = ...,
LaunchTemplateName: str = ...,
DefaultVersion: str = ...,
) -> ModifyLaunchTemplateResultTypeDef: # (1)
...
# modify_launch_template method usage example with argument unpacking
kwargs: ModifyLaunchTemplateRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.modify_launch_template(**kwargs)
modify_local_gateway_route#
Modifies the specified local gateway route.
Type annotations and code completion for session.create_client("ec2").modify_local_gateway_route
method.
boto3 documentation
# modify_local_gateway_route method definition
await def modify_local_gateway_route(
self,
*,
LocalGatewayRouteTableId: str,
DestinationCidrBlock: str = ...,
LocalGatewayVirtualInterfaceGroupId: str = ...,
NetworkInterfaceId: str = ...,
DryRun: bool = ...,
DestinationPrefixListId: str = ...,
) -> ModifyLocalGatewayRouteResultTypeDef: # (1)
...
# modify_local_gateway_route method usage example with argument unpacking
kwargs: ModifyLocalGatewayRouteRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
}
parent.modify_local_gateway_route(**kwargs)
modify_managed_prefix_list#
Modifies the specified managed prefix list.
Type annotations and code completion for session.create_client("ec2").modify_managed_prefix_list
method.
boto3 documentation
# modify_managed_prefix_list method definition
await def modify_managed_prefix_list(
self,
*,
PrefixListId: str,
DryRun: bool = ...,
CurrentVersion: int = ...,
PrefixListName: str = ...,
AddEntries: Sequence[AddPrefixListEntryTypeDef] = ..., # (1)
RemoveEntries: Sequence[RemovePrefixListEntryTypeDef] = ..., # (2)
MaxEntries: int = ...,
) -> ModifyManagedPrefixListResultTypeDef: # (3)
...
- See AddPrefixListEntryTypeDef
- See RemovePrefixListEntryTypeDef
- See ModifyManagedPrefixListResultTypeDef
# modify_managed_prefix_list method usage example with argument unpacking
kwargs: ModifyManagedPrefixListRequestRequestTypeDef = { # (1)
"PrefixListId": ...,
}
parent.modify_managed_prefix_list(**kwargs)
modify_network_interface_attribute#
Modifies the specified network interface attribute.
Type annotations and code completion for session.create_client("ec2").modify_network_interface_attribute
method.
boto3 documentation
# modify_network_interface_attribute method definition
await def modify_network_interface_attribute(
self,
*,
NetworkInterfaceId: str,
Attachment: NetworkInterfaceAttachmentChangesTypeDef = ..., # (1)
Description: AttributeValueTypeDef = ..., # (2)
DryRun: bool = ...,
Groups: Sequence[str] = ...,
SourceDestCheck: AttributeBooleanValueTypeDef = ..., # (3)
EnaSrdSpecification: EnaSrdSpecificationTypeDef = ..., # (4)
EnablePrimaryIpv6: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (5)
...
- See NetworkInterfaceAttachmentChangesTypeDef
- See AttributeValueTypeDef
- See AttributeBooleanValueTypeDef
- See EnaSrdSpecificationTypeDef
- See EmptyResponseMetadataTypeDef
# modify_network_interface_attribute method usage example with argument unpacking
kwargs: ModifyNetworkInterfaceAttributeRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.modify_network_interface_attribute(**kwargs)
modify_private_dns_name_options#
Modifies the options for instance hostnames for the specified instance.
Type annotations and code completion for session.create_client("ec2").modify_private_dns_name_options
method.
boto3 documentation
# modify_private_dns_name_options method definition
await def modify_private_dns_name_options(
self,
*,
InstanceId: str,
DryRun: bool = ...,
PrivateDnsHostnameType: HostnameTypeType = ..., # (1)
EnableResourceNameDnsARecord: bool = ...,
EnableResourceNameDnsAAAARecord: bool = ...,
) -> ModifyPrivateDnsNameOptionsResultTypeDef: # (2)
...
# modify_private_dns_name_options method usage example with argument unpacking
kwargs: ModifyPrivateDnsNameOptionsRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.modify_private_dns_name_options(**kwargs)
modify_reserved_instances#
Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type.
Type annotations and code completion for session.create_client("ec2").modify_reserved_instances
method.
boto3 documentation
# modify_reserved_instances method definition
await def modify_reserved_instances(
self,
*,
ReservedInstancesIds: Sequence[str],
TargetConfigurations: Sequence[ReservedInstancesConfigurationTypeDef], # (1)
ClientToken: str = ...,
) -> ModifyReservedInstancesResultTypeDef: # (2)
...
# modify_reserved_instances method usage example with argument unpacking
kwargs: ModifyReservedInstancesRequestRequestTypeDef = { # (1)
"ReservedInstancesIds": ...,
"TargetConfigurations": ...,
}
parent.modify_reserved_instances(**kwargs)
modify_security_group_rules#
Modifies the rules of a security group.
Type annotations and code completion for session.create_client("ec2").modify_security_group_rules
method.
boto3 documentation
# modify_security_group_rules method definition
await def modify_security_group_rules(
self,
*,
GroupId: str,
SecurityGroupRules: Sequence[SecurityGroupRuleUpdateTypeDef], # (1)
DryRun: bool = ...,
) -> ModifySecurityGroupRulesResultTypeDef: # (2)
...
# modify_security_group_rules method usage example with argument unpacking
kwargs: ModifySecurityGroupRulesRequestRequestTypeDef = { # (1)
"GroupId": ...,
"SecurityGroupRules": ...,
}
parent.modify_security_group_rules(**kwargs)
modify_snapshot_attribute#
Adds or removes permission settings for the specified snapshot.
Type annotations and code completion for session.create_client("ec2").modify_snapshot_attribute
method.
boto3 documentation
# modify_snapshot_attribute method definition
await def modify_snapshot_attribute(
self,
*,
SnapshotId: str,
Attribute: SnapshotAttributeNameType = ..., # (1)
CreateVolumePermission: CreateVolumePermissionModificationsTypeDef = ..., # (2)
GroupNames: Sequence[str] = ...,
OperationType: OperationTypeType = ..., # (3)
UserIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (4)
...
- See SnapshotAttributeNameType
- See CreateVolumePermissionModificationsTypeDef
- See OperationTypeType
- See EmptyResponseMetadataTypeDef
# modify_snapshot_attribute method usage example with argument unpacking
kwargs: ModifySnapshotAttributeRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
}
parent.modify_snapshot_attribute(**kwargs)
modify_snapshot_tier#
Archives an Amazon EBS snapshot.
Type annotations and code completion for session.create_client("ec2").modify_snapshot_tier
method.
boto3 documentation
# modify_snapshot_tier method definition
await def modify_snapshot_tier(
self,
*,
SnapshotId: str,
StorageTier: TargetStorageTierType = ..., # (1)
DryRun: bool = ...,
) -> ModifySnapshotTierResultTypeDef: # (2)
...
# modify_snapshot_tier method usage example with argument unpacking
kwargs: ModifySnapshotTierRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
}
parent.modify_snapshot_tier(**kwargs)
modify_spot_fleet_request#
Modifies the specified Spot Fleet request.
Type annotations and code completion for session.create_client("ec2").modify_spot_fleet_request
method.
boto3 documentation
# modify_spot_fleet_request method definition
await def modify_spot_fleet_request(
self,
*,
SpotFleetRequestId: str,
ExcessCapacityTerminationPolicy: ExcessCapacityTerminationPolicyType = ..., # (1)
LaunchTemplateConfigs: Sequence[LaunchTemplateConfigTypeDef] = ..., # (2)
TargetCapacity: int = ...,
OnDemandTargetCapacity: int = ...,
Context: str = ...,
) -> ModifySpotFleetRequestResponseTypeDef: # (3)
...
- See ExcessCapacityTerminationPolicyType
- See LaunchTemplateConfigTypeDef
- See ModifySpotFleetRequestResponseTypeDef
# modify_spot_fleet_request method usage example with argument unpacking
kwargs: ModifySpotFleetRequestRequestRequestTypeDef = { # (1)
"SpotFleetRequestId": ...,
}
parent.modify_spot_fleet_request(**kwargs)
modify_subnet_attribute#
Modifies a subnet attribute.
Type annotations and code completion for session.create_client("ec2").modify_subnet_attribute
method.
boto3 documentation
# modify_subnet_attribute method definition
await def modify_subnet_attribute(
self,
*,
SubnetId: str,
AssignIpv6AddressOnCreation: AttributeBooleanValueTypeDef = ..., # (1)
MapPublicIpOnLaunch: AttributeBooleanValueTypeDef = ..., # (1)
MapCustomerOwnedIpOnLaunch: AttributeBooleanValueTypeDef = ..., # (1)
CustomerOwnedIpv4Pool: str = ...,
EnableDns64: AttributeBooleanValueTypeDef = ..., # (1)
PrivateDnsHostnameTypeOnLaunch: HostnameTypeType = ..., # (5)
EnableResourceNameDnsARecordOnLaunch: AttributeBooleanValueTypeDef = ..., # (1)
EnableResourceNameDnsAAAARecordOnLaunch: AttributeBooleanValueTypeDef = ..., # (1)
EnableLniAtDeviceIndex: int = ...,
DisableLniAtDeviceIndex: AttributeBooleanValueTypeDef = ..., # (1)
) -> EmptyResponseMetadataTypeDef: # (9)
...
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See HostnameTypeType
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See EmptyResponseMetadataTypeDef
# modify_subnet_attribute method usage example with argument unpacking
kwargs: ModifySubnetAttributeRequestRequestTypeDef = { # (1)
"SubnetId": ...,
}
parent.modify_subnet_attribute(**kwargs)
modify_traffic_mirror_filter_network_services#
Allows or restricts mirroring network services.
Type annotations and code completion for session.create_client("ec2").modify_traffic_mirror_filter_network_services
method.
boto3 documentation
# modify_traffic_mirror_filter_network_services method definition
await def modify_traffic_mirror_filter_network_services(
self,
*,
TrafficMirrorFilterId: str,
AddNetworkServices: Sequence[TrafficMirrorNetworkServiceType] = ..., # (1)
RemoveNetworkServices: Sequence[TrafficMirrorNetworkServiceType] = ..., # (1)
DryRun: bool = ...,
) -> ModifyTrafficMirrorFilterNetworkServicesResultTypeDef: # (3)
...
- See TrafficMirrorNetworkServiceType
- See TrafficMirrorNetworkServiceType
- See ModifyTrafficMirrorFilterNetworkServicesResultTypeDef
# modify_traffic_mirror_filter_network_services method usage example with argument unpacking
kwargs: ModifyTrafficMirrorFilterNetworkServicesRequestRequestTypeDef = { # (1)
"TrafficMirrorFilterId": ...,
}
parent.modify_traffic_mirror_filter_network_services(**kwargs)
modify_traffic_mirror_filter_rule#
Modifies the specified Traffic Mirror rule.
Type annotations and code completion for session.create_client("ec2").modify_traffic_mirror_filter_rule
method.
boto3 documentation
# modify_traffic_mirror_filter_rule method definition
await def modify_traffic_mirror_filter_rule(
self,
*,
TrafficMirrorFilterRuleId: str,
TrafficDirection: TrafficDirectionType = ..., # (1)
RuleNumber: int = ...,
RuleAction: TrafficMirrorRuleActionType = ..., # (2)
DestinationPortRange: TrafficMirrorPortRangeRequestTypeDef = ..., # (3)
SourcePortRange: TrafficMirrorPortRangeRequestTypeDef = ..., # (3)
Protocol: int = ...,
DestinationCidrBlock: str = ...,
SourceCidrBlock: str = ...,
Description: str = ...,
RemoveFields: Sequence[TrafficMirrorFilterRuleFieldType] = ..., # (5)
DryRun: bool = ...,
) -> ModifyTrafficMirrorFilterRuleResultTypeDef: # (6)
...
- See TrafficDirectionType
- See TrafficMirrorRuleActionType
- See TrafficMirrorPortRangeRequestTypeDef
- See TrafficMirrorPortRangeRequestTypeDef
- See TrafficMirrorFilterRuleFieldType
- See ModifyTrafficMirrorFilterRuleResultTypeDef
# modify_traffic_mirror_filter_rule method usage example with argument unpacking
kwargs: ModifyTrafficMirrorFilterRuleRequestRequestTypeDef = { # (1)
"TrafficMirrorFilterRuleId": ...,
}
parent.modify_traffic_mirror_filter_rule(**kwargs)
modify_traffic_mirror_session#
Modifies a Traffic Mirror session.
Type annotations and code completion for session.create_client("ec2").modify_traffic_mirror_session
method.
boto3 documentation
# modify_traffic_mirror_session method definition
await def modify_traffic_mirror_session(
self,
*,
TrafficMirrorSessionId: str,
TrafficMirrorTargetId: str = ...,
TrafficMirrorFilterId: str = ...,
PacketLength: int = ...,
SessionNumber: int = ...,
VirtualNetworkId: int = ...,
Description: str = ...,
RemoveFields: Sequence[TrafficMirrorSessionFieldType] = ..., # (1)
DryRun: bool = ...,
) -> ModifyTrafficMirrorSessionResultTypeDef: # (2)
...
# modify_traffic_mirror_session method usage example with argument unpacking
kwargs: ModifyTrafficMirrorSessionRequestRequestTypeDef = { # (1)
"TrafficMirrorSessionId": ...,
}
parent.modify_traffic_mirror_session(**kwargs)
modify_transit_gateway#
Modifies the specified transit gateway.
Type annotations and code completion for session.create_client("ec2").modify_transit_gateway
method.
boto3 documentation
# modify_transit_gateway method definition
await def modify_transit_gateway(
self,
*,
TransitGatewayId: str,
Description: str = ...,
Options: ModifyTransitGatewayOptionsTypeDef = ..., # (1)
DryRun: bool = ...,
) -> ModifyTransitGatewayResultTypeDef: # (2)
...
# modify_transit_gateway method usage example with argument unpacking
kwargs: ModifyTransitGatewayRequestRequestTypeDef = { # (1)
"TransitGatewayId": ...,
}
parent.modify_transit_gateway(**kwargs)
modify_transit_gateway_prefix_list_reference#
Modifies a reference (route) to a prefix list in a specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").modify_transit_gateway_prefix_list_reference
method.
boto3 documentation
# modify_transit_gateway_prefix_list_reference method definition
await def modify_transit_gateway_prefix_list_reference(
self,
*,
TransitGatewayRouteTableId: str,
PrefixListId: str,
TransitGatewayAttachmentId: str = ...,
Blackhole: bool = ...,
DryRun: bool = ...,
) -> ModifyTransitGatewayPrefixListReferenceResultTypeDef: # (1)
...
# modify_transit_gateway_prefix_list_reference method usage example with argument unpacking
kwargs: ModifyTransitGatewayPrefixListReferenceRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"PrefixListId": ...,
}
parent.modify_transit_gateway_prefix_list_reference(**kwargs)
modify_transit_gateway_vpc_attachment#
Modifies the specified VPC attachment.
Type annotations and code completion for session.create_client("ec2").modify_transit_gateway_vpc_attachment
method.
boto3 documentation
# modify_transit_gateway_vpc_attachment method definition
await def modify_transit_gateway_vpc_attachment(
self,
*,
TransitGatewayAttachmentId: str,
AddSubnetIds: Sequence[str] = ...,
RemoveSubnetIds: Sequence[str] = ...,
Options: ModifyTransitGatewayVpcAttachmentRequestOptionsTypeDef = ..., # (1)
DryRun: bool = ...,
) -> ModifyTransitGatewayVpcAttachmentResultTypeDef: # (2)
...
- See ModifyTransitGatewayVpcAttachmentRequestOptionsTypeDef
- See ModifyTransitGatewayVpcAttachmentResultTypeDef
# modify_transit_gateway_vpc_attachment method usage example with argument unpacking
kwargs: ModifyTransitGatewayVpcAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.modify_transit_gateway_vpc_attachment(**kwargs)
modify_verified_access_endpoint#
Modifies the configuration of the specified Amazon Web Services Verified Access endpoint.
Type annotations and code completion for session.create_client("ec2").modify_verified_access_endpoint
method.
boto3 documentation
# modify_verified_access_endpoint method definition
await def modify_verified_access_endpoint(
self,
*,
VerifiedAccessEndpointId: str,
VerifiedAccessGroupId: str = ...,
LoadBalancerOptions: ModifyVerifiedAccessEndpointLoadBalancerOptionsTypeDef = ..., # (1)
NetworkInterfaceOptions: ModifyVerifiedAccessEndpointEniOptionsTypeDef = ..., # (2)
Description: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
) -> ModifyVerifiedAccessEndpointResultTypeDef: # (3)
...
- See ModifyVerifiedAccessEndpointLoadBalancerOptionsTypeDef
- See ModifyVerifiedAccessEndpointEniOptionsTypeDef
- See ModifyVerifiedAccessEndpointResultTypeDef
# modify_verified_access_endpoint method usage example with argument unpacking
kwargs: ModifyVerifiedAccessEndpointRequestRequestTypeDef = { # (1)
"VerifiedAccessEndpointId": ...,
}
parent.modify_verified_access_endpoint(**kwargs)
modify_verified_access_endpoint_policy#
Modifies the specified Amazon Web Services Verified Access endpoint policy.
Type annotations and code completion for session.create_client("ec2").modify_verified_access_endpoint_policy
method.
boto3 documentation
# modify_verified_access_endpoint_policy method definition
await def modify_verified_access_endpoint_policy(
self,
*,
VerifiedAccessEndpointId: str,
PolicyEnabled: bool,
PolicyDocument: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
) -> ModifyVerifiedAccessEndpointPolicyResultTypeDef: # (1)
...
# modify_verified_access_endpoint_policy method usage example with argument unpacking
kwargs: ModifyVerifiedAccessEndpointPolicyRequestRequestTypeDef = { # (1)
"VerifiedAccessEndpointId": ...,
"PolicyEnabled": ...,
}
parent.modify_verified_access_endpoint_policy(**kwargs)
modify_verified_access_group#
Modifies the specified Amazon Web Services Verified Access group configuration.
Type annotations and code completion for session.create_client("ec2").modify_verified_access_group
method.
boto3 documentation
# modify_verified_access_group method definition
await def modify_verified_access_group(
self,
*,
VerifiedAccessGroupId: str,
VerifiedAccessInstanceId: str = ...,
Description: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
) -> ModifyVerifiedAccessGroupResultTypeDef: # (1)
...
# modify_verified_access_group method usage example with argument unpacking
kwargs: ModifyVerifiedAccessGroupRequestRequestTypeDef = { # (1)
"VerifiedAccessGroupId": ...,
}
parent.modify_verified_access_group(**kwargs)
modify_verified_access_group_policy#
Modifies the specified Amazon Web Services Verified Access group policy.
Type annotations and code completion for session.create_client("ec2").modify_verified_access_group_policy
method.
boto3 documentation
# modify_verified_access_group_policy method definition
await def modify_verified_access_group_policy(
self,
*,
VerifiedAccessGroupId: str,
PolicyEnabled: bool,
PolicyDocument: str = ...,
ClientToken: str = ...,
DryRun: bool = ...,
) -> ModifyVerifiedAccessGroupPolicyResultTypeDef: # (1)
...
# modify_verified_access_group_policy method usage example with argument unpacking
kwargs: ModifyVerifiedAccessGroupPolicyRequestRequestTypeDef = { # (1)
"VerifiedAccessGroupId": ...,
"PolicyEnabled": ...,
}
parent.modify_verified_access_group_policy(**kwargs)
modify_verified_access_instance#
Modifies the configuration of the specified Amazon Web Services Verified Access instance.
Type annotations and code completion for session.create_client("ec2").modify_verified_access_instance
method.
boto3 documentation
# modify_verified_access_instance method definition
await def modify_verified_access_instance(
self,
*,
VerifiedAccessInstanceId: str,
Description: str = ...,
DryRun: bool = ...,
ClientToken: str = ...,
) -> ModifyVerifiedAccessInstanceResultTypeDef: # (1)
...
# modify_verified_access_instance method usage example with argument unpacking
kwargs: ModifyVerifiedAccessInstanceRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceId": ...,
}
parent.modify_verified_access_instance(**kwargs)
modify_verified_access_instance_logging_configuration#
Modifies the logging configuration for the specified Amazon Web Services Verified Access instance.
Type annotations and code completion for session.create_client("ec2").modify_verified_access_instance_logging_configuration
method.
boto3 documentation
# modify_verified_access_instance_logging_configuration method definition
await def modify_verified_access_instance_logging_configuration(
self,
*,
VerifiedAccessInstanceId: str,
AccessLogs: VerifiedAccessLogOptionsTypeDef, # (1)
DryRun: bool = ...,
ClientToken: str = ...,
) -> ModifyVerifiedAccessInstanceLoggingConfigurationResultTypeDef: # (2)
...
- See VerifiedAccessLogOptionsTypeDef
- See ModifyVerifiedAccessInstanceLoggingConfigurationResultTypeDef
# modify_verified_access_instance_logging_configuration method usage example with argument unpacking
kwargs: ModifyVerifiedAccessInstanceLoggingConfigurationRequestRequestTypeDef = { # (1)
"VerifiedAccessInstanceId": ...,
"AccessLogs": ...,
}
parent.modify_verified_access_instance_logging_configuration(**kwargs)
modify_verified_access_trust_provider#
Modifies the configuration of the specified Amazon Web Services Verified Access trust provider.
Type annotations and code completion for session.create_client("ec2").modify_verified_access_trust_provider
method.
boto3 documentation
# modify_verified_access_trust_provider method definition
await def modify_verified_access_trust_provider(
self,
*,
VerifiedAccessTrustProviderId: str,
OidcOptions: ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef = ..., # (1)
Description: str = ...,
DryRun: bool = ...,
ClientToken: str = ...,
) -> ModifyVerifiedAccessTrustProviderResultTypeDef: # (2)
...
- See ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef
- See ModifyVerifiedAccessTrustProviderResultTypeDef
# modify_verified_access_trust_provider method usage example with argument unpacking
kwargs: ModifyVerifiedAccessTrustProviderRequestRequestTypeDef = { # (1)
"VerifiedAccessTrustProviderId": ...,
}
parent.modify_verified_access_trust_provider(**kwargs)
modify_volume#
You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity.
Type annotations and code completion for session.create_client("ec2").modify_volume
method.
boto3 documentation
# modify_volume method definition
await def modify_volume(
self,
*,
VolumeId: str,
DryRun: bool = ...,
Size: int = ...,
VolumeType: VolumeTypeType = ..., # (1)
Iops: int = ...,
Throughput: int = ...,
MultiAttachEnabled: bool = ...,
) -> ModifyVolumeResultTypeDef: # (2)
...
# modify_volume method usage example with argument unpacking
kwargs: ModifyVolumeRequestRequestTypeDef = { # (1)
"VolumeId": ...,
}
parent.modify_volume(**kwargs)
modify_volume_attribute#
Modifies a volume attribute.
Type annotations and code completion for session.create_client("ec2").modify_volume_attribute
method.
boto3 documentation
# modify_volume_attribute method definition
await def modify_volume_attribute(
self,
*,
VolumeId: str,
AutoEnableIO: AttributeBooleanValueTypeDef = ..., # (1)
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# modify_volume_attribute method usage example with argument unpacking
kwargs: ModifyVolumeAttributeRequestRequestTypeDef = { # (1)
"VolumeId": ...,
}
parent.modify_volume_attribute(**kwargs)
modify_vpc_attribute#
Modifies the specified attribute of the specified VPC.
Type annotations and code completion for session.create_client("ec2").modify_vpc_attribute
method.
boto3 documentation
# modify_vpc_attribute method definition
await def modify_vpc_attribute(
self,
*,
VpcId: str,
EnableDnsHostnames: AttributeBooleanValueTypeDef = ..., # (1)
EnableDnsSupport: AttributeBooleanValueTypeDef = ..., # (1)
EnableNetworkAddressUsageMetrics: AttributeBooleanValueTypeDef = ..., # (1)
) -> EmptyResponseMetadataTypeDef: # (4)
...
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See AttributeBooleanValueTypeDef
- See EmptyResponseMetadataTypeDef
# modify_vpc_attribute method usage example with argument unpacking
kwargs: ModifyVpcAttributeRequestRequestTypeDef = { # (1)
"VpcId": ...,
}
parent.modify_vpc_attribute(**kwargs)
modify_vpc_endpoint#
Modifies attributes of a specified VPC endpoint.
Type annotations and code completion for session.create_client("ec2").modify_vpc_endpoint
method.
boto3 documentation
# modify_vpc_endpoint method definition
await def modify_vpc_endpoint(
self,
*,
VpcEndpointId: str,
DryRun: bool = ...,
ResetPolicy: bool = ...,
PolicyDocument: str = ...,
AddRouteTableIds: Sequence[str] = ...,
RemoveRouteTableIds: Sequence[str] = ...,
AddSubnetIds: Sequence[str] = ...,
RemoveSubnetIds: Sequence[str] = ...,
AddSecurityGroupIds: Sequence[str] = ...,
RemoveSecurityGroupIds: Sequence[str] = ...,
IpAddressType: IpAddressTypeType = ..., # (1)
DnsOptions: DnsOptionsSpecificationTypeDef = ..., # (2)
PrivateDnsEnabled: bool = ...,
) -> ModifyVpcEndpointResultTypeDef: # (3)
...
# modify_vpc_endpoint method usage example with argument unpacking
kwargs: ModifyVpcEndpointRequestRequestTypeDef = { # (1)
"VpcEndpointId": ...,
}
parent.modify_vpc_endpoint(**kwargs)
modify_vpc_endpoint_connection_notification#
Modifies a connection notification for VPC endpoint or VPC endpoint service.
Type annotations and code completion for session.create_client("ec2").modify_vpc_endpoint_connection_notification
method.
boto3 documentation
# modify_vpc_endpoint_connection_notification method definition
await def modify_vpc_endpoint_connection_notification(
self,
*,
ConnectionNotificationId: str,
DryRun: bool = ...,
ConnectionNotificationArn: str = ...,
ConnectionEvents: Sequence[str] = ...,
) -> ModifyVpcEndpointConnectionNotificationResultTypeDef: # (1)
...
# modify_vpc_endpoint_connection_notification method usage example with argument unpacking
kwargs: ModifyVpcEndpointConnectionNotificationRequestRequestTypeDef = { # (1)
"ConnectionNotificationId": ...,
}
parent.modify_vpc_endpoint_connection_notification(**kwargs)
modify_vpc_endpoint_service_configuration#
Modifies the attributes of your VPC endpoint service configuration.
Type annotations and code completion for session.create_client("ec2").modify_vpc_endpoint_service_configuration
method.
boto3 documentation
# modify_vpc_endpoint_service_configuration method definition
await def modify_vpc_endpoint_service_configuration(
self,
*,
ServiceId: str,
DryRun: bool = ...,
PrivateDnsName: str = ...,
RemovePrivateDnsName: bool = ...,
AcceptanceRequired: bool = ...,
AddNetworkLoadBalancerArns: Sequence[str] = ...,
RemoveNetworkLoadBalancerArns: Sequence[str] = ...,
AddGatewayLoadBalancerArns: Sequence[str] = ...,
RemoveGatewayLoadBalancerArns: Sequence[str] = ...,
AddSupportedIpAddressTypes: Sequence[str] = ...,
RemoveSupportedIpAddressTypes: Sequence[str] = ...,
) -> ModifyVpcEndpointServiceConfigurationResultTypeDef: # (1)
...
# modify_vpc_endpoint_service_configuration method usage example with argument unpacking
kwargs: ModifyVpcEndpointServiceConfigurationRequestRequestTypeDef = { # (1)
"ServiceId": ...,
}
parent.modify_vpc_endpoint_service_configuration(**kwargs)
modify_vpc_endpoint_service_payer_responsibility#
Modifies the payer responsibility for your VPC endpoint service.
Type annotations and code completion for session.create_client("ec2").modify_vpc_endpoint_service_payer_responsibility
method.
boto3 documentation
# modify_vpc_endpoint_service_payer_responsibility method definition
await def modify_vpc_endpoint_service_payer_responsibility(
self,
*,
ServiceId: str,
PayerResponsibility: PayerResponsibilityType, # (1)
DryRun: bool = ...,
) -> ModifyVpcEndpointServicePayerResponsibilityResultTypeDef: # (2)
...
# modify_vpc_endpoint_service_payer_responsibility method usage example with argument unpacking
kwargs: ModifyVpcEndpointServicePayerResponsibilityRequestRequestTypeDef = { # (1)
"ServiceId": ...,
"PayerResponsibility": ...,
}
parent.modify_vpc_endpoint_service_payer_responsibility(**kwargs)
modify_vpc_endpoint_service_permissions#
Modifies the permissions for your VPC endpoint service.
Type annotations and code completion for session.create_client("ec2").modify_vpc_endpoint_service_permissions
method.
boto3 documentation
# modify_vpc_endpoint_service_permissions method definition
await def modify_vpc_endpoint_service_permissions(
self,
*,
ServiceId: str,
DryRun: bool = ...,
AddAllowedPrincipals: Sequence[str] = ...,
RemoveAllowedPrincipals: Sequence[str] = ...,
) -> ModifyVpcEndpointServicePermissionsResultTypeDef: # (1)
...
# modify_vpc_endpoint_service_permissions method usage example with argument unpacking
kwargs: ModifyVpcEndpointServicePermissionsRequestRequestTypeDef = { # (1)
"ServiceId": ...,
}
parent.modify_vpc_endpoint_service_permissions(**kwargs)
modify_vpc_peering_connection_options#
Modifies the VPC peering connection options on one side of a VPC peering connection.
Type annotations and code completion for session.create_client("ec2").modify_vpc_peering_connection_options
method.
boto3 documentation
# modify_vpc_peering_connection_options method definition
await def modify_vpc_peering_connection_options(
self,
*,
VpcPeeringConnectionId: str,
AccepterPeeringConnectionOptions: PeeringConnectionOptionsRequestTypeDef = ..., # (1)
DryRun: bool = ...,
RequesterPeeringConnectionOptions: PeeringConnectionOptionsRequestTypeDef = ..., # (1)
) -> ModifyVpcPeeringConnectionOptionsResultTypeDef: # (3)
...
- See PeeringConnectionOptionsRequestTypeDef
- See PeeringConnectionOptionsRequestTypeDef
- See ModifyVpcPeeringConnectionOptionsResultTypeDef
# modify_vpc_peering_connection_options method usage example with argument unpacking
kwargs: ModifyVpcPeeringConnectionOptionsRequestRequestTypeDef = { # (1)
"VpcPeeringConnectionId": ...,
}
parent.modify_vpc_peering_connection_options(**kwargs)
modify_vpc_tenancy#
Modifies the instance tenancy attribute of the specified VPC.
Type annotations and code completion for session.create_client("ec2").modify_vpc_tenancy
method.
boto3 documentation
# modify_vpc_tenancy method definition
await def modify_vpc_tenancy(
self,
*,
VpcId: str,
InstanceTenancy: VpcTenancyType, # (1)
DryRun: bool = ...,
) -> ModifyVpcTenancyResultTypeDef: # (2)
...
# modify_vpc_tenancy method usage example with argument unpacking
kwargs: ModifyVpcTenancyRequestRequestTypeDef = { # (1)
"VpcId": ...,
"InstanceTenancy": ...,
}
parent.modify_vpc_tenancy(**kwargs)
modify_vpn_connection#
Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection.
Type annotations and code completion for session.create_client("ec2").modify_vpn_connection
method.
boto3 documentation
# modify_vpn_connection method definition
await def modify_vpn_connection(
self,
*,
VpnConnectionId: str,
TransitGatewayId: str = ...,
CustomerGatewayId: str = ...,
VpnGatewayId: str = ...,
DryRun: bool = ...,
) -> ModifyVpnConnectionResultTypeDef: # (1)
...
# modify_vpn_connection method usage example with argument unpacking
kwargs: ModifyVpnConnectionRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
}
parent.modify_vpn_connection(**kwargs)
modify_vpn_connection_options#
Modifies the connection options for your Site-to-Site VPN connection.
Type annotations and code completion for session.create_client("ec2").modify_vpn_connection_options
method.
boto3 documentation
# modify_vpn_connection_options method definition
await def modify_vpn_connection_options(
self,
*,
VpnConnectionId: str,
LocalIpv4NetworkCidr: str = ...,
RemoteIpv4NetworkCidr: str = ...,
LocalIpv6NetworkCidr: str = ...,
RemoteIpv6NetworkCidr: str = ...,
DryRun: bool = ...,
) -> ModifyVpnConnectionOptionsResultTypeDef: # (1)
...
# modify_vpn_connection_options method usage example with argument unpacking
kwargs: ModifyVpnConnectionOptionsRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
}
parent.modify_vpn_connection_options(**kwargs)
modify_vpn_tunnel_certificate#
Modifies the VPN tunnel endpoint certificate.
Type annotations and code completion for session.create_client("ec2").modify_vpn_tunnel_certificate
method.
boto3 documentation
# modify_vpn_tunnel_certificate method definition
await def modify_vpn_tunnel_certificate(
self,
*,
VpnConnectionId: str,
VpnTunnelOutsideIpAddress: str,
DryRun: bool = ...,
) -> ModifyVpnTunnelCertificateResultTypeDef: # (1)
...
# modify_vpn_tunnel_certificate method usage example with argument unpacking
kwargs: ModifyVpnTunnelCertificateRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
"VpnTunnelOutsideIpAddress": ...,
}
parent.modify_vpn_tunnel_certificate(**kwargs)
modify_vpn_tunnel_options#
Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection.
Type annotations and code completion for session.create_client("ec2").modify_vpn_tunnel_options
method.
boto3 documentation
# modify_vpn_tunnel_options method definition
await def modify_vpn_tunnel_options(
self,
*,
VpnConnectionId: str,
VpnTunnelOutsideIpAddress: str,
TunnelOptions: ModifyVpnTunnelOptionsSpecificationTypeDef, # (1)
DryRun: bool = ...,
SkipTunnelReplacement: bool = ...,
) -> ModifyVpnTunnelOptionsResultTypeDef: # (2)
...
# modify_vpn_tunnel_options method usage example with argument unpacking
kwargs: ModifyVpnTunnelOptionsRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
"VpnTunnelOutsideIpAddress": ...,
"TunnelOptions": ...,
}
parent.modify_vpn_tunnel_options(**kwargs)
monitor_instances#
Enables detailed monitoring for a running instance.
Type annotations and code completion for session.create_client("ec2").monitor_instances
method.
boto3 documentation
# monitor_instances method definition
await def monitor_instances(
self,
*,
InstanceIds: Sequence[str],
DryRun: bool = ...,
) -> MonitorInstancesResultTypeDef: # (1)
...
# monitor_instances method usage example with argument unpacking
kwargs: MonitorInstancesRequestRequestTypeDef = { # (1)
"InstanceIds": ...,
}
parent.monitor_instances(**kwargs)
move_address_to_vpc#
.
Type annotations and code completion for session.create_client("ec2").move_address_to_vpc
method.
boto3 documentation
# move_address_to_vpc method definition
await def move_address_to_vpc(
self,
*,
PublicIp: str,
DryRun: bool = ...,
) -> MoveAddressToVpcResultTypeDef: # (1)
...
# move_address_to_vpc method usage example with argument unpacking
kwargs: MoveAddressToVpcRequestRequestTypeDef = { # (1)
"PublicIp": ...,
}
parent.move_address_to_vpc(**kwargs)
move_byoip_cidr_to_ipam#
Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool.
Type annotations and code completion for session.create_client("ec2").move_byoip_cidr_to_ipam
method.
boto3 documentation
# move_byoip_cidr_to_ipam method definition
await def move_byoip_cidr_to_ipam(
self,
*,
Cidr: str,
IpamPoolId: str,
IpamPoolOwner: str,
DryRun: bool = ...,
) -> MoveByoipCidrToIpamResultTypeDef: # (1)
...
# move_byoip_cidr_to_ipam method usage example with argument unpacking
kwargs: MoveByoipCidrToIpamRequestRequestTypeDef = { # (1)
"Cidr": ...,
"IpamPoolId": ...,
"IpamPoolOwner": ...,
}
parent.move_byoip_cidr_to_ipam(**kwargs)
provision_byoip_cidr#
Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool.
Type annotations and code completion for session.create_client("ec2").provision_byoip_cidr
method.
boto3 documentation
# provision_byoip_cidr method definition
await def provision_byoip_cidr(
self,
*,
Cidr: str,
CidrAuthorizationContext: CidrAuthorizationContextTypeDef = ..., # (1)
PubliclyAdvertisable: bool = ...,
Description: str = ...,
DryRun: bool = ...,
PoolTagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
MultiRegion: bool = ...,
) -> ProvisionByoipCidrResultTypeDef: # (3)
...
# provision_byoip_cidr method usage example with argument unpacking
kwargs: ProvisionByoipCidrRequestRequestTypeDef = { # (1)
"Cidr": ...,
}
parent.provision_byoip_cidr(**kwargs)
provision_ipam_pool_cidr#
Provision a CIDR to an IPAM pool.
Type annotations and code completion for session.create_client("ec2").provision_ipam_pool_cidr
method.
boto3 documentation
# provision_ipam_pool_cidr method definition
await def provision_ipam_pool_cidr(
self,
*,
IpamPoolId: str,
DryRun: bool = ...,
Cidr: str = ...,
CidrAuthorizationContext: IpamCidrAuthorizationContextTypeDef = ..., # (1)
NetmaskLength: int = ...,
ClientToken: str = ...,
) -> ProvisionIpamPoolCidrResultTypeDef: # (2)
...
# provision_ipam_pool_cidr method usage example with argument unpacking
kwargs: ProvisionIpamPoolCidrRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
}
parent.provision_ipam_pool_cidr(**kwargs)
provision_public_ipv4_pool_cidr#
Provision a CIDR to a public IPv4 pool.
Type annotations and code completion for session.create_client("ec2").provision_public_ipv4_pool_cidr
method.
boto3 documentation
# provision_public_ipv4_pool_cidr method definition
await def provision_public_ipv4_pool_cidr(
self,
*,
IpamPoolId: str,
PoolId: str,
NetmaskLength: int,
DryRun: bool = ...,
) -> ProvisionPublicIpv4PoolCidrResultTypeDef: # (1)
...
# provision_public_ipv4_pool_cidr method usage example with argument unpacking
kwargs: ProvisionPublicIpv4PoolCidrRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
"PoolId": ...,
"NetmaskLength": ...,
}
parent.provision_public_ipv4_pool_cidr(**kwargs)
purchase_host_reservation#
Purchase a reservation with configurations that match those of your Dedicated Host.
Type annotations and code completion for session.create_client("ec2").purchase_host_reservation
method.
boto3 documentation
# purchase_host_reservation method definition
await def purchase_host_reservation(
self,
*,
HostIdSet: Sequence[str],
OfferingId: str,
ClientToken: str = ...,
CurrencyCode: CurrencyCodeValuesType = ..., # (1)
LimitPrice: str = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (2)
) -> PurchaseHostReservationResultTypeDef: # (3)
...
# purchase_host_reservation method usage example with argument unpacking
kwargs: PurchaseHostReservationRequestRequestTypeDef = { # (1)
"HostIdSet": ...,
"OfferingId": ...,
}
parent.purchase_host_reservation(**kwargs)
purchase_reserved_instances_offering#
Purchases a Reserved Instance for use with your account.
Type annotations and code completion for session.create_client("ec2").purchase_reserved_instances_offering
method.
boto3 documentation
# purchase_reserved_instances_offering method definition
await def purchase_reserved_instances_offering(
self,
*,
InstanceCount: int,
ReservedInstancesOfferingId: str,
DryRun: bool = ...,
LimitPrice: ReservedInstanceLimitPriceTypeDef = ..., # (1)
PurchaseTime: Union[datetime, str] = ...,
) -> PurchaseReservedInstancesOfferingResultTypeDef: # (2)
...
# purchase_reserved_instances_offering method usage example with argument unpacking
kwargs: PurchaseReservedInstancesOfferingRequestRequestTypeDef = { # (1)
"InstanceCount": ...,
"ReservedInstancesOfferingId": ...,
}
parent.purchase_reserved_instances_offering(**kwargs)
purchase_scheduled_instances#
.
Type annotations and code completion for session.create_client("ec2").purchase_scheduled_instances
method.
boto3 documentation
# purchase_scheduled_instances method definition
await def purchase_scheduled_instances(
self,
*,
PurchaseRequests: Sequence[PurchaseRequestTypeDef], # (1)
ClientToken: str = ...,
DryRun: bool = ...,
) -> PurchaseScheduledInstancesResultTypeDef: # (2)
...
# purchase_scheduled_instances method usage example with argument unpacking
kwargs: PurchaseScheduledInstancesRequestRequestTypeDef = { # (1)
"PurchaseRequests": ...,
}
parent.purchase_scheduled_instances(**kwargs)
reboot_instances#
Requests a reboot of the specified instances.
Type annotations and code completion for session.create_client("ec2").reboot_instances
method.
boto3 documentation
# reboot_instances method definition
await def reboot_instances(
self,
*,
InstanceIds: Sequence[str],
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# reboot_instances method usage example with argument unpacking
kwargs: RebootInstancesRequestRequestTypeDef = { # (1)
"InstanceIds": ...,
}
parent.reboot_instances(**kwargs)
register_image#
Registers an AMI.
Type annotations and code completion for session.create_client("ec2").register_image
method.
boto3 documentation
# register_image method definition
await def register_image(
self,
*,
Name: str,
ImageLocation: str = ...,
Architecture: ArchitectureValuesType = ..., # (1)
BlockDeviceMappings: Sequence[BlockDeviceMappingTypeDef] = ..., # (2)
Description: str = ...,
DryRun: bool = ...,
EnaSupport: bool = ...,
KernelId: str = ...,
BillingProducts: Sequence[str] = ...,
RamdiskId: str = ...,
RootDeviceName: str = ...,
SriovNetSupport: str = ...,
VirtualizationType: str = ...,
BootMode: BootModeValuesType = ..., # (3)
TpmSupport: TpmSupportValuesType = ..., # (4)
UefiData: str = ...,
ImdsSupport: ImdsSupportValuesType = ..., # (5)
) -> RegisterImageResultTypeDef: # (6)
...
- See ArchitectureValuesType
- See BlockDeviceMappingTypeDef
- See BootModeValuesType
- See TpmSupportValuesType
- See ImdsSupportValuesType
- See RegisterImageResultTypeDef
# register_image method usage example with argument unpacking
kwargs: RegisterImageRequestRequestTypeDef = { # (1)
"Name": ...,
}
parent.register_image(**kwargs)
register_instance_event_notification_attributes#
Registers a set of tag keys to include in scheduled event notifications for your resources.
Type annotations and code completion for session.create_client("ec2").register_instance_event_notification_attributes
method.
boto3 documentation
# register_instance_event_notification_attributes method definition
await def register_instance_event_notification_attributes(
self,
*,
InstanceTagAttribute: RegisterInstanceTagAttributeRequestTypeDef, # (1)
DryRun: bool = ...,
) -> RegisterInstanceEventNotificationAttributesResultTypeDef: # (2)
...
- See RegisterInstanceTagAttributeRequestTypeDef
- See RegisterInstanceEventNotificationAttributesResultTypeDef
# register_instance_event_notification_attributes method usage example with argument unpacking
kwargs: RegisterInstanceEventNotificationAttributesRequestRequestTypeDef = { # (1)
"InstanceTagAttribute": ...,
}
parent.register_instance_event_notification_attributes(**kwargs)
register_transit_gateway_multicast_group_members#
Registers members (network interfaces) with the transit gateway multicast group.
Type annotations and code completion for session.create_client("ec2").register_transit_gateway_multicast_group_members
method.
boto3 documentation
# register_transit_gateway_multicast_group_members method definition
await def register_transit_gateway_multicast_group_members(
self,
*,
TransitGatewayMulticastDomainId: str,
NetworkInterfaceIds: Sequence[str],
GroupIpAddress: str = ...,
DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupMembersResultTypeDef: # (1)
...
# register_transit_gateway_multicast_group_members method usage example with argument unpacking
kwargs: RegisterTransitGatewayMulticastGroupMembersRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
"NetworkInterfaceIds": ...,
}
parent.register_transit_gateway_multicast_group_members(**kwargs)
register_transit_gateway_multicast_group_sources#
Registers sources (network interfaces) with the specified transit gateway multicast group.
Type annotations and code completion for session.create_client("ec2").register_transit_gateway_multicast_group_sources
method.
boto3 documentation
# register_transit_gateway_multicast_group_sources method definition
await def register_transit_gateway_multicast_group_sources(
self,
*,
TransitGatewayMulticastDomainId: str,
NetworkInterfaceIds: Sequence[str],
GroupIpAddress: str = ...,
DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupSourcesResultTypeDef: # (1)
...
# register_transit_gateway_multicast_group_sources method usage example with argument unpacking
kwargs: RegisterTransitGatewayMulticastGroupSourcesRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
"NetworkInterfaceIds": ...,
}
parent.register_transit_gateway_multicast_group_sources(**kwargs)
reject_transit_gateway_multicast_domain_associations#
Rejects a request to associate cross-account subnets with a transit gateway multicast domain.
Type annotations and code completion for session.create_client("ec2").reject_transit_gateway_multicast_domain_associations
method.
boto3 documentation
# reject_transit_gateway_multicast_domain_associations method definition
await def reject_transit_gateway_multicast_domain_associations(
self,
*,
TransitGatewayMulticastDomainId: str = ...,
TransitGatewayAttachmentId: str = ...,
SubnetIds: Sequence[str] = ...,
DryRun: bool = ...,
) -> RejectTransitGatewayMulticastDomainAssociationsResultTypeDef: # (1)
...
# reject_transit_gateway_multicast_domain_associations method usage example with argument unpacking
kwargs: RejectTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
}
parent.reject_transit_gateway_multicast_domain_associations(**kwargs)
reject_transit_gateway_peering_attachment#
Rejects a transit gateway peering attachment request.
Type annotations and code completion for session.create_client("ec2").reject_transit_gateway_peering_attachment
method.
boto3 documentation
# reject_transit_gateway_peering_attachment method definition
await def reject_transit_gateway_peering_attachment(
self,
*,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> RejectTransitGatewayPeeringAttachmentResultTypeDef: # (1)
...
# reject_transit_gateway_peering_attachment method usage example with argument unpacking
kwargs: RejectTransitGatewayPeeringAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.reject_transit_gateway_peering_attachment(**kwargs)
reject_transit_gateway_vpc_attachment#
Rejects a request to attach a VPC to a transit gateway.
Type annotations and code completion for session.create_client("ec2").reject_transit_gateway_vpc_attachment
method.
boto3 documentation
# reject_transit_gateway_vpc_attachment method definition
await def reject_transit_gateway_vpc_attachment(
self,
*,
TransitGatewayAttachmentId: str,
DryRun: bool = ...,
) -> RejectTransitGatewayVpcAttachmentResultTypeDef: # (1)
...
# reject_transit_gateway_vpc_attachment method usage example with argument unpacking
kwargs: RejectTransitGatewayVpcAttachmentRequestRequestTypeDef = { # (1)
"TransitGatewayAttachmentId": ...,
}
parent.reject_transit_gateway_vpc_attachment(**kwargs)
reject_vpc_endpoint_connections#
Rejects VPC endpoint connection requests to your VPC endpoint service.
Type annotations and code completion for session.create_client("ec2").reject_vpc_endpoint_connections
method.
boto3 documentation
# reject_vpc_endpoint_connections method definition
await def reject_vpc_endpoint_connections(
self,
*,
ServiceId: str,
VpcEndpointIds: Sequence[str],
DryRun: bool = ...,
) -> RejectVpcEndpointConnectionsResultTypeDef: # (1)
...
# reject_vpc_endpoint_connections method usage example with argument unpacking
kwargs: RejectVpcEndpointConnectionsRequestRequestTypeDef = { # (1)
"ServiceId": ...,
"VpcEndpointIds": ...,
}
parent.reject_vpc_endpoint_connections(**kwargs)
reject_vpc_peering_connection#
Rejects a VPC peering connection request.
Type annotations and code completion for session.create_client("ec2").reject_vpc_peering_connection
method.
boto3 documentation
# reject_vpc_peering_connection method definition
await def reject_vpc_peering_connection(
self,
*,
VpcPeeringConnectionId: str,
DryRun: bool = ...,
) -> RejectVpcPeeringConnectionResultTypeDef: # (1)
...
# reject_vpc_peering_connection method usage example with argument unpacking
kwargs: RejectVpcPeeringConnectionRequestRequestTypeDef = { # (1)
"VpcPeeringConnectionId": ...,
}
parent.reject_vpc_peering_connection(**kwargs)
release_address#
Releases the specified Elastic IP address.
Type annotations and code completion for session.create_client("ec2").release_address
method.
boto3 documentation
# release_address method definition
await def release_address(
self,
*,
AllocationId: str = ...,
PublicIp: str = ...,
NetworkBorderGroup: str = ...,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# release_address method usage example with argument unpacking
kwargs: ReleaseAddressRequestRequestTypeDef = { # (1)
"AllocationId": ...,
}
parent.release_address(**kwargs)
release_hosts#
When you no longer want to use an On-Demand Dedicated Host it can be released.
Type annotations and code completion for session.create_client("ec2").release_hosts
method.
boto3 documentation
# release_hosts method definition
await def release_hosts(
self,
*,
HostIds: Sequence[str],
) -> ReleaseHostsResultTypeDef: # (1)
...
# release_hosts method usage example with argument unpacking
kwargs: ReleaseHostsRequestRequestTypeDef = { # (1)
"HostIds": ...,
}
parent.release_hosts(**kwargs)
release_ipam_pool_allocation#
Release an allocation within an IPAM pool.
Type annotations and code completion for session.create_client("ec2").release_ipam_pool_allocation
method.
boto3 documentation
# release_ipam_pool_allocation method definition
await def release_ipam_pool_allocation(
self,
*,
IpamPoolId: str,
Cidr: str,
IpamPoolAllocationId: str,
DryRun: bool = ...,
) -> ReleaseIpamPoolAllocationResultTypeDef: # (1)
...
# release_ipam_pool_allocation method usage example with argument unpacking
kwargs: ReleaseIpamPoolAllocationRequestRequestTypeDef = { # (1)
"IpamPoolId": ...,
"Cidr": ...,
"IpamPoolAllocationId": ...,
}
parent.release_ipam_pool_allocation(**kwargs)
replace_iam_instance_profile_association#
Replaces an IAM instance profile for the specified running instance.
Type annotations and code completion for session.create_client("ec2").replace_iam_instance_profile_association
method.
boto3 documentation
# replace_iam_instance_profile_association method definition
await def replace_iam_instance_profile_association(
self,
*,
IamInstanceProfile: IamInstanceProfileSpecificationTypeDef, # (1)
AssociationId: str,
) -> ReplaceIamInstanceProfileAssociationResultTypeDef: # (2)
...
# replace_iam_instance_profile_association method usage example with argument unpacking
kwargs: ReplaceIamInstanceProfileAssociationRequestRequestTypeDef = { # (1)
"IamInstanceProfile": ...,
"AssociationId": ...,
}
parent.replace_iam_instance_profile_association(**kwargs)
replace_network_acl_association#
Changes which network ACL a subnet is associated with.
Type annotations and code completion for session.create_client("ec2").replace_network_acl_association
method.
boto3 documentation
# replace_network_acl_association method definition
await def replace_network_acl_association(
self,
*,
AssociationId: str,
NetworkAclId: str,
DryRun: bool = ...,
) -> ReplaceNetworkAclAssociationResultTypeDef: # (1)
...
# replace_network_acl_association method usage example with argument unpacking
kwargs: ReplaceNetworkAclAssociationRequestRequestTypeDef = { # (1)
"AssociationId": ...,
"NetworkAclId": ...,
}
parent.replace_network_acl_association(**kwargs)
replace_network_acl_entry#
Replaces an entry (rule) in a network ACL.
Type annotations and code completion for session.create_client("ec2").replace_network_acl_entry
method.
boto3 documentation
# replace_network_acl_entry method definition
await def replace_network_acl_entry(
self,
*,
Egress: bool,
NetworkAclId: str,
Protocol: str,
RuleAction: RuleActionType, # (1)
RuleNumber: int,
CidrBlock: str = ...,
DryRun: bool = ...,
IcmpTypeCode: IcmpTypeCodeTypeDef = ..., # (2)
Ipv6CidrBlock: str = ...,
PortRange: PortRangeTypeDef = ..., # (3)
) -> EmptyResponseMetadataTypeDef: # (4)
...
# replace_network_acl_entry method usage example with argument unpacking
kwargs: ReplaceNetworkAclEntryRequestRequestTypeDef = { # (1)
"Egress": ...,
"NetworkAclId": ...,
"Protocol": ...,
"RuleAction": ...,
"RuleNumber": ...,
}
parent.replace_network_acl_entry(**kwargs)
replace_route#
Replaces an existing route within a route table in a VPC.
Type annotations and code completion for session.create_client("ec2").replace_route
method.
boto3 documentation
# replace_route method definition
await def replace_route(
self,
*,
RouteTableId: str,
DestinationCidrBlock: str = ...,
DestinationIpv6CidrBlock: str = ...,
DestinationPrefixListId: str = ...,
DryRun: bool = ...,
VpcEndpointId: str = ...,
EgressOnlyInternetGatewayId: str = ...,
GatewayId: str = ...,
InstanceId: str = ...,
LocalTarget: bool = ...,
NatGatewayId: str = ...,
TransitGatewayId: str = ...,
LocalGatewayId: str = ...,
CarrierGatewayId: str = ...,
NetworkInterfaceId: str = ...,
VpcPeeringConnectionId: str = ...,
CoreNetworkArn: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# replace_route method usage example with argument unpacking
kwargs: ReplaceRouteRequestRequestTypeDef = { # (1)
"RouteTableId": ...,
}
parent.replace_route(**kwargs)
replace_route_table_association#
Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC.
Type annotations and code completion for session.create_client("ec2").replace_route_table_association
method.
boto3 documentation
# replace_route_table_association method definition
await def replace_route_table_association(
self,
*,
AssociationId: str,
RouteTableId: str,
DryRun: bool = ...,
) -> ReplaceRouteTableAssociationResultTypeDef: # (1)
...
# replace_route_table_association method usage example with argument unpacking
kwargs: ReplaceRouteTableAssociationRequestRequestTypeDef = { # (1)
"AssociationId": ...,
"RouteTableId": ...,
}
parent.replace_route_table_association(**kwargs)
replace_transit_gateway_route#
Replaces the specified route in the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").replace_transit_gateway_route
method.
boto3 documentation
# replace_transit_gateway_route method definition
await def replace_transit_gateway_route(
self,
*,
DestinationCidrBlock: str,
TransitGatewayRouteTableId: str,
TransitGatewayAttachmentId: str = ...,
Blackhole: bool = ...,
DryRun: bool = ...,
) -> ReplaceTransitGatewayRouteResultTypeDef: # (1)
...
# replace_transit_gateway_route method usage example with argument unpacking
kwargs: ReplaceTransitGatewayRouteRequestRequestTypeDef = { # (1)
"DestinationCidrBlock": ...,
"TransitGatewayRouteTableId": ...,
}
parent.replace_transit_gateway_route(**kwargs)
replace_vpn_tunnel#
Trigger replacement of specified VPN tunnel.
Type annotations and code completion for session.create_client("ec2").replace_vpn_tunnel
method.
boto3 documentation
# replace_vpn_tunnel method definition
await def replace_vpn_tunnel(
self,
*,
VpnConnectionId: str,
VpnTunnelOutsideIpAddress: str,
ApplyPendingMaintenance: bool = ...,
DryRun: bool = ...,
) -> ReplaceVpnTunnelResultTypeDef: # (1)
...
# replace_vpn_tunnel method usage example with argument unpacking
kwargs: ReplaceVpnTunnelRequestRequestTypeDef = { # (1)
"VpnConnectionId": ...,
"VpnTunnelOutsideIpAddress": ...,
}
parent.replace_vpn_tunnel(**kwargs)
report_instance_status#
Submits feedback about the status of an instance.
Type annotations and code completion for session.create_client("ec2").report_instance_status
method.
boto3 documentation
# report_instance_status method definition
await def report_instance_status(
self,
*,
Instances: Sequence[str],
ReasonCodes: Sequence[ReportInstanceReasonCodesType], # (1)
Status: ReportStatusTypeType, # (2)
Description: str = ...,
DryRun: bool = ...,
EndTime: Union[datetime, str] = ...,
StartTime: Union[datetime, str] = ...,
) -> EmptyResponseMetadataTypeDef: # (3)
...
# report_instance_status method usage example with argument unpacking
kwargs: ReportInstanceStatusRequestRequestTypeDef = { # (1)
"Instances": ...,
"ReasonCodes": ...,
"Status": ...,
}
parent.report_instance_status(**kwargs)
request_spot_fleet#
Creates a Spot Fleet request.
Type annotations and code completion for session.create_client("ec2").request_spot_fleet
method.
boto3 documentation
# request_spot_fleet method definition
await def request_spot_fleet(
self,
*,
SpotFleetRequestConfig: SpotFleetRequestConfigDataTypeDef, # (1)
DryRun: bool = ...,
) -> RequestSpotFleetResponseTypeDef: # (2)
...
# request_spot_fleet method usage example with argument unpacking
kwargs: RequestSpotFleetRequestRequestTypeDef = { # (1)
"SpotFleetRequestConfig": ...,
}
parent.request_spot_fleet(**kwargs)
request_spot_instances#
Creates a Spot Instance request.
Type annotations and code completion for session.create_client("ec2").request_spot_instances
method.
boto3 documentation
# request_spot_instances method definition
await def request_spot_instances(
self,
*,
AvailabilityZoneGroup: str = ...,
BlockDurationMinutes: int = ...,
ClientToken: str = ...,
DryRun: bool = ...,
InstanceCount: int = ...,
LaunchGroup: str = ...,
LaunchSpecification: RequestSpotLaunchSpecificationTypeDef = ..., # (1)
SpotPrice: str = ...,
Type: SpotInstanceTypeType = ..., # (2)
ValidFrom: Union[datetime, str] = ...,
ValidUntil: Union[datetime, str] = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (3)
InstanceInterruptionBehavior: InstanceInterruptionBehaviorType = ..., # (4)
) -> RequestSpotInstancesResultTypeDef: # (5)
...
- See RequestSpotLaunchSpecificationTypeDef
- See SpotInstanceTypeType
- See TagSpecificationTypeDef
- See InstanceInterruptionBehaviorType
- See RequestSpotInstancesResultTypeDef
# request_spot_instances method usage example with argument unpacking
kwargs: RequestSpotInstancesRequestRequestTypeDef = { # (1)
"AvailabilityZoneGroup": ...,
}
parent.request_spot_instances(**kwargs)
reset_address_attribute#
Resets the attribute of the specified IP address.
Type annotations and code completion for session.create_client("ec2").reset_address_attribute
method.
boto3 documentation
# reset_address_attribute method definition
await def reset_address_attribute(
self,
*,
AllocationId: str,
Attribute: AddressAttributeNameType, # (1)
DryRun: bool = ...,
) -> ResetAddressAttributeResultTypeDef: # (2)
...
# reset_address_attribute method usage example with argument unpacking
kwargs: ResetAddressAttributeRequestRequestTypeDef = { # (1)
"AllocationId": ...,
"Attribute": ...,
}
parent.reset_address_attribute(**kwargs)
reset_ebs_default_kms_key_id#
Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.
Type annotations and code completion for session.create_client("ec2").reset_ebs_default_kms_key_id
method.
boto3 documentation
# reset_ebs_default_kms_key_id method definition
await def reset_ebs_default_kms_key_id(
self,
*,
DryRun: bool = ...,
) -> ResetEbsDefaultKmsKeyIdResultTypeDef: # (1)
...
# reset_ebs_default_kms_key_id method usage example with argument unpacking
kwargs: ResetEbsDefaultKmsKeyIdRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.reset_ebs_default_kms_key_id(**kwargs)
reset_fpga_image_attribute#
Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value.
Type annotations and code completion for session.create_client("ec2").reset_fpga_image_attribute
method.
boto3 documentation
# reset_fpga_image_attribute method definition
await def reset_fpga_image_attribute(
self,
*,
FpgaImageId: str,
DryRun: bool = ...,
Attribute: ResetFpgaImageAttributeNameType = ..., # (1)
) -> ResetFpgaImageAttributeResultTypeDef: # (2)
...
# reset_fpga_image_attribute method usage example with argument unpacking
kwargs: ResetFpgaImageAttributeRequestRequestTypeDef = { # (1)
"FpgaImageId": ...,
}
parent.reset_fpga_image_attribute(**kwargs)
reset_image_attribute#
Resets an attribute of an AMI to its default value.
Type annotations and code completion for session.create_client("ec2").reset_image_attribute
method.
boto3 documentation
# reset_image_attribute method definition
await def reset_image_attribute(
self,
*,
Attribute: ResetImageAttributeNameType, # (1)
ImageId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# reset_image_attribute method usage example with argument unpacking
kwargs: ResetImageAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"ImageId": ...,
}
parent.reset_image_attribute(**kwargs)
reset_instance_attribute#
Resets an attribute of an instance to its default value.
Type annotations and code completion for session.create_client("ec2").reset_instance_attribute
method.
boto3 documentation
# reset_instance_attribute method definition
await def reset_instance_attribute(
self,
*,
Attribute: InstanceAttributeNameType, # (1)
InstanceId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# reset_instance_attribute method usage example with argument unpacking
kwargs: ResetInstanceAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"InstanceId": ...,
}
parent.reset_instance_attribute(**kwargs)
reset_network_interface_attribute#
Resets a network interface attribute.
Type annotations and code completion for session.create_client("ec2").reset_network_interface_attribute
method.
boto3 documentation
# reset_network_interface_attribute method definition
await def reset_network_interface_attribute(
self,
*,
NetworkInterfaceId: str,
DryRun: bool = ...,
SourceDestCheck: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# reset_network_interface_attribute method usage example with argument unpacking
kwargs: ResetNetworkInterfaceAttributeRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.reset_network_interface_attribute(**kwargs)
reset_snapshot_attribute#
Resets permission settings for the specified snapshot.
Type annotations and code completion for session.create_client("ec2").reset_snapshot_attribute
method.
boto3 documentation
# reset_snapshot_attribute method definition
await def reset_snapshot_attribute(
self,
*,
Attribute: SnapshotAttributeNameType, # (1)
SnapshotId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# reset_snapshot_attribute method usage example with argument unpacking
kwargs: ResetSnapshotAttributeRequestRequestTypeDef = { # (1)
"Attribute": ...,
"SnapshotId": ...,
}
parent.reset_snapshot_attribute(**kwargs)
restore_address_to_classic#
.
Type annotations and code completion for session.create_client("ec2").restore_address_to_classic
method.
boto3 documentation
# restore_address_to_classic method definition
await def restore_address_to_classic(
self,
*,
PublicIp: str,
DryRun: bool = ...,
) -> RestoreAddressToClassicResultTypeDef: # (1)
...
# restore_address_to_classic method usage example with argument unpacking
kwargs: RestoreAddressToClassicRequestRequestTypeDef = { # (1)
"PublicIp": ...,
}
parent.restore_address_to_classic(**kwargs)
restore_image_from_recycle_bin#
Restores an AMI from the Recycle Bin.
Type annotations and code completion for session.create_client("ec2").restore_image_from_recycle_bin
method.
boto3 documentation
# restore_image_from_recycle_bin method definition
await def restore_image_from_recycle_bin(
self,
*,
ImageId: str,
DryRun: bool = ...,
) -> RestoreImageFromRecycleBinResultTypeDef: # (1)
...
# restore_image_from_recycle_bin method usage example with argument unpacking
kwargs: RestoreImageFromRecycleBinRequestRequestTypeDef = { # (1)
"ImageId": ...,
}
parent.restore_image_from_recycle_bin(**kwargs)
restore_managed_prefix_list_version#
Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.
Type annotations and code completion for session.create_client("ec2").restore_managed_prefix_list_version
method.
boto3 documentation
# restore_managed_prefix_list_version method definition
await def restore_managed_prefix_list_version(
self,
*,
PrefixListId: str,
PreviousVersion: int,
CurrentVersion: int,
DryRun: bool = ...,
) -> RestoreManagedPrefixListVersionResultTypeDef: # (1)
...
# restore_managed_prefix_list_version method usage example with argument unpacking
kwargs: RestoreManagedPrefixListVersionRequestRequestTypeDef = { # (1)
"PrefixListId": ...,
"PreviousVersion": ...,
"CurrentVersion": ...,
}
parent.restore_managed_prefix_list_version(**kwargs)
restore_snapshot_from_recycle_bin#
Restores a snapshot from the Recycle Bin.
Type annotations and code completion for session.create_client("ec2").restore_snapshot_from_recycle_bin
method.
boto3 documentation
# restore_snapshot_from_recycle_bin method definition
await def restore_snapshot_from_recycle_bin(
self,
*,
SnapshotId: str,
DryRun: bool = ...,
) -> RestoreSnapshotFromRecycleBinResultTypeDef: # (1)
...
# restore_snapshot_from_recycle_bin method usage example with argument unpacking
kwargs: RestoreSnapshotFromRecycleBinRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
}
parent.restore_snapshot_from_recycle_bin(**kwargs)
restore_snapshot_tier#
Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.
Type annotations and code completion for session.create_client("ec2").restore_snapshot_tier
method.
boto3 documentation
# restore_snapshot_tier method definition
await def restore_snapshot_tier(
self,
*,
SnapshotId: str,
TemporaryRestoreDays: int = ...,
PermanentRestore: bool = ...,
DryRun: bool = ...,
) -> RestoreSnapshotTierResultTypeDef: # (1)
...
# restore_snapshot_tier method usage example with argument unpacking
kwargs: RestoreSnapshotTierRequestRequestTypeDef = { # (1)
"SnapshotId": ...,
}
parent.restore_snapshot_tier(**kwargs)
revoke_client_vpn_ingress#
Removes an ingress authorization rule from a Client VPN endpoint.
Type annotations and code completion for session.create_client("ec2").revoke_client_vpn_ingress
method.
boto3 documentation
# revoke_client_vpn_ingress method definition
await def revoke_client_vpn_ingress(
self,
*,
ClientVpnEndpointId: str,
TargetNetworkCidr: str,
AccessGroupId: str = ...,
RevokeAllGroups: bool = ...,
DryRun: bool = ...,
) -> RevokeClientVpnIngressResultTypeDef: # (1)
...
# revoke_client_vpn_ingress method usage example with argument unpacking
kwargs: RevokeClientVpnIngressRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
"TargetNetworkCidr": ...,
}
parent.revoke_client_vpn_ingress(**kwargs)
revoke_security_group_egress#
Removes the specified outbound (egress) rules from the specified security group.
Type annotations and code completion for session.create_client("ec2").revoke_security_group_egress
method.
boto3 documentation
# revoke_security_group_egress method definition
await def revoke_security_group_egress(
self,
*,
GroupId: str,
DryRun: bool = ...,
IpPermissions: Sequence[IpPermissionTypeDef] = ..., # (1)
SecurityGroupRuleIds: Sequence[str] = ...,
CidrIp: str = ...,
FromPort: int = ...,
IpProtocol: str = ...,
ToPort: int = ...,
SourceSecurityGroupName: str = ...,
SourceSecurityGroupOwnerId: str = ...,
) -> RevokeSecurityGroupEgressResultTypeDef: # (2)
...
# revoke_security_group_egress method usage example with argument unpacking
kwargs: RevokeSecurityGroupEgressRequestRequestTypeDef = { # (1)
"GroupId": ...,
}
parent.revoke_security_group_egress(**kwargs)
revoke_security_group_ingress#
Removes the specified inbound (ingress) rules from a security group.
Type annotations and code completion for session.create_client("ec2").revoke_security_group_ingress
method.
boto3 documentation
# revoke_security_group_ingress method definition
await def revoke_security_group_ingress(
self,
*,
CidrIp: str = ...,
FromPort: int = ...,
GroupId: str = ...,
GroupName: str = ...,
IpPermissions: Sequence[IpPermissionTypeDef] = ..., # (1)
IpProtocol: str = ...,
SourceSecurityGroupName: str = ...,
SourceSecurityGroupOwnerId: str = ...,
ToPort: int = ...,
DryRun: bool = ...,
SecurityGroupRuleIds: Sequence[str] = ...,
) -> RevokeSecurityGroupIngressResultTypeDef: # (2)
...
# revoke_security_group_ingress method usage example with argument unpacking
kwargs: RevokeSecurityGroupIngressRequestRequestTypeDef = { # (1)
"CidrIp": ...,
}
parent.revoke_security_group_ingress(**kwargs)
run_instances#
Launches the specified number of instances using an AMI for which you have permissions.
Type annotations and code completion for session.create_client("ec2").run_instances
method.
boto3 documentation
# run_instances method definition
await def run_instances(
self,
*,
MaxCount: int,
MinCount: int,
BlockDeviceMappings: Sequence[BlockDeviceMappingTypeDef] = ..., # (1)
ImageId: str = ...,
InstanceType: InstanceTypeType = ..., # (2)
Ipv6AddressCount: int = ...,
Ipv6Addresses: Sequence[InstanceIpv6AddressTypeDef] = ..., # (3)
KernelId: str = ...,
KeyName: str = ...,
Monitoring: RunInstancesMonitoringEnabledTypeDef = ..., # (4)
Placement: PlacementTypeDef = ..., # (5)
RamdiskId: str = ...,
SecurityGroupIds: Sequence[str] = ...,
SecurityGroups: Sequence[str] = ...,
SubnetId: str = ...,
UserData: str = ...,
AdditionalInfo: str = ...,
ClientToken: str = ...,
DisableApiTermination: bool = ...,
DryRun: bool = ...,
EbsOptimized: bool = ...,
IamInstanceProfile: IamInstanceProfileSpecificationTypeDef = ..., # (6)
InstanceInitiatedShutdownBehavior: ShutdownBehaviorType = ..., # (7)
NetworkInterfaces: Sequence[InstanceNetworkInterfaceSpecificationTypeDef] = ..., # (8)
PrivateIpAddress: str = ...,
ElasticGpuSpecification: Sequence[ElasticGpuSpecificationTypeDef] = ..., # (9)
ElasticInferenceAccelerators: Sequence[ElasticInferenceAcceleratorTypeDef] = ..., # (10)
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (11)
LaunchTemplate: LaunchTemplateSpecificationTypeDef = ..., # (12)
InstanceMarketOptions: InstanceMarketOptionsRequestTypeDef = ..., # (13)
CreditSpecification: CreditSpecificationRequestTypeDef = ..., # (14)
CpuOptions: CpuOptionsRequestTypeDef = ..., # (15)
CapacityReservationSpecification: CapacityReservationSpecificationTypeDef = ..., # (16)
HibernationOptions: HibernationOptionsRequestTypeDef = ..., # (17)
LicenseSpecifications: Sequence[LicenseConfigurationRequestTypeDef] = ..., # (18)
MetadataOptions: InstanceMetadataOptionsRequestTypeDef = ..., # (19)
EnclaveOptions: EnclaveOptionsRequestTypeDef = ..., # (20)
PrivateDnsNameOptions: PrivateDnsNameOptionsRequestTypeDef = ..., # (21)
MaintenanceOptions: InstanceMaintenanceOptionsRequestTypeDef = ..., # (22)
DisableApiStop: bool = ...,
EnablePrimaryIpv6: bool = ...,
) -> ReservationResponseTypeDef: # (23)
...
- See BlockDeviceMappingTypeDef
- See InstanceTypeType
- See InstanceIpv6AddressTypeDef
- See RunInstancesMonitoringEnabledTypeDef
- See PlacementTypeDef
- See IamInstanceProfileSpecificationTypeDef
- See ShutdownBehaviorType
- See InstanceNetworkInterfaceSpecificationTypeDef
- See ElasticGpuSpecificationTypeDef
- See ElasticInferenceAcceleratorTypeDef
- See TagSpecificationTypeDef
- See LaunchTemplateSpecificationTypeDef
- See InstanceMarketOptionsRequestTypeDef
- See CreditSpecificationRequestTypeDef
- See CpuOptionsRequestTypeDef
- See CapacityReservationSpecificationTypeDef
- See HibernationOptionsRequestTypeDef
- See LicenseConfigurationRequestTypeDef
- See InstanceMetadataOptionsRequestTypeDef
- See EnclaveOptionsRequestTypeDef
- See PrivateDnsNameOptionsRequestTypeDef
- See InstanceMaintenanceOptionsRequestTypeDef
- See ReservationResponseTypeDef
# run_instances method usage example with argument unpacking
kwargs: RunInstancesRequestRequestTypeDef = { # (1)
"MaxCount": ...,
"MinCount": ...,
}
parent.run_instances(**kwargs)
run_scheduled_instances#
Launches the specified Scheduled Instances.
Type annotations and code completion for session.create_client("ec2").run_scheduled_instances
method.
boto3 documentation
# run_scheduled_instances method definition
await def run_scheduled_instances(
self,
*,
LaunchSpecification: ScheduledInstancesLaunchSpecificationTypeDef, # (1)
ScheduledInstanceId: str,
ClientToken: str = ...,
DryRun: bool = ...,
InstanceCount: int = ...,
) -> RunScheduledInstancesResultTypeDef: # (2)
...
# run_scheduled_instances method usage example with argument unpacking
kwargs: RunScheduledInstancesRequestRequestTypeDef = { # (1)
"LaunchSpecification": ...,
"ScheduledInstanceId": ...,
}
parent.run_scheduled_instances(**kwargs)
search_local_gateway_routes#
Searches for routes in the specified local gateway route table.
Type annotations and code completion for session.create_client("ec2").search_local_gateway_routes
method.
boto3 documentation
# search_local_gateway_routes method definition
await def search_local_gateway_routes(
self,
*,
LocalGatewayRouteTableId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> SearchLocalGatewayRoutesResultTypeDef: # (2)
...
# search_local_gateway_routes method usage example with argument unpacking
kwargs: SearchLocalGatewayRoutesRequestRequestTypeDef = { # (1)
"LocalGatewayRouteTableId": ...,
}
parent.search_local_gateway_routes(**kwargs)
search_transit_gateway_multicast_groups#
Searches one or more transit gateway multicast groups and returns the group membership information.
Type annotations and code completion for session.create_client("ec2").search_transit_gateway_multicast_groups
method.
boto3 documentation
# search_transit_gateway_multicast_groups method definition
await def search_transit_gateway_multicast_groups(
self,
*,
TransitGatewayMulticastDomainId: str,
Filters: Sequence[FilterTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
DryRun: bool = ...,
) -> SearchTransitGatewayMulticastGroupsResultTypeDef: # (2)
...
# search_transit_gateway_multicast_groups method usage example with argument unpacking
kwargs: SearchTransitGatewayMulticastGroupsRequestRequestTypeDef = { # (1)
"TransitGatewayMulticastDomainId": ...,
}
parent.search_transit_gateway_multicast_groups(**kwargs)
search_transit_gateway_routes#
Searches for routes in the specified transit gateway route table.
Type annotations and code completion for session.create_client("ec2").search_transit_gateway_routes
method.
boto3 documentation
# search_transit_gateway_routes method definition
await def search_transit_gateway_routes(
self,
*,
TransitGatewayRouteTableId: str,
Filters: Sequence[FilterTypeDef], # (1)
MaxResults: int = ...,
DryRun: bool = ...,
) -> SearchTransitGatewayRoutesResultTypeDef: # (2)
...
# search_transit_gateway_routes method usage example with argument unpacking
kwargs: SearchTransitGatewayRoutesRequestRequestTypeDef = { # (1)
"TransitGatewayRouteTableId": ...,
"Filters": ...,
}
parent.search_transit_gateway_routes(**kwargs)
send_diagnostic_interrupt#
Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances).
Type annotations and code completion for session.create_client("ec2").send_diagnostic_interrupt
method.
boto3 documentation
# send_diagnostic_interrupt method definition
await def send_diagnostic_interrupt(
self,
*,
InstanceId: str,
DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# send_diagnostic_interrupt method usage example with argument unpacking
kwargs: SendDiagnosticInterruptRequestRequestTypeDef = { # (1)
"InstanceId": ...,
}
parent.send_diagnostic_interrupt(**kwargs)
start_instances#
Starts an Amazon EBS-backed instance that you've previously stopped.
Type annotations and code completion for session.create_client("ec2").start_instances
method.
boto3 documentation
# start_instances method definition
await def start_instances(
self,
*,
InstanceIds: Sequence[str],
AdditionalInfo: str = ...,
DryRun: bool = ...,
) -> StartInstancesResultTypeDef: # (1)
...
# start_instances method usage example with argument unpacking
kwargs: StartInstancesRequestRequestTypeDef = { # (1)
"InstanceIds": ...,
}
parent.start_instances(**kwargs)
start_network_insights_access_scope_analysis#
Starts analyzing the specified Network Access Scope.
Type annotations and code completion for session.create_client("ec2").start_network_insights_access_scope_analysis
method.
boto3 documentation
# start_network_insights_access_scope_analysis method definition
await def start_network_insights_access_scope_analysis(
self,
*,
NetworkInsightsAccessScopeId: str,
ClientToken: str,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> StartNetworkInsightsAccessScopeAnalysisResultTypeDef: # (2)
...
# start_network_insights_access_scope_analysis method usage example with argument unpacking
kwargs: StartNetworkInsightsAccessScopeAnalysisRequestRequestTypeDef = { # (1)
"NetworkInsightsAccessScopeId": ...,
"ClientToken": ...,
}
parent.start_network_insights_access_scope_analysis(**kwargs)
start_network_insights_analysis#
Starts analyzing the specified path.
Type annotations and code completion for session.create_client("ec2").start_network_insights_analysis
method.
boto3 documentation
# start_network_insights_analysis method definition
await def start_network_insights_analysis(
self,
*,
NetworkInsightsPathId: str,
ClientToken: str,
AdditionalAccounts: Sequence[str] = ...,
FilterInArns: Sequence[str] = ...,
DryRun: bool = ...,
TagSpecifications: Sequence[TagSpecificationTypeDef] = ..., # (1)
) -> StartNetworkInsightsAnalysisResultTypeDef: # (2)
...
# start_network_insights_analysis method usage example with argument unpacking
kwargs: StartNetworkInsightsAnalysisRequestRequestTypeDef = { # (1)
"NetworkInsightsPathId": ...,
"ClientToken": ...,
}
parent.start_network_insights_analysis(**kwargs)
start_vpc_endpoint_service_private_dns_verification#
Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.
Type annotations and code completion for session.create_client("ec2").start_vpc_endpoint_service_private_dns_verification
method.
boto3 documentation
# start_vpc_endpoint_service_private_dns_verification method definition
await def start_vpc_endpoint_service_private_dns_verification(
self,
*,
ServiceId: str,
DryRun: bool = ...,
) -> StartVpcEndpointServicePrivateDnsVerificationResultTypeDef: # (1)
...
# start_vpc_endpoint_service_private_dns_verification method usage example with argument unpacking
kwargs: StartVpcEndpointServicePrivateDnsVerificationRequestRequestTypeDef = { # (1)
"ServiceId": ...,
}
parent.start_vpc_endpoint_service_private_dns_verification(**kwargs)
stop_instances#
Stops an Amazon EBS-backed instance.
Type annotations and code completion for session.create_client("ec2").stop_instances
method.
boto3 documentation
# stop_instances method definition
await def stop_instances(
self,
*,
InstanceIds: Sequence[str],
Hibernate: bool = ...,
DryRun: bool = ...,
Force: bool = ...,
) -> StopInstancesResultTypeDef: # (1)
...
# stop_instances method usage example with argument unpacking
kwargs: StopInstancesRequestRequestTypeDef = { # (1)
"InstanceIds": ...,
}
parent.stop_instances(**kwargs)
terminate_client_vpn_connections#
Terminates active Client VPN endpoint connections.
Type annotations and code completion for session.create_client("ec2").terminate_client_vpn_connections
method.
boto3 documentation
# terminate_client_vpn_connections method definition
await def terminate_client_vpn_connections(
self,
*,
ClientVpnEndpointId: str,
ConnectionId: str = ...,
Username: str = ...,
DryRun: bool = ...,
) -> TerminateClientVpnConnectionsResultTypeDef: # (1)
...
# terminate_client_vpn_connections method usage example with argument unpacking
kwargs: TerminateClientVpnConnectionsRequestRequestTypeDef = { # (1)
"ClientVpnEndpointId": ...,
}
parent.terminate_client_vpn_connections(**kwargs)
terminate_instances#
Shuts down the specified instances.
Type annotations and code completion for session.create_client("ec2").terminate_instances
method.
boto3 documentation
# terminate_instances method definition
await def terminate_instances(
self,
*,
InstanceIds: Sequence[str],
DryRun: bool = ...,
) -> TerminateInstancesResultTypeDef: # (1)
...
# terminate_instances method usage example with argument unpacking
kwargs: TerminateInstancesRequestRequestTypeDef = { # (1)
"InstanceIds": ...,
}
parent.terminate_instances(**kwargs)
unassign_ipv6_addresses#
Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.
Type annotations and code completion for session.create_client("ec2").unassign_ipv6_addresses
method.
boto3 documentation
# unassign_ipv6_addresses method definition
await def unassign_ipv6_addresses(
self,
*,
NetworkInterfaceId: str,
Ipv6Addresses: Sequence[str] = ...,
Ipv6Prefixes: Sequence[str] = ...,
) -> UnassignIpv6AddressesResultTypeDef: # (1)
...
# unassign_ipv6_addresses method usage example with argument unpacking
kwargs: UnassignIpv6AddressesRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.unassign_ipv6_addresses(**kwargs)
unassign_private_ip_addresses#
Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.
Type annotations and code completion for session.create_client("ec2").unassign_private_ip_addresses
method.
boto3 documentation
# unassign_private_ip_addresses method definition
await def unassign_private_ip_addresses(
self,
*,
NetworkInterfaceId: str,
PrivateIpAddresses: Sequence[str] = ...,
Ipv4Prefixes: Sequence[str] = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# unassign_private_ip_addresses method usage example with argument unpacking
kwargs: UnassignPrivateIpAddressesRequestRequestTypeDef = { # (1)
"NetworkInterfaceId": ...,
}
parent.unassign_private_ip_addresses(**kwargs)
unassign_private_nat_gateway_address#
Unassigns secondary private IPv4 addresses from a private NAT gateway.
Type annotations and code completion for session.create_client("ec2").unassign_private_nat_gateway_address
method.
boto3 documentation
# unassign_private_nat_gateway_address method definition
await def unassign_private_nat_gateway_address(
self,
*,
NatGatewayId: str,
PrivateIpAddresses: Sequence[str],
MaxDrainDurationSeconds: int = ...,
DryRun: bool = ...,
) -> UnassignPrivateNatGatewayAddressResultTypeDef: # (1)
...
# unassign_private_nat_gateway_address method usage example with argument unpacking
kwargs: UnassignPrivateNatGatewayAddressRequestRequestTypeDef = { # (1)
"NatGatewayId": ...,
"PrivateIpAddresses": ...,
}
parent.unassign_private_nat_gateway_address(**kwargs)
unmonitor_instances#
Disables detailed monitoring for a running instance.
Type annotations and code completion for session.create_client("ec2").unmonitor_instances
method.
boto3 documentation
# unmonitor_instances method definition
await def unmonitor_instances(
self,
*,
InstanceIds: Sequence[str],
DryRun: bool = ...,
) -> UnmonitorInstancesResultTypeDef: # (1)
...
# unmonitor_instances method usage example with argument unpacking
kwargs: UnmonitorInstancesRequestRequestTypeDef = { # (1)
"InstanceIds": ...,
}
parent.unmonitor_instances(**kwargs)
update_security_group_rule_descriptions_egress#
Updates the description of an egress (outbound) security group rule.
Type annotations and code completion for session.create_client("ec2").update_security_group_rule_descriptions_egress
method.
boto3 documentation
# update_security_group_rule_descriptions_egress method definition
await def update_security_group_rule_descriptions_egress(
self,
*,
DryRun: bool = ...,
GroupId: str = ...,
GroupName: str = ...,
IpPermissions: Sequence[IpPermissionTypeDef] = ..., # (1)
SecurityGroupRuleDescriptions: Sequence[SecurityGroupRuleDescriptionTypeDef] = ..., # (2)
) -> UpdateSecurityGroupRuleDescriptionsEgressResultTypeDef: # (3)
...
- See IpPermissionTypeDef
- See SecurityGroupRuleDescriptionTypeDef
- See UpdateSecurityGroupRuleDescriptionsEgressResultTypeDef
# update_security_group_rule_descriptions_egress method usage example with argument unpacking
kwargs: UpdateSecurityGroupRuleDescriptionsEgressRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.update_security_group_rule_descriptions_egress(**kwargs)
update_security_group_rule_descriptions_ingress#
Updates the description of an ingress (inbound) security group rule.
Type annotations and code completion for session.create_client("ec2").update_security_group_rule_descriptions_ingress
method.
boto3 documentation
# update_security_group_rule_descriptions_ingress method definition
await def update_security_group_rule_descriptions_ingress(
self,
*,
DryRun: bool = ...,
GroupId: str = ...,
GroupName: str = ...,
IpPermissions: Sequence[IpPermissionTypeDef] = ..., # (1)
SecurityGroupRuleDescriptions: Sequence[SecurityGroupRuleDescriptionTypeDef] = ..., # (2)
) -> UpdateSecurityGroupRuleDescriptionsIngressResultTypeDef: # (3)
...
- See IpPermissionTypeDef
- See SecurityGroupRuleDescriptionTypeDef
- See UpdateSecurityGroupRuleDescriptionsIngressResultTypeDef
# update_security_group_rule_descriptions_ingress method usage example with argument unpacking
kwargs: UpdateSecurityGroupRuleDescriptionsIngressRequestRequestTypeDef = { # (1)
"DryRun": ...,
}
parent.update_security_group_rule_descriptions_ingress(**kwargs)
withdraw_byoip_cidr#
Stops advertising an address range that is provisioned as an address pool.
Type annotations and code completion for session.create_client("ec2").withdraw_byoip_cidr
method.
boto3 documentation
# withdraw_byoip_cidr method definition
await def withdraw_byoip_cidr(
self,
*,
Cidr: str,
DryRun: bool = ...,
) -> WithdrawByoipCidrResultTypeDef: # (1)
...
# withdraw_byoip_cidr method usage example with argument unpacking
kwargs: WithdrawByoipCidrRequestRequestTypeDef = { # (1)
"Cidr": ...,
}
parent.withdraw_byoip_cidr(**kwargs)
__aenter__#
Type annotations and code completion for session.create_client("ec2").__aenter__
method.
boto3 documentation
# __aenter__ method definition
await def __aenter__(
self,
) -> EC2Client:
...
__aexit__#
Type annotations and code completion for session.create_client("ec2").__aexit__
method.
boto3 documentation
# __aexit__ method definition
await def __aexit__(
self,
exc_type: Any,
exc_val: Any,
exc_tb: Any,
) -> Any:
...
get_paginator#
Type annotations and code completion for session.create_client("ec2").get_paginator
method with overloads.
client.get_paginator("describe_address_transfers")
-> DescribeAddressTransfersPaginatorclient.get_paginator("describe_addresses_attribute")
-> DescribeAddressesAttributePaginatorclient.get_paginator("describe_aws_network_performance_metric_subscriptions")
-> DescribeAwsNetworkPerformanceMetricSubscriptionsPaginatorclient.get_paginator("describe_byoip_cidrs")
-> DescribeByoipCidrsPaginatorclient.get_paginator("describe_capacity_reservation_fleets")
-> DescribeCapacityReservationFleetsPaginatorclient.get_paginator("describe_capacity_reservations")
-> DescribeCapacityReservationsPaginatorclient.get_paginator("describe_carrier_gateways")
-> DescribeCarrierGatewaysPaginatorclient.get_paginator("describe_classic_link_instances")
-> DescribeClassicLinkInstancesPaginatorclient.get_paginator("describe_client_vpn_authorization_rules")
-> DescribeClientVpnAuthorizationRulesPaginatorclient.get_paginator("describe_client_vpn_connections")
-> DescribeClientVpnConnectionsPaginatorclient.get_paginator("describe_client_vpn_endpoints")
-> DescribeClientVpnEndpointsPaginatorclient.get_paginator("describe_client_vpn_routes")
-> DescribeClientVpnRoutesPaginatorclient.get_paginator("describe_client_vpn_target_networks")
-> DescribeClientVpnTargetNetworksPaginatorclient.get_paginator("describe_coip_pools")
-> DescribeCoipPoolsPaginatorclient.get_paginator("describe_dhcp_options")
-> DescribeDhcpOptionsPaginatorclient.get_paginator("describe_egress_only_internet_gateways")
-> DescribeEgressOnlyInternetGatewaysPaginatorclient.get_paginator("describe_export_image_tasks")
-> DescribeExportImageTasksPaginatorclient.get_paginator("describe_fast_launch_images")
-> DescribeFastLaunchImagesPaginatorclient.get_paginator("describe_fast_snapshot_restores")
-> DescribeFastSnapshotRestoresPaginatorclient.get_paginator("describe_fleets")
-> DescribeFleetsPaginatorclient.get_paginator("describe_flow_logs")
-> DescribeFlowLogsPaginatorclient.get_paginator("describe_fpga_images")
-> DescribeFpgaImagesPaginatorclient.get_paginator("describe_host_reservation_offerings")
-> DescribeHostReservationOfferingsPaginatorclient.get_paginator("describe_host_reservations")
-> DescribeHostReservationsPaginatorclient.get_paginator("describe_hosts")
-> DescribeHostsPaginatorclient.get_paginator("describe_iam_instance_profile_associations")
-> DescribeIamInstanceProfileAssociationsPaginatorclient.get_paginator("describe_images")
-> DescribeImagesPaginatorclient.get_paginator("describe_import_image_tasks")
-> DescribeImportImageTasksPaginatorclient.get_paginator("describe_import_snapshot_tasks")
-> DescribeImportSnapshotTasksPaginatorclient.get_paginator("describe_instance_connect_endpoints")
-> DescribeInstanceConnectEndpointsPaginatorclient.get_paginator("describe_instance_credit_specifications")
-> DescribeInstanceCreditSpecificationsPaginatorclient.get_paginator("describe_instance_event_windows")
-> DescribeInstanceEventWindowsPaginatorclient.get_paginator("describe_instance_status")
-> DescribeInstanceStatusPaginatorclient.get_paginator("describe_instance_type_offerings")
-> DescribeInstanceTypeOfferingsPaginatorclient.get_paginator("describe_instance_types")
-> DescribeInstanceTypesPaginatorclient.get_paginator("describe_instances")
-> DescribeInstancesPaginatorclient.get_paginator("describe_internet_gateways")
-> DescribeInternetGatewaysPaginatorclient.get_paginator("describe_ipam_pools")
-> DescribeIpamPoolsPaginatorclient.get_paginator("describe_ipam_resource_discoveries")
-> DescribeIpamResourceDiscoveriesPaginatorclient.get_paginator("describe_ipam_resource_discovery_associations")
-> DescribeIpamResourceDiscoveryAssociationsPaginatorclient.get_paginator("describe_ipam_scopes")
-> DescribeIpamScopesPaginatorclient.get_paginator("describe_ipams")
-> DescribeIpamsPaginatorclient.get_paginator("describe_ipv6_pools")
-> DescribeIpv6PoolsPaginatorclient.get_paginator("describe_launch_template_versions")
-> DescribeLaunchTemplateVersionsPaginatorclient.get_paginator("describe_launch_templates")
-> DescribeLaunchTemplatesPaginatorclient.get_paginator("describe_local_gateway_route_table_virtual_interface_group_associations")
-> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginatorclient.get_paginator("describe_local_gateway_route_table_vpc_associations")
-> DescribeLocalGatewayRouteTableVpcAssociationsPaginatorclient.get_paginator("describe_local_gateway_route_tables")
-> DescribeLocalGatewayRouteTablesPaginatorclient.get_paginator("describe_local_gateway_virtual_interface_groups")
-> DescribeLocalGatewayVirtualInterfaceGroupsPaginatorclient.get_paginator("describe_local_gateway_virtual_interfaces")
-> DescribeLocalGatewayVirtualInterfacesPaginatorclient.get_paginator("describe_local_gateways")
-> DescribeLocalGatewaysPaginatorclient.get_paginator("describe_managed_prefix_lists")
-> DescribeManagedPrefixListsPaginatorclient.get_paginator("describe_moving_addresses")
-> DescribeMovingAddressesPaginatorclient.get_paginator("describe_nat_gateways")
-> DescribeNatGatewaysPaginatorclient.get_paginator("describe_network_acls")
-> DescribeNetworkAclsPaginatorclient.get_paginator("describe_network_insights_access_scope_analyses")
-> DescribeNetworkInsightsAccessScopeAnalysesPaginatorclient.get_paginator("describe_network_insights_access_scopes")
-> DescribeNetworkInsightsAccessScopesPaginatorclient.get_paginator("describe_network_insights_analyses")
-> DescribeNetworkInsightsAnalysesPaginatorclient.get_paginator("describe_network_insights_paths")
-> DescribeNetworkInsightsPathsPaginatorclient.get_paginator("describe_network_interface_permissions")
-> DescribeNetworkInterfacePermissionsPaginatorclient.get_paginator("describe_network_interfaces")
-> DescribeNetworkInterfacesPaginatorclient.get_paginator("describe_prefix_lists")
-> DescribePrefixListsPaginatorclient.get_paginator("describe_principal_id_format")
-> DescribePrincipalIdFormatPaginatorclient.get_paginator("describe_public_ipv4_pools")
-> DescribePublicIpv4PoolsPaginatorclient.get_paginator("describe_replace_root_volume_tasks")
-> DescribeReplaceRootVolumeTasksPaginatorclient.get_paginator("describe_reserved_instances_modifications")
-> DescribeReservedInstancesModificationsPaginatorclient.get_paginator("describe_reserved_instances_offerings")
-> DescribeReservedInstancesOfferingsPaginatorclient.get_paginator("describe_route_tables")
-> DescribeRouteTablesPaginatorclient.get_paginator("describe_scheduled_instance_availability")
-> DescribeScheduledInstanceAvailabilityPaginatorclient.get_paginator("describe_scheduled_instances")
-> DescribeScheduledInstancesPaginatorclient.get_paginator("describe_security_group_rules")
-> DescribeSecurityGroupRulesPaginatorclient.get_paginator("describe_security_groups")
-> DescribeSecurityGroupsPaginatorclient.get_paginator("describe_snapshot_tier_status")
-> DescribeSnapshotTierStatusPaginatorclient.get_paginator("describe_snapshots")
-> DescribeSnapshotsPaginatorclient.get_paginator("describe_spot_fleet_instances")
-> DescribeSpotFleetInstancesPaginatorclient.get_paginator("describe_spot_fleet_requests")
-> DescribeSpotFleetRequestsPaginatorclient.get_paginator("describe_spot_instance_requests")
-> DescribeSpotInstanceRequestsPaginatorclient.get_paginator("describe_spot_price_history")
-> DescribeSpotPriceHistoryPaginatorclient.get_paginator("describe_stale_security_groups")
-> DescribeStaleSecurityGroupsPaginatorclient.get_paginator("describe_store_image_tasks")
-> DescribeStoreImageTasksPaginatorclient.get_paginator("describe_subnets")
-> DescribeSubnetsPaginatorclient.get_paginator("describe_tags")
-> DescribeTagsPaginatorclient.get_paginator("describe_traffic_mirror_filters")
-> DescribeTrafficMirrorFiltersPaginatorclient.get_paginator("describe_traffic_mirror_sessions")
-> DescribeTrafficMirrorSessionsPaginatorclient.get_paginator("describe_traffic_mirror_targets")
-> DescribeTrafficMirrorTargetsPaginatorclient.get_paginator("describe_transit_gateway_attachments")
-> DescribeTransitGatewayAttachmentsPaginatorclient.get_paginator("describe_transit_gateway_connect_peers")
-> DescribeTransitGatewayConnectPeersPaginatorclient.get_paginator("describe_transit_gateway_connects")
-> DescribeTransitGatewayConnectsPaginatorclient.get_paginator("describe_transit_gateway_multicast_domains")
-> DescribeTransitGatewayMulticastDomainsPaginatorclient.get_paginator("describe_transit_gateway_peering_attachments")
-> DescribeTransitGatewayPeeringAttachmentsPaginatorclient.get_paginator("describe_transit_gateway_policy_tables")
-> DescribeTransitGatewayPolicyTablesPaginatorclient.get_paginator("describe_transit_gateway_route_table_announcements")
-> DescribeTransitGatewayRouteTableAnnouncementsPaginatorclient.get_paginator("describe_transit_gateway_route_tables")
-> DescribeTransitGatewayRouteTablesPaginatorclient.get_paginator("describe_transit_gateway_vpc_attachments")
-> DescribeTransitGatewayVpcAttachmentsPaginatorclient.get_paginator("describe_transit_gateways")
-> DescribeTransitGatewaysPaginatorclient.get_paginator("describe_trunk_interface_associations")
-> DescribeTrunkInterfaceAssociationsPaginatorclient.get_paginator("describe_verified_access_endpoints")
-> DescribeVerifiedAccessEndpointsPaginatorclient.get_paginator("describe_verified_access_groups")
-> DescribeVerifiedAccessGroupsPaginatorclient.get_paginator("describe_verified_access_instance_logging_configurations")
-> DescribeVerifiedAccessInstanceLoggingConfigurationsPaginatorclient.get_paginator("describe_verified_access_instances")
-> DescribeVerifiedAccessInstancesPaginatorclient.get_paginator("describe_verified_access_trust_providers")
-> DescribeVerifiedAccessTrustProvidersPaginatorclient.get_paginator("describe_volume_status")
-> DescribeVolumeStatusPaginatorclient.get_paginator("describe_volumes")
-> DescribeVolumesPaginatorclient.get_paginator("describe_volumes_modifications")
-> DescribeVolumesModificationsPaginatorclient.get_paginator("describe_vpc_classic_link_dns_support")
-> DescribeVpcClassicLinkDnsSupportPaginatorclient.get_paginator("describe_vpc_endpoint_connection_notifications")
-> DescribeVpcEndpointConnectionNotificationsPaginatorclient.get_paginator("describe_vpc_endpoint_connections")
-> DescribeVpcEndpointConnectionsPaginatorclient.get_paginator("describe_vpc_endpoint_service_configurations")
-> DescribeVpcEndpointServiceConfigurationsPaginatorclient.get_paginator("describe_vpc_endpoint_service_permissions")
-> DescribeVpcEndpointServicePermissionsPaginatorclient.get_paginator("describe_vpc_endpoint_services")
-> DescribeVpcEndpointServicesPaginatorclient.get_paginator("describe_vpc_endpoints")
-> DescribeVpcEndpointsPaginatorclient.get_paginator("describe_vpc_peering_connections")
-> DescribeVpcPeeringConnectionsPaginatorclient.get_paginator("describe_vpcs")
-> DescribeVpcsPaginatorclient.get_paginator("get_associated_ipv6_pool_cidrs")
-> GetAssociatedIpv6PoolCidrsPaginatorclient.get_paginator("get_aws_network_performance_data")
-> GetAwsNetworkPerformanceDataPaginatorclient.get_paginator("get_groups_for_capacity_reservation")
-> GetGroupsForCapacityReservationPaginatorclient.get_paginator("get_instance_types_from_instance_requirements")
-> GetInstanceTypesFromInstanceRequirementsPaginatorclient.get_paginator("get_ipam_address_history")
-> GetIpamAddressHistoryPaginatorclient.get_paginator("get_ipam_discovered_accounts")
-> GetIpamDiscoveredAccountsPaginatorclient.get_paginator("get_ipam_discovered_resource_cidrs")
-> GetIpamDiscoveredResourceCidrsPaginatorclient.get_paginator("get_ipam_pool_allocations")
-> GetIpamPoolAllocationsPaginatorclient.get_paginator("get_ipam_pool_cidrs")
-> GetIpamPoolCidrsPaginatorclient.get_paginator("get_ipam_resource_cidrs")
-> GetIpamResourceCidrsPaginatorclient.get_paginator("get_managed_prefix_list_associations")
-> GetManagedPrefixListAssociationsPaginatorclient.get_paginator("get_managed_prefix_list_entries")
-> GetManagedPrefixListEntriesPaginatorclient.get_paginator("get_network_insights_access_scope_analysis_findings")
-> GetNetworkInsightsAccessScopeAnalysisFindingsPaginatorclient.get_paginator("get_spot_placement_scores")
-> GetSpotPlacementScoresPaginatorclient.get_paginator("get_transit_gateway_attachment_propagations")
-> GetTransitGatewayAttachmentPropagationsPaginatorclient.get_paginator("get_transit_gateway_multicast_domain_associations")
-> GetTransitGatewayMulticastDomainAssociationsPaginatorclient.get_paginator("get_transit_gateway_policy_table_associations")
-> GetTransitGatewayPolicyTableAssociationsPaginatorclient.get_paginator("get_transit_gateway_prefix_list_references")
-> GetTransitGatewayPrefixListReferencesPaginatorclient.get_paginator("get_transit_gateway_route_table_associations")
-> GetTransitGatewayRouteTableAssociationsPaginatorclient.get_paginator("get_transit_gateway_route_table_propagations")
-> GetTransitGatewayRouteTablePropagationsPaginatorclient.get_paginator("get_vpn_connection_device_types")
-> GetVpnConnectionDeviceTypesPaginatorclient.get_paginator("list_images_in_recycle_bin")
-> ListImagesInRecycleBinPaginatorclient.get_paginator("list_snapshots_in_recycle_bin")
-> ListSnapshotsInRecycleBinPaginatorclient.get_paginator("search_local_gateway_routes")
-> SearchLocalGatewayRoutesPaginatorclient.get_paginator("search_transit_gateway_multicast_groups")
-> SearchTransitGatewayMulticastGroupsPaginator
get_waiter#
Type annotations and code completion for session.create_client("ec2").get_waiter
method with overloads.
client.get_waiter("bundle_task_complete")
-> BundleTaskCompleteWaiterclient.get_waiter("conversion_task_cancelled")
-> ConversionTaskCancelledWaiterclient.get_waiter("conversion_task_completed")
-> ConversionTaskCompletedWaiterclient.get_waiter("conversion_task_deleted")
-> ConversionTaskDeletedWaiterclient.get_waiter("customer_gateway_available")
-> CustomerGatewayAvailableWaiterclient.get_waiter("export_task_cancelled")
-> ExportTaskCancelledWaiterclient.get_waiter("export_task_completed")
-> ExportTaskCompletedWaiterclient.get_waiter("image_available")
-> ImageAvailableWaiterclient.get_waiter("image_exists")
-> ImageExistsWaiterclient.get_waiter("instance_exists")
-> InstanceExistsWaiterclient.get_waiter("instance_running")
-> InstanceRunningWaiterclient.get_waiter("instance_status_ok")
-> InstanceStatusOkWaiterclient.get_waiter("instance_stopped")
-> InstanceStoppedWaiterclient.get_waiter("instance_terminated")
-> InstanceTerminatedWaiterclient.get_waiter("internet_gateway_exists")
-> InternetGatewayExistsWaiterclient.get_waiter("key_pair_exists")
-> KeyPairExistsWaiterclient.get_waiter("nat_gateway_available")
-> NatGatewayAvailableWaiterclient.get_waiter("nat_gateway_deleted")
-> NatGatewayDeletedWaiterclient.get_waiter("network_interface_available")
-> NetworkInterfaceAvailableWaiterclient.get_waiter("password_data_available")
-> PasswordDataAvailableWaiterclient.get_waiter("security_group_exists")
-> SecurityGroupExistsWaiterclient.get_waiter("snapshot_completed")
-> SnapshotCompletedWaiterclient.get_waiter("snapshot_imported")
-> SnapshotImportedWaiterclient.get_waiter("spot_instance_request_fulfilled")
-> SpotInstanceRequestFulfilledWaiterclient.get_waiter("store_image_task_complete")
-> StoreImageTaskCompleteWaiterclient.get_waiter("subnet_available")
-> SubnetAvailableWaiterclient.get_waiter("system_status_ok")
-> SystemStatusOkWaiterclient.get_waiter("volume_available")
-> VolumeAvailableWaiterclient.get_waiter("volume_deleted")
-> VolumeDeletedWaiterclient.get_waiter("volume_in_use")
-> VolumeInUseWaiterclient.get_waiter("vpc_available")
-> VpcAvailableWaiterclient.get_waiter("vpc_exists")
-> VpcExistsWaiterclient.get_waiter("vpc_peering_connection_deleted")
-> VpcPeeringConnectionDeletedWaiterclient.get_waiter("vpc_peering_connection_exists")
-> VpcPeeringConnectionExistsWaiterclient.get_waiter("vpn_connection_available")
-> VpnConnectionAvailableWaiterclient.get_waiter("vpn_connection_deleted")
-> VpnConnectionDeletedWaiter