Skip to content

EC2Client#

Index > EC2 > EC2Client

Auto-generated documentation for EC2 type annotations stubs module mypy-boto3-ec2.

EC2Client#

Type annotations and code completion for boto3.client("ec2"). boto3 documentation

# EC2Client usage example

from boto3.session import Session
from mypy_boto3_ec2.client import EC2Client

def get_ec2_client() -> EC2Client:
    return Session().client("ec2")

Exceptions#

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("ec2").exceptions structure.

# Exceptions.exceptions usage example

client = boto3.client("ec2")

try:
    do_something(client)
except (
    client.exceptions.ClientError,
) as e:
    print(e)
# Exceptions.exceptions type checking example

from mypy_boto3_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 boto3.client("ec2").accept_address_transfer method. boto3 documentation

# accept_address_transfer method definition

def accept_address_transfer(
    self,
    *,
    Address: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> AcceptAddressTransferResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See AcceptAddressTransferResultTypeDef
# accept_address_transfer method usage example with argument unpacking

kwargs: AcceptAddressTransferRequestRequestTypeDef = {  # (1)
    "Address": ...,
}

parent.accept_address_transfer(**kwargs)
  1. See AcceptAddressTransferRequestRequestTypeDef

accept_reserved_instances_exchange_quote#

Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

Type annotations and code completion for boto3.client("ec2").accept_reserved_instances_exchange_quote method. boto3 documentation

# accept_reserved_instances_exchange_quote method definition

def accept_reserved_instances_exchange_quote(
    self,
    *,
    ReservedInstanceIds: Sequence[str],
    DryRun: bool = ...,
    TargetConfigurations: Sequence[TargetConfigurationRequestTypeDef] = ...,  # (1)
) -> AcceptReservedInstancesExchangeQuoteResultTypeDef:  # (2)
    ...
  1. See TargetConfigurationRequestTypeDef
  2. See AcceptReservedInstancesExchangeQuoteResultTypeDef
# accept_reserved_instances_exchange_quote method usage example with argument unpacking

kwargs: AcceptReservedInstancesExchangeQuoteRequestRequestTypeDef = {  # (1)
    "ReservedInstanceIds": ...,
}

parent.accept_reserved_instances_exchange_quote(**kwargs)
  1. See AcceptReservedInstancesExchangeQuoteRequestRequestTypeDef

accept_transit_gateway_multicast_domain_associations#

Accepts a request to associate subnets with a transit gateway multicast domain.

Type annotations and code completion for boto3.client("ec2").accept_transit_gateway_multicast_domain_associations method. boto3 documentation

# accept_transit_gateway_multicast_domain_associations method definition

def accept_transit_gateway_multicast_domain_associations(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    TransitGatewayAttachmentId: str = ...,
    SubnetIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> AcceptTransitGatewayMulticastDomainAssociationsResultTypeDef:  # (1)
    ...
  1. See AcceptTransitGatewayMulticastDomainAssociationsResultTypeDef
# accept_transit_gateway_multicast_domain_associations method usage example with argument unpacking

kwargs: AcceptTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.accept_transit_gateway_multicast_domain_associations(**kwargs)
  1. See AcceptTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef

accept_transit_gateway_peering_attachment#

Accepts a transit gateway peering attachment request.

Type annotations and code completion for boto3.client("ec2").accept_transit_gateway_peering_attachment method. boto3 documentation

# accept_transit_gateway_peering_attachment method definition

def accept_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AcceptTransitGatewayPeeringAttachmentResultTypeDef:  # (1)
    ...
  1. See AcceptTransitGatewayPeeringAttachmentResultTypeDef
# accept_transit_gateway_peering_attachment method usage example with argument unpacking

kwargs: AcceptTransitGatewayPeeringAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.accept_transit_gateway_peering_attachment(**kwargs)
  1. See AcceptTransitGatewayPeeringAttachmentRequestRequestTypeDef

accept_transit_gateway_vpc_attachment#

Accepts a request to attach a VPC to a transit gateway.

Type annotations and code completion for boto3.client("ec2").accept_transit_gateway_vpc_attachment method. boto3 documentation

# accept_transit_gateway_vpc_attachment method definition

def accept_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AcceptTransitGatewayVpcAttachmentResultTypeDef:  # (1)
    ...
  1. See AcceptTransitGatewayVpcAttachmentResultTypeDef
# accept_transit_gateway_vpc_attachment method usage example with argument unpacking

kwargs: AcceptTransitGatewayVpcAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.accept_transit_gateway_vpc_attachment(**kwargs)
  1. See AcceptTransitGatewayVpcAttachmentRequestRequestTypeDef

accept_vpc_endpoint_connections#

Accepts connection requests to your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").accept_vpc_endpoint_connections method. boto3 documentation

# accept_vpc_endpoint_connections method definition

def accept_vpc_endpoint_connections(
    self,
    *,
    ServiceId: str,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> AcceptVpcEndpointConnectionsResultTypeDef:  # (1)
    ...
  1. See AcceptVpcEndpointConnectionsResultTypeDef
# accept_vpc_endpoint_connections method usage example with argument unpacking

kwargs: AcceptVpcEndpointConnectionsRequestRequestTypeDef = {  # (1)
    "ServiceId": ...,
    "VpcEndpointIds": ...,
}

parent.accept_vpc_endpoint_connections(**kwargs)
  1. See AcceptVpcEndpointConnectionsRequestRequestTypeDef

accept_vpc_peering_connection#

Accept a VPC peering connection request.

Type annotations and code completion for boto3.client("ec2").accept_vpc_peering_connection method. boto3 documentation

# accept_vpc_peering_connection method definition

def accept_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> AcceptVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See AcceptVpcPeeringConnectionResultTypeDef
# accept_vpc_peering_connection method usage example with argument unpacking

kwargs: AcceptVpcPeeringConnectionRequestRequestTypeDef = {  # (1)
    "VpcPeeringConnectionId": ...,
}

parent.accept_vpc_peering_connection(**kwargs)
  1. See AcceptVpcPeeringConnectionRequestRequestTypeDef

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 boto3.client("ec2").advertise_byoip_cidr method. boto3 documentation

# advertise_byoip_cidr method definition

def advertise_byoip_cidr(
    self,
    *,
    Cidr: str,
    Asn: str = ...,
    DryRun: bool = ...,
    NetworkBorderGroup: str = ...,
) -> AdvertiseByoipCidrResultTypeDef:  # (1)
    ...
  1. See AdvertiseByoipCidrResultTypeDef
# advertise_byoip_cidr method usage example with argument unpacking

kwargs: AdvertiseByoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.advertise_byoip_cidr(**kwargs)
  1. See AdvertiseByoipCidrRequestRequestTypeDef

allocate_address#

Allocates an Elastic IP address to your Amazon Web Services account.

Type annotations and code completion for boto3.client("ec2").allocate_address method. boto3 documentation

# allocate_address method definition

def allocate_address(
    self,
    *,
    Domain: DomainTypeType = ...,  # (1)
    Address: str = ...,
    PublicIpv4Pool: str = ...,
    NetworkBorderGroup: str = ...,
    CustomerOwnedIpv4Pool: str = ...,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> AllocateAddressResultTypeDef:  # (3)
    ...
  1. See DomainTypeType
  2. See TagSpecificationTypeDef
  3. See AllocateAddressResultTypeDef
# allocate_address method usage example with argument unpacking

kwargs: AllocateAddressRequestRequestTypeDef = {  # (1)
    "Domain": ...,
}

parent.allocate_address(**kwargs)
  1. See AllocateAddressRequestRequestTypeDef

allocate_hosts#

Allocates a Dedicated Host to your account.

Type annotations and code completion for boto3.client("ec2").allocate_hosts method. boto3 documentation

# allocate_hosts method definition

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)
    ...
  1. See AutoPlacementType
  2. See TagSpecificationTypeDef
  3. See HostRecoveryType
  4. See HostMaintenanceType
  5. See AllocateHostsResultTypeDef
# allocate_hosts method usage example with argument unpacking

kwargs: AllocateHostsRequestRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
}

parent.allocate_hosts(**kwargs)
  1. See AllocateHostsRequestRequestTypeDef

allocate_ipam_pool_cidr#

Allocate a CIDR from an IPAM pool.

Type annotations and code completion for boto3.client("ec2").allocate_ipam_pool_cidr method. boto3 documentation

# allocate_ipam_pool_cidr method definition

def allocate_ipam_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cidr: str = ...,
    NetmaskLength: int = ...,
    ClientToken: str = ...,
    Description: str = ...,
    PreviewNextCidr: bool = ...,
    AllowedCidrs: Sequence[str] = ...,
    DisallowedCidrs: Sequence[str] = ...,
) -> AllocateIpamPoolCidrResultTypeDef:  # (1)
    ...
  1. See AllocateIpamPoolCidrResultTypeDef
# allocate_ipam_pool_cidr method usage example with argument unpacking

kwargs: AllocateIpamPoolCidrRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.allocate_ipam_pool_cidr(**kwargs)
  1. See AllocateIpamPoolCidrRequestRequestTypeDef

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 boto3.client("ec2").apply_security_groups_to_client_vpn_target_network method. boto3 documentation

# apply_security_groups_to_client_vpn_target_network method definition

def apply_security_groups_to_client_vpn_target_network(
    self,
    *,
    ClientVpnEndpointId: str,
    VpcId: str,
    SecurityGroupIds: Sequence[str],
    DryRun: bool = ...,
) -> ApplySecurityGroupsToClientVpnTargetNetworkResultTypeDef:  # (1)
    ...
  1. See ApplySecurityGroupsToClientVpnTargetNetworkResultTypeDef
# 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)
  1. See ApplySecurityGroupsToClientVpnTargetNetworkRequestRequestTypeDef

assign_ipv6_addresses#

Assigns one or more IPv6 addresses to the specified network interface.

Type annotations and code completion for boto3.client("ec2").assign_ipv6_addresses method. boto3 documentation

# assign_ipv6_addresses method definition

def assign_ipv6_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    Ipv6AddressCount: int = ...,
    Ipv6Addresses: Sequence[str] = ...,
    Ipv6PrefixCount: int = ...,
    Ipv6Prefixes: Sequence[str] = ...,
) -> AssignIpv6AddressesResultTypeDef:  # (1)
    ...
  1. See AssignIpv6AddressesResultTypeDef
# assign_ipv6_addresses method usage example with argument unpacking

kwargs: AssignIpv6AddressesRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.assign_ipv6_addresses(**kwargs)
  1. See AssignIpv6AddressesRequestRequestTypeDef

assign_private_ip_addresses#

Assigns one or more secondary private IP addresses to the specified network interface.

Type annotations and code completion for boto3.client("ec2").assign_private_ip_addresses method. boto3 documentation

# assign_private_ip_addresses method definition

def assign_private_ip_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    AllowReassignment: bool = ...,
    PrivateIpAddresses: Sequence[str] = ...,
    SecondaryPrivateIpAddressCount: int = ...,
    Ipv4Prefixes: Sequence[str] = ...,
    Ipv4PrefixCount: int = ...,
) -> AssignPrivateIpAddressesResultTypeDef:  # (1)
    ...
  1. See AssignPrivateIpAddressesResultTypeDef
# assign_private_ip_addresses method usage example with argument unpacking

kwargs: AssignPrivateIpAddressesRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.assign_private_ip_addresses(**kwargs)
  1. See AssignPrivateIpAddressesRequestRequestTypeDef

assign_private_nat_gateway_address#

Assigns one or more private IPv4 addresses to a private NAT gateway.

Type annotations and code completion for boto3.client("ec2").assign_private_nat_gateway_address method. boto3 documentation

# assign_private_nat_gateway_address method definition

def assign_private_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    PrivateIpAddresses: Sequence[str] = ...,
    PrivateIpAddressCount: int = ...,
    DryRun: bool = ...,
) -> AssignPrivateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See AssignPrivateNatGatewayAddressResultTypeDef
# assign_private_nat_gateway_address method usage example with argument unpacking

kwargs: AssignPrivateNatGatewayAddressRequestRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
}

parent.assign_private_nat_gateway_address(**kwargs)
  1. See AssignPrivateNatGatewayAddressRequestRequestTypeDef

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 boto3.client("ec2").associate_address method. boto3 documentation

# associate_address method definition

def associate_address(
    self,
    *,
    AllocationId: str = ...,
    InstanceId: str = ...,
    PublicIp: str = ...,
    AllowReassociation: bool = ...,
    DryRun: bool = ...,
    NetworkInterfaceId: str = ...,
    PrivateIpAddress: str = ...,
) -> AssociateAddressResultTypeDef:  # (1)
    ...
  1. See AssociateAddressResultTypeDef
# associate_address method usage example with argument unpacking

kwargs: AssociateAddressRequestRequestTypeDef = {  # (1)
    "AllocationId": ...,
}

parent.associate_address(**kwargs)
  1. See AssociateAddressRequestRequestTypeDef

associate_client_vpn_target_network#

Associates a target network with a Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").associate_client_vpn_target_network method. boto3 documentation

# associate_client_vpn_target_network method definition

def associate_client_vpn_target_network(
    self,
    *,
    ClientVpnEndpointId: str,
    SubnetId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> AssociateClientVpnTargetNetworkResultTypeDef:  # (1)
    ...
  1. See AssociateClientVpnTargetNetworkResultTypeDef
# associate_client_vpn_target_network method usage example with argument unpacking

kwargs: AssociateClientVpnTargetNetworkRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "SubnetId": ...,
}

parent.associate_client_vpn_target_network(**kwargs)
  1. See AssociateClientVpnTargetNetworkRequestRequestTypeDef

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 boto3.client("ec2").associate_dhcp_options method. boto3 documentation

# associate_dhcp_options method definition

def associate_dhcp_options(
    self,
    *,
    DhcpOptionsId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# associate_dhcp_options method usage example with argument unpacking

kwargs: AssociateDhcpOptionsRequestRequestTypeDef = {  # (1)
    "DhcpOptionsId": ...,
    "VpcId": ...,
}

parent.associate_dhcp_options(**kwargs)
  1. See AssociateDhcpOptionsRequestRequestTypeDef

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 boto3.client("ec2").associate_enclave_certificate_iam_role method. boto3 documentation

# associate_enclave_certificate_iam_role method definition

def associate_enclave_certificate_iam_role(
    self,
    *,
    CertificateArn: str,
    RoleArn: str,
    DryRun: bool = ...,
) -> AssociateEnclaveCertificateIamRoleResultTypeDef:  # (1)
    ...
  1. See AssociateEnclaveCertificateIamRoleResultTypeDef
# associate_enclave_certificate_iam_role method usage example with argument unpacking

kwargs: AssociateEnclaveCertificateIamRoleRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "RoleArn": ...,
}

parent.associate_enclave_certificate_iam_role(**kwargs)
  1. See AssociateEnclaveCertificateIamRoleRequestRequestTypeDef

associate_iam_instance_profile#

Associates an IAM instance profile with a running or stopped instance.

Type annotations and code completion for boto3.client("ec2").associate_iam_instance_profile method. boto3 documentation

# associate_iam_instance_profile method definition

def associate_iam_instance_profile(
    self,
    *,
    IamInstanceProfile: IamInstanceProfileSpecificationTypeDef,  # (1)
    InstanceId: str,
) -> AssociateIamInstanceProfileResultTypeDef:  # (2)
    ...
  1. See IamInstanceProfileSpecificationTypeDef
  2. See AssociateIamInstanceProfileResultTypeDef
# associate_iam_instance_profile method usage example with argument unpacking

kwargs: AssociateIamInstanceProfileRequestRequestTypeDef = {  # (1)
    "IamInstanceProfile": ...,
    "InstanceId": ...,
}

parent.associate_iam_instance_profile(**kwargs)
  1. See AssociateIamInstanceProfileRequestRequestTypeDef

associate_instance_event_window#

Associates one or more targets with an event window.

Type annotations and code completion for boto3.client("ec2").associate_instance_event_window method. boto3 documentation

# associate_instance_event_window method definition

def associate_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    AssociationTarget: InstanceEventWindowAssociationRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> AssociateInstanceEventWindowResultTypeDef:  # (2)
    ...
  1. See InstanceEventWindowAssociationRequestTypeDef
  2. See AssociateInstanceEventWindowResultTypeDef
# associate_instance_event_window method usage example with argument unpacking

kwargs: AssociateInstanceEventWindowRequestRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
    "AssociationTarget": ...,
}

parent.associate_instance_event_window(**kwargs)
  1. See AssociateInstanceEventWindowRequestRequestTypeDef

associate_ipam_byoasn#

Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").associate_ipam_byoasn method. boto3 documentation

# associate_ipam_byoasn method definition

def associate_ipam_byoasn(
    self,
    *,
    Asn: str,
    Cidr: str,
    DryRun: bool = ...,
) -> AssociateIpamByoasnResultTypeDef:  # (1)
    ...
  1. See AssociateIpamByoasnResultTypeDef
# associate_ipam_byoasn method usage example with argument unpacking

kwargs: AssociateIpamByoasnRequestRequestTypeDef = {  # (1)
    "Asn": ...,
    "Cidr": ...,
}

parent.associate_ipam_byoasn(**kwargs)
  1. See AssociateIpamByoasnRequestRequestTypeDef

associate_ipam_resource_discovery#

Associates an IPAM resource discovery with an Amazon VPC IPAM.

Type annotations and code completion for boto3.client("ec2").associate_ipam_resource_discovery method. boto3 documentation

# associate_ipam_resource_discovery method definition

def associate_ipam_resource_discovery(
    self,
    *,
    IpamId: str,
    IpamResourceDiscoveryId: str,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
) -> AssociateIpamResourceDiscoveryResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See AssociateIpamResourceDiscoveryResultTypeDef
# associate_ipam_resource_discovery method usage example with argument unpacking

kwargs: AssociateIpamResourceDiscoveryRequestRequestTypeDef = {  # (1)
    "IpamId": ...,
    "IpamResourceDiscoveryId": ...,
}

parent.associate_ipam_resource_discovery(**kwargs)
  1. See AssociateIpamResourceDiscoveryRequestRequestTypeDef

associate_nat_gateway_address#

Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway.

Type annotations and code completion for boto3.client("ec2").associate_nat_gateway_address method. boto3 documentation

# associate_nat_gateway_address method definition

def associate_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    AllocationIds: Sequence[str],
    PrivateIpAddresses: Sequence[str] = ...,
    DryRun: bool = ...,
) -> AssociateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See AssociateNatGatewayAddressResultTypeDef
# associate_nat_gateway_address method usage example with argument unpacking

kwargs: AssociateNatGatewayAddressRequestRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
    "AllocationIds": ...,
}

parent.associate_nat_gateway_address(**kwargs)
  1. See AssociateNatGatewayAddressRequestRequestTypeDef

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 boto3.client("ec2").associate_route_table method. boto3 documentation

# associate_route_table method definition

def associate_route_table(
    self,
    *,
    RouteTableId: str,
    DryRun: bool = ...,
    SubnetId: str = ...,
    GatewayId: str = ...,
) -> AssociateRouteTableResultTypeDef:  # (1)
    ...
  1. See AssociateRouteTableResultTypeDef
# associate_route_table method usage example with argument unpacking

kwargs: AssociateRouteTableRequestRequestTypeDef = {  # (1)
    "RouteTableId": ...,
}

parent.associate_route_table(**kwargs)
  1. See AssociateRouteTableRequestRequestTypeDef

associate_subnet_cidr_block#

Associates a CIDR block with your subnet.

Type annotations and code completion for boto3.client("ec2").associate_subnet_cidr_block method. boto3 documentation

# associate_subnet_cidr_block method definition

def associate_subnet_cidr_block(
    self,
    *,
    SubnetId: str,
    Ipv6CidrBlock: str = ...,
    Ipv6IpamPoolId: str = ...,
    Ipv6NetmaskLength: int = ...,
) -> AssociateSubnetCidrBlockResultTypeDef:  # (1)
    ...
  1. See AssociateSubnetCidrBlockResultTypeDef
# associate_subnet_cidr_block method usage example with argument unpacking

kwargs: AssociateSubnetCidrBlockRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.associate_subnet_cidr_block(**kwargs)
  1. See AssociateSubnetCidrBlockRequestRequestTypeDef

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 boto3.client("ec2").associate_transit_gateway_multicast_domain method. boto3 documentation

# associate_transit_gateway_multicast_domain method definition

def associate_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    TransitGatewayAttachmentId: str,
    SubnetIds: Sequence[str],
    DryRun: bool = ...,
) -> AssociateTransitGatewayMulticastDomainResultTypeDef:  # (1)
    ...
  1. See AssociateTransitGatewayMulticastDomainResultTypeDef
# associate_transit_gateway_multicast_domain method usage example with argument unpacking

kwargs: AssociateTransitGatewayMulticastDomainRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
    "TransitGatewayAttachmentId": ...,
    "SubnetIds": ...,
}

parent.associate_transit_gateway_multicast_domain(**kwargs)
  1. See AssociateTransitGatewayMulticastDomainRequestRequestTypeDef

associate_transit_gateway_policy_table#

Associates the specified transit gateway attachment with a transit gateway policy table.

Type annotations and code completion for boto3.client("ec2").associate_transit_gateway_policy_table method. boto3 documentation

# associate_transit_gateway_policy_table method definition

def associate_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AssociateTransitGatewayPolicyTableResultTypeDef:  # (1)
    ...
  1. See AssociateTransitGatewayPolicyTableResultTypeDef
# associate_transit_gateway_policy_table method usage example with argument unpacking

kwargs: AssociateTransitGatewayPolicyTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

parent.associate_transit_gateway_policy_table(**kwargs)
  1. See AssociateTransitGatewayPolicyTableRequestRequestTypeDef

associate_transit_gateway_route_table#

Associates the specified attachment with the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").associate_transit_gateway_route_table method. boto3 documentation

# associate_transit_gateway_route_table method definition

def associate_transit_gateway_route_table(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AssociateTransitGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See AssociateTransitGatewayRouteTableResultTypeDef
# associate_transit_gateway_route_table method usage example with argument unpacking

kwargs: AssociateTransitGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

parent.associate_transit_gateway_route_table(**kwargs)
  1. See AssociateTransitGatewayRouteTableRequestRequestTypeDef

associate_trunk_interface#

Associates a branch network interface with a trunk network interface.

Type annotations and code completion for boto3.client("ec2").associate_trunk_interface method. boto3 documentation

# associate_trunk_interface method definition

def associate_trunk_interface(
    self,
    *,
    BranchInterfaceId: str,
    TrunkInterfaceId: str,
    VlanId: int = ...,
    GreKey: int = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> AssociateTrunkInterfaceResultTypeDef:  # (1)
    ...
  1. See AssociateTrunkInterfaceResultTypeDef
# associate_trunk_interface method usage example with argument unpacking

kwargs: AssociateTrunkInterfaceRequestRequestTypeDef = {  # (1)
    "BranchInterfaceId": ...,
    "TrunkInterfaceId": ...,
}

parent.associate_trunk_interface(**kwargs)
  1. See AssociateTrunkInterfaceRequestRequestTypeDef

associate_vpc_cidr_block#

Associates a CIDR block with your VPC.

Type annotations and code completion for boto3.client("ec2").associate_vpc_cidr_block method. boto3 documentation

# associate_vpc_cidr_block method definition

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)
    ...
  1. See AssociateVpcCidrBlockResultTypeDef
# associate_vpc_cidr_block method usage example with argument unpacking

kwargs: AssociateVpcCidrBlockRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.associate_vpc_cidr_block(**kwargs)
  1. See AssociateVpcCidrBlockRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").attach_classic_link_vpc method. boto3 documentation

# attach_classic_link_vpc method definition

def attach_classic_link_vpc(
    self,
    *,
    Groups: Sequence[str],
    InstanceId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> AttachClassicLinkVpcResultTypeDef:  # (1)
    ...
  1. See AttachClassicLinkVpcResultTypeDef
# attach_classic_link_vpc method usage example with argument unpacking

kwargs: AttachClassicLinkVpcRequestRequestTypeDef = {  # (1)
    "Groups": ...,
    "InstanceId": ...,
    "VpcId": ...,
}

parent.attach_classic_link_vpc(**kwargs)
  1. See AttachClassicLinkVpcRequestRequestTypeDef

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 boto3.client("ec2").attach_internet_gateway method. boto3 documentation

# attach_internet_gateway method definition

def attach_internet_gateway(
    self,
    *,
    InternetGatewayId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# attach_internet_gateway method usage example with argument unpacking

kwargs: AttachInternetGatewayRequestRequestTypeDef = {  # (1)
    "InternetGatewayId": ...,
    "VpcId": ...,
}

parent.attach_internet_gateway(**kwargs)
  1. See AttachInternetGatewayRequestRequestTypeDef

attach_network_interface#

Attaches a network interface to an instance.

Type annotations and code completion for boto3.client("ec2").attach_network_interface method. boto3 documentation

# attach_network_interface method definition

def attach_network_interface(
    self,
    *,
    DeviceIndex: int,
    InstanceId: str,
    NetworkInterfaceId: str,
    DryRun: bool = ...,
    NetworkCardIndex: int = ...,
    EnaSrdSpecification: EnaSrdSpecificationTypeDef = ...,  # (1)
) -> AttachNetworkInterfaceResultTypeDef:  # (2)
    ...
  1. See EnaSrdSpecificationTypeDef
  2. See AttachNetworkInterfaceResultTypeDef
# attach_network_interface method usage example with argument unpacking

kwargs: AttachNetworkInterfaceRequestRequestTypeDef = {  # (1)
    "DeviceIndex": ...,
    "InstanceId": ...,
    "NetworkInterfaceId": ...,
}

parent.attach_network_interface(**kwargs)
  1. See AttachNetworkInterfaceRequestRequestTypeDef

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 boto3.client("ec2").attach_verified_access_trust_provider method. boto3 documentation

# attach_verified_access_trust_provider method definition

def attach_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessInstanceId: str,
    VerifiedAccessTrustProviderId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> AttachVerifiedAccessTrustProviderResultTypeDef:  # (1)
    ...
  1. See AttachVerifiedAccessTrustProviderResultTypeDef
# attach_verified_access_trust_provider method usage example with argument unpacking

kwargs: AttachVerifiedAccessTrustProviderRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
    "VerifiedAccessTrustProviderId": ...,
}

parent.attach_verified_access_trust_provider(**kwargs)
  1. See AttachVerifiedAccessTrustProviderRequestRequestTypeDef

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 boto3.client("ec2").attach_volume method. boto3 documentation

# attach_volume method definition

def attach_volume(
    self,
    *,
    Device: str,
    InstanceId: str,
    VolumeId: str,
    DryRun: bool = ...,
) -> VolumeAttachmentResponseTypeDef:  # (1)
    ...
  1. See VolumeAttachmentResponseTypeDef
# attach_volume method usage example with argument unpacking

kwargs: AttachVolumeRequestRequestTypeDef = {  # (1)
    "Device": ...,
    "InstanceId": ...,
    "VolumeId": ...,
}

parent.attach_volume(**kwargs)
  1. See AttachVolumeRequestRequestTypeDef

attach_vpn_gateway#

Attaches a virtual private gateway to a VPC.

Type annotations and code completion for boto3.client("ec2").attach_vpn_gateway method. boto3 documentation

# attach_vpn_gateway method definition

def attach_vpn_gateway(
    self,
    *,
    VpcId: str,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> AttachVpnGatewayResultTypeDef:  # (1)
    ...
  1. See AttachVpnGatewayResultTypeDef
# attach_vpn_gateway method usage example with argument unpacking

kwargs: AttachVpnGatewayRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
    "VpnGatewayId": ...,
}

parent.attach_vpn_gateway(**kwargs)
  1. See AttachVpnGatewayRequestRequestTypeDef

authorize_client_vpn_ingress#

Adds an ingress authorization rule to a Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").authorize_client_vpn_ingress method. boto3 documentation

# authorize_client_vpn_ingress method definition

def authorize_client_vpn_ingress(
    self,
    *,
    ClientVpnEndpointId: str,
    TargetNetworkCidr: str,
    AccessGroupId: str = ...,
    AuthorizeAllGroups: bool = ...,
    Description: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> AuthorizeClientVpnIngressResultTypeDef:  # (1)
    ...
  1. See AuthorizeClientVpnIngressResultTypeDef
# authorize_client_vpn_ingress method usage example with argument unpacking

kwargs: AuthorizeClientVpnIngressRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "TargetNetworkCidr": ...,
}

parent.authorize_client_vpn_ingress(**kwargs)
  1. See AuthorizeClientVpnIngressRequestRequestTypeDef

authorize_security_group_egress#

Adds the specified outbound (egress) rules to a security group.

Type annotations and code completion for boto3.client("ec2").authorize_security_group_egress method. boto3 documentation

# authorize_security_group_egress method definition

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)
    ...
  1. See IpPermissionTypeDef
  2. See TagSpecificationTypeDef
  3. See AuthorizeSecurityGroupEgressResultTypeDef
# authorize_security_group_egress method usage example with argument unpacking

kwargs: AuthorizeSecurityGroupEgressRequestRequestTypeDef = {  # (1)
    "GroupId": ...,
}

parent.authorize_security_group_egress(**kwargs)
  1. See AuthorizeSecurityGroupEgressRequestRequestTypeDef

authorize_security_group_ingress#

Adds the specified inbound (ingress) rules to a security group.

Type annotations and code completion for boto3.client("ec2").authorize_security_group_ingress method. boto3 documentation

# authorize_security_group_ingress method definition

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)
    ...
  1. See IpPermissionTypeDef
  2. See TagSpecificationTypeDef
  3. See AuthorizeSecurityGroupIngressResultTypeDef
# authorize_security_group_ingress method usage example with argument unpacking

kwargs: AuthorizeSecurityGroupIngressRequestRequestTypeDef = {  # (1)
    "CidrIp": ...,
}

parent.authorize_security_group_ingress(**kwargs)
  1. See AuthorizeSecurityGroupIngressRequestRequestTypeDef

bundle_instance#

Bundles an Amazon instance store-backed Windows instance.

Type annotations and code completion for boto3.client("ec2").bundle_instance method. boto3 documentation

# bundle_instance method definition

def bundle_instance(
    self,
    *,
    InstanceId: str,
    Storage: StorageTypeDef,  # (1)
    DryRun: bool = ...,
) -> BundleInstanceResultTypeDef:  # (2)
    ...
  1. See StorageTypeDef
  2. See BundleInstanceResultTypeDef
# bundle_instance method usage example with argument unpacking

kwargs: BundleInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "Storage": ...,
}

parent.bundle_instance(**kwargs)
  1. See BundleInstanceRequestRequestTypeDef

can_paginate#

Check if an operation can be paginated.

Type annotations and code completion for boto3.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 boto3.client("ec2").cancel_bundle_task method. boto3 documentation

# cancel_bundle_task method definition

def cancel_bundle_task(
    self,
    *,
    BundleId: str,
    DryRun: bool = ...,
) -> CancelBundleTaskResultTypeDef:  # (1)
    ...
  1. See CancelBundleTaskResultTypeDef
# cancel_bundle_task method usage example with argument unpacking

kwargs: CancelBundleTaskRequestRequestTypeDef = {  # (1)
    "BundleId": ...,
}

parent.cancel_bundle_task(**kwargs)
  1. See CancelBundleTaskRequestRequestTypeDef

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 boto3.client("ec2").cancel_capacity_reservation method. boto3 documentation

# cancel_capacity_reservation method definition

def cancel_capacity_reservation(
    self,
    *,
    CapacityReservationId: str,
    DryRun: bool = ...,
) -> CancelCapacityReservationResultTypeDef:  # (1)
    ...
  1. See CancelCapacityReservationResultTypeDef
# cancel_capacity_reservation method usage example with argument unpacking

kwargs: CancelCapacityReservationRequestRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.cancel_capacity_reservation(**kwargs)
  1. See CancelCapacityReservationRequestRequestTypeDef

cancel_capacity_reservation_fleets#

Cancels one or more Capacity Reservation Fleets.

Type annotations and code completion for boto3.client("ec2").cancel_capacity_reservation_fleets method. boto3 documentation

# cancel_capacity_reservation_fleets method definition

def cancel_capacity_reservation_fleets(
    self,
    *,
    CapacityReservationFleetIds: Sequence[str],
    DryRun: bool = ...,
) -> CancelCapacityReservationFleetsResultTypeDef:  # (1)
    ...
  1. See CancelCapacityReservationFleetsResultTypeDef
# cancel_capacity_reservation_fleets method usage example with argument unpacking

kwargs: CancelCapacityReservationFleetsRequestRequestTypeDef = {  # (1)
    "CapacityReservationFleetIds": ...,
}

parent.cancel_capacity_reservation_fleets(**kwargs)
  1. See CancelCapacityReservationFleetsRequestRequestTypeDef

cancel_conversion_task#

Cancels an active conversion task.

Type annotations and code completion for boto3.client("ec2").cancel_conversion_task method. boto3 documentation

# cancel_conversion_task method definition

def cancel_conversion_task(
    self,
    *,
    ConversionTaskId: str,
    DryRun: bool = ...,
    ReasonMessage: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# cancel_conversion_task method usage example with argument unpacking

kwargs: CancelConversionRequestRequestTypeDef = {  # (1)
    "ConversionTaskId": ...,
}

parent.cancel_conversion_task(**kwargs)
  1. See CancelConversionRequestRequestTypeDef

cancel_export_task#

Cancels an active export task.

Type annotations and code completion for boto3.client("ec2").cancel_export_task method. boto3 documentation

# cancel_export_task method definition

def cancel_export_task(
    self,
    *,
    ExportTaskId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# cancel_export_task method usage example with argument unpacking

kwargs: CancelExportTaskRequestRequestTypeDef = {  # (1)
    "ExportTaskId": ...,
}

parent.cancel_export_task(**kwargs)
  1. See CancelExportTaskRequestRequestTypeDef

cancel_image_launch_permission#

Removes your Amazon Web Services account from the launch permissions for the specified AMI.

Type annotations and code completion for boto3.client("ec2").cancel_image_launch_permission method. boto3 documentation

# cancel_image_launch_permission method definition

def cancel_image_launch_permission(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> CancelImageLaunchPermissionResultTypeDef:  # (1)
    ...
  1. See CancelImageLaunchPermissionResultTypeDef
# cancel_image_launch_permission method usage example with argument unpacking

kwargs: CancelImageLaunchPermissionRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.cancel_image_launch_permission(**kwargs)
  1. See CancelImageLaunchPermissionRequestRequestTypeDef

cancel_import_task#

Cancels an in-process import virtual machine or import snapshot task.

Type annotations and code completion for boto3.client("ec2").cancel_import_task method. boto3 documentation

# cancel_import_task method definition

def cancel_import_task(
    self,
    *,
    CancelReason: str = ...,
    DryRun: bool = ...,
    ImportTaskId: str = ...,
) -> CancelImportTaskResultTypeDef:  # (1)
    ...
  1. See CancelImportTaskResultTypeDef
# cancel_import_task method usage example with argument unpacking

kwargs: CancelImportTaskRequestRequestTypeDef = {  # (1)
    "CancelReason": ...,
}

parent.cancel_import_task(**kwargs)
  1. See CancelImportTaskRequestRequestTypeDef

cancel_reserved_instances_listing#

Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

Type annotations and code completion for boto3.client("ec2").cancel_reserved_instances_listing method. boto3 documentation

# cancel_reserved_instances_listing method definition

def cancel_reserved_instances_listing(
    self,
    *,
    ReservedInstancesListingId: str,
) -> CancelReservedInstancesListingResultTypeDef:  # (1)
    ...
  1. See CancelReservedInstancesListingResultTypeDef
# cancel_reserved_instances_listing method usage example with argument unpacking

kwargs: CancelReservedInstancesListingRequestRequestTypeDef = {  # (1)
    "ReservedInstancesListingId": ...,
}

parent.cancel_reserved_instances_listing(**kwargs)
  1. See CancelReservedInstancesListingRequestRequestTypeDef

cancel_spot_fleet_requests#

Cancels the specified Spot Fleet requests.

Type annotations and code completion for boto3.client("ec2").cancel_spot_fleet_requests method. boto3 documentation

# cancel_spot_fleet_requests method definition

def cancel_spot_fleet_requests(
    self,
    *,
    SpotFleetRequestIds: Sequence[str],
    TerminateInstances: bool,
    DryRun: bool = ...,
) -> CancelSpotFleetRequestsResponseTypeDef:  # (1)
    ...
  1. See CancelSpotFleetRequestsResponseTypeDef
# cancel_spot_fleet_requests method usage example with argument unpacking

kwargs: CancelSpotFleetRequestsRequestRequestTypeDef = {  # (1)
    "SpotFleetRequestIds": ...,
    "TerminateInstances": ...,
}

parent.cancel_spot_fleet_requests(**kwargs)
  1. See CancelSpotFleetRequestsRequestRequestTypeDef

cancel_spot_instance_requests#

Cancels one or more Spot Instance requests.

Type annotations and code completion for boto3.client("ec2").cancel_spot_instance_requests method. boto3 documentation

# cancel_spot_instance_requests method definition

def cancel_spot_instance_requests(
    self,
    *,
    SpotInstanceRequestIds: Sequence[str],
    DryRun: bool = ...,
) -> CancelSpotInstanceRequestsResultTypeDef:  # (1)
    ...
  1. See CancelSpotInstanceRequestsResultTypeDef
# cancel_spot_instance_requests method usage example with argument unpacking

kwargs: CancelSpotInstanceRequestsRequestRequestTypeDef = {  # (1)
    "SpotInstanceRequestIds": ...,
}

parent.cancel_spot_instance_requests(**kwargs)
  1. See CancelSpotInstanceRequestsRequestRequestTypeDef

close#

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("ec2").close method. boto3 documentation

# close method definition

def close(
    self,
) -> None:
    ...

confirm_product_instance#

Determines whether a product code is associated with an instance.

Type annotations and code completion for boto3.client("ec2").confirm_product_instance method. boto3 documentation

# confirm_product_instance method definition

def confirm_product_instance(
    self,
    *,
    InstanceId: str,
    ProductCode: str,
    DryRun: bool = ...,
) -> ConfirmProductInstanceResultTypeDef:  # (1)
    ...
  1. See ConfirmProductInstanceResultTypeDef
# confirm_product_instance method usage example with argument unpacking

kwargs: ConfirmProductInstanceRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "ProductCode": ...,
}

parent.confirm_product_instance(**kwargs)
  1. See ConfirmProductInstanceRequestRequestTypeDef

copy_fpga_image#

Copies the specified Amazon FPGA Image (AFI) to the current Region.

Type annotations and code completion for boto3.client("ec2").copy_fpga_image method. boto3 documentation

# copy_fpga_image method definition

def copy_fpga_image(
    self,
    *,
    SourceFpgaImageId: str,
    SourceRegion: str,
    DryRun: bool = ...,
    Description: str = ...,
    Name: str = ...,
    ClientToken: str = ...,
) -> CopyFpgaImageResultTypeDef:  # (1)
    ...
  1. See CopyFpgaImageResultTypeDef
# copy_fpga_image method usage example with argument unpacking

kwargs: CopyFpgaImageRequestRequestTypeDef = {  # (1)
    "SourceFpgaImageId": ...,
    "SourceRegion": ...,
}

parent.copy_fpga_image(**kwargs)
  1. See CopyFpgaImageRequestRequestTypeDef

copy_image#

Initiates the copy of an AMI.

Type annotations and code completion for boto3.client("ec2").copy_image method. boto3 documentation

# copy_image method definition

def copy_image(
    self,
    *,
    Name: str,
    SourceImageId: str,
    SourceRegion: str,
    ClientToken: str = ...,
    Description: str = ...,
    Encrypted: bool = ...,
    KmsKeyId: str = ...,
    DestinationOutpostArn: str = ...,
    DryRun: bool = ...,
    CopyImageTags: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CopyImageResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CopyImageResultTypeDef
# copy_image method usage example with argument unpacking

kwargs: CopyImageRequestRequestTypeDef = {  # (1)
    "Name": ...,
    "SourceImageId": ...,
    "SourceRegion": ...,
}

parent.copy_image(**kwargs)
  1. See CopyImageRequestRequestTypeDef

copy_snapshot#

Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3.

Type annotations and code completion for boto3.client("ec2").copy_snapshot method. boto3 documentation

# copy_snapshot method definition

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)
    ...
  1. See TagSpecificationTypeDef
  2. See CopySnapshotResultTypeDef
# copy_snapshot method usage example with argument unpacking

kwargs: CopySnapshotRequestRequestTypeDef = {  # (1)
    "SourceRegion": ...,
    "SourceSnapshotId": ...,
}

parent.copy_snapshot(**kwargs)
  1. See CopySnapshotRequestRequestTypeDef

create_capacity_reservation#

Creates a new Capacity Reservation with the specified attributes.

Type annotations and code completion for boto3.client("ec2").create_capacity_reservation method. boto3 documentation

# create_capacity_reservation method definition

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)
    ...
  1. See CapacityReservationInstancePlatformType
  2. See CapacityReservationTenancyType
  3. See EndDateTypeType
  4. See InstanceMatchCriteriaType
  5. See TagSpecificationTypeDef
  6. See CreateCapacityReservationResultTypeDef
# create_capacity_reservation method usage example with argument unpacking

kwargs: CreateCapacityReservationRequestRequestTypeDef = {  # (1)
    "InstanceType": ...,
    "InstancePlatform": ...,
    "InstanceCount": ...,
}

parent.create_capacity_reservation(**kwargs)
  1. See CreateCapacityReservationRequestRequestTypeDef

create_capacity_reservation_fleet#

Creates a Capacity Reservation Fleet.

Type annotations and code completion for boto3.client("ec2").create_capacity_reservation_fleet method. boto3 documentation

# create_capacity_reservation_fleet method definition

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)
    ...
  1. See ReservationFleetInstanceSpecificationTypeDef
  2. See FleetCapacityReservationTenancyType
  3. See FleetInstanceMatchCriteriaType
  4. See TagSpecificationTypeDef
  5. See CreateCapacityReservationFleetResultTypeDef
# create_capacity_reservation_fleet method usage example with argument unpacking

kwargs: CreateCapacityReservationFleetRequestRequestTypeDef = {  # (1)
    "InstanceTypeSpecifications": ...,
    "TotalTargetCapacity": ...,
}

parent.create_capacity_reservation_fleet(**kwargs)
  1. See CreateCapacityReservationFleetRequestRequestTypeDef

create_carrier_gateway#

Creates a carrier gateway.

Type annotations and code completion for boto3.client("ec2").create_carrier_gateway method. boto3 documentation

# create_carrier_gateway method definition

def create_carrier_gateway(
    self,
    *,
    VpcId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> CreateCarrierGatewayResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateCarrierGatewayResultTypeDef
# create_carrier_gateway method usage example with argument unpacking

kwargs: CreateCarrierGatewayRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.create_carrier_gateway(**kwargs)
  1. See CreateCarrierGatewayRequestRequestTypeDef

create_client_vpn_endpoint#

Creates a Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").create_client_vpn_endpoint method. boto3 documentation

# create_client_vpn_endpoint method definition

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)
    ...
  1. See ClientVpnAuthenticationRequestTypeDef
  2. See ConnectionLogOptionsTypeDef
  3. See TransportProtocolType
  4. See TagSpecificationTypeDef
  5. See SelfServicePortalType
  6. See ClientConnectOptionsTypeDef
  7. See ClientLoginBannerOptionsTypeDef
  8. 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)
  1. See CreateClientVpnEndpointRequestRequestTypeDef

create_client_vpn_route#

Adds a route to a network to a Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").create_client_vpn_route method. boto3 documentation

# create_client_vpn_route method definition

def create_client_vpn_route(
    self,
    *,
    ClientVpnEndpointId: str,
    DestinationCidrBlock: str,
    TargetVpcSubnetId: str,
    Description: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> CreateClientVpnRouteResultTypeDef:  # (1)
    ...
  1. See CreateClientVpnRouteResultTypeDef
# create_client_vpn_route method usage example with argument unpacking

kwargs: CreateClientVpnRouteRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "DestinationCidrBlock": ...,
    "TargetVpcSubnetId": ...,
}

parent.create_client_vpn_route(**kwargs)
  1. See CreateClientVpnRouteRequestRequestTypeDef

create_coip_cidr#

Creates a range of customer-owned IP addresses.

Type annotations and code completion for boto3.client("ec2").create_coip_cidr method. boto3 documentation

# create_coip_cidr method definition

def create_coip_cidr(
    self,
    *,
    Cidr: str,
    CoipPoolId: str,
    DryRun: bool = ...,
) -> CreateCoipCidrResultTypeDef:  # (1)
    ...
  1. See CreateCoipCidrResultTypeDef
# create_coip_cidr method usage example with argument unpacking

kwargs: CreateCoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
    "CoipPoolId": ...,
}

parent.create_coip_cidr(**kwargs)
  1. See CreateCoipCidrRequestRequestTypeDef

create_coip_pool#

Creates a pool of customer-owned IP (CoIP) addresses.

Type annotations and code completion for boto3.client("ec2").create_coip_pool method. boto3 documentation

# create_coip_pool method definition

def create_coip_pool(
    self,
    *,
    LocalGatewayRouteTableId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateCoipPoolResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateCoipPoolResultTypeDef
# create_coip_pool method usage example with argument unpacking

kwargs: CreateCoipPoolRequestRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.create_coip_pool(**kwargs)
  1. See CreateCoipPoolRequestRequestTypeDef

create_customer_gateway#

Provides information to Amazon Web Services about your customer gateway device.

Type annotations and code completion for boto3.client("ec2").create_customer_gateway method. boto3 documentation

# create_customer_gateway method definition

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)
    ...
  1. See GatewayTypeType
  2. See TagSpecificationTypeDef
  3. See CreateCustomerGatewayResultTypeDef
# create_customer_gateway method usage example with argument unpacking

kwargs: CreateCustomerGatewayRequestRequestTypeDef = {  # (1)
    "Type": ...,
}

parent.create_customer_gateway(**kwargs)
  1. See CreateCustomerGatewayRequestRequestTypeDef

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 boto3.client("ec2").create_default_subnet method. boto3 documentation

# create_default_subnet method definition

def create_default_subnet(
    self,
    *,
    AvailabilityZone: str,
    DryRun: bool = ...,
    Ipv6Native: bool = ...,
) -> CreateDefaultSubnetResultTypeDef:  # (1)
    ...
  1. See CreateDefaultSubnetResultTypeDef
# create_default_subnet method usage example with argument unpacking

kwargs: CreateDefaultSubnetRequestRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
}

parent.create_default_subnet(**kwargs)
  1. See CreateDefaultSubnetRequestRequestTypeDef

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 boto3.client("ec2").create_default_vpc method. boto3 documentation

# create_default_vpc method definition

def create_default_vpc(
    self,
    *,
    DryRun: bool = ...,
) -> CreateDefaultVpcResultTypeDef:  # (1)
    ...
  1. See CreateDefaultVpcResultTypeDef
# create_default_vpc method usage example with argument unpacking

kwargs: CreateDefaultVpcRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.create_default_vpc(**kwargs)
  1. See CreateDefaultVpcRequestRequestTypeDef

create_dhcp_options#

Creates a custom set of DHCP options.

Type annotations and code completion for boto3.client("ec2").create_dhcp_options method. boto3 documentation

# create_dhcp_options method definition

def create_dhcp_options(
    self,
    *,
    DhcpConfigurations: Sequence[NewDhcpConfigurationTypeDef],  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateDhcpOptionsResultTypeDef:  # (3)
    ...
  1. See NewDhcpConfigurationTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateDhcpOptionsResultTypeDef
# create_dhcp_options method usage example with argument unpacking

kwargs: CreateDhcpOptionsRequestRequestTypeDef = {  # (1)
    "DhcpConfigurations": ...,
}

parent.create_dhcp_options(**kwargs)
  1. See CreateDhcpOptionsRequestRequestTypeDef

create_egress_only_internet_gateway#

Type annotations and code completion for boto3.client("ec2").create_egress_only_internet_gateway method. boto3 documentation

# create_egress_only_internet_gateway method definition

def create_egress_only_internet_gateway(
    self,
    *,
    VpcId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CreateEgressOnlyInternetGatewayResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateEgressOnlyInternetGatewayResultTypeDef
# create_egress_only_internet_gateway method usage example with argument unpacking

kwargs: CreateEgressOnlyInternetGatewayRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.create_egress_only_internet_gateway(**kwargs)
  1. See CreateEgressOnlyInternetGatewayRequestRequestTypeDef

create_fleet#

Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances.

Type annotations and code completion for boto3.client("ec2").create_fleet method. boto3 documentation

# create_fleet method definition

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)
    ...
  1. See FleetLaunchTemplateConfigRequestTypeDef
  2. See TargetCapacitySpecificationRequestTypeDef
  3. See SpotOptionsRequestTypeDef
  4. See OnDemandOptionsRequestTypeDef
  5. See FleetExcessCapacityTerminationPolicyType
  6. See FleetTypeType
  7. See TagSpecificationTypeDef
  8. See CreateFleetResultTypeDef
# create_fleet method usage example with argument unpacking

kwargs: CreateFleetRequestRequestTypeDef = {  # (1)
    "LaunchTemplateConfigs": ...,
    "TargetCapacitySpecification": ...,
}

parent.create_fleet(**kwargs)
  1. See CreateFleetRequestRequestTypeDef

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 boto3.client("ec2").create_flow_logs method. boto3 documentation

# create_flow_logs method definition

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)
    ...
  1. See FlowLogsResourceTypeType
  2. See TrafficTypeType
  3. See LogDestinationTypeType
  4. See TagSpecificationTypeDef
  5. See DestinationOptionsRequestTypeDef
  6. See CreateFlowLogsResultTypeDef
# create_flow_logs method usage example with argument unpacking

kwargs: CreateFlowLogsRequestRequestTypeDef = {  # (1)
    "ResourceIds": ...,
    "ResourceType": ...,
}

parent.create_flow_logs(**kwargs)
  1. See CreateFlowLogsRequestRequestTypeDef

create_fpga_image#

Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).

Type annotations and code completion for boto3.client("ec2").create_fpga_image method. boto3 documentation

# create_fpga_image method definition

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)
    ...
  1. See StorageLocationTypeDef
  2. See StorageLocationTypeDef
  3. See TagSpecificationTypeDef
  4. See CreateFpgaImageResultTypeDef
# create_fpga_image method usage example with argument unpacking

kwargs: CreateFpgaImageRequestRequestTypeDef = {  # (1)
    "InputStorageLocation": ...,
}

parent.create_fpga_image(**kwargs)
  1. See CreateFpgaImageRequestRequestTypeDef

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 boto3.client("ec2").create_image method. boto3 documentation

# create_image method definition

def create_image(
    self,
    *,
    InstanceId: str,
    Name: str,
    BlockDeviceMappings: Sequence[BlockDeviceMappingTypeDef] = ...,  # (1)
    Description: str = ...,
    DryRun: bool = ...,
    NoReboot: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> CreateImageResultTypeDef:  # (3)
    ...
  1. See BlockDeviceMappingTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateImageResultTypeDef
# create_image method usage example with argument unpacking

kwargs: CreateImageRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "Name": ...,
}

parent.create_image(**kwargs)
  1. See CreateImageRequestRequestTypeDef

create_instance_connect_endpoint#

Creates an EC2 Instance Connect Endpoint.

Type annotations and code completion for boto3.client("ec2").create_instance_connect_endpoint method. boto3 documentation

# create_instance_connect_endpoint method definition

def create_instance_connect_endpoint(
    self,
    *,
    SubnetId: str,
    DryRun: bool = ...,
    SecurityGroupIds: Sequence[str] = ...,
    PreserveClientIp: bool = ...,
    ClientToken: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CreateInstanceConnectEndpointResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateInstanceConnectEndpointResultTypeDef
# create_instance_connect_endpoint method usage example with argument unpacking

kwargs: CreateInstanceConnectEndpointRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.create_instance_connect_endpoint(**kwargs)
  1. See CreateInstanceConnectEndpointRequestRequestTypeDef

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 boto3.client("ec2").create_instance_event_window method. boto3 documentation

# create_instance_event_window method definition

def create_instance_event_window(
    self,
    *,
    DryRun: bool = ...,
    Name: str = ...,
    TimeRanges: Sequence[InstanceEventWindowTimeRangeRequestTypeDef] = ...,  # (1)
    CronExpression: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> CreateInstanceEventWindowResultTypeDef:  # (3)
    ...
  1. See InstanceEventWindowTimeRangeRequestTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateInstanceEventWindowResultTypeDef
# create_instance_event_window method usage example with argument unpacking

kwargs: CreateInstanceEventWindowRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.create_instance_event_window(**kwargs)
  1. See CreateInstanceEventWindowRequestRequestTypeDef

create_instance_export_task#

Exports a running or stopped instance to an Amazon S3 bucket.

Type annotations and code completion for boto3.client("ec2").create_instance_export_task method. boto3 documentation

# create_instance_export_task method definition

def create_instance_export_task(
    self,
    *,
    ExportToS3Task: ExportToS3TaskSpecificationTypeDef,  # (1)
    InstanceId: str,
    TargetEnvironment: ExportEnvironmentType,  # (2)
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (3)
) -> CreateInstanceExportTaskResultTypeDef:  # (4)
    ...
  1. See ExportToS3TaskSpecificationTypeDef
  2. See ExportEnvironmentType
  3. See TagSpecificationTypeDef
  4. See CreateInstanceExportTaskResultTypeDef
# create_instance_export_task method usage example with argument unpacking

kwargs: CreateInstanceExportTaskRequestRequestTypeDef = {  # (1)
    "ExportToS3Task": ...,
    "InstanceId": ...,
    "TargetEnvironment": ...,
}

parent.create_instance_export_task(**kwargs)
  1. See CreateInstanceExportTaskRequestRequestTypeDef

create_internet_gateway#

Creates an internet gateway for use with a VPC.

Type annotations and code completion for boto3.client("ec2").create_internet_gateway method. boto3 documentation

# create_internet_gateway method definition

def create_internet_gateway(
    self,
    *,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateInternetGatewayResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateInternetGatewayResultTypeDef
# create_internet_gateway method usage example with argument unpacking

kwargs: CreateInternetGatewayRequestRequestTypeDef = {  # (1)
    "TagSpecifications": ...,
}

parent.create_internet_gateway(**kwargs)
  1. See CreateInternetGatewayRequestRequestTypeDef

create_ipam#

Create an IPAM.

Type annotations and code completion for boto3.client("ec2").create_ipam method. boto3 documentation

# create_ipam method definition

def create_ipam(
    self,
    *,
    DryRun: bool = ...,
    Description: str = ...,
    OperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    ClientToken: str = ...,
    Tier: IpamTierType = ...,  # (3)
) -> CreateIpamResultTypeDef:  # (4)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See TagSpecificationTypeDef
  3. See IpamTierType
  4. See CreateIpamResultTypeDef
# create_ipam method usage example with argument unpacking

kwargs: CreateIpamRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.create_ipam(**kwargs)
  1. See CreateIpamRequestRequestTypeDef

create_ipam_pool#

Create an IP address pool for Amazon VPC IP Address Manager (IPAM).

Type annotations and code completion for boto3.client("ec2").create_ipam_pool method. boto3 documentation

# create_ipam_pool method definition

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)
    SourceResource: IpamPoolSourceResourceRequestTypeDef = ...,  # (6)
) -> CreateIpamPoolResultTypeDef:  # (7)
    ...
  1. See AddressFamilyType
  2. See RequestIpamResourceTagTypeDef
  3. See TagSpecificationTypeDef
  4. See IpamPoolAwsServiceType
  5. See IpamPoolPublicIpSourceType
  6. See IpamPoolSourceResourceRequestTypeDef
  7. See CreateIpamPoolResultTypeDef
# create_ipam_pool method usage example with argument unpacking

kwargs: CreateIpamPoolRequestRequestTypeDef = {  # (1)
    "IpamScopeId": ...,
    "AddressFamily": ...,
}

parent.create_ipam_pool(**kwargs)
  1. See CreateIpamPoolRequestRequestTypeDef

create_ipam_resource_discovery#

Creates an IPAM resource discovery.

Type annotations and code completion for boto3.client("ec2").create_ipam_resource_discovery method. boto3 documentation

# create_ipam_resource_discovery method definition

def create_ipam_resource_discovery(
    self,
    *,
    DryRun: bool = ...,
    Description: str = ...,
    OperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    ClientToken: str = ...,
) -> CreateIpamResourceDiscoveryResultTypeDef:  # (3)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateIpamResourceDiscoveryResultTypeDef
# create_ipam_resource_discovery method usage example with argument unpacking

kwargs: CreateIpamResourceDiscoveryRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.create_ipam_resource_discovery(**kwargs)
  1. See CreateIpamResourceDiscoveryRequestRequestTypeDef

create_ipam_scope#

Create an IPAM scope.

Type annotations and code completion for boto3.client("ec2").create_ipam_scope method. boto3 documentation

# create_ipam_scope method definition

def create_ipam_scope(
    self,
    *,
    IpamId: str,
    DryRun: bool = ...,
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
) -> CreateIpamScopeResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateIpamScopeResultTypeDef
# create_ipam_scope method usage example with argument unpacking

kwargs: CreateIpamScopeRequestRequestTypeDef = {  # (1)
    "IpamId": ...,
}

parent.create_ipam_scope(**kwargs)
  1. See CreateIpamScopeRequestRequestTypeDef

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 boto3.client("ec2").create_key_pair method. boto3 documentation

# create_key_pair method definition

def create_key_pair(
    self,
    *,
    KeyName: str,
    DryRun: bool = ...,
    KeyType: KeyTypeType = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    KeyFormat: KeyFormatType = ...,  # (3)
) -> KeyPairTypeDef:  # (4)
    ...
  1. See KeyTypeType
  2. See TagSpecificationTypeDef
  3. See KeyFormatType
  4. See KeyPairTypeDef
# create_key_pair method usage example with argument unpacking

kwargs: CreateKeyPairRequestRequestTypeDef = {  # (1)
    "KeyName": ...,
}

parent.create_key_pair(**kwargs)
  1. See CreateKeyPairRequestRequestTypeDef

create_launch_template#

Creates a launch template.

Type annotations and code completion for boto3.client("ec2").create_launch_template method. boto3 documentation

# create_launch_template method definition

def create_launch_template(
    self,
    *,
    LaunchTemplateName: str,
    LaunchTemplateData: RequestLaunchTemplateDataTypeDef,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
    VersionDescription: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> CreateLaunchTemplateResultTypeDef:  # (3)
    ...
  1. See RequestLaunchTemplateDataTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateLaunchTemplateResultTypeDef
# create_launch_template method usage example with argument unpacking

kwargs: CreateLaunchTemplateRequestRequestTypeDef = {  # (1)
    "LaunchTemplateName": ...,
    "LaunchTemplateData": ...,
}

parent.create_launch_template(**kwargs)
  1. See CreateLaunchTemplateRequestRequestTypeDef

create_launch_template_version#

Creates a new version of a launch template.

Type annotations and code completion for boto3.client("ec2").create_launch_template_version method. boto3 documentation

# create_launch_template_version method definition

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)
    ...
  1. See RequestLaunchTemplateDataTypeDef
  2. See CreateLaunchTemplateVersionResultTypeDef
# create_launch_template_version method usage example with argument unpacking

kwargs: CreateLaunchTemplateVersionRequestRequestTypeDef = {  # (1)
    "LaunchTemplateData": ...,
}

parent.create_launch_template_version(**kwargs)
  1. See CreateLaunchTemplateVersionRequestRequestTypeDef

create_local_gateway_route#

Creates a static route for the specified local gateway route table.

Type annotations and code completion for boto3.client("ec2").create_local_gateway_route method. boto3 documentation

# create_local_gateway_route method definition

def create_local_gateway_route(
    self,
    *,
    LocalGatewayRouteTableId: str,
    DestinationCidrBlock: str = ...,
    LocalGatewayVirtualInterfaceGroupId: str = ...,
    DryRun: bool = ...,
    NetworkInterfaceId: str = ...,
    DestinationPrefixListId: str = ...,
) -> CreateLocalGatewayRouteResultTypeDef:  # (1)
    ...
  1. See CreateLocalGatewayRouteResultTypeDef
# create_local_gateway_route method usage example with argument unpacking

kwargs: CreateLocalGatewayRouteRequestRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.create_local_gateway_route(**kwargs)
  1. See CreateLocalGatewayRouteRequestRequestTypeDef

create_local_gateway_route_table#

Creates a local gateway route table.

Type annotations and code completion for boto3.client("ec2").create_local_gateway_route_table method. boto3 documentation

# create_local_gateway_route_table method definition

def create_local_gateway_route_table(
    self,
    *,
    LocalGatewayId: str,
    Mode: LocalGatewayRouteTableModeType = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateLocalGatewayRouteTableResultTypeDef:  # (3)
    ...
  1. See LocalGatewayRouteTableModeType
  2. See TagSpecificationTypeDef
  3. See CreateLocalGatewayRouteTableResultTypeDef
# create_local_gateway_route_table method usage example with argument unpacking

kwargs: CreateLocalGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "LocalGatewayId": ...,
}

parent.create_local_gateway_route_table(**kwargs)
  1. See CreateLocalGatewayRouteTableRequestRequestTypeDef

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 boto3.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

def create_local_gateway_route_table_virtual_interface_group_association(
    self,
    *,
    LocalGatewayRouteTableId: str,
    LocalGatewayVirtualInterfaceGroupId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. 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)
  1. See CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequestRequestTypeDef

create_local_gateway_route_table_vpc_association#

Associates the specified VPC with the specified local gateway route table.

Type annotations and code completion for boto3.client("ec2").create_local_gateway_route_table_vpc_association method. boto3 documentation

# create_local_gateway_route_table_vpc_association method definition

def create_local_gateway_route_table_vpc_association(
    self,
    *,
    LocalGatewayRouteTableId: str,
    VpcId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateLocalGatewayRouteTableVpcAssociationResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateLocalGatewayRouteTableVpcAssociationResultTypeDef
# 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)
  1. See CreateLocalGatewayRouteTableVpcAssociationRequestRequestTypeDef

create_managed_prefix_list#

Creates a managed prefix list.

Type annotations and code completion for boto3.client("ec2").create_managed_prefix_list method. boto3 documentation

# create_managed_prefix_list method definition

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)
    ...
  1. See AddPrefixListEntryTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateManagedPrefixListResultTypeDef
# create_managed_prefix_list method usage example with argument unpacking

kwargs: CreateManagedPrefixListRequestRequestTypeDef = {  # (1)
    "PrefixListName": ...,
    "MaxEntries": ...,
    "AddressFamily": ...,
}

parent.create_managed_prefix_list(**kwargs)
  1. See CreateManagedPrefixListRequestRequestTypeDef

create_nat_gateway#

Creates a NAT gateway in the specified subnet.

Type annotations and code completion for boto3.client("ec2").create_nat_gateway method. boto3 documentation

# create_nat_gateway method definition

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)
    ...
  1. See TagSpecificationTypeDef
  2. See ConnectivityTypeType
  3. See CreateNatGatewayResultTypeDef
# create_nat_gateway method usage example with argument unpacking

kwargs: CreateNatGatewayRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.create_nat_gateway(**kwargs)
  1. See CreateNatGatewayRequestRequestTypeDef

create_network_acl#

Creates a network ACL in a VPC.

Type annotations and code completion for boto3.client("ec2").create_network_acl method. boto3 documentation

# create_network_acl method definition

def create_network_acl(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
) -> CreateNetworkAclResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateNetworkAclResultTypeDef
# create_network_acl method usage example with argument unpacking

kwargs: CreateNetworkAclRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.create_network_acl(**kwargs)
  1. See CreateNetworkAclRequestRequestTypeDef

create_network_acl_entry#

Creates an entry (a rule) in a network ACL with the specified rule number.

Type annotations and code completion for boto3.client("ec2").create_network_acl_entry method. boto3 documentation

# create_network_acl_entry method definition

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)
    ...
  1. See RuleActionType
  2. See IcmpTypeCodeTypeDef
  3. See PortRangeTypeDef
  4. See EmptyResponseMetadataTypeDef
# create_network_acl_entry method usage example with argument unpacking

kwargs: CreateNetworkAclEntryRequestRequestTypeDef = {  # (1)
    "Egress": ...,
    "NetworkAclId": ...,
    "Protocol": ...,
    "RuleAction": ...,
    "RuleNumber": ...,
}

parent.create_network_acl_entry(**kwargs)
  1. See CreateNetworkAclEntryRequestRequestTypeDef

create_network_insights_access_scope#

Creates a Network Access Scope.

Type annotations and code completion for boto3.client("ec2").create_network_insights_access_scope method. boto3 documentation

# create_network_insights_access_scope method definition

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)
    ...
  1. See AccessScopePathRequestTypeDef
  2. See AccessScopePathRequestTypeDef
  3. See TagSpecificationTypeDef
  4. See CreateNetworkInsightsAccessScopeResultTypeDef
# create_network_insights_access_scope method usage example with argument unpacking

kwargs: CreateNetworkInsightsAccessScopeRequestRequestTypeDef = {  # (1)
    "ClientToken": ...,
}

parent.create_network_insights_access_scope(**kwargs)
  1. See CreateNetworkInsightsAccessScopeRequestRequestTypeDef

create_network_insights_path#

Creates a path to analyze for reachability.

Type annotations and code completion for boto3.client("ec2").create_network_insights_path method. boto3 documentation

# create_network_insights_path method definition

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)
    ...
  1. See ProtocolType
  2. See TagSpecificationTypeDef
  3. See PathRequestFilterTypeDef
  4. See PathRequestFilterTypeDef
  5. See CreateNetworkInsightsPathResultTypeDef
# create_network_insights_path method usage example with argument unpacking

kwargs: CreateNetworkInsightsPathRequestRequestTypeDef = {  # (1)
    "Source": ...,
    "Protocol": ...,
    "ClientToken": ...,
}

parent.create_network_insights_path(**kwargs)
  1. See CreateNetworkInsightsPathRequestRequestTypeDef

create_network_interface#

Creates a network interface in the specified subnet.

Type annotations and code completion for boto3.client("ec2").create_network_interface method. boto3 documentation

# create_network_interface method definition

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 = ...,
    ConnectionTrackingSpecification: ConnectionTrackingSpecificationRequestTypeDef = ...,  # (7)
) -> CreateNetworkInterfaceResultTypeDef:  # (8)
    ...
  1. See InstanceIpv6AddressTypeDef
  2. See PrivateIpAddressSpecificationTypeDef
  3. See Ipv4PrefixSpecificationRequestTypeDef
  4. See Ipv6PrefixSpecificationRequestTypeDef
  5. See NetworkInterfaceCreationTypeType
  6. See TagSpecificationTypeDef
  7. See ConnectionTrackingSpecificationRequestTypeDef
  8. See CreateNetworkInterfaceResultTypeDef
# create_network_interface method usage example with argument unpacking

kwargs: CreateNetworkInterfaceRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.create_network_interface(**kwargs)
  1. See CreateNetworkInterfaceRequestRequestTypeDef

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 boto3.client("ec2").create_network_interface_permission method. boto3 documentation

# create_network_interface_permission method definition

def create_network_interface_permission(
    self,
    *,
    NetworkInterfaceId: str,
    Permission: InterfacePermissionTypeType,  # (1)
    AwsAccountId: str = ...,
    AwsService: str = ...,
    DryRun: bool = ...,
) -> CreateNetworkInterfacePermissionResultTypeDef:  # (2)
    ...
  1. See InterfacePermissionTypeType
  2. See CreateNetworkInterfacePermissionResultTypeDef
# create_network_interface_permission method usage example with argument unpacking

kwargs: CreateNetworkInterfacePermissionRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
    "Permission": ...,
}

parent.create_network_interface_permission(**kwargs)
  1. See CreateNetworkInterfacePermissionRequestRequestTypeDef

create_placement_group#

Creates a placement group in which to launch instances.

Type annotations and code completion for boto3.client("ec2").create_placement_group method. boto3 documentation

# create_placement_group method definition

def create_placement_group(
    self,
    *,
    DryRun: bool = ...,
    GroupName: str = ...,
    Strategy: PlacementStrategyType = ...,  # (1)
    PartitionCount: int = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    SpreadLevel: SpreadLevelType = ...,  # (3)
) -> CreatePlacementGroupResultTypeDef:  # (4)
    ...
  1. See PlacementStrategyType
  2. See TagSpecificationTypeDef
  3. See SpreadLevelType
  4. See CreatePlacementGroupResultTypeDef
# create_placement_group method usage example with argument unpacking

kwargs: CreatePlacementGroupRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.create_placement_group(**kwargs)
  1. See CreatePlacementGroupRequestRequestTypeDef

create_public_ipv4_pool#

Creates a public IPv4 address pool.

Type annotations and code completion for boto3.client("ec2").create_public_ipv4_pool method. boto3 documentation

# create_public_ipv4_pool method definition

def create_public_ipv4_pool(
    self,
    *,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CreatePublicIpv4PoolResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreatePublicIpv4PoolResultTypeDef
# create_public_ipv4_pool method usage example with argument unpacking

kwargs: CreatePublicIpv4PoolRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.create_public_ipv4_pool(**kwargs)
  1. See CreatePublicIpv4PoolRequestRequestTypeDef

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 boto3.client("ec2").create_replace_root_volume_task method. boto3 documentation

# create_replace_root_volume_task method definition

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)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateReplaceRootVolumeTaskResultTypeDef
# create_replace_root_volume_task method usage example with argument unpacking

kwargs: CreateReplaceRootVolumeTaskRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.create_replace_root_volume_task(**kwargs)
  1. See CreateReplaceRootVolumeTaskRequestRequestTypeDef

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 boto3.client("ec2").create_reserved_instances_listing method. boto3 documentation

# create_reserved_instances_listing method definition

def create_reserved_instances_listing(
    self,
    *,
    ClientToken: str,
    InstanceCount: int,
    PriceSchedules: Sequence[PriceScheduleSpecificationTypeDef],  # (1)
    ReservedInstancesId: str,
) -> CreateReservedInstancesListingResultTypeDef:  # (2)
    ...
  1. See PriceScheduleSpecificationTypeDef
  2. See CreateReservedInstancesListingResultTypeDef
# create_reserved_instances_listing method usage example with argument unpacking

kwargs: CreateReservedInstancesListingRequestRequestTypeDef = {  # (1)
    "ClientToken": ...,
    "InstanceCount": ...,
    "PriceSchedules": ...,
    "ReservedInstancesId": ...,
}

parent.create_reserved_instances_listing(**kwargs)
  1. See CreateReservedInstancesListingRequestRequestTypeDef

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 boto3.client("ec2").create_restore_image_task method. boto3 documentation

# create_restore_image_task method definition

def create_restore_image_task(
    self,
    *,
    Bucket: str,
    ObjectKey: str,
    Name: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateRestoreImageTaskResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateRestoreImageTaskResultTypeDef
# create_restore_image_task method usage example with argument unpacking

kwargs: CreateRestoreImageTaskRequestRequestTypeDef = {  # (1)
    "Bucket": ...,
    "ObjectKey": ...,
}

parent.create_restore_image_task(**kwargs)
  1. See CreateRestoreImageTaskRequestRequestTypeDef

create_route#

Creates a route in a route table within a VPC.

Type annotations and code completion for boto3.client("ec2").create_route method. boto3 documentation

# create_route method definition

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)
    ...
  1. See CreateRouteResultTypeDef
# create_route method usage example with argument unpacking

kwargs: CreateRouteRequestRequestTypeDef = {  # (1)
    "RouteTableId": ...,
}

parent.create_route(**kwargs)
  1. See CreateRouteRequestRequestTypeDef

create_route_table#

Creates a route table for the specified VPC.

Type annotations and code completion for boto3.client("ec2").create_route_table method. boto3 documentation

# create_route_table method definition

def create_route_table(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
) -> CreateRouteTableResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateRouteTableResultTypeDef
# create_route_table method usage example with argument unpacking

kwargs: CreateRouteTableRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.create_route_table(**kwargs)
  1. See CreateRouteTableRequestRequestTypeDef

create_security_group#

Creates a security group.

Type annotations and code completion for boto3.client("ec2").create_security_group method. boto3 documentation

# create_security_group method definition

def create_security_group(
    self,
    *,
    Description: str,
    GroupName: str,
    VpcId: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateSecurityGroupResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateSecurityGroupResultTypeDef
# create_security_group method usage example with argument unpacking

kwargs: CreateSecurityGroupRequestRequestTypeDef = {  # (1)
    "Description": ...,
    "GroupName": ...,
}

parent.create_security_group(**kwargs)
  1. See CreateSecurityGroupRequestRequestTypeDef

create_snapshot#

Creates a snapshot of an EBS volume and stores it in Amazon S3.

Type annotations and code completion for boto3.client("ec2").create_snapshot method. boto3 documentation

# create_snapshot method definition

def create_snapshot(
    self,
    *,
    VolumeId: str,
    Description: str = ...,
    OutpostArn: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> SnapshotResponseTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See SnapshotResponseTypeDef
# create_snapshot method usage example with argument unpacking

kwargs: CreateSnapshotRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.create_snapshot(**kwargs)
  1. See CreateSnapshotRequestRequestTypeDef

create_snapshots#

Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3.

Type annotations and code completion for boto3.client("ec2").create_snapshots method. boto3 documentation

# create_snapshots method definition

def create_snapshots(
    self,
    *,
    InstanceSpecification: InstanceSpecificationTypeDef,  # (1)
    Description: str = ...,
    OutpostArn: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    DryRun: bool = ...,
    CopyTagsFromSource: CopyTagsFromSourceType = ...,  # (3)
) -> CreateSnapshotsResultTypeDef:  # (4)
    ...
  1. See InstanceSpecificationTypeDef
  2. See TagSpecificationTypeDef
  3. See CopyTagsFromSourceType
  4. See CreateSnapshotsResultTypeDef
# create_snapshots method usage example with argument unpacking

kwargs: CreateSnapshotsRequestRequestTypeDef = {  # (1)
    "InstanceSpecification": ...,
}

parent.create_snapshots(**kwargs)
  1. See CreateSnapshotsRequestRequestTypeDef

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 boto3.client("ec2").create_spot_datafeed_subscription method. boto3 documentation

# create_spot_datafeed_subscription method definition

def create_spot_datafeed_subscription(
    self,
    *,
    Bucket: str,
    DryRun: bool = ...,
    Prefix: str = ...,
) -> CreateSpotDatafeedSubscriptionResultTypeDef:  # (1)
    ...
  1. See CreateSpotDatafeedSubscriptionResultTypeDef
# create_spot_datafeed_subscription method usage example with argument unpacking

kwargs: CreateSpotDatafeedSubscriptionRequestRequestTypeDef = {  # (1)
    "Bucket": ...,
}

parent.create_spot_datafeed_subscription(**kwargs)
  1. See CreateSpotDatafeedSubscriptionRequestRequestTypeDef

create_store_image_task#

Stores an AMI as a single object in an Amazon S3 bucket.

Type annotations and code completion for boto3.client("ec2").create_store_image_task method. boto3 documentation

# create_store_image_task method definition

def create_store_image_task(
    self,
    *,
    ImageId: str,
    Bucket: str,
    S3ObjectTags: Sequence[S3ObjectTagTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateStoreImageTaskResultTypeDef:  # (2)
    ...
  1. See S3ObjectTagTypeDef
  2. See CreateStoreImageTaskResultTypeDef
# create_store_image_task method usage example with argument unpacking

kwargs: CreateStoreImageTaskRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
    "Bucket": ...,
}

parent.create_store_image_task(**kwargs)
  1. See CreateStoreImageTaskRequestRequestTypeDef

create_subnet#

Creates a subnet in the specified VPC.

Type annotations and code completion for boto3.client("ec2").create_subnet method. boto3 documentation

# create_subnet method definition

def create_subnet(
    self,
    *,
    VpcId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    AvailabilityZone: str = ...,
    AvailabilityZoneId: str = ...,
    CidrBlock: str = ...,
    Ipv6CidrBlock: str = ...,
    OutpostArn: str = ...,
    DryRun: bool = ...,
    Ipv6Native: bool = ...,
    Ipv4IpamPoolId: str = ...,
    Ipv4NetmaskLength: int = ...,
    Ipv6IpamPoolId: str = ...,
    Ipv6NetmaskLength: int = ...,
) -> CreateSubnetResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateSubnetResultTypeDef
# create_subnet method usage example with argument unpacking

kwargs: CreateSubnetRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.create_subnet(**kwargs)
  1. See CreateSubnetRequestRequestTypeDef

create_subnet_cidr_reservation#

Creates a subnet CIDR reservation.

Type annotations and code completion for boto3.client("ec2").create_subnet_cidr_reservation method. boto3 documentation

# create_subnet_cidr_reservation method definition

def create_subnet_cidr_reservation(
    self,
    *,
    SubnetId: str,
    Cidr: str,
    ReservationType: SubnetCidrReservationTypeType,  # (1)
    Description: str = ...,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> CreateSubnetCidrReservationResultTypeDef:  # (3)
    ...
  1. See SubnetCidrReservationTypeType
  2. See TagSpecificationTypeDef
  3. See CreateSubnetCidrReservationResultTypeDef
# create_subnet_cidr_reservation method usage example with argument unpacking

kwargs: CreateSubnetCidrReservationRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
    "Cidr": ...,
    "ReservationType": ...,
}

parent.create_subnet_cidr_reservation(**kwargs)
  1. See CreateSubnetCidrReservationRequestRequestTypeDef

create_tags#

Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources.

Type annotations and code completion for boto3.client("ec2").create_tags method. boto3 documentation

# create_tags method definition

def create_tags(
    self,
    *,
    Resources: Sequence[str],
    Tags: Sequence[TagTypeDef],  # (1)
    DryRun: bool = ...,
) -> None:
    ...
  1. See TagTypeDef
# create_tags method usage example with argument unpacking

kwargs: ClientCreateTagsRequestTypeDef = {  # (1)
    "Resources": ...,
    "Tags": ...,
}

parent.create_tags(**kwargs)
  1. See ClientCreateTagsRequestTypeDef

create_traffic_mirror_filter#

Creates a Traffic Mirror filter.

Type annotations and code completion for boto3.client("ec2").create_traffic_mirror_filter method. boto3 documentation

# create_traffic_mirror_filter method definition

def create_traffic_mirror_filter(
    self,
    *,
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> CreateTrafficMirrorFilterResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateTrafficMirrorFilterResultTypeDef
# create_traffic_mirror_filter method usage example with argument unpacking

kwargs: CreateTrafficMirrorFilterRequestRequestTypeDef = {  # (1)
    "Description": ...,
}

parent.create_traffic_mirror_filter(**kwargs)
  1. See CreateTrafficMirrorFilterRequestRequestTypeDef

create_traffic_mirror_filter_rule#

Creates a Traffic Mirror filter rule.

Type annotations and code completion for boto3.client("ec2").create_traffic_mirror_filter_rule method. boto3 documentation

# create_traffic_mirror_filter_rule method definition

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)
    ...
  1. See TrafficDirectionType
  2. See TrafficMirrorRuleActionType
  3. See TrafficMirrorPortRangeRequestTypeDef
  4. See TrafficMirrorPortRangeRequestTypeDef
  5. 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)
  1. See CreateTrafficMirrorFilterRuleRequestRequestTypeDef

create_traffic_mirror_session#

Creates a Traffic Mirror session.

Type annotations and code completion for boto3.client("ec2").create_traffic_mirror_session method. boto3 documentation

# create_traffic_mirror_session method definition

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)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateTrafficMirrorSessionResultTypeDef
# create_traffic_mirror_session method usage example with argument unpacking

kwargs: CreateTrafficMirrorSessionRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
    "TrafficMirrorTargetId": ...,
    "TrafficMirrorFilterId": ...,
    "SessionNumber": ...,
}

parent.create_traffic_mirror_session(**kwargs)
  1. See CreateTrafficMirrorSessionRequestRequestTypeDef

create_traffic_mirror_target#

Creates a target for your Traffic Mirror session.

Type annotations and code completion for boto3.client("ec2").create_traffic_mirror_target method. boto3 documentation

# create_traffic_mirror_target method definition

def create_traffic_mirror_target(
    self,
    *,
    NetworkInterfaceId: str = ...,
    NetworkLoadBalancerArn: str = ...,
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
    GatewayLoadBalancerEndpointId: str = ...,
) -> CreateTrafficMirrorTargetResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateTrafficMirrorTargetResultTypeDef
# create_traffic_mirror_target method usage example with argument unpacking

kwargs: CreateTrafficMirrorTargetRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.create_traffic_mirror_target(**kwargs)
  1. See CreateTrafficMirrorTargetRequestRequestTypeDef

create_transit_gateway#

Creates a transit gateway.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway method. boto3 documentation

# create_transit_gateway method definition

def create_transit_gateway(
    self,
    *,
    Description: str = ...,
    Options: TransitGatewayRequestOptionsTypeDef = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateTransitGatewayResultTypeDef:  # (3)
    ...
  1. See TransitGatewayRequestOptionsTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateTransitGatewayResultTypeDef
# create_transit_gateway method usage example with argument unpacking

kwargs: CreateTransitGatewayRequestRequestTypeDef = {  # (1)
    "Description": ...,
}

parent.create_transit_gateway(**kwargs)
  1. See CreateTransitGatewayRequestRequestTypeDef

create_transit_gateway_connect#

Creates a Connect attachment from a specified transit gateway attachment.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway_connect method. boto3 documentation

# create_transit_gateway_connect method definition

def create_transit_gateway_connect(
    self,
    *,
    TransportTransitGatewayAttachmentId: str,
    Options: CreateTransitGatewayConnectRequestOptionsTypeDef,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateTransitGatewayConnectResultTypeDef:  # (3)
    ...
  1. See CreateTransitGatewayConnectRequestOptionsTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateTransitGatewayConnectResultTypeDef
# create_transit_gateway_connect method usage example with argument unpacking

kwargs: CreateTransitGatewayConnectRequestRequestTypeDef = {  # (1)
    "TransportTransitGatewayAttachmentId": ...,
    "Options": ...,
}

parent.create_transit_gateway_connect(**kwargs)
  1. See CreateTransitGatewayConnectRequestRequestTypeDef

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 boto3.client("ec2").create_transit_gateway_connect_peer method. boto3 documentation

# create_transit_gateway_connect_peer method definition

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)
    ...
  1. See TransitGatewayConnectRequestBgpOptionsTypeDef
  2. See TagSpecificationTypeDef
  3. 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)
  1. See CreateTransitGatewayConnectPeerRequestRequestTypeDef

create_transit_gateway_multicast_domain#

Creates a multicast domain using the specified transit gateway.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway_multicast_domain method. boto3 documentation

# create_transit_gateway_multicast_domain method definition

def create_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayId: str,
    Options: CreateTransitGatewayMulticastDomainRequestOptionsTypeDef = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateTransitGatewayMulticastDomainResultTypeDef:  # (3)
    ...
  1. See CreateTransitGatewayMulticastDomainRequestOptionsTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateTransitGatewayMulticastDomainResultTypeDef
# create_transit_gateway_multicast_domain method usage example with argument unpacking

kwargs: CreateTransitGatewayMulticastDomainRequestRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
}

parent.create_transit_gateway_multicast_domain(**kwargs)
  1. See CreateTransitGatewayMulticastDomainRequestRequestTypeDef

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 boto3.client("ec2").create_transit_gateway_peering_attachment method. boto3 documentation

# create_transit_gateway_peering_attachment method definition

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)
    ...
  1. See CreateTransitGatewayPeeringAttachmentRequestOptionsTypeDef
  2. See TagSpecificationTypeDef
  3. 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)
  1. See CreateTransitGatewayPeeringAttachmentRequestRequestTypeDef

create_transit_gateway_policy_table#

Creates a transit gateway policy table.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway_policy_table method. boto3 documentation

# create_transit_gateway_policy_table method definition

def create_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateTransitGatewayPolicyTableResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateTransitGatewayPolicyTableResultTypeDef
# create_transit_gateway_policy_table method usage example with argument unpacking

kwargs: CreateTransitGatewayPolicyTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
}

parent.create_transit_gateway_policy_table(**kwargs)
  1. See CreateTransitGatewayPolicyTableRequestRequestTypeDef

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 boto3.client("ec2").create_transit_gateway_prefix_list_reference method. boto3 documentation

# create_transit_gateway_prefix_list_reference method definition

def create_transit_gateway_prefix_list_reference(
    self,
    *,
    TransitGatewayRouteTableId: str,
    PrefixListId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> CreateTransitGatewayPrefixListReferenceResultTypeDef:  # (1)
    ...
  1. See CreateTransitGatewayPrefixListReferenceResultTypeDef
# 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)
  1. See CreateTransitGatewayPrefixListReferenceRequestRequestTypeDef

create_transit_gateway_route#

Creates a static route for the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway_route method. boto3 documentation

# create_transit_gateway_route method definition

def create_transit_gateway_route(
    self,
    *,
    DestinationCidrBlock: str,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> CreateTransitGatewayRouteResultTypeDef:  # (1)
    ...
  1. See CreateTransitGatewayRouteResultTypeDef
# create_transit_gateway_route method usage example with argument unpacking

kwargs: CreateTransitGatewayRouteRequestRequestTypeDef = {  # (1)
    "DestinationCidrBlock": ...,
    "TransitGatewayRouteTableId": ...,
}

parent.create_transit_gateway_route(**kwargs)
  1. See CreateTransitGatewayRouteRequestRequestTypeDef

create_transit_gateway_route_table#

Creates a route table for the specified transit gateway.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway_route_table method. boto3 documentation

# create_transit_gateway_route_table method definition

def create_transit_gateway_route_table(
    self,
    *,
    TransitGatewayId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateTransitGatewayRouteTableResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateTransitGatewayRouteTableResultTypeDef
# create_transit_gateway_route_table method usage example with argument unpacking

kwargs: CreateTransitGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
}

parent.create_transit_gateway_route_table(**kwargs)
  1. See CreateTransitGatewayRouteTableRequestRequestTypeDef

create_transit_gateway_route_table_announcement#

Advertises a new transit gateway route table.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway_route_table_announcement method. boto3 documentation

# create_transit_gateway_route_table_announcement method definition

def create_transit_gateway_route_table_announcement(
    self,
    *,
    TransitGatewayRouteTableId: str,
    PeeringAttachmentId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateTransitGatewayRouteTableAnnouncementResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateTransitGatewayRouteTableAnnouncementResultTypeDef
# 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)
  1. See CreateTransitGatewayRouteTableAnnouncementRequestRequestTypeDef

create_transit_gateway_vpc_attachment#

Attaches the specified VPC to the specified transit gateway.

Type annotations and code completion for boto3.client("ec2").create_transit_gateway_vpc_attachment method. boto3 documentation

# create_transit_gateway_vpc_attachment method definition

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)
    ...
  1. See CreateTransitGatewayVpcAttachmentRequestOptionsTypeDef
  2. See TagSpecificationTypeDef
  3. 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)
  1. See CreateTransitGatewayVpcAttachmentRequestRequestTypeDef

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 boto3.client("ec2").create_verified_access_endpoint method. boto3 documentation

# create_verified_access_endpoint method definition

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 = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (6)
) -> CreateVerifiedAccessEndpointResultTypeDef:  # (7)
    ...
  1. See VerifiedAccessEndpointTypeType
  2. See VerifiedAccessEndpointAttachmentTypeType
  3. See CreateVerifiedAccessEndpointLoadBalancerOptionsTypeDef
  4. See CreateVerifiedAccessEndpointEniOptionsTypeDef
  5. See TagSpecificationTypeDef
  6. See VerifiedAccessSseSpecificationRequestTypeDef
  7. 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)
  1. See CreateVerifiedAccessEndpointRequestRequestTypeDef

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 boto3.client("ec2").create_verified_access_group method. boto3 documentation

# create_verified_access_group method definition

def create_verified_access_group(
    self,
    *,
    VerifiedAccessInstanceId: str,
    Description: str = ...,
    PolicyDocument: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
    DryRun: bool = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (2)
) -> CreateVerifiedAccessGroupResultTypeDef:  # (3)
    ...
  1. See TagSpecificationTypeDef
  2. See VerifiedAccessSseSpecificationRequestTypeDef
  3. See CreateVerifiedAccessGroupResultTypeDef
# create_verified_access_group method usage example with argument unpacking

kwargs: CreateVerifiedAccessGroupRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
}

parent.create_verified_access_group(**kwargs)
  1. See CreateVerifiedAccessGroupRequestRequestTypeDef

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 boto3.client("ec2").create_verified_access_instance method. boto3 documentation

# create_verified_access_instance method definition

def create_verified_access_instance(
    self,
    *,
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
    DryRun: bool = ...,
    FIPSEnabled: bool = ...,
) -> CreateVerifiedAccessInstanceResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateVerifiedAccessInstanceResultTypeDef
# create_verified_access_instance method usage example with argument unpacking

kwargs: CreateVerifiedAccessInstanceRequestRequestTypeDef = {  # (1)
    "Description": ...,
}

parent.create_verified_access_instance(**kwargs)
  1. See CreateVerifiedAccessInstanceRequestRequestTypeDef

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 boto3.client("ec2").create_verified_access_trust_provider method. boto3 documentation

# create_verified_access_trust_provider method definition

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 = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (7)
) -> CreateVerifiedAccessTrustProviderResultTypeDef:  # (8)
    ...
  1. See TrustProviderTypeType
  2. See UserTrustProviderTypeType
  3. See DeviceTrustProviderTypeType
  4. See CreateVerifiedAccessTrustProviderOidcOptionsTypeDef
  5. See CreateVerifiedAccessTrustProviderDeviceOptionsTypeDef
  6. See TagSpecificationTypeDef
  7. See VerifiedAccessSseSpecificationRequestTypeDef
  8. 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)
  1. See CreateVerifiedAccessTrustProviderRequestRequestTypeDef

create_volume#

Creates an EBS volume that can be attached to an instance in the same Availability Zone.

Type annotations and code completion for boto3.client("ec2").create_volume method. boto3 documentation

# create_volume method definition

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)
    ...
  1. See VolumeTypeType
  2. See TagSpecificationTypeDef
  3. See VolumeResponseTypeDef
# create_volume method usage example with argument unpacking

kwargs: CreateVolumeRequestRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
}

parent.create_volume(**kwargs)
  1. See CreateVolumeRequestRequestTypeDef

create_vpc#

Creates a VPC with the specified CIDR blocks.

Type annotations and code completion for boto3.client("ec2").create_vpc method. boto3 documentation

# create_vpc method definition

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)
    ...
  1. See TenancyType
  2. See TagSpecificationTypeDef
  3. See CreateVpcResultTypeDef
# create_vpc method usage example with argument unpacking

kwargs: CreateVpcRequestRequestTypeDef = {  # (1)
    "CidrBlock": ...,
}

parent.create_vpc(**kwargs)
  1. See CreateVpcRequestRequestTypeDef

create_vpc_endpoint#

Creates a VPC endpoint.

Type annotations and code completion for boto3.client("ec2").create_vpc_endpoint method. boto3 documentation

# create_vpc_endpoint method definition

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)
    SubnetConfigurations: Sequence[SubnetConfigurationTypeDef] = ...,  # (5)
) -> CreateVpcEndpointResultTypeDef:  # (6)
    ...
  1. See VpcEndpointTypeType
  2. See IpAddressTypeType
  3. See DnsOptionsSpecificationTypeDef
  4. See TagSpecificationTypeDef
  5. See SubnetConfigurationTypeDef
  6. See CreateVpcEndpointResultTypeDef
# create_vpc_endpoint method usage example with argument unpacking

kwargs: CreateVpcEndpointRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
    "ServiceName": ...,
}

parent.create_vpc_endpoint(**kwargs)
  1. See CreateVpcEndpointRequestRequestTypeDef

create_vpc_endpoint_connection_notification#

Creates a connection notification for a specified VPC endpoint or VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").create_vpc_endpoint_connection_notification method. boto3 documentation

# create_vpc_endpoint_connection_notification method definition

def create_vpc_endpoint_connection_notification(
    self,
    *,
    ConnectionNotificationArn: str,
    ConnectionEvents: Sequence[str],
    DryRun: bool = ...,
    ServiceId: str = ...,
    VpcEndpointId: str = ...,
    ClientToken: str = ...,
) -> CreateVpcEndpointConnectionNotificationResultTypeDef:  # (1)
    ...
  1. See CreateVpcEndpointConnectionNotificationResultTypeDef
# create_vpc_endpoint_connection_notification method usage example with argument unpacking

kwargs: CreateVpcEndpointConnectionNotificationRequestRequestTypeDef = {  # (1)
    "ConnectionNotificationArn": ...,
    "ConnectionEvents": ...,
}

parent.create_vpc_endpoint_connection_notification(**kwargs)
  1. See CreateVpcEndpointConnectionNotificationRequestRequestTypeDef

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 boto3.client("ec2").create_vpc_endpoint_service_configuration method. boto3 documentation

# create_vpc_endpoint_service_configuration method definition

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)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateVpcEndpointServiceConfigurationResultTypeDef
# create_vpc_endpoint_service_configuration method usage example with argument unpacking

kwargs: CreateVpcEndpointServiceConfigurationRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.create_vpc_endpoint_service_configuration(**kwargs)
  1. See CreateVpcEndpointServiceConfigurationRequestRequestTypeDef

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 boto3.client("ec2").create_vpc_peering_connection method. boto3 documentation

# create_vpc_peering_connection method definition

def create_vpc_peering_connection(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    PeerOwnerId: str = ...,
    PeerVpcId: str = ...,
    PeerRegion: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CreateVpcPeeringConnectionResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateVpcPeeringConnectionResultTypeDef
# create_vpc_peering_connection method usage example with argument unpacking

kwargs: CreateVpcPeeringConnectionRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.create_vpc_peering_connection(**kwargs)
  1. See CreateVpcPeeringConnectionRequestRequestTypeDef

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 boto3.client("ec2").create_vpn_connection method. boto3 documentation

# create_vpn_connection method definition

def create_vpn_connection(
    self,
    *,
    CustomerGatewayId: str,
    Type: str,
    VpnGatewayId: str = ...,
    TransitGatewayId: str = ...,
    DryRun: bool = ...,
    Options: VpnConnectionOptionsSpecificationTypeDef = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> CreateVpnConnectionResultTypeDef:  # (3)
    ...
  1. See VpnConnectionOptionsSpecificationTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateVpnConnectionResultTypeDef
# create_vpn_connection method usage example with argument unpacking

kwargs: CreateVpnConnectionRequestRequestTypeDef = {  # (1)
    "CustomerGatewayId": ...,
    "Type": ...,
}

parent.create_vpn_connection(**kwargs)
  1. See CreateVpnConnectionRequestRequestTypeDef

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 boto3.client("ec2").create_vpn_connection_route method. boto3 documentation

# create_vpn_connection_route method definition

def create_vpn_connection_route(
    self,
    *,
    DestinationCidrBlock: str,
    VpnConnectionId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# create_vpn_connection_route method usage example with argument unpacking

kwargs: CreateVpnConnectionRouteRequestRequestTypeDef = {  # (1)
    "DestinationCidrBlock": ...,
    "VpnConnectionId": ...,
}

parent.create_vpn_connection_route(**kwargs)
  1. See CreateVpnConnectionRouteRequestRequestTypeDef

create_vpn_gateway#

Creates a virtual private gateway.

Type annotations and code completion for boto3.client("ec2").create_vpn_gateway method. boto3 documentation

# create_vpn_gateway method definition

def create_vpn_gateway(
    self,
    *,
    Type: GatewayTypeType,  # (1)
    AvailabilityZone: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    AmazonSideAsn: int = ...,
    DryRun: bool = ...,
) -> CreateVpnGatewayResultTypeDef:  # (3)
    ...
  1. See GatewayTypeType
  2. See TagSpecificationTypeDef
  3. See CreateVpnGatewayResultTypeDef
# create_vpn_gateway method usage example with argument unpacking

kwargs: CreateVpnGatewayRequestRequestTypeDef = {  # (1)
    "Type": ...,
}

parent.create_vpn_gateway(**kwargs)
  1. See CreateVpnGatewayRequestRequestTypeDef

delete_carrier_gateway#

Deletes a carrier gateway.

Type annotations and code completion for boto3.client("ec2").delete_carrier_gateway method. boto3 documentation

# delete_carrier_gateway method definition

def delete_carrier_gateway(
    self,
    *,
    CarrierGatewayId: str,
    DryRun: bool = ...,
) -> DeleteCarrierGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteCarrierGatewayResultTypeDef
# delete_carrier_gateway method usage example with argument unpacking

kwargs: DeleteCarrierGatewayRequestRequestTypeDef = {  # (1)
    "CarrierGatewayId": ...,
}

parent.delete_carrier_gateway(**kwargs)
  1. See DeleteCarrierGatewayRequestRequestTypeDef

delete_client_vpn_endpoint#

Deletes the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").delete_client_vpn_endpoint method. boto3 documentation

# delete_client_vpn_endpoint method definition

def delete_client_vpn_endpoint(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> DeleteClientVpnEndpointResultTypeDef:  # (1)
    ...
  1. See DeleteClientVpnEndpointResultTypeDef
# delete_client_vpn_endpoint method usage example with argument unpacking

kwargs: DeleteClientVpnEndpointRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.delete_client_vpn_endpoint(**kwargs)
  1. See DeleteClientVpnEndpointRequestRequestTypeDef

delete_client_vpn_route#

Deletes a route from a Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").delete_client_vpn_route method. boto3 documentation

# delete_client_vpn_route method definition

def delete_client_vpn_route(
    self,
    *,
    ClientVpnEndpointId: str,
    DestinationCidrBlock: str,
    TargetVpcSubnetId: str = ...,
    DryRun: bool = ...,
) -> DeleteClientVpnRouteResultTypeDef:  # (1)
    ...
  1. See DeleteClientVpnRouteResultTypeDef
# delete_client_vpn_route method usage example with argument unpacking

kwargs: DeleteClientVpnRouteRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "DestinationCidrBlock": ...,
}

parent.delete_client_vpn_route(**kwargs)
  1. See DeleteClientVpnRouteRequestRequestTypeDef

delete_coip_cidr#

Deletes a range of customer-owned IP addresses.

Type annotations and code completion for boto3.client("ec2").delete_coip_cidr method. boto3 documentation

# delete_coip_cidr method definition

def delete_coip_cidr(
    self,
    *,
    Cidr: str,
    CoipPoolId: str,
    DryRun: bool = ...,
) -> DeleteCoipCidrResultTypeDef:  # (1)
    ...
  1. See DeleteCoipCidrResultTypeDef
# delete_coip_cidr method usage example with argument unpacking

kwargs: DeleteCoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
    "CoipPoolId": ...,
}

parent.delete_coip_cidr(**kwargs)
  1. See DeleteCoipCidrRequestRequestTypeDef

delete_coip_pool#

Deletes a pool of customer-owned IP (CoIP) addresses.

Type annotations and code completion for boto3.client("ec2").delete_coip_pool method. boto3 documentation

# delete_coip_pool method definition

def delete_coip_pool(
    self,
    *,
    CoipPoolId: str,
    DryRun: bool = ...,
) -> DeleteCoipPoolResultTypeDef:  # (1)
    ...
  1. See DeleteCoipPoolResultTypeDef
# delete_coip_pool method usage example with argument unpacking

kwargs: DeleteCoipPoolRequestRequestTypeDef = {  # (1)
    "CoipPoolId": ...,
}

parent.delete_coip_pool(**kwargs)
  1. See DeleteCoipPoolRequestRequestTypeDef

delete_customer_gateway#

Deletes the specified customer gateway.

Type annotations and code completion for boto3.client("ec2").delete_customer_gateway method. boto3 documentation

# delete_customer_gateway method definition

def delete_customer_gateway(
    self,
    *,
    CustomerGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_customer_gateway method usage example with argument unpacking

kwargs: DeleteCustomerGatewayRequestRequestTypeDef = {  # (1)
    "CustomerGatewayId": ...,
}

parent.delete_customer_gateway(**kwargs)
  1. See DeleteCustomerGatewayRequestRequestTypeDef

delete_dhcp_options#

Deletes the specified set of DHCP options.

Type annotations and code completion for boto3.client("ec2").delete_dhcp_options method. boto3 documentation

# delete_dhcp_options method definition

def delete_dhcp_options(
    self,
    *,
    DhcpOptionsId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_dhcp_options method usage example with argument unpacking

kwargs: DeleteDhcpOptionsRequestRequestTypeDef = {  # (1)
    "DhcpOptionsId": ...,
}

parent.delete_dhcp_options(**kwargs)
  1. See DeleteDhcpOptionsRequestRequestTypeDef

delete_egress_only_internet_gateway#

Deletes an egress-only internet gateway.

Type annotations and code completion for boto3.client("ec2").delete_egress_only_internet_gateway method. boto3 documentation

# delete_egress_only_internet_gateway method definition

def delete_egress_only_internet_gateway(
    self,
    *,
    EgressOnlyInternetGatewayId: str,
    DryRun: bool = ...,
) -> DeleteEgressOnlyInternetGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteEgressOnlyInternetGatewayResultTypeDef
# delete_egress_only_internet_gateway method usage example with argument unpacking

kwargs: DeleteEgressOnlyInternetGatewayRequestRequestTypeDef = {  # (1)
    "EgressOnlyInternetGatewayId": ...,
}

parent.delete_egress_only_internet_gateway(**kwargs)
  1. See DeleteEgressOnlyInternetGatewayRequestRequestTypeDef

delete_fleets#

Deletes the specified EC2 Fleets.

Type annotations and code completion for boto3.client("ec2").delete_fleets method. boto3 documentation

# delete_fleets method definition

def delete_fleets(
    self,
    *,
    FleetIds: Sequence[str],
    TerminateInstances: bool,
    DryRun: bool = ...,
) -> DeleteFleetsResultTypeDef:  # (1)
    ...
  1. See DeleteFleetsResultTypeDef
# delete_fleets method usage example with argument unpacking

kwargs: DeleteFleetsRequestRequestTypeDef = {  # (1)
    "FleetIds": ...,
    "TerminateInstances": ...,
}

parent.delete_fleets(**kwargs)
  1. See DeleteFleetsRequestRequestTypeDef

delete_flow_logs#

Deletes one or more flow logs.

Type annotations and code completion for boto3.client("ec2").delete_flow_logs method. boto3 documentation

# delete_flow_logs method definition

def delete_flow_logs(
    self,
    *,
    FlowLogIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteFlowLogsResultTypeDef:  # (1)
    ...
  1. See DeleteFlowLogsResultTypeDef
# delete_flow_logs method usage example with argument unpacking

kwargs: DeleteFlowLogsRequestRequestTypeDef = {  # (1)
    "FlowLogIds": ...,
}

parent.delete_flow_logs(**kwargs)
  1. See DeleteFlowLogsRequestRequestTypeDef

delete_fpga_image#

Deletes the specified Amazon FPGA Image (AFI).

Type annotations and code completion for boto3.client("ec2").delete_fpga_image method. boto3 documentation

# delete_fpga_image method definition

def delete_fpga_image(
    self,
    *,
    FpgaImageId: str,
    DryRun: bool = ...,
) -> DeleteFpgaImageResultTypeDef:  # (1)
    ...
  1. See DeleteFpgaImageResultTypeDef
# delete_fpga_image method usage example with argument unpacking

kwargs: DeleteFpgaImageRequestRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
}

parent.delete_fpga_image(**kwargs)
  1. See DeleteFpgaImageRequestRequestTypeDef

delete_instance_connect_endpoint#

Deletes the specified EC2 Instance Connect Endpoint.

Type annotations and code completion for boto3.client("ec2").delete_instance_connect_endpoint method. boto3 documentation

# delete_instance_connect_endpoint method definition

def delete_instance_connect_endpoint(
    self,
    *,
    InstanceConnectEndpointId: str,
    DryRun: bool = ...,
) -> DeleteInstanceConnectEndpointResultTypeDef:  # (1)
    ...
  1. See DeleteInstanceConnectEndpointResultTypeDef
# delete_instance_connect_endpoint method usage example with argument unpacking

kwargs: DeleteInstanceConnectEndpointRequestRequestTypeDef = {  # (1)
    "InstanceConnectEndpointId": ...,
}

parent.delete_instance_connect_endpoint(**kwargs)
  1. See DeleteInstanceConnectEndpointRequestRequestTypeDef

delete_instance_event_window#

Deletes the specified event window.

Type annotations and code completion for boto3.client("ec2").delete_instance_event_window method. boto3 documentation

# delete_instance_event_window method definition

def delete_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    DryRun: bool = ...,
    ForceDelete: bool = ...,
) -> DeleteInstanceEventWindowResultTypeDef:  # (1)
    ...
  1. See DeleteInstanceEventWindowResultTypeDef
# delete_instance_event_window method usage example with argument unpacking

kwargs: DeleteInstanceEventWindowRequestRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
}

parent.delete_instance_event_window(**kwargs)
  1. See DeleteInstanceEventWindowRequestRequestTypeDef

delete_internet_gateway#

Deletes the specified internet gateway.

Type annotations and code completion for boto3.client("ec2").delete_internet_gateway method. boto3 documentation

# delete_internet_gateway method definition

def delete_internet_gateway(
    self,
    *,
    InternetGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_internet_gateway method usage example with argument unpacking

kwargs: DeleteInternetGatewayRequestRequestTypeDef = {  # (1)
    "InternetGatewayId": ...,
}

parent.delete_internet_gateway(**kwargs)
  1. See DeleteInternetGatewayRequestRequestTypeDef

delete_ipam#

Delete an IPAM.

Type annotations and code completion for boto3.client("ec2").delete_ipam method. boto3 documentation

# delete_ipam method definition

def delete_ipam(
    self,
    *,
    IpamId: str,
    DryRun: bool = ...,
    Cascade: bool = ...,
) -> DeleteIpamResultTypeDef:  # (1)
    ...
  1. See DeleteIpamResultTypeDef
# delete_ipam method usage example with argument unpacking

kwargs: DeleteIpamRequestRequestTypeDef = {  # (1)
    "IpamId": ...,
}

parent.delete_ipam(**kwargs)
  1. See DeleteIpamRequestRequestTypeDef

delete_ipam_pool#

Delete an IPAM pool.

Type annotations and code completion for boto3.client("ec2").delete_ipam_pool method. boto3 documentation

# delete_ipam_pool method definition

def delete_ipam_pool(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cascade: bool = ...,
) -> DeleteIpamPoolResultTypeDef:  # (1)
    ...
  1. See DeleteIpamPoolResultTypeDef
# delete_ipam_pool method usage example with argument unpacking

kwargs: DeleteIpamPoolRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.delete_ipam_pool(**kwargs)
  1. See DeleteIpamPoolRequestRequestTypeDef

delete_ipam_resource_discovery#

Deletes an IPAM resource discovery.

Type annotations and code completion for boto3.client("ec2").delete_ipam_resource_discovery method. boto3 documentation

# delete_ipam_resource_discovery method definition

def delete_ipam_resource_discovery(
    self,
    *,
    IpamResourceDiscoveryId: str,
    DryRun: bool = ...,
) -> DeleteIpamResourceDiscoveryResultTypeDef:  # (1)
    ...
  1. See DeleteIpamResourceDiscoveryResultTypeDef
# delete_ipam_resource_discovery method usage example with argument unpacking

kwargs: DeleteIpamResourceDiscoveryRequestRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
}

parent.delete_ipam_resource_discovery(**kwargs)
  1. See DeleteIpamResourceDiscoveryRequestRequestTypeDef

delete_ipam_scope#

Delete the scope for an IPAM.

Type annotations and code completion for boto3.client("ec2").delete_ipam_scope method. boto3 documentation

# delete_ipam_scope method definition

def delete_ipam_scope(
    self,
    *,
    IpamScopeId: str,
    DryRun: bool = ...,
) -> DeleteIpamScopeResultTypeDef:  # (1)
    ...
  1. See DeleteIpamScopeResultTypeDef
# delete_ipam_scope method usage example with argument unpacking

kwargs: DeleteIpamScopeRequestRequestTypeDef = {  # (1)
    "IpamScopeId": ...,
}

parent.delete_ipam_scope(**kwargs)
  1. See DeleteIpamScopeRequestRequestTypeDef

delete_key_pair#

Deletes the specified key pair, by removing the public key from Amazon EC2.

Type annotations and code completion for boto3.client("ec2").delete_key_pair method. boto3 documentation

# delete_key_pair method definition

def delete_key_pair(
    self,
    *,
    KeyName: str = ...,
    KeyPairId: str = ...,
    DryRun: bool = ...,
) -> DeleteKeyPairResultTypeDef:  # (1)
    ...
  1. See DeleteKeyPairResultTypeDef
# delete_key_pair method usage example with argument unpacking

kwargs: DeleteKeyPairRequestRequestTypeDef = {  # (1)
    "KeyName": ...,
}

parent.delete_key_pair(**kwargs)
  1. See DeleteKeyPairRequestRequestTypeDef

delete_launch_template#

Deletes a launch template.

Type annotations and code completion for boto3.client("ec2").delete_launch_template method. boto3 documentation

# delete_launch_template method definition

def delete_launch_template(
    self,
    *,
    DryRun: bool = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
) -> DeleteLaunchTemplateResultTypeDef:  # (1)
    ...
  1. See DeleteLaunchTemplateResultTypeDef
# delete_launch_template method usage example with argument unpacking

kwargs: DeleteLaunchTemplateRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.delete_launch_template(**kwargs)
  1. See DeleteLaunchTemplateRequestRequestTypeDef

delete_launch_template_versions#

Deletes one or more versions of a launch template.

Type annotations and code completion for boto3.client("ec2").delete_launch_template_versions method. boto3 documentation

# delete_launch_template_versions method definition

def delete_launch_template_versions(
    self,
    *,
    Versions: Sequence[str],
    DryRun: bool = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
) -> DeleteLaunchTemplateVersionsResultTypeDef:  # (1)
    ...
  1. See DeleteLaunchTemplateVersionsResultTypeDef
# delete_launch_template_versions method usage example with argument unpacking

kwargs: DeleteLaunchTemplateVersionsRequestRequestTypeDef = {  # (1)
    "Versions": ...,
}

parent.delete_launch_template_versions(**kwargs)
  1. See DeleteLaunchTemplateVersionsRequestRequestTypeDef

delete_local_gateway_route#

Deletes the specified route from the specified local gateway route table.

Type annotations and code completion for boto3.client("ec2").delete_local_gateway_route method. boto3 documentation

# delete_local_gateway_route method definition

def delete_local_gateway_route(
    self,
    *,
    LocalGatewayRouteTableId: str,
    DestinationCidrBlock: str = ...,
    DryRun: bool = ...,
    DestinationPrefixListId: str = ...,
) -> DeleteLocalGatewayRouteResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteResultTypeDef
# delete_local_gateway_route method usage example with argument unpacking

kwargs: DeleteLocalGatewayRouteRequestRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.delete_local_gateway_route(**kwargs)
  1. See DeleteLocalGatewayRouteRequestRequestTypeDef

delete_local_gateway_route_table#

Deletes a local gateway route table.

Type annotations and code completion for boto3.client("ec2").delete_local_gateway_route_table method. boto3 documentation

# delete_local_gateway_route_table method definition

def delete_local_gateway_route_table(
    self,
    *,
    LocalGatewayRouteTableId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableResultTypeDef
# delete_local_gateway_route_table method usage example with argument unpacking

kwargs: DeleteLocalGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.delete_local_gateway_route_table(**kwargs)
  1. See DeleteLocalGatewayRouteTableRequestRequestTypeDef

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 boto3.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

def delete_local_gateway_route_table_virtual_interface_group_association(
    self,
    *,
    LocalGatewayRouteTableVirtualInterfaceGroupAssociationId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef
# 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)
  1. See DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequestRequestTypeDef

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 boto3.client("ec2").delete_local_gateway_route_table_vpc_association method. boto3 documentation

# delete_local_gateway_route_table_vpc_association method definition

def delete_local_gateway_route_table_vpc_association(
    self,
    *,
    LocalGatewayRouteTableVpcAssociationId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVpcAssociationResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableVpcAssociationResultTypeDef
# 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)
  1. See DeleteLocalGatewayRouteTableVpcAssociationRequestRequestTypeDef

delete_managed_prefix_list#

Deletes the specified managed prefix list.

Type annotations and code completion for boto3.client("ec2").delete_managed_prefix_list method. boto3 documentation

# delete_managed_prefix_list method definition

def delete_managed_prefix_list(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
) -> DeleteManagedPrefixListResultTypeDef:  # (1)
    ...
  1. See DeleteManagedPrefixListResultTypeDef
# delete_managed_prefix_list method usage example with argument unpacking

kwargs: DeleteManagedPrefixListRequestRequestTypeDef = {  # (1)
    "PrefixListId": ...,
}

parent.delete_managed_prefix_list(**kwargs)
  1. See DeleteManagedPrefixListRequestRequestTypeDef

delete_nat_gateway#

Deletes the specified NAT gateway.

Type annotations and code completion for boto3.client("ec2").delete_nat_gateway method. boto3 documentation

# delete_nat_gateway method definition

def delete_nat_gateway(
    self,
    *,
    NatGatewayId: str,
    DryRun: bool = ...,
) -> DeleteNatGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteNatGatewayResultTypeDef
# delete_nat_gateway method usage example with argument unpacking

kwargs: DeleteNatGatewayRequestRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
}

parent.delete_nat_gateway(**kwargs)
  1. See DeleteNatGatewayRequestRequestTypeDef

delete_network_acl#

Deletes the specified network ACL.

Type annotations and code completion for boto3.client("ec2").delete_network_acl method. boto3 documentation

# delete_network_acl method definition

def delete_network_acl(
    self,
    *,
    NetworkAclId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_network_acl method usage example with argument unpacking

kwargs: DeleteNetworkAclRequestRequestTypeDef = {  # (1)
    "NetworkAclId": ...,
}

parent.delete_network_acl(**kwargs)
  1. See DeleteNetworkAclRequestRequestTypeDef

delete_network_acl_entry#

Deletes the specified ingress or egress entry (rule) from the specified network ACL.

Type annotations and code completion for boto3.client("ec2").delete_network_acl_entry method. boto3 documentation

# delete_network_acl_entry method definition

def delete_network_acl_entry(
    self,
    *,
    Egress: bool,
    NetworkAclId: str,
    RuleNumber: int,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_network_acl_entry method usage example with argument unpacking

kwargs: DeleteNetworkAclEntryRequestRequestTypeDef = {  # (1)
    "Egress": ...,
    "NetworkAclId": ...,
    "RuleNumber": ...,
}

parent.delete_network_acl_entry(**kwargs)
  1. See DeleteNetworkAclEntryRequestRequestTypeDef

delete_network_insights_access_scope#

Deletes the specified Network Access Scope.

Type annotations and code completion for boto3.client("ec2").delete_network_insights_access_scope method. boto3 documentation

# delete_network_insights_access_scope method definition

def delete_network_insights_access_scope(
    self,
    *,
    NetworkInsightsAccessScopeId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsAccessScopeResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsAccessScopeResultTypeDef
# delete_network_insights_access_scope method usage example with argument unpacking

kwargs: DeleteNetworkInsightsAccessScopeRequestRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeId": ...,
}

parent.delete_network_insights_access_scope(**kwargs)
  1. See DeleteNetworkInsightsAccessScopeRequestRequestTypeDef

delete_network_insights_access_scope_analysis#

Deletes the specified Network Access Scope analysis.

Type annotations and code completion for boto3.client("ec2").delete_network_insights_access_scope_analysis method. boto3 documentation

# delete_network_insights_access_scope_analysis method definition

def delete_network_insights_access_scope_analysis(
    self,
    *,
    NetworkInsightsAccessScopeAnalysisId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsAccessScopeAnalysisResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsAccessScopeAnalysisResultTypeDef
# delete_network_insights_access_scope_analysis method usage example with argument unpacking

kwargs: DeleteNetworkInsightsAccessScopeAnalysisRequestRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeAnalysisId": ...,
}

parent.delete_network_insights_access_scope_analysis(**kwargs)
  1. See DeleteNetworkInsightsAccessScopeAnalysisRequestRequestTypeDef

delete_network_insights_analysis#

Deletes the specified network insights analysis.

Type annotations and code completion for boto3.client("ec2").delete_network_insights_analysis method. boto3 documentation

# delete_network_insights_analysis method definition

def delete_network_insights_analysis(
    self,
    *,
    NetworkInsightsAnalysisId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsAnalysisResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsAnalysisResultTypeDef
# delete_network_insights_analysis method usage example with argument unpacking

kwargs: DeleteNetworkInsightsAnalysisRequestRequestTypeDef = {  # (1)
    "NetworkInsightsAnalysisId": ...,
}

parent.delete_network_insights_analysis(**kwargs)
  1. See DeleteNetworkInsightsAnalysisRequestRequestTypeDef

delete_network_insights_path#

Deletes the specified path.

Type annotations and code completion for boto3.client("ec2").delete_network_insights_path method. boto3 documentation

# delete_network_insights_path method definition

def delete_network_insights_path(
    self,
    *,
    NetworkInsightsPathId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsPathResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsPathResultTypeDef
# delete_network_insights_path method usage example with argument unpacking

kwargs: DeleteNetworkInsightsPathRequestRequestTypeDef = {  # (1)
    "NetworkInsightsPathId": ...,
}

parent.delete_network_insights_path(**kwargs)
  1. See DeleteNetworkInsightsPathRequestRequestTypeDef

delete_network_interface#

Deletes the specified network interface.

Type annotations and code completion for boto3.client("ec2").delete_network_interface method. boto3 documentation

# delete_network_interface method definition

def delete_network_interface(
    self,
    *,
    NetworkInterfaceId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_network_interface method usage example with argument unpacking

kwargs: DeleteNetworkInterfaceRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.delete_network_interface(**kwargs)
  1. See DeleteNetworkInterfaceRequestRequestTypeDef

delete_network_interface_permission#

Deletes a permission for a network interface.

Type annotations and code completion for boto3.client("ec2").delete_network_interface_permission method. boto3 documentation

# delete_network_interface_permission method definition

def delete_network_interface_permission(
    self,
    *,
    NetworkInterfacePermissionId: str,
    Force: bool = ...,
    DryRun: bool = ...,
) -> DeleteNetworkInterfacePermissionResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInterfacePermissionResultTypeDef
# delete_network_interface_permission method usage example with argument unpacking

kwargs: DeleteNetworkInterfacePermissionRequestRequestTypeDef = {  # (1)
    "NetworkInterfacePermissionId": ...,
}

parent.delete_network_interface_permission(**kwargs)
  1. See DeleteNetworkInterfacePermissionRequestRequestTypeDef

delete_placement_group#

Deletes the specified placement group.

Type annotations and code completion for boto3.client("ec2").delete_placement_group method. boto3 documentation

# delete_placement_group method definition

def delete_placement_group(
    self,
    *,
    GroupName: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_placement_group method usage example with argument unpacking

kwargs: DeletePlacementGroupRequestRequestTypeDef = {  # (1)
    "GroupName": ...,
}

parent.delete_placement_group(**kwargs)
  1. See DeletePlacementGroupRequestRequestTypeDef

delete_public_ipv4_pool#

Delete a public IPv4 pool.

Type annotations and code completion for boto3.client("ec2").delete_public_ipv4_pool method. boto3 documentation

# delete_public_ipv4_pool method definition

def delete_public_ipv4_pool(
    self,
    *,
    PoolId: str,
    DryRun: bool = ...,
) -> DeletePublicIpv4PoolResultTypeDef:  # (1)
    ...
  1. See DeletePublicIpv4PoolResultTypeDef
# delete_public_ipv4_pool method usage example with argument unpacking

kwargs: DeletePublicIpv4PoolRequestRequestTypeDef = {  # (1)
    "PoolId": ...,
}

parent.delete_public_ipv4_pool(**kwargs)
  1. See DeletePublicIpv4PoolRequestRequestTypeDef

delete_queued_reserved_instances#

Deletes the queued purchases for the specified Reserved Instances.

Type annotations and code completion for boto3.client("ec2").delete_queued_reserved_instances method. boto3 documentation

# delete_queued_reserved_instances method definition

def delete_queued_reserved_instances(
    self,
    *,
    ReservedInstancesIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteQueuedReservedInstancesResultTypeDef:  # (1)
    ...
  1. See DeleteQueuedReservedInstancesResultTypeDef
# delete_queued_reserved_instances method usage example with argument unpacking

kwargs: DeleteQueuedReservedInstancesRequestRequestTypeDef = {  # (1)
    "ReservedInstancesIds": ...,
}

parent.delete_queued_reserved_instances(**kwargs)
  1. See DeleteQueuedReservedInstancesRequestRequestTypeDef

delete_route#

Deletes the specified route from the specified route table.

Type annotations and code completion for boto3.client("ec2").delete_route method. boto3 documentation

# delete_route method definition

def delete_route(
    self,
    *,
    RouteTableId: str,
    DestinationCidrBlock: str = ...,
    DestinationIpv6CidrBlock: str = ...,
    DestinationPrefixListId: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_route method usage example with argument unpacking

kwargs: DeleteRouteRequestRequestTypeDef = {  # (1)
    "RouteTableId": ...,
}

parent.delete_route(**kwargs)
  1. See DeleteRouteRequestRequestTypeDef

delete_route_table#

Deletes the specified route table.

Type annotations and code completion for boto3.client("ec2").delete_route_table method. boto3 documentation

# delete_route_table method definition

def delete_route_table(
    self,
    *,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_route_table method usage example with argument unpacking

kwargs: DeleteRouteTableRequestRequestTypeDef = {  # (1)
    "RouteTableId": ...,
}

parent.delete_route_table(**kwargs)
  1. See DeleteRouteTableRequestRequestTypeDef

delete_security_group#

Deletes a security group.

Type annotations and code completion for boto3.client("ec2").delete_security_group method. boto3 documentation

# delete_security_group method definition

def delete_security_group(
    self,
    *,
    GroupId: str = ...,
    GroupName: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_security_group method usage example with argument unpacking

kwargs: DeleteSecurityGroupRequestRequestTypeDef = {  # (1)
    "GroupId": ...,
}

parent.delete_security_group(**kwargs)
  1. See DeleteSecurityGroupRequestRequestTypeDef

delete_snapshot#

Deletes the specified snapshot.

Type annotations and code completion for boto3.client("ec2").delete_snapshot method. boto3 documentation

# delete_snapshot method definition

def delete_snapshot(
    self,
    *,
    SnapshotId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_snapshot method usage example with argument unpacking

kwargs: DeleteSnapshotRequestRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.delete_snapshot(**kwargs)
  1. See DeleteSnapshotRequestRequestTypeDef

delete_spot_datafeed_subscription#

Deletes the data feed for Spot Instances.

Type annotations and code completion for boto3.client("ec2").delete_spot_datafeed_subscription method. boto3 documentation

# delete_spot_datafeed_subscription method definition

def delete_spot_datafeed_subscription(
    self,
    *,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_spot_datafeed_subscription method usage example with argument unpacking

kwargs: DeleteSpotDatafeedSubscriptionRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.delete_spot_datafeed_subscription(**kwargs)
  1. See DeleteSpotDatafeedSubscriptionRequestRequestTypeDef

delete_subnet#

Deletes the specified subnet.

Type annotations and code completion for boto3.client("ec2").delete_subnet method. boto3 documentation

# delete_subnet method definition

def delete_subnet(
    self,
    *,
    SubnetId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_subnet method usage example with argument unpacking

kwargs: DeleteSubnetRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.delete_subnet(**kwargs)
  1. See DeleteSubnetRequestRequestTypeDef

delete_subnet_cidr_reservation#

Deletes a subnet CIDR reservation.

Type annotations and code completion for boto3.client("ec2").delete_subnet_cidr_reservation method. boto3 documentation

# delete_subnet_cidr_reservation method definition

def delete_subnet_cidr_reservation(
    self,
    *,
    SubnetCidrReservationId: str,
    DryRun: bool = ...,
) -> DeleteSubnetCidrReservationResultTypeDef:  # (1)
    ...
  1. See DeleteSubnetCidrReservationResultTypeDef
# delete_subnet_cidr_reservation method usage example with argument unpacking

kwargs: DeleteSubnetCidrReservationRequestRequestTypeDef = {  # (1)
    "SubnetCidrReservationId": ...,
}

parent.delete_subnet_cidr_reservation(**kwargs)
  1. See DeleteSubnetCidrReservationRequestRequestTypeDef

delete_tags#

Deletes the specified set of tags from the specified set of resources.

Type annotations and code completion for boto3.client("ec2").delete_tags method. boto3 documentation

# delete_tags method definition

def delete_tags(
    self,
    *,
    Resources: Sequence[str],
    Tags: Sequence[TagTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> None:
    ...
  1. See TagTypeDef
# delete_tags method usage example with argument unpacking

kwargs: ClientDeleteTagsRequestTypeDef = {  # (1)
    "Resources": ...,
}

parent.delete_tags(**kwargs)
  1. See ClientDeleteTagsRequestTypeDef

delete_traffic_mirror_filter#

Deletes the specified Traffic Mirror filter.

Type annotations and code completion for boto3.client("ec2").delete_traffic_mirror_filter method. boto3 documentation

# delete_traffic_mirror_filter method definition

def delete_traffic_mirror_filter(
    self,
    *,
    TrafficMirrorFilterId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorFilterResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorFilterResultTypeDef
# delete_traffic_mirror_filter method usage example with argument unpacking

kwargs: DeleteTrafficMirrorFilterRequestRequestTypeDef = {  # (1)
    "TrafficMirrorFilterId": ...,
}

parent.delete_traffic_mirror_filter(**kwargs)
  1. See DeleteTrafficMirrorFilterRequestRequestTypeDef

delete_traffic_mirror_filter_rule#

Deletes the specified Traffic Mirror rule.

Type annotations and code completion for boto3.client("ec2").delete_traffic_mirror_filter_rule method. boto3 documentation

# delete_traffic_mirror_filter_rule method definition

def delete_traffic_mirror_filter_rule(
    self,
    *,
    TrafficMirrorFilterRuleId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorFilterRuleResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorFilterRuleResultTypeDef
# delete_traffic_mirror_filter_rule method usage example with argument unpacking

kwargs: DeleteTrafficMirrorFilterRuleRequestRequestTypeDef = {  # (1)
    "TrafficMirrorFilterRuleId": ...,
}

parent.delete_traffic_mirror_filter_rule(**kwargs)
  1. See DeleteTrafficMirrorFilterRuleRequestRequestTypeDef

delete_traffic_mirror_session#

Deletes the specified Traffic Mirror session.

Type annotations and code completion for boto3.client("ec2").delete_traffic_mirror_session method. boto3 documentation

# delete_traffic_mirror_session method definition

def delete_traffic_mirror_session(
    self,
    *,
    TrafficMirrorSessionId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorSessionResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorSessionResultTypeDef
# delete_traffic_mirror_session method usage example with argument unpacking

kwargs: DeleteTrafficMirrorSessionRequestRequestTypeDef = {  # (1)
    "TrafficMirrorSessionId": ...,
}

parent.delete_traffic_mirror_session(**kwargs)
  1. See DeleteTrafficMirrorSessionRequestRequestTypeDef

delete_traffic_mirror_target#

Deletes the specified Traffic Mirror target.

Type annotations and code completion for boto3.client("ec2").delete_traffic_mirror_target method. boto3 documentation

# delete_traffic_mirror_target method definition

def delete_traffic_mirror_target(
    self,
    *,
    TrafficMirrorTargetId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorTargetResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorTargetResultTypeDef
# delete_traffic_mirror_target method usage example with argument unpacking

kwargs: DeleteTrafficMirrorTargetRequestRequestTypeDef = {  # (1)
    "TrafficMirrorTargetId": ...,
}

parent.delete_traffic_mirror_target(**kwargs)
  1. See DeleteTrafficMirrorTargetRequestRequestTypeDef

delete_transit_gateway#

Deletes the specified transit gateway.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway method. boto3 documentation

# delete_transit_gateway method definition

def delete_transit_gateway(
    self,
    *,
    TransitGatewayId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayResultTypeDef
# delete_transit_gateway method usage example with argument unpacking

kwargs: DeleteTransitGatewayRequestRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
}

parent.delete_transit_gateway(**kwargs)
  1. See DeleteTransitGatewayRequestRequestTypeDef

delete_transit_gateway_connect#

Deletes the specified Connect attachment.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_connect method. boto3 documentation

# delete_transit_gateway_connect method definition

def delete_transit_gateway_connect(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayConnectResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayConnectResultTypeDef
# delete_transit_gateway_connect method usage example with argument unpacking

kwargs: DeleteTransitGatewayConnectRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.delete_transit_gateway_connect(**kwargs)
  1. See DeleteTransitGatewayConnectRequestRequestTypeDef

delete_transit_gateway_connect_peer#

Deletes the specified Connect peer.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_connect_peer method. boto3 documentation

# delete_transit_gateway_connect_peer method definition

def delete_transit_gateway_connect_peer(
    self,
    *,
    TransitGatewayConnectPeerId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayConnectPeerResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayConnectPeerResultTypeDef
# delete_transit_gateway_connect_peer method usage example with argument unpacking

kwargs: DeleteTransitGatewayConnectPeerRequestRequestTypeDef = {  # (1)
    "TransitGatewayConnectPeerId": ...,
}

parent.delete_transit_gateway_connect_peer(**kwargs)
  1. See DeleteTransitGatewayConnectPeerRequestRequestTypeDef

delete_transit_gateway_multicast_domain#

Deletes the specified transit gateway multicast domain.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_multicast_domain method. boto3 documentation

# delete_transit_gateway_multicast_domain method definition

def delete_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayMulticastDomainResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayMulticastDomainResultTypeDef
# delete_transit_gateway_multicast_domain method usage example with argument unpacking

kwargs: DeleteTransitGatewayMulticastDomainRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.delete_transit_gateway_multicast_domain(**kwargs)
  1. See DeleteTransitGatewayMulticastDomainRequestRequestTypeDef

delete_transit_gateway_peering_attachment#

Deletes a transit gateway peering attachment.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_peering_attachment method. boto3 documentation

# delete_transit_gateway_peering_attachment method definition

def delete_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayPeeringAttachmentResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayPeeringAttachmentResultTypeDef
# delete_transit_gateway_peering_attachment method usage example with argument unpacking

kwargs: DeleteTransitGatewayPeeringAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.delete_transit_gateway_peering_attachment(**kwargs)
  1. See DeleteTransitGatewayPeeringAttachmentRequestRequestTypeDef

delete_transit_gateway_policy_table#

Deletes the specified transit gateway policy table.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_policy_table method. boto3 documentation

# delete_transit_gateway_policy_table method definition

def delete_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayPolicyTableResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayPolicyTableResultTypeDef
# delete_transit_gateway_policy_table method usage example with argument unpacking

kwargs: DeleteTransitGatewayPolicyTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
}

parent.delete_transit_gateway_policy_table(**kwargs)
  1. See DeleteTransitGatewayPolicyTableRequestRequestTypeDef

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 boto3.client("ec2").delete_transit_gateway_prefix_list_reference method. boto3 documentation

# delete_transit_gateway_prefix_list_reference method definition

def delete_transit_gateway_prefix_list_reference(
    self,
    *,
    TransitGatewayRouteTableId: str,
    PrefixListId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayPrefixListReferenceResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayPrefixListReferenceResultTypeDef
# 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)
  1. See DeleteTransitGatewayPrefixListReferenceRequestRequestTypeDef

delete_transit_gateway_route#

Deletes the specified route from the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_route method. boto3 documentation

# delete_transit_gateway_route method definition

def delete_transit_gateway_route(
    self,
    *,
    TransitGatewayRouteTableId: str,
    DestinationCidrBlock: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayRouteResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayRouteResultTypeDef
# delete_transit_gateway_route method usage example with argument unpacking

kwargs: DeleteTransitGatewayRouteRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "DestinationCidrBlock": ...,
}

parent.delete_transit_gateway_route(**kwargs)
  1. See DeleteTransitGatewayRouteRequestRequestTypeDef

delete_transit_gateway_route_table#

Deletes the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_route_table method. boto3 documentation

# delete_transit_gateway_route_table method definition

def delete_transit_gateway_route_table(
    self,
    *,
    TransitGatewayRouteTableId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayRouteTableResultTypeDef
# delete_transit_gateway_route_table method usage example with argument unpacking

kwargs: DeleteTransitGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.delete_transit_gateway_route_table(**kwargs)
  1. See DeleteTransitGatewayRouteTableRequestRequestTypeDef

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 boto3.client("ec2").delete_transit_gateway_route_table_announcement method. boto3 documentation

# delete_transit_gateway_route_table_announcement method definition

def delete_transit_gateway_route_table_announcement(
    self,
    *,
    TransitGatewayRouteTableAnnouncementId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayRouteTableAnnouncementResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayRouteTableAnnouncementResultTypeDef
# delete_transit_gateway_route_table_announcement method usage example with argument unpacking

kwargs: DeleteTransitGatewayRouteTableAnnouncementRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableAnnouncementId": ...,
}

parent.delete_transit_gateway_route_table_announcement(**kwargs)
  1. See DeleteTransitGatewayRouteTableAnnouncementRequestRequestTypeDef

delete_transit_gateway_vpc_attachment#

Deletes the specified VPC attachment.

Type annotations and code completion for boto3.client("ec2").delete_transit_gateway_vpc_attachment method. boto3 documentation

# delete_transit_gateway_vpc_attachment method definition

def delete_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayVpcAttachmentResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayVpcAttachmentResultTypeDef
# delete_transit_gateway_vpc_attachment method usage example with argument unpacking

kwargs: DeleteTransitGatewayVpcAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.delete_transit_gateway_vpc_attachment(**kwargs)
  1. See DeleteTransitGatewayVpcAttachmentRequestRequestTypeDef

delete_verified_access_endpoint#

Delete an Amazon Web Services Verified Access endpoint.

Type annotations and code completion for boto3.client("ec2").delete_verified_access_endpoint method. boto3 documentation

# delete_verified_access_endpoint method definition

def delete_verified_access_endpoint(
    self,
    *,
    VerifiedAccessEndpointId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DeleteVerifiedAccessEndpointResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessEndpointResultTypeDef
# delete_verified_access_endpoint method usage example with argument unpacking

kwargs: DeleteVerifiedAccessEndpointRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.delete_verified_access_endpoint(**kwargs)
  1. See DeleteVerifiedAccessEndpointRequestRequestTypeDef

delete_verified_access_group#

Delete an Amazon Web Services Verified Access group.

Type annotations and code completion for boto3.client("ec2").delete_verified_access_group method. boto3 documentation

# delete_verified_access_group method definition

def delete_verified_access_group(
    self,
    *,
    VerifiedAccessGroupId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DeleteVerifiedAccessGroupResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessGroupResultTypeDef
# delete_verified_access_group method usage example with argument unpacking

kwargs: DeleteVerifiedAccessGroupRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.delete_verified_access_group(**kwargs)
  1. See DeleteVerifiedAccessGroupRequestRequestTypeDef

delete_verified_access_instance#

Delete an Amazon Web Services Verified Access instance.

Type annotations and code completion for boto3.client("ec2").delete_verified_access_instance method. boto3 documentation

# delete_verified_access_instance method definition

def delete_verified_access_instance(
    self,
    *,
    VerifiedAccessInstanceId: str,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> DeleteVerifiedAccessInstanceResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessInstanceResultTypeDef
# delete_verified_access_instance method usage example with argument unpacking

kwargs: DeleteVerifiedAccessInstanceRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
}

parent.delete_verified_access_instance(**kwargs)
  1. See DeleteVerifiedAccessInstanceRequestRequestTypeDef

delete_verified_access_trust_provider#

Delete an Amazon Web Services Verified Access trust provider.

Type annotations and code completion for boto3.client("ec2").delete_verified_access_trust_provider method. boto3 documentation

# delete_verified_access_trust_provider method definition

def delete_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessTrustProviderId: str,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> DeleteVerifiedAccessTrustProviderResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessTrustProviderResultTypeDef
# delete_verified_access_trust_provider method usage example with argument unpacking

kwargs: DeleteVerifiedAccessTrustProviderRequestRequestTypeDef = {  # (1)
    "VerifiedAccessTrustProviderId": ...,
}

parent.delete_verified_access_trust_provider(**kwargs)
  1. See DeleteVerifiedAccessTrustProviderRequestRequestTypeDef

delete_volume#

Deletes the specified EBS volume.

Type annotations and code completion for boto3.client("ec2").delete_volume method. boto3 documentation

# delete_volume method definition

def delete_volume(
    self,
    *,
    VolumeId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_volume method usage example with argument unpacking

kwargs: DeleteVolumeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.delete_volume(**kwargs)
  1. See DeleteVolumeRequestRequestTypeDef

delete_vpc#

Deletes the specified VPC.

Type annotations and code completion for boto3.client("ec2").delete_vpc method. boto3 documentation

# delete_vpc method definition

def delete_vpc(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_vpc method usage example with argument unpacking

kwargs: DeleteVpcRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.delete_vpc(**kwargs)
  1. See DeleteVpcRequestRequestTypeDef

delete_vpc_endpoint_connection_notifications#

Deletes the specified VPC endpoint connection notifications.

Type annotations and code completion for boto3.client("ec2").delete_vpc_endpoint_connection_notifications method. boto3 documentation

# delete_vpc_endpoint_connection_notifications method definition

def delete_vpc_endpoint_connection_notifications(
    self,
    *,
    ConnectionNotificationIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointConnectionNotificationsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointConnectionNotificationsResultTypeDef
# delete_vpc_endpoint_connection_notifications method usage example with argument unpacking

kwargs: DeleteVpcEndpointConnectionNotificationsRequestRequestTypeDef = {  # (1)
    "ConnectionNotificationIds": ...,
}

parent.delete_vpc_endpoint_connection_notifications(**kwargs)
  1. See DeleteVpcEndpointConnectionNotificationsRequestRequestTypeDef

delete_vpc_endpoint_service_configurations#

Deletes the specified VPC endpoint service configurations.

Type annotations and code completion for boto3.client("ec2").delete_vpc_endpoint_service_configurations method. boto3 documentation

# delete_vpc_endpoint_service_configurations method definition

def delete_vpc_endpoint_service_configurations(
    self,
    *,
    ServiceIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointServiceConfigurationsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointServiceConfigurationsResultTypeDef
# delete_vpc_endpoint_service_configurations method usage example with argument unpacking

kwargs: DeleteVpcEndpointServiceConfigurationsRequestRequestTypeDef = {  # (1)
    "ServiceIds": ...,
}

parent.delete_vpc_endpoint_service_configurations(**kwargs)
  1. See DeleteVpcEndpointServiceConfigurationsRequestRequestTypeDef

delete_vpc_endpoints#

Deletes the specified VPC endpoints.

Type annotations and code completion for boto3.client("ec2").delete_vpc_endpoints method. boto3 documentation

# delete_vpc_endpoints method definition

def delete_vpc_endpoints(
    self,
    *,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointsResultTypeDef
# delete_vpc_endpoints method usage example with argument unpacking

kwargs: DeleteVpcEndpointsRequestRequestTypeDef = {  # (1)
    "VpcEndpointIds": ...,
}

parent.delete_vpc_endpoints(**kwargs)
  1. See DeleteVpcEndpointsRequestRequestTypeDef

delete_vpc_peering_connection#

Deletes a VPC peering connection.

Type annotations and code completion for boto3.client("ec2").delete_vpc_peering_connection method. boto3 documentation

# delete_vpc_peering_connection method definition

def delete_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> DeleteVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See DeleteVpcPeeringConnectionResultTypeDef
# delete_vpc_peering_connection method usage example with argument unpacking

kwargs: DeleteVpcPeeringConnectionRequestRequestTypeDef = {  # (1)
    "VpcPeeringConnectionId": ...,
}

parent.delete_vpc_peering_connection(**kwargs)
  1. See DeleteVpcPeeringConnectionRequestRequestTypeDef

delete_vpn_connection#

Deletes the specified VPN connection.

Type annotations and code completion for boto3.client("ec2").delete_vpn_connection method. boto3 documentation

# delete_vpn_connection method definition

def delete_vpn_connection(
    self,
    *,
    VpnConnectionId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_vpn_connection method usage example with argument unpacking

kwargs: DeleteVpnConnectionRequestRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
}

parent.delete_vpn_connection(**kwargs)
  1. See DeleteVpnConnectionRequestRequestTypeDef

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 boto3.client("ec2").delete_vpn_connection_route method. boto3 documentation

# delete_vpn_connection_route method definition

def delete_vpn_connection_route(
    self,
    *,
    DestinationCidrBlock: str,
    VpnConnectionId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_vpn_connection_route method usage example with argument unpacking

kwargs: DeleteVpnConnectionRouteRequestRequestTypeDef = {  # (1)
    "DestinationCidrBlock": ...,
    "VpnConnectionId": ...,
}

parent.delete_vpn_connection_route(**kwargs)
  1. See DeleteVpnConnectionRouteRequestRequestTypeDef

delete_vpn_gateway#

Deletes the specified virtual private gateway.

Type annotations and code completion for boto3.client("ec2").delete_vpn_gateway method. boto3 documentation

# delete_vpn_gateway method definition

def delete_vpn_gateway(
    self,
    *,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_vpn_gateway method usage example with argument unpacking

kwargs: DeleteVpnGatewayRequestRequestTypeDef = {  # (1)
    "VpnGatewayId": ...,
}

parent.delete_vpn_gateway(**kwargs)
  1. See DeleteVpnGatewayRequestRequestTypeDef

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 boto3.client("ec2").deprovision_byoip_cidr method. boto3 documentation

# deprovision_byoip_cidr method definition

def deprovision_byoip_cidr(
    self,
    *,
    Cidr: str,
    DryRun: bool = ...,
) -> DeprovisionByoipCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionByoipCidrResultTypeDef
# deprovision_byoip_cidr method usage example with argument unpacking

kwargs: DeprovisionByoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.deprovision_byoip_cidr(**kwargs)
  1. See DeprovisionByoipCidrRequestRequestTypeDef

deprovision_ipam_byoasn#

Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services account.

Type annotations and code completion for boto3.client("ec2").deprovision_ipam_byoasn method. boto3 documentation

# deprovision_ipam_byoasn method definition

def deprovision_ipam_byoasn(
    self,
    *,
    IpamId: str,
    Asn: str,
    DryRun: bool = ...,
) -> DeprovisionIpamByoasnResultTypeDef:  # (1)
    ...
  1. See DeprovisionIpamByoasnResultTypeDef
# deprovision_ipam_byoasn method usage example with argument unpacking

kwargs: DeprovisionIpamByoasnRequestRequestTypeDef = {  # (1)
    "IpamId": ...,
    "Asn": ...,
}

parent.deprovision_ipam_byoasn(**kwargs)
  1. See DeprovisionIpamByoasnRequestRequestTypeDef

deprovision_ipam_pool_cidr#

Deprovision a CIDR provisioned from an IPAM pool.

Type annotations and code completion for boto3.client("ec2").deprovision_ipam_pool_cidr method. boto3 documentation

# deprovision_ipam_pool_cidr method definition

def deprovision_ipam_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cidr: str = ...,
) -> DeprovisionIpamPoolCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionIpamPoolCidrResultTypeDef
# deprovision_ipam_pool_cidr method usage example with argument unpacking

kwargs: DeprovisionIpamPoolCidrRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.deprovision_ipam_pool_cidr(**kwargs)
  1. See DeprovisionIpamPoolCidrRequestRequestTypeDef

deprovision_public_ipv4_pool_cidr#

Deprovision a CIDR from a public IPv4 pool.

Type annotations and code completion for boto3.client("ec2").deprovision_public_ipv4_pool_cidr method. boto3 documentation

# deprovision_public_ipv4_pool_cidr method definition

def deprovision_public_ipv4_pool_cidr(
    self,
    *,
    PoolId: str,
    Cidr: str,
    DryRun: bool = ...,
) -> DeprovisionPublicIpv4PoolCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionPublicIpv4PoolCidrResultTypeDef
# deprovision_public_ipv4_pool_cidr method usage example with argument unpacking

kwargs: DeprovisionPublicIpv4PoolCidrRequestRequestTypeDef = {  # (1)
    "PoolId": ...,
    "Cidr": ...,
}

parent.deprovision_public_ipv4_pool_cidr(**kwargs)
  1. See DeprovisionPublicIpv4PoolCidrRequestRequestTypeDef

deregister_image#

Deregisters the specified AMI.

Type annotations and code completion for boto3.client("ec2").deregister_image method. boto3 documentation

# deregister_image method definition

def deregister_image(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# deregister_image method usage example with argument unpacking

kwargs: DeregisterImageRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.deregister_image(**kwargs)
  1. See DeregisterImageRequestRequestTypeDef

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 boto3.client("ec2").deregister_instance_event_notification_attributes method. boto3 documentation

# deregister_instance_event_notification_attributes method definition

def deregister_instance_event_notification_attributes(
    self,
    *,
    InstanceTagAttribute: DeregisterInstanceTagAttributeRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> DeregisterInstanceEventNotificationAttributesResultTypeDef:  # (2)
    ...
  1. See DeregisterInstanceTagAttributeRequestTypeDef
  2. See DeregisterInstanceEventNotificationAttributesResultTypeDef
# deregister_instance_event_notification_attributes method usage example with argument unpacking

kwargs: DeregisterInstanceEventNotificationAttributesRequestRequestTypeDef = {  # (1)
    "InstanceTagAttribute": ...,
}

parent.deregister_instance_event_notification_attributes(**kwargs)
  1. See DeregisterInstanceEventNotificationAttributesRequestRequestTypeDef

deregister_transit_gateway_multicast_group_members#

Deregisters the specified members (network interfaces) from the transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").deregister_transit_gateway_multicast_group_members method. boto3 documentation

# deregister_transit_gateway_multicast_group_members method definition

def deregister_transit_gateway_multicast_group_members(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    GroupIpAddress: str = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupMembersResultTypeDef:  # (1)
    ...
  1. See DeregisterTransitGatewayMulticastGroupMembersResultTypeDef
# deregister_transit_gateway_multicast_group_members method usage example with argument unpacking

kwargs: DeregisterTransitGatewayMulticastGroupMembersRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.deregister_transit_gateway_multicast_group_members(**kwargs)
  1. See DeregisterTransitGatewayMulticastGroupMembersRequestRequestTypeDef

deregister_transit_gateway_multicast_group_sources#

Deregisters the specified sources (network interfaces) from the transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").deregister_transit_gateway_multicast_group_sources method. boto3 documentation

# deregister_transit_gateway_multicast_group_sources method definition

def deregister_transit_gateway_multicast_group_sources(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    GroupIpAddress: str = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupSourcesResultTypeDef:  # (1)
    ...
  1. See DeregisterTransitGatewayMulticastGroupSourcesResultTypeDef
# deregister_transit_gateway_multicast_group_sources method usage example with argument unpacking

kwargs: DeregisterTransitGatewayMulticastGroupSourcesRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.deregister_transit_gateway_multicast_group_sources(**kwargs)
  1. See DeregisterTransitGatewayMulticastGroupSourcesRequestRequestTypeDef

describe_account_attributes#

Describes attributes of your Amazon Web Services account.

Type annotations and code completion for boto3.client("ec2").describe_account_attributes method. boto3 documentation

# describe_account_attributes method definition

def describe_account_attributes(
    self,
    *,
    AttributeNames: Sequence[AccountAttributeNameType] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeAccountAttributesResultTypeDef:  # (2)
    ...
  1. See AccountAttributeNameType
  2. See DescribeAccountAttributesResultTypeDef
# describe_account_attributes method usage example with argument unpacking

kwargs: DescribeAccountAttributesRequestRequestTypeDef = {  # (1)
    "AttributeNames": ...,
}

parent.describe_account_attributes(**kwargs)
  1. See DescribeAccountAttributesRequestRequestTypeDef

describe_address_transfers#

Describes an Elastic IP address transfer.

Type annotations and code completion for boto3.client("ec2").describe_address_transfers method. boto3 documentation

# describe_address_transfers method definition

def describe_address_transfers(
    self,
    *,
    AllocationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeAddressTransfersResultTypeDef:  # (1)
    ...
  1. See DescribeAddressTransfersResultTypeDef
# describe_address_transfers method usage example with argument unpacking

kwargs: DescribeAddressTransfersRequestRequestTypeDef = {  # (1)
    "AllocationIds": ...,
}

parent.describe_address_transfers(**kwargs)
  1. See DescribeAddressTransfersRequestRequestTypeDef

describe_addresses#

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

Type annotations and code completion for boto3.client("ec2").describe_addresses method. boto3 documentation

# describe_addresses method definition

def describe_addresses(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    PublicIps: Sequence[str] = ...,
    AllocationIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeAddressesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAddressesResultTypeDef
# describe_addresses method usage example with argument unpacking

kwargs: DescribeAddressesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_addresses(**kwargs)
  1. See DescribeAddressesRequestRequestTypeDef

describe_addresses_attribute#

Describes the attributes of the specified Elastic IP addresses.

Type annotations and code completion for boto3.client("ec2").describe_addresses_attribute method. boto3 documentation

# describe_addresses_attribute method definition

def describe_addresses_attribute(
    self,
    *,
    AllocationIds: Sequence[str] = ...,
    Attribute: AddressAttributeNameType = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeAddressesAttributeResultTypeDef:  # (2)
    ...
  1. See AddressAttributeNameType
  2. See DescribeAddressesAttributeResultTypeDef
# describe_addresses_attribute method usage example with argument unpacking

kwargs: DescribeAddressesAttributeRequestRequestTypeDef = {  # (1)
    "AllocationIds": ...,
}

parent.describe_addresses_attribute(**kwargs)
  1. See DescribeAddressesAttributeRequestRequestTypeDef

describe_aggregate_id_format#

Describes the longer ID format settings for all resource types in a specific Region.

Type annotations and code completion for boto3.client("ec2").describe_aggregate_id_format method. boto3 documentation

# describe_aggregate_id_format method definition

def describe_aggregate_id_format(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeAggregateIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeAggregateIdFormatResultTypeDef
# describe_aggregate_id_format method usage example with argument unpacking

kwargs: DescribeAggregateIdFormatRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_aggregate_id_format(**kwargs)
  1. See DescribeAggregateIdFormatRequestRequestTypeDef

describe_availability_zones#

Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you.

Type annotations and code completion for boto3.client("ec2").describe_availability_zones method. boto3 documentation

# describe_availability_zones method definition

def describe_availability_zones(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ZoneNames: Sequence[str] = ...,
    ZoneIds: Sequence[str] = ...,
    AllAvailabilityZones: bool = ...,
    DryRun: bool = ...,
) -> DescribeAvailabilityZonesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAvailabilityZonesResultTypeDef
# describe_availability_zones method usage example with argument unpacking

kwargs: DescribeAvailabilityZonesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_availability_zones(**kwargs)
  1. See DescribeAvailabilityZonesRequestRequestTypeDef

describe_aws_network_performance_metric_subscriptions#

Describes the current Infrastructure Performance metric subscriptions.

Type annotations and code completion for boto3.client("ec2").describe_aws_network_performance_metric_subscriptions method. boto3 documentation

# describe_aws_network_performance_metric_subscriptions method definition

def describe_aws_network_performance_metric_subscriptions(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeAwsNetworkPerformanceMetricSubscriptionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAwsNetworkPerformanceMetricSubscriptionsResultTypeDef
# describe_aws_network_performance_metric_subscriptions method usage example with argument unpacking

kwargs: DescribeAwsNetworkPerformanceMetricSubscriptionsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_aws_network_performance_metric_subscriptions(**kwargs)
  1. See DescribeAwsNetworkPerformanceMetricSubscriptionsRequestRequestTypeDef

describe_bundle_tasks#

Describes the specified bundle tasks or all of your bundle tasks.

Type annotations and code completion for boto3.client("ec2").describe_bundle_tasks method. boto3 documentation

# describe_bundle_tasks method definition

def describe_bundle_tasks(
    self,
    *,
    BundleIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeBundleTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeBundleTasksResultTypeDef
# describe_bundle_tasks method usage example with argument unpacking

kwargs: DescribeBundleTasksRequestRequestTypeDef = {  # (1)
    "BundleIds": ...,
}

parent.describe_bundle_tasks(**kwargs)
  1. See DescribeBundleTasksRequestRequestTypeDef

describe_byoip_cidrs#

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

Type annotations and code completion for boto3.client("ec2").describe_byoip_cidrs method. boto3 documentation

# describe_byoip_cidrs method definition

def describe_byoip_cidrs(
    self,
    *,
    MaxResults: int,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeByoipCidrsResultTypeDef:  # (1)
    ...
  1. See DescribeByoipCidrsResultTypeDef
# describe_byoip_cidrs method usage example with argument unpacking

kwargs: DescribeByoipCidrsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_byoip_cidrs(**kwargs)
  1. See DescribeByoipCidrsRequestRequestTypeDef

describe_capacity_block_offerings#

Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using.

Type annotations and code completion for boto3.client("ec2").describe_capacity_block_offerings method. boto3 documentation

# describe_capacity_block_offerings method definition

def describe_capacity_block_offerings(
    self,
    *,
    InstanceType: str,
    InstanceCount: int,
    CapacityDurationHours: int,
    DryRun: bool = ...,
    StartDateRange: Union[datetime, str] = ...,
    EndDateRange: Union[datetime, str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeCapacityBlockOfferingsResultTypeDef:  # (1)
    ...
  1. See DescribeCapacityBlockOfferingsResultTypeDef
# describe_capacity_block_offerings method usage example with argument unpacking

kwargs: DescribeCapacityBlockOfferingsRequestRequestTypeDef = {  # (1)
    "InstanceType": ...,
    "InstanceCount": ...,
    "CapacityDurationHours": ...,
}

parent.describe_capacity_block_offerings(**kwargs)
  1. See DescribeCapacityBlockOfferingsRequestRequestTypeDef

describe_capacity_reservation_fleets#

Describes one or more Capacity Reservation Fleets.

Type annotations and code completion for boto3.client("ec2").describe_capacity_reservation_fleets method. boto3 documentation

# describe_capacity_reservation_fleets method definition

def describe_capacity_reservation_fleets(
    self,
    *,
    CapacityReservationFleetIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCapacityReservationFleetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCapacityReservationFleetsResultTypeDef
# describe_capacity_reservation_fleets method usage example with argument unpacking

kwargs: DescribeCapacityReservationFleetsRequestRequestTypeDef = {  # (1)
    "CapacityReservationFleetIds": ...,
}

parent.describe_capacity_reservation_fleets(**kwargs)
  1. See DescribeCapacityReservationFleetsRequestRequestTypeDef

describe_capacity_reservations#

Describes one or more of your Capacity Reservations.

Type annotations and code completion for boto3.client("ec2").describe_capacity_reservations method. boto3 documentation

# describe_capacity_reservations method definition

def describe_capacity_reservations(
    self,
    *,
    CapacityReservationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCapacityReservationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCapacityReservationsResultTypeDef
# describe_capacity_reservations method usage example with argument unpacking

kwargs: DescribeCapacityReservationsRequestRequestTypeDef = {  # (1)
    "CapacityReservationIds": ...,
}

parent.describe_capacity_reservations(**kwargs)
  1. See DescribeCapacityReservationsRequestRequestTypeDef

describe_carrier_gateways#

Describes one or more of your carrier gateways.

Type annotations and code completion for boto3.client("ec2").describe_carrier_gateways method. boto3 documentation

# describe_carrier_gateways method definition

def describe_carrier_gateways(
    self,
    *,
    CarrierGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeCarrierGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCarrierGatewaysResultTypeDef
# describe_carrier_gateways method usage example with argument unpacking

kwargs: DescribeCarrierGatewaysRequestRequestTypeDef = {  # (1)
    "CarrierGatewayIds": ...,
}

parent.describe_carrier_gateways(**kwargs)
  1. See DescribeCarrierGatewaysRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").describe_classic_link_instances method. boto3 documentation

# describe_classic_link_instances method definition

def describe_classic_link_instances(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    InstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeClassicLinkInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClassicLinkInstancesResultTypeDef
# describe_classic_link_instances method usage example with argument unpacking

kwargs: DescribeClassicLinkInstancesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_classic_link_instances(**kwargs)
  1. See DescribeClassicLinkInstancesRequestRequestTypeDef

describe_client_vpn_authorization_rules#

Describes the authorization rules for a specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_authorization_rules method. boto3 documentation

# describe_client_vpn_authorization_rules method definition

def describe_client_vpn_authorization_rules(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
) -> DescribeClientVpnAuthorizationRulesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnAuthorizationRulesResultTypeDef
# describe_client_vpn_authorization_rules method usage example with argument unpacking

kwargs: DescribeClientVpnAuthorizationRulesRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_authorization_rules(**kwargs)
  1. See DescribeClientVpnAuthorizationRulesRequestRequestTypeDef

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 boto3.client("ec2").describe_client_vpn_connections method. boto3 documentation

# describe_client_vpn_connections method definition

def describe_client_vpn_connections(
    self,
    *,
    ClientVpnEndpointId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeClientVpnConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnConnectionsResultTypeDef
# describe_client_vpn_connections method usage example with argument unpacking

kwargs: DescribeClientVpnConnectionsRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_connections(**kwargs)
  1. See DescribeClientVpnConnectionsRequestRequestTypeDef

describe_client_vpn_endpoints#

Describes one or more Client VPN endpoints in the account.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_endpoints method. boto3 documentation

# describe_client_vpn_endpoints method definition

def describe_client_vpn_endpoints(
    self,
    *,
    ClientVpnEndpointIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeClientVpnEndpointsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnEndpointsResultTypeDef
# describe_client_vpn_endpoints method usage example with argument unpacking

kwargs: DescribeClientVpnEndpointsRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointIds": ...,
}

parent.describe_client_vpn_endpoints(**kwargs)
  1. See DescribeClientVpnEndpointsRequestRequestTypeDef

describe_client_vpn_routes#

Describes the routes for the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_routes method. boto3 documentation

# describe_client_vpn_routes method definition

def describe_client_vpn_routes(
    self,
    *,
    ClientVpnEndpointId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeClientVpnRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnRoutesResultTypeDef
# describe_client_vpn_routes method usage example with argument unpacking

kwargs: DescribeClientVpnRoutesRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_routes(**kwargs)
  1. See DescribeClientVpnRoutesRequestRequestTypeDef

describe_client_vpn_target_networks#

Describes the target networks associated with the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_target_networks method. boto3 documentation

# describe_client_vpn_target_networks method definition

def describe_client_vpn_target_networks(
    self,
    *,
    ClientVpnEndpointId: str,
    AssociationIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeClientVpnTargetNetworksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnTargetNetworksResultTypeDef
# describe_client_vpn_target_networks method usage example with argument unpacking

kwargs: DescribeClientVpnTargetNetworksRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_target_networks(**kwargs)
  1. See DescribeClientVpnTargetNetworksRequestRequestTypeDef

describe_coip_pools#

Describes the specified customer-owned address pools or all of your customer-owned address pools.

Type annotations and code completion for boto3.client("ec2").describe_coip_pools method. boto3 documentation

# describe_coip_pools method definition

def describe_coip_pools(
    self,
    *,
    PoolIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeCoipPoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCoipPoolsResultTypeDef
# describe_coip_pools method usage example with argument unpacking

kwargs: DescribeCoipPoolsRequestRequestTypeDef = {  # (1)
    "PoolIds": ...,
}

parent.describe_coip_pools(**kwargs)
  1. See DescribeCoipPoolsRequestRequestTypeDef

describe_conversion_tasks#

Describes the specified conversion tasks or all your conversion tasks.

Type annotations and code completion for boto3.client("ec2").describe_conversion_tasks method. boto3 documentation

# describe_conversion_tasks method definition

def describe_conversion_tasks(
    self,
    *,
    ConversionTaskIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeConversionTasksResultTypeDef:  # (1)
    ...
  1. See DescribeConversionTasksResultTypeDef
# describe_conversion_tasks method usage example with argument unpacking

kwargs: DescribeConversionTasksRequestRequestTypeDef = {  # (1)
    "ConversionTaskIds": ...,
}

parent.describe_conversion_tasks(**kwargs)
  1. See DescribeConversionTasksRequestRequestTypeDef

describe_customer_gateways#

Describes one or more of your VPN customer gateways.

Type annotations and code completion for boto3.client("ec2").describe_customer_gateways method. boto3 documentation

# describe_customer_gateways method definition

def describe_customer_gateways(
    self,
    *,
    CustomerGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCustomerGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCustomerGatewaysResultTypeDef
# describe_customer_gateways method usage example with argument unpacking

kwargs: DescribeCustomerGatewaysRequestRequestTypeDef = {  # (1)
    "CustomerGatewayIds": ...,
}

parent.describe_customer_gateways(**kwargs)
  1. See DescribeCustomerGatewaysRequestRequestTypeDef

describe_dhcp_options#

Describes one or more of your DHCP options sets.

Type annotations and code completion for boto3.client("ec2").describe_dhcp_options method. boto3 documentation

# describe_dhcp_options method definition

def describe_dhcp_options(
    self,
    *,
    DhcpOptionsIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeDhcpOptionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeDhcpOptionsResultTypeDef
# describe_dhcp_options method usage example with argument unpacking

kwargs: DescribeDhcpOptionsRequestRequestTypeDef = {  # (1)
    "DhcpOptionsIds": ...,
}

parent.describe_dhcp_options(**kwargs)
  1. See DescribeDhcpOptionsRequestRequestTypeDef

describe_egress_only_internet_gateways#

Describes one or more of your egress-only internet gateways.

Type annotations and code completion for boto3.client("ec2").describe_egress_only_internet_gateways method. boto3 documentation

# describe_egress_only_internet_gateways method definition

def describe_egress_only_internet_gateways(
    self,
    *,
    DryRun: bool = ...,
    EgressOnlyInternetGatewayIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeEgressOnlyInternetGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeEgressOnlyInternetGatewaysResultTypeDef
# describe_egress_only_internet_gateways method usage example with argument unpacking

kwargs: DescribeEgressOnlyInternetGatewaysRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_egress_only_internet_gateways(**kwargs)
  1. See DescribeEgressOnlyInternetGatewaysRequestRequestTypeDef

describe_elastic_gpus#

.

Type annotations and code completion for boto3.client("ec2").describe_elastic_gpus method. boto3 documentation

# describe_elastic_gpus method definition

def describe_elastic_gpus(
    self,
    *,
    ElasticGpuIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeElasticGpusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeElasticGpusResultTypeDef
# describe_elastic_gpus method usage example with argument unpacking

kwargs: DescribeElasticGpusRequestRequestTypeDef = {  # (1)
    "ElasticGpuIds": ...,
}

parent.describe_elastic_gpus(**kwargs)
  1. See DescribeElasticGpusRequestRequestTypeDef

describe_export_image_tasks#

Describes the specified export image tasks or all of your export image tasks.

Type annotations and code completion for boto3.client("ec2").describe_export_image_tasks method. boto3 documentation

# describe_export_image_tasks method definition

def describe_export_image_tasks(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ExportImageTaskIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeExportImageTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeExportImageTasksResultTypeDef
# describe_export_image_tasks method usage example with argument unpacking

kwargs: DescribeExportImageTasksRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_export_image_tasks(**kwargs)
  1. See DescribeExportImageTasksRequestRequestTypeDef

describe_export_tasks#

Describes the specified export instance tasks or all of your export instance tasks.

Type annotations and code completion for boto3.client("ec2").describe_export_tasks method. boto3 documentation

# describe_export_tasks method definition

def describe_export_tasks(
    self,
    *,
    ExportTaskIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeExportTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeExportTasksResultTypeDef
# describe_export_tasks method usage example with argument unpacking

kwargs: DescribeExportTasksRequestRequestTypeDef = {  # (1)
    "ExportTaskIds": ...,
}

parent.describe_export_tasks(**kwargs)
  1. See DescribeExportTasksRequestRequestTypeDef

describe_fast_launch_images#

Describe details for Windows AMIs that are configured for Windows fast launch.

Type annotations and code completion for boto3.client("ec2").describe_fast_launch_images method. boto3 documentation

# describe_fast_launch_images method definition

def describe_fast_launch_images(
    self,
    *,
    ImageIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeFastLaunchImagesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFastLaunchImagesResultTypeDef
# describe_fast_launch_images method usage example with argument unpacking

kwargs: DescribeFastLaunchImagesRequestRequestTypeDef = {  # (1)
    "ImageIds": ...,
}

parent.describe_fast_launch_images(**kwargs)
  1. See DescribeFastLaunchImagesRequestRequestTypeDef

describe_fast_snapshot_restores#

Describes the state of fast snapshot restores for your snapshots.

Type annotations and code completion for boto3.client("ec2").describe_fast_snapshot_restores method. boto3 documentation

# describe_fast_snapshot_restores method definition

def describe_fast_snapshot_restores(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeFastSnapshotRestoresResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFastSnapshotRestoresResultTypeDef
# describe_fast_snapshot_restores method usage example with argument unpacking

kwargs: DescribeFastSnapshotRestoresRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_fast_snapshot_restores(**kwargs)
  1. See DescribeFastSnapshotRestoresRequestRequestTypeDef

describe_fleet_history#

Describes the events for the specified EC2 Fleet during the specified time.

Type annotations and code completion for boto3.client("ec2").describe_fleet_history method. boto3 documentation

# describe_fleet_history method definition

def describe_fleet_history(
    self,
    *,
    FleetId: str,
    StartTime: Union[datetime, str],
    DryRun: bool = ...,
    EventType: FleetEventTypeType = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeFleetHistoryResultTypeDef:  # (2)
    ...
  1. See FleetEventTypeType
  2. See DescribeFleetHistoryResultTypeDef
# describe_fleet_history method usage example with argument unpacking

kwargs: DescribeFleetHistoryRequestRequestTypeDef = {  # (1)
    "FleetId": ...,
    "StartTime": ...,
}

parent.describe_fleet_history(**kwargs)
  1. See DescribeFleetHistoryRequestRequestTypeDef

describe_fleet_instances#

Describes the running instances for the specified EC2 Fleet.

Type annotations and code completion for boto3.client("ec2").describe_fleet_instances method. boto3 documentation

# describe_fleet_instances method definition

def describe_fleet_instances(
    self,
    *,
    FleetId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeFleetInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFleetInstancesResultTypeDef
# describe_fleet_instances method usage example with argument unpacking

kwargs: DescribeFleetInstancesRequestRequestTypeDef = {  # (1)
    "FleetId": ...,
}

parent.describe_fleet_instances(**kwargs)
  1. See DescribeFleetInstancesRequestRequestTypeDef

describe_fleets#

Describes the specified EC2 Fleet or all of your EC2 Fleets.

Type annotations and code completion for boto3.client("ec2").describe_fleets method. boto3 documentation

# describe_fleets method definition

def describe_fleets(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    FleetIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeFleetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFleetsResultTypeDef
# describe_fleets method usage example with argument unpacking

kwargs: DescribeFleetsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_fleets(**kwargs)
  1. See DescribeFleetsRequestRequestTypeDef

describe_flow_logs#

Describes one or more flow logs.

Type annotations and code completion for boto3.client("ec2").describe_flow_logs method. boto3 documentation

# describe_flow_logs method definition

def describe_flow_logs(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    FlowLogIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeFlowLogsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFlowLogsResultTypeDef
# describe_flow_logs method usage example with argument unpacking

kwargs: DescribeFlowLogsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_flow_logs(**kwargs)
  1. See DescribeFlowLogsRequestRequestTypeDef

describe_fpga_image_attribute#

Describes the specified attribute of the specified Amazon FPGA Image (AFI).

Type annotations and code completion for boto3.client("ec2").describe_fpga_image_attribute method. boto3 documentation

# describe_fpga_image_attribute method definition

def describe_fpga_image_attribute(
    self,
    *,
    FpgaImageId: str,
    Attribute: FpgaImageAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> DescribeFpgaImageAttributeResultTypeDef:  # (2)
    ...
  1. See FpgaImageAttributeNameType
  2. See DescribeFpgaImageAttributeResultTypeDef
# describe_fpga_image_attribute method usage example with argument unpacking

kwargs: DescribeFpgaImageAttributeRequestRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
    "Attribute": ...,
}

parent.describe_fpga_image_attribute(**kwargs)
  1. See DescribeFpgaImageAttributeRequestRequestTypeDef

describe_fpga_images#

Describes the Amazon FPGA Images (AFIs) available to you.

Type annotations and code completion for boto3.client("ec2").describe_fpga_images method. boto3 documentation

# describe_fpga_images method definition

def describe_fpga_images(
    self,
    *,
    DryRun: bool = ...,
    FpgaImageIds: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeFpgaImagesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFpgaImagesResultTypeDef
# describe_fpga_images method usage example with argument unpacking

kwargs: DescribeFpgaImagesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_fpga_images(**kwargs)
  1. See DescribeFpgaImagesRequestRequestTypeDef

describe_host_reservation_offerings#

Describes the Dedicated Host reservations that are available to purchase.

Type annotations and code completion for boto3.client("ec2").describe_host_reservation_offerings method. boto3 documentation

# describe_host_reservation_offerings method definition

def describe_host_reservation_offerings(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxDuration: int = ...,
    MaxResults: int = ...,
    MinDuration: int = ...,
    NextToken: str = ...,
    OfferingId: str = ...,
) -> DescribeHostReservationOfferingsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeHostReservationOfferingsResultTypeDef
# describe_host_reservation_offerings method usage example with argument unpacking

kwargs: DescribeHostReservationOfferingsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_host_reservation_offerings(**kwargs)
  1. See DescribeHostReservationOfferingsRequestRequestTypeDef

describe_host_reservations#

Describes reservations that are associated with Dedicated Hosts in your account.

Type annotations and code completion for boto3.client("ec2").describe_host_reservations method. boto3 documentation

# describe_host_reservations method definition

def describe_host_reservations(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    HostReservationIdSet: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeHostReservationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeHostReservationsResultTypeDef
# describe_host_reservations method usage example with argument unpacking

kwargs: DescribeHostReservationsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_host_reservations(**kwargs)
  1. See DescribeHostReservationsRequestRequestTypeDef

describe_hosts#

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

Type annotations and code completion for boto3.client("ec2").describe_hosts method. boto3 documentation

# describe_hosts method definition

def describe_hosts(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    HostIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeHostsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeHostsResultTypeDef
# describe_hosts method usage example with argument unpacking

kwargs: DescribeHostsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_hosts(**kwargs)
  1. See DescribeHostsRequestRequestTypeDef

describe_iam_instance_profile_associations#

Describes your IAM instance profile associations.

Type annotations and code completion for boto3.client("ec2").describe_iam_instance_profile_associations method. boto3 documentation

# describe_iam_instance_profile_associations method definition

def describe_iam_instance_profile_associations(
    self,
    *,
    AssociationIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeIamInstanceProfileAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIamInstanceProfileAssociationsResultTypeDef
# describe_iam_instance_profile_associations method usage example with argument unpacking

kwargs: DescribeIamInstanceProfileAssociationsRequestRequestTypeDef = {  # (1)
    "AssociationIds": ...,
}

parent.describe_iam_instance_profile_associations(**kwargs)
  1. See DescribeIamInstanceProfileAssociationsRequestRequestTypeDef

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 boto3.client("ec2").describe_id_format method. boto3 documentation

# describe_id_format method definition

def describe_id_format(
    self,
    *,
    Resource: str = ...,
) -> DescribeIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeIdFormatResultTypeDef
# describe_id_format method usage example with argument unpacking

kwargs: DescribeIdFormatRequestRequestTypeDef = {  # (1)
    "Resource": ...,
}

parent.describe_id_format(**kwargs)
  1. See DescribeIdFormatRequestRequestTypeDef

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 boto3.client("ec2").describe_identity_id_format method. boto3 documentation

# describe_identity_id_format method definition

def describe_identity_id_format(
    self,
    *,
    PrincipalArn: str,
    Resource: str = ...,
) -> DescribeIdentityIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeIdentityIdFormatResultTypeDef
# describe_identity_id_format method usage example with argument unpacking

kwargs: DescribeIdentityIdFormatRequestRequestTypeDef = {  # (1)
    "PrincipalArn": ...,
}

parent.describe_identity_id_format(**kwargs)
  1. See DescribeIdentityIdFormatRequestRequestTypeDef

describe_image_attribute#

Describes the specified attribute of the specified AMI.

Type annotations and code completion for boto3.client("ec2").describe_image_attribute method. boto3 documentation

# describe_image_attribute method definition

def describe_image_attribute(
    self,
    *,
    Attribute: ImageAttributeNameType,  # (1)
    ImageId: str,
    DryRun: bool = ...,
) -> ImageAttributeTypeDef:  # (2)
    ...
  1. See ImageAttributeNameType
  2. See ImageAttributeTypeDef
# describe_image_attribute method usage example with argument unpacking

kwargs: DescribeImageAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "ImageId": ...,
}

parent.describe_image_attribute(**kwargs)
  1. See DescribeImageAttributeRequestRequestTypeDef

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 boto3.client("ec2").describe_images method. boto3 documentation

# describe_images method definition

def describe_images(
    self,
    *,
    ExecutableUsers: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImageIds: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    IncludeDeprecated: bool = ...,
    IncludeDisabled: bool = ...,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeImagesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeImagesResultTypeDef
# describe_images method usage example with argument unpacking

kwargs: DescribeImagesRequestRequestTypeDef = {  # (1)
    "ExecutableUsers": ...,
}

parent.describe_images(**kwargs)
  1. See DescribeImagesRequestRequestTypeDef

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 boto3.client("ec2").describe_import_image_tasks method. boto3 documentation

# describe_import_image_tasks method definition

def describe_import_image_tasks(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImportTaskIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeImportImageTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeImportImageTasksResultTypeDef
# describe_import_image_tasks method usage example with argument unpacking

kwargs: DescribeImportImageTasksRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_import_image_tasks(**kwargs)
  1. See DescribeImportImageTasksRequestRequestTypeDef

describe_import_snapshot_tasks#

Describes your import snapshot tasks.

Type annotations and code completion for boto3.client("ec2").describe_import_snapshot_tasks method. boto3 documentation

# describe_import_snapshot_tasks method definition

def describe_import_snapshot_tasks(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImportTaskIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeImportSnapshotTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeImportSnapshotTasksResultTypeDef
# describe_import_snapshot_tasks method usage example with argument unpacking

kwargs: DescribeImportSnapshotTasksRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_import_snapshot_tasks(**kwargs)
  1. See DescribeImportSnapshotTasksRequestRequestTypeDef

describe_instance_attribute#

Describes the specified attribute of the specified instance.

Type annotations and code completion for boto3.client("ec2").describe_instance_attribute method. boto3 documentation

# describe_instance_attribute method definition

def describe_instance_attribute(
    self,
    *,
    Attribute: InstanceAttributeNameType,  # (1)
    InstanceId: str,
    DryRun: bool = ...,
) -> InstanceAttributeTypeDef:  # (2)
    ...
  1. See InstanceAttributeNameType
  2. See InstanceAttributeTypeDef
# describe_instance_attribute method usage example with argument unpacking

kwargs: DescribeInstanceAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "InstanceId": ...,
}

parent.describe_instance_attribute(**kwargs)
  1. See DescribeInstanceAttributeRequestRequestTypeDef

describe_instance_connect_endpoints#

Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints.

Type annotations and code completion for boto3.client("ec2").describe_instance_connect_endpoints method. boto3 documentation

# describe_instance_connect_endpoints method definition

def describe_instance_connect_endpoints(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    InstanceConnectEndpointIds: Sequence[str] = ...,
) -> DescribeInstanceConnectEndpointsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceConnectEndpointsResultTypeDef
# describe_instance_connect_endpoints method usage example with argument unpacking

kwargs: DescribeInstanceConnectEndpointsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_connect_endpoints(**kwargs)
  1. See DescribeInstanceConnectEndpointsRequestRequestTypeDef

describe_instance_credit_specifications#

Describes the credit option for CPU usage of the specified burstable performance instances.

Type annotations and code completion for boto3.client("ec2").describe_instance_credit_specifications method. boto3 documentation

# describe_instance_credit_specifications method definition

def describe_instance_credit_specifications(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    InstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceCreditSpecificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceCreditSpecificationsResultTypeDef
# describe_instance_credit_specifications method usage example with argument unpacking

kwargs: DescribeInstanceCreditSpecificationsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_credit_specifications(**kwargs)
  1. See DescribeInstanceCreditSpecificationsRequestRequestTypeDef

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 boto3.client("ec2").describe_instance_event_notification_attributes method. boto3 documentation

# describe_instance_event_notification_attributes method definition

def describe_instance_event_notification_attributes(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeInstanceEventNotificationAttributesResultTypeDef:  # (1)
    ...
  1. See DescribeInstanceEventNotificationAttributesResultTypeDef
# describe_instance_event_notification_attributes method usage example with argument unpacking

kwargs: DescribeInstanceEventNotificationAttributesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_event_notification_attributes(**kwargs)
  1. See DescribeInstanceEventNotificationAttributesRequestRequestTypeDef

describe_instance_event_windows#

Describes the specified event windows or all event windows.

Type annotations and code completion for boto3.client("ec2").describe_instance_event_windows method. boto3 documentation

# describe_instance_event_windows method definition

def describe_instance_event_windows(
    self,
    *,
    DryRun: bool = ...,
    InstanceEventWindowIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceEventWindowsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceEventWindowsResultTypeDef
# describe_instance_event_windows method usage example with argument unpacking

kwargs: DescribeInstanceEventWindowsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_event_windows(**kwargs)
  1. See DescribeInstanceEventWindowsRequestRequestTypeDef

describe_instance_status#

Describes the status of the specified instances or all of your instances.

Type annotations and code completion for boto3.client("ec2").describe_instance_status method. boto3 documentation

# describe_instance_status method definition

def describe_instance_status(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    InstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
    IncludeAllInstances: bool = ...,
) -> DescribeInstanceStatusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceStatusResultTypeDef
# describe_instance_status method usage example with argument unpacking

kwargs: DescribeInstanceStatusRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_instance_status(**kwargs)
  1. See DescribeInstanceStatusRequestRequestTypeDef

describe_instance_topology#

Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone.

Type annotations and code completion for boto3.client("ec2").describe_instance_topology method. boto3 documentation

# describe_instance_topology method definition

def describe_instance_topology(
    self,
    *,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    InstanceIds: Sequence[str] = ...,
    GroupNames: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeInstanceTopologyResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceTopologyResultTypeDef
# describe_instance_topology method usage example with argument unpacking

kwargs: DescribeInstanceTopologyRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_topology(**kwargs)
  1. See DescribeInstanceTopologyRequestRequestTypeDef

describe_instance_type_offerings#

Returns a list of all instance types offered.

Type annotations and code completion for boto3.client("ec2").describe_instance_type_offerings method. boto3 documentation

# describe_instance_type_offerings method definition

def describe_instance_type_offerings(
    self,
    *,
    DryRun: bool = ...,
    LocationType: LocationTypeType = ...,  # (1)
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceTypeOfferingsResultTypeDef:  # (3)
    ...
  1. See LocationTypeType
  2. See FilterTypeDef
  3. See DescribeInstanceTypeOfferingsResultTypeDef
# describe_instance_type_offerings method usage example with argument unpacking

kwargs: DescribeInstanceTypeOfferingsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_type_offerings(**kwargs)
  1. See DescribeInstanceTypeOfferingsRequestRequestTypeDef

describe_instance_types#

Describes the details of the instance types that are offered in a location.

Type annotations and code completion for boto3.client("ec2").describe_instance_types method. boto3 documentation

# describe_instance_types method definition

def describe_instance_types(
    self,
    *,
    DryRun: bool = ...,
    InstanceTypes: Sequence[InstanceTypeType] = ...,  # (1)
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceTypesResultTypeDef:  # (3)
    ...
  1. See InstanceTypeType
  2. See FilterTypeDef
  3. See DescribeInstanceTypesResultTypeDef
# describe_instance_types method usage example with argument unpacking

kwargs: DescribeInstanceTypesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_types(**kwargs)
  1. See DescribeInstanceTypesRequestRequestTypeDef

describe_instances#

Describes the specified instances or all instances.

Type annotations and code completion for boto3.client("ec2").describe_instances method. boto3 documentation

# describe_instances method definition

def describe_instances(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    InstanceIds: Sequence[str] = ...,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstancesResultTypeDef
# describe_instances method usage example with argument unpacking

kwargs: DescribeInstancesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_instances(**kwargs)
  1. See DescribeInstancesRequestRequestTypeDef

describe_internet_gateways#

Describes one or more of your internet gateways.

Type annotations and code completion for boto3.client("ec2").describe_internet_gateways method. boto3 documentation

# describe_internet_gateways method definition

def describe_internet_gateways(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    InternetGatewayIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeInternetGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInternetGatewaysResultTypeDef
# describe_internet_gateways method usage example with argument unpacking

kwargs: DescribeInternetGatewaysRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_internet_gateways(**kwargs)
  1. See DescribeInternetGatewaysRequestRequestTypeDef

describe_ipam_byoasn#

Describes your Autonomous System Numbers (ASNs), their provisioning statuses, and the BYOIP CIDRs with which they are associated.

Type annotations and code completion for boto3.client("ec2").describe_ipam_byoasn method. boto3 documentation

# describe_ipam_byoasn method definition

def describe_ipam_byoasn(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeIpamByoasnResultTypeDef:  # (1)
    ...
  1. See DescribeIpamByoasnResultTypeDef
# describe_ipam_byoasn method usage example with argument unpacking

kwargs: DescribeIpamByoasnRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_byoasn(**kwargs)
  1. See DescribeIpamByoasnRequestRequestTypeDef

describe_ipam_pools#

Get information about your IPAM pools.

Type annotations and code completion for boto3.client("ec2").describe_ipam_pools method. boto3 documentation

# describe_ipam_pools method definition

def describe_ipam_pools(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    IpamPoolIds: Sequence[str] = ...,
) -> DescribeIpamPoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamPoolsResultTypeDef
# describe_ipam_pools method usage example with argument unpacking

kwargs: DescribeIpamPoolsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_pools(**kwargs)
  1. See DescribeIpamPoolsRequestRequestTypeDef

describe_ipam_resource_discoveries#

Describes IPAM resource discoveries.

Type annotations and code completion for boto3.client("ec2").describe_ipam_resource_discoveries method. boto3 documentation

# describe_ipam_resource_discoveries method definition

def describe_ipam_resource_discoveries(
    self,
    *,
    DryRun: bool = ...,
    IpamResourceDiscoveryIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeIpamResourceDiscoveriesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamResourceDiscoveriesResultTypeDef
# describe_ipam_resource_discoveries method usage example with argument unpacking

kwargs: DescribeIpamResourceDiscoveriesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_resource_discoveries(**kwargs)
  1. See DescribeIpamResourceDiscoveriesRequestRequestTypeDef

describe_ipam_resource_discovery_associations#

Describes resource discovery association with an Amazon VPC IPAM.

Type annotations and code completion for boto3.client("ec2").describe_ipam_resource_discovery_associations method. boto3 documentation

# describe_ipam_resource_discovery_associations method definition

def describe_ipam_resource_discovery_associations(
    self,
    *,
    DryRun: bool = ...,
    IpamResourceDiscoveryAssociationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeIpamResourceDiscoveryAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamResourceDiscoveryAssociationsResultTypeDef
# describe_ipam_resource_discovery_associations method usage example with argument unpacking

kwargs: DescribeIpamResourceDiscoveryAssociationsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_resource_discovery_associations(**kwargs)
  1. See DescribeIpamResourceDiscoveryAssociationsRequestRequestTypeDef

describe_ipam_scopes#

Get information about your IPAM scopes.

Type annotations and code completion for boto3.client("ec2").describe_ipam_scopes method. boto3 documentation

# describe_ipam_scopes method definition

def describe_ipam_scopes(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    IpamScopeIds: Sequence[str] = ...,
) -> DescribeIpamScopesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamScopesResultTypeDef
# describe_ipam_scopes method usage example with argument unpacking

kwargs: DescribeIpamScopesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_scopes(**kwargs)
  1. See DescribeIpamScopesRequestRequestTypeDef

describe_ipams#

Get information about your IPAM pools.

Type annotations and code completion for boto3.client("ec2").describe_ipams method. boto3 documentation

# describe_ipams method definition

def describe_ipams(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    IpamIds: Sequence[str] = ...,
) -> DescribeIpamsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamsResultTypeDef
# describe_ipams method usage example with argument unpacking

kwargs: DescribeIpamsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipams(**kwargs)
  1. See DescribeIpamsRequestRequestTypeDef

describe_ipv6_pools#

Describes your IPv6 address pools.

Type annotations and code completion for boto3.client("ec2").describe_ipv6_pools method. boto3 documentation

# describe_ipv6_pools method definition

def describe_ipv6_pools(
    self,
    *,
    PoolIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeIpv6PoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpv6PoolsResultTypeDef
# describe_ipv6_pools method usage example with argument unpacking

kwargs: DescribeIpv6PoolsRequestRequestTypeDef = {  # (1)
    "PoolIds": ...,
}

parent.describe_ipv6_pools(**kwargs)
  1. See DescribeIpv6PoolsRequestRequestTypeDef

describe_key_pairs#

Describes the specified key pairs or all of your key pairs.

Type annotations and code completion for boto3.client("ec2").describe_key_pairs method. boto3 documentation

# describe_key_pairs method definition

def describe_key_pairs(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    KeyNames: Sequence[str] = ...,
    KeyPairIds: Sequence[str] = ...,
    DryRun: bool = ...,
    IncludePublicKey: bool = ...,
) -> DescribeKeyPairsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeKeyPairsResultTypeDef
# describe_key_pairs method usage example with argument unpacking

kwargs: DescribeKeyPairsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_key_pairs(**kwargs)
  1. See DescribeKeyPairsRequestRequestTypeDef

describe_launch_template_versions#

Describes one or more versions of a specified launch template.

Type annotations and code completion for boto3.client("ec2").describe_launch_template_versions method. boto3 documentation

# describe_launch_template_versions method definition

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)
    ...
  1. See FilterTypeDef
  2. See DescribeLaunchTemplateVersionsResultTypeDef
# describe_launch_template_versions method usage example with argument unpacking

kwargs: DescribeLaunchTemplateVersionsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_launch_template_versions(**kwargs)
  1. See DescribeLaunchTemplateVersionsRequestRequestTypeDef

describe_launch_templates#

Describes one or more launch templates.

Type annotations and code completion for boto3.client("ec2").describe_launch_templates method. boto3 documentation

# describe_launch_templates method definition

def describe_launch_templates(
    self,
    *,
    DryRun: bool = ...,
    LaunchTemplateIds: Sequence[str] = ...,
    LaunchTemplateNames: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeLaunchTemplatesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLaunchTemplatesResultTypeDef
# describe_launch_templates method usage example with argument unpacking

kwargs: DescribeLaunchTemplatesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_launch_templates(**kwargs)
  1. See DescribeLaunchTemplatesRequestRequestTypeDef

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 boto3.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

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)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResultTypeDef
# 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)
  1. See DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestRequestTypeDef

describe_local_gateway_route_table_vpc_associations#

Describes the specified associations between VPCs and local gateway route tables.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_route_table_vpc_associations method. boto3 documentation

# describe_local_gateway_route_table_vpc_associations method definition

def describe_local_gateway_route_table_vpc_associations(
    self,
    *,
    LocalGatewayRouteTableVpcAssociationIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTableVpcAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayRouteTableVpcAssociationsResultTypeDef
# 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)
  1. See DescribeLocalGatewayRouteTableVpcAssociationsRequestRequestTypeDef

describe_local_gateway_route_tables#

Describes one or more local gateway route tables.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_route_tables method. boto3 documentation

# describe_local_gateway_route_tables method definition

def describe_local_gateway_route_tables(
    self,
    *,
    LocalGatewayRouteTableIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayRouteTablesResultTypeDef
# describe_local_gateway_route_tables method usage example with argument unpacking

kwargs: DescribeLocalGatewayRouteTablesRequestRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableIds": ...,
}

parent.describe_local_gateway_route_tables(**kwargs)
  1. See DescribeLocalGatewayRouteTablesRequestRequestTypeDef

describe_local_gateway_virtual_interface_groups#

Describes the specified local gateway virtual interface groups.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_virtual_interface_groups method. boto3 documentation

# describe_local_gateway_virtual_interface_groups method definition

def describe_local_gateway_virtual_interface_groups(
    self,
    *,
    LocalGatewayVirtualInterfaceGroupIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayVirtualInterfaceGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayVirtualInterfaceGroupsResultTypeDef
# describe_local_gateway_virtual_interface_groups method usage example with argument unpacking

kwargs: DescribeLocalGatewayVirtualInterfaceGroupsRequestRequestTypeDef = {  # (1)
    "LocalGatewayVirtualInterfaceGroupIds": ...,
}

parent.describe_local_gateway_virtual_interface_groups(**kwargs)
  1. See DescribeLocalGatewayVirtualInterfaceGroupsRequestRequestTypeDef

describe_local_gateway_virtual_interfaces#

Describes the specified local gateway virtual interfaces.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_virtual_interfaces method. boto3 documentation

# describe_local_gateway_virtual_interfaces method definition

def describe_local_gateway_virtual_interfaces(
    self,
    *,
    LocalGatewayVirtualInterfaceIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayVirtualInterfacesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayVirtualInterfacesResultTypeDef
# describe_local_gateway_virtual_interfaces method usage example with argument unpacking

kwargs: DescribeLocalGatewayVirtualInterfacesRequestRequestTypeDef = {  # (1)
    "LocalGatewayVirtualInterfaceIds": ...,
}

parent.describe_local_gateway_virtual_interfaces(**kwargs)
  1. See DescribeLocalGatewayVirtualInterfacesRequestRequestTypeDef

describe_local_gateways#

Describes one or more local gateways.

Type annotations and code completion for boto3.client("ec2").describe_local_gateways method. boto3 documentation

# describe_local_gateways method definition

def describe_local_gateways(
    self,
    *,
    LocalGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewaysResultTypeDef
# describe_local_gateways method usage example with argument unpacking

kwargs: DescribeLocalGatewaysRequestRequestTypeDef = {  # (1)
    "LocalGatewayIds": ...,
}

parent.describe_local_gateways(**kwargs)
  1. See DescribeLocalGatewaysRequestRequestTypeDef

describe_locked_snapshots#

Describes the lock status for a snapshot.

Type annotations and code completion for boto3.client("ec2").describe_locked_snapshots method. boto3 documentation

# describe_locked_snapshots method definition

def describe_locked_snapshots(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    SnapshotIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeLockedSnapshotsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLockedSnapshotsResultTypeDef
# describe_locked_snapshots method usage example with argument unpacking

kwargs: DescribeLockedSnapshotsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_locked_snapshots(**kwargs)
  1. See DescribeLockedSnapshotsRequestRequestTypeDef

describe_managed_prefix_lists#

Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.

Type annotations and code completion for boto3.client("ec2").describe_managed_prefix_lists method. boto3 documentation

# describe_managed_prefix_lists method definition

def describe_managed_prefix_lists(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    PrefixListIds: Sequence[str] = ...,
) -> DescribeManagedPrefixListsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeManagedPrefixListsResultTypeDef
# describe_managed_prefix_lists method usage example with argument unpacking

kwargs: DescribeManagedPrefixListsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_managed_prefix_lists(**kwargs)
  1. See DescribeManagedPrefixListsRequestRequestTypeDef

describe_moving_addresses#

.

Type annotations and code completion for boto3.client("ec2").describe_moving_addresses method. boto3 documentation

# describe_moving_addresses method definition

def describe_moving_addresses(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    PublicIps: Sequence[str] = ...,
) -> DescribeMovingAddressesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeMovingAddressesResultTypeDef
# describe_moving_addresses method usage example with argument unpacking

kwargs: DescribeMovingAddressesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_moving_addresses(**kwargs)
  1. See DescribeMovingAddressesRequestRequestTypeDef

describe_nat_gateways#

Describes one or more of your NAT gateways.

Type annotations and code completion for boto3.client("ec2").describe_nat_gateways method. boto3 documentation

# describe_nat_gateways method definition

def describe_nat_gateways(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NatGatewayIds: Sequence[str] = ...,
    NextToken: str = ...,
) -> DescribeNatGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNatGatewaysResultTypeDef
# describe_nat_gateways method usage example with argument unpacking

kwargs: DescribeNatGatewaysRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_nat_gateways(**kwargs)
  1. See DescribeNatGatewaysRequestRequestTypeDef

describe_network_acls#

Describes one or more of your network ACLs.

Type annotations and code completion for boto3.client("ec2").describe_network_acls method. boto3 documentation

# describe_network_acls method definition

def describe_network_acls(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    NetworkAclIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeNetworkAclsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkAclsResultTypeDef
# describe_network_acls method usage example with argument unpacking

kwargs: DescribeNetworkAclsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_network_acls(**kwargs)
  1. See DescribeNetworkAclsRequestRequestTypeDef

describe_network_insights_access_scope_analyses#

Describes the specified Network Access Scope analyses.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_access_scope_analyses method. boto3 documentation

# describe_network_insights_access_scope_analyses method definition

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)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsAccessScopeAnalysesResultTypeDef
# describe_network_insights_access_scope_analyses method usage example with argument unpacking

kwargs: DescribeNetworkInsightsAccessScopeAnalysesRequestRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeAnalysisIds": ...,
}

parent.describe_network_insights_access_scope_analyses(**kwargs)
  1. See DescribeNetworkInsightsAccessScopeAnalysesRequestRequestTypeDef

describe_network_insights_access_scopes#

Describes the specified Network Access Scopes.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_access_scopes method. boto3 documentation

# describe_network_insights_access_scopes method definition

def describe_network_insights_access_scopes(
    self,
    *,
    NetworkInsightsAccessScopeIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeNetworkInsightsAccessScopesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsAccessScopesResultTypeDef
# describe_network_insights_access_scopes method usage example with argument unpacking

kwargs: DescribeNetworkInsightsAccessScopesRequestRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeIds": ...,
}

parent.describe_network_insights_access_scopes(**kwargs)
  1. See DescribeNetworkInsightsAccessScopesRequestRequestTypeDef

describe_network_insights_analyses#

Describes one or more of your network insights analyses.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_analyses method. boto3 documentation

# describe_network_insights_analyses method definition

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)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsAnalysesResultTypeDef
# describe_network_insights_analyses method usage example with argument unpacking

kwargs: DescribeNetworkInsightsAnalysesRequestRequestTypeDef = {  # (1)
    "NetworkInsightsAnalysisIds": ...,
}

parent.describe_network_insights_analyses(**kwargs)
  1. See DescribeNetworkInsightsAnalysesRequestRequestTypeDef

describe_network_insights_paths#

Describes one or more of your paths.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_paths method. boto3 documentation

# describe_network_insights_paths method definition

def describe_network_insights_paths(
    self,
    *,
    NetworkInsightsPathIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeNetworkInsightsPathsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsPathsResultTypeDef
# describe_network_insights_paths method usage example with argument unpacking

kwargs: DescribeNetworkInsightsPathsRequestRequestTypeDef = {  # (1)
    "NetworkInsightsPathIds": ...,
}

parent.describe_network_insights_paths(**kwargs)
  1. See DescribeNetworkInsightsPathsRequestRequestTypeDef

describe_network_interface_attribute#

Describes a network interface attribute.

Type annotations and code completion for boto3.client("ec2").describe_network_interface_attribute method. boto3 documentation

# describe_network_interface_attribute method definition

def describe_network_interface_attribute(
    self,
    *,
    NetworkInterfaceId: str,
    Attribute: NetworkInterfaceAttributeType = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeNetworkInterfaceAttributeResultTypeDef:  # (2)
    ...
  1. See NetworkInterfaceAttributeType
  2. See DescribeNetworkInterfaceAttributeResultTypeDef
# describe_network_interface_attribute method usage example with argument unpacking

kwargs: DescribeNetworkInterfaceAttributeRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.describe_network_interface_attribute(**kwargs)
  1. See DescribeNetworkInterfaceAttributeRequestRequestTypeDef

describe_network_interface_permissions#

Describes the permissions for your network interfaces.

Type annotations and code completion for boto3.client("ec2").describe_network_interface_permissions method. boto3 documentation

# describe_network_interface_permissions method definition

def describe_network_interface_permissions(
    self,
    *,
    NetworkInterfacePermissionIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeNetworkInterfacePermissionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInterfacePermissionsResultTypeDef
# describe_network_interface_permissions method usage example with argument unpacking

kwargs: DescribeNetworkInterfacePermissionsRequestRequestTypeDef = {  # (1)
    "NetworkInterfacePermissionIds": ...,
}

parent.describe_network_interface_permissions(**kwargs)
  1. See DescribeNetworkInterfacePermissionsRequestRequestTypeDef

describe_network_interfaces#

Describes one or more of your network interfaces.

Type annotations and code completion for boto3.client("ec2").describe_network_interfaces method. boto3 documentation

# describe_network_interfaces method definition

def describe_network_interfaces(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeNetworkInterfacesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInterfacesResultTypeDef
# describe_network_interfaces method usage example with argument unpacking

kwargs: DescribeNetworkInterfacesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_network_interfaces(**kwargs)
  1. See DescribeNetworkInterfacesRequestRequestTypeDef

describe_placement_groups#

Describes the specified placement groups or all of your placement groups.

Type annotations and code completion for boto3.client("ec2").describe_placement_groups method. boto3 documentation

# describe_placement_groups method definition

def describe_placement_groups(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    GroupNames: Sequence[str] = ...,
    GroupIds: Sequence[str] = ...,
) -> DescribePlacementGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribePlacementGroupsResultTypeDef
# describe_placement_groups method usage example with argument unpacking

kwargs: DescribePlacementGroupsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_placement_groups(**kwargs)
  1. See DescribePlacementGroupsRequestRequestTypeDef

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 boto3.client("ec2").describe_prefix_lists method. boto3 documentation

# describe_prefix_lists method definition

def describe_prefix_lists(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    PrefixListIds: Sequence[str] = ...,
) -> DescribePrefixListsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribePrefixListsResultTypeDef
# describe_prefix_lists method usage example with argument unpacking

kwargs: DescribePrefixListsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_prefix_lists(**kwargs)
  1. See DescribePrefixListsRequestRequestTypeDef

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 boto3.client("ec2").describe_principal_id_format method. boto3 documentation

# describe_principal_id_format method definition

def describe_principal_id_format(
    self,
    *,
    DryRun: bool = ...,
    Resources: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribePrincipalIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribePrincipalIdFormatResultTypeDef
# describe_principal_id_format method usage example with argument unpacking

kwargs: DescribePrincipalIdFormatRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_principal_id_format(**kwargs)
  1. See DescribePrincipalIdFormatRequestRequestTypeDef

describe_public_ipv4_pools#

Describes the specified IPv4 address pools.

Type annotations and code completion for boto3.client("ec2").describe_public_ipv4_pools method. boto3 documentation

# describe_public_ipv4_pools method definition

def describe_public_ipv4_pools(
    self,
    *,
    PoolIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribePublicIpv4PoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribePublicIpv4PoolsResultTypeDef
# describe_public_ipv4_pools method usage example with argument unpacking

kwargs: DescribePublicIpv4PoolsRequestRequestTypeDef = {  # (1)
    "PoolIds": ...,
}

parent.describe_public_ipv4_pools(**kwargs)
  1. See DescribePublicIpv4PoolsRequestRequestTypeDef

describe_regions#

Describes the Regions that are enabled for your account, or all Regions.

Type annotations and code completion for boto3.client("ec2").describe_regions method. boto3 documentation

# describe_regions method definition

def describe_regions(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    RegionNames: Sequence[str] = ...,
    DryRun: bool = ...,
    AllRegions: bool = ...,
) -> DescribeRegionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeRegionsResultTypeDef
# describe_regions method usage example with argument unpacking

kwargs: DescribeRegionsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_regions(**kwargs)
  1. See DescribeRegionsRequestRequestTypeDef

describe_replace_root_volume_tasks#

Describes a root volume replacement task.

Type annotations and code completion for boto3.client("ec2").describe_replace_root_volume_tasks method. boto3 documentation

# describe_replace_root_volume_tasks method definition

def describe_replace_root_volume_tasks(
    self,
    *,
    ReplaceRootVolumeTaskIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeReplaceRootVolumeTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeReplaceRootVolumeTasksResultTypeDef
# describe_replace_root_volume_tasks method usage example with argument unpacking

kwargs: DescribeReplaceRootVolumeTasksRequestRequestTypeDef = {  # (1)
    "ReplaceRootVolumeTaskIds": ...,
}

parent.describe_replace_root_volume_tasks(**kwargs)
  1. See DescribeReplaceRootVolumeTasksRequestRequestTypeDef

describe_reserved_instances#

Describes one or more of the Reserved Instances that you purchased.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances method. boto3 documentation

# describe_reserved_instances method definition

def describe_reserved_instances(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    OfferingClass: OfferingClassTypeType = ...,  # (2)
    ReservedInstancesIds: Sequence[str] = ...,
    DryRun: bool = ...,
    OfferingType: OfferingTypeValuesType = ...,  # (3)
) -> DescribeReservedInstancesResultTypeDef:  # (4)
    ...
  1. See FilterTypeDef
  2. See OfferingClassTypeType
  3. See OfferingTypeValuesType
  4. See DescribeReservedInstancesResultTypeDef
# describe_reserved_instances method usage example with argument unpacking

kwargs: DescribeReservedInstancesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_reserved_instances(**kwargs)
  1. See DescribeReservedInstancesRequestRequestTypeDef

describe_reserved_instances_listings#

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances_listings method. boto3 documentation

# describe_reserved_instances_listings method definition

def describe_reserved_instances_listings(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ReservedInstancesId: str = ...,
    ReservedInstancesListingId: str = ...,
) -> DescribeReservedInstancesListingsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeReservedInstancesListingsResultTypeDef
# describe_reserved_instances_listings method usage example with argument unpacking

kwargs: DescribeReservedInstancesListingsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_reserved_instances_listings(**kwargs)
  1. See DescribeReservedInstancesListingsRequestRequestTypeDef

describe_reserved_instances_modifications#

Describes the modifications made to your Reserved Instances.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances_modifications method. boto3 documentation

# describe_reserved_instances_modifications method definition

def describe_reserved_instances_modifications(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ReservedInstancesModificationIds: Sequence[str] = ...,
    NextToken: str = ...,
) -> DescribeReservedInstancesModificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeReservedInstancesModificationsResultTypeDef
# describe_reserved_instances_modifications method usage example with argument unpacking

kwargs: DescribeReservedInstancesModificationsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_reserved_instances_modifications(**kwargs)
  1. See DescribeReservedInstancesModificationsRequestRequestTypeDef

describe_reserved_instances_offerings#

Describes Reserved Instance offerings that are available for purchase.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances_offerings method. boto3 documentation

# describe_reserved_instances_offerings method definition

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)
    ...
  1. See FilterTypeDef
  2. See InstanceTypeType
  3. See OfferingClassTypeType
  4. See RIProductDescriptionType
  5. See TenancyType
  6. See OfferingTypeValuesType
  7. See DescribeReservedInstancesOfferingsResultTypeDef
# describe_reserved_instances_offerings method usage example with argument unpacking

kwargs: DescribeReservedInstancesOfferingsRequestRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
}

parent.describe_reserved_instances_offerings(**kwargs)
  1. See DescribeReservedInstancesOfferingsRequestRequestTypeDef

describe_route_tables#

Describes one or more of your route tables.

Type annotations and code completion for boto3.client("ec2").describe_route_tables method. boto3 documentation

# describe_route_tables method definition

def describe_route_tables(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    RouteTableIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeRouteTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeRouteTablesResultTypeDef
# describe_route_tables method usage example with argument unpacking

kwargs: DescribeRouteTablesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_route_tables(**kwargs)
  1. See DescribeRouteTablesRequestRequestTypeDef

describe_scheduled_instance_availability#

Finds available schedules that meet the specified criteria.

Type annotations and code completion for boto3.client("ec2").describe_scheduled_instance_availability method. boto3 documentation

# describe_scheduled_instance_availability method definition

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)
    ...
  1. See SlotDateTimeRangeRequestTypeDef
  2. See ScheduledInstanceRecurrenceRequestTypeDef
  3. See FilterTypeDef
  4. See DescribeScheduledInstanceAvailabilityResultTypeDef
# describe_scheduled_instance_availability method usage example with argument unpacking

kwargs: DescribeScheduledInstanceAvailabilityRequestRequestTypeDef = {  # (1)
    "FirstSlotStartTimeRange": ...,
    "Recurrence": ...,
}

parent.describe_scheduled_instance_availability(**kwargs)
  1. See DescribeScheduledInstanceAvailabilityRequestRequestTypeDef

describe_scheduled_instances#

Describes the specified Scheduled Instances or all your Scheduled Instances.

Type annotations and code completion for boto3.client("ec2").describe_scheduled_instances method. boto3 documentation

# describe_scheduled_instances method definition

def describe_scheduled_instances(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    ScheduledInstanceIds: Sequence[str] = ...,
    SlotStartTimeRange: SlotStartTimeRangeRequestTypeDef = ...,  # (2)
) -> DescribeScheduledInstancesResultTypeDef:  # (3)
    ...
  1. See FilterTypeDef
  2. See SlotStartTimeRangeRequestTypeDef
  3. See DescribeScheduledInstancesResultTypeDef
# describe_scheduled_instances method usage example with argument unpacking

kwargs: DescribeScheduledInstancesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_scheduled_instances(**kwargs)
  1. See DescribeScheduledInstancesRequestRequestTypeDef

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 boto3.client("ec2").describe_security_group_references method. boto3 documentation

# describe_security_group_references method definition

def describe_security_group_references(
    self,
    *,
    GroupId: Sequence[str],
    DryRun: bool = ...,
) -> DescribeSecurityGroupReferencesResultTypeDef:  # (1)
    ...
  1. See DescribeSecurityGroupReferencesResultTypeDef
# describe_security_group_references method usage example with argument unpacking

kwargs: DescribeSecurityGroupReferencesRequestRequestTypeDef = {  # (1)
    "GroupId": ...,
}

parent.describe_security_group_references(**kwargs)
  1. See DescribeSecurityGroupReferencesRequestRequestTypeDef

describe_security_group_rules#

Describes one or more of your security group rules.

Type annotations and code completion for boto3.client("ec2").describe_security_group_rules method. boto3 documentation

# describe_security_group_rules method definition

def describe_security_group_rules(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    SecurityGroupRuleIds: Sequence[str] = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSecurityGroupRulesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSecurityGroupRulesResultTypeDef
# describe_security_group_rules method usage example with argument unpacking

kwargs: DescribeSecurityGroupRulesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_security_group_rules(**kwargs)
  1. See DescribeSecurityGroupRulesRequestRequestTypeDef

describe_security_groups#

Describes the specified security groups or all of your security groups.

Type annotations and code completion for boto3.client("ec2").describe_security_groups method. boto3 documentation

# describe_security_groups method definition

def describe_security_groups(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    GroupIds: Sequence[str] = ...,
    GroupNames: Sequence[str] = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSecurityGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSecurityGroupsResultTypeDef
# describe_security_groups method usage example with argument unpacking

kwargs: DescribeSecurityGroupsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_security_groups(**kwargs)
  1. See DescribeSecurityGroupsRequestRequestTypeDef

describe_snapshot_attribute#

Describes the specified attribute of the specified snapshot.

Type annotations and code completion for boto3.client("ec2").describe_snapshot_attribute method. boto3 documentation

# describe_snapshot_attribute method definition

def describe_snapshot_attribute(
    self,
    *,
    Attribute: SnapshotAttributeNameType,  # (1)
    SnapshotId: str,
    DryRun: bool = ...,
) -> DescribeSnapshotAttributeResultTypeDef:  # (2)
    ...
  1. See SnapshotAttributeNameType
  2. See DescribeSnapshotAttributeResultTypeDef
# describe_snapshot_attribute method usage example with argument unpacking

kwargs: DescribeSnapshotAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "SnapshotId": ...,
}

parent.describe_snapshot_attribute(**kwargs)
  1. See DescribeSnapshotAttributeRequestRequestTypeDef

describe_snapshot_tier_status#

Describes the storage tier status of one or more Amazon EBS snapshots.

Type annotations and code completion for boto3.client("ec2").describe_snapshot_tier_status method. boto3 documentation

# describe_snapshot_tier_status method definition

def describe_snapshot_tier_status(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSnapshotTierStatusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSnapshotTierStatusResultTypeDef
# describe_snapshot_tier_status method usage example with argument unpacking

kwargs: DescribeSnapshotTierStatusRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_snapshot_tier_status(**kwargs)
  1. See DescribeSnapshotTierStatusRequestRequestTypeDef

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 boto3.client("ec2").describe_snapshots method. boto3 documentation

# describe_snapshots method definition

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)
    ...
  1. See FilterTypeDef
  2. See DescribeSnapshotsResultTypeDef
# describe_snapshots method usage example with argument unpacking

kwargs: DescribeSnapshotsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_snapshots(**kwargs)
  1. See DescribeSnapshotsRequestRequestTypeDef

describe_spot_datafeed_subscription#

Describes the data feed for Spot Instances.

Type annotations and code completion for boto3.client("ec2").describe_spot_datafeed_subscription method. boto3 documentation

# describe_spot_datafeed_subscription method definition

def describe_spot_datafeed_subscription(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeSpotDatafeedSubscriptionResultTypeDef:  # (1)
    ...
  1. See DescribeSpotDatafeedSubscriptionResultTypeDef
# describe_spot_datafeed_subscription method usage example with argument unpacking

kwargs: DescribeSpotDatafeedSubscriptionRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_spot_datafeed_subscription(**kwargs)
  1. See DescribeSpotDatafeedSubscriptionRequestRequestTypeDef

describe_spot_fleet_instances#

Describes the running instances for the specified Spot Fleet.

Type annotations and code completion for boto3.client("ec2").describe_spot_fleet_instances method. boto3 documentation

# describe_spot_fleet_instances method definition

def describe_spot_fleet_instances(
    self,
    *,
    SpotFleetRequestId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeSpotFleetInstancesResponseTypeDef:  # (1)
    ...
  1. See DescribeSpotFleetInstancesResponseTypeDef
# describe_spot_fleet_instances method usage example with argument unpacking

kwargs: DescribeSpotFleetInstancesRequestRequestTypeDef = {  # (1)
    "SpotFleetRequestId": ...,
}

parent.describe_spot_fleet_instances(**kwargs)
  1. See DescribeSpotFleetInstancesRequestRequestTypeDef

describe_spot_fleet_request_history#

Describes the events for the specified Spot Fleet request during the specified time.

Type annotations and code completion for boto3.client("ec2").describe_spot_fleet_request_history method. boto3 documentation

# describe_spot_fleet_request_history method definition

def describe_spot_fleet_request_history(
    self,
    *,
    SpotFleetRequestId: str,
    StartTime: Union[datetime, str],
    DryRun: bool = ...,
    EventType: EventTypeType = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeSpotFleetRequestHistoryResponseTypeDef:  # (2)
    ...
  1. See EventTypeType
  2. See DescribeSpotFleetRequestHistoryResponseTypeDef
# describe_spot_fleet_request_history method usage example with argument unpacking

kwargs: DescribeSpotFleetRequestHistoryRequestRequestTypeDef = {  # (1)
    "SpotFleetRequestId": ...,
    "StartTime": ...,
}

parent.describe_spot_fleet_request_history(**kwargs)
  1. See DescribeSpotFleetRequestHistoryRequestRequestTypeDef

describe_spot_fleet_requests#

Describes your Spot Fleet requests.

Type annotations and code completion for boto3.client("ec2").describe_spot_fleet_requests method. boto3 documentation

# describe_spot_fleet_requests method definition

def describe_spot_fleet_requests(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    SpotFleetRequestIds: Sequence[str] = ...,
) -> DescribeSpotFleetRequestsResponseTypeDef:  # (1)
    ...
  1. See DescribeSpotFleetRequestsResponseTypeDef
# describe_spot_fleet_requests method usage example with argument unpacking

kwargs: DescribeSpotFleetRequestsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_spot_fleet_requests(**kwargs)
  1. See DescribeSpotFleetRequestsRequestRequestTypeDef

describe_spot_instance_requests#

Describes the specified Spot Instance requests.

Type annotations and code completion for boto3.client("ec2").describe_spot_instance_requests method. boto3 documentation

# describe_spot_instance_requests method definition

def describe_spot_instance_requests(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    SpotInstanceRequestIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSpotInstanceRequestsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSpotInstanceRequestsResultTypeDef
# describe_spot_instance_requests method usage example with argument unpacking

kwargs: DescribeSpotInstanceRequestsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_spot_instance_requests(**kwargs)
  1. See DescribeSpotInstanceRequestsRequestRequestTypeDef

describe_spot_price_history#

Describes the Spot price history.

Type annotations and code completion for boto3.client("ec2").describe_spot_price_history method. boto3 documentation

# describe_spot_price_history method definition

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)
    ...
  1. See FilterTypeDef
  2. See InstanceTypeType
  3. See DescribeSpotPriceHistoryResultTypeDef
# describe_spot_price_history method usage example with argument unpacking

kwargs: DescribeSpotPriceHistoryRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_spot_price_history(**kwargs)
  1. See DescribeSpotPriceHistoryRequestRequestTypeDef

describe_stale_security_groups#

Describes the stale security group rules for security groups in a specified VPC.

Type annotations and code completion for boto3.client("ec2").describe_stale_security_groups method. boto3 documentation

# describe_stale_security_groups method definition

def describe_stale_security_groups(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeStaleSecurityGroupsResultTypeDef:  # (1)
    ...
  1. See DescribeStaleSecurityGroupsResultTypeDef
# describe_stale_security_groups method usage example with argument unpacking

kwargs: DescribeStaleSecurityGroupsRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.describe_stale_security_groups(**kwargs)
  1. See DescribeStaleSecurityGroupsRequestRequestTypeDef

describe_store_image_tasks#

Describes the progress of the AMI store tasks.

Type annotations and code completion for boto3.client("ec2").describe_store_image_tasks method. boto3 documentation

# describe_store_image_tasks method definition

def describe_store_image_tasks(
    self,
    *,
    ImageIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeStoreImageTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeStoreImageTasksResultTypeDef
# describe_store_image_tasks method usage example with argument unpacking

kwargs: DescribeStoreImageTasksRequestRequestTypeDef = {  # (1)
    "ImageIds": ...,
}

parent.describe_store_image_tasks(**kwargs)
  1. See DescribeStoreImageTasksRequestRequestTypeDef

describe_subnets#

Describes one or more of your subnets.

Type annotations and code completion for boto3.client("ec2").describe_subnets method. boto3 documentation

# describe_subnets method definition

def describe_subnets(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    SubnetIds: Sequence[str] = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSubnetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSubnetsResultTypeDef
# describe_subnets method usage example with argument unpacking

kwargs: DescribeSubnetsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_subnets(**kwargs)
  1. See DescribeSubnetsRequestRequestTypeDef

describe_tags#

Describes the specified tags for your EC2 resources.

Type annotations and code completion for boto3.client("ec2").describe_tags method. boto3 documentation

# describe_tags method definition

def describe_tags(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTagsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTagsResultTypeDef
# describe_tags method usage example with argument unpacking

kwargs: DescribeTagsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_tags(**kwargs)
  1. See DescribeTagsRequestRequestTypeDef

describe_traffic_mirror_filters#

Describes one or more Traffic Mirror filters.

Type annotations and code completion for boto3.client("ec2").describe_traffic_mirror_filters method. boto3 documentation

# describe_traffic_mirror_filters method definition

def describe_traffic_mirror_filters(
    self,
    *,
    TrafficMirrorFilterIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTrafficMirrorFiltersResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrafficMirrorFiltersResultTypeDef
# describe_traffic_mirror_filters method usage example with argument unpacking

kwargs: DescribeTrafficMirrorFiltersRequestRequestTypeDef = {  # (1)
    "TrafficMirrorFilterIds": ...,
}

parent.describe_traffic_mirror_filters(**kwargs)
  1. See DescribeTrafficMirrorFiltersRequestRequestTypeDef

describe_traffic_mirror_sessions#

Describes one or more Traffic Mirror sessions.

Type annotations and code completion for boto3.client("ec2").describe_traffic_mirror_sessions method. boto3 documentation

# describe_traffic_mirror_sessions method definition

def describe_traffic_mirror_sessions(
    self,
    *,
    TrafficMirrorSessionIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTrafficMirrorSessionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrafficMirrorSessionsResultTypeDef
# describe_traffic_mirror_sessions method usage example with argument unpacking

kwargs: DescribeTrafficMirrorSessionsRequestRequestTypeDef = {  # (1)
    "TrafficMirrorSessionIds": ...,
}

parent.describe_traffic_mirror_sessions(**kwargs)
  1. See DescribeTrafficMirrorSessionsRequestRequestTypeDef

describe_traffic_mirror_targets#

Information about one or more Traffic Mirror targets.

Type annotations and code completion for boto3.client("ec2").describe_traffic_mirror_targets method. boto3 documentation

# describe_traffic_mirror_targets method definition

def describe_traffic_mirror_targets(
    self,
    *,
    TrafficMirrorTargetIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTrafficMirrorTargetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrafficMirrorTargetsResultTypeDef
# describe_traffic_mirror_targets method usage example with argument unpacking

kwargs: DescribeTrafficMirrorTargetsRequestRequestTypeDef = {  # (1)
    "TrafficMirrorTargetIds": ...,
}

parent.describe_traffic_mirror_targets(**kwargs)
  1. See DescribeTrafficMirrorTargetsRequestRequestTypeDef

describe_transit_gateway_attachments#

Describes one or more attachments between resources and transit gateways.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_attachments method. boto3 documentation

# describe_transit_gateway_attachments method definition

def describe_transit_gateway_attachments(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayAttachmentsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayAttachmentsResultTypeDef
# describe_transit_gateway_attachments method usage example with argument unpacking

kwargs: DescribeTransitGatewayAttachmentsRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_attachments(**kwargs)
  1. See DescribeTransitGatewayAttachmentsRequestRequestTypeDef

describe_transit_gateway_connect_peers#

Describes one or more Connect peers.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_connect_peers method. boto3 documentation

# describe_transit_gateway_connect_peers method definition

def describe_transit_gateway_connect_peers(
    self,
    *,
    TransitGatewayConnectPeerIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayConnectPeersResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayConnectPeersResultTypeDef
# describe_transit_gateway_connect_peers method usage example with argument unpacking

kwargs: DescribeTransitGatewayConnectPeersRequestRequestTypeDef = {  # (1)
    "TransitGatewayConnectPeerIds": ...,
}

parent.describe_transit_gateway_connect_peers(**kwargs)
  1. See DescribeTransitGatewayConnectPeersRequestRequestTypeDef

describe_transit_gateway_connects#

Describes one or more Connect attachments.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_connects method. boto3 documentation

# describe_transit_gateway_connects method definition

def describe_transit_gateway_connects(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayConnectsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayConnectsResultTypeDef
# describe_transit_gateway_connects method usage example with argument unpacking

kwargs: DescribeTransitGatewayConnectsRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_connects(**kwargs)
  1. See DescribeTransitGatewayConnectsRequestRequestTypeDef

describe_transit_gateway_multicast_domains#

Describes one or more transit gateway multicast domains.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_multicast_domains method. boto3 documentation

# describe_transit_gateway_multicast_domains method definition

def describe_transit_gateway_multicast_domains(
    self,
    *,
    TransitGatewayMulticastDomainIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayMulticastDomainsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayMulticastDomainsResultTypeDef
# describe_transit_gateway_multicast_domains method usage example with argument unpacking

kwargs: DescribeTransitGatewayMulticastDomainsRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainIds": ...,
}

parent.describe_transit_gateway_multicast_domains(**kwargs)
  1. See DescribeTransitGatewayMulticastDomainsRequestRequestTypeDef

describe_transit_gateway_peering_attachments#

Describes your transit gateway peering attachments.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_peering_attachments method. boto3 documentation

# describe_transit_gateway_peering_attachments method definition

def describe_transit_gateway_peering_attachments(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayPeeringAttachmentsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayPeeringAttachmentsResultTypeDef
# describe_transit_gateway_peering_attachments method usage example with argument unpacking

kwargs: DescribeTransitGatewayPeeringAttachmentsRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_peering_attachments(**kwargs)
  1. See DescribeTransitGatewayPeeringAttachmentsRequestRequestTypeDef

describe_transit_gateway_policy_tables#

Describes one or more transit gateway route policy tables.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_policy_tables method. boto3 documentation

# describe_transit_gateway_policy_tables method definition

def describe_transit_gateway_policy_tables(
    self,
    *,
    TransitGatewayPolicyTableIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayPolicyTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayPolicyTablesResultTypeDef
# describe_transit_gateway_policy_tables method usage example with argument unpacking

kwargs: DescribeTransitGatewayPolicyTablesRequestRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableIds": ...,
}

parent.describe_transit_gateway_policy_tables(**kwargs)
  1. See DescribeTransitGatewayPolicyTablesRequestRequestTypeDef

describe_transit_gateway_route_table_announcements#

Describes one or more transit gateway route table advertisements.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_route_table_announcements method. boto3 documentation

# describe_transit_gateway_route_table_announcements method definition

def describe_transit_gateway_route_table_announcements(
    self,
    *,
    TransitGatewayRouteTableAnnouncementIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayRouteTableAnnouncementsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayRouteTableAnnouncementsResultTypeDef
# describe_transit_gateway_route_table_announcements method usage example with argument unpacking

kwargs: DescribeTransitGatewayRouteTableAnnouncementsRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableAnnouncementIds": ...,
}

parent.describe_transit_gateway_route_table_announcements(**kwargs)
  1. See DescribeTransitGatewayRouteTableAnnouncementsRequestRequestTypeDef

describe_transit_gateway_route_tables#

Describes one or more transit gateway route tables.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_route_tables method. boto3 documentation

# describe_transit_gateway_route_tables method definition

def describe_transit_gateway_route_tables(
    self,
    *,
    TransitGatewayRouteTableIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayRouteTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayRouteTablesResultTypeDef
# describe_transit_gateway_route_tables method usage example with argument unpacking

kwargs: DescribeTransitGatewayRouteTablesRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableIds": ...,
}

parent.describe_transit_gateway_route_tables(**kwargs)
  1. See DescribeTransitGatewayRouteTablesRequestRequestTypeDef

describe_transit_gateway_vpc_attachments#

Describes one or more VPC attachments.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_vpc_attachments method. boto3 documentation

# describe_transit_gateway_vpc_attachments method definition

def describe_transit_gateway_vpc_attachments(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayVpcAttachmentsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayVpcAttachmentsResultTypeDef
# describe_transit_gateway_vpc_attachments method usage example with argument unpacking

kwargs: DescribeTransitGatewayVpcAttachmentsRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_vpc_attachments(**kwargs)
  1. See DescribeTransitGatewayVpcAttachmentsRequestRequestTypeDef

describe_transit_gateways#

Describes one or more transit gateways.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateways method. boto3 documentation

# describe_transit_gateways method definition

def describe_transit_gateways(
    self,
    *,
    TransitGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewaysResultTypeDef
# describe_transit_gateways method usage example with argument unpacking

kwargs: DescribeTransitGatewaysRequestRequestTypeDef = {  # (1)
    "TransitGatewayIds": ...,
}

parent.describe_transit_gateways(**kwargs)
  1. See DescribeTransitGatewaysRequestRequestTypeDef

describe_trunk_interface_associations#

Describes one or more network interface trunk associations.

Type annotations and code completion for boto3.client("ec2").describe_trunk_interface_associations method. boto3 documentation

# describe_trunk_interface_associations method definition

def describe_trunk_interface_associations(
    self,
    *,
    AssociationIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeTrunkInterfaceAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrunkInterfaceAssociationsResultTypeDef
# describe_trunk_interface_associations method usage example with argument unpacking

kwargs: DescribeTrunkInterfaceAssociationsRequestRequestTypeDef = {  # (1)
    "AssociationIds": ...,
}

parent.describe_trunk_interface_associations(**kwargs)
  1. See DescribeTrunkInterfaceAssociationsRequestRequestTypeDef

describe_verified_access_endpoints#

Describes the specified Amazon Web Services Verified Access endpoints.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_endpoints method. boto3 documentation

# describe_verified_access_endpoints method definition

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)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessEndpointsResultTypeDef
# describe_verified_access_endpoints method usage example with argument unpacking

kwargs: DescribeVerifiedAccessEndpointsRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointIds": ...,
}

parent.describe_verified_access_endpoints(**kwargs)
  1. See DescribeVerifiedAccessEndpointsRequestRequestTypeDef

describe_verified_access_groups#

Describes the specified Verified Access groups.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_groups method. boto3 documentation

# describe_verified_access_groups method definition

def describe_verified_access_groups(
    self,
    *,
    VerifiedAccessGroupIds: Sequence[str] = ...,
    VerifiedAccessInstanceId: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessGroupsResultTypeDef
# describe_verified_access_groups method usage example with argument unpacking

kwargs: DescribeVerifiedAccessGroupsRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupIds": ...,
}

parent.describe_verified_access_groups(**kwargs)
  1. See DescribeVerifiedAccessGroupsRequestRequestTypeDef

describe_verified_access_instance_logging_configurations#

Describes the specified Amazon Web Services Verified Access instances.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_instance_logging_configurations method. boto3 documentation

# describe_verified_access_instance_logging_configurations method definition

def describe_verified_access_instance_logging_configurations(
    self,
    *,
    VerifiedAccessInstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessInstanceLoggingConfigurationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessInstanceLoggingConfigurationsResultTypeDef
# describe_verified_access_instance_logging_configurations method usage example with argument unpacking

kwargs: DescribeVerifiedAccessInstanceLoggingConfigurationsRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceIds": ...,
}

parent.describe_verified_access_instance_logging_configurations(**kwargs)
  1. See DescribeVerifiedAccessInstanceLoggingConfigurationsRequestRequestTypeDef

describe_verified_access_instances#

Describes the specified Amazon Web Services Verified Access instances.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_instances method. boto3 documentation

# describe_verified_access_instances method definition

def describe_verified_access_instances(
    self,
    *,
    VerifiedAccessInstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessInstancesResultTypeDef
# describe_verified_access_instances method usage example with argument unpacking

kwargs: DescribeVerifiedAccessInstancesRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceIds": ...,
}

parent.describe_verified_access_instances(**kwargs)
  1. See DescribeVerifiedAccessInstancesRequestRequestTypeDef

describe_verified_access_trust_providers#

Describes the specified Amazon Web Services Verified Access trust providers.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_trust_providers method. boto3 documentation

# describe_verified_access_trust_providers method definition

def describe_verified_access_trust_providers(
    self,
    *,
    VerifiedAccessTrustProviderIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessTrustProvidersResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessTrustProvidersResultTypeDef
# describe_verified_access_trust_providers method usage example with argument unpacking

kwargs: DescribeVerifiedAccessTrustProvidersRequestRequestTypeDef = {  # (1)
    "VerifiedAccessTrustProviderIds": ...,
}

parent.describe_verified_access_trust_providers(**kwargs)
  1. See DescribeVerifiedAccessTrustProvidersRequestRequestTypeDef

describe_volume_attribute#

Describes the specified attribute of the specified volume.

Type annotations and code completion for boto3.client("ec2").describe_volume_attribute method. boto3 documentation

# describe_volume_attribute method definition

def describe_volume_attribute(
    self,
    *,
    Attribute: VolumeAttributeNameType,  # (1)
    VolumeId: str,
    DryRun: bool = ...,
) -> DescribeVolumeAttributeResultTypeDef:  # (2)
    ...
  1. See VolumeAttributeNameType
  2. See DescribeVolumeAttributeResultTypeDef
# describe_volume_attribute method usage example with argument unpacking

kwargs: DescribeVolumeAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "VolumeId": ...,
}

parent.describe_volume_attribute(**kwargs)
  1. See DescribeVolumeAttributeRequestRequestTypeDef

describe_volume_status#

Describes the status of the specified volumes.

Type annotations and code completion for boto3.client("ec2").describe_volume_status method. boto3 documentation

# describe_volume_status method definition

def describe_volume_status(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    VolumeIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeVolumeStatusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVolumeStatusResultTypeDef
# describe_volume_status method usage example with argument unpacking

kwargs: DescribeVolumeStatusRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_volume_status(**kwargs)
  1. See DescribeVolumeStatusRequestRequestTypeDef

describe_volumes#

Describes the specified EBS volumes or all of your EBS volumes.

Type annotations and code completion for boto3.client("ec2").describe_volumes method. boto3 documentation

# describe_volumes method definition

def describe_volumes(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VolumeIds: Sequence[str] = ...,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVolumesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVolumesResultTypeDef
# describe_volumes method usage example with argument unpacking

kwargs: DescribeVolumesRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_volumes(**kwargs)
  1. See DescribeVolumesRequestRequestTypeDef

describe_volumes_modifications#

Describes the most recent volume modification request for the specified EBS volumes.

Type annotations and code completion for boto3.client("ec2").describe_volumes_modifications method. boto3 documentation

# describe_volumes_modifications method definition

def describe_volumes_modifications(
    self,
    *,
    DryRun: bool = ...,
    VolumeIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeVolumesModificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVolumesModificationsResultTypeDef
# describe_volumes_modifications method usage example with argument unpacking

kwargs: DescribeVolumesModificationsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_volumes_modifications(**kwargs)
  1. See DescribeVolumesModificationsRequestRequestTypeDef

describe_vpc_attribute#

Describes the specified attribute of the specified VPC.

Type annotations and code completion for boto3.client("ec2").describe_vpc_attribute method. boto3 documentation

# describe_vpc_attribute method definition

def describe_vpc_attribute(
    self,
    *,
    Attribute: VpcAttributeNameType,  # (1)
    VpcId: str,
    DryRun: bool = ...,
) -> DescribeVpcAttributeResultTypeDef:  # (2)
    ...
  1. See VpcAttributeNameType
  2. See DescribeVpcAttributeResultTypeDef
# describe_vpc_attribute method usage example with argument unpacking

kwargs: DescribeVpcAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "VpcId": ...,
}

parent.describe_vpc_attribute(**kwargs)
  1. See DescribeVpcAttributeRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").describe_vpc_classic_link method. boto3 documentation

# describe_vpc_classic_link method definition

def describe_vpc_classic_link(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    VpcIds: Sequence[str] = ...,
) -> DescribeVpcClassicLinkResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcClassicLinkResultTypeDef
# describe_vpc_classic_link method usage example with argument unpacking

kwargs: DescribeVpcClassicLinkRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpc_classic_link(**kwargs)
  1. See DescribeVpcClassicLinkRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").describe_vpc_classic_link_dns_support method. boto3 documentation

# describe_vpc_classic_link_dns_support method definition

def describe_vpc_classic_link_dns_support(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    VpcIds: Sequence[str] = ...,
) -> DescribeVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See DescribeVpcClassicLinkDnsSupportResultTypeDef
# describe_vpc_classic_link_dns_support method usage example with argument unpacking

kwargs: DescribeVpcClassicLinkDnsSupportRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_vpc_classic_link_dns_support(**kwargs)
  1. See DescribeVpcClassicLinkDnsSupportRequestRequestTypeDef

describe_vpc_endpoint_connection_notifications#

Describes the connection notifications for VPC endpoints and VPC endpoint services.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_connection_notifications method. boto3 documentation

# describe_vpc_endpoint_connection_notifications method definition

def describe_vpc_endpoint_connection_notifications(
    self,
    *,
    DryRun: bool = ...,
    ConnectionNotificationId: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointConnectionNotificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointConnectionNotificationsResultTypeDef
# describe_vpc_endpoint_connection_notifications method usage example with argument unpacking

kwargs: DescribeVpcEndpointConnectionNotificationsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_connection_notifications(**kwargs)
  1. See DescribeVpcEndpointConnectionNotificationsRequestRequestTypeDef

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 boto3.client("ec2").describe_vpc_endpoint_connections method. boto3 documentation

# describe_vpc_endpoint_connections method definition

def describe_vpc_endpoint_connections(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointConnectionsResultTypeDef
# describe_vpc_endpoint_connections method usage example with argument unpacking

kwargs: DescribeVpcEndpointConnectionsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_connections(**kwargs)
  1. See DescribeVpcEndpointConnectionsRequestRequestTypeDef

describe_vpc_endpoint_service_configurations#

Describes the VPC endpoint service configurations in your account (your services).

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_service_configurations method. boto3 documentation

# describe_vpc_endpoint_service_configurations method definition

def describe_vpc_endpoint_service_configurations(
    self,
    *,
    DryRun: bool = ...,
    ServiceIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointServiceConfigurationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointServiceConfigurationsResultTypeDef
# describe_vpc_endpoint_service_configurations method usage example with argument unpacking

kwargs: DescribeVpcEndpointServiceConfigurationsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_service_configurations(**kwargs)
  1. See DescribeVpcEndpointServiceConfigurationsRequestRequestTypeDef

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 boto3.client("ec2").describe_vpc_endpoint_service_permissions method. boto3 documentation

# describe_vpc_endpoint_service_permissions method definition

def describe_vpc_endpoint_service_permissions(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointServicePermissionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointServicePermissionsResultTypeDef
# describe_vpc_endpoint_service_permissions method usage example with argument unpacking

kwargs: DescribeVpcEndpointServicePermissionsRequestRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.describe_vpc_endpoint_service_permissions(**kwargs)
  1. See DescribeVpcEndpointServicePermissionsRequestRequestTypeDef

describe_vpc_endpoint_services#

Describes available services to which you can create a VPC endpoint.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_services method. boto3 documentation

# describe_vpc_endpoint_services method definition

def describe_vpc_endpoint_services(
    self,
    *,
    DryRun: bool = ...,
    ServiceNames: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointServicesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointServicesResultTypeDef
# describe_vpc_endpoint_services method usage example with argument unpacking

kwargs: DescribeVpcEndpointServicesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_services(**kwargs)
  1. See DescribeVpcEndpointServicesRequestRequestTypeDef

describe_vpc_endpoints#

Describes your VPC endpoints.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoints method. boto3 documentation

# describe_vpc_endpoints method definition

def describe_vpc_endpoints(
    self,
    *,
    DryRun: bool = ...,
    VpcEndpointIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointsResultTypeDef
# describe_vpc_endpoints method usage example with argument unpacking

kwargs: DescribeVpcEndpointsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoints(**kwargs)
  1. See DescribeVpcEndpointsRequestRequestTypeDef

describe_vpc_peering_connections#

Describes one or more of your VPC peering connections.

Type annotations and code completion for boto3.client("ec2").describe_vpc_peering_connections method. boto3 documentation

# describe_vpc_peering_connections method definition

def describe_vpc_peering_connections(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    VpcPeeringConnectionIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeVpcPeeringConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcPeeringConnectionsResultTypeDef
# describe_vpc_peering_connections method usage example with argument unpacking

kwargs: DescribeVpcPeeringConnectionsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpc_peering_connections(**kwargs)
  1. See DescribeVpcPeeringConnectionsRequestRequestTypeDef

describe_vpcs#

Describes one or more of your VPCs.

Type annotations and code completion for boto3.client("ec2").describe_vpcs method. boto3 documentation

# describe_vpcs method definition

def describe_vpcs(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpcIds: Sequence[str] = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeVpcsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcsResultTypeDef
# describe_vpcs method usage example with argument unpacking

kwargs: DescribeVpcsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpcs(**kwargs)
  1. See DescribeVpcsRequestRequestTypeDef

describe_vpn_connections#

Describes one or more of your VPN connections.

Type annotations and code completion for boto3.client("ec2").describe_vpn_connections method. boto3 documentation

# describe_vpn_connections method definition

def describe_vpn_connections(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpnConnectionIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeVpnConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpnConnectionsResultTypeDef
# describe_vpn_connections method usage example with argument unpacking

kwargs: DescribeVpnConnectionsRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpn_connections(**kwargs)
  1. See DescribeVpnConnectionsRequestRequestTypeDef

describe_vpn_gateways#

Describes one or more of your virtual private gateways.

Type annotations and code completion for boto3.client("ec2").describe_vpn_gateways method. boto3 documentation

# describe_vpn_gateways method definition

def describe_vpn_gateways(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpnGatewayIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeVpnGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpnGatewaysResultTypeDef
# describe_vpn_gateways method usage example with argument unpacking

kwargs: DescribeVpnGatewaysRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpn_gateways(**kwargs)
  1. See DescribeVpnGatewaysRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").detach_classic_link_vpc method. boto3 documentation

# detach_classic_link_vpc method definition

def detach_classic_link_vpc(
    self,
    *,
    InstanceId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> DetachClassicLinkVpcResultTypeDef:  # (1)
    ...
  1. See DetachClassicLinkVpcResultTypeDef
# detach_classic_link_vpc method usage example with argument unpacking

kwargs: DetachClassicLinkVpcRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "VpcId": ...,
}

parent.detach_classic_link_vpc(**kwargs)
  1. See DetachClassicLinkVpcRequestRequestTypeDef

detach_internet_gateway#

Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC.

Type annotations and code completion for boto3.client("ec2").detach_internet_gateway method. boto3 documentation

# detach_internet_gateway method definition

def detach_internet_gateway(
    self,
    *,
    InternetGatewayId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# detach_internet_gateway method usage example with argument unpacking

kwargs: DetachInternetGatewayRequestRequestTypeDef = {  # (1)
    "InternetGatewayId": ...,
    "VpcId": ...,
}

parent.detach_internet_gateway(**kwargs)
  1. See DetachInternetGatewayRequestRequestTypeDef

detach_network_interface#

Detaches a network interface from an instance.

Type annotations and code completion for boto3.client("ec2").detach_network_interface method. boto3 documentation

# detach_network_interface method definition

def detach_network_interface(
    self,
    *,
    AttachmentId: str,
    DryRun: bool = ...,
    Force: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# detach_network_interface method usage example with argument unpacking

kwargs: DetachNetworkInterfaceRequestRequestTypeDef = {  # (1)
    "AttachmentId": ...,
}

parent.detach_network_interface(**kwargs)
  1. See DetachNetworkInterfaceRequestRequestTypeDef

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 boto3.client("ec2").detach_verified_access_trust_provider method. boto3 documentation

# detach_verified_access_trust_provider method definition

def detach_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessInstanceId: str,
    VerifiedAccessTrustProviderId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DetachVerifiedAccessTrustProviderResultTypeDef:  # (1)
    ...
  1. See DetachVerifiedAccessTrustProviderResultTypeDef
# detach_verified_access_trust_provider method usage example with argument unpacking

kwargs: DetachVerifiedAccessTrustProviderRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
    "VerifiedAccessTrustProviderId": ...,
}

parent.detach_verified_access_trust_provider(**kwargs)
  1. See DetachVerifiedAccessTrustProviderRequestRequestTypeDef

detach_volume#

Detaches an EBS volume from an instance.

Type annotations and code completion for boto3.client("ec2").detach_volume method. boto3 documentation

# detach_volume method definition

def detach_volume(
    self,
    *,
    VolumeId: str,
    Device: str = ...,
    Force: bool = ...,
    InstanceId: str = ...,
    DryRun: bool = ...,
) -> VolumeAttachmentResponseTypeDef:  # (1)
    ...
  1. See VolumeAttachmentResponseTypeDef
# detach_volume method usage example with argument unpacking

kwargs: DetachVolumeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.detach_volume(**kwargs)
  1. See DetachVolumeRequestRequestTypeDef

detach_vpn_gateway#

Detaches a virtual private gateway from a VPC.

Type annotations and code completion for boto3.client("ec2").detach_vpn_gateway method. boto3 documentation

# detach_vpn_gateway method definition

def detach_vpn_gateway(
    self,
    *,
    VpcId: str,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# detach_vpn_gateway method usage example with argument unpacking

kwargs: DetachVpnGatewayRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
    "VpnGatewayId": ...,
}

parent.detach_vpn_gateway(**kwargs)
  1. See DetachVpnGatewayRequestRequestTypeDef

disable_address_transfer#

Disables Elastic IP address transfer.

Type annotations and code completion for boto3.client("ec2").disable_address_transfer method. boto3 documentation

# disable_address_transfer method definition

def disable_address_transfer(
    self,
    *,
    AllocationId: str,
    DryRun: bool = ...,
) -> DisableAddressTransferResultTypeDef:  # (1)
    ...
  1. See DisableAddressTransferResultTypeDef
# disable_address_transfer method usage example with argument unpacking

kwargs: DisableAddressTransferRequestRequestTypeDef = {  # (1)
    "AllocationId": ...,
}

parent.disable_address_transfer(**kwargs)
  1. See DisableAddressTransferRequestRequestTypeDef

disable_aws_network_performance_metric_subscription#

Disables Infrastructure Performance metric subscriptions.

Type annotations and code completion for boto3.client("ec2").disable_aws_network_performance_metric_subscription method. boto3 documentation

# disable_aws_network_performance_metric_subscription method definition

def disable_aws_network_performance_metric_subscription(
    self,
    *,
    Source: str = ...,
    Destination: str = ...,
    Metric: MetricTypeType = ...,  # (1)
    Statistic: StatisticTypeType = ...,  # (2)
    DryRun: bool = ...,
) -> DisableAwsNetworkPerformanceMetricSubscriptionResultTypeDef:  # (3)
    ...
  1. See MetricTypeType
  2. See StatisticTypeType
  3. 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)
  1. See DisableAwsNetworkPerformanceMetricSubscriptionRequestRequestTypeDef

disable_ebs_encryption_by_default#

Disables EBS encryption by default for your account in the current Region.

Type annotations and code completion for boto3.client("ec2").disable_ebs_encryption_by_default method. boto3 documentation

# disable_ebs_encryption_by_default method definition

def disable_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> DisableEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See DisableEbsEncryptionByDefaultResultTypeDef
# disable_ebs_encryption_by_default method usage example with argument unpacking

kwargs: DisableEbsEncryptionByDefaultRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_ebs_encryption_by_default(**kwargs)
  1. See DisableEbsEncryptionByDefaultRequestRequestTypeDef

disable_fast_launch#

Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots.

Type annotations and code completion for boto3.client("ec2").disable_fast_launch method. boto3 documentation

# disable_fast_launch method definition

def disable_fast_launch(
    self,
    *,
    ImageId: str,
    Force: bool = ...,
    DryRun: bool = ...,
) -> DisableFastLaunchResultTypeDef:  # (1)
    ...
  1. See DisableFastLaunchResultTypeDef
# disable_fast_launch method usage example with argument unpacking

kwargs: DisableFastLaunchRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.disable_fast_launch(**kwargs)
  1. See DisableFastLaunchRequestRequestTypeDef

disable_fast_snapshot_restores#

Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.

Type annotations and code completion for boto3.client("ec2").disable_fast_snapshot_restores method. boto3 documentation

# disable_fast_snapshot_restores method definition

def disable_fast_snapshot_restores(
    self,
    *,
    AvailabilityZones: Sequence[str],
    SourceSnapshotIds: Sequence[str],
    DryRun: bool = ...,
) -> DisableFastSnapshotRestoresResultTypeDef:  # (1)
    ...
  1. See DisableFastSnapshotRestoresResultTypeDef
# disable_fast_snapshot_restores method usage example with argument unpacking

kwargs: DisableFastSnapshotRestoresRequestRequestTypeDef = {  # (1)
    "AvailabilityZones": ...,
    "SourceSnapshotIds": ...,
}

parent.disable_fast_snapshot_restores(**kwargs)
  1. See DisableFastSnapshotRestoresRequestRequestTypeDef

disable_image#

Sets the AMI state to disabled and removes all launch permissions from the AMI.

Type annotations and code completion for boto3.client("ec2").disable_image method. boto3 documentation

# disable_image method definition

def disable_image(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> DisableImageResultTypeDef:  # (1)
    ...
  1. See DisableImageResultTypeDef
# disable_image method usage example with argument unpacking

kwargs: DisableImageRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.disable_image(**kwargs)
  1. See DisableImageRequestRequestTypeDef

disable_image_block_public_access#

Disables block public access for AMIs at the account level in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").disable_image_block_public_access method. boto3 documentation

# disable_image_block_public_access method definition

def disable_image_block_public_access(
    self,
    *,
    DryRun: bool = ...,
) -> DisableImageBlockPublicAccessResultTypeDef:  # (1)
    ...
  1. See DisableImageBlockPublicAccessResultTypeDef
# disable_image_block_public_access method usage example with argument unpacking

kwargs: DisableImageBlockPublicAccessRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_image_block_public_access(**kwargs)
  1. See DisableImageBlockPublicAccessRequestRequestTypeDef

disable_image_deprecation#

Cancels the deprecation of the specified AMI.

Type annotations and code completion for boto3.client("ec2").disable_image_deprecation method. boto3 documentation

# disable_image_deprecation method definition

def disable_image_deprecation(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> DisableImageDeprecationResultTypeDef:  # (1)
    ...
  1. See DisableImageDeprecationResultTypeDef
# disable_image_deprecation method usage example with argument unpacking

kwargs: DisableImageDeprecationRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.disable_image_deprecation(**kwargs)
  1. See DisableImageDeprecationRequestRequestTypeDef

disable_ipam_organization_admin_account#

Disable the IPAM account.

Type annotations and code completion for boto3.client("ec2").disable_ipam_organization_admin_account method. boto3 documentation

# disable_ipam_organization_admin_account method definition

def disable_ipam_organization_admin_account(
    self,
    *,
    DelegatedAdminAccountId: str,
    DryRun: bool = ...,
) -> DisableIpamOrganizationAdminAccountResultTypeDef:  # (1)
    ...
  1. See DisableIpamOrganizationAdminAccountResultTypeDef
# disable_ipam_organization_admin_account method usage example with argument unpacking

kwargs: DisableIpamOrganizationAdminAccountRequestRequestTypeDef = {  # (1)
    "DelegatedAdminAccountId": ...,
}

parent.disable_ipam_organization_admin_account(**kwargs)
  1. See DisableIpamOrganizationAdminAccountRequestRequestTypeDef

disable_serial_console_access#

Disables access to the EC2 serial console of all instances for your account.

Type annotations and code completion for boto3.client("ec2").disable_serial_console_access method. boto3 documentation

# disable_serial_console_access method definition

def disable_serial_console_access(
    self,
    *,
    DryRun: bool = ...,
) -> DisableSerialConsoleAccessResultTypeDef:  # (1)
    ...
  1. See DisableSerialConsoleAccessResultTypeDef
# disable_serial_console_access method usage example with argument unpacking

kwargs: DisableSerialConsoleAccessRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_serial_console_access(**kwargs)
  1. See DisableSerialConsoleAccessRequestRequestTypeDef

disable_snapshot_block_public_access#

Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").disable_snapshot_block_public_access method. boto3 documentation

# disable_snapshot_block_public_access method definition

def disable_snapshot_block_public_access(
    self,
    *,
    DryRun: bool = ...,
) -> DisableSnapshotBlockPublicAccessResultTypeDef:  # (1)
    ...
  1. See DisableSnapshotBlockPublicAccessResultTypeDef
# disable_snapshot_block_public_access method usage example with argument unpacking

kwargs: DisableSnapshotBlockPublicAccessRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_snapshot_block_public_access(**kwargs)
  1. See DisableSnapshotBlockPublicAccessRequestRequestTypeDef

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 boto3.client("ec2").disable_transit_gateway_route_table_propagation method. boto3 documentation

# disable_transit_gateway_route_table_propagation method definition

def disable_transit_gateway_route_table_propagation(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    DryRun: bool = ...,
    TransitGatewayRouteTableAnnouncementId: str = ...,
) -> DisableTransitGatewayRouteTablePropagationResultTypeDef:  # (1)
    ...
  1. See DisableTransitGatewayRouteTablePropagationResultTypeDef
# disable_transit_gateway_route_table_propagation method usage example with argument unpacking

kwargs: DisableTransitGatewayRouteTablePropagationRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.disable_transit_gateway_route_table_propagation(**kwargs)
  1. See DisableTransitGatewayRouteTablePropagationRequestRequestTypeDef

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 boto3.client("ec2").disable_vgw_route_propagation method. boto3 documentation

# disable_vgw_route_propagation method definition

def disable_vgw_route_propagation(
    self,
    *,
    GatewayId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# disable_vgw_route_propagation method usage example with argument unpacking

kwargs: DisableVgwRoutePropagationRequestRequestTypeDef = {  # (1)
    "GatewayId": ...,
    "RouteTableId": ...,
}

parent.disable_vgw_route_propagation(**kwargs)
  1. See DisableVgwRoutePropagationRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").disable_vpc_classic_link method. boto3 documentation

# disable_vpc_classic_link method definition

def disable_vpc_classic_link(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> DisableVpcClassicLinkResultTypeDef:  # (1)
    ...
  1. See DisableVpcClassicLinkResultTypeDef
# disable_vpc_classic_link method usage example with argument unpacking

kwargs: DisableVpcClassicLinkRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.disable_vpc_classic_link(**kwargs)
  1. See DisableVpcClassicLinkRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").disable_vpc_classic_link_dns_support method. boto3 documentation

# disable_vpc_classic_link_dns_support method definition

def disable_vpc_classic_link_dns_support(
    self,
    *,
    VpcId: str = ...,
) -> DisableVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See DisableVpcClassicLinkDnsSupportResultTypeDef
# disable_vpc_classic_link_dns_support method usage example with argument unpacking

kwargs: DisableVpcClassicLinkDnsSupportRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.disable_vpc_classic_link_dns_support(**kwargs)
  1. See DisableVpcClassicLinkDnsSupportRequestRequestTypeDef

disassociate_address#

Disassociates an Elastic IP address from the instance or network interface it's associated with.

Type annotations and code completion for boto3.client("ec2").disassociate_address method. boto3 documentation

# disassociate_address method definition

def disassociate_address(
    self,
    *,
    AssociationId: str = ...,
    PublicIp: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# disassociate_address method usage example with argument unpacking

kwargs: DisassociateAddressRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_address(**kwargs)
  1. See DisassociateAddressRequestRequestTypeDef

disassociate_client_vpn_target_network#

Disassociates a target network from the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").disassociate_client_vpn_target_network method. boto3 documentation

# disassociate_client_vpn_target_network method definition

def disassociate_client_vpn_target_network(
    self,
    *,
    ClientVpnEndpointId: str,
    AssociationId: str,
    DryRun: bool = ...,
) -> DisassociateClientVpnTargetNetworkResultTypeDef:  # (1)
    ...
  1. See DisassociateClientVpnTargetNetworkResultTypeDef
# disassociate_client_vpn_target_network method usage example with argument unpacking

kwargs: DisassociateClientVpnTargetNetworkRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "AssociationId": ...,
}

parent.disassociate_client_vpn_target_network(**kwargs)
  1. See DisassociateClientVpnTargetNetworkRequestRequestTypeDef

disassociate_enclave_certificate_iam_role#

Disassociates an IAM role from an Certificate Manager (ACM) certificate.

Type annotations and code completion for boto3.client("ec2").disassociate_enclave_certificate_iam_role method. boto3 documentation

# disassociate_enclave_certificate_iam_role method definition

def disassociate_enclave_certificate_iam_role(
    self,
    *,
    CertificateArn: str,
    RoleArn: str,
    DryRun: bool = ...,
) -> DisassociateEnclaveCertificateIamRoleResultTypeDef:  # (1)
    ...
  1. See DisassociateEnclaveCertificateIamRoleResultTypeDef
# disassociate_enclave_certificate_iam_role method usage example with argument unpacking

kwargs: DisassociateEnclaveCertificateIamRoleRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "RoleArn": ...,
}

parent.disassociate_enclave_certificate_iam_role(**kwargs)
  1. See DisassociateEnclaveCertificateIamRoleRequestRequestTypeDef

disassociate_iam_instance_profile#

Disassociates an IAM instance profile from a running or stopped instance.

Type annotations and code completion for boto3.client("ec2").disassociate_iam_instance_profile method. boto3 documentation

# disassociate_iam_instance_profile method definition

def disassociate_iam_instance_profile(
    self,
    *,
    AssociationId: str,
) -> DisassociateIamInstanceProfileResultTypeDef:  # (1)
    ...
  1. See DisassociateIamInstanceProfileResultTypeDef
# disassociate_iam_instance_profile method usage example with argument unpacking

kwargs: DisassociateIamInstanceProfileRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_iam_instance_profile(**kwargs)
  1. See DisassociateIamInstanceProfileRequestRequestTypeDef

disassociate_instance_event_window#

Disassociates one or more targets from an event window.

Type annotations and code completion for boto3.client("ec2").disassociate_instance_event_window method. boto3 documentation

# disassociate_instance_event_window method definition

def disassociate_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    AssociationTarget: InstanceEventWindowDisassociationRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> DisassociateInstanceEventWindowResultTypeDef:  # (2)
    ...
  1. See InstanceEventWindowDisassociationRequestTypeDef
  2. See DisassociateInstanceEventWindowResultTypeDef
# disassociate_instance_event_window method usage example with argument unpacking

kwargs: DisassociateInstanceEventWindowRequestRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
    "AssociationTarget": ...,
}

parent.disassociate_instance_event_window(**kwargs)
  1. See DisassociateInstanceEventWindowRequestRequestTypeDef

disassociate_ipam_byoasn#

Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR.

Type annotations and code completion for boto3.client("ec2").disassociate_ipam_byoasn method. boto3 documentation

# disassociate_ipam_byoasn method definition

def disassociate_ipam_byoasn(
    self,
    *,
    Asn: str,
    Cidr: str,
    DryRun: bool = ...,
) -> DisassociateIpamByoasnResultTypeDef:  # (1)
    ...
  1. See DisassociateIpamByoasnResultTypeDef
# disassociate_ipam_byoasn method usage example with argument unpacking

kwargs: DisassociateIpamByoasnRequestRequestTypeDef = {  # (1)
    "Asn": ...,
    "Cidr": ...,
}

parent.disassociate_ipam_byoasn(**kwargs)
  1. See DisassociateIpamByoasnRequestRequestTypeDef

disassociate_ipam_resource_discovery#

Disassociates a resource discovery from an Amazon VPC IPAM.

Type annotations and code completion for boto3.client("ec2").disassociate_ipam_resource_discovery method. boto3 documentation

# disassociate_ipam_resource_discovery method definition

def disassociate_ipam_resource_discovery(
    self,
    *,
    IpamResourceDiscoveryAssociationId: str,
    DryRun: bool = ...,
) -> DisassociateIpamResourceDiscoveryResultTypeDef:  # (1)
    ...
  1. See DisassociateIpamResourceDiscoveryResultTypeDef
# disassociate_ipam_resource_discovery method usage example with argument unpacking

kwargs: DisassociateIpamResourceDiscoveryRequestRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryAssociationId": ...,
}

parent.disassociate_ipam_resource_discovery(**kwargs)
  1. See DisassociateIpamResourceDiscoveryRequestRequestTypeDef

disassociate_nat_gateway_address#

Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway.

Type annotations and code completion for boto3.client("ec2").disassociate_nat_gateway_address method. boto3 documentation

# disassociate_nat_gateway_address method definition

def disassociate_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    AssociationIds: Sequence[str],
    MaxDrainDurationSeconds: int = ...,
    DryRun: bool = ...,
) -> DisassociateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See DisassociateNatGatewayAddressResultTypeDef
# disassociate_nat_gateway_address method usage example with argument unpacking

kwargs: DisassociateNatGatewayAddressRequestRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
    "AssociationIds": ...,
}

parent.disassociate_nat_gateway_address(**kwargs)
  1. See DisassociateNatGatewayAddressRequestRequestTypeDef

disassociate_route_table#

Disassociates a subnet or gateway from a route table.

Type annotations and code completion for boto3.client("ec2").disassociate_route_table method. boto3 documentation

# disassociate_route_table method definition

def disassociate_route_table(
    self,
    *,
    AssociationId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# disassociate_route_table method usage example with argument unpacking

kwargs: DisassociateRouteTableRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_route_table(**kwargs)
  1. See DisassociateRouteTableRequestRequestTypeDef

disassociate_subnet_cidr_block#

Disassociates a CIDR block from a subnet.

Type annotations and code completion for boto3.client("ec2").disassociate_subnet_cidr_block method. boto3 documentation

# disassociate_subnet_cidr_block method definition

def disassociate_subnet_cidr_block(
    self,
    *,
    AssociationId: str,
) -> DisassociateSubnetCidrBlockResultTypeDef:  # (1)
    ...
  1. See DisassociateSubnetCidrBlockResultTypeDef
# disassociate_subnet_cidr_block method usage example with argument unpacking

kwargs: DisassociateSubnetCidrBlockRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_subnet_cidr_block(**kwargs)
  1. See DisassociateSubnetCidrBlockRequestRequestTypeDef

disassociate_transit_gateway_multicast_domain#

Disassociates the specified subnets from the transit gateway multicast domain.

Type annotations and code completion for boto3.client("ec2").disassociate_transit_gateway_multicast_domain method. boto3 documentation

# disassociate_transit_gateway_multicast_domain method definition

def disassociate_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    TransitGatewayAttachmentId: str,
    SubnetIds: Sequence[str],
    DryRun: bool = ...,
) -> DisassociateTransitGatewayMulticastDomainResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayMulticastDomainResultTypeDef
# disassociate_transit_gateway_multicast_domain method usage example with argument unpacking

kwargs: DisassociateTransitGatewayMulticastDomainRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
    "TransitGatewayAttachmentId": ...,
    "SubnetIds": ...,
}

parent.disassociate_transit_gateway_multicast_domain(**kwargs)
  1. See DisassociateTransitGatewayMulticastDomainRequestRequestTypeDef

disassociate_transit_gateway_policy_table#

Removes the association between an an attachment and a policy table.

Type annotations and code completion for boto3.client("ec2").disassociate_transit_gateway_policy_table method. boto3 documentation

# disassociate_transit_gateway_policy_table method definition

def disassociate_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DisassociateTransitGatewayPolicyTableResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayPolicyTableResultTypeDef
# disassociate_transit_gateway_policy_table method usage example with argument unpacking

kwargs: DisassociateTransitGatewayPolicyTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

parent.disassociate_transit_gateway_policy_table(**kwargs)
  1. See DisassociateTransitGatewayPolicyTableRequestRequestTypeDef

disassociate_transit_gateway_route_table#

Disassociates a resource attachment from a transit gateway route table.

Type annotations and code completion for boto3.client("ec2").disassociate_transit_gateway_route_table method. boto3 documentation

# disassociate_transit_gateway_route_table method definition

def disassociate_transit_gateway_route_table(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DisassociateTransitGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayRouteTableResultTypeDef
# disassociate_transit_gateway_route_table method usage example with argument unpacking

kwargs: DisassociateTransitGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

parent.disassociate_transit_gateway_route_table(**kwargs)
  1. See DisassociateTransitGatewayRouteTableRequestRequestTypeDef

disassociate_trunk_interface#

Removes an association between a branch network interface with a trunk network interface.

Type annotations and code completion for boto3.client("ec2").disassociate_trunk_interface method. boto3 documentation

# disassociate_trunk_interface method definition

def disassociate_trunk_interface(
    self,
    *,
    AssociationId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DisassociateTrunkInterfaceResultTypeDef:  # (1)
    ...
  1. See DisassociateTrunkInterfaceResultTypeDef
# disassociate_trunk_interface method usage example with argument unpacking

kwargs: DisassociateTrunkInterfaceRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_trunk_interface(**kwargs)
  1. See DisassociateTrunkInterfaceRequestRequestTypeDef

disassociate_vpc_cidr_block#

Disassociates a CIDR block from a VPC.

Type annotations and code completion for boto3.client("ec2").disassociate_vpc_cidr_block method. boto3 documentation

# disassociate_vpc_cidr_block method definition

def disassociate_vpc_cidr_block(
    self,
    *,
    AssociationId: str,
) -> DisassociateVpcCidrBlockResultTypeDef:  # (1)
    ...
  1. See DisassociateVpcCidrBlockResultTypeDef
# disassociate_vpc_cidr_block method usage example with argument unpacking

kwargs: DisassociateVpcCidrBlockRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_vpc_cidr_block(**kwargs)
  1. See DisassociateVpcCidrBlockRequestRequestTypeDef

enable_address_transfer#

Enables Elastic IP address transfer.

Type annotations and code completion for boto3.client("ec2").enable_address_transfer method. boto3 documentation

# enable_address_transfer method definition

def enable_address_transfer(
    self,
    *,
    AllocationId: str,
    TransferAccountId: str,
    DryRun: bool = ...,
) -> EnableAddressTransferResultTypeDef:  # (1)
    ...
  1. See EnableAddressTransferResultTypeDef
# enable_address_transfer method usage example with argument unpacking

kwargs: EnableAddressTransferRequestRequestTypeDef = {  # (1)
    "AllocationId": ...,
    "TransferAccountId": ...,
}

parent.enable_address_transfer(**kwargs)
  1. See EnableAddressTransferRequestRequestTypeDef

enable_aws_network_performance_metric_subscription#

Enables Infrastructure Performance subscriptions.

Type annotations and code completion for boto3.client("ec2").enable_aws_network_performance_metric_subscription method. boto3 documentation

# enable_aws_network_performance_metric_subscription method definition

def enable_aws_network_performance_metric_subscription(
    self,
    *,
    Source: str = ...,
    Destination: str = ...,
    Metric: MetricTypeType = ...,  # (1)
    Statistic: StatisticTypeType = ...,  # (2)
    DryRun: bool = ...,
) -> EnableAwsNetworkPerformanceMetricSubscriptionResultTypeDef:  # (3)
    ...
  1. See MetricTypeType
  2. See StatisticTypeType
  3. 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)
  1. See EnableAwsNetworkPerformanceMetricSubscriptionRequestRequestTypeDef

enable_ebs_encryption_by_default#

Enables EBS encryption by default for your account in the current Region.

Type annotations and code completion for boto3.client("ec2").enable_ebs_encryption_by_default method. boto3 documentation

# enable_ebs_encryption_by_default method definition

def enable_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> EnableEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See EnableEbsEncryptionByDefaultResultTypeDef
# enable_ebs_encryption_by_default method usage example with argument unpacking

kwargs: EnableEbsEncryptionByDefaultRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_ebs_encryption_by_default(**kwargs)
  1. See EnableEbsEncryptionByDefaultRequestRequestTypeDef

enable_fast_launch#

When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster.

Type annotations and code completion for boto3.client("ec2").enable_fast_launch method. boto3 documentation

# enable_fast_launch method definition

def enable_fast_launch(
    self,
    *,
    ImageId: str,
    ResourceType: str = ...,
    SnapshotConfiguration: FastLaunchSnapshotConfigurationRequestTypeDef = ...,  # (1)
    LaunchTemplate: FastLaunchLaunchTemplateSpecificationRequestTypeDef = ...,  # (2)
    MaxParallelLaunches: int = ...,
    DryRun: bool = ...,
) -> EnableFastLaunchResultTypeDef:  # (3)
    ...
  1. See FastLaunchSnapshotConfigurationRequestTypeDef
  2. See FastLaunchLaunchTemplateSpecificationRequestTypeDef
  3. See EnableFastLaunchResultTypeDef
# enable_fast_launch method usage example with argument unpacking

kwargs: EnableFastLaunchRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.enable_fast_launch(**kwargs)
  1. See EnableFastLaunchRequestRequestTypeDef

enable_fast_snapshot_restores#

Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

Type annotations and code completion for boto3.client("ec2").enable_fast_snapshot_restores method. boto3 documentation

# enable_fast_snapshot_restores method definition

def enable_fast_snapshot_restores(
    self,
    *,
    AvailabilityZones: Sequence[str],
    SourceSnapshotIds: Sequence[str],
    DryRun: bool = ...,
) -> EnableFastSnapshotRestoresResultTypeDef:  # (1)
    ...
  1. See EnableFastSnapshotRestoresResultTypeDef
# enable_fast_snapshot_restores method usage example with argument unpacking

kwargs: EnableFastSnapshotRestoresRequestRequestTypeDef = {  # (1)
    "AvailabilityZones": ...,
    "SourceSnapshotIds": ...,
}

parent.enable_fast_snapshot_restores(**kwargs)
  1. See EnableFastSnapshotRestoresRequestRequestTypeDef

enable_image#

Re-enables a disabled AMI.

Type annotations and code completion for boto3.client("ec2").enable_image method. boto3 documentation

# enable_image method definition

def enable_image(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> EnableImageResultTypeDef:  # (1)
    ...
  1. See EnableImageResultTypeDef
# enable_image method usage example with argument unpacking

kwargs: EnableImageRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.enable_image(**kwargs)
  1. See EnableImageRequestRequestTypeDef

enable_image_block_public_access#

Enables block public access for AMIs at the account level in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").enable_image_block_public_access method. boto3 documentation

# enable_image_block_public_access method definition

def enable_image_block_public_access(
    self,
    *,
    ImageBlockPublicAccessState: ImageBlockPublicAccessEnabledStateType,  # (1)
    DryRun: bool = ...,
) -> EnableImageBlockPublicAccessResultTypeDef:  # (2)
    ...
  1. See ImageBlockPublicAccessEnabledStateType
  2. See EnableImageBlockPublicAccessResultTypeDef
# enable_image_block_public_access method usage example with argument unpacking

kwargs: EnableImageBlockPublicAccessRequestRequestTypeDef = {  # (1)
    "ImageBlockPublicAccessState": ...,
}

parent.enable_image_block_public_access(**kwargs)
  1. See EnableImageBlockPublicAccessRequestRequestTypeDef

enable_image_deprecation#

Enables deprecation of the specified AMI at the specified date and time.

Type annotations and code completion for boto3.client("ec2").enable_image_deprecation method. boto3 documentation

# enable_image_deprecation method definition

def enable_image_deprecation(
    self,
    *,
    ImageId: str,
    DeprecateAt: Union[datetime, str],
    DryRun: bool = ...,
) -> EnableImageDeprecationResultTypeDef:  # (1)
    ...
  1. See EnableImageDeprecationResultTypeDef
# enable_image_deprecation method usage example with argument unpacking

kwargs: EnableImageDeprecationRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
    "DeprecateAt": ...,
}

parent.enable_image_deprecation(**kwargs)
  1. See EnableImageDeprecationRequestRequestTypeDef

enable_ipam_organization_admin_account#

Enable an Organizations member account as the IPAM admin account.

Type annotations and code completion for boto3.client("ec2").enable_ipam_organization_admin_account method. boto3 documentation

# enable_ipam_organization_admin_account method definition

def enable_ipam_organization_admin_account(
    self,
    *,
    DelegatedAdminAccountId: str,
    DryRun: bool = ...,
) -> EnableIpamOrganizationAdminAccountResultTypeDef:  # (1)
    ...
  1. See EnableIpamOrganizationAdminAccountResultTypeDef
# enable_ipam_organization_admin_account method usage example with argument unpacking

kwargs: EnableIpamOrganizationAdminAccountRequestRequestTypeDef = {  # (1)
    "DelegatedAdminAccountId": ...,
}

parent.enable_ipam_organization_admin_account(**kwargs)
  1. See EnableIpamOrganizationAdminAccountRequestRequestTypeDef

enable_reachability_analyzer_organization_sharing#

Establishes a trust relationship between Reachability Analyzer and Organizations.

Type annotations and code completion for boto3.client("ec2").enable_reachability_analyzer_organization_sharing method. boto3 documentation

# enable_reachability_analyzer_organization_sharing method definition

def enable_reachability_analyzer_organization_sharing(
    self,
    *,
    DryRun: bool = ...,
) -> EnableReachabilityAnalyzerOrganizationSharingResultTypeDef:  # (1)
    ...
  1. See EnableReachabilityAnalyzerOrganizationSharingResultTypeDef
# enable_reachability_analyzer_organization_sharing method usage example with argument unpacking

kwargs: EnableReachabilityAnalyzerOrganizationSharingRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_reachability_analyzer_organization_sharing(**kwargs)
  1. See EnableReachabilityAnalyzerOrganizationSharingRequestRequestTypeDef

enable_serial_console_access#

Enables access to the EC2 serial console of all instances for your account.

Type annotations and code completion for boto3.client("ec2").enable_serial_console_access method. boto3 documentation

# enable_serial_console_access method definition

def enable_serial_console_access(
    self,
    *,
    DryRun: bool = ...,
) -> EnableSerialConsoleAccessResultTypeDef:  # (1)
    ...
  1. See EnableSerialConsoleAccessResultTypeDef
# enable_serial_console_access method usage example with argument unpacking

kwargs: EnableSerialConsoleAccessRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_serial_console_access(**kwargs)
  1. See EnableSerialConsoleAccessRequestRequestTypeDef

enable_snapshot_block_public_access#

Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").enable_snapshot_block_public_access method. boto3 documentation

# enable_snapshot_block_public_access method definition

def enable_snapshot_block_public_access(
    self,
    *,
    State: SnapshotBlockPublicAccessStateType,  # (1)
    DryRun: bool = ...,
) -> EnableSnapshotBlockPublicAccessResultTypeDef:  # (2)
    ...
  1. See SnapshotBlockPublicAccessStateType
  2. See EnableSnapshotBlockPublicAccessResultTypeDef
# enable_snapshot_block_public_access method usage example with argument unpacking

kwargs: EnableSnapshotBlockPublicAccessRequestRequestTypeDef = {  # (1)
    "State": ...,
}

parent.enable_snapshot_block_public_access(**kwargs)
  1. See EnableSnapshotBlockPublicAccessRequestRequestTypeDef

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 boto3.client("ec2").enable_transit_gateway_route_table_propagation method. boto3 documentation

# enable_transit_gateway_route_table_propagation method definition

def enable_transit_gateway_route_table_propagation(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    DryRun: bool = ...,
    TransitGatewayRouteTableAnnouncementId: str = ...,
) -> EnableTransitGatewayRouteTablePropagationResultTypeDef:  # (1)
    ...
  1. See EnableTransitGatewayRouteTablePropagationResultTypeDef
# enable_transit_gateway_route_table_propagation method usage example with argument unpacking

kwargs: EnableTransitGatewayRouteTablePropagationRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.enable_transit_gateway_route_table_propagation(**kwargs)
  1. See EnableTransitGatewayRouteTablePropagationRequestRequestTypeDef

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 boto3.client("ec2").enable_vgw_route_propagation method. boto3 documentation

# enable_vgw_route_propagation method definition

def enable_vgw_route_propagation(
    self,
    *,
    GatewayId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# enable_vgw_route_propagation method usage example with argument unpacking

kwargs: EnableVgwRoutePropagationRequestRequestTypeDef = {  # (1)
    "GatewayId": ...,
    "RouteTableId": ...,
}

parent.enable_vgw_route_propagation(**kwargs)
  1. See EnableVgwRoutePropagationRequestRequestTypeDef

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 boto3.client("ec2").enable_volume_io method. boto3 documentation

# enable_volume_io method definition

def enable_volume_io(
    self,
    *,
    VolumeId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# enable_volume_io method usage example with argument unpacking

kwargs: EnableVolumeIORequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.enable_volume_io(**kwargs)
  1. See EnableVolumeIORequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").enable_vpc_classic_link method. boto3 documentation

# enable_vpc_classic_link method definition

def enable_vpc_classic_link(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> EnableVpcClassicLinkResultTypeDef:  # (1)
    ...
  1. See EnableVpcClassicLinkResultTypeDef
# enable_vpc_classic_link method usage example with argument unpacking

kwargs: EnableVpcClassicLinkRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.enable_vpc_classic_link(**kwargs)
  1. See EnableVpcClassicLinkRequestRequestTypeDef

.

Type annotations and code completion for boto3.client("ec2").enable_vpc_classic_link_dns_support method. boto3 documentation

# enable_vpc_classic_link_dns_support method definition

def enable_vpc_classic_link_dns_support(
    self,
    *,
    VpcId: str = ...,
) -> EnableVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See EnableVpcClassicLinkDnsSupportResultTypeDef
# enable_vpc_classic_link_dns_support method usage example with argument unpacking

kwargs: EnableVpcClassicLinkDnsSupportRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.enable_vpc_classic_link_dns_support(**kwargs)
  1. See EnableVpcClassicLinkDnsSupportRequestRequestTypeDef

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 boto3.client("ec2").export_client_vpn_client_certificate_revocation_list method. boto3 documentation

# export_client_vpn_client_certificate_revocation_list method definition

def export_client_vpn_client_certificate_revocation_list(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> ExportClientVpnClientCertificateRevocationListResultTypeDef:  # (1)
    ...
  1. See ExportClientVpnClientCertificateRevocationListResultTypeDef
# 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)
  1. See ExportClientVpnClientCertificateRevocationListRequestRequestTypeDef

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 boto3.client("ec2").export_client_vpn_client_configuration method. boto3 documentation

# export_client_vpn_client_configuration method definition

def export_client_vpn_client_configuration(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> ExportClientVpnClientConfigurationResultTypeDef:  # (1)
    ...
  1. See ExportClientVpnClientConfigurationResultTypeDef
# export_client_vpn_client_configuration method usage example with argument unpacking

kwargs: ExportClientVpnClientConfigurationRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.export_client_vpn_client_configuration(**kwargs)
  1. See ExportClientVpnClientConfigurationRequestRequestTypeDef

export_image#

Exports an Amazon Machine Image (AMI) to a VM file.

Type annotations and code completion for boto3.client("ec2").export_image method. boto3 documentation

# export_image method definition

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)
    ...
  1. See DiskImageFormatType
  2. See ExportTaskS3LocationRequestTypeDef
  3. See TagSpecificationTypeDef
  4. See ExportImageResultTypeDef
# export_image method usage example with argument unpacking

kwargs: ExportImageRequestRequestTypeDef = {  # (1)
    "DiskImageFormat": ...,
    "ImageId": ...,
    "S3ExportLocation": ...,
}

parent.export_image(**kwargs)
  1. See ExportImageRequestRequestTypeDef

export_transit_gateway_routes#

Exports routes from the specified transit gateway route table to the specified S3 bucket.

Type annotations and code completion for boto3.client("ec2").export_transit_gateway_routes method. boto3 documentation

# export_transit_gateway_routes method definition

def export_transit_gateway_routes(
    self,
    *,
    TransitGatewayRouteTableId: str,
    S3Bucket: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> ExportTransitGatewayRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ExportTransitGatewayRoutesResultTypeDef
# export_transit_gateway_routes method usage example with argument unpacking

kwargs: ExportTransitGatewayRoutesRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "S3Bucket": ...,
}

parent.export_transit_gateway_routes(**kwargs)
  1. See ExportTransitGatewayRoutesRequestRequestTypeDef

generate_presigned_url#

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("ec2").generate_presigned_url method. boto3 documentation

# generate_presigned_url method definition

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 boto3.client("ec2").get_associated_enclave_certificate_iam_roles method. boto3 documentation

# get_associated_enclave_certificate_iam_roles method definition

def get_associated_enclave_certificate_iam_roles(
    self,
    *,
    CertificateArn: str,
    DryRun: bool = ...,
) -> GetAssociatedEnclaveCertificateIamRolesResultTypeDef:  # (1)
    ...
  1. See GetAssociatedEnclaveCertificateIamRolesResultTypeDef
# get_associated_enclave_certificate_iam_roles method usage example with argument unpacking

kwargs: GetAssociatedEnclaveCertificateIamRolesRequestRequestTypeDef = {  # (1)
    "CertificateArn": ...,
}

parent.get_associated_enclave_certificate_iam_roles(**kwargs)
  1. See GetAssociatedEnclaveCertificateIamRolesRequestRequestTypeDef

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 boto3.client("ec2").get_associated_ipv6_pool_cidrs method. boto3 documentation

# get_associated_ipv6_pool_cidrs method definition

def get_associated_ipv6_pool_cidrs(
    self,
    *,
    PoolId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetAssociatedIpv6PoolCidrsResultTypeDef:  # (1)
    ...
  1. See GetAssociatedIpv6PoolCidrsResultTypeDef
# get_associated_ipv6_pool_cidrs method usage example with argument unpacking

kwargs: GetAssociatedIpv6PoolCidrsRequestRequestTypeDef = {  # (1)
    "PoolId": ...,
}

parent.get_associated_ipv6_pool_cidrs(**kwargs)
  1. See GetAssociatedIpv6PoolCidrsRequestRequestTypeDef

get_aws_network_performance_data#

Gets network performance data.

Type annotations and code completion for boto3.client("ec2").get_aws_network_performance_data method. boto3 documentation

# get_aws_network_performance_data method definition

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)
    ...
  1. See DataQueryTypeDef
  2. See GetAwsNetworkPerformanceDataResultTypeDef
# get_aws_network_performance_data method usage example with argument unpacking

kwargs: GetAwsNetworkPerformanceDataRequestRequestTypeDef = {  # (1)
    "DataQueries": ...,
}

parent.get_aws_network_performance_data(**kwargs)
  1. See GetAwsNetworkPerformanceDataRequestRequestTypeDef

get_capacity_reservation_usage#

Gets usage information about a Capacity Reservation.

Type annotations and code completion for boto3.client("ec2").get_capacity_reservation_usage method. boto3 documentation

# get_capacity_reservation_usage method definition

def get_capacity_reservation_usage(
    self,
    *,
    CapacityReservationId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetCapacityReservationUsageResultTypeDef:  # (1)
    ...
  1. See GetCapacityReservationUsageResultTypeDef
# get_capacity_reservation_usage method usage example with argument unpacking

kwargs: GetCapacityReservationUsageRequestRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.get_capacity_reservation_usage(**kwargs)
  1. See GetCapacityReservationUsageRequestRequestTypeDef

get_coip_pool_usage#

Describes the allocations from the specified customer-owned address pool.

Type annotations and code completion for boto3.client("ec2").get_coip_pool_usage method. boto3 documentation

# get_coip_pool_usage method definition

def get_coip_pool_usage(
    self,
    *,
    PoolId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetCoipPoolUsageResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetCoipPoolUsageResultTypeDef
# get_coip_pool_usage method usage example with argument unpacking

kwargs: GetCoipPoolUsageRequestRequestTypeDef = {  # (1)
    "PoolId": ...,
}

parent.get_coip_pool_usage(**kwargs)
  1. See GetCoipPoolUsageRequestRequestTypeDef

get_console_output#

Gets the console output for the specified instance.

Type annotations and code completion for boto3.client("ec2").get_console_output method. boto3 documentation

# get_console_output method definition

def get_console_output(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
    Latest: bool = ...,
) -> GetConsoleOutputResultTypeDef:  # (1)
    ...
  1. See GetConsoleOutputResultTypeDef
# get_console_output method usage example with argument unpacking

kwargs: GetConsoleOutputRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_console_output(**kwargs)
  1. See GetConsoleOutputRequestRequestTypeDef

get_console_screenshot#

Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

Type annotations and code completion for boto3.client("ec2").get_console_screenshot method. boto3 documentation

# get_console_screenshot method definition

def get_console_screenshot(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
    WakeUp: bool = ...,
) -> GetConsoleScreenshotResultTypeDef:  # (1)
    ...
  1. See GetConsoleScreenshotResultTypeDef
# get_console_screenshot method usage example with argument unpacking

kwargs: GetConsoleScreenshotRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_console_screenshot(**kwargs)
  1. See GetConsoleScreenshotRequestRequestTypeDef

get_default_credit_specification#

Describes the default credit option for CPU usage of a burstable performance instance family.

Type annotations and code completion for boto3.client("ec2").get_default_credit_specification method. boto3 documentation

# get_default_credit_specification method definition

def get_default_credit_specification(
    self,
    *,
    InstanceFamily: UnlimitedSupportedInstanceFamilyType,  # (1)
    DryRun: bool = ...,
) -> GetDefaultCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See UnlimitedSupportedInstanceFamilyType
  2. See GetDefaultCreditSpecificationResultTypeDef
# get_default_credit_specification method usage example with argument unpacking

kwargs: GetDefaultCreditSpecificationRequestRequestTypeDef = {  # (1)
    "InstanceFamily": ...,
}

parent.get_default_credit_specification(**kwargs)
  1. See GetDefaultCreditSpecificationRequestRequestTypeDef

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 boto3.client("ec2").get_ebs_default_kms_key_id method. boto3 documentation

# get_ebs_default_kms_key_id method definition

def get_ebs_default_kms_key_id(
    self,
    *,
    DryRun: bool = ...,
) -> GetEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See GetEbsDefaultKmsKeyIdResultTypeDef
# get_ebs_default_kms_key_id method usage example with argument unpacking

kwargs: GetEbsDefaultKmsKeyIdRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_ebs_default_kms_key_id(**kwargs)
  1. See GetEbsDefaultKmsKeyIdRequestRequestTypeDef

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 boto3.client("ec2").get_ebs_encryption_by_default method. boto3 documentation

# get_ebs_encryption_by_default method definition

def get_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> GetEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See GetEbsEncryptionByDefaultResultTypeDef
# get_ebs_encryption_by_default method usage example with argument unpacking

kwargs: GetEbsEncryptionByDefaultRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_ebs_encryption_by_default(**kwargs)
  1. See GetEbsEncryptionByDefaultRequestRequestTypeDef

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 boto3.client("ec2").get_flow_logs_integration_template method. boto3 documentation

# get_flow_logs_integration_template method definition

def get_flow_logs_integration_template(
    self,
    *,
    FlowLogId: str,
    ConfigDeliveryS3DestinationArn: str,
    IntegrateServices: IntegrateServicesTypeDef,  # (1)
    DryRun: bool = ...,
) -> GetFlowLogsIntegrationTemplateResultTypeDef:  # (2)
    ...
  1. See IntegrateServicesTypeDef
  2. See GetFlowLogsIntegrationTemplateResultTypeDef
# get_flow_logs_integration_template method usage example with argument unpacking

kwargs: GetFlowLogsIntegrationTemplateRequestRequestTypeDef = {  # (1)
    "FlowLogId": ...,
    "ConfigDeliveryS3DestinationArn": ...,
    "IntegrateServices": ...,
}

parent.get_flow_logs_integration_template(**kwargs)
  1. See GetFlowLogsIntegrationTemplateRequestRequestTypeDef

get_groups_for_capacity_reservation#

Lists the resource groups to which a Capacity Reservation has been added.

Type annotations and code completion for boto3.client("ec2").get_groups_for_capacity_reservation method. boto3 documentation

# get_groups_for_capacity_reservation method definition

def get_groups_for_capacity_reservation(
    self,
    *,
    CapacityReservationId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetGroupsForCapacityReservationResultTypeDef:  # (1)
    ...
  1. See GetGroupsForCapacityReservationResultTypeDef
# get_groups_for_capacity_reservation method usage example with argument unpacking

kwargs: GetGroupsForCapacityReservationRequestRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.get_groups_for_capacity_reservation(**kwargs)
  1. See GetGroupsForCapacityReservationRequestRequestTypeDef

get_host_reservation_purchase_preview#

Preview a reservation purchase with configurations that match those of your Dedicated Host.

Type annotations and code completion for boto3.client("ec2").get_host_reservation_purchase_preview method. boto3 documentation

# get_host_reservation_purchase_preview method definition

def get_host_reservation_purchase_preview(
    self,
    *,
    HostIdSet: Sequence[str],
    OfferingId: str,
) -> GetHostReservationPurchasePreviewResultTypeDef:  # (1)
    ...
  1. See GetHostReservationPurchasePreviewResultTypeDef
# get_host_reservation_purchase_preview method usage example with argument unpacking

kwargs: GetHostReservationPurchasePreviewRequestRequestTypeDef = {  # (1)
    "HostIdSet": ...,
    "OfferingId": ...,
}

parent.get_host_reservation_purchase_preview(**kwargs)
  1. See GetHostReservationPurchasePreviewRequestRequestTypeDef

get_image_block_public_access_state#

Gets the current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").get_image_block_public_access_state method. boto3 documentation

# get_image_block_public_access_state method definition

def get_image_block_public_access_state(
    self,
    *,
    DryRun: bool = ...,
) -> GetImageBlockPublicAccessStateResultTypeDef:  # (1)
    ...
  1. See GetImageBlockPublicAccessStateResultTypeDef
# get_image_block_public_access_state method usage example with argument unpacking

kwargs: GetImageBlockPublicAccessStateRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_image_block_public_access_state(**kwargs)
  1. See GetImageBlockPublicAccessStateRequestRequestTypeDef

get_instance_types_from_instance_requirements#

Returns a list of instance types with the specified instance attributes.

Type annotations and code completion for boto3.client("ec2").get_instance_types_from_instance_requirements method. boto3 documentation

# get_instance_types_from_instance_requirements method definition

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)
    ...
  1. See ArchitectureTypeType
  2. See VirtualizationTypeType
  3. See InstanceRequirementsRequestTypeDef
  4. 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)
  1. See GetInstanceTypesFromInstanceRequirementsRequestRequestTypeDef

get_instance_uefi_data#

A binary representation of the UEFI variable store.

Type annotations and code completion for boto3.client("ec2").get_instance_uefi_data method. boto3 documentation

# get_instance_uefi_data method definition

def get_instance_uefi_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetInstanceUefiDataResultTypeDef:  # (1)
    ...
  1. See GetInstanceUefiDataResultTypeDef
# get_instance_uefi_data method usage example with argument unpacking

kwargs: GetInstanceUefiDataRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_instance_uefi_data(**kwargs)
  1. See GetInstanceUefiDataRequestRequestTypeDef

get_ipam_address_history#

Retrieve historical information about a CIDR within an IPAM scope.

Type annotations and code completion for boto3.client("ec2").get_ipam_address_history method. boto3 documentation

# get_ipam_address_history method definition

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)
    ...
  1. See GetIpamAddressHistoryResultTypeDef
# get_ipam_address_history method usage example with argument unpacking

kwargs: GetIpamAddressHistoryRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
    "IpamScopeId": ...,
}

parent.get_ipam_address_history(**kwargs)
  1. See GetIpamAddressHistoryRequestRequestTypeDef

get_ipam_discovered_accounts#

Gets IPAM discovered accounts.

Type annotations and code completion for boto3.client("ec2").get_ipam_discovered_accounts method. boto3 documentation

# get_ipam_discovered_accounts method definition

def get_ipam_discovered_accounts(
    self,
    *,
    IpamResourceDiscoveryId: str,
    DiscoveryRegion: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetIpamDiscoveredAccountsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamDiscoveredAccountsResultTypeDef
# get_ipam_discovered_accounts method usage example with argument unpacking

kwargs: GetIpamDiscoveredAccountsRequestRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
    "DiscoveryRegion": ...,
}

parent.get_ipam_discovered_accounts(**kwargs)
  1. See GetIpamDiscoveredAccountsRequestRequestTypeDef

get_ipam_discovered_public_addresses#

Gets the public IP addresses that have been discovered by IPAM.

Type annotations and code completion for boto3.client("ec2").get_ipam_discovered_public_addresses method. boto3 documentation

# get_ipam_discovered_public_addresses method definition

def get_ipam_discovered_public_addresses(
    self,
    *,
    IpamResourceDiscoveryId: str,
    AddressRegion: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetIpamDiscoveredPublicAddressesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamDiscoveredPublicAddressesResultTypeDef
# get_ipam_discovered_public_addresses method usage example with argument unpacking

kwargs: GetIpamDiscoveredPublicAddressesRequestRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
    "AddressRegion": ...,
}

parent.get_ipam_discovered_public_addresses(**kwargs)
  1. See GetIpamDiscoveredPublicAddressesRequestRequestTypeDef

get_ipam_discovered_resource_cidrs#

Returns the resource CIDRs that are monitored as part of a resource discovery.

Type annotations and code completion for boto3.client("ec2").get_ipam_discovered_resource_cidrs method. boto3 documentation

# get_ipam_discovered_resource_cidrs method definition

def get_ipam_discovered_resource_cidrs(
    self,
    *,
    IpamResourceDiscoveryId: str,
    ResourceRegion: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetIpamDiscoveredResourceCidrsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamDiscoveredResourceCidrsResultTypeDef
# get_ipam_discovered_resource_cidrs method usage example with argument unpacking

kwargs: GetIpamDiscoveredResourceCidrsRequestRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
    "ResourceRegion": ...,
}

parent.get_ipam_discovered_resource_cidrs(**kwargs)
  1. See GetIpamDiscoveredResourceCidrsRequestRequestTypeDef

get_ipam_pool_allocations#

Get a list of all the CIDR allocations in an IPAM pool.

Type annotations and code completion for boto3.client("ec2").get_ipam_pool_allocations method. boto3 documentation

# get_ipam_pool_allocations method definition

def get_ipam_pool_allocations(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    IpamPoolAllocationId: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetIpamPoolAllocationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamPoolAllocationsResultTypeDef
# get_ipam_pool_allocations method usage example with argument unpacking

kwargs: GetIpamPoolAllocationsRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.get_ipam_pool_allocations(**kwargs)
  1. See GetIpamPoolAllocationsRequestRequestTypeDef

get_ipam_pool_cidrs#

Get the CIDRs provisioned to an IPAM pool.

Type annotations and code completion for boto3.client("ec2").get_ipam_pool_cidrs method. boto3 documentation

# get_ipam_pool_cidrs method definition

def get_ipam_pool_cidrs(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetIpamPoolCidrsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamPoolCidrsResultTypeDef
# get_ipam_pool_cidrs method usage example with argument unpacking

kwargs: GetIpamPoolCidrsRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.get_ipam_pool_cidrs(**kwargs)
  1. See GetIpamPoolCidrsRequestRequestTypeDef

get_ipam_resource_cidrs#

Returns resource CIDRs managed by IPAM in a given scope.

Type annotations and code completion for boto3.client("ec2").get_ipam_resource_cidrs method. boto3 documentation

# get_ipam_resource_cidrs method definition

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)
    ...
  1. See FilterTypeDef
  2. See IpamResourceTypeType
  3. See RequestIpamResourceTagTypeDef
  4. See GetIpamResourceCidrsResultTypeDef
# get_ipam_resource_cidrs method usage example with argument unpacking

kwargs: GetIpamResourceCidrsRequestRequestTypeDef = {  # (1)
    "IpamScopeId": ...,
}

parent.get_ipam_resource_cidrs(**kwargs)
  1. See GetIpamResourceCidrsRequestRequestTypeDef

get_launch_template_data#

Retrieves the configuration data of the specified instance.

Type annotations and code completion for boto3.client("ec2").get_launch_template_data method. boto3 documentation

# get_launch_template_data method definition

def get_launch_template_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetLaunchTemplateDataResultTypeDef:  # (1)
    ...
  1. See GetLaunchTemplateDataResultTypeDef
# get_launch_template_data method usage example with argument unpacking

kwargs: GetLaunchTemplateDataRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_launch_template_data(**kwargs)
  1. See GetLaunchTemplateDataRequestRequestTypeDef

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 boto3.client("ec2").get_managed_prefix_list_associations method. boto3 documentation

# get_managed_prefix_list_associations method definition

def get_managed_prefix_list_associations(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetManagedPrefixListAssociationsResultTypeDef:  # (1)
    ...
  1. See GetManagedPrefixListAssociationsResultTypeDef
# get_managed_prefix_list_associations method usage example with argument unpacking

kwargs: GetManagedPrefixListAssociationsRequestRequestTypeDef = {  # (1)
    "PrefixListId": ...,
}

parent.get_managed_prefix_list_associations(**kwargs)
  1. See GetManagedPrefixListAssociationsRequestRequestTypeDef

get_managed_prefix_list_entries#

Gets information about the entries for a specified managed prefix list.

Type annotations and code completion for boto3.client("ec2").get_managed_prefix_list_entries method. boto3 documentation

# get_managed_prefix_list_entries method definition

def get_managed_prefix_list_entries(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
    TargetVersion: int = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetManagedPrefixListEntriesResultTypeDef:  # (1)
    ...
  1. See GetManagedPrefixListEntriesResultTypeDef
# get_managed_prefix_list_entries method usage example with argument unpacking

kwargs: GetManagedPrefixListEntriesRequestRequestTypeDef = {  # (1)
    "PrefixListId": ...,
}

parent.get_managed_prefix_list_entries(**kwargs)
  1. See GetManagedPrefixListEntriesRequestRequestTypeDef

get_network_insights_access_scope_analysis_findings#

Gets the findings for the specified Network Access Scope analysis.

Type annotations and code completion for boto3.client("ec2").get_network_insights_access_scope_analysis_findings method. boto3 documentation

# get_network_insights_access_scope_analysis_findings method definition

def get_network_insights_access_scope_analysis_findings(
    self,
    *,
    NetworkInsightsAccessScopeAnalysisId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeAnalysisFindingsResultTypeDef:  # (1)
    ...
  1. See GetNetworkInsightsAccessScopeAnalysisFindingsResultTypeDef
# 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)
  1. See GetNetworkInsightsAccessScopeAnalysisFindingsRequestRequestTypeDef

get_network_insights_access_scope_content#

Gets the content for the specified Network Access Scope.

Type annotations and code completion for boto3.client("ec2").get_network_insights_access_scope_content method. boto3 documentation

# get_network_insights_access_scope_content method definition

def get_network_insights_access_scope_content(
    self,
    *,
    NetworkInsightsAccessScopeId: str,
    DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeContentResultTypeDef:  # (1)
    ...
  1. See GetNetworkInsightsAccessScopeContentResultTypeDef
# get_network_insights_access_scope_content method usage example with argument unpacking

kwargs: GetNetworkInsightsAccessScopeContentRequestRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeId": ...,
}

parent.get_network_insights_access_scope_content(**kwargs)
  1. See GetNetworkInsightsAccessScopeContentRequestRequestTypeDef

get_password_data#

Retrieves the encrypted administrator password for a running Windows instance.

Type annotations and code completion for boto3.client("ec2").get_password_data method. boto3 documentation

# get_password_data method definition

def get_password_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetPasswordDataResultTypeDef:  # (1)
    ...
  1. See GetPasswordDataResultTypeDef
# get_password_data method usage example with argument unpacking

kwargs: GetPasswordDataRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_password_data(**kwargs)
  1. See GetPasswordDataRequestRequestTypeDef

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 boto3.client("ec2").get_reserved_instances_exchange_quote method. boto3 documentation

# get_reserved_instances_exchange_quote method definition

def get_reserved_instances_exchange_quote(
    self,
    *,
    ReservedInstanceIds: Sequence[str],
    DryRun: bool = ...,
    TargetConfigurations: Sequence[TargetConfigurationRequestTypeDef] = ...,  # (1)
) -> GetReservedInstancesExchangeQuoteResultTypeDef:  # (2)
    ...
  1. See TargetConfigurationRequestTypeDef
  2. See GetReservedInstancesExchangeQuoteResultTypeDef
# get_reserved_instances_exchange_quote method usage example with argument unpacking

kwargs: GetReservedInstancesExchangeQuoteRequestRequestTypeDef = {  # (1)
    "ReservedInstanceIds": ...,
}

parent.get_reserved_instances_exchange_quote(**kwargs)
  1. See GetReservedInstancesExchangeQuoteRequestRequestTypeDef

get_security_groups_for_vpc#

Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC.

Type annotations and code completion for boto3.client("ec2").get_security_groups_for_vpc method. boto3 documentation

# get_security_groups_for_vpc method definition

def get_security_groups_for_vpc(
    self,
    *,
    VpcId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> GetSecurityGroupsForVpcResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetSecurityGroupsForVpcResultTypeDef
# get_security_groups_for_vpc method usage example with argument unpacking

kwargs: GetSecurityGroupsForVpcRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.get_security_groups_for_vpc(**kwargs)
  1. See GetSecurityGroupsForVpcRequestRequestTypeDef

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 boto3.client("ec2").get_serial_console_access_status method. boto3 documentation

# get_serial_console_access_status method definition

def get_serial_console_access_status(
    self,
    *,
    DryRun: bool = ...,
) -> GetSerialConsoleAccessStatusResultTypeDef:  # (1)
    ...
  1. See GetSerialConsoleAccessStatusResultTypeDef
# get_serial_console_access_status method usage example with argument unpacking

kwargs: GetSerialConsoleAccessStatusRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_serial_console_access_status(**kwargs)
  1. See GetSerialConsoleAccessStatusRequestRequestTypeDef

get_snapshot_block_public_access_state#

Gets the current state of block public access for snapshots setting for the account and Region.

Type annotations and code completion for boto3.client("ec2").get_snapshot_block_public_access_state method. boto3 documentation

# get_snapshot_block_public_access_state method definition

def get_snapshot_block_public_access_state(
    self,
    *,
    DryRun: bool = ...,
) -> GetSnapshotBlockPublicAccessStateResultTypeDef:  # (1)
    ...
  1. See GetSnapshotBlockPublicAccessStateResultTypeDef
# get_snapshot_block_public_access_state method usage example with argument unpacking

kwargs: GetSnapshotBlockPublicAccessStateRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_snapshot_block_public_access_state(**kwargs)
  1. See GetSnapshotBlockPublicAccessStateRequestRequestTypeDef

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 boto3.client("ec2").get_spot_placement_scores method. boto3 documentation

# get_spot_placement_scores method definition

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)
    ...
  1. See TargetCapacityUnitTypeType
  2. See InstanceRequirementsWithMetadataRequestTypeDef
  3. See GetSpotPlacementScoresResultTypeDef
# get_spot_placement_scores method usage example with argument unpacking

kwargs: GetSpotPlacementScoresRequestRequestTypeDef = {  # (1)
    "TargetCapacity": ...,
}

parent.get_spot_placement_scores(**kwargs)
  1. See GetSpotPlacementScoresRequestRequestTypeDef

get_subnet_cidr_reservations#

Gets information about the subnet CIDR reservations.

Type annotations and code completion for boto3.client("ec2").get_subnet_cidr_reservations method. boto3 documentation

# get_subnet_cidr_reservations method definition

def get_subnet_cidr_reservations(
    self,
    *,
    SubnetId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetSubnetCidrReservationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetSubnetCidrReservationsResultTypeDef
# get_subnet_cidr_reservations method usage example with argument unpacking

kwargs: GetSubnetCidrReservationsRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.get_subnet_cidr_reservations(**kwargs)
  1. See GetSubnetCidrReservationsRequestRequestTypeDef

get_transit_gateway_attachment_propagations#

Lists the route tables to which the specified resource attachment propagates routes.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_attachment_propagations method. boto3 documentation

# get_transit_gateway_attachment_propagations method definition

def get_transit_gateway_attachment_propagations(
    self,
    *,
    TransitGatewayAttachmentId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayAttachmentPropagationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayAttachmentPropagationsResultTypeDef
# get_transit_gateway_attachment_propagations method usage example with argument unpacking

kwargs: GetTransitGatewayAttachmentPropagationsRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.get_transit_gateway_attachment_propagations(**kwargs)
  1. See GetTransitGatewayAttachmentPropagationsRequestRequestTypeDef

get_transit_gateway_multicast_domain_associations#

Gets information about the associations for the transit gateway multicast domain.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_multicast_domain_associations method. boto3 documentation

# get_transit_gateway_multicast_domain_associations method definition

def get_transit_gateway_multicast_domain_associations(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayMulticastDomainAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayMulticastDomainAssociationsResultTypeDef
# get_transit_gateway_multicast_domain_associations method usage example with argument unpacking

kwargs: GetTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.get_transit_gateway_multicast_domain_associations(**kwargs)
  1. See GetTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef

get_transit_gateway_policy_table_associations#

Gets a list of the transit gateway policy table associations.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_policy_table_associations method. boto3 documentation

# get_transit_gateway_policy_table_associations method definition

def get_transit_gateway_policy_table_associations(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayPolicyTableAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayPolicyTableAssociationsResultTypeDef
# get_transit_gateway_policy_table_associations method usage example with argument unpacking

kwargs: GetTransitGatewayPolicyTableAssociationsRequestRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
}

parent.get_transit_gateway_policy_table_associations(**kwargs)
  1. See GetTransitGatewayPolicyTableAssociationsRequestRequestTypeDef

get_transit_gateway_policy_table_entries#

Returns a list of transit gateway policy table entries.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_policy_table_entries method. boto3 documentation

# get_transit_gateway_policy_table_entries method definition

def get_transit_gateway_policy_table_entries(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayPolicyTableEntriesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayPolicyTableEntriesResultTypeDef
# get_transit_gateway_policy_table_entries method usage example with argument unpacking

kwargs: GetTransitGatewayPolicyTableEntriesRequestRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
}

parent.get_transit_gateway_policy_table_entries(**kwargs)
  1. See GetTransitGatewayPolicyTableEntriesRequestRequestTypeDef

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 boto3.client("ec2").get_transit_gateway_prefix_list_references method. boto3 documentation

# get_transit_gateway_prefix_list_references method definition

def get_transit_gateway_prefix_list_references(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayPrefixListReferencesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayPrefixListReferencesResultTypeDef
# get_transit_gateway_prefix_list_references method usage example with argument unpacking

kwargs: GetTransitGatewayPrefixListReferencesRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.get_transit_gateway_prefix_list_references(**kwargs)
  1. See GetTransitGatewayPrefixListReferencesRequestRequestTypeDef

get_transit_gateway_route_table_associations#

Gets information about the associations for the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_route_table_associations method. boto3 documentation

# get_transit_gateway_route_table_associations method definition

def get_transit_gateway_route_table_associations(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayRouteTableAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayRouteTableAssociationsResultTypeDef
# get_transit_gateway_route_table_associations method usage example with argument unpacking

kwargs: GetTransitGatewayRouteTableAssociationsRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.get_transit_gateway_route_table_associations(**kwargs)
  1. See GetTransitGatewayRouteTableAssociationsRequestRequestTypeDef

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 boto3.client("ec2").get_transit_gateway_route_table_propagations method. boto3 documentation

# get_transit_gateway_route_table_propagations method definition

def get_transit_gateway_route_table_propagations(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayRouteTablePropagationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayRouteTablePropagationsResultTypeDef
# get_transit_gateway_route_table_propagations method usage example with argument unpacking

kwargs: GetTransitGatewayRouteTablePropagationsRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.get_transit_gateway_route_table_propagations(**kwargs)
  1. See GetTransitGatewayRouteTablePropagationsRequestRequestTypeDef

get_verified_access_endpoint_policy#

Get the Verified Access policy associated with the endpoint.

Type annotations and code completion for boto3.client("ec2").get_verified_access_endpoint_policy method. boto3 documentation

# get_verified_access_endpoint_policy method definition

def get_verified_access_endpoint_policy(
    self,
    *,
    VerifiedAccessEndpointId: str,
    DryRun: bool = ...,
) -> GetVerifiedAccessEndpointPolicyResultTypeDef:  # (1)
    ...
  1. See GetVerifiedAccessEndpointPolicyResultTypeDef
# get_verified_access_endpoint_policy method usage example with argument unpacking

kwargs: GetVerifiedAccessEndpointPolicyRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.get_verified_access_endpoint_policy(**kwargs)
  1. See GetVerifiedAccessEndpointPolicyRequestRequestTypeDef

get_verified_access_group_policy#

Shows the contents of the Verified Access policy associated with the group.

Type annotations and code completion for boto3.client("ec2").get_verified_access_group_policy method. boto3 documentation

# get_verified_access_group_policy method definition

def get_verified_access_group_policy(
    self,
    *,
    VerifiedAccessGroupId: str,
    DryRun: bool = ...,
) -> GetVerifiedAccessGroupPolicyResultTypeDef:  # (1)
    ...
  1. See GetVerifiedAccessGroupPolicyResultTypeDef
# get_verified_access_group_policy method usage example with argument unpacking

kwargs: GetVerifiedAccessGroupPolicyRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.get_verified_access_group_policy(**kwargs)
  1. See GetVerifiedAccessGroupPolicyRequestRequestTypeDef

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 boto3.client("ec2").get_vpn_connection_device_sample_configuration method. boto3 documentation

# get_vpn_connection_device_sample_configuration method definition

def get_vpn_connection_device_sample_configuration(
    self,
    *,
    VpnConnectionId: str,
    VpnConnectionDeviceTypeId: str,
    InternetKeyExchangeVersion: str = ...,
    DryRun: bool = ...,
) -> GetVpnConnectionDeviceSampleConfigurationResultTypeDef:  # (1)
    ...
  1. See GetVpnConnectionDeviceSampleConfigurationResultTypeDef
# 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)
  1. See GetVpnConnectionDeviceSampleConfigurationRequestRequestTypeDef

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 boto3.client("ec2").get_vpn_connection_device_types method. boto3 documentation

# get_vpn_connection_device_types method definition

def get_vpn_connection_device_types(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetVpnConnectionDeviceTypesResultTypeDef:  # (1)
    ...
  1. See GetVpnConnectionDeviceTypesResultTypeDef
# get_vpn_connection_device_types method usage example with argument unpacking

kwargs: GetVpnConnectionDeviceTypesRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.get_vpn_connection_device_types(**kwargs)
  1. See GetVpnConnectionDeviceTypesRequestRequestTypeDef

get_vpn_tunnel_replacement_status#

Get details of available tunnel endpoint maintenance.

Type annotations and code completion for boto3.client("ec2").get_vpn_tunnel_replacement_status method. boto3 documentation

# get_vpn_tunnel_replacement_status method definition

def get_vpn_tunnel_replacement_status(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    DryRun: bool = ...,
) -> GetVpnTunnelReplacementStatusResultTypeDef:  # (1)
    ...
  1. See GetVpnTunnelReplacementStatusResultTypeDef
# get_vpn_tunnel_replacement_status method usage example with argument unpacking

kwargs: GetVpnTunnelReplacementStatusRequestRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
}

parent.get_vpn_tunnel_replacement_status(**kwargs)
  1. See GetVpnTunnelReplacementStatusRequestRequestTypeDef

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 boto3.client("ec2").import_client_vpn_client_certificate_revocation_list method. boto3 documentation

# import_client_vpn_client_certificate_revocation_list method definition

def import_client_vpn_client_certificate_revocation_list(
    self,
    *,
    ClientVpnEndpointId: str,
    CertificateRevocationList: str,
    DryRun: bool = ...,
) -> ImportClientVpnClientCertificateRevocationListResultTypeDef:  # (1)
    ...
  1. See ImportClientVpnClientCertificateRevocationListResultTypeDef
# 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)
  1. See ImportClientVpnClientCertificateRevocationListRequestRequestTypeDef

import_image#

.

Type annotations and code completion for boto3.client("ec2").import_image method. boto3 documentation

# import_image method definition

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)
    ...
  1. See ClientDataTypeDef
  2. See ImageDiskContainerTypeDef
  3. See ImportImageLicenseConfigurationRequestTypeDef
  4. See TagSpecificationTypeDef
  5. See BootModeValuesType
  6. See ImportImageResultTypeDef
# import_image method usage example with argument unpacking

kwargs: ImportImageRequestRequestTypeDef = {  # (1)
    "Architecture": ...,
}

parent.import_image(**kwargs)
  1. See ImportImageRequestRequestTypeDef

import_instance#

.

Type annotations and code completion for boto3.client("ec2").import_instance method. boto3 documentation

# import_instance method definition

def import_instance(
    self,
    *,
    Platform: PlatformValuesType,  # (1)
    Description: str = ...,
    DiskImages: Sequence[DiskImageTypeDef] = ...,  # (2)
    DryRun: bool = ...,
    LaunchSpecification: ImportInstanceLaunchSpecificationTypeDef = ...,  # (3)
) -> ImportInstanceResultTypeDef:  # (4)
    ...
  1. See PlatformValuesType
  2. See DiskImageTypeDef
  3. See ImportInstanceLaunchSpecificationTypeDef
  4. See ImportInstanceResultTypeDef
# import_instance method usage example with argument unpacking

kwargs: ImportInstanceRequestRequestTypeDef = {  # (1)
    "Platform": ...,
}

parent.import_instance(**kwargs)
  1. See ImportInstanceRequestRequestTypeDef

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 boto3.client("ec2").import_key_pair method. boto3 documentation

# import_key_pair method definition

def import_key_pair(
    self,
    *,
    KeyName: str,
    PublicKeyMaterial: Union[str, bytes, IO[Any], StreamingBody],
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> ImportKeyPairResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See ImportKeyPairResultTypeDef
# import_key_pair method usage example with argument unpacking

kwargs: ImportKeyPairRequestRequestTypeDef = {  # (1)
    "KeyName": ...,
    "PublicKeyMaterial": ...,
}

parent.import_key_pair(**kwargs)
  1. See ImportKeyPairRequestRequestTypeDef

import_snapshot#

Imports a disk into an EBS snapshot.

Type annotations and code completion for boto3.client("ec2").import_snapshot method. boto3 documentation

# import_snapshot method definition

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)
    ...
  1. See ClientDataTypeDef
  2. See SnapshotDiskContainerTypeDef
  3. See TagSpecificationTypeDef
  4. See ImportSnapshotResultTypeDef
# import_snapshot method usage example with argument unpacking

kwargs: ImportSnapshotRequestRequestTypeDef = {  # (1)
    "ClientData": ...,
}

parent.import_snapshot(**kwargs)
  1. See ImportSnapshotRequestRequestTypeDef

import_volume#

Creates an import volume task using metadata from the specified disk image.

Type annotations and code completion for boto3.client("ec2").import_volume method. boto3 documentation

# import_volume method definition

def import_volume(
    self,
    *,
    AvailabilityZone: str,
    Image: DiskImageDetailTypeDef,  # (1)
    Volume: VolumeDetailTypeDef,  # (2)
    Description: str = ...,
    DryRun: bool = ...,
) -> ImportVolumeResultTypeDef:  # (3)
    ...
  1. See DiskImageDetailTypeDef
  2. See VolumeDetailTypeDef
  3. See ImportVolumeResultTypeDef
# import_volume method usage example with argument unpacking

kwargs: ImportVolumeRequestRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
    "Image": ...,
    "Volume": ...,
}

parent.import_volume(**kwargs)
  1. See ImportVolumeRequestRequestTypeDef

list_images_in_recycle_bin#

Lists one or more AMIs that are currently in the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").list_images_in_recycle_bin method. boto3 documentation

# list_images_in_recycle_bin method definition

def list_images_in_recycle_bin(
    self,
    *,
    ImageIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> ListImagesInRecycleBinResultTypeDef:  # (1)
    ...
  1. See ListImagesInRecycleBinResultTypeDef
# list_images_in_recycle_bin method usage example with argument unpacking

kwargs: ListImagesInRecycleBinRequestRequestTypeDef = {  # (1)
    "ImageIds": ...,
}

parent.list_images_in_recycle_bin(**kwargs)
  1. See ListImagesInRecycleBinRequestRequestTypeDef

list_snapshots_in_recycle_bin#

Lists one or more snapshots that are currently in the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").list_snapshots_in_recycle_bin method. boto3 documentation

# list_snapshots_in_recycle_bin method definition

def list_snapshots_in_recycle_bin(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    SnapshotIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> ListSnapshotsInRecycleBinResultTypeDef:  # (1)
    ...
  1. See ListSnapshotsInRecycleBinResultTypeDef
# list_snapshots_in_recycle_bin method usage example with argument unpacking

kwargs: ListSnapshotsInRecycleBinRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_snapshots_in_recycle_bin(**kwargs)
  1. See ListSnapshotsInRecycleBinRequestRequestTypeDef

lock_snapshot#

Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration.

Type annotations and code completion for boto3.client("ec2").lock_snapshot method. boto3 documentation

# lock_snapshot method definition

def lock_snapshot(
    self,
    *,
    SnapshotId: str,
    LockMode: LockModeType,  # (1)
    DryRun: bool = ...,
    CoolOffPeriod: int = ...,
    LockDuration: int = ...,
    ExpirationDate: Union[datetime, str] = ...,
) -> LockSnapshotResultTypeDef:  # (2)
    ...
  1. See LockModeType
  2. See LockSnapshotResultTypeDef
# lock_snapshot method usage example with argument unpacking

kwargs: LockSnapshotRequestRequestTypeDef = {  # (1)
    "SnapshotId": ...,
    "LockMode": ...,
}

parent.lock_snapshot(**kwargs)
  1. See LockSnapshotRequestRequestTypeDef

modify_address_attribute#

Modifies an attribute of the specified Elastic IP address.

Type annotations and code completion for boto3.client("ec2").modify_address_attribute method. boto3 documentation

# modify_address_attribute method definition

def modify_address_attribute(
    self,
    *,
    AllocationId: str,
    DomainName: str = ...,
    DryRun: bool = ...,
) -> ModifyAddressAttributeResultTypeDef:  # (1)
    ...
  1. See ModifyAddressAttributeResultTypeDef
# modify_address_attribute method usage example with argument unpacking

kwargs: ModifyAddressAttributeRequestRequestTypeDef = {  # (1)
    "AllocationId": ...,
}

parent.modify_address_attribute(**kwargs)
  1. See ModifyAddressAttributeRequestRequestTypeDef

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 boto3.client("ec2").modify_availability_zone_group method. boto3 documentation

# modify_availability_zone_group method definition

def modify_availability_zone_group(
    self,
    *,
    GroupName: str,
    OptInStatus: ModifyAvailabilityZoneOptInStatusType,  # (1)
    DryRun: bool = ...,
) -> ModifyAvailabilityZoneGroupResultTypeDef:  # (2)
    ...
  1. See ModifyAvailabilityZoneOptInStatusType
  2. See ModifyAvailabilityZoneGroupResultTypeDef
# modify_availability_zone_group method usage example with argument unpacking

kwargs: ModifyAvailabilityZoneGroupRequestRequestTypeDef = {  # (1)
    "GroupName": ...,
    "OptInStatus": ...,
}

parent.modify_availability_zone_group(**kwargs)
  1. See ModifyAvailabilityZoneGroupRequestRequestTypeDef

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 boto3.client("ec2").modify_capacity_reservation method. boto3 documentation

# modify_capacity_reservation method definition

def modify_capacity_reservation(
    self,
    *,
    CapacityReservationId: str,
    InstanceCount: int = ...,
    EndDate: Union[datetime, str] = ...,
    EndDateType: EndDateTypeType = ...,  # (1)
    Accept: bool = ...,
    DryRun: bool = ...,
    AdditionalInfo: str = ...,
) -> ModifyCapacityReservationResultTypeDef:  # (2)
    ...
  1. See EndDateTypeType
  2. See ModifyCapacityReservationResultTypeDef
# modify_capacity_reservation method usage example with argument unpacking

kwargs: ModifyCapacityReservationRequestRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.modify_capacity_reservation(**kwargs)
  1. See ModifyCapacityReservationRequestRequestTypeDef

modify_capacity_reservation_fleet#

Modifies a Capacity Reservation Fleet.

Type annotations and code completion for boto3.client("ec2").modify_capacity_reservation_fleet method. boto3 documentation

# modify_capacity_reservation_fleet method definition

def modify_capacity_reservation_fleet(
    self,
    *,
    CapacityReservationFleetId: str,
    TotalTargetCapacity: int = ...,
    EndDate: Union[datetime, str] = ...,
    DryRun: bool = ...,
    RemoveEndDate: bool = ...,
) -> ModifyCapacityReservationFleetResultTypeDef:  # (1)
    ...
  1. See ModifyCapacityReservationFleetResultTypeDef
# modify_capacity_reservation_fleet method usage example with argument unpacking

kwargs: ModifyCapacityReservationFleetRequestRequestTypeDef = {  # (1)
    "CapacityReservationFleetId": ...,
}

parent.modify_capacity_reservation_fleet(**kwargs)
  1. See ModifyCapacityReservationFleetRequestRequestTypeDef

modify_client_vpn_endpoint#

Modifies the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").modify_client_vpn_endpoint method. boto3 documentation

# modify_client_vpn_endpoint method definition

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)
    ...
  1. See ConnectionLogOptionsTypeDef
  2. See DnsServersOptionsModifyStructureTypeDef
  3. See SelfServicePortalType
  4. See ClientConnectOptionsTypeDef
  5. See ClientLoginBannerOptionsTypeDef
  6. See ModifyClientVpnEndpointResultTypeDef
# modify_client_vpn_endpoint method usage example with argument unpacking

kwargs: ModifyClientVpnEndpointRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.modify_client_vpn_endpoint(**kwargs)
  1. See ModifyClientVpnEndpointRequestRequestTypeDef

modify_default_credit_specification#

Modifies the default credit option for CPU usage of burstable performance instances.

Type annotations and code completion for boto3.client("ec2").modify_default_credit_specification method. boto3 documentation

# modify_default_credit_specification method definition

def modify_default_credit_specification(
    self,
    *,
    InstanceFamily: UnlimitedSupportedInstanceFamilyType,  # (1)
    CpuCredits: str,
    DryRun: bool = ...,
) -> ModifyDefaultCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See UnlimitedSupportedInstanceFamilyType
  2. See ModifyDefaultCreditSpecificationResultTypeDef
# modify_default_credit_specification method usage example with argument unpacking

kwargs: ModifyDefaultCreditSpecificationRequestRequestTypeDef = {  # (1)
    "InstanceFamily": ...,
    "CpuCredits": ...,
}

parent.modify_default_credit_specification(**kwargs)
  1. See ModifyDefaultCreditSpecificationRequestRequestTypeDef

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 boto3.client("ec2").modify_ebs_default_kms_key_id method. boto3 documentation

# modify_ebs_default_kms_key_id method definition

def modify_ebs_default_kms_key_id(
    self,
    *,
    KmsKeyId: str,
    DryRun: bool = ...,
) -> ModifyEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See ModifyEbsDefaultKmsKeyIdResultTypeDef
# modify_ebs_default_kms_key_id method usage example with argument unpacking

kwargs: ModifyEbsDefaultKmsKeyIdRequestRequestTypeDef = {  # (1)
    "KmsKeyId": ...,
}

parent.modify_ebs_default_kms_key_id(**kwargs)
  1. See ModifyEbsDefaultKmsKeyIdRequestRequestTypeDef

modify_fleet#

Modifies the specified EC2 Fleet.

Type annotations and code completion for boto3.client("ec2").modify_fleet method. boto3 documentation

# modify_fleet method definition

def modify_fleet(
    self,
    *,
    FleetId: str,
    DryRun: bool = ...,
    ExcessCapacityTerminationPolicy: FleetExcessCapacityTerminationPolicyType = ...,  # (1)
    LaunchTemplateConfigs: Sequence[FleetLaunchTemplateConfigRequestTypeDef] = ...,  # (2)
    TargetCapacitySpecification: TargetCapacitySpecificationRequestTypeDef = ...,  # (3)
    Context: str = ...,
) -> ModifyFleetResultTypeDef:  # (4)
    ...
  1. See FleetExcessCapacityTerminationPolicyType
  2. See FleetLaunchTemplateConfigRequestTypeDef
  3. See TargetCapacitySpecificationRequestTypeDef
  4. See ModifyFleetResultTypeDef
# modify_fleet method usage example with argument unpacking

kwargs: ModifyFleetRequestRequestTypeDef = {  # (1)
    "FleetId": ...,
}

parent.modify_fleet(**kwargs)
  1. See ModifyFleetRequestRequestTypeDef

modify_fpga_image_attribute#

Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

Type annotations and code completion for boto3.client("ec2").modify_fpga_image_attribute method. boto3 documentation

# modify_fpga_image_attribute method definition

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)
    ...
  1. See FpgaImageAttributeNameType
  2. See OperationTypeType
  3. See LoadPermissionModificationsTypeDef
  4. See ModifyFpgaImageAttributeResultTypeDef
# modify_fpga_image_attribute method usage example with argument unpacking

kwargs: ModifyFpgaImageAttributeRequestRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
}

parent.modify_fpga_image_attribute(**kwargs)
  1. See ModifyFpgaImageAttributeRequestRequestTypeDef

modify_hosts#

Modify the auto-placement setting of a Dedicated Host.

Type annotations and code completion for boto3.client("ec2").modify_hosts method. boto3 documentation

# modify_hosts method definition

def modify_hosts(
    self,
    *,
    HostIds: Sequence[str],
    AutoPlacement: AutoPlacementType = ...,  # (1)
    HostRecovery: HostRecoveryType = ...,  # (2)
    InstanceType: str = ...,
    InstanceFamily: str = ...,
    HostMaintenance: HostMaintenanceType = ...,  # (3)
) -> ModifyHostsResultTypeDef:  # (4)
    ...
  1. See AutoPlacementType
  2. See HostRecoveryType
  3. See HostMaintenanceType
  4. See ModifyHostsResultTypeDef
# modify_hosts method usage example with argument unpacking

kwargs: ModifyHostsRequestRequestTypeDef = {  # (1)
    "HostIds": ...,
}

parent.modify_hosts(**kwargs)
  1. See ModifyHostsRequestRequestTypeDef

modify_id_format#

Modifies the ID format for the specified resource on a per-Region basis.

Type annotations and code completion for boto3.client("ec2").modify_id_format method. boto3 documentation

# modify_id_format method definition

def modify_id_format(
    self,
    *,
    Resource: str,
    UseLongIds: bool,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# modify_id_format method usage example with argument unpacking

kwargs: ModifyIdFormatRequestRequestTypeDef = {  # (1)
    "Resource": ...,
    "UseLongIds": ...,
}

parent.modify_id_format(**kwargs)
  1. See ModifyIdFormatRequestRequestTypeDef

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 boto3.client("ec2").modify_identity_id_format method. boto3 documentation

# modify_identity_id_format method definition

def modify_identity_id_format(
    self,
    *,
    PrincipalArn: str,
    Resource: str,
    UseLongIds: bool,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# modify_identity_id_format method usage example with argument unpacking

kwargs: ModifyIdentityIdFormatRequestRequestTypeDef = {  # (1)
    "PrincipalArn": ...,
    "Resource": ...,
    "UseLongIds": ...,
}

parent.modify_identity_id_format(**kwargs)
  1. See ModifyIdentityIdFormatRequestRequestTypeDef

modify_image_attribute#

Modifies the specified attribute of the specified AMI.

Type annotations and code completion for boto3.client("ec2").modify_image_attribute method. boto3 documentation

# modify_image_attribute method definition

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)
    ...
  1. See AttributeValueTypeDef
  2. See LaunchPermissionModificationsTypeDef
  3. See OperationTypeType
  4. See AttributeValueTypeDef
  5. See EmptyResponseMetadataTypeDef
# modify_image_attribute method usage example with argument unpacking

kwargs: ModifyImageAttributeRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.modify_image_attribute(**kwargs)
  1. See ModifyImageAttributeRequestRequestTypeDef

modify_instance_attribute#

Modifies the specified attribute of the specified instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_attribute method. boto3 documentation

# modify_instance_attribute method definition

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)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See InstanceAttributeNameType
  3. See InstanceBlockDeviceMappingSpecificationTypeDef
  4. See AttributeBooleanValueTypeDef
  5. See AttributeBooleanValueTypeDef
  6. See AttributeBooleanValueTypeDef
  7. See AttributeValueTypeDef
  8. See AttributeValueTypeDef
  9. See AttributeValueTypeDef
  10. See AttributeValueTypeDef
  11. See AttributeValueTypeDef
  12. See BlobAttributeValueTypeDef
  13. See AttributeBooleanValueTypeDef
  14. See EmptyResponseMetadataTypeDef
# modify_instance_attribute method usage example with argument unpacking

kwargs: ModifyInstanceAttributeRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_attribute(**kwargs)
  1. See ModifyInstanceAttributeRequestRequestTypeDef

modify_instance_capacity_reservation_attributes#

Modifies the Capacity Reservation settings for a stopped instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_capacity_reservation_attributes method. boto3 documentation

# modify_instance_capacity_reservation_attributes method definition

def modify_instance_capacity_reservation_attributes(
    self,
    *,
    InstanceId: str,
    CapacityReservationSpecification: CapacityReservationSpecificationTypeDef,  # (1)
    DryRun: bool = ...,
) -> ModifyInstanceCapacityReservationAttributesResultTypeDef:  # (2)
    ...
  1. See CapacityReservationSpecificationTypeDef
  2. 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)
  1. See ModifyInstanceCapacityReservationAttributesRequestRequestTypeDef

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 boto3.client("ec2").modify_instance_credit_specification method. boto3 documentation

# modify_instance_credit_specification method definition

def modify_instance_credit_specification(
    self,
    *,
    InstanceCreditSpecifications: Sequence[InstanceCreditSpecificationRequestTypeDef],  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyInstanceCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See InstanceCreditSpecificationRequestTypeDef
  2. See ModifyInstanceCreditSpecificationResultTypeDef
# modify_instance_credit_specification method usage example with argument unpacking

kwargs: ModifyInstanceCreditSpecificationRequestRequestTypeDef = {  # (1)
    "InstanceCreditSpecifications": ...,
}

parent.modify_instance_credit_specification(**kwargs)
  1. See ModifyInstanceCreditSpecificationRequestRequestTypeDef

modify_instance_event_start_time#

Modifies the start time for a scheduled Amazon EC2 instance event.

Type annotations and code completion for boto3.client("ec2").modify_instance_event_start_time method. boto3 documentation

# modify_instance_event_start_time method definition

def modify_instance_event_start_time(
    self,
    *,
    InstanceId: str,
    InstanceEventId: str,
    NotBefore: Union[datetime, str],
    DryRun: bool = ...,
) -> ModifyInstanceEventStartTimeResultTypeDef:  # (1)
    ...
  1. See ModifyInstanceEventStartTimeResultTypeDef
# modify_instance_event_start_time method usage example with argument unpacking

kwargs: ModifyInstanceEventStartTimeRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "InstanceEventId": ...,
    "NotBefore": ...,
}

parent.modify_instance_event_start_time(**kwargs)
  1. See ModifyInstanceEventStartTimeRequestRequestTypeDef

modify_instance_event_window#

Modifies the specified event window.

Type annotations and code completion for boto3.client("ec2").modify_instance_event_window method. boto3 documentation

# modify_instance_event_window method definition

def modify_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    DryRun: bool = ...,
    Name: str = ...,
    TimeRanges: Sequence[InstanceEventWindowTimeRangeRequestTypeDef] = ...,  # (1)
    CronExpression: str = ...,
) -> ModifyInstanceEventWindowResultTypeDef:  # (2)
    ...
  1. See InstanceEventWindowTimeRangeRequestTypeDef
  2. See ModifyInstanceEventWindowResultTypeDef
# modify_instance_event_window method usage example with argument unpacking

kwargs: ModifyInstanceEventWindowRequestRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
}

parent.modify_instance_event_window(**kwargs)
  1. See ModifyInstanceEventWindowRequestRequestTypeDef

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 boto3.client("ec2").modify_instance_maintenance_options method. boto3 documentation

# modify_instance_maintenance_options method definition

def modify_instance_maintenance_options(
    self,
    *,
    InstanceId: str,
    AutoRecovery: InstanceAutoRecoveryStateType = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyInstanceMaintenanceOptionsResultTypeDef:  # (2)
    ...
  1. See InstanceAutoRecoveryStateType
  2. See ModifyInstanceMaintenanceOptionsResultTypeDef
# modify_instance_maintenance_options method usage example with argument unpacking

kwargs: ModifyInstanceMaintenanceOptionsRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_maintenance_options(**kwargs)
  1. See ModifyInstanceMaintenanceOptionsRequestRequestTypeDef

modify_instance_metadata_options#

Modify the instance metadata parameters on a running or stopped instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_metadata_options method. boto3 documentation

# modify_instance_metadata_options method definition

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)
    ...
  1. See HttpTokensStateType
  2. See InstanceMetadataEndpointStateType
  3. See InstanceMetadataProtocolStateType
  4. See InstanceMetadataTagsStateType
  5. See ModifyInstanceMetadataOptionsResultTypeDef
# modify_instance_metadata_options method usage example with argument unpacking

kwargs: ModifyInstanceMetadataOptionsRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_metadata_options(**kwargs)
  1. See ModifyInstanceMetadataOptionsRequestRequestTypeDef

modify_instance_placement#

Modifies the placement attributes for a specified instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_placement method. boto3 documentation

# modify_instance_placement method definition

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)
    ...
  1. See AffinityType
  2. See HostTenancyType
  3. See ModifyInstancePlacementResultTypeDef
# modify_instance_placement method usage example with argument unpacking

kwargs: ModifyInstancePlacementRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_placement(**kwargs)
  1. See ModifyInstancePlacementRequestRequestTypeDef

modify_ipam#

Modify the configurations of an IPAM.

Type annotations and code completion for boto3.client("ec2").modify_ipam method. boto3 documentation

# modify_ipam method definition

def modify_ipam(
    self,
    *,
    IpamId: str,
    DryRun: bool = ...,
    Description: str = ...,
    AddOperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    RemoveOperatingRegions: Sequence[RemoveIpamOperatingRegionTypeDef] = ...,  # (2)
    Tier: IpamTierType = ...,  # (3)
) -> ModifyIpamResultTypeDef:  # (4)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See RemoveIpamOperatingRegionTypeDef
  3. See IpamTierType
  4. See ModifyIpamResultTypeDef
# modify_ipam method usage example with argument unpacking

kwargs: ModifyIpamRequestRequestTypeDef = {  # (1)
    "IpamId": ...,
}

parent.modify_ipam(**kwargs)
  1. See ModifyIpamRequestRequestTypeDef

modify_ipam_pool#

Modify the configurations of an IPAM pool.

Type annotations and code completion for boto3.client("ec2").modify_ipam_pool method. boto3 documentation

# modify_ipam_pool method definition

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)
    ...
  1. See RequestIpamResourceTagTypeDef
  2. See RequestIpamResourceTagTypeDef
  3. See ModifyIpamPoolResultTypeDef
# modify_ipam_pool method usage example with argument unpacking

kwargs: ModifyIpamPoolRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.modify_ipam_pool(**kwargs)
  1. See ModifyIpamPoolRequestRequestTypeDef

modify_ipam_resource_cidr#

Modify a resource CIDR.

Type annotations and code completion for boto3.client("ec2").modify_ipam_resource_cidr method. boto3 documentation

# modify_ipam_resource_cidr method definition

def modify_ipam_resource_cidr(
    self,
    *,
    ResourceId: str,
    ResourceCidr: str,
    ResourceRegion: str,
    CurrentIpamScopeId: str,
    Monitored: bool,
    DryRun: bool = ...,
    DestinationIpamScopeId: str = ...,
) -> ModifyIpamResourceCidrResultTypeDef:  # (1)
    ...
  1. See ModifyIpamResourceCidrResultTypeDef
# modify_ipam_resource_cidr method usage example with argument unpacking

kwargs: ModifyIpamResourceCidrRequestRequestTypeDef = {  # (1)
    "ResourceId": ...,
    "ResourceCidr": ...,
    "ResourceRegion": ...,
    "CurrentIpamScopeId": ...,
    "Monitored": ...,
}

parent.modify_ipam_resource_cidr(**kwargs)
  1. See ModifyIpamResourceCidrRequestRequestTypeDef

modify_ipam_resource_discovery#

Modifies a resource discovery.

Type annotations and code completion for boto3.client("ec2").modify_ipam_resource_discovery method. boto3 documentation

# modify_ipam_resource_discovery method definition

def modify_ipam_resource_discovery(
    self,
    *,
    IpamResourceDiscoveryId: str,
    DryRun: bool = ...,
    Description: str = ...,
    AddOperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    RemoveOperatingRegions: Sequence[RemoveIpamOperatingRegionTypeDef] = ...,  # (2)
) -> ModifyIpamResourceDiscoveryResultTypeDef:  # (3)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See RemoveIpamOperatingRegionTypeDef
  3. See ModifyIpamResourceDiscoveryResultTypeDef
# modify_ipam_resource_discovery method usage example with argument unpacking

kwargs: ModifyIpamResourceDiscoveryRequestRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
}

parent.modify_ipam_resource_discovery(**kwargs)
  1. See ModifyIpamResourceDiscoveryRequestRequestTypeDef

modify_ipam_scope#

Modify an IPAM scope.

Type annotations and code completion for boto3.client("ec2").modify_ipam_scope method. boto3 documentation

# modify_ipam_scope method definition

def modify_ipam_scope(
    self,
    *,
    IpamScopeId: str,
    DryRun: bool = ...,
    Description: str = ...,
) -> ModifyIpamScopeResultTypeDef:  # (1)
    ...
  1. See ModifyIpamScopeResultTypeDef
# modify_ipam_scope method usage example with argument unpacking

kwargs: ModifyIpamScopeRequestRequestTypeDef = {  # (1)
    "IpamScopeId": ...,
}

parent.modify_ipam_scope(**kwargs)
  1. See ModifyIpamScopeRequestRequestTypeDef

modify_launch_template#

Modifies a launch template.

Type annotations and code completion for boto3.client("ec2").modify_launch_template method. boto3 documentation

# modify_launch_template method definition

def modify_launch_template(
    self,
    *,
    DryRun: bool = ...,
    ClientToken: str = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
    DefaultVersion: str = ...,
) -> ModifyLaunchTemplateResultTypeDef:  # (1)
    ...
  1. See ModifyLaunchTemplateResultTypeDef
# modify_launch_template method usage example with argument unpacking

kwargs: ModifyLaunchTemplateRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.modify_launch_template(**kwargs)
  1. See ModifyLaunchTemplateRequestRequestTypeDef

modify_local_gateway_route#

Modifies the specified local gateway route.

Type annotations and code completion for boto3.client("ec2").modify_local_gateway_route method. boto3 documentation

# modify_local_gateway_route method definition

def modify_local_gateway_route(
    self,
    *,
    LocalGatewayRouteTableId: str,
    DestinationCidrBlock: str = ...,
    LocalGatewayVirtualInterfaceGroupId: str = ...,
    NetworkInterfaceId: str = ...,
    DryRun: bool = ...,
    DestinationPrefixListId: str = ...,
) -> ModifyLocalGatewayRouteResultTypeDef:  # (1)
    ...
  1. See ModifyLocalGatewayRouteResultTypeDef
# modify_local_gateway_route method usage example with argument unpacking

kwargs: ModifyLocalGatewayRouteRequestRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.modify_local_gateway_route(**kwargs)
  1. See ModifyLocalGatewayRouteRequestRequestTypeDef

modify_managed_prefix_list#

Modifies the specified managed prefix list.

Type annotations and code completion for boto3.client("ec2").modify_managed_prefix_list method. boto3 documentation

# modify_managed_prefix_list method definition

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)
    ...
  1. See AddPrefixListEntryTypeDef
  2. See RemovePrefixListEntryTypeDef
  3. See ModifyManagedPrefixListResultTypeDef
# modify_managed_prefix_list method usage example with argument unpacking

kwargs: ModifyManagedPrefixListRequestRequestTypeDef = {  # (1)
    "PrefixListId": ...,
}

parent.modify_managed_prefix_list(**kwargs)
  1. See ModifyManagedPrefixListRequestRequestTypeDef

modify_network_interface_attribute#

Modifies the specified network interface attribute.

Type annotations and code completion for boto3.client("ec2").modify_network_interface_attribute method. boto3 documentation

# modify_network_interface_attribute method definition

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 = ...,
    ConnectionTrackingSpecification: ConnectionTrackingSpecificationRequestTypeDef = ...,  # (5)
) -> EmptyResponseMetadataTypeDef:  # (6)
    ...
  1. See NetworkInterfaceAttachmentChangesTypeDef
  2. See AttributeValueTypeDef
  3. See AttributeBooleanValueTypeDef
  4. See EnaSrdSpecificationTypeDef
  5. See ConnectionTrackingSpecificationRequestTypeDef
  6. See EmptyResponseMetadataTypeDef
# modify_network_interface_attribute method usage example with argument unpacking

kwargs: ModifyNetworkInterfaceAttributeRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.modify_network_interface_attribute(**kwargs)
  1. See ModifyNetworkInterfaceAttributeRequestRequestTypeDef

modify_private_dns_name_options#

Modifies the options for instance hostnames for the specified instance.

Type annotations and code completion for boto3.client("ec2").modify_private_dns_name_options method. boto3 documentation

# modify_private_dns_name_options method definition

def modify_private_dns_name_options(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
    PrivateDnsHostnameType: HostnameTypeType = ...,  # (1)
    EnableResourceNameDnsARecord: bool = ...,
    EnableResourceNameDnsAAAARecord: bool = ...,
) -> ModifyPrivateDnsNameOptionsResultTypeDef:  # (2)
    ...
  1. See HostnameTypeType
  2. See ModifyPrivateDnsNameOptionsResultTypeDef
# modify_private_dns_name_options method usage example with argument unpacking

kwargs: ModifyPrivateDnsNameOptionsRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_private_dns_name_options(**kwargs)
  1. See ModifyPrivateDnsNameOptionsRequestRequestTypeDef

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 boto3.client("ec2").modify_reserved_instances method. boto3 documentation

# modify_reserved_instances method definition

def modify_reserved_instances(
    self,
    *,
    ReservedInstancesIds: Sequence[str],
    TargetConfigurations: Sequence[ReservedInstancesConfigurationTypeDef],  # (1)
    ClientToken: str = ...,
) -> ModifyReservedInstancesResultTypeDef:  # (2)
    ...
  1. See ReservedInstancesConfigurationTypeDef
  2. See ModifyReservedInstancesResultTypeDef
# modify_reserved_instances method usage example with argument unpacking

kwargs: ModifyReservedInstancesRequestRequestTypeDef = {  # (1)
    "ReservedInstancesIds": ...,
    "TargetConfigurations": ...,
}

parent.modify_reserved_instances(**kwargs)
  1. See ModifyReservedInstancesRequestRequestTypeDef

modify_security_group_rules#

Modifies the rules of a security group.

Type annotations and code completion for boto3.client("ec2").modify_security_group_rules method. boto3 documentation

# modify_security_group_rules method definition

def modify_security_group_rules(
    self,
    *,
    GroupId: str,
    SecurityGroupRules: Sequence[SecurityGroupRuleUpdateTypeDef],  # (1)
    DryRun: bool = ...,
) -> ModifySecurityGroupRulesResultTypeDef:  # (2)
    ...
  1. See SecurityGroupRuleUpdateTypeDef
  2. See ModifySecurityGroupRulesResultTypeDef
# modify_security_group_rules method usage example with argument unpacking

kwargs: ModifySecurityGroupRulesRequestRequestTypeDef = {  # (1)
    "GroupId": ...,
    "SecurityGroupRules": ...,
}

parent.modify_security_group_rules(**kwargs)
  1. See ModifySecurityGroupRulesRequestRequestTypeDef

modify_snapshot_attribute#

Adds or removes permission settings for the specified snapshot.

Type annotations and code completion for boto3.client("ec2").modify_snapshot_attribute method. boto3 documentation

# modify_snapshot_attribute method definition

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)
    ...
  1. See SnapshotAttributeNameType
  2. See CreateVolumePermissionModificationsTypeDef
  3. See OperationTypeType
  4. See EmptyResponseMetadataTypeDef
# modify_snapshot_attribute method usage example with argument unpacking

kwargs: ModifySnapshotAttributeRequestRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.modify_snapshot_attribute(**kwargs)
  1. See ModifySnapshotAttributeRequestRequestTypeDef

modify_snapshot_tier#

Archives an Amazon EBS snapshot.

Type annotations and code completion for boto3.client("ec2").modify_snapshot_tier method. boto3 documentation

# modify_snapshot_tier method definition

def modify_snapshot_tier(
    self,
    *,
    SnapshotId: str,
    StorageTier: TargetStorageTierType = ...,  # (1)
    DryRun: bool = ...,
) -> ModifySnapshotTierResultTypeDef:  # (2)
    ...
  1. See TargetStorageTierType
  2. See ModifySnapshotTierResultTypeDef
# modify_snapshot_tier method usage example with argument unpacking

kwargs: ModifySnapshotTierRequestRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.modify_snapshot_tier(**kwargs)
  1. See ModifySnapshotTierRequestRequestTypeDef

modify_spot_fleet_request#

Modifies the specified Spot Fleet request.

Type annotations and code completion for boto3.client("ec2").modify_spot_fleet_request method. boto3 documentation

# modify_spot_fleet_request method definition

def modify_spot_fleet_request(
    self,
    *,
    SpotFleetRequestId: str,
    ExcessCapacityTerminationPolicy: ExcessCapacityTerminationPolicyType = ...,  # (1)
    LaunchTemplateConfigs: Sequence[LaunchTemplateConfigTypeDef] = ...,  # (2)
    TargetCapacity: int = ...,
    OnDemandTargetCapacity: int = ...,
    Context: str = ...,
) -> ModifySpotFleetRequestResponseTypeDef:  # (3)
    ...
  1. See ExcessCapacityTerminationPolicyType
  2. See LaunchTemplateConfigTypeDef
  3. See ModifySpotFleetRequestResponseTypeDef
# modify_spot_fleet_request method usage example with argument unpacking

kwargs: ModifySpotFleetRequestRequestRequestTypeDef = {  # (1)
    "SpotFleetRequestId": ...,
}

parent.modify_spot_fleet_request(**kwargs)
  1. See ModifySpotFleetRequestRequestRequestTypeDef

modify_subnet_attribute#

Modifies a subnet attribute.

Type annotations and code completion for boto3.client("ec2").modify_subnet_attribute method. boto3 documentation

# modify_subnet_attribute method definition

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)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See AttributeBooleanValueTypeDef
  3. See AttributeBooleanValueTypeDef
  4. See AttributeBooleanValueTypeDef
  5. See HostnameTypeType
  6. See AttributeBooleanValueTypeDef
  7. See AttributeBooleanValueTypeDef
  8. See AttributeBooleanValueTypeDef
  9. See EmptyResponseMetadataTypeDef
# modify_subnet_attribute method usage example with argument unpacking

kwargs: ModifySubnetAttributeRequestRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.modify_subnet_attribute(**kwargs)
  1. See ModifySubnetAttributeRequestRequestTypeDef

modify_traffic_mirror_filter_network_services#

Allows or restricts mirroring network services.

Type annotations and code completion for boto3.client("ec2").modify_traffic_mirror_filter_network_services method. boto3 documentation

# modify_traffic_mirror_filter_network_services method definition

def modify_traffic_mirror_filter_network_services(
    self,
    *,
    TrafficMirrorFilterId: str,
    AddNetworkServices: Sequence[TrafficMirrorNetworkServiceType] = ...,  # (1)
    RemoveNetworkServices: Sequence[TrafficMirrorNetworkServiceType] = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTrafficMirrorFilterNetworkServicesResultTypeDef:  # (3)
    ...
  1. See TrafficMirrorNetworkServiceType
  2. See TrafficMirrorNetworkServiceType
  3. 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)
  1. See ModifyTrafficMirrorFilterNetworkServicesRequestRequestTypeDef

modify_traffic_mirror_filter_rule#

Modifies the specified Traffic Mirror rule.

Type annotations and code completion for boto3.client("ec2").modify_traffic_mirror_filter_rule method. boto3 documentation

# modify_traffic_mirror_filter_rule method definition

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)
    ...
  1. See TrafficDirectionType
  2. See TrafficMirrorRuleActionType
  3. See TrafficMirrorPortRangeRequestTypeDef
  4. See TrafficMirrorPortRangeRequestTypeDef
  5. See TrafficMirrorFilterRuleFieldType
  6. See ModifyTrafficMirrorFilterRuleResultTypeDef
# modify_traffic_mirror_filter_rule method usage example with argument unpacking

kwargs: ModifyTrafficMirrorFilterRuleRequestRequestTypeDef = {  # (1)
    "TrafficMirrorFilterRuleId": ...,
}

parent.modify_traffic_mirror_filter_rule(**kwargs)
  1. See ModifyTrafficMirrorFilterRuleRequestRequestTypeDef

modify_traffic_mirror_session#

Modifies a Traffic Mirror session.

Type annotations and code completion for boto3.client("ec2").modify_traffic_mirror_session method. boto3 documentation

# modify_traffic_mirror_session method definition

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)
    ...
  1. See TrafficMirrorSessionFieldType
  2. See ModifyTrafficMirrorSessionResultTypeDef
# modify_traffic_mirror_session method usage example with argument unpacking

kwargs: ModifyTrafficMirrorSessionRequestRequestTypeDef = {  # (1)
    "TrafficMirrorSessionId": ...,
}

parent.modify_traffic_mirror_session(**kwargs)
  1. See ModifyTrafficMirrorSessionRequestRequestTypeDef

modify_transit_gateway#

Modifies the specified transit gateway.

Type annotations and code completion for boto3.client("ec2").modify_transit_gateway method. boto3 documentation

# modify_transit_gateway method definition

def modify_transit_gateway(
    self,
    *,
    TransitGatewayId: str,
    Description: str = ...,
    Options: ModifyTransitGatewayOptionsTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTransitGatewayResultTypeDef:  # (2)
    ...
  1. See ModifyTransitGatewayOptionsTypeDef
  2. See ModifyTransitGatewayResultTypeDef
# modify_transit_gateway method usage example with argument unpacking

kwargs: ModifyTransitGatewayRequestRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
}

parent.modify_transit_gateway(**kwargs)
  1. See ModifyTransitGatewayRequestRequestTypeDef

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 boto3.client("ec2").modify_transit_gateway_prefix_list_reference method. boto3 documentation

# modify_transit_gateway_prefix_list_reference method definition

def modify_transit_gateway_prefix_list_reference(
    self,
    *,
    TransitGatewayRouteTableId: str,
    PrefixListId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> ModifyTransitGatewayPrefixListReferenceResultTypeDef:  # (1)
    ...
  1. See ModifyTransitGatewayPrefixListReferenceResultTypeDef
# 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)
  1. See ModifyTransitGatewayPrefixListReferenceRequestRequestTypeDef

modify_transit_gateway_vpc_attachment#

Modifies the specified VPC attachment.

Type annotations and code completion for boto3.client("ec2").modify_transit_gateway_vpc_attachment method. boto3 documentation

# modify_transit_gateway_vpc_attachment method definition

def modify_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    AddSubnetIds: Sequence[str] = ...,
    RemoveSubnetIds: Sequence[str] = ...,
    Options: ModifyTransitGatewayVpcAttachmentRequestOptionsTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTransitGatewayVpcAttachmentResultTypeDef:  # (2)
    ...
  1. See ModifyTransitGatewayVpcAttachmentRequestOptionsTypeDef
  2. See ModifyTransitGatewayVpcAttachmentResultTypeDef
# modify_transit_gateway_vpc_attachment method usage example with argument unpacking

kwargs: ModifyTransitGatewayVpcAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.modify_transit_gateway_vpc_attachment(**kwargs)
  1. See ModifyTransitGatewayVpcAttachmentRequestRequestTypeDef

modify_verified_access_endpoint#

Modifies the configuration of the specified Amazon Web Services Verified Access endpoint.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_endpoint method. boto3 documentation

# modify_verified_access_endpoint method definition

def modify_verified_access_endpoint(
    self,
    *,
    VerifiedAccessEndpointId: str,
    VerifiedAccessGroupId: str = ...,
    LoadBalancerOptions: ModifyVerifiedAccessEndpointLoadBalancerOptionsTypeDef = ...,  # (1)
    NetworkInterfaceOptions: ModifyVerifiedAccessEndpointEniOptionsTypeDef = ...,  # (2)
    Description: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> ModifyVerifiedAccessEndpointResultTypeDef:  # (3)
    ...
  1. See ModifyVerifiedAccessEndpointLoadBalancerOptionsTypeDef
  2. See ModifyVerifiedAccessEndpointEniOptionsTypeDef
  3. See ModifyVerifiedAccessEndpointResultTypeDef
# modify_verified_access_endpoint method usage example with argument unpacking

kwargs: ModifyVerifiedAccessEndpointRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.modify_verified_access_endpoint(**kwargs)
  1. See ModifyVerifiedAccessEndpointRequestRequestTypeDef

modify_verified_access_endpoint_policy#

Modifies the specified Amazon Web Services Verified Access endpoint policy.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_endpoint_policy method. boto3 documentation

# modify_verified_access_endpoint_policy method definition

def modify_verified_access_endpoint_policy(
    self,
    *,
    VerifiedAccessEndpointId: str,
    PolicyEnabled: bool = ...,
    PolicyDocument: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (1)
) -> ModifyVerifiedAccessEndpointPolicyResultTypeDef:  # (2)
    ...
  1. See VerifiedAccessSseSpecificationRequestTypeDef
  2. See ModifyVerifiedAccessEndpointPolicyResultTypeDef
# modify_verified_access_endpoint_policy method usage example with argument unpacking

kwargs: ModifyVerifiedAccessEndpointPolicyRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.modify_verified_access_endpoint_policy(**kwargs)
  1. See ModifyVerifiedAccessEndpointPolicyRequestRequestTypeDef

modify_verified_access_group#

Modifies the specified Amazon Web Services Verified Access group configuration.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_group method. boto3 documentation

# modify_verified_access_group method definition

def modify_verified_access_group(
    self,
    *,
    VerifiedAccessGroupId: str,
    VerifiedAccessInstanceId: str = ...,
    Description: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> ModifyVerifiedAccessGroupResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessGroupResultTypeDef
# modify_verified_access_group method usage example with argument unpacking

kwargs: ModifyVerifiedAccessGroupRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.modify_verified_access_group(**kwargs)
  1. See ModifyVerifiedAccessGroupRequestRequestTypeDef

modify_verified_access_group_policy#

Modifies the specified Amazon Web Services Verified Access group policy.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_group_policy method. boto3 documentation

# modify_verified_access_group_policy method definition

def modify_verified_access_group_policy(
    self,
    *,
    VerifiedAccessGroupId: str,
    PolicyEnabled: bool = ...,
    PolicyDocument: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (1)
) -> ModifyVerifiedAccessGroupPolicyResultTypeDef:  # (2)
    ...
  1. See VerifiedAccessSseSpecificationRequestTypeDef
  2. See ModifyVerifiedAccessGroupPolicyResultTypeDef
# modify_verified_access_group_policy method usage example with argument unpacking

kwargs: ModifyVerifiedAccessGroupPolicyRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.modify_verified_access_group_policy(**kwargs)
  1. See ModifyVerifiedAccessGroupPolicyRequestRequestTypeDef

modify_verified_access_instance#

Modifies the configuration of the specified Amazon Web Services Verified Access instance.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_instance method. boto3 documentation

# modify_verified_access_instance method definition

def modify_verified_access_instance(
    self,
    *,
    VerifiedAccessInstanceId: str,
    Description: str = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyVerifiedAccessInstanceResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessInstanceResultTypeDef
# modify_verified_access_instance method usage example with argument unpacking

kwargs: ModifyVerifiedAccessInstanceRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
}

parent.modify_verified_access_instance(**kwargs)
  1. See ModifyVerifiedAccessInstanceRequestRequestTypeDef

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 boto3.client("ec2").modify_verified_access_instance_logging_configuration method. boto3 documentation

# modify_verified_access_instance_logging_configuration method definition

def modify_verified_access_instance_logging_configuration(
    self,
    *,
    VerifiedAccessInstanceId: str,
    AccessLogs: VerifiedAccessLogOptionsTypeDef,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyVerifiedAccessInstanceLoggingConfigurationResultTypeDef:  # (2)
    ...
  1. See VerifiedAccessLogOptionsTypeDef
  2. 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)
  1. See ModifyVerifiedAccessInstanceLoggingConfigurationRequestRequestTypeDef

modify_verified_access_trust_provider#

Modifies the configuration of the specified Amazon Web Services Verified Access trust provider.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_trust_provider method. boto3 documentation

# modify_verified_access_trust_provider method definition

def modify_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessTrustProviderId: str,
    OidcOptions: ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef = ...,  # (1)
    DeviceOptions: ModifyVerifiedAccessTrustProviderDeviceOptionsTypeDef = ...,  # (2)
    Description: str = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (3)
) -> ModifyVerifiedAccessTrustProviderResultTypeDef:  # (4)
    ...
  1. See ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef
  2. See ModifyVerifiedAccessTrustProviderDeviceOptionsTypeDef
  3. See VerifiedAccessSseSpecificationRequestTypeDef
  4. See ModifyVerifiedAccessTrustProviderResultTypeDef
# modify_verified_access_trust_provider method usage example with argument unpacking

kwargs: ModifyVerifiedAccessTrustProviderRequestRequestTypeDef = {  # (1)
    "VerifiedAccessTrustProviderId": ...,
}

parent.modify_verified_access_trust_provider(**kwargs)
  1. See ModifyVerifiedAccessTrustProviderRequestRequestTypeDef

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 boto3.client("ec2").modify_volume method. boto3 documentation

# modify_volume method definition

def modify_volume(
    self,
    *,
    VolumeId: str,
    DryRun: bool = ...,
    Size: int = ...,
    VolumeType: VolumeTypeType = ...,  # (1)
    Iops: int = ...,
    Throughput: int = ...,
    MultiAttachEnabled: bool = ...,
) -> ModifyVolumeResultTypeDef:  # (2)
    ...
  1. See VolumeTypeType
  2. See ModifyVolumeResultTypeDef
# modify_volume method usage example with argument unpacking

kwargs: ModifyVolumeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.modify_volume(**kwargs)
  1. See ModifyVolumeRequestRequestTypeDef

modify_volume_attribute#

Modifies a volume attribute.

Type annotations and code completion for boto3.client("ec2").modify_volume_attribute method. boto3 documentation

# modify_volume_attribute method definition

def modify_volume_attribute(
    self,
    *,
    VolumeId: str,
    AutoEnableIO: AttributeBooleanValueTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See EmptyResponseMetadataTypeDef
# modify_volume_attribute method usage example with argument unpacking

kwargs: ModifyVolumeAttributeRequestRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.modify_volume_attribute(**kwargs)
  1. See ModifyVolumeAttributeRequestRequestTypeDef

modify_vpc_attribute#

Modifies the specified attribute of the specified VPC.

Type annotations and code completion for boto3.client("ec2").modify_vpc_attribute method. boto3 documentation

# modify_vpc_attribute method definition

def modify_vpc_attribute(
    self,
    *,
    VpcId: str,
    EnableDnsHostnames: AttributeBooleanValueTypeDef = ...,  # (1)
    EnableDnsSupport: AttributeBooleanValueTypeDef = ...,  # (1)
    EnableNetworkAddressUsageMetrics: AttributeBooleanValueTypeDef = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (4)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See AttributeBooleanValueTypeDef
  3. See AttributeBooleanValueTypeDef
  4. See EmptyResponseMetadataTypeDef
# modify_vpc_attribute method usage example with argument unpacking

kwargs: ModifyVpcAttributeRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.modify_vpc_attribute(**kwargs)
  1. See ModifyVpcAttributeRequestRequestTypeDef

modify_vpc_endpoint#

Modifies attributes of a specified VPC endpoint.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint method. boto3 documentation

# modify_vpc_endpoint method definition

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 = ...,
    SubnetConfigurations: Sequence[SubnetConfigurationTypeDef] = ...,  # (3)
) -> ModifyVpcEndpointResultTypeDef:  # (4)
    ...
  1. See IpAddressTypeType
  2. See DnsOptionsSpecificationTypeDef
  3. See SubnetConfigurationTypeDef
  4. See ModifyVpcEndpointResultTypeDef
# modify_vpc_endpoint method usage example with argument unpacking

kwargs: ModifyVpcEndpointRequestRequestTypeDef = {  # (1)
    "VpcEndpointId": ...,
}

parent.modify_vpc_endpoint(**kwargs)
  1. See ModifyVpcEndpointRequestRequestTypeDef

modify_vpc_endpoint_connection_notification#

Modifies a connection notification for VPC endpoint or VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_connection_notification method. boto3 documentation

# modify_vpc_endpoint_connection_notification method definition

def modify_vpc_endpoint_connection_notification(
    self,
    *,
    ConnectionNotificationId: str,
    DryRun: bool = ...,
    ConnectionNotificationArn: str = ...,
    ConnectionEvents: Sequence[str] = ...,
) -> ModifyVpcEndpointConnectionNotificationResultTypeDef:  # (1)
    ...
  1. See ModifyVpcEndpointConnectionNotificationResultTypeDef
# modify_vpc_endpoint_connection_notification method usage example with argument unpacking

kwargs: ModifyVpcEndpointConnectionNotificationRequestRequestTypeDef = {  # (1)
    "ConnectionNotificationId": ...,
}

parent.modify_vpc_endpoint_connection_notification(**kwargs)
  1. See ModifyVpcEndpointConnectionNotificationRequestRequestTypeDef

modify_vpc_endpoint_service_configuration#

Modifies the attributes of your VPC endpoint service configuration.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_service_configuration method. boto3 documentation

# modify_vpc_endpoint_service_configuration method definition

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)
    ...
  1. See ModifyVpcEndpointServiceConfigurationResultTypeDef
# modify_vpc_endpoint_service_configuration method usage example with argument unpacking

kwargs: ModifyVpcEndpointServiceConfigurationRequestRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.modify_vpc_endpoint_service_configuration(**kwargs)
  1. See ModifyVpcEndpointServiceConfigurationRequestRequestTypeDef

modify_vpc_endpoint_service_payer_responsibility#

Modifies the payer responsibility for your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_service_payer_responsibility method. boto3 documentation

# modify_vpc_endpoint_service_payer_responsibility method definition

def modify_vpc_endpoint_service_payer_responsibility(
    self,
    *,
    ServiceId: str,
    PayerResponsibility: PayerResponsibilityType,  # (1)
    DryRun: bool = ...,
) -> ModifyVpcEndpointServicePayerResponsibilityResultTypeDef:  # (2)
    ...
  1. See PayerResponsibilityType
  2. See ModifyVpcEndpointServicePayerResponsibilityResultTypeDef
# 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)
  1. See ModifyVpcEndpointServicePayerResponsibilityRequestRequestTypeDef

modify_vpc_endpoint_service_permissions#

Modifies the permissions for your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_service_permissions method. boto3 documentation

# modify_vpc_endpoint_service_permissions method definition

def modify_vpc_endpoint_service_permissions(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
    AddAllowedPrincipals: Sequence[str] = ...,
    RemoveAllowedPrincipals: Sequence[str] = ...,
) -> ModifyVpcEndpointServicePermissionsResultTypeDef:  # (1)
    ...
  1. See ModifyVpcEndpointServicePermissionsResultTypeDef
# modify_vpc_endpoint_service_permissions method usage example with argument unpacking

kwargs: ModifyVpcEndpointServicePermissionsRequestRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.modify_vpc_endpoint_service_permissions(**kwargs)
  1. See ModifyVpcEndpointServicePermissionsRequestRequestTypeDef

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 boto3.client("ec2").modify_vpc_peering_connection_options method. boto3 documentation

# modify_vpc_peering_connection_options method definition

def modify_vpc_peering_connection_options(
    self,
    *,
    VpcPeeringConnectionId: str,
    AccepterPeeringConnectionOptions: PeeringConnectionOptionsRequestTypeDef = ...,  # (1)
    DryRun: bool = ...,
    RequesterPeeringConnectionOptions: PeeringConnectionOptionsRequestTypeDef = ...,  # (1)
) -> ModifyVpcPeeringConnectionOptionsResultTypeDef:  # (3)
    ...
  1. See PeeringConnectionOptionsRequestTypeDef
  2. See PeeringConnectionOptionsRequestTypeDef
  3. See ModifyVpcPeeringConnectionOptionsResultTypeDef
# modify_vpc_peering_connection_options method usage example with argument unpacking

kwargs: ModifyVpcPeeringConnectionOptionsRequestRequestTypeDef = {  # (1)
    "VpcPeeringConnectionId": ...,
}

parent.modify_vpc_peering_connection_options(**kwargs)
  1. See ModifyVpcPeeringConnectionOptionsRequestRequestTypeDef

modify_vpc_tenancy#

Modifies the instance tenancy attribute of the specified VPC.

Type annotations and code completion for boto3.client("ec2").modify_vpc_tenancy method. boto3 documentation

# modify_vpc_tenancy method definition

def modify_vpc_tenancy(
    self,
    *,
    VpcId: str,
    InstanceTenancy: VpcTenancyType,  # (1)
    DryRun: bool = ...,
) -> ModifyVpcTenancyResultTypeDef:  # (2)
    ...
  1. See VpcTenancyType
  2. See ModifyVpcTenancyResultTypeDef
# modify_vpc_tenancy method usage example with argument unpacking

kwargs: ModifyVpcTenancyRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
    "InstanceTenancy": ...,
}

parent.modify_vpc_tenancy(**kwargs)
  1. See ModifyVpcTenancyRequestRequestTypeDef

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 boto3.client("ec2").modify_vpn_connection method. boto3 documentation

# modify_vpn_connection method definition

def modify_vpn_connection(
    self,
    *,
    VpnConnectionId: str,
    TransitGatewayId: str = ...,
    CustomerGatewayId: str = ...,
    VpnGatewayId: str = ...,
    DryRun: bool = ...,
) -> ModifyVpnConnectionResultTypeDef:  # (1)
    ...
  1. See ModifyVpnConnectionResultTypeDef
# modify_vpn_connection method usage example with argument unpacking

kwargs: ModifyVpnConnectionRequestRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
}

parent.modify_vpn_connection(**kwargs)
  1. See ModifyVpnConnectionRequestRequestTypeDef

modify_vpn_connection_options#

Modifies the connection options for your Site-to-Site VPN connection.

Type annotations and code completion for boto3.client("ec2").modify_vpn_connection_options method. boto3 documentation

# modify_vpn_connection_options method definition

def modify_vpn_connection_options(
    self,
    *,
    VpnConnectionId: str,
    LocalIpv4NetworkCidr: str = ...,
    RemoteIpv4NetworkCidr: str = ...,
    LocalIpv6NetworkCidr: str = ...,
    RemoteIpv6NetworkCidr: str = ...,
    DryRun: bool = ...,
) -> ModifyVpnConnectionOptionsResultTypeDef:  # (1)
    ...
  1. See ModifyVpnConnectionOptionsResultTypeDef
# modify_vpn_connection_options method usage example with argument unpacking

kwargs: ModifyVpnConnectionOptionsRequestRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
}

parent.modify_vpn_connection_options(**kwargs)
  1. See ModifyVpnConnectionOptionsRequestRequestTypeDef

modify_vpn_tunnel_certificate#

Modifies the VPN tunnel endpoint certificate.

Type annotations and code completion for boto3.client("ec2").modify_vpn_tunnel_certificate method. boto3 documentation

# modify_vpn_tunnel_certificate method definition

def modify_vpn_tunnel_certificate(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    DryRun: bool = ...,
) -> ModifyVpnTunnelCertificateResultTypeDef:  # (1)
    ...
  1. See ModifyVpnTunnelCertificateResultTypeDef
# modify_vpn_tunnel_certificate method usage example with argument unpacking

kwargs: ModifyVpnTunnelCertificateRequestRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
}

parent.modify_vpn_tunnel_certificate(**kwargs)
  1. See ModifyVpnTunnelCertificateRequestRequestTypeDef

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 boto3.client("ec2").modify_vpn_tunnel_options method. boto3 documentation

# modify_vpn_tunnel_options method definition

def modify_vpn_tunnel_options(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    TunnelOptions: ModifyVpnTunnelOptionsSpecificationTypeDef,  # (1)
    DryRun: bool = ...,
    SkipTunnelReplacement: bool = ...,
) -> ModifyVpnTunnelOptionsResultTypeDef:  # (2)
    ...
  1. See ModifyVpnTunnelOptionsSpecificationTypeDef
  2. See ModifyVpnTunnelOptionsResultTypeDef
# modify_vpn_tunnel_options method usage example with argument unpacking

kwargs: ModifyVpnTunnelOptionsRequestRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
    "TunnelOptions": ...,
}

parent.modify_vpn_tunnel_options(**kwargs)
  1. See ModifyVpnTunnelOptionsRequestRequestTypeDef

monitor_instances#

Enables detailed monitoring for a running instance.

Type annotations and code completion for boto3.client("ec2").monitor_instances method. boto3 documentation

# monitor_instances method definition

def monitor_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> MonitorInstancesResultTypeDef:  # (1)
    ...
  1. See MonitorInstancesResultTypeDef
# monitor_instances method usage example with argument unpacking

kwargs: MonitorInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.monitor_instances(**kwargs)
  1. See MonitorInstancesRequestRequestTypeDef

move_address_to_vpc#

.

Type annotations and code completion for boto3.client("ec2").move_address_to_vpc method. boto3 documentation

# move_address_to_vpc method definition

def move_address_to_vpc(
    self,
    *,
    PublicIp: str,
    DryRun: bool = ...,
) -> MoveAddressToVpcResultTypeDef:  # (1)
    ...
  1. See MoveAddressToVpcResultTypeDef
# move_address_to_vpc method usage example with argument unpacking

kwargs: MoveAddressToVpcRequestRequestTypeDef = {  # (1)
    "PublicIp": ...,
}

parent.move_address_to_vpc(**kwargs)
  1. See MoveAddressToVpcRequestRequestTypeDef

move_byoip_cidr_to_ipam#

Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool.

Type annotations and code completion for boto3.client("ec2").move_byoip_cidr_to_ipam method. boto3 documentation

# move_byoip_cidr_to_ipam method definition

def move_byoip_cidr_to_ipam(
    self,
    *,
    Cidr: str,
    IpamPoolId: str,
    IpamPoolOwner: str,
    DryRun: bool = ...,
) -> MoveByoipCidrToIpamResultTypeDef:  # (1)
    ...
  1. See MoveByoipCidrToIpamResultTypeDef
# move_byoip_cidr_to_ipam method usage example with argument unpacking

kwargs: MoveByoipCidrToIpamRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
    "IpamPoolId": ...,
    "IpamPoolOwner": ...,
}

parent.move_byoip_cidr_to_ipam(**kwargs)
  1. See MoveByoipCidrToIpamRequestRequestTypeDef

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 boto3.client("ec2").provision_byoip_cidr method. boto3 documentation

# provision_byoip_cidr method definition

def provision_byoip_cidr(
    self,
    *,
    Cidr: str,
    CidrAuthorizationContext: CidrAuthorizationContextTypeDef = ...,  # (1)
    PubliclyAdvertisable: bool = ...,
    Description: str = ...,
    DryRun: bool = ...,
    PoolTagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    MultiRegion: bool = ...,
    NetworkBorderGroup: str = ...,
) -> ProvisionByoipCidrResultTypeDef:  # (3)
    ...
  1. See CidrAuthorizationContextTypeDef
  2. See TagSpecificationTypeDef
  3. See ProvisionByoipCidrResultTypeDef
# provision_byoip_cidr method usage example with argument unpacking

kwargs: ProvisionByoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.provision_byoip_cidr(**kwargs)
  1. See ProvisionByoipCidrRequestRequestTypeDef

provision_ipam_byoasn#

Provisions your Autonomous System Number (ASN) for use in your Amazon Web Services account.

Type annotations and code completion for boto3.client("ec2").provision_ipam_byoasn method. boto3 documentation

# provision_ipam_byoasn method definition

def provision_ipam_byoasn(
    self,
    *,
    IpamId: str,
    Asn: str,
    AsnAuthorizationContext: AsnAuthorizationContextTypeDef,  # (1)
    DryRun: bool = ...,
) -> ProvisionIpamByoasnResultTypeDef:  # (2)
    ...
  1. See AsnAuthorizationContextTypeDef
  2. See ProvisionIpamByoasnResultTypeDef
# provision_ipam_byoasn method usage example with argument unpacking

kwargs: ProvisionIpamByoasnRequestRequestTypeDef = {  # (1)
    "IpamId": ...,
    "Asn": ...,
    "AsnAuthorizationContext": ...,
}

parent.provision_ipam_byoasn(**kwargs)
  1. See ProvisionIpamByoasnRequestRequestTypeDef

provision_ipam_pool_cidr#

Provision a CIDR to an IPAM pool.

Type annotations and code completion for boto3.client("ec2").provision_ipam_pool_cidr method. boto3 documentation

# provision_ipam_pool_cidr method definition

def provision_ipam_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cidr: str = ...,
    CidrAuthorizationContext: IpamCidrAuthorizationContextTypeDef = ...,  # (1)
    NetmaskLength: int = ...,
    ClientToken: str = ...,
) -> ProvisionIpamPoolCidrResultTypeDef:  # (2)
    ...
  1. See IpamCidrAuthorizationContextTypeDef
  2. See ProvisionIpamPoolCidrResultTypeDef
# provision_ipam_pool_cidr method usage example with argument unpacking

kwargs: ProvisionIpamPoolCidrRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.provision_ipam_pool_cidr(**kwargs)
  1. See ProvisionIpamPoolCidrRequestRequestTypeDef

provision_public_ipv4_pool_cidr#

Provision a CIDR to a public IPv4 pool.

Type annotations and code completion for boto3.client("ec2").provision_public_ipv4_pool_cidr method. boto3 documentation

# provision_public_ipv4_pool_cidr method definition

def provision_public_ipv4_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    PoolId: str,
    NetmaskLength: int,
    DryRun: bool = ...,
) -> ProvisionPublicIpv4PoolCidrResultTypeDef:  # (1)
    ...
  1. See ProvisionPublicIpv4PoolCidrResultTypeDef
# provision_public_ipv4_pool_cidr method usage example with argument unpacking

kwargs: ProvisionPublicIpv4PoolCidrRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
    "PoolId": ...,
    "NetmaskLength": ...,
}

parent.provision_public_ipv4_pool_cidr(**kwargs)
  1. See ProvisionPublicIpv4PoolCidrRequestRequestTypeDef

purchase_capacity_block#

Purchase the Capacity Block for use with your account.

Type annotations and code completion for boto3.client("ec2").purchase_capacity_block method. boto3 documentation

# purchase_capacity_block method definition

def purchase_capacity_block(
    self,
    *,
    CapacityBlockOfferingId: str,
    InstancePlatform: CapacityReservationInstancePlatformType,  # (1)
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> PurchaseCapacityBlockResultTypeDef:  # (3)
    ...
  1. See CapacityReservationInstancePlatformType
  2. See TagSpecificationTypeDef
  3. See PurchaseCapacityBlockResultTypeDef
# purchase_capacity_block method usage example with argument unpacking

kwargs: PurchaseCapacityBlockRequestRequestTypeDef = {  # (1)
    "CapacityBlockOfferingId": ...,
    "InstancePlatform": ...,
}

parent.purchase_capacity_block(**kwargs)
  1. See PurchaseCapacityBlockRequestRequestTypeDef

purchase_host_reservation#

Purchase a reservation with configurations that match those of your Dedicated Host.

Type annotations and code completion for boto3.client("ec2").purchase_host_reservation method. boto3 documentation

# purchase_host_reservation method definition

def purchase_host_reservation(
    self,
    *,
    HostIdSet: Sequence[str],
    OfferingId: str,
    ClientToken: str = ...,
    CurrencyCode: CurrencyCodeValuesType = ...,  # (1)
    LimitPrice: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
) -> PurchaseHostReservationResultTypeDef:  # (3)
    ...
  1. See CurrencyCodeValuesType
  2. See TagSpecificationTypeDef
  3. See PurchaseHostReservationResultTypeDef
# purchase_host_reservation method usage example with argument unpacking

kwargs: PurchaseHostReservationRequestRequestTypeDef = {  # (1)
    "HostIdSet": ...,
    "OfferingId": ...,
}

parent.purchase_host_reservation(**kwargs)
  1. See PurchaseHostReservationRequestRequestTypeDef

purchase_reserved_instances_offering#

Purchases a Reserved Instance for use with your account.

Type annotations and code completion for boto3.client("ec2").purchase_reserved_instances_offering method. boto3 documentation

# purchase_reserved_instances_offering method definition

def purchase_reserved_instances_offering(
    self,
    *,
    InstanceCount: int,
    ReservedInstancesOfferingId: str,
    DryRun: bool = ...,
    LimitPrice: ReservedInstanceLimitPriceTypeDef = ...,  # (1)
    PurchaseTime: Union[datetime, str] = ...,
) -> PurchaseReservedInstancesOfferingResultTypeDef:  # (2)
    ...
  1. See ReservedInstanceLimitPriceTypeDef
  2. See PurchaseReservedInstancesOfferingResultTypeDef
# purchase_reserved_instances_offering method usage example with argument unpacking

kwargs: PurchaseReservedInstancesOfferingRequestRequestTypeDef = {  # (1)
    "InstanceCount": ...,
    "ReservedInstancesOfferingId": ...,
}

parent.purchase_reserved_instances_offering(**kwargs)
  1. See PurchaseReservedInstancesOfferingRequestRequestTypeDef

purchase_scheduled_instances#

.

Type annotations and code completion for boto3.client("ec2").purchase_scheduled_instances method. boto3 documentation

# purchase_scheduled_instances method definition

def purchase_scheduled_instances(
    self,
    *,
    PurchaseRequests: Sequence[PurchaseRequestTypeDef],  # (1)
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> PurchaseScheduledInstancesResultTypeDef:  # (2)
    ...
  1. See PurchaseRequestTypeDef
  2. See PurchaseScheduledInstancesResultTypeDef
# purchase_scheduled_instances method usage example with argument unpacking

kwargs: PurchaseScheduledInstancesRequestRequestTypeDef = {  # (1)
    "PurchaseRequests": ...,
}

parent.purchase_scheduled_instances(**kwargs)
  1. See PurchaseScheduledInstancesRequestRequestTypeDef

reboot_instances#

Requests a reboot of the specified instances.

Type annotations and code completion for boto3.client("ec2").reboot_instances method. boto3 documentation

# reboot_instances method definition

def reboot_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# reboot_instances method usage example with argument unpacking

kwargs: RebootInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.reboot_instances(**kwargs)
  1. See RebootInstancesRequestRequestTypeDef

register_image#

Registers an AMI.

Type annotations and code completion for boto3.client("ec2").register_image method. boto3 documentation

# register_image method definition

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)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (6)
) -> RegisterImageResultTypeDef:  # (7)
    ...
  1. See ArchitectureValuesType
  2. See BlockDeviceMappingTypeDef
  3. See BootModeValuesType
  4. See TpmSupportValuesType
  5. See ImdsSupportValuesType
  6. See TagSpecificationTypeDef
  7. See RegisterImageResultTypeDef
# register_image method usage example with argument unpacking

kwargs: RegisterImageRequestRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.register_image(**kwargs)
  1. See RegisterImageRequestRequestTypeDef

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 boto3.client("ec2").register_instance_event_notification_attributes method. boto3 documentation

# register_instance_event_notification_attributes method definition

def register_instance_event_notification_attributes(
    self,
    *,
    InstanceTagAttribute: RegisterInstanceTagAttributeRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> RegisterInstanceEventNotificationAttributesResultTypeDef:  # (2)
    ...
  1. See RegisterInstanceTagAttributeRequestTypeDef
  2. See RegisterInstanceEventNotificationAttributesResultTypeDef
# register_instance_event_notification_attributes method usage example with argument unpacking

kwargs: RegisterInstanceEventNotificationAttributesRequestRequestTypeDef = {  # (1)
    "InstanceTagAttribute": ...,
}

parent.register_instance_event_notification_attributes(**kwargs)
  1. See RegisterInstanceEventNotificationAttributesRequestRequestTypeDef

register_transit_gateway_multicast_group_members#

Registers members (network interfaces) with the transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").register_transit_gateway_multicast_group_members method. boto3 documentation

# register_transit_gateway_multicast_group_members method definition

def register_transit_gateway_multicast_group_members(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    NetworkInterfaceIds: Sequence[str],
    GroupIpAddress: str = ...,
    DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupMembersResultTypeDef:  # (1)
    ...
  1. See RegisterTransitGatewayMulticastGroupMembersResultTypeDef
# 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)
  1. See RegisterTransitGatewayMulticastGroupMembersRequestRequestTypeDef

register_transit_gateway_multicast_group_sources#

Registers sources (network interfaces) with the specified transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").register_transit_gateway_multicast_group_sources method. boto3 documentation

# register_transit_gateway_multicast_group_sources method definition

def register_transit_gateway_multicast_group_sources(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    NetworkInterfaceIds: Sequence[str],
    GroupIpAddress: str = ...,
    DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupSourcesResultTypeDef:  # (1)
    ...
  1. See RegisterTransitGatewayMulticastGroupSourcesResultTypeDef
# 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)
  1. See RegisterTransitGatewayMulticastGroupSourcesRequestRequestTypeDef

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 boto3.client("ec2").reject_transit_gateway_multicast_domain_associations method. boto3 documentation

# reject_transit_gateway_multicast_domain_associations method definition

def reject_transit_gateway_multicast_domain_associations(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    TransitGatewayAttachmentId: str = ...,
    SubnetIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> RejectTransitGatewayMulticastDomainAssociationsResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayMulticastDomainAssociationsResultTypeDef
# reject_transit_gateway_multicast_domain_associations method usage example with argument unpacking

kwargs: RejectTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.reject_transit_gateway_multicast_domain_associations(**kwargs)
  1. See RejectTransitGatewayMulticastDomainAssociationsRequestRequestTypeDef

reject_transit_gateway_peering_attachment#

Rejects a transit gateway peering attachment request.

Type annotations and code completion for boto3.client("ec2").reject_transit_gateway_peering_attachment method. boto3 documentation

# reject_transit_gateway_peering_attachment method definition

def reject_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> RejectTransitGatewayPeeringAttachmentResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayPeeringAttachmentResultTypeDef
# reject_transit_gateway_peering_attachment method usage example with argument unpacking

kwargs: RejectTransitGatewayPeeringAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.reject_transit_gateway_peering_attachment(**kwargs)
  1. See RejectTransitGatewayPeeringAttachmentRequestRequestTypeDef

reject_transit_gateway_vpc_attachment#

Rejects a request to attach a VPC to a transit gateway.

Type annotations and code completion for boto3.client("ec2").reject_transit_gateway_vpc_attachment method. boto3 documentation

# reject_transit_gateway_vpc_attachment method definition

def reject_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> RejectTransitGatewayVpcAttachmentResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayVpcAttachmentResultTypeDef
# reject_transit_gateway_vpc_attachment method usage example with argument unpacking

kwargs: RejectTransitGatewayVpcAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.reject_transit_gateway_vpc_attachment(**kwargs)
  1. See RejectTransitGatewayVpcAttachmentRequestRequestTypeDef

reject_vpc_endpoint_connections#

Rejects VPC endpoint connection requests to your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").reject_vpc_endpoint_connections method. boto3 documentation

# reject_vpc_endpoint_connections method definition

def reject_vpc_endpoint_connections(
    self,
    *,
    ServiceId: str,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> RejectVpcEndpointConnectionsResultTypeDef:  # (1)
    ...
  1. See RejectVpcEndpointConnectionsResultTypeDef
# reject_vpc_endpoint_connections method usage example with argument unpacking

kwargs: RejectVpcEndpointConnectionsRequestRequestTypeDef = {  # (1)
    "ServiceId": ...,
    "VpcEndpointIds": ...,
}

parent.reject_vpc_endpoint_connections(**kwargs)
  1. See RejectVpcEndpointConnectionsRequestRequestTypeDef

reject_vpc_peering_connection#

Rejects a VPC peering connection request.

Type annotations and code completion for boto3.client("ec2").reject_vpc_peering_connection method. boto3 documentation

# reject_vpc_peering_connection method definition

def reject_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> RejectVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See RejectVpcPeeringConnectionResultTypeDef
# reject_vpc_peering_connection method usage example with argument unpacking

kwargs: RejectVpcPeeringConnectionRequestRequestTypeDef = {  # (1)
    "VpcPeeringConnectionId": ...,
}

parent.reject_vpc_peering_connection(**kwargs)
  1. See RejectVpcPeeringConnectionRequestRequestTypeDef

release_address#

Releases the specified Elastic IP address.

Type annotations and code completion for boto3.client("ec2").release_address method. boto3 documentation

# release_address method definition

def release_address(
    self,
    *,
    AllocationId: str = ...,
    PublicIp: str = ...,
    NetworkBorderGroup: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# release_address method usage example with argument unpacking

kwargs: ReleaseAddressRequestRequestTypeDef = {  # (1)
    "AllocationId": ...,
}

parent.release_address(**kwargs)
  1. See ReleaseAddressRequestRequestTypeDef

release_hosts#

When you no longer want to use an On-Demand Dedicated Host it can be released.

Type annotations and code completion for boto3.client("ec2").release_hosts method. boto3 documentation

# release_hosts method definition

def release_hosts(
    self,
    *,
    HostIds: Sequence[str],
) -> ReleaseHostsResultTypeDef:  # (1)
    ...
  1. See ReleaseHostsResultTypeDef
# release_hosts method usage example with argument unpacking

kwargs: ReleaseHostsRequestRequestTypeDef = {  # (1)
    "HostIds": ...,
}

parent.release_hosts(**kwargs)
  1. See ReleaseHostsRequestRequestTypeDef

release_ipam_pool_allocation#

Release an allocation within an IPAM pool.

Type annotations and code completion for boto3.client("ec2").release_ipam_pool_allocation method. boto3 documentation

# release_ipam_pool_allocation method definition

def release_ipam_pool_allocation(
    self,
    *,
    IpamPoolId: str,
    Cidr: str,
    IpamPoolAllocationId: str,
    DryRun: bool = ...,
) -> ReleaseIpamPoolAllocationResultTypeDef:  # (1)
    ...
  1. See ReleaseIpamPoolAllocationResultTypeDef
# release_ipam_pool_allocation method usage example with argument unpacking

kwargs: ReleaseIpamPoolAllocationRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
    "Cidr": ...,
    "IpamPoolAllocationId": ...,
}

parent.release_ipam_pool_allocation(**kwargs)
  1. See ReleaseIpamPoolAllocationRequestRequestTypeDef

replace_iam_instance_profile_association#

Replaces an IAM instance profile for the specified running instance.

Type annotations and code completion for boto3.client("ec2").replace_iam_instance_profile_association method. boto3 documentation

# replace_iam_instance_profile_association method definition

def replace_iam_instance_profile_association(
    self,
    *,
    IamInstanceProfile: IamInstanceProfileSpecificationTypeDef,  # (1)
    AssociationId: str,
) -> ReplaceIamInstanceProfileAssociationResultTypeDef:  # (2)
    ...
  1. See IamInstanceProfileSpecificationTypeDef
  2. See ReplaceIamInstanceProfileAssociationResultTypeDef
# replace_iam_instance_profile_association method usage example with argument unpacking

kwargs: ReplaceIamInstanceProfileAssociationRequestRequestTypeDef = {  # (1)
    "IamInstanceProfile": ...,
    "AssociationId": ...,
}

parent.replace_iam_instance_profile_association(**kwargs)
  1. See ReplaceIamInstanceProfileAssociationRequestRequestTypeDef

replace_network_acl_association#

Changes which network ACL a subnet is associated with.

Type annotations and code completion for boto3.client("ec2").replace_network_acl_association method. boto3 documentation

# replace_network_acl_association method definition

def replace_network_acl_association(
    self,
    *,
    AssociationId: str,
    NetworkAclId: str,
    DryRun: bool = ...,
) -> ReplaceNetworkAclAssociationResultTypeDef:  # (1)
    ...
  1. See ReplaceNetworkAclAssociationResultTypeDef
# replace_network_acl_association method usage example with argument unpacking

kwargs: ReplaceNetworkAclAssociationRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
    "NetworkAclId": ...,
}

parent.replace_network_acl_association(**kwargs)
  1. See ReplaceNetworkAclAssociationRequestRequestTypeDef

replace_network_acl_entry#

Replaces an entry (rule) in a network ACL.

Type annotations and code completion for boto3.client("ec2").replace_network_acl_entry method. boto3 documentation

# replace_network_acl_entry method definition

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)
    ...
  1. See RuleActionType
  2. See IcmpTypeCodeTypeDef
  3. See PortRangeTypeDef
  4. See EmptyResponseMetadataTypeDef
# replace_network_acl_entry method usage example with argument unpacking

kwargs: ReplaceNetworkAclEntryRequestRequestTypeDef = {  # (1)
    "Egress": ...,
    "NetworkAclId": ...,
    "Protocol": ...,
    "RuleAction": ...,
    "RuleNumber": ...,
}

parent.replace_network_acl_entry(**kwargs)
  1. See ReplaceNetworkAclEntryRequestRequestTypeDef

replace_route#

Replaces an existing route within a route table in a VPC.

Type annotations and code completion for boto3.client("ec2").replace_route method. boto3 documentation

# replace_route method definition

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)
    ...
  1. See EmptyResponseMetadataTypeDef
# replace_route method usage example with argument unpacking

kwargs: ReplaceRouteRequestRequestTypeDef = {  # (1)
    "RouteTableId": ...,
}

parent.replace_route(**kwargs)
  1. See ReplaceRouteRequestRequestTypeDef

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 boto3.client("ec2").replace_route_table_association method. boto3 documentation

# replace_route_table_association method definition

def replace_route_table_association(
    self,
    *,
    AssociationId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> ReplaceRouteTableAssociationResultTypeDef:  # (1)
    ...
  1. See ReplaceRouteTableAssociationResultTypeDef
# replace_route_table_association method usage example with argument unpacking

kwargs: ReplaceRouteTableAssociationRequestRequestTypeDef = {  # (1)
    "AssociationId": ...,
    "RouteTableId": ...,
}

parent.replace_route_table_association(**kwargs)
  1. See ReplaceRouteTableAssociationRequestRequestTypeDef

replace_transit_gateway_route#

Replaces the specified route in the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").replace_transit_gateway_route method. boto3 documentation

# replace_transit_gateway_route method definition

def replace_transit_gateway_route(
    self,
    *,
    DestinationCidrBlock: str,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> ReplaceTransitGatewayRouteResultTypeDef:  # (1)
    ...
  1. See ReplaceTransitGatewayRouteResultTypeDef
# replace_transit_gateway_route method usage example with argument unpacking

kwargs: ReplaceTransitGatewayRouteRequestRequestTypeDef = {  # (1)
    "DestinationCidrBlock": ...,
    "TransitGatewayRouteTableId": ...,
}

parent.replace_transit_gateway_route(**kwargs)
  1. See ReplaceTransitGatewayRouteRequestRequestTypeDef

replace_vpn_tunnel#

Trigger replacement of specified VPN tunnel.

Type annotations and code completion for boto3.client("ec2").replace_vpn_tunnel method. boto3 documentation

# replace_vpn_tunnel method definition

def replace_vpn_tunnel(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    ApplyPendingMaintenance: bool = ...,
    DryRun: bool = ...,
) -> ReplaceVpnTunnelResultTypeDef:  # (1)
    ...
  1. See ReplaceVpnTunnelResultTypeDef
# replace_vpn_tunnel method usage example with argument unpacking

kwargs: ReplaceVpnTunnelRequestRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
}

parent.replace_vpn_tunnel(**kwargs)
  1. See ReplaceVpnTunnelRequestRequestTypeDef

report_instance_status#

Submits feedback about the status of an instance.

Type annotations and code completion for boto3.client("ec2").report_instance_status method. boto3 documentation

# report_instance_status method definition

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)
    ...
  1. See ReportInstanceReasonCodesType
  2. See ReportStatusTypeType
  3. See EmptyResponseMetadataTypeDef
# report_instance_status method usage example with argument unpacking

kwargs: ReportInstanceStatusRequestRequestTypeDef = {  # (1)
    "Instances": ...,
    "ReasonCodes": ...,
    "Status": ...,
}

parent.report_instance_status(**kwargs)
  1. See ReportInstanceStatusRequestRequestTypeDef

request_spot_fleet#

Creates a Spot Fleet request.

Type annotations and code completion for boto3.client("ec2").request_spot_fleet method. boto3 documentation

# request_spot_fleet method definition

def request_spot_fleet(
    self,
    *,
    SpotFleetRequestConfig: SpotFleetRequestConfigDataTypeDef,  # (1)
    DryRun: bool = ...,
) -> RequestSpotFleetResponseTypeDef:  # (2)
    ...
  1. See SpotFleetRequestConfigDataTypeDef
  2. See RequestSpotFleetResponseTypeDef
# request_spot_fleet method usage example with argument unpacking

kwargs: RequestSpotFleetRequestRequestTypeDef = {  # (1)
    "SpotFleetRequestConfig": ...,
}

parent.request_spot_fleet(**kwargs)
  1. See RequestSpotFleetRequestRequestTypeDef

request_spot_instances#

Creates a Spot Instance request.

Type annotations and code completion for boto3.client("ec2").request_spot_instances method. boto3 documentation

# request_spot_instances method definition

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)
    ...
  1. See RequestSpotLaunchSpecificationTypeDef
  2. See SpotInstanceTypeType
  3. See TagSpecificationTypeDef
  4. See InstanceInterruptionBehaviorType
  5. See RequestSpotInstancesResultTypeDef
# request_spot_instances method usage example with argument unpacking

kwargs: RequestSpotInstancesRequestRequestTypeDef = {  # (1)
    "AvailabilityZoneGroup": ...,
}

parent.request_spot_instances(**kwargs)
  1. See RequestSpotInstancesRequestRequestTypeDef

reset_address_attribute#

Resets the attribute of the specified IP address.

Type annotations and code completion for boto3.client("ec2").reset_address_attribute method. boto3 documentation

# reset_address_attribute method definition

def reset_address_attribute(
    self,
    *,
    AllocationId: str,
    Attribute: AddressAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> ResetAddressAttributeResultTypeDef:  # (2)
    ...
  1. See AddressAttributeNameType
  2. See ResetAddressAttributeResultTypeDef
# reset_address_attribute method usage example with argument unpacking

kwargs: ResetAddressAttributeRequestRequestTypeDef = {  # (1)
    "AllocationId": ...,
    "Attribute": ...,
}

parent.reset_address_attribute(**kwargs)
  1. See ResetAddressAttributeRequestRequestTypeDef

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 boto3.client("ec2").reset_ebs_default_kms_key_id method. boto3 documentation

# reset_ebs_default_kms_key_id method definition

def reset_ebs_default_kms_key_id(
    self,
    *,
    DryRun: bool = ...,
) -> ResetEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See ResetEbsDefaultKmsKeyIdResultTypeDef
# reset_ebs_default_kms_key_id method usage example with argument unpacking

kwargs: ResetEbsDefaultKmsKeyIdRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.reset_ebs_default_kms_key_id(**kwargs)
  1. See ResetEbsDefaultKmsKeyIdRequestRequestTypeDef

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 boto3.client("ec2").reset_fpga_image_attribute method. boto3 documentation

# reset_fpga_image_attribute method definition

def reset_fpga_image_attribute(
    self,
    *,
    FpgaImageId: str,
    DryRun: bool = ...,
    Attribute: ResetFpgaImageAttributeNameType = ...,  # (1)
) -> ResetFpgaImageAttributeResultTypeDef:  # (2)
    ...
  1. See ResetFpgaImageAttributeNameType
  2. See ResetFpgaImageAttributeResultTypeDef
# reset_fpga_image_attribute method usage example with argument unpacking

kwargs: ResetFpgaImageAttributeRequestRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
}

parent.reset_fpga_image_attribute(**kwargs)
  1. See ResetFpgaImageAttributeRequestRequestTypeDef

reset_image_attribute#

Resets an attribute of an AMI to its default value.

Type annotations and code completion for boto3.client("ec2").reset_image_attribute method. boto3 documentation

# reset_image_attribute method definition

def reset_image_attribute(
    self,
    *,
    Attribute: ResetImageAttributeNameType,  # (1)
    ImageId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See ResetImageAttributeNameType
  2. See EmptyResponseMetadataTypeDef
# reset_image_attribute method usage example with argument unpacking

kwargs: ResetImageAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "ImageId": ...,
}

parent.reset_image_attribute(**kwargs)
  1. See ResetImageAttributeRequestRequestTypeDef

reset_instance_attribute#

Resets an attribute of an instance to its default value.

Type annotations and code completion for boto3.client("ec2").reset_instance_attribute method. boto3 documentation

# reset_instance_attribute method definition

def reset_instance_attribute(
    self,
    *,
    Attribute: InstanceAttributeNameType,  # (1)
    InstanceId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See InstanceAttributeNameType
  2. See EmptyResponseMetadataTypeDef
# reset_instance_attribute method usage example with argument unpacking

kwargs: ResetInstanceAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "InstanceId": ...,
}

parent.reset_instance_attribute(**kwargs)
  1. See ResetInstanceAttributeRequestRequestTypeDef

reset_network_interface_attribute#

Resets a network interface attribute.

Type annotations and code completion for boto3.client("ec2").reset_network_interface_attribute method. boto3 documentation

# reset_network_interface_attribute method definition

def reset_network_interface_attribute(
    self,
    *,
    NetworkInterfaceId: str,
    DryRun: bool = ...,
    SourceDestCheck: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# reset_network_interface_attribute method usage example with argument unpacking

kwargs: ResetNetworkInterfaceAttributeRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.reset_network_interface_attribute(**kwargs)
  1. See ResetNetworkInterfaceAttributeRequestRequestTypeDef

reset_snapshot_attribute#

Resets permission settings for the specified snapshot.

Type annotations and code completion for boto3.client("ec2").reset_snapshot_attribute method. boto3 documentation

# reset_snapshot_attribute method definition

def reset_snapshot_attribute(
    self,
    *,
    Attribute: SnapshotAttributeNameType,  # (1)
    SnapshotId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See SnapshotAttributeNameType
  2. See EmptyResponseMetadataTypeDef
# reset_snapshot_attribute method usage example with argument unpacking

kwargs: ResetSnapshotAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "SnapshotId": ...,
}

parent.reset_snapshot_attribute(**kwargs)
  1. See ResetSnapshotAttributeRequestRequestTypeDef

restore_address_to_classic#

.

Type annotations and code completion for boto3.client("ec2").restore_address_to_classic method. boto3 documentation

# restore_address_to_classic method definition

def restore_address_to_classic(
    self,
    *,
    PublicIp: str,
    DryRun: bool = ...,
) -> RestoreAddressToClassicResultTypeDef:  # (1)
    ...
  1. See RestoreAddressToClassicResultTypeDef
# restore_address_to_classic method usage example with argument unpacking

kwargs: RestoreAddressToClassicRequestRequestTypeDef = {  # (1)
    "PublicIp": ...,
}

parent.restore_address_to_classic(**kwargs)
  1. See RestoreAddressToClassicRequestRequestTypeDef

restore_image_from_recycle_bin#

Restores an AMI from the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").restore_image_from_recycle_bin method. boto3 documentation

# restore_image_from_recycle_bin method definition

def restore_image_from_recycle_bin(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> RestoreImageFromRecycleBinResultTypeDef:  # (1)
    ...
  1. See RestoreImageFromRecycleBinResultTypeDef
# restore_image_from_recycle_bin method usage example with argument unpacking

kwargs: RestoreImageFromRecycleBinRequestRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.restore_image_from_recycle_bin(**kwargs)
  1. See RestoreImageFromRecycleBinRequestRequestTypeDef

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 boto3.client("ec2").restore_managed_prefix_list_version method. boto3 documentation

# restore_managed_prefix_list_version method definition

def restore_managed_prefix_list_version(
    self,
    *,
    PrefixListId: str,
    PreviousVersion: int,
    CurrentVersion: int,
    DryRun: bool = ...,
) -> RestoreManagedPrefixListVersionResultTypeDef:  # (1)
    ...
  1. See RestoreManagedPrefixListVersionResultTypeDef
# restore_managed_prefix_list_version method usage example with argument unpacking

kwargs: RestoreManagedPrefixListVersionRequestRequestTypeDef = {  # (1)
    "PrefixListId": ...,
    "PreviousVersion": ...,
    "CurrentVersion": ...,
}

parent.restore_managed_prefix_list_version(**kwargs)
  1. See RestoreManagedPrefixListVersionRequestRequestTypeDef

restore_snapshot_from_recycle_bin#

Restores a snapshot from the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").restore_snapshot_from_recycle_bin method. boto3 documentation

# restore_snapshot_from_recycle_bin method definition

def restore_snapshot_from_recycle_bin(
    self,
    *,
    SnapshotId: str,
    DryRun: bool = ...,
) -> RestoreSnapshotFromRecycleBinResultTypeDef:  # (1)
    ...
  1. See RestoreSnapshotFromRecycleBinResultTypeDef
# restore_snapshot_from_recycle_bin method usage example with argument unpacking

kwargs: RestoreSnapshotFromRecycleBinRequestRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.restore_snapshot_from_recycle_bin(**kwargs)
  1. See RestoreSnapshotFromRecycleBinRequestRequestTypeDef

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 boto3.client("ec2").restore_snapshot_tier method. boto3 documentation

# restore_snapshot_tier method definition

def restore_snapshot_tier(
    self,
    *,
    SnapshotId: str,
    TemporaryRestoreDays: int = ...,
    PermanentRestore: bool = ...,
    DryRun: bool = ...,
) -> RestoreSnapshotTierResultTypeDef:  # (1)
    ...
  1. See RestoreSnapshotTierResultTypeDef
# restore_snapshot_tier method usage example with argument unpacking

kwargs: RestoreSnapshotTierRequestRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.restore_snapshot_tier(**kwargs)
  1. See RestoreSnapshotTierRequestRequestTypeDef

revoke_client_vpn_ingress#

Removes an ingress authorization rule from a Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").revoke_client_vpn_ingress method. boto3 documentation

# revoke_client_vpn_ingress method definition

def revoke_client_vpn_ingress(
    self,
    *,
    ClientVpnEndpointId: str,
    TargetNetworkCidr: str,
    AccessGroupId: str = ...,
    RevokeAllGroups: bool = ...,
    DryRun: bool = ...,
) -> RevokeClientVpnIngressResultTypeDef:  # (1)
    ...
  1. See RevokeClientVpnIngressResultTypeDef
# revoke_client_vpn_ingress method usage example with argument unpacking

kwargs: RevokeClientVpnIngressRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "TargetNetworkCidr": ...,
}

parent.revoke_client_vpn_ingress(**kwargs)
  1. See RevokeClientVpnIngressRequestRequestTypeDef

revoke_security_group_egress#

Removes the specified outbound (egress) rules from the specified security group.

Type annotations and code completion for boto3.client("ec2").revoke_security_group_egress method. boto3 documentation

# revoke_security_group_egress method definition

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)
    ...
  1. See IpPermissionTypeDef
  2. See RevokeSecurityGroupEgressResultTypeDef
# revoke_security_group_egress method usage example with argument unpacking

kwargs: RevokeSecurityGroupEgressRequestRequestTypeDef = {  # (1)
    "GroupId": ...,
}

parent.revoke_security_group_egress(**kwargs)
  1. See RevokeSecurityGroupEgressRequestRequestTypeDef

revoke_security_group_ingress#

Removes the specified inbound (ingress) rules from a security group.

Type annotations and code completion for boto3.client("ec2").revoke_security_group_ingress method. boto3 documentation

# revoke_security_group_ingress method definition

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)
    ...
  1. See IpPermissionTypeDef
  2. See RevokeSecurityGroupIngressResultTypeDef
# revoke_security_group_ingress method usage example with argument unpacking

kwargs: RevokeSecurityGroupIngressRequestRequestTypeDef = {  # (1)
    "CidrIp": ...,
}

parent.revoke_security_group_ingress(**kwargs)
  1. See RevokeSecurityGroupIngressRequestRequestTypeDef

run_instances#

Launches the specified number of instances using an AMI for which you have permissions.

Type annotations and code completion for boto3.client("ec2").run_instances method. boto3 documentation

# run_instances method definition

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)
    ...
  1. See BlockDeviceMappingTypeDef
  2. See InstanceTypeType
  3. See InstanceIpv6AddressTypeDef
  4. See RunInstancesMonitoringEnabledTypeDef
  5. See PlacementTypeDef
  6. See IamInstanceProfileSpecificationTypeDef
  7. See ShutdownBehaviorType
  8. See InstanceNetworkInterfaceSpecificationTypeDef
  9. See ElasticGpuSpecificationTypeDef
  10. See ElasticInferenceAcceleratorTypeDef
  11. See TagSpecificationTypeDef
  12. See LaunchTemplateSpecificationTypeDef
  13. See InstanceMarketOptionsRequestTypeDef
  14. See CreditSpecificationRequestTypeDef
  15. See CpuOptionsRequestTypeDef
  16. See CapacityReservationSpecificationTypeDef
  17. See HibernationOptionsRequestTypeDef
  18. See LicenseConfigurationRequestTypeDef
  19. See InstanceMetadataOptionsRequestTypeDef
  20. See EnclaveOptionsRequestTypeDef
  21. See PrivateDnsNameOptionsRequestTypeDef
  22. See InstanceMaintenanceOptionsRequestTypeDef
  23. See ReservationResponseTypeDef
# run_instances method usage example with argument unpacking

kwargs: RunInstancesRequestRequestTypeDef = {  # (1)
    "MaxCount": ...,
    "MinCount": ...,
}

parent.run_instances(**kwargs)
  1. See RunInstancesRequestRequestTypeDef

run_scheduled_instances#

Launches the specified Scheduled Instances.

Type annotations and code completion for boto3.client("ec2").run_scheduled_instances method. boto3 documentation

# run_scheduled_instances method definition

def run_scheduled_instances(
    self,
    *,
    LaunchSpecification: ScheduledInstancesLaunchSpecificationTypeDef,  # (1)
    ScheduledInstanceId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
    InstanceCount: int = ...,
) -> RunScheduledInstancesResultTypeDef:  # (2)
    ...
  1. See ScheduledInstancesLaunchSpecificationTypeDef
  2. See RunScheduledInstancesResultTypeDef
# run_scheduled_instances method usage example with argument unpacking

kwargs: RunScheduledInstancesRequestRequestTypeDef = {  # (1)
    "LaunchSpecification": ...,
    "ScheduledInstanceId": ...,
}

parent.run_scheduled_instances(**kwargs)
  1. See RunScheduledInstancesRequestRequestTypeDef

search_local_gateway_routes#

Searches for routes in the specified local gateway route table.

Type annotations and code completion for boto3.client("ec2").search_local_gateway_routes method. boto3 documentation

# search_local_gateway_routes method definition

def search_local_gateway_routes(
    self,
    *,
    LocalGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> SearchLocalGatewayRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See SearchLocalGatewayRoutesResultTypeDef
# search_local_gateway_routes method usage example with argument unpacking

kwargs: SearchLocalGatewayRoutesRequestRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.search_local_gateway_routes(**kwargs)
  1. See SearchLocalGatewayRoutesRequestRequestTypeDef

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 boto3.client("ec2").search_transit_gateway_multicast_groups method. boto3 documentation

# search_transit_gateway_multicast_groups method definition

def search_transit_gateway_multicast_groups(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> SearchTransitGatewayMulticastGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See SearchTransitGatewayMulticastGroupsResultTypeDef
# search_transit_gateway_multicast_groups method usage example with argument unpacking

kwargs: SearchTransitGatewayMulticastGroupsRequestRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.search_transit_gateway_multicast_groups(**kwargs)
  1. See SearchTransitGatewayMulticastGroupsRequestRequestTypeDef

search_transit_gateway_routes#

Searches for routes in the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").search_transit_gateway_routes method. boto3 documentation

# search_transit_gateway_routes method definition

def search_transit_gateway_routes(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef],  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> SearchTransitGatewayRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See SearchTransitGatewayRoutesResultTypeDef
# search_transit_gateway_routes method usage example with argument unpacking

kwargs: SearchTransitGatewayRoutesRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "Filters": ...,
}

parent.search_transit_gateway_routes(**kwargs)
  1. See SearchTransitGatewayRoutesRequestRequestTypeDef

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 boto3.client("ec2").send_diagnostic_interrupt method. boto3 documentation

# send_diagnostic_interrupt method definition

def send_diagnostic_interrupt(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# send_diagnostic_interrupt method usage example with argument unpacking

kwargs: SendDiagnosticInterruptRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.send_diagnostic_interrupt(**kwargs)
  1. See SendDiagnosticInterruptRequestRequestTypeDef

start_instances#

Starts an Amazon EBS-backed instance that you've previously stopped.

Type annotations and code completion for boto3.client("ec2").start_instances method. boto3 documentation

# start_instances method definition

def start_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    AdditionalInfo: str = ...,
    DryRun: bool = ...,
) -> StartInstancesResultTypeDef:  # (1)
    ...
  1. See StartInstancesResultTypeDef
# start_instances method usage example with argument unpacking

kwargs: StartInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.start_instances(**kwargs)
  1. See StartInstancesRequestRequestTypeDef

start_network_insights_access_scope_analysis#

Starts analyzing the specified Network Access Scope.

Type annotations and code completion for boto3.client("ec2").start_network_insights_access_scope_analysis method. boto3 documentation

# start_network_insights_access_scope_analysis method definition

def start_network_insights_access_scope_analysis(
    self,
    *,
    NetworkInsightsAccessScopeId: str,
    ClientToken: str,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> StartNetworkInsightsAccessScopeAnalysisResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See StartNetworkInsightsAccessScopeAnalysisResultTypeDef
# 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)
  1. See StartNetworkInsightsAccessScopeAnalysisRequestRequestTypeDef

start_network_insights_analysis#

Starts analyzing the specified path.

Type annotations and code completion for boto3.client("ec2").start_network_insights_analysis method. boto3 documentation

# start_network_insights_analysis method definition

def start_network_insights_analysis(
    self,
    *,
    NetworkInsightsPathId: str,
    ClientToken: str,
    AdditionalAccounts: Sequence[str] = ...,
    FilterInArns: Sequence[str] = ...,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> StartNetworkInsightsAnalysisResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See StartNetworkInsightsAnalysisResultTypeDef
# start_network_insights_analysis method usage example with argument unpacking

kwargs: StartNetworkInsightsAnalysisRequestRequestTypeDef = {  # (1)
    "NetworkInsightsPathId": ...,
    "ClientToken": ...,
}

parent.start_network_insights_analysis(**kwargs)
  1. See StartNetworkInsightsAnalysisRequestRequestTypeDef

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 boto3.client("ec2").start_vpc_endpoint_service_private_dns_verification method. boto3 documentation

# start_vpc_endpoint_service_private_dns_verification method definition

def start_vpc_endpoint_service_private_dns_verification(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
) -> StartVpcEndpointServicePrivateDnsVerificationResultTypeDef:  # (1)
    ...
  1. See StartVpcEndpointServicePrivateDnsVerificationResultTypeDef
# 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)
  1. See StartVpcEndpointServicePrivateDnsVerificationRequestRequestTypeDef

stop_instances#

Stops an Amazon EBS-backed instance.

Type annotations and code completion for boto3.client("ec2").stop_instances method. boto3 documentation

# stop_instances method definition

def stop_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    Hibernate: bool = ...,
    DryRun: bool = ...,
    Force: bool = ...,
) -> StopInstancesResultTypeDef:  # (1)
    ...
  1. See StopInstancesResultTypeDef
# stop_instances method usage example with argument unpacking

kwargs: StopInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.stop_instances(**kwargs)
  1. See StopInstancesRequestRequestTypeDef

terminate_client_vpn_connections#

Terminates active Client VPN endpoint connections.

Type annotations and code completion for boto3.client("ec2").terminate_client_vpn_connections method. boto3 documentation

# terminate_client_vpn_connections method definition

def terminate_client_vpn_connections(
    self,
    *,
    ClientVpnEndpointId: str,
    ConnectionId: str = ...,
    Username: str = ...,
    DryRun: bool = ...,
) -> TerminateClientVpnConnectionsResultTypeDef:  # (1)
    ...
  1. See TerminateClientVpnConnectionsResultTypeDef
# terminate_client_vpn_connections method usage example with argument unpacking

kwargs: TerminateClientVpnConnectionsRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.terminate_client_vpn_connections(**kwargs)
  1. See TerminateClientVpnConnectionsRequestRequestTypeDef

terminate_instances#

Shuts down the specified instances.

Type annotations and code completion for boto3.client("ec2").terminate_instances method. boto3 documentation

# terminate_instances method definition

def terminate_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> TerminateInstancesResultTypeDef:  # (1)
    ...
  1. See TerminateInstancesResultTypeDef
# terminate_instances method usage example with argument unpacking

kwargs: TerminateInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.terminate_instances(**kwargs)
  1. See TerminateInstancesRequestRequestTypeDef

unassign_ipv6_addresses#

Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.

Type annotations and code completion for boto3.client("ec2").unassign_ipv6_addresses method. boto3 documentation

# unassign_ipv6_addresses method definition

def unassign_ipv6_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    Ipv6Addresses: Sequence[str] = ...,
    Ipv6Prefixes: Sequence[str] = ...,
) -> UnassignIpv6AddressesResultTypeDef:  # (1)
    ...
  1. See UnassignIpv6AddressesResultTypeDef
# unassign_ipv6_addresses method usage example with argument unpacking

kwargs: UnassignIpv6AddressesRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.unassign_ipv6_addresses(**kwargs)
  1. See UnassignIpv6AddressesRequestRequestTypeDef

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 boto3.client("ec2").unassign_private_ip_addresses method. boto3 documentation

# unassign_private_ip_addresses method definition

def unassign_private_ip_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    PrivateIpAddresses: Sequence[str] = ...,
    Ipv4Prefixes: Sequence[str] = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# unassign_private_ip_addresses method usage example with argument unpacking

kwargs: UnassignPrivateIpAddressesRequestRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.unassign_private_ip_addresses(**kwargs)
  1. See UnassignPrivateIpAddressesRequestRequestTypeDef

unassign_private_nat_gateway_address#

Unassigns secondary private IPv4 addresses from a private NAT gateway.

Type annotations and code completion for boto3.client("ec2").unassign_private_nat_gateway_address method. boto3 documentation

# unassign_private_nat_gateway_address method definition

def unassign_private_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    PrivateIpAddresses: Sequence[str],
    MaxDrainDurationSeconds: int = ...,
    DryRun: bool = ...,
) -> UnassignPrivateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See UnassignPrivateNatGatewayAddressResultTypeDef
# unassign_private_nat_gateway_address method usage example with argument unpacking

kwargs: UnassignPrivateNatGatewayAddressRequestRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
    "PrivateIpAddresses": ...,
}

parent.unassign_private_nat_gateway_address(**kwargs)
  1. See UnassignPrivateNatGatewayAddressRequestRequestTypeDef

unlock_snapshot#

Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period.

Type annotations and code completion for boto3.client("ec2").unlock_snapshot method. boto3 documentation

# unlock_snapshot method definition

def unlock_snapshot(
    self,
    *,
    SnapshotId: str,
    DryRun: bool = ...,
) -> UnlockSnapshotResultTypeDef:  # (1)
    ...
  1. See UnlockSnapshotResultTypeDef
# unlock_snapshot method usage example with argument unpacking

kwargs: UnlockSnapshotRequestRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.unlock_snapshot(**kwargs)
  1. See UnlockSnapshotRequestRequestTypeDef

unmonitor_instances#

Disables detailed monitoring for a running instance.

Type annotations and code completion for boto3.client("ec2").unmonitor_instances method. boto3 documentation

# unmonitor_instances method definition

def unmonitor_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> UnmonitorInstancesResultTypeDef:  # (1)
    ...
  1. See UnmonitorInstancesResultTypeDef
# unmonitor_instances method usage example with argument unpacking

kwargs: UnmonitorInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.unmonitor_instances(**kwargs)
  1. See UnmonitorInstancesRequestRequestTypeDef

update_security_group_rule_descriptions_egress#

Updates the description of an egress (outbound) security group rule.

Type annotations and code completion for boto3.client("ec2").update_security_group_rule_descriptions_egress method. boto3 documentation

# update_security_group_rule_descriptions_egress method definition

def update_security_group_rule_descriptions_egress(
    self,
    *,
    DryRun: bool = ...,
    GroupId: str = ...,
    GroupName: str = ...,
    IpPermissions: Sequence[IpPermissionTypeDef] = ...,  # (1)
    SecurityGroupRuleDescriptions: Sequence[SecurityGroupRuleDescriptionTypeDef] = ...,  # (2)
) -> UpdateSecurityGroupRuleDescriptionsEgressResultTypeDef:  # (3)
    ...
  1. See IpPermissionTypeDef
  2. See SecurityGroupRuleDescriptionTypeDef
  3. 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)
  1. See UpdateSecurityGroupRuleDescriptionsEgressRequestRequestTypeDef

update_security_group_rule_descriptions_ingress#

Updates the description of an ingress (inbound) security group rule.

Type annotations and code completion for boto3.client("ec2").update_security_group_rule_descriptions_ingress method. boto3 documentation

# update_security_group_rule_descriptions_ingress method definition

def update_security_group_rule_descriptions_ingress(
    self,
    *,
    DryRun: bool = ...,
    GroupId: str = ...,
    GroupName: str = ...,
    IpPermissions: Sequence[IpPermissionTypeDef] = ...,  # (1)
    SecurityGroupRuleDescriptions: Sequence[SecurityGroupRuleDescriptionTypeDef] = ...,  # (2)
) -> UpdateSecurityGroupRuleDescriptionsIngressResultTypeDef:  # (3)
    ...
  1. See IpPermissionTypeDef
  2. See SecurityGroupRuleDescriptionTypeDef
  3. 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)
  1. See UpdateSecurityGroupRuleDescriptionsIngressRequestRequestTypeDef

withdraw_byoip_cidr#

Stops advertising an address range that is provisioned as an address pool.

Type annotations and code completion for boto3.client("ec2").withdraw_byoip_cidr method. boto3 documentation

# withdraw_byoip_cidr method definition

def withdraw_byoip_cidr(
    self,
    *,
    Cidr: str,
    DryRun: bool = ...,
) -> WithdrawByoipCidrResultTypeDef:  # (1)
    ...
  1. See WithdrawByoipCidrResultTypeDef
# withdraw_byoip_cidr method usage example with argument unpacking

kwargs: WithdrawByoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.withdraw_byoip_cidr(**kwargs)
  1. See WithdrawByoipCidrRequestRequestTypeDef

get_paginator#

Type annotations and code completion for boto3.client("ec2").get_paginator method with overloads.

get_waiter#

Type annotations and code completion for boto3.client("ec2").get_waiter method with overloads.