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

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.

Usage example
client = boto3.client("ec2")

try:
    do_something(client)
except (
    client.ClientError,
) as e:
    print(e)
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

Method definition
def accept_address_transfer(
    self,
    *,
    Address: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> AcceptAddressTransferResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See AcceptAddressTransferResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def accept_transit_gateway_multicast_domain_associations(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    TransitGatewayAttachmentId: str = ...,
    SubnetIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> AcceptTransitGatewayMulticastDomainAssociationsResultTypeDef:  # (1)
    ...
  1. See AcceptTransitGatewayMulticastDomainAssociationsResultTypeDef
Usage example with kwargs
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

Method definition
def accept_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AcceptTransitGatewayPeeringAttachmentResultTypeDef:  # (1)
    ...
  1. See AcceptTransitGatewayPeeringAttachmentResultTypeDef
Usage example with kwargs
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

Method definition
def accept_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AcceptTransitGatewayVpcAttachmentResultTypeDef:  # (1)
    ...
  1. See AcceptTransitGatewayVpcAttachmentResultTypeDef
Usage example with kwargs
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

Method definition
def accept_vpc_endpoint_connections(
    self,
    *,
    ServiceId: str,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> AcceptVpcEndpointConnectionsResultTypeDef:  # (1)
    ...
  1. See AcceptVpcEndpointConnectionsResultTypeDef
Usage example with kwargs
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

Method definition
def accept_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> AcceptVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See AcceptVpcPeeringConnectionResultTypeDef
Usage example with kwargs
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

Method definition
def advertise_byoip_cidr(
    self,
    *,
    Cidr: str,
    DryRun: bool = ...,
) -> AdvertiseByoipCidrResultTypeDef:  # (1)
    ...
  1. See AdvertiseByoipCidrResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def allocate_hosts(
    self,
    *,
    AvailabilityZone: str,
    Quantity: int,
    AutoPlacement: AutoPlacementType = ...,  # (1)
    ClientToken: str = ...,
    InstanceType: str = ...,
    InstanceFamily: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    HostRecovery: HostRecoveryType = ...,  # (3)
    OutpostArn: str = ...,
    HostMaintenance: HostMaintenanceType = ...,  # (4)
) -> AllocateHostsResultTypeDef:  # (5)
    ...
  1. See AutoPlacementType
  2. See TagSpecificationTypeDef
  3. See HostRecoveryType
  4. See HostMaintenanceType
  5. See AllocateHostsResultTypeDef
Usage example with kwargs
kwargs: AllocateHostsRequestRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
    "Quantity": ...,
}

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

Method definition
def allocate_ipam_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cidr: str = ...,
    NetmaskLength: int = ...,
    ClientToken: str = ...,
    Description: str = ...,
    PreviewNextCidr: bool = ...,
    DisallowedCidrs: Sequence[str] = ...,
) -> AllocateIpamPoolCidrResultTypeDef:  # (1)
    ...
  1. See AllocateIpamPoolCidrResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def assign_ipv6_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    Ipv6AddressCount: int = ...,
    Ipv6Addresses: Sequence[str] = ...,
    Ipv6PrefixCount: int = ...,
    Ipv6Prefixes: Sequence[str] = ...,
) -> AssignIpv6AddressesResultTypeDef:  # (1)
    ...
  1. See AssignIpv6AddressesResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def assign_private_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    PrivateIpAddresses: Sequence[str] = ...,
    PrivateIpAddressCount: int = ...,
    DryRun: bool = ...,
) -> AssignPrivateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See AssignPrivateNatGatewayAddressResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def associate_client_vpn_target_network(
    self,
    *,
    ClientVpnEndpointId: str,
    SubnetId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> AssociateClientVpnTargetNetworkResultTypeDef:  # (1)
    ...
  1. See AssociateClientVpnTargetNetworkResultTypeDef
Usage example with kwargs
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

Method definition
def associate_dhcp_options(
    self,
    *,
    DhcpOptionsId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def associate_enclave_certificate_iam_role(
    self,
    *,
    CertificateArn: str,
    RoleArn: str,
    DryRun: bool = ...,
) -> AssociateEnclaveCertificateIamRoleResultTypeDef:  # (1)
    ...
  1. See AssociateEnclaveCertificateIamRoleResultTypeDef
Usage example with kwargs
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

Method definition
def associate_iam_instance_profile(
    self,
    *,
    IamInstanceProfile: IamInstanceProfileSpecificationTypeDef,  # (1)
    InstanceId: str,
) -> AssociateIamInstanceProfileResultTypeDef:  # (2)
    ...
  1. See IamInstanceProfileSpecificationTypeDef
  2. See AssociateIamInstanceProfileResultTypeDef
Usage example with kwargs
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

Method definition
def associate_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    AssociationTarget: InstanceEventWindowAssociationRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> AssociateInstanceEventWindowResultTypeDef:  # (2)
    ...
  1. See InstanceEventWindowAssociationRequestTypeDef
  2. See AssociateInstanceEventWindowResultTypeDef
Usage example with kwargs
kwargs: AssociateInstanceEventWindowRequestRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
    "AssociationTarget": ...,
}

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

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

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
Usage example with kwargs
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

Method definition
def associate_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    AllocationIds: Sequence[str],
    PrivateIpAddresses: Sequence[str] = ...,
    DryRun: bool = ...,
) -> AssociateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See AssociateNatGatewayAddressResultTypeDef
Usage example with kwargs
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

Method definition
def associate_route_table(
    self,
    *,
    RouteTableId: str,
    DryRun: bool = ...,
    SubnetId: str = ...,
    GatewayId: str = ...,
) -> AssociateRouteTableResultTypeDef:  # (1)
    ...
  1. See AssociateRouteTableResultTypeDef
Usage example with kwargs
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

Method definition
def associate_subnet_cidr_block(
    self,
    *,
    Ipv6CidrBlock: str,
    SubnetId: str,
) -> AssociateSubnetCidrBlockResultTypeDef:  # (1)
    ...
  1. See AssociateSubnetCidrBlockResultTypeDef
Usage example with kwargs
kwargs: AssociateSubnetCidrBlockRequestRequestTypeDef = {  # (1)
    "Ipv6CidrBlock": ...,
    "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

Method definition
def associate_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    TransitGatewayAttachmentId: str,
    SubnetIds: Sequence[str],
    DryRun: bool = ...,
) -> AssociateTransitGatewayMulticastDomainResultTypeDef:  # (1)
    ...
  1. See AssociateTransitGatewayMulticastDomainResultTypeDef
Usage example with kwargs
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

Method definition
def associate_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AssociateTransitGatewayPolicyTableResultTypeDef:  # (1)
    ...
  1. See AssociateTransitGatewayPolicyTableResultTypeDef
Usage example with kwargs
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

Method definition
def associate_transit_gateway_route_table(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> AssociateTransitGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See AssociateTransitGatewayRouteTableResultTypeDef
Usage example with kwargs
kwargs: AssociateTransitGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

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

associate_trunk_interface

.

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

Method definition
def associate_trunk_interface(
    self,
    *,
    BranchInterfaceId: str,
    TrunkInterfaceId: str,
    VlanId: int = ...,
    GreKey: int = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> AssociateTrunkInterfaceResultTypeDef:  # (1)
    ...
  1. See AssociateTrunkInterfaceResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def attach_classic_link_vpc(
    self,
    *,
    Groups: Sequence[str],
    InstanceId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> AttachClassicLinkVpcResultTypeDef:  # (1)
    ...
  1. See AttachClassicLinkVpcResultTypeDef
Usage example with kwargs
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

Method definition
def attach_internet_gateway(
    self,
    *,
    InternetGatewayId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: AttachNetworkInterfaceRequestRequestTypeDef = {  # (1)
    "DeviceIndex": ...,
    "InstanceId": ...,
    "NetworkInterfaceId": ...,
}

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

attach_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").attach_verified_access_trust_provider method. boto3 documentation

Method definition
def attach_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessInstanceId: str,
    VerifiedAccessTrustProviderId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> AttachVerifiedAccessTrustProviderResultTypeDef:  # (1)
    ...
  1. See AttachVerifiedAccessTrustProviderResultTypeDef
Usage example with kwargs
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

Method definition
def attach_volume(
    self,
    *,
    Device: str,
    InstanceId: str,
    VolumeId: str,
    DryRun: bool = ...,
) -> VolumeAttachmentResponseMetadataTypeDef:  # (1)
    ...
  1. See VolumeAttachmentResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def attach_vpn_gateway(
    self,
    *,
    VpcId: str,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> AttachVpnGatewayResultTypeDef:  # (1)
    ...
  1. See AttachVpnGatewayResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: AuthorizeClientVpnIngressRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "TargetNetworkCidr": ...,
}

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

authorize_security_group_egress

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def bundle_instance(
    self,
    *,
    InstanceId: str,
    Storage: StorageTypeDef,  # (1)
    DryRun: bool = ...,
) -> BundleInstanceResultTypeDef:  # (2)
    ...
  1. See StorageTypeDef
  2. See BundleInstanceResultTypeDef
Usage example with kwargs
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

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

Method definition
def cancel_bundle_task(
    self,
    *,
    BundleId: str,
    DryRun: bool = ...,
) -> CancelBundleTaskResultTypeDef:  # (1)
    ...
  1. See CancelBundleTaskResultTypeDef
Usage example with kwargs
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

Method definition
def cancel_capacity_reservation(
    self,
    *,
    CapacityReservationId: str,
    DryRun: bool = ...,
) -> CancelCapacityReservationResultTypeDef:  # (1)
    ...
  1. See CancelCapacityReservationResultTypeDef
Usage example with kwargs
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

Method definition
def cancel_capacity_reservation_fleets(
    self,
    *,
    CapacityReservationFleetIds: Sequence[str],
    DryRun: bool = ...,
) -> CancelCapacityReservationFleetsResultTypeDef:  # (1)
    ...
  1. See CancelCapacityReservationFleetsResultTypeDef
Usage example with kwargs
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

Method definition
def cancel_conversion_task(
    self,
    *,
    ConversionTaskId: str,
    DryRun: bool = ...,
    ReasonMessage: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def cancel_export_task(
    self,
    *,
    ExportTaskId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def cancel_image_launch_permission(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> CancelImageLaunchPermissionResultTypeDef:  # (1)
    ...
  1. See CancelImageLaunchPermissionResultTypeDef
Usage example with kwargs
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

Method definition
def cancel_import_task(
    self,
    *,
    CancelReason: str = ...,
    DryRun: bool = ...,
    ImportTaskId: str = ...,
) -> CancelImportTaskResultTypeDef:  # (1)
    ...
  1. See CancelImportTaskResultTypeDef
Usage example with kwargs
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

Method definition
def cancel_reserved_instances_listing(
    self,
    *,
    ReservedInstancesListingId: str,
) -> CancelReservedInstancesListingResultTypeDef:  # (1)
    ...
  1. See CancelReservedInstancesListingResultTypeDef
Usage example with kwargs
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

Method definition
def cancel_spot_fleet_requests(
    self,
    *,
    SpotFleetRequestIds: Sequence[str],
    TerminateInstances: bool,
    DryRun: bool = ...,
) -> CancelSpotFleetRequestsResponseTypeDef:  # (1)
    ...
  1. See CancelSpotFleetRequestsResponseTypeDef
Usage example with kwargs
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

Method definition
def cancel_spot_instance_requests(
    self,
    *,
    SpotInstanceRequestIds: Sequence[str],
    DryRun: bool = ...,
) -> CancelSpotInstanceRequestsResultTypeDef:  # (1)
    ...
  1. See CancelSpotInstanceRequestsResultTypeDef
Usage example with kwargs
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

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

Method definition
def confirm_product_instance(
    self,
    *,
    InstanceId: str,
    ProductCode: str,
    DryRun: bool = ...,
) -> ConfirmProductInstanceResultTypeDef:  # (1)
    ...
  1. See ConfirmProductInstanceResultTypeDef
Usage example with kwargs
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

Method definition
def copy_fpga_image(
    self,
    *,
    SourceFpgaImageId: str,
    SourceRegion: str,
    DryRun: bool = ...,
    Description: str = ...,
    Name: str = ...,
    ClientToken: str = ...,
) -> CopyFpgaImageResultTypeDef:  # (1)
    ...
  1. See CopyFpgaImageResultTypeDef
Usage example with kwargs
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

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 = ...,
) -> CopyImageResultTypeDef:  # (1)
    ...
  1. See CopyImageResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_coip_cidr(
    self,
    *,
    Cidr: str,
    CoipPoolId: str,
    DryRun: bool = ...,
) -> CreateCoipCidrResultTypeDef:  # (1)
    ...
  1. See CreateCoipCidrResultTypeDef
Usage example with kwargs
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

Method definition
def create_coip_pool(
    self,
    *,
    LocalGatewayRouteTableId: str,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateCoipPoolResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateCoipPoolResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_default_subnet(
    self,
    *,
    AvailabilityZone: str,
    DryRun: bool = ...,
    Ipv6Native: bool = ...,
) -> CreateDefaultSubnetResultTypeDef:  # (1)
    ...
  1. See CreateDefaultSubnetResultTypeDef
Usage example with kwargs
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

Method definition
def create_default_vpc(
    self,
    *,
    DryRun: bool = ...,
) -> CreateDefaultVpcResultTypeDef:  # (1)
    ...
  1. See CreateDefaultVpcResultTypeDef
Usage example with kwargs
kwargs: CreateDefaultVpcRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

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

create_dhcp_options

Creates a set of DHCP options for your VPC.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: CreateEgressOnlyInternetGatewayRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

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

create_fleet

Launches an EC2 Fleet.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: CreateImageRequestRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "Name": ...,
}

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

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_internet_gateway(
    self,
    *,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateInternetGatewayResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateInternetGatewayResultTypeDef
Usage example with kwargs
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

Method definition
def create_ipam(
    self,
    *,
    DryRun: bool = ...,
    Description: str = ...,
    OperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    ClientToken: str = ...,
) -> CreateIpamResultTypeDef:  # (3)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See TagSpecificationTypeDef
  3. See CreateIpamResultTypeDef
Usage example with kwargs
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

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)
) -> CreateIpamPoolResultTypeDef:  # (6)
    ...
  1. See AddressFamilyType
  2. See RequestIpamResourceTagTypeDef
  3. See TagSpecificationTypeDef
  4. See IpamPoolAwsServiceType
  5. See IpamPoolPublicIpSourceType
  6. See CreateIpamPoolResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_network_acl(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CreateNetworkAclResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateNetworkAclResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_network_insights_path(
    self,
    *,
    Source: str,
    Destination: str,
    Protocol: ProtocolType,  # (1)
    ClientToken: str,
    SourceIp: str = ...,
    DestinationIp: str = ...,
    DestinationPort: int = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateNetworkInsightsPathResultTypeDef:  # (3)
    ...
  1. See ProtocolType
  2. See TagSpecificationTypeDef
  3. See CreateNetworkInsightsPathResultTypeDef
Usage example with kwargs
kwargs: CreateNetworkInsightsPathRequestRequestTypeDef = {  # (1)
    "Source": ...,
    "Destination": ...,
    "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

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 = ...,
) -> CreateNetworkInterfaceResultTypeDef:  # (7)
    ...
  1. See InstanceIpv6AddressTypeDef
  2. See PrivateIpAddressSpecificationTypeDef
  3. See Ipv4PrefixSpecificationRequestTypeDef
  4. See Ipv6PrefixSpecificationRequestTypeDef
  5. See NetworkInterfaceCreationTypeType
  6. See TagSpecificationTypeDef
  7. See CreateNetworkInterfaceResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_public_ipv4_pool(
    self,
    *,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CreatePublicIpv4PoolResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreatePublicIpv4PoolResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_route_table(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
) -> CreateRouteTableResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateRouteTableResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_snapshot(
    self,
    *,
    VolumeId: str,
    Description: str = ...,
    OutpostArn: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> SnapshotResponseMetadataTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See SnapshotResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_spot_datafeed_subscription(
    self,
    *,
    Bucket: str,
    DryRun: bool = ...,
    Prefix: str = ...,
) -> CreateSpotDatafeedSubscriptionResultTypeDef:  # (1)
    ...
  1. See CreateSpotDatafeedSubscriptionResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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 = ...,
) -> CreateSubnetResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateSubnetResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_tags(
    self,
    *,
    Resources: Sequence[Any],
    Tags: Optional[Sequence[TagTypeDef]],  # (1)
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: CreateTagsRequestRequestTypeDef = {  # (1)
    "Resources": ...,
    "Tags": ...,
}

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

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_transit_gateway_route(
    self,
    *,
    DestinationCidrBlock: str,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> CreateTransitGatewayRouteResultTypeDef:  # (1)
    ...
  1. See CreateTransitGatewayRouteResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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

Method definition
def create_verified_access_group(
    self,
    *,
    VerifiedAccessInstanceId: str,
    Description: str = ...,
    PolicyDocument: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> CreateVerifiedAccessGroupResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateVerifiedAccessGroupResultTypeDef
Usage example with kwargs
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

Method definition
def create_verified_access_instance(
    self,
    *,
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (1)
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> CreateVerifiedAccessInstanceResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef
  2. See CreateVerifiedAccessInstanceResultTypeDef
Usage example with kwargs
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

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 = ...,
) -> CreateVerifiedAccessTrustProviderResultTypeDef:  # (7)
    ...
  1. See TrustProviderTypeType
  2. See UserTrustProviderTypeType
  3. See DeviceTrustProviderTypeType
  4. See CreateVerifiedAccessTrustProviderOidcOptionsTypeDef
  5. See CreateVerifiedAccessTrustProviderDeviceOptionsTypeDef
  6. See TagSpecificationTypeDef
  7. See CreateVerifiedAccessTrustProviderResultTypeDef
Usage example with kwargs
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

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 = ...,
) -> VolumeResponseMetadataTypeDef:  # (3)
    ...
  1. See VolumeTypeType
  2. See TagSpecificationTypeDef
  3. See VolumeResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: CreateVpcRequestRequestTypeDef = {  # (1)
    "CidrBlock": ...,
}

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

create_vpc_endpoint

Creates a VPC endpoint for a specified service.

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

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)
) -> CreateVpcEndpointResultTypeDef:  # (5)
    ...
  1. See VpcEndpointTypeType
  2. See IpAddressTypeType
  3. See DnsOptionsSpecificationTypeDef
  4. See TagSpecificationTypeDef
  5. See CreateVpcEndpointResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def create_vpn_connection_route(
    self,
    *,
    DestinationCidrBlock: str,
    VpnConnectionId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def delete_carrier_gateway(
    self,
    *,
    CarrierGatewayId: str,
    DryRun: bool = ...,
) -> DeleteCarrierGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteCarrierGatewayResultTypeDef
Usage example with kwargs
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

Method definition
def delete_client_vpn_endpoint(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> DeleteClientVpnEndpointResultTypeDef:  # (1)
    ...
  1. See DeleteClientVpnEndpointResultTypeDef
Usage example with kwargs
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

Method definition
def delete_client_vpn_route(
    self,
    *,
    ClientVpnEndpointId: str,
    DestinationCidrBlock: str,
    TargetVpcSubnetId: str = ...,
    DryRun: bool = ...,
) -> DeleteClientVpnRouteResultTypeDef:  # (1)
    ...
  1. See DeleteClientVpnRouteResultTypeDef
Usage example with kwargs
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

Method definition
def delete_coip_cidr(
    self,
    *,
    Cidr: str,
    CoipPoolId: str,
    DryRun: bool = ...,
) -> DeleteCoipCidrResultTypeDef:  # (1)
    ...
  1. See DeleteCoipCidrResultTypeDef
Usage example with kwargs
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

Method definition
def delete_coip_pool(
    self,
    *,
    CoipPoolId: str,
    DryRun: bool = ...,
) -> DeleteCoipPoolResultTypeDef:  # (1)
    ...
  1. See DeleteCoipPoolResultTypeDef
Usage example with kwargs
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

Method definition
def delete_customer_gateway(
    self,
    *,
    CustomerGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_dhcp_options(
    self,
    *,
    DhcpOptionsId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_egress_only_internet_gateway(
    self,
    *,
    EgressOnlyInternetGatewayId: str,
    DryRun: bool = ...,
) -> DeleteEgressOnlyInternetGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteEgressOnlyInternetGatewayResultTypeDef
Usage example with kwargs
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

Method definition
def delete_fleets(
    self,
    *,
    FleetIds: Sequence[str],
    TerminateInstances: bool,
    DryRun: bool = ...,
) -> DeleteFleetsResultTypeDef:  # (1)
    ...
  1. See DeleteFleetsResultTypeDef
Usage example with kwargs
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

Method definition
def delete_flow_logs(
    self,
    *,
    FlowLogIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteFlowLogsResultTypeDef:  # (1)
    ...
  1. See DeleteFlowLogsResultTypeDef
Usage example with kwargs
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

Method definition
def delete_fpga_image(
    self,
    *,
    FpgaImageId: str,
    DryRun: bool = ...,
) -> DeleteFpgaImageResultTypeDef:  # (1)
    ...
  1. See DeleteFpgaImageResultTypeDef
Usage example with kwargs
kwargs: DeleteFpgaImageRequestRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
}

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

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

Method definition
def delete_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    DryRun: bool = ...,
    ForceDelete: bool = ...,
) -> DeleteInstanceEventWindowResultTypeDef:  # (1)
    ...
  1. See DeleteInstanceEventWindowResultTypeDef
Usage example with kwargs
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

Method definition
def delete_internet_gateway(
    self,
    *,
    InternetGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_ipam(
    self,
    *,
    IpamId: str,
    DryRun: bool = ...,
    Cascade: bool = ...,
) -> DeleteIpamResultTypeDef:  # (1)
    ...
  1. See DeleteIpamResultTypeDef
Usage example with kwargs
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

Method definition
def delete_ipam_pool(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
) -> DeleteIpamPoolResultTypeDef:  # (1)
    ...
  1. See DeleteIpamPoolResultTypeDef
Usage example with kwargs
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

Method definition
def delete_ipam_resource_discovery(
    self,
    *,
    IpamResourceDiscoveryId: str,
    DryRun: bool = ...,
) -> DeleteIpamResourceDiscoveryResultTypeDef:  # (1)
    ...
  1. See DeleteIpamResourceDiscoveryResultTypeDef
Usage example with kwargs
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

Method definition
def delete_ipam_scope(
    self,
    *,
    IpamScopeId: str,
    DryRun: bool = ...,
) -> DeleteIpamScopeResultTypeDef:  # (1)
    ...
  1. See DeleteIpamScopeResultTypeDef
Usage example with kwargs
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

Method definition
def delete_key_pair(
    self,
    *,
    KeyName: str = ...,
    KeyPairId: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_launch_template(
    self,
    *,
    DryRun: bool = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
) -> DeleteLaunchTemplateResultTypeDef:  # (1)
    ...
  1. See DeleteLaunchTemplateResultTypeDef
Usage example with kwargs
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

Method definition
def delete_launch_template_versions(
    self,
    *,
    Versions: Sequence[str],
    DryRun: bool = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
) -> DeleteLaunchTemplateVersionsResultTypeDef:  # (1)
    ...
  1. See DeleteLaunchTemplateVersionsResultTypeDef
Usage example with kwargs
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

Method definition
def delete_local_gateway_route(
    self,
    *,
    LocalGatewayRouteTableId: str,
    DestinationCidrBlock: str = ...,
    DryRun: bool = ...,
    DestinationPrefixListId: str = ...,
) -> DeleteLocalGatewayRouteResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteResultTypeDef
Usage example with kwargs
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

Method definition
def delete_local_gateway_route_table(
    self,
    *,
    LocalGatewayRouteTableId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableResultTypeDef
Usage example with kwargs
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

Method definition
def delete_local_gateway_route_table_virtual_interface_group_association(
    self,
    *,
    LocalGatewayRouteTableVirtualInterfaceGroupAssociationId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef
Usage example with kwargs
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

Method definition
def delete_local_gateway_route_table_vpc_association(
    self,
    *,
    LocalGatewayRouteTableVpcAssociationId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVpcAssociationResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableVpcAssociationResultTypeDef
Usage example with kwargs
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

Method definition
def delete_managed_prefix_list(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
) -> DeleteManagedPrefixListResultTypeDef:  # (1)
    ...
  1. See DeleteManagedPrefixListResultTypeDef
Usage example with kwargs
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

Method definition
def delete_nat_gateway(
    self,
    *,
    NatGatewayId: str,
    DryRun: bool = ...,
) -> DeleteNatGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteNatGatewayResultTypeDef
Usage example with kwargs
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

Method definition
def delete_network_acl(
    self,
    *,
    NetworkAclId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_network_acl_entry(
    self,
    *,
    Egress: bool,
    NetworkAclId: str,
    RuleNumber: int,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_network_insights_access_scope(
    self,
    *,
    NetworkInsightsAccessScopeId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsAccessScopeResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsAccessScopeResultTypeDef
Usage example with kwargs
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

Method definition
def delete_network_insights_access_scope_analysis(
    self,
    *,
    NetworkInsightsAccessScopeAnalysisId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsAccessScopeAnalysisResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsAccessScopeAnalysisResultTypeDef
Usage example with kwargs
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

Method definition
def delete_network_insights_analysis(
    self,
    *,
    NetworkInsightsAnalysisId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsAnalysisResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsAnalysisResultTypeDef
Usage example with kwargs
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

Method definition
def delete_network_insights_path(
    self,
    *,
    NetworkInsightsPathId: str,
    DryRun: bool = ...,
) -> DeleteNetworkInsightsPathResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInsightsPathResultTypeDef
Usage example with kwargs
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

Method definition
def delete_network_interface(
    self,
    *,
    NetworkInterfaceId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_network_interface_permission(
    self,
    *,
    NetworkInterfacePermissionId: str,
    Force: bool = ...,
    DryRun: bool = ...,
) -> DeleteNetworkInterfacePermissionResultTypeDef:  # (1)
    ...
  1. See DeleteNetworkInterfacePermissionResultTypeDef
Usage example with kwargs
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

Method definition
def delete_placement_group(
    self,
    *,
    GroupName: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_public_ipv4_pool(
    self,
    *,
    PoolId: str,
    DryRun: bool = ...,
) -> DeletePublicIpv4PoolResultTypeDef:  # (1)
    ...
  1. See DeletePublicIpv4PoolResultTypeDef
Usage example with kwargs
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

Method definition
def delete_queued_reserved_instances(
    self,
    *,
    ReservedInstancesIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteQueuedReservedInstancesResultTypeDef:  # (1)
    ...
  1. See DeleteQueuedReservedInstancesResultTypeDef
Usage example with kwargs
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

Method definition
def delete_route(
    self,
    *,
    RouteTableId: str,
    DestinationCidrBlock: str = ...,
    DestinationIpv6CidrBlock: str = ...,
    DestinationPrefixListId: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_route_table(
    self,
    *,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_security_group(
    self,
    *,
    GroupId: str = ...,
    GroupName: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_snapshot(
    self,
    *,
    SnapshotId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_spot_datafeed_subscription(
    self,
    *,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_subnet(
    self,
    *,
    SubnetId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_subnet_cidr_reservation(
    self,
    *,
    SubnetCidrReservationId: str,
    DryRun: bool = ...,
) -> DeleteSubnetCidrReservationResultTypeDef:  # (1)
    ...
  1. See DeleteSubnetCidrReservationResultTypeDef
Usage example with kwargs
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

Method definition
def delete_tags(
    self,
    *,
    Resources: Sequence[Any],
    DryRun: bool = ...,
    Tags: Optional[Sequence[TagTypeDef]] = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DeleteTagsRequestRequestTypeDef = {  # (1)
    "Resources": ...,
}

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

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

Method definition
def delete_traffic_mirror_filter(
    self,
    *,
    TrafficMirrorFilterId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorFilterResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorFilterResultTypeDef
Usage example with kwargs
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

Method definition
def delete_traffic_mirror_filter_rule(
    self,
    *,
    TrafficMirrorFilterRuleId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorFilterRuleResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorFilterRuleResultTypeDef
Usage example with kwargs
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

Method definition
def delete_traffic_mirror_session(
    self,
    *,
    TrafficMirrorSessionId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorSessionResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorSessionResultTypeDef
Usage example with kwargs
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

Method definition
def delete_traffic_mirror_target(
    self,
    *,
    TrafficMirrorTargetId: str,
    DryRun: bool = ...,
) -> DeleteTrafficMirrorTargetResultTypeDef:  # (1)
    ...
  1. See DeleteTrafficMirrorTargetResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway(
    self,
    *,
    TransitGatewayId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_connect(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayConnectResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayConnectResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_connect_peer(
    self,
    *,
    TransitGatewayConnectPeerId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayConnectPeerResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayConnectPeerResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayMulticastDomainResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayMulticastDomainResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayPeeringAttachmentResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayPeeringAttachmentResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayPolicyTableResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayPolicyTableResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_prefix_list_reference(
    self,
    *,
    TransitGatewayRouteTableId: str,
    PrefixListId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayPrefixListReferenceResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayPrefixListReferenceResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_route(
    self,
    *,
    TransitGatewayRouteTableId: str,
    DestinationCidrBlock: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayRouteResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayRouteResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_route_table(
    self,
    *,
    TransitGatewayRouteTableId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayRouteTableResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_route_table_announcement(
    self,
    *,
    TransitGatewayRouteTableAnnouncementId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayRouteTableAnnouncementResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayRouteTableAnnouncementResultTypeDef
Usage example with kwargs
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

Method definition
def delete_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayVpcAttachmentResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayVpcAttachmentResultTypeDef
Usage example with kwargs
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

Method definition
def delete_verified_access_endpoint(
    self,
    *,
    VerifiedAccessEndpointId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DeleteVerifiedAccessEndpointResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessEndpointResultTypeDef
Usage example with kwargs
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

Method definition
def delete_verified_access_group(
    self,
    *,
    VerifiedAccessGroupId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DeleteVerifiedAccessGroupResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessGroupResultTypeDef
Usage example with kwargs
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

Method definition
def delete_verified_access_instance(
    self,
    *,
    VerifiedAccessInstanceId: str,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> DeleteVerifiedAccessInstanceResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessInstanceResultTypeDef
Usage example with kwargs
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

Method definition
def delete_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessTrustProviderId: str,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> DeleteVerifiedAccessTrustProviderResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessTrustProviderResultTypeDef
Usage example with kwargs
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

Method definition
def delete_volume(
    self,
    *,
    VolumeId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_vpc(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_vpc_endpoint_connection_notifications(
    self,
    *,
    ConnectionNotificationIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointConnectionNotificationsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointConnectionNotificationsResultTypeDef
Usage example with kwargs
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

Method definition
def delete_vpc_endpoint_service_configurations(
    self,
    *,
    ServiceIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointServiceConfigurationsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointServiceConfigurationsResultTypeDef
Usage example with kwargs
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

Method definition
def delete_vpc_endpoints(
    self,
    *,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointsResultTypeDef
Usage example with kwargs
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

Method definition
def delete_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> DeleteVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See DeleteVpcPeeringConnectionResultTypeDef
Usage example with kwargs
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

Method definition
def delete_vpn_connection(
    self,
    *,
    VpnConnectionId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_vpn_connection_route(
    self,
    *,
    DestinationCidrBlock: str,
    VpnConnectionId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def delete_vpn_gateway(
    self,
    *,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def deprovision_byoip_cidr(
    self,
    *,
    Cidr: str,
    DryRun: bool = ...,
) -> DeprovisionByoipCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionByoipCidrResultTypeDef
Usage example with kwargs
kwargs: DeprovisionByoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.deprovision_byoip_cidr(**kwargs)
  1. See DeprovisionByoipCidrRequestRequestTypeDef

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

Method definition
def deprovision_ipam_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cidr: str = ...,
) -> DeprovisionIpamPoolCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionIpamPoolCidrResultTypeDef
Usage example with kwargs
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

Method definition
def deprovision_public_ipv4_pool_cidr(
    self,
    *,
    PoolId: str,
    Cidr: str,
    DryRun: bool = ...,
) -> DeprovisionPublicIpv4PoolCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionPublicIpv4PoolCidrResultTypeDef
Usage example with kwargs
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

Method definition
def deregister_image(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def deregister_instance_event_notification_attributes(
    self,
    *,
    DryRun: bool = ...,
    InstanceTagAttribute: DeregisterInstanceTagAttributeRequestTypeDef = ...,  # (1)
) -> DeregisterInstanceEventNotificationAttributesResultTypeDef:  # (2)
    ...
  1. See DeregisterInstanceTagAttributeRequestTypeDef
  2. See DeregisterInstanceEventNotificationAttributesResultTypeDef
Usage example with kwargs
kwargs: DeregisterInstanceEventNotificationAttributesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

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

Method definition
def deregister_transit_gateway_multicast_group_members(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    GroupIpAddress: str = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupMembersResultTypeDef:  # (1)
    ...
  1. See DeregisterTransitGatewayMulticastGroupMembersResultTypeDef
Usage example with kwargs
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

Method definition
def deregister_transit_gateway_multicast_group_sources(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    GroupIpAddress: str = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupSourcesResultTypeDef:  # (1)
    ...
  1. See DeregisterTransitGatewayMulticastGroupSourcesResultTypeDef
Usage example with kwargs
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

Method definition
def describe_account_attributes(
    self,
    *,
    AttributeNames: Sequence[AccountAttributeNameType] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeAccountAttributesResultTypeDef:  # (2)
    ...
  1. See AccountAttributeNameType
  2. See DescribeAccountAttributesResultTypeDef
Usage example with kwargs
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

Method definition
def describe_address_transfers(
    self,
    *,
    AllocationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeAddressTransfersResultTypeDef:  # (1)
    ...
  1. See DescribeAddressTransfersResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_aggregate_id_format(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeAggregateIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeAggregateIdFormatResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_bundle_tasks(
    self,
    *,
    BundleIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeBundleTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeBundleTasksResultTypeDef
Usage example with kwargs
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

Method definition
def describe_byoip_cidrs(
    self,
    *,
    MaxResults: int,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeByoipCidrsResultTypeDef:  # (1)
    ...
  1. See DescribeByoipCidrsResultTypeDef
Usage example with kwargs
kwargs: DescribeByoipCidrsRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_byoip_cidrs(**kwargs)
  1. See DescribeByoipCidrsRequestRequestTypeDef

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeCarrierGatewaysRequestRequestTypeDef = {  # (1)
    "CarrierGatewayIds": ...,
}

parent.describe_carrier_gateways(**kwargs)
  1. See DescribeCarrierGatewaysRequestRequestTypeDef

Describes one or more of your linked EC2-Classic instances.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_conversion_tasks(
    self,
    *,
    ConversionTaskIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeConversionTasksResultTypeDef:  # (1)
    ...
  1. See DescribeConversionTasksResultTypeDef
Usage example with kwargs
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

Method definition
def describe_customer_gateways(
    self,
    *,
    CustomerGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCustomerGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCustomerGatewaysResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeEgressOnlyInternetGatewaysRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_egress_only_internet_gateways(**kwargs)
  1. See DescribeEgressOnlyInternetGatewaysRequestRequestTypeDef

describe_elastic_gpus

Describes the Elastic Graphics accelerator associated with your instances.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_export_tasks(
    self,
    *,
    ExportTaskIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeExportTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeExportTasksResultTypeDef
Usage example with kwargs
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 faster launching.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeFleetInstancesRequestRequestTypeDef = {  # (1)
    "FleetId": ...,
}

parent.describe_fleet_instances(**kwargs)
  1. See DescribeFleetInstancesRequestRequestTypeDef

describe_fleets

Describes the specified EC2 Fleets or all of your EC2 Fleets.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_fpga_image_attribute(
    self,
    *,
    FpgaImageId: str,
    Attribute: FpgaImageAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> DescribeFpgaImageAttributeResultTypeDef:  # (2)
    ...
  1. See FpgaImageAttributeNameType
  2. See DescribeFpgaImageAttributeResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_id_format(
    self,
    *,
    Resource: str = ...,
) -> DescribeIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeIdFormatResultTypeDef
Usage example with kwargs
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

Method definition
def describe_identity_id_format(
    self,
    *,
    PrincipalArn: str,
    Resource: str = ...,
) -> DescribeIdentityIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeIdentityIdFormatResultTypeDef
Usage example with kwargs
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

Method definition
def describe_image_attribute(
    self,
    *,
    Attribute: ImageAttributeNameType,  # (1)
    ImageId: str,
    DryRun: bool = ...,
) -> ImageAttributeTypeDef:  # (2)
    ...
  1. See ImageAttributeNameType
  2. See ImageAttributeTypeDef
Usage example with kwargs
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

Method definition
def describe_images(
    self,
    *,
    ExecutableUsers: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImageIds: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    IncludeDeprecated: bool = ...,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeImagesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeImagesResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_instance_attribute(
    self,
    *,
    Attribute: InstanceAttributeNameType,  # (1)
    InstanceId: str,
    DryRun: bool = ...,
) -> InstanceAttributeTypeDef:  # (2)
    ...
  1. See InstanceAttributeNameType
  2. See InstanceAttributeTypeDef
Usage example with kwargs
kwargs: DescribeInstanceAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "InstanceId": ...,
}

parent.describe_instance_attribute(**kwargs)
  1. See DescribeInstanceAttributeRequestRequestTypeDef

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

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
Usage example with kwargs
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

Method definition
def describe_instance_event_notification_attributes(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeInstanceEventNotificationAttributesResultTypeDef:  # (1)
    ...
  1. See DescribeInstanceEventNotificationAttributesResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeInstanceStatusRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_instance_status(**kwargs)
  1. See DescribeInstanceStatusRequestRequestTypeDef

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeInternetGatewaysRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_internet_gateways(**kwargs)
  1. See DescribeInternetGatewaysRequestRequestTypeDef

describe_ipam_pools

Get information about your IPAM pools.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeLocalGatewaysRequestRequestTypeDef = {  # (1)
    "LocalGatewayIds": ...,
}

parent.describe_local_gateways(**kwargs)
  1. See DescribeLocalGatewaysRequestRequestTypeDef

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

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
Usage example with kwargs
kwargs: DescribeManagedPrefixListsRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_managed_prefix_lists(**kwargs)
  1. See DescribeManagedPrefixListsRequestRequestTypeDef

describe_moving_addresses

Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_network_interface_attribute(
    self,
    *,
    NetworkInterfaceId: str,
    Attribute: NetworkInterfaceAttributeType = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeNetworkInterfaceAttributeResultTypeDef:  # (2)
    ...
  1. See NetworkInterfaceAttributeType
  2. See DescribeNetworkInterfaceAttributeResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_principal_id_format(
    self,
    *,
    DryRun: bool = ...,
    Resources: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribePrincipalIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribePrincipalIdFormatResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_reserved_instances_listings(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ReservedInstancesId: str = ...,
    ReservedInstancesListingId: str = ...,
) -> DescribeReservedInstancesListingsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeReservedInstancesListingsResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeScheduledInstancesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_scheduled_instances(**kwargs)
  1. See DescribeScheduledInstancesRequestRequestTypeDef

describe_security_group_references

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

Method definition
def describe_security_group_references(
    self,
    *,
    GroupId: Sequence[str],
    DryRun: bool = ...,
) -> DescribeSecurityGroupReferencesResultTypeDef:  # (1)
    ...
  1. See DescribeSecurityGroupReferencesResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_snapshot_attribute(
    self,
    *,
    Attribute: SnapshotAttributeNameType,  # (1)
    SnapshotId: str,
    DryRun: bool = ...,
) -> DescribeSnapshotAttributeResultTypeDef:  # (2)
    ...
  1. See SnapshotAttributeNameType
  2. See DescribeSnapshotAttributeResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_spot_datafeed_subscription(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeSpotDatafeedSubscriptionResultTypeDef:  # (1)
    ...
  1. See DescribeSpotDatafeedSubscriptionResultTypeDef
Usage example with kwargs
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

Method definition
def describe_spot_fleet_instances(
    self,
    *,
    SpotFleetRequestId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeSpotFleetInstancesResponseTypeDef:  # (1)
    ...
  1. See DescribeSpotFleetInstancesResponseTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_spot_fleet_requests(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    SpotFleetRequestIds: Sequence[str] = ...,
) -> DescribeSpotFleetRequestsResponseTypeDef:  # (1)
    ...
  1. See DescribeSpotFleetRequestsResponseTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeSpotPriceHistoryRequestRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_spot_price_history(**kwargs)
  1. See DescribeSpotPriceHistoryRequestRequestTypeDef

describe_stale_security_groups

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

Method definition
def describe_stale_security_groups(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeStaleSecurityGroupsResultTypeDef:  # (1)
    ...
  1. See DescribeStaleSecurityGroupsResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_tags(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTagsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTagsResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: DescribeTransitGatewaysRequestRequestTypeDef = {  # (1)
    "TransitGatewayIds": ...,
}

parent.describe_transit_gateways(**kwargs)
  1. See DescribeTransitGatewaysRequestRequestTypeDef

describe_trunk_interface_associations

.

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

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
Usage example with kwargs
kwargs: DescribeTrunkInterfaceAssociationsRequestRequestTypeDef = {  # (1)
    "AssociationIds": ...,
}

parent.describe_trunk_interface_associations(**kwargs)
  1. See DescribeTrunkInterfaceAssociationsRequestRequestTypeDef

describe_verified_access_endpoints

Describe Amazon Web Services Verified Access endpoints.

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

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
Usage example with kwargs
kwargs: DescribeVerifiedAccessEndpointsRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointIds": ...,
}

parent.describe_verified_access_endpoints(**kwargs)
  1. See DescribeVerifiedAccessEndpointsRequestRequestTypeDef

describe_verified_access_groups

Describe details of existing Verified Access groups.

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

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
Usage example with kwargs
kwargs: DescribeVerifiedAccessGroupsRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupIds": ...,
}

parent.describe_verified_access_groups(**kwargs)
  1. See DescribeVerifiedAccessGroupsRequestRequestTypeDef

describe_verified_access_instance_logging_configurations

Describes the current logging configuration for the Amazon Web Services Verified Access instances.

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

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
Usage example with kwargs
kwargs: DescribeVerifiedAccessInstanceLoggingConfigurationsRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceIds": ...,
}

parent.describe_verified_access_instance_logging_configurations(**kwargs)
  1. See DescribeVerifiedAccessInstanceLoggingConfigurationsRequestRequestTypeDef

describe_verified_access_instances

Describe Verified Access instances.

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

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
Usage example with kwargs
kwargs: DescribeVerifiedAccessInstancesRequestRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceIds": ...,
}

parent.describe_verified_access_instances(**kwargs)
  1. See DescribeVerifiedAccessInstancesRequestRequestTypeDef

describe_verified_access_trust_providers

Describe details of existing Verified Access trust providers.

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

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
Usage example with kwargs
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

Method definition
def describe_volume_attribute(
    self,
    *,
    Attribute: VolumeAttributeNameType,  # (1)
    VolumeId: str,
    DryRun: bool = ...,
) -> DescribeVolumeAttributeResultTypeDef:  # (2)
    ...
  1. See VolumeAttributeNameType
  2. See DescribeVolumeAttributeResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_vpc_attribute(
    self,
    *,
    Attribute: VpcAttributeNameType,  # (1)
    VpcId: str,
    DryRun: bool = ...,
) -> DescribeVpcAttributeResultTypeDef:  # (2)
    ...
  1. See VpcAttributeNameType
  2. See DescribeVpcAttributeResultTypeDef
Usage example with kwargs
kwargs: DescribeVpcAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "VpcId": ...,
}

parent.describe_vpc_attribute(**kwargs)
  1. See DescribeVpcAttributeRequestRequestTypeDef

Describes the ClassicLink status of one or more VPCs.

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

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
Usage example with kwargs
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

Method definition
def describe_vpc_classic_link_dns_support(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    VpcIds: Sequence[str] = ...,
) -> DescribeVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See DescribeVpcClassicLinkDnsSupportResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def describe_vpn_connections(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpnConnectionIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeVpnConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpnConnectionsResultTypeDef
Usage example with kwargs
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

Method definition
def describe_vpn_gateways(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpnGatewayIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeVpnGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpnGatewaysResultTypeDef
Usage example with kwargs
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

Method definition
def detach_classic_link_vpc(
    self,
    *,
    InstanceId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> DetachClassicLinkVpcResultTypeDef:  # (1)
    ...
  1. See DetachClassicLinkVpcResultTypeDef
Usage example with kwargs
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

Method definition
def detach_internet_gateway(
    self,
    *,
    InternetGatewayId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def detach_network_interface(
    self,
    *,
    AttachmentId: str,
    DryRun: bool = ...,
    Force: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DetachNetworkInterfaceRequestRequestTypeDef = {  # (1)
    "AttachmentId": ...,
}

parent.detach_network_interface(**kwargs)
  1. See DetachNetworkInterfaceRequestRequestTypeDef

detach_verified_access_trust_provider

Detach a trust provider from an Amazon Web Services Verified Access instance.

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

Method definition
def detach_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessInstanceId: str,
    VerifiedAccessTrustProviderId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DetachVerifiedAccessTrustProviderResultTypeDef:  # (1)
    ...
  1. See DetachVerifiedAccessTrustProviderResultTypeDef
Usage example with kwargs
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

Method definition
def detach_volume(
    self,
    *,
    VolumeId: str,
    Device: str = ...,
    Force: bool = ...,
    InstanceId: str = ...,
    DryRun: bool = ...,
) -> VolumeAttachmentResponseMetadataTypeDef:  # (1)
    ...
  1. See VolumeAttachmentResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def detach_vpn_gateway(
    self,
    *,
    VpcId: str,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def disable_address_transfer(
    self,
    *,
    AllocationId: str,
    DryRun: bool = ...,
) -> DisableAddressTransferResultTypeDef:  # (1)
    ...
  1. See DisableAddressTransferResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def disable_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> DisableEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See DisableEbsEncryptionByDefaultResultTypeDef
Usage example with kwargs
kwargs: DisableEbsEncryptionByDefaultRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_ebs_encryption_by_default(**kwargs)
  1. See DisableEbsEncryptionByDefaultRequestRequestTypeDef

disable_fast_launch

Discontinue faster launching 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

Method definition
def disable_fast_launch(
    self,
    *,
    ImageId: str,
    Force: bool = ...,
    DryRun: bool = ...,
) -> DisableFastLaunchResultTypeDef:  # (1)
    ...
  1. See DisableFastLaunchResultTypeDef
Usage example with kwargs
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

Method definition
def disable_fast_snapshot_restores(
    self,
    *,
    AvailabilityZones: Sequence[str],
    SourceSnapshotIds: Sequence[str],
    DryRun: bool = ...,
) -> DisableFastSnapshotRestoresResultTypeDef:  # (1)
    ...
  1. See DisableFastSnapshotRestoresResultTypeDef
Usage example with kwargs
kwargs: DisableFastSnapshotRestoresRequestRequestTypeDef = {  # (1)
    "AvailabilityZones": ...,
    "SourceSnapshotIds": ...,
}

parent.disable_fast_snapshot_restores(**kwargs)
  1. See DisableFastSnapshotRestoresRequestRequestTypeDef

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

Method definition
def disable_image_deprecation(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> DisableImageDeprecationResultTypeDef:  # (1)
    ...
  1. See DisableImageDeprecationResultTypeDef
Usage example with kwargs
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

Method definition
def disable_ipam_organization_admin_account(
    self,
    *,
    DelegatedAdminAccountId: str,
    DryRun: bool = ...,
) -> DisableIpamOrganizationAdminAccountResultTypeDef:  # (1)
    ...
  1. See DisableIpamOrganizationAdminAccountResultTypeDef
Usage example with kwargs
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

Method definition
def disable_serial_console_access(
    self,
    *,
    DryRun: bool = ...,
) -> DisableSerialConsoleAccessResultTypeDef:  # (1)
    ...
  1. See DisableSerialConsoleAccessResultTypeDef
Usage example with kwargs
kwargs: DisableSerialConsoleAccessRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_serial_console_access(**kwargs)
  1. See DisableSerialConsoleAccessRequestRequestTypeDef

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

Method definition
def disable_transit_gateway_route_table_propagation(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    DryRun: bool = ...,
    TransitGatewayRouteTableAnnouncementId: str = ...,
) -> DisableTransitGatewayRouteTablePropagationResultTypeDef:  # (1)
    ...
  1. See DisableTransitGatewayRouteTablePropagationResultTypeDef
Usage example with kwargs
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

Method definition
def disable_vgw_route_propagation(
    self,
    *,
    GatewayId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: DisableVgwRoutePropagationRequestRequestTypeDef = {  # (1)
    "GatewayId": ...,
    "RouteTableId": ...,
}

parent.disable_vgw_route_propagation(**kwargs)
  1. See DisableVgwRoutePropagationRequestRequestTypeDef

Disables ClassicLink for a VPC.

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

Method definition
def disable_vpc_classic_link(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> DisableVpcClassicLinkResultTypeDef:  # (1)
    ...
  1. See DisableVpcClassicLinkResultTypeDef
Usage example with kwargs
kwargs: DisableVpcClassicLinkRequestRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.disable_vpc_classic_link(**kwargs)
  1. See DisableVpcClassicLinkRequestRequestTypeDef

Disables ClassicLink DNS support for a VPC.

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

Method definition
def disable_vpc_classic_link_dns_support(
    self,
    *,
    VpcId: str = ...,
) -> DisableVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See DisableVpcClassicLinkDnsSupportResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_address(
    self,
    *,
    AssociationId: str = ...,
    PublicIp: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def disassociate_client_vpn_target_network(
    self,
    *,
    ClientVpnEndpointId: str,
    AssociationId: str,
    DryRun: bool = ...,
) -> DisassociateClientVpnTargetNetworkResultTypeDef:  # (1)
    ...
  1. See DisassociateClientVpnTargetNetworkResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_enclave_certificate_iam_role(
    self,
    *,
    CertificateArn: str,
    RoleArn: str,
    DryRun: bool = ...,
) -> DisassociateEnclaveCertificateIamRoleResultTypeDef:  # (1)
    ...
  1. See DisassociateEnclaveCertificateIamRoleResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_iam_instance_profile(
    self,
    *,
    AssociationId: str,
) -> DisassociateIamInstanceProfileResultTypeDef:  # (1)
    ...
  1. See DisassociateIamInstanceProfileResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    AssociationTarget: InstanceEventWindowDisassociationRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> DisassociateInstanceEventWindowResultTypeDef:  # (2)
    ...
  1. See InstanceEventWindowDisassociationRequestTypeDef
  2. See DisassociateInstanceEventWindowResultTypeDef
Usage example with kwargs
kwargs: DisassociateInstanceEventWindowRequestRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
    "AssociationTarget": ...,
}

parent.disassociate_instance_event_window(**kwargs)
  1. See DisassociateInstanceEventWindowRequestRequestTypeDef

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

Method definition
def disassociate_ipam_resource_discovery(
    self,
    *,
    IpamResourceDiscoveryAssociationId: str,
    DryRun: bool = ...,
) -> DisassociateIpamResourceDiscoveryResultTypeDef:  # (1)
    ...
  1. See DisassociateIpamResourceDiscoveryResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    AssociationIds: Sequence[str],
    MaxDrainDurationSeconds: int = ...,
    DryRun: bool = ...,
) -> DisassociateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See DisassociateNatGatewayAddressResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_route_table(
    self,
    *,
    AssociationId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def disassociate_subnet_cidr_block(
    self,
    *,
    AssociationId: str,
) -> DisassociateSubnetCidrBlockResultTypeDef:  # (1)
    ...
  1. See DisassociateSubnetCidrBlockResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    TransitGatewayAttachmentId: str,
    SubnetIds: Sequence[str],
    DryRun: bool = ...,
) -> DisassociateTransitGatewayMulticastDomainResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayMulticastDomainResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DisassociateTransitGatewayPolicyTableResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayPolicyTableResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_transit_gateway_route_table(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DisassociateTransitGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayRouteTableResultTypeDef
Usage example with kwargs
kwargs: DisassociateTransitGatewayRouteTableRequestRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

parent.disassociate_transit_gateway_route_table(**kwargs)
  1. See DisassociateTransitGatewayRouteTableRequestRequestTypeDef

disassociate_trunk_interface

.

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

Method definition
def disassociate_trunk_interface(
    self,
    *,
    AssociationId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DisassociateTrunkInterfaceResultTypeDef:  # (1)
    ...
  1. See DisassociateTrunkInterfaceResultTypeDef
Usage example with kwargs
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

Method definition
def disassociate_vpc_cidr_block(
    self,
    *,
    AssociationId: str,
) -> DisassociateVpcCidrBlockResultTypeDef:  # (1)
    ...
  1. See DisassociateVpcCidrBlockResultTypeDef
Usage example with kwargs
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

Method definition
def enable_address_transfer(
    self,
    *,
    AllocationId: str,
    TransferAccountId: str,
    DryRun: bool = ...,
) -> EnableAddressTransferResultTypeDef:  # (1)
    ...
  1. See EnableAddressTransferResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def enable_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> EnableEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See EnableEbsEncryptionByDefaultResultTypeDef
Usage example with kwargs
kwargs: EnableEbsEncryptionByDefaultRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_ebs_encryption_by_default(**kwargs)
  1. See EnableEbsEncryptionByDefaultRequestRequestTypeDef

enable_fast_launch

When you enable faster launching for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster.

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

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
Usage example with kwargs
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

Method definition
def enable_fast_snapshot_restores(
    self,
    *,
    AvailabilityZones: Sequence[str],
    SourceSnapshotIds: Sequence[str],
    DryRun: bool = ...,
) -> EnableFastSnapshotRestoresResultTypeDef:  # (1)
    ...
  1. See EnableFastSnapshotRestoresResultTypeDef
Usage example with kwargs
kwargs: EnableFastSnapshotRestoresRequestRequestTypeDef = {  # (1)
    "AvailabilityZones": ...,
    "SourceSnapshotIds": ...,
}

parent.enable_fast_snapshot_restores(**kwargs)
  1. See EnableFastSnapshotRestoresRequestRequestTypeDef

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

Method definition
def enable_image_deprecation(
    self,
    *,
    ImageId: str,
    DeprecateAt: Union[datetime, str],
    DryRun: bool = ...,
) -> EnableImageDeprecationResultTypeDef:  # (1)
    ...
  1. See EnableImageDeprecationResultTypeDef
Usage example with kwargs
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

Method definition
def enable_ipam_organization_admin_account(
    self,
    *,
    DelegatedAdminAccountId: str,
    DryRun: bool = ...,
) -> EnableIpamOrganizationAdminAccountResultTypeDef:  # (1)
    ...
  1. See EnableIpamOrganizationAdminAccountResultTypeDef
Usage example with kwargs
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

Method definition
def enable_reachability_analyzer_organization_sharing(
    self,
    *,
    DryRun: bool = ...,
) -> EnableReachabilityAnalyzerOrganizationSharingResultTypeDef:  # (1)
    ...
  1. See EnableReachabilityAnalyzerOrganizationSharingResultTypeDef
Usage example with kwargs
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

Method definition
def enable_serial_console_access(
    self,
    *,
    DryRun: bool = ...,
) -> EnableSerialConsoleAccessResultTypeDef:  # (1)
    ...
  1. See EnableSerialConsoleAccessResultTypeDef
Usage example with kwargs
kwargs: EnableSerialConsoleAccessRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_serial_console_access(**kwargs)
  1. See EnableSerialConsoleAccessRequestRequestTypeDef

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

Method definition
def enable_transit_gateway_route_table_propagation(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    DryRun: bool = ...,
    TransitGatewayRouteTableAnnouncementId: str = ...,
) -> EnableTransitGatewayRouteTablePropagationResultTypeDef:  # (1)
    ...
  1. See EnableTransitGatewayRouteTablePropagationResultTypeDef
Usage example with kwargs
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

Method definition
def enable_vgw_route_propagation(
    self,
    *,
    GatewayId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def enable_volume_io(
    self,
    *,
    VolumeId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def enable_vpc_classic_link(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> EnableVpcClassicLinkResultTypeDef:  # (1)
    ...
  1. See EnableVpcClassicLinkResultTypeDef
Usage example with kwargs
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

Method definition
def enable_vpc_classic_link_dns_support(
    self,
    *,
    VpcId: str = ...,
) -> EnableVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See EnableVpcClassicLinkDnsSupportResultTypeDef
Usage example with kwargs
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

Method definition
def export_client_vpn_client_certificate_revocation_list(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> ExportClientVpnClientCertificateRevocationListResultTypeDef:  # (1)
    ...
  1. See ExportClientVpnClientCertificateRevocationListResultTypeDef
Usage example with kwargs
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

Method definition
def export_client_vpn_client_configuration(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> ExportClientVpnClientConfigurationResultTypeDef:  # (1)
    ...
  1. See ExportClientVpnClientConfigurationResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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

Method definition
def get_associated_enclave_certificate_iam_roles(
    self,
    *,
    CertificateArn: str,
    DryRun: bool = ...,
) -> GetAssociatedEnclaveCertificateIamRolesResultTypeDef:  # (1)
    ...
  1. See GetAssociatedEnclaveCertificateIamRolesResultTypeDef
Usage example with kwargs
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

Method definition
def get_associated_ipv6_pool_cidrs(
    self,
    *,
    PoolId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetAssociatedIpv6PoolCidrsResultTypeDef:  # (1)
    ...
  1. See GetAssociatedIpv6PoolCidrsResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def get_capacity_reservation_usage(
    self,
    *,
    CapacityReservationId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetCapacityReservationUsageResultTypeDef:  # (1)
    ...
  1. See GetCapacityReservationUsageResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def get_console_output(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
    Latest: bool = ...,
) -> GetConsoleOutputResultTypeDef:  # (1)
    ...
  1. See GetConsoleOutputResultTypeDef
Usage example with kwargs
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

Method definition
def get_console_screenshot(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
    WakeUp: bool = ...,
) -> GetConsoleScreenshotResultTypeDef:  # (1)
    ...
  1. See GetConsoleScreenshotResultTypeDef
Usage example with kwargs
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

Method definition
def get_default_credit_specification(
    self,
    *,
    InstanceFamily: UnlimitedSupportedInstanceFamilyType,  # (1)
    DryRun: bool = ...,
) -> GetDefaultCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See UnlimitedSupportedInstanceFamilyType
  2. See GetDefaultCreditSpecificationResultTypeDef
Usage example with kwargs
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

Method definition
def get_ebs_default_kms_key_id(
    self,
    *,
    DryRun: bool = ...,
) -> GetEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See GetEbsDefaultKmsKeyIdResultTypeDef
Usage example with kwargs
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

Method definition
def get_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> GetEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See GetEbsEncryptionByDefaultResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def get_groups_for_capacity_reservation(
    self,
    *,
    CapacityReservationId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetGroupsForCapacityReservationResultTypeDef:  # (1)
    ...
  1. See GetGroupsForCapacityReservationResultTypeDef
Usage example with kwargs
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

Method definition
def get_host_reservation_purchase_preview(
    self,
    *,
    HostIdSet: Sequence[str],
    OfferingId: str,
) -> GetHostReservationPurchasePreviewResultTypeDef:  # (1)
    ...
  1. See GetHostReservationPurchasePreviewResultTypeDef
Usage example with kwargs
kwargs: GetHostReservationPurchasePreviewRequestRequestTypeDef = {  # (1)
    "HostIdSet": ...,
    "OfferingId": ...,
}

parent.get_host_reservation_purchase_preview(**kwargs)
  1. See GetHostReservationPurchasePreviewRequestRequestTypeDef

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

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
Usage example with kwargs
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

Method definition
def get_instance_uefi_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetInstanceUefiDataResultTypeDef:  # (1)
    ...
  1. See GetInstanceUefiDataResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: GetIpamDiscoveredAccountsRequestRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
    "DiscoveryRegion": ...,
}

parent.get_ipam_discovered_accounts(**kwargs)
  1. See GetIpamDiscoveredAccountsRequestRequestTypeDef

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def get_launch_template_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetLaunchTemplateDataResultTypeDef:  # (1)
    ...
  1. See GetLaunchTemplateDataResultTypeDef
Usage example with kwargs
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

Method definition
def get_managed_prefix_list_associations(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetManagedPrefixListAssociationsResultTypeDef:  # (1)
    ...
  1. See GetManagedPrefixListAssociationsResultTypeDef
Usage example with kwargs
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

Method definition
def get_managed_prefix_list_entries(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
    TargetVersion: int = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetManagedPrefixListEntriesResultTypeDef:  # (1)
    ...
  1. See GetManagedPrefixListEntriesResultTypeDef
Usage example with kwargs
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

Method definition
def get_network_insights_access_scope_analysis_findings(
    self,
    *,
    NetworkInsightsAccessScopeAnalysisId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeAnalysisFindingsResultTypeDef:  # (1)
    ...
  1. See GetNetworkInsightsAccessScopeAnalysisFindingsResultTypeDef
Usage example with kwargs
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

Method definition
def get_network_insights_access_scope_content(
    self,
    *,
    NetworkInsightsAccessScopeId: str,
    DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeContentResultTypeDef:  # (1)
    ...
  1. See GetNetworkInsightsAccessScopeContentResultTypeDef
Usage example with kwargs
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

Method definition
def get_password_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetPasswordDataResultTypeDef:  # (1)
    ...
  1. See GetPasswordDataResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: GetReservedInstancesExchangeQuoteRequestRequestTypeDef = {  # (1)
    "ReservedInstanceIds": ...,
}

parent.get_reserved_instances_exchange_quote(**kwargs)
  1. See GetReservedInstancesExchangeQuoteRequestRequestTypeDef

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

Method definition
def get_serial_console_access_status(
    self,
    *,
    DryRun: bool = ...,
) -> GetSerialConsoleAccessStatusResultTypeDef:  # (1)
    ...
  1. See GetSerialConsoleAccessStatusResultTypeDef
Usage example with kwargs
kwargs: GetSerialConsoleAccessStatusRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_serial_console_access_status(**kwargs)
  1. See GetSerialConsoleAccessStatusRequestRequestTypeDef

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def get_verified_access_endpoint_policy(
    self,
    *,
    VerifiedAccessEndpointId: str,
    DryRun: bool = ...,
) -> GetVerifiedAccessEndpointPolicyResultTypeDef:  # (1)
    ...
  1. See GetVerifiedAccessEndpointPolicyResultTypeDef
Usage example with kwargs
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

Method definition
def get_verified_access_group_policy(
    self,
    *,
    VerifiedAccessGroupId: str,
    DryRun: bool = ...,
) -> GetVerifiedAccessGroupPolicyResultTypeDef:  # (1)
    ...
  1. See GetVerifiedAccessGroupPolicyResultTypeDef
Usage example with kwargs
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

Method definition
def get_vpn_connection_device_sample_configuration(
    self,
    *,
    VpnConnectionId: str,
    VpnConnectionDeviceTypeId: str,
    InternetKeyExchangeVersion: str = ...,
    DryRun: bool = ...,
) -> GetVpnConnectionDeviceSampleConfigurationResultTypeDef:  # (1)
    ...
  1. See GetVpnConnectionDeviceSampleConfigurationResultTypeDef
Usage example with kwargs
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

Method definition
def get_vpn_connection_device_types(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetVpnConnectionDeviceTypesResultTypeDef:  # (1)
    ...
  1. See GetVpnConnectionDeviceTypesResultTypeDef
Usage example with kwargs
kwargs: GetVpnConnectionDeviceTypesRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.get_vpn_connection_device_types(**kwargs)
  1. See GetVpnConnectionDeviceTypesRequestRequestTypeDef

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

Method definition
def import_client_vpn_client_certificate_revocation_list(
    self,
    *,
    ClientVpnEndpointId: str,
    CertificateRevocationList: str,
    DryRun: bool = ...,
) -> ImportClientVpnClientCertificateRevocationListResultTypeDef:  # (1)
    ...
  1. See ImportClientVpnClientCertificateRevocationListResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: ImportImageRequestRequestTypeDef = {  # (1)
    "Architecture": ...,
}

parent.import_image(**kwargs)
  1. See ImportImageRequestRequestTypeDef

import_instance

Creates an import instance task using metadata from the specified disk image.

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def list_images_in_recycle_bin(
    self,
    *,
    ImageIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> ListImagesInRecycleBinResultTypeDef:  # (1)
    ...
  1. See ListImagesInRecycleBinResultTypeDef
Usage example with kwargs
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

Method definition
def list_snapshots_in_recycle_bin(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    SnapshotIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> ListSnapshotsInRecycleBinResultTypeDef:  # (1)
    ...
  1. See ListSnapshotsInRecycleBinResultTypeDef
Usage example with kwargs
kwargs: ListSnapshotsInRecycleBinRequestRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_snapshots_in_recycle_bin(**kwargs)
  1. See ListSnapshotsInRecycleBinRequestRequestTypeDef

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

Method definition
def modify_address_attribute(
    self,
    *,
    AllocationId: str,
    DomainName: str = ...,
    DryRun: bool = ...,
) -> ModifyAddressAttributeResultTypeDef:  # (1)
    ...
  1. See ModifyAddressAttributeResultTypeDef
Usage example with kwargs
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

Method definition
def modify_availability_zone_group(
    self,
    *,
    GroupName: str,
    OptInStatus: ModifyAvailabilityZoneOptInStatusType,  # (1)
    DryRun: bool = ...,
) -> ModifyAvailabilityZoneGroupResultTypeDef:  # (2)
    ...
  1. See ModifyAvailabilityZoneOptInStatusType
  2. See ModifyAvailabilityZoneGroupResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_default_credit_specification(
    self,
    *,
    InstanceFamily: UnlimitedSupportedInstanceFamilyType,  # (1)
    CpuCredits: str,
    DryRun: bool = ...,
) -> ModifyDefaultCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See UnlimitedSupportedInstanceFamilyType
  2. See ModifyDefaultCreditSpecificationResultTypeDef
Usage example with kwargs
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

Method definition
def modify_ebs_default_kms_key_id(
    self,
    *,
    KmsKeyId: str,
    DryRun: bool = ...,
) -> ModifyEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See ModifyEbsDefaultKmsKeyIdResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_id_format(
    self,
    *,
    Resource: str,
    UseLongIds: bool,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def modify_identity_id_format(
    self,
    *,
    PrincipalArn: str,
    Resource: str,
    UseLongIds: bool,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_instance_capacity_reservation_attributes(
    self,
    *,
    InstanceId: str,
    CapacityReservationSpecification: CapacityReservationSpecificationTypeDef,  # (1)
    DryRun: bool = ...,
) -> ModifyInstanceCapacityReservationAttributesResultTypeDef:  # (2)
    ...
  1. See CapacityReservationSpecificationTypeDef
  2. See ModifyInstanceCapacityReservationAttributesResultTypeDef
Usage example with kwargs
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

Method definition
def modify_instance_credit_specification(
    self,
    *,
    InstanceCreditSpecifications: Sequence[InstanceCreditSpecificationRequestTypeDef],  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyInstanceCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See InstanceCreditSpecificationRequestTypeDef
  2. See ModifyInstanceCreditSpecificationResultTypeDef
Usage example with kwargs
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

Method definition
def modify_instance_event_start_time(
    self,
    *,
    InstanceId: str,
    InstanceEventId: str,
    NotBefore: Union[datetime, str],
    DryRun: bool = ...,
) -> ModifyInstanceEventStartTimeResultTypeDef:  # (1)
    ...
  1. See ModifyInstanceEventStartTimeResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_instance_maintenance_options(
    self,
    *,
    InstanceId: str,
    AutoRecovery: InstanceAutoRecoveryStateType = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyInstanceMaintenanceOptionsResultTypeDef:  # (2)
    ...
  1. See InstanceAutoRecoveryStateType
  2. See ModifyInstanceMaintenanceOptionsResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_ipam(
    self,
    *,
    IpamId: str,
    DryRun: bool = ...,
    Description: str = ...,
    AddOperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    RemoveOperatingRegions: Sequence[RemoveIpamOperatingRegionTypeDef] = ...,  # (2)
) -> ModifyIpamResultTypeDef:  # (3)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See RemoveIpamOperatingRegionTypeDef
  3. See ModifyIpamResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_ipam_scope(
    self,
    *,
    IpamScopeId: str,
    DryRun: bool = ...,
    Description: str = ...,
) -> ModifyIpamScopeResultTypeDef:  # (1)
    ...
  1. See ModifyIpamScopeResultTypeDef
Usage example with kwargs
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

Method definition
def modify_launch_template(
    self,
    *,
    DryRun: bool = ...,
    ClientToken: str = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
    DefaultVersion: str = ...,
) -> ModifyLaunchTemplateResultTypeDef:  # (1)
    ...
  1. See ModifyLaunchTemplateResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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)
) -> EmptyResponseMetadataTypeDef:  # (5)
    ...
  1. See NetworkInterfaceAttachmentChangesTypeDef
  2. See AttributeValueTypeDef
  3. See AttributeBooleanValueTypeDef
  4. See EnaSrdSpecificationTypeDef
  5. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_reserved_instances(
    self,
    *,
    ReservedInstancesIds: Sequence[str],
    TargetConfigurations: Sequence[ReservedInstancesConfigurationTypeDef],  # (1)
    ClientToken: str = ...,
) -> ModifyReservedInstancesResultTypeDef:  # (2)
    ...
  1. See ReservedInstancesConfigurationTypeDef
  2. See ModifyReservedInstancesResultTypeDef
Usage example with kwargs
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

Method definition
def modify_security_group_rules(
    self,
    *,
    GroupId: str,
    SecurityGroupRules: Sequence[SecurityGroupRuleUpdateTypeDef],  # (1)
    DryRun: bool = ...,
) -> ModifySecurityGroupRulesResultTypeDef:  # (2)
    ...
  1. See SecurityGroupRuleUpdateTypeDef
  2. See ModifySecurityGroupRulesResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_snapshot_tier(
    self,
    *,
    SnapshotId: str,
    StorageTier: TargetStorageTierType = ...,  # (1)
    DryRun: bool = ...,
) -> ModifySnapshotTierResultTypeDef:  # (2)
    ...
  1. See TargetStorageTierType
  2. See ModifySnapshotTierResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_transit_gateway(
    self,
    *,
    TransitGatewayId: str,
    Description: str = ...,
    Options: ModifyTransitGatewayOptionsTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTransitGatewayResultTypeDef:  # (2)
    ...
  1. See ModifyTransitGatewayOptionsTypeDef
  2. See ModifyTransitGatewayResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
kwargs: ModifyTransitGatewayVpcAttachmentRequestRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.modify_transit_gateway_vpc_attachment(**kwargs)
  1. See ModifyTransitGatewayVpcAttachmentRequestRequestTypeDef

modify_verified_access_endpoint

Modifies the configuration of an Amazon Web Services Verified Access endpoint.

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

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
Usage example with kwargs
kwargs: ModifyVerifiedAccessEndpointRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.modify_verified_access_endpoint(**kwargs)
  1. See ModifyVerifiedAccessEndpointRequestRequestTypeDef

modify_verified_access_endpoint_policy

Modifies the specified Verified Access endpoint policy.

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

Method definition
def modify_verified_access_endpoint_policy(
    self,
    *,
    VerifiedAccessEndpointId: str,
    PolicyEnabled: bool,
    PolicyDocument: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> ModifyVerifiedAccessEndpointPolicyResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessEndpointPolicyResultTypeDef
Usage example with kwargs
kwargs: ModifyVerifiedAccessEndpointPolicyRequestRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
    "PolicyEnabled": ...,
}

parent.modify_verified_access_endpoint_policy(**kwargs)
  1. See ModifyVerifiedAccessEndpointPolicyRequestRequestTypeDef

modify_verified_access_group

Modifies the specified Verified Access group configuration.

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

Method definition
def modify_verified_access_group(
    self,
    *,
    VerifiedAccessGroupId: str,
    VerifiedAccessInstanceId: str = ...,
    Description: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> ModifyVerifiedAccessGroupResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessGroupResultTypeDef
Usage example with kwargs
kwargs: ModifyVerifiedAccessGroupRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.modify_verified_access_group(**kwargs)
  1. See ModifyVerifiedAccessGroupRequestRequestTypeDef

modify_verified_access_group_policy

Modifies the specified Verified Access group policy.

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

Method definition
def modify_verified_access_group_policy(
    self,
    *,
    VerifiedAccessGroupId: str,
    PolicyEnabled: bool,
    PolicyDocument: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> ModifyVerifiedAccessGroupPolicyResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessGroupPolicyResultTypeDef
Usage example with kwargs
kwargs: ModifyVerifiedAccessGroupPolicyRequestRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
    "PolicyEnabled": ...,
}

parent.modify_verified_access_group_policy(**kwargs)
  1. See ModifyVerifiedAccessGroupPolicyRequestRequestTypeDef

modify_verified_access_instance

Modifies the configuration of the specified Verified Access instance.

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

Method definition
def modify_verified_access_instance(
    self,
    *,
    VerifiedAccessInstanceId: str,
    Description: str = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyVerifiedAccessInstanceResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessInstanceResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessTrustProviderId: str,
    OidcOptions: ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef = ...,  # (1)
    Description: str = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyVerifiedAccessTrustProviderResultTypeDef:  # (2)
    ...
  1. See ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef
  2. See ModifyVerifiedAccessTrustProviderResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_volume_attribute(
    self,
    *,
    VolumeId: str,
    AutoEnableIO: AttributeBooleanValueTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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 = ...,
) -> ModifyVpcEndpointResultTypeDef:  # (3)
    ...
  1. See IpAddressTypeType
  2. See DnsOptionsSpecificationTypeDef
  3. See ModifyVpcEndpointResultTypeDef
Usage example with kwargs
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

Method definition
def modify_vpc_endpoint_connection_notification(
    self,
    *,
    ConnectionNotificationId: str,
    DryRun: bool = ...,
    ConnectionNotificationArn: str = ...,
    ConnectionEvents: Sequence[str] = ...,
) -> ModifyVpcEndpointConnectionNotificationResultTypeDef:  # (1)
    ...
  1. See ModifyVpcEndpointConnectionNotificationResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_vpc_endpoint_service_permissions(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
    AddAllowedPrincipals: Sequence[str] = ...,
    RemoveAllowedPrincipals: Sequence[str] = ...,
) -> ModifyVpcEndpointServicePermissionsResultTypeDef:  # (1)
    ...
  1. See ModifyVpcEndpointServicePermissionsResultTypeDef
Usage example with kwargs
kwargs: ModifyVpcEndpointServicePermissionsRequestRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.modify_vpc_endpoint_service_permissions(**kwargs)
  1. See ModifyVpcEndpointServicePermissionsRequestRequestTypeDef

modify_vpc_peering_connection_options

.

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

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
Usage example with kwargs
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

Method definition
def modify_vpc_tenancy(
    self,
    *,
    VpcId: str,
    InstanceTenancy: VpcTenancyType,  # (1)
    DryRun: bool = ...,
) -> ModifyVpcTenancyResultTypeDef:  # (2)
    ...
  1. See VpcTenancyType
  2. See ModifyVpcTenancyResultTypeDef
Usage example with kwargs
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

Method definition
def modify_vpn_connection(
    self,
    *,
    VpnConnectionId: str,
    TransitGatewayId: str = ...,
    CustomerGatewayId: str = ...,
    VpnGatewayId: str = ...,
    DryRun: bool = ...,
) -> ModifyVpnConnectionResultTypeDef:  # (1)
    ...
  1. See ModifyVpnConnectionResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def modify_vpn_tunnel_certificate(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    DryRun: bool = ...,
) -> ModifyVpnTunnelCertificateResultTypeDef:  # (1)
    ...
  1. See ModifyVpnTunnelCertificateResultTypeDef
Usage example with kwargs
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

Method definition
def modify_vpn_tunnel_options(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    TunnelOptions: ModifyVpnTunnelOptionsSpecificationTypeDef,  # (1)
    DryRun: bool = ...,
) -> ModifyVpnTunnelOptionsResultTypeDef:  # (2)
    ...
  1. See ModifyVpnTunnelOptionsSpecificationTypeDef
  2. See ModifyVpnTunnelOptionsResultTypeDef
Usage example with kwargs
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

Method definition
def monitor_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> MonitorInstancesResultTypeDef:  # (1)
    ...
  1. See MonitorInstancesResultTypeDef
Usage example with kwargs
kwargs: MonitorInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.monitor_instances(**kwargs)
  1. See MonitorInstancesRequestRequestTypeDef

move_address_to_vpc

Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform.

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

Method definition
def move_address_to_vpc(
    self,
    *,
    PublicIp: str,
    DryRun: bool = ...,
) -> MoveAddressToVpcResultTypeDef:  # (1)
    ...
  1. See MoveAddressToVpcResultTypeDef
Usage example with kwargs
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

Method definition
def move_byoip_cidr_to_ipam(
    self,
    *,
    Cidr: str,
    IpamPoolId: str,
    IpamPoolOwner: str,
    DryRun: bool = ...,
) -> MoveByoipCidrToIpamResultTypeDef:  # (1)
    ...
  1. See MoveByoipCidrToIpamResultTypeDef
Usage example with kwargs
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

Method definition
def provision_byoip_cidr(
    self,
    *,
    Cidr: str,
    CidrAuthorizationContext: CidrAuthorizationContextTypeDef = ...,  # (1)
    PubliclyAdvertisable: bool = ...,
    Description: str = ...,
    DryRun: bool = ...,
    PoolTagSpecifications: Sequence[TagSpecificationTypeDef] = ...,  # (2)
    MultiRegion: bool = ...,
) -> ProvisionByoipCidrResultTypeDef:  # (3)
    ...
  1. See CidrAuthorizationContextTypeDef
  2. See TagSpecificationTypeDef
  3. See ProvisionByoipCidrResultTypeDef
Usage example with kwargs
kwargs: ProvisionByoipCidrRequestRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.provision_byoip_cidr(**kwargs)
  1. See ProvisionByoipCidrRequestRequestTypeDef

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

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
Usage example with kwargs
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

Method definition
def provision_public_ipv4_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    PoolId: str,
    NetmaskLength: int,
    DryRun: bool = ...,
) -> ProvisionPublicIpv4PoolCidrResultTypeDef:  # (1)
    ...
  1. See ProvisionPublicIpv4PoolCidrResultTypeDef
Usage example with kwargs
kwargs: ProvisionPublicIpv4PoolCidrRequestRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
    "PoolId": ...,
    "NetmaskLength": ...,
}

parent.provision_public_ipv4_pool_cidr(**kwargs)
  1. See ProvisionPublicIpv4PoolCidrRequestRequestTypeDef

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def purchase_scheduled_instances(
    self,
    *,
    PurchaseRequests: Sequence[PurchaseRequestTypeDef],  # (1)
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> PurchaseScheduledInstancesResultTypeDef:  # (2)
    ...
  1. See PurchaseRequestTypeDef
  2. See PurchaseScheduledInstancesResultTypeDef
Usage example with kwargs
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

Method definition
def reboot_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

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)
) -> RegisterImageResultTypeDef:  # (6)
    ...
  1. See ArchitectureValuesType
  2. See BlockDeviceMappingTypeDef
  3. See BootModeValuesType
  4. See TpmSupportValuesType
  5. See ImdsSupportValuesType
  6. See RegisterImageResultTypeDef
Usage example with kwargs
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

Method definition
def register_instance_event_notification_attributes(
    self,
    *,
    DryRun: bool = ...,
    InstanceTagAttribute: RegisterInstanceTagAttributeRequestTypeDef = ...,  # (1)
) -> RegisterInstanceEventNotificationAttributesResultTypeDef:  # (2)
    ...
  1. See RegisterInstanceTagAttributeRequestTypeDef
  2. See RegisterInstanceEventNotificationAttributesResultTypeDef
Usage example with kwargs
kwargs: RegisterInstanceEventNotificationAttributesRequestRequestTypeDef = {  # (1)
    "DryRun": ...,
}

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

Method definition
def register_transit_gateway_multicast_group_members(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    NetworkInterfaceIds: Sequence[str],
    GroupIpAddress: str = ...,
    DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupMembersResultTypeDef:  # (1)
    ...
  1. See RegisterTransitGatewayMulticastGroupMembersResultTypeDef
Usage example with kwargs
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

Method definition
def register_transit_gateway_multicast_group_sources(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    NetworkInterfaceIds: Sequence[str],
    GroupIpAddress: str = ...,
    DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupSourcesResultTypeDef:  # (1)
    ...
  1. See RegisterTransitGatewayMulticastGroupSourcesResultTypeDef
Usage example with kwargs
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

Method definition
def reject_transit_gateway_multicast_domain_associations(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    TransitGatewayAttachmentId: str = ...,
    SubnetIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> RejectTransitGatewayMulticastDomainAssociationsResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayMulticastDomainAssociationsResultTypeDef
Usage example with kwargs
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

Method definition
def reject_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> RejectTransitGatewayPeeringAttachmentResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayPeeringAttachmentResultTypeDef
Usage example with kwargs
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

Method definition
def reject_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> RejectTransitGatewayVpcAttachmentResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayVpcAttachmentResultTypeDef
Usage example with kwargs
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

Method definition
def reject_vpc_endpoint_connections(
    self,
    *,
    ServiceId: str,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> RejectVpcEndpointConnectionsResultTypeDef:  # (1)
    ...
  1. See RejectVpcEndpointConnectionsResultTypeDef
Usage example with kwargs
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

Method definition
def reject_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> RejectVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See RejectVpcPeeringConnectionResultTypeDef
Usage example with kwargs
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

Method definition
def release_address(
    self,
    *,
    AllocationId: str = ...,
    PublicIp: str = ...,
    NetworkBorderGroup: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def release_hosts(
    self,
    *,
    HostIds: Sequence[str],
) -> ReleaseHostsResultTypeDef:  # (1)
    ...
  1. See ReleaseHostsResultTypeDef
Usage example with kwargs
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

Method definition
def release_ipam_pool_allocation(
    self,
    *,
    IpamPoolId: str,
    Cidr: str,
    IpamPoolAllocationId: str,
    DryRun: bool = ...,
) -> ReleaseIpamPoolAllocationResultTypeDef:  # (1)
    ...
  1. See ReleaseIpamPoolAllocationResultTypeDef
Usage example with kwargs
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

Method definition
def replace_iam_instance_profile_association(
    self,
    *,
    IamInstanceProfile: IamInstanceProfileSpecificationTypeDef,  # (1)
    AssociationId: str,
) -> ReplaceIamInstanceProfileAssociationResultTypeDef:  # (2)
    ...
  1. See IamInstanceProfileSpecificationTypeDef
  2. See ReplaceIamInstanceProfileAssociationResultTypeDef
Usage example with kwargs
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

Method definition
def replace_network_acl_association(
    self,
    *,
    AssociationId: str,
    NetworkAclId: str,
    DryRun: bool = ...,
) -> ReplaceNetworkAclAssociationResultTypeDef:  # (1)
    ...
  1. See ReplaceNetworkAclAssociationResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def replace_route_table_association(
    self,
    *,
    AssociationId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> ReplaceRouteTableAssociationResultTypeDef:  # (1)
    ...
  1. See ReplaceRouteTableAssociationResultTypeDef
Usage example with kwargs
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

Method definition
def replace_transit_gateway_route(
    self,
    *,
    DestinationCidrBlock: str,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> ReplaceTransitGatewayRouteResultTypeDef:  # (1)
    ...
  1. See ReplaceTransitGatewayRouteResultTypeDef
Usage example with kwargs
kwargs: ReplaceTransitGatewayRouteRequestRequestTypeDef = {  # (1)
    "DestinationCidrBlock": ...,
    "TransitGatewayRouteTableId": ...,
}

parent.replace_transit_gateway_route(**kwargs)
  1. See ReplaceTransitGatewayRouteRequestRequestTypeDef

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

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
Usage example with kwargs
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

Method definition
def request_spot_fleet(
    self,
    *,
    SpotFleetRequestConfig: SpotFleetRequestConfigDataTypeDef,  # (1)
    DryRun: bool = ...,
) -> RequestSpotFleetResponseTypeDef:  # (2)
    ...
  1. See SpotFleetRequestConfigDataTypeDef
  2. See RequestSpotFleetResponseTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def reset_address_attribute(
    self,
    *,
    AllocationId: str,
    Attribute: AddressAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> ResetAddressAttributeResultTypeDef:  # (2)
    ...
  1. See AddressAttributeNameType
  2. See ResetAddressAttributeResultTypeDef
Usage example with kwargs
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

Method definition
def reset_ebs_default_kms_key_id(
    self,
    *,
    DryRun: bool = ...,
) -> ResetEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See ResetEbsDefaultKmsKeyIdResultTypeDef
Usage example with kwargs
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

Method definition
def reset_fpga_image_attribute(
    self,
    *,
    FpgaImageId: str,
    DryRun: bool = ...,
    Attribute: ResetFpgaImageAttributeNameType = ...,  # (1)
) -> ResetFpgaImageAttributeResultTypeDef:  # (2)
    ...
  1. See ResetFpgaImageAttributeNameType
  2. See ResetFpgaImageAttributeResultTypeDef
Usage example with kwargs
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

Method definition
def reset_image_attribute(
    self,
    *,
    Attribute: ResetImageAttributeNameType,  # (1)
    ImageId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See ResetImageAttributeNameType
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def reset_instance_attribute(
    self,
    *,
    Attribute: InstanceAttributeNameType,  # (1)
    InstanceId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See InstanceAttributeNameType
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def reset_network_interface_attribute(
    self,
    *,
    NetworkInterfaceId: str,
    DryRun: bool = ...,
    SourceDestCheck: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def reset_snapshot_attribute(
    self,
    *,
    Attribute: SnapshotAttributeNameType,  # (1)
    SnapshotId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See SnapshotAttributeNameType
  2. See EmptyResponseMetadataTypeDef
Usage example with kwargs
kwargs: ResetSnapshotAttributeRequestRequestTypeDef = {  # (1)
    "Attribute": ...,
    "SnapshotId": ...,
}

parent.reset_snapshot_attribute(**kwargs)
  1. See ResetSnapshotAttributeRequestRequestTypeDef

restore_address_to_classic

Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform.

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

Method definition
def restore_address_to_classic(
    self,
    *,
    PublicIp: str,
    DryRun: bool = ...,
) -> RestoreAddressToClassicResultTypeDef:  # (1)
    ...
  1. See RestoreAddressToClassicResultTypeDef
Usage example with kwargs
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

Method definition
def restore_image_from_recycle_bin(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> RestoreImageFromRecycleBinResultTypeDef:  # (1)
    ...
  1. See RestoreImageFromRecycleBinResultTypeDef
Usage example with kwargs
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

Method definition
def restore_managed_prefix_list_version(
    self,
    *,
    PrefixListId: str,
    PreviousVersion: int,
    CurrentVersion: int,
    DryRun: bool = ...,
) -> RestoreManagedPrefixListVersionResultTypeDef:  # (1)
    ...
  1. See RestoreManagedPrefixListVersionResultTypeDef
Usage example with kwargs
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

Method definition
def restore_snapshot_from_recycle_bin(
    self,
    *,
    SnapshotId: str,
    DryRun: bool = ...,
) -> RestoreSnapshotFromRecycleBinResultTypeDef:  # (1)
    ...
  1. See RestoreSnapshotFromRecycleBinResultTypeDef
Usage example with kwargs
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

Method definition
def restore_snapshot_tier(
    self,
    *,
    SnapshotId: str,
    TemporaryRestoreDays: int = ...,
    PermanentRestore: bool = ...,
    DryRun: bool = ...,
) -> RestoreSnapshotTierResultTypeDef:  # (1)
    ...
  1. See RestoreSnapshotTierResultTypeDef
Usage example with kwargs
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

Method definition
def revoke_client_vpn_ingress(
    self,
    *,
    ClientVpnEndpointId: str,
    TargetNetworkCidr: str,
    AccessGroupId: str = ...,
    RevokeAllGroups: bool = ...,
    DryRun: bool = ...,
) -> RevokeClientVpnIngressResultTypeDef:  # (1)
    ...
  1. See RevokeClientVpnIngressResultTypeDef
Usage example with kwargs
kwargs: RevokeClientVpnIngressRequestRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "TargetNetworkCidr": ...,
}

parent.revoke_client_vpn_ingress(**kwargs)
  1. See RevokeClientVpnIngressRequestRequestTypeDef

revoke_security_group_egress

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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 = ...,
) -> ReservationResponseMetadataTypeDef:  # (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 ReservationResponseMetadataTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def send_diagnostic_interrupt(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def start_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    AdditionalInfo: str = ...,
    DryRun: bool = ...,
) -> StartInstancesResultTypeDef:  # (1)
    ...
  1. See StartInstancesResultTypeDef
Usage example with kwargs
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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def start_vpc_endpoint_service_private_dns_verification(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
) -> StartVpcEndpointServicePrivateDnsVerificationResultTypeDef:  # (1)
    ...
  1. See StartVpcEndpointServicePrivateDnsVerificationResultTypeDef
Usage example with kwargs
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

Method definition
def stop_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    Hibernate: bool = ...,
    DryRun: bool = ...,
    Force: bool = ...,
) -> StopInstancesResultTypeDef:  # (1)
    ...
  1. See StopInstancesResultTypeDef
Usage example with kwargs
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

Method definition
def terminate_client_vpn_connections(
    self,
    *,
    ClientVpnEndpointId: str,
    ConnectionId: str = ...,
    Username: str = ...,
    DryRun: bool = ...,
) -> TerminateClientVpnConnectionsResultTypeDef:  # (1)
    ...
  1. See TerminateClientVpnConnectionsResultTypeDef
Usage example with kwargs
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

Method definition
def terminate_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> TerminateInstancesResultTypeDef:  # (1)
    ...
  1. See TerminateInstancesResultTypeDef
Usage example with kwargs
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

Method definition
def unassign_ipv6_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    Ipv6Addresses: Sequence[str] = ...,
    Ipv6Prefixes: Sequence[str] = ...,
) -> UnassignIpv6AddressesResultTypeDef:  # (1)
    ...
  1. See UnassignIpv6AddressesResultTypeDef
Usage example with kwargs
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

Method definition
def unassign_private_ip_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    PrivateIpAddresses: Sequence[str] = ...,
    Ipv4Prefixes: Sequence[str] = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
Usage example with kwargs
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

Method definition
def unassign_private_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    PrivateIpAddresses: Sequence[str],
    MaxDrainDurationSeconds: int = ...,
    DryRun: bool = ...,
) -> UnassignPrivateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See UnassignPrivateNatGatewayAddressResultTypeDef
Usage example with kwargs
kwargs: UnassignPrivateNatGatewayAddressRequestRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
    "PrivateIpAddresses": ...,
}

parent.unassign_private_nat_gateway_address(**kwargs)
  1. See UnassignPrivateNatGatewayAddressRequestRequestTypeDef

unmonitor_instances

Disables detailed monitoring for a running instance.

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

Method definition
def unmonitor_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> UnmonitorInstancesResultTypeDef:  # (1)
    ...
  1. See UnmonitorInstancesResultTypeDef
Usage example with kwargs
kwargs: UnmonitorInstancesRequestRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.unmonitor_instances(**kwargs)
  1. See UnmonitorInstancesRequestRequestTypeDef

update_security_group_rule_descriptions_egress

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

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
Usage example with kwargs
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

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
Usage example with kwargs
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

Method definition
def withdraw_byoip_cidr(
    self,
    *,
    Cidr: str,
    DryRun: bool = ...,
) -> WithdrawByoipCidrResultTypeDef:  # (1)
    ...
  1. See WithdrawByoipCidrResultTypeDef
Usage example with kwargs
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.