Skip to content

EC2Client#

Index > EC2 > EC2Client

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

EC2Client#

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

# EC2Client usage example

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

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

Exceptions#

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

# Exceptions.exceptions usage example

client = boto3.client("ec2")

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

from types_boto3_ec2.client import Exceptions

def handle_error(exc: Exceptions.ClientError) -> None:
    ...

Methods#

can_paginate#

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

# can_paginate method definition

def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

generate_presigned_url#

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

# generate_presigned_url method definition

def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

accept_address_transfer#

Accepts an Elastic IP address transfer.

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

# accept_address_transfer method definition

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

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

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

accept_capacity_reservation_billing_ownership#

Accepts a request to assign billing of the available capacity of a shared Capacity Reservation to your account.

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

# accept_capacity_reservation_billing_ownership method definition

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

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

parent.accept_capacity_reservation_billing_ownership(**kwargs)
  1. See AcceptCapacityReservationBillingOwnershipRequestTypeDef

accept_reserved_instances_exchange_quote#

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

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

# accept_reserved_instances_exchange_quote method definition

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

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

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

accept_transit_gateway_multicast_domain_associations#

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

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

# accept_transit_gateway_multicast_domain_associations method definition

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

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

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

accept_transit_gateway_peering_attachment#

Accepts a transit gateway peering attachment request.

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

# accept_transit_gateway_peering_attachment method definition

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

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

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

accept_transit_gateway_vpc_attachment#

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

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

# accept_transit_gateway_vpc_attachment method definition

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

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

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

accept_vpc_endpoint_connections#

Accepts connection requests to your VPC endpoint service.

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

# accept_vpc_endpoint_connections method definition

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

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

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

accept_vpc_peering_connection#

Accept a VPC peering connection request.

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

# accept_vpc_peering_connection method definition

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

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

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

Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).

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

# advertise_byoip_cidr method definition

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

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

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

allocate_address#

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

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

# allocate_address method definition

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

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

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

allocate_hosts#

Allocates a Dedicated Host to your account.

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

# allocate_hosts method definition

def allocate_hosts(
    self,
    *,
    AvailabilityZone: str,
    InstanceFamily: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    HostRecovery: HostRecoveryType = ...,  # (2)
    OutpostArn: str = ...,
    HostMaintenance: HostMaintenanceType = ...,  # (3)
    AssetIds: Sequence[str] = ...,
    AutoPlacement: AutoPlacementType = ...,  # (4)
    ClientToken: str = ...,
    InstanceType: str = ...,
    Quantity: int = ...,
) -> AllocateHostsResultTypeDef:  # (5)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See HostRecoveryType
  3. See HostMaintenanceType
  4. See AutoPlacementType
  5. See AllocateHostsResultTypeDef
# allocate_hosts method usage example with argument unpacking

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

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

allocate_ipam_pool_cidr#

Allocate a CIDR from an IPAM pool.

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

# allocate_ipam_pool_cidr method definition

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

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

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

apply_security_groups_to_client_vpn_target_network#

Applies a security group to the association between the target network and the Client VPN endpoint.

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

# apply_security_groups_to_client_vpn_target_network method definition

def apply_security_groups_to_client_vpn_target_network(
    self,
    *,
    ClientVpnEndpointId: str,
    VpcId: str,
    SecurityGroupIds: Sequence[str],
    DryRun: bool = ...,
) -> ApplySecurityGroupsToClientVpnTargetNetworkResultTypeDef:  # (1)
    ...
  1. See ApplySecurityGroupsToClientVpnTargetNetworkResultTypeDef
# apply_security_groups_to_client_vpn_target_network method usage example with argument unpacking

kwargs: ApplySecurityGroupsToClientVpnTargetNetworkRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "VpcId": ...,
    "SecurityGroupIds": ...,
}

parent.apply_security_groups_to_client_vpn_target_network(**kwargs)
  1. See ApplySecurityGroupsToClientVpnTargetNetworkRequestTypeDef

assign_ipv6_addresses#

Assigns the specified IPv6 addresses to the specified network interface.

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

# assign_ipv6_addresses method definition

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

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

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

assign_private_ip_addresses#

Assigns the specified secondary private IP addresses to the specified network interface.

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

# assign_private_ip_addresses method definition

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

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

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

assign_private_nat_gateway_address#

Assigns private IPv4 addresses to a private NAT gateway.

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

# assign_private_nat_gateway_address method definition

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

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

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

associate_address#

Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface.

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

# associate_address method definition

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

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

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

associate_capacity_reservation_billing_owner#

Initiates a request to assign billing of the unused capacity of a shared Capacity Reservation to a consumer account that is consolidated under the same Amazon Web Services organizations payer account.

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

# associate_capacity_reservation_billing_owner method definition

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

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

parent.associate_capacity_reservation_billing_owner(**kwargs)
  1. See AssociateCapacityReservationBillingOwnerRequestTypeDef

associate_client_vpn_target_network#

Associates a target network with a Client VPN endpoint.

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

# associate_client_vpn_target_network method definition

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

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

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

associate_dhcp_options#

Associates a set of DHCP options (that you've previously created) with the specified VPC, or associates no DHCP options with the VPC.

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

# associate_dhcp_options method definition

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

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

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

associate_enclave_certificate_iam_role#

Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate.

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

# associate_enclave_certificate_iam_role method definition

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

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

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

associate_iam_instance_profile#

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

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

# associate_iam_instance_profile method definition

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

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

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

associate_instance_event_window#

Associates one or more targets with an event window.

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

# associate_instance_event_window method definition

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

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

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

associate_ipam_byoasn#

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

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

# associate_ipam_byoasn method definition

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

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

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

associate_ipam_resource_discovery#

Associates an IPAM resource discovery with an Amazon VPC IPAM.

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

# associate_ipam_resource_discovery method definition

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

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

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

associate_nat_gateway_address#

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

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

# associate_nat_gateway_address method definition

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

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

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

associate_route_table#

Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC.

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

# associate_route_table method definition

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

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

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

associate_security_group_vpc#

Associates a security group with another VPC in the same Region.

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

# associate_security_group_vpc method definition

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

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

parent.associate_security_group_vpc(**kwargs)
  1. See AssociateSecurityGroupVpcRequestTypeDef

associate_subnet_cidr_block#

Associates a CIDR block with your subnet.

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

# associate_subnet_cidr_block method definition

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

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

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

associate_transit_gateway_multicast_domain#

Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.

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

# associate_transit_gateway_multicast_domain method definition

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

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

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

associate_transit_gateway_policy_table#

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

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

# associate_transit_gateway_policy_table method definition

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

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

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

associate_transit_gateway_route_table#

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

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

# associate_transit_gateway_route_table method definition

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

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

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

associate_trunk_interface#

Associates a branch network interface with a trunk network interface.

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

# associate_trunk_interface method definition

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

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

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

associate_vpc_cidr_block#

Associates a CIDR block with your VPC.

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

# associate_vpc_cidr_block method definition

def associate_vpc_cidr_block(
    self,
    *,
    VpcId: str,
    CidrBlock: str = ...,
    Ipv6CidrBlockNetworkBorderGroup: str = ...,
    Ipv6Pool: str = ...,
    Ipv6CidrBlock: str = ...,
    Ipv4IpamPoolId: str = ...,
    Ipv4NetmaskLength: int = ...,
    Ipv6IpamPoolId: str = ...,
    Ipv6NetmaskLength: int = ...,
    AmazonProvidedIpv6CidrBlock: bool = ...,
) -> AssociateVpcCidrBlockResultTypeDef:  # (1)
    ...
  1. See AssociateVpcCidrBlockResultTypeDef
# associate_vpc_cidr_block method usage example with argument unpacking

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

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

This action is deprecated.

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

# attach_classic_link_vpc method definition

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

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

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

attach_internet_gateway#

Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC.

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

# attach_internet_gateway method definition

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

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

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

attach_network_interface#

Attaches a network interface to an instance.

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

# attach_network_interface method definition

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

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

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

attach_verified_access_trust_provider#

Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance.

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

# attach_verified_access_trust_provider method definition

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

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

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

attach_volume#

Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

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

# attach_volume method definition

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

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

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

attach_vpn_gateway#

Attaches an available virtual private gateway to a VPC.

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

# attach_vpn_gateway method definition

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

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

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

authorize_client_vpn_ingress#

Adds an ingress authorization rule to a Client VPN endpoint.

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

# authorize_client_vpn_ingress method definition

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

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

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

authorize_security_group_egress#

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

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

# authorize_security_group_egress method definition

def authorize_security_group_egress(
    self,
    *,
    GroupId: str,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    SourceSecurityGroupName: str = ...,
    SourceSecurityGroupOwnerId: str = ...,
    IpProtocol: str = ...,
    FromPort: int = ...,
    ToPort: int = ...,
    CidrIp: str = ...,
    IpPermissions: Sequence[IpPermissionUnionTypeDef] = ...,  # (2)
) -> AuthorizeSecurityGroupEgressResultTypeDef:  # (3)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See IpPermissionTypeDef IpPermissionOutputTypeDef
  3. See AuthorizeSecurityGroupEgressResultTypeDef
# authorize_security_group_egress method usage example with argument unpacking

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

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

authorize_security_group_ingress#

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

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

# authorize_security_group_ingress method definition

def authorize_security_group_ingress(
    self,
    *,
    CidrIp: str = ...,
    FromPort: int = ...,
    GroupId: str = ...,
    GroupName: str = ...,
    IpPermissions: Sequence[IpPermissionUnionTypeDef] = ...,  # (1)
    IpProtocol: str = ...,
    SourceSecurityGroupName: str = ...,
    SourceSecurityGroupOwnerId: str = ...,
    ToPort: int = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> AuthorizeSecurityGroupIngressResultTypeDef:  # (3)
    ...
  1. See IpPermissionTypeDef IpPermissionOutputTypeDef
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See AuthorizeSecurityGroupIngressResultTypeDef
# authorize_security_group_ingress method usage example with argument unpacking

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

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

bundle_instance#

Bundles an Amazon instance store-backed Windows instance.

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

# bundle_instance method definition

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

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

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

cancel_bundle_task#

Cancels a bundling operation for an instance store-backed Windows instance.

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

# cancel_bundle_task method definition

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

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

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

cancel_capacity_reservation#

Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation's state to cancelled.

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

# cancel_capacity_reservation method definition

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

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

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

cancel_capacity_reservation_fleets#

Cancels one or more Capacity Reservation Fleets.

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

# cancel_capacity_reservation_fleets method definition

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

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

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

cancel_conversion_task#

Cancels an active conversion task.

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

# cancel_conversion_task method definition

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

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

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

cancel_declarative_policies_report#

Cancels the generation of an account status report.

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

# cancel_declarative_policies_report method definition

def cancel_declarative_policies_report(
    self,
    *,
    ReportId: str,
    DryRun: bool = ...,
) -> CancelDeclarativePoliciesReportResultTypeDef:  # (1)
    ...
  1. See CancelDeclarativePoliciesReportResultTypeDef
# cancel_declarative_policies_report method usage example with argument unpacking

kwargs: CancelDeclarativePoliciesReportRequestTypeDef = {  # (1)
    "ReportId": ...,
}

parent.cancel_declarative_policies_report(**kwargs)
  1. See CancelDeclarativePoliciesReportRequestTypeDef

cancel_export_task#

Cancels an active export task.

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

# cancel_export_task method definition

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

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

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

cancel_image_launch_permission#

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

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

# cancel_image_launch_permission method definition

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

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

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

cancel_import_task#

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

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

# cancel_import_task method definition

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

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

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

cancel_reserved_instances_listing#

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

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

# cancel_reserved_instances_listing method definition

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

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

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

cancel_spot_fleet_requests#

Cancels the specified Spot Fleet requests.

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

# cancel_spot_fleet_requests method definition

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

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

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

cancel_spot_instance_requests#

Cancels one or more Spot Instance requests.

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

# cancel_spot_instance_requests method definition

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

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

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

confirm_product_instance#

Determines whether a product code is associated with an instance.

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

# confirm_product_instance method definition

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

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

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

copy_fpga_image#

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

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

# copy_fpga_image method definition

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

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

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

copy_image#

Initiates an AMI copy operation.

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

# copy_image method definition

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

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

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

copy_snapshot#

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

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

# copy_snapshot method definition

def copy_snapshot(
    self,
    *,
    SourceRegion: str,
    SourceSnapshotId: str,
    Description: str = ...,
    DestinationOutpostArn: str = ...,
    DestinationRegion: str = ...,
    Encrypted: bool = ...,
    KmsKeyId: str = ...,
    PresignedUrl: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    CompletionDurationMinutes: int = ...,
    DryRun: bool = ...,
) -> CopySnapshotResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See CopySnapshotResultTypeDef
# copy_snapshot method usage example with argument unpacking

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

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

create_capacity_reservation#

Creates a new Capacity Reservation with the specified attributes.

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

# create_capacity_reservation method definition

def create_capacity_reservation(
    self,
    *,
    InstanceType: str,
    InstancePlatform: CapacityReservationInstancePlatformType,  # (1)
    InstanceCount: int,
    ClientToken: str = ...,
    AvailabilityZone: str = ...,
    AvailabilityZoneId: str = ...,
    Tenancy: CapacityReservationTenancyType = ...,  # (2)
    EbsOptimized: bool = ...,
    EphemeralStorage: bool = ...,
    EndDate: TimestampTypeDef = ...,
    EndDateType: EndDateTypeType = ...,  # (3)
    InstanceMatchCriteria: InstanceMatchCriteriaType = ...,  # (4)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (5)
    DryRun: bool = ...,
    OutpostArn: str = ...,
    PlacementGroupArn: str = ...,
    StartDate: TimestampTypeDef = ...,
    CommitmentDuration: int = ...,
    DeliveryPreference: CapacityReservationDeliveryPreferenceType = ...,  # (6)
) -> CreateCapacityReservationResultTypeDef:  # (7)
    ...
  1. See CapacityReservationInstancePlatformType
  2. See CapacityReservationTenancyType
  3. See EndDateTypeType
  4. See InstanceMatchCriteriaType
  5. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  6. See CapacityReservationDeliveryPreferenceType
  7. See CreateCapacityReservationResultTypeDef
# create_capacity_reservation method usage example with argument unpacking

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

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

create_capacity_reservation_by_splitting#

Create a new Capacity Reservation by splitting the capacity of the source Capacity Reservation.

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

# create_capacity_reservation_by_splitting method definition

def create_capacity_reservation_by_splitting(
    self,
    *,
    SourceCapacityReservationId: str,
    InstanceCount: int,
    DryRun: bool = ...,
    ClientToken: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
) -> CreateCapacityReservationBySplittingResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See CreateCapacityReservationBySplittingResultTypeDef
# create_capacity_reservation_by_splitting method usage example with argument unpacking

kwargs: CreateCapacityReservationBySplittingRequestTypeDef = {  # (1)
    "SourceCapacityReservationId": ...,
    "InstanceCount": ...,
}

parent.create_capacity_reservation_by_splitting(**kwargs)
  1. See CreateCapacityReservationBySplittingRequestTypeDef

create_capacity_reservation_fleet#

Creates a Capacity Reservation Fleet.

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

# create_capacity_reservation_fleet method definition

def create_capacity_reservation_fleet(
    self,
    *,
    InstanceTypeSpecifications: Sequence[ReservationFleetInstanceSpecificationTypeDef],  # (1)
    TotalTargetCapacity: int,
    AllocationStrategy: str = ...,
    ClientToken: str = ...,
    Tenancy: FleetCapacityReservationTenancyType = ...,  # (2)
    EndDate: TimestampTypeDef = ...,
    InstanceMatchCriteria: FleetInstanceMatchCriteriaType = ...,  # (3)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (4)
    DryRun: bool = ...,
) -> CreateCapacityReservationFleetResultTypeDef:  # (5)
    ...
  1. See ReservationFleetInstanceSpecificationTypeDef
  2. See FleetCapacityReservationTenancyType
  3. See FleetInstanceMatchCriteriaType
  4. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  5. See CreateCapacityReservationFleetResultTypeDef
# create_capacity_reservation_fleet method usage example with argument unpacking

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

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

create_carrier_gateway#

Creates a carrier gateway.

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

# create_carrier_gateway method definition

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

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

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

create_client_vpn_endpoint#

Creates a Client VPN endpoint.

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

# create_client_vpn_endpoint method definition

def create_client_vpn_endpoint(
    self,
    *,
    ClientCidrBlock: str,
    ServerCertificateArn: str,
    AuthenticationOptions: Sequence[ClientVpnAuthenticationRequestTypeDef],  # (1)
    ConnectionLogOptions: ConnectionLogOptionsTypeDef,  # (2)
    DnsServers: Sequence[str] = ...,
    TransportProtocol: TransportProtocolType = ...,  # (3)
    VpnPort: int = ...,
    Description: str = ...,
    SplitTunnel: bool = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (4)
    SecurityGroupIds: Sequence[str] = ...,
    VpcId: str = ...,
    SelfServicePortal: SelfServicePortalType = ...,  # (5)
    ClientConnectOptions: ClientConnectOptionsTypeDef = ...,  # (6)
    SessionTimeoutHours: int = ...,
    ClientLoginBannerOptions: ClientLoginBannerOptionsTypeDef = ...,  # (7)
    DisconnectOnSessionTimeout: bool = ...,
) -> CreateClientVpnEndpointResultTypeDef:  # (8)
    ...
  1. See ClientVpnAuthenticationRequestTypeDef
  2. See ConnectionLogOptionsTypeDef
  3. See TransportProtocolType
  4. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  5. See SelfServicePortalType
  6. See ClientConnectOptionsTypeDef
  7. See ClientLoginBannerOptionsTypeDef
  8. See CreateClientVpnEndpointResultTypeDef
# create_client_vpn_endpoint method usage example with argument unpacking

kwargs: CreateClientVpnEndpointRequestTypeDef = {  # (1)
    "ClientCidrBlock": ...,
    "ServerCertificateArn": ...,
    "AuthenticationOptions": ...,
    "ConnectionLogOptions": ...,
}

parent.create_client_vpn_endpoint(**kwargs)
  1. See CreateClientVpnEndpointRequestTypeDef

create_client_vpn_route#

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

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

# create_client_vpn_route method definition

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

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

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

create_coip_cidr#

Creates a range of customer-owned IP addresses.

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

# create_coip_cidr method definition

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

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

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

create_coip_pool#

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

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

# create_coip_pool method definition

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

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

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

create_customer_gateway#

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

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

# create_customer_gateway method definition

def create_customer_gateway(
    self,
    *,
    Type: GatewayTypeType,  # (1)
    BgpAsn: int = ...,
    PublicIp: str = ...,
    CertificateArn: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    DeviceName: str = ...,
    IpAddress: str = ...,
    BgpAsnExtended: int = ...,
    DryRun: bool = ...,
) -> CreateCustomerGatewayResultTypeDef:  # (3)
    ...
  1. See GatewayTypeType
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See CreateCustomerGatewayResultTypeDef
# create_customer_gateway method usage example with argument unpacking

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

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

create_default_subnet#

Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC.

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

# create_default_subnet method definition

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

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

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

create_default_vpc#

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone.

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

# create_default_vpc method definition

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

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

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

create_dhcp_options#

Creates a custom set of DHCP options.

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

# create_dhcp_options method definition

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

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

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

create_egress_only_internet_gateway#

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

# create_egress_only_internet_gateway method definition

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

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

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

create_fleet#

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

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

# create_fleet method definition

def create_fleet(
    self,
    *,
    LaunchTemplateConfigs: Sequence[FleetLaunchTemplateConfigRequestTypeDef],  # (1)
    TargetCapacitySpecification: TargetCapacitySpecificationRequestTypeDef,  # (2)
    DryRun: bool = ...,
    ClientToken: str = ...,
    SpotOptions: SpotOptionsRequestTypeDef = ...,  # (3)
    OnDemandOptions: OnDemandOptionsRequestTypeDef = ...,  # (4)
    ExcessCapacityTerminationPolicy: FleetExcessCapacityTerminationPolicyType = ...,  # (5)
    TerminateInstancesWithExpiration: bool = ...,
    Type: FleetTypeType = ...,  # (6)
    ValidFrom: TimestampTypeDef = ...,
    ValidUntil: TimestampTypeDef = ...,
    ReplaceUnhealthyInstances: bool = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (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 TagSpecificationOutputTypeDef
  8. See CreateFleetResultTypeDef
# create_fleet method usage example with argument unpacking

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

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

create_flow_logs#

Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.

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

# create_flow_logs method definition

def create_flow_logs(
    self,
    *,
    ResourceIds: Sequence[str],
    ResourceType: FlowLogsResourceTypeType,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
    DeliverLogsPermissionArn: str = ...,
    DeliverCrossAccountRole: str = ...,
    LogGroupName: str = ...,
    TrafficType: TrafficTypeType = ...,  # (2)
    LogDestinationType: LogDestinationTypeType = ...,  # (3)
    LogDestination: str = ...,
    LogFormat: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (4)
    MaxAggregationInterval: int = ...,
    DestinationOptions: DestinationOptionsRequestTypeDef = ...,  # (5)
) -> CreateFlowLogsResultTypeDef:  # (6)
    ...
  1. See FlowLogsResourceTypeType
  2. See TrafficTypeType
  3. See LogDestinationTypeType
  4. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  5. See DestinationOptionsRequestTypeDef
  6. See CreateFlowLogsResultTypeDef
# create_flow_logs method usage example with argument unpacking

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

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

create_fpga_image#

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

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

# create_fpga_image method definition

def create_fpga_image(
    self,
    *,
    InputStorageLocation: StorageLocationTypeDef,  # (1)
    DryRun: bool = ...,
    LogsStorageLocation: StorageLocationTypeDef = ...,  # (1)
    Description: str = ...,
    Name: str = ...,
    ClientToken: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (3)
) -> CreateFpgaImageResultTypeDef:  # (4)
    ...
  1. See StorageLocationTypeDef
  2. See StorageLocationTypeDef
  3. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  4. See CreateFpgaImageResultTypeDef
# create_fpga_image method usage example with argument unpacking

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

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

create_image#

Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

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

# create_image method definition

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

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

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

create_instance_connect_endpoint#

Creates an EC2 Instance Connect Endpoint.

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

# create_instance_connect_endpoint method definition

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

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

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

create_instance_event_window#

Creates an event window in which scheduled events for the associated Amazon EC2 instances can run.

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

# create_instance_event_window method definition

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

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

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

create_instance_export_task#

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

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

# create_instance_export_task method definition

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

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

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

create_internet_gateway#

Creates an internet gateway for use with a VPC.

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

# create_internet_gateway method definition

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

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

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

create_ipam#

Create an IPAM.

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

# create_ipam method definition

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

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

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

create_ipam_external_resource_verification_token#

Create a verification token.

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

# create_ipam_external_resource_verification_token method definition

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

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

parent.create_ipam_external_resource_verification_token(**kwargs)
  1. See CreateIpamExternalResourceVerificationTokenRequestTypeDef

create_ipam_pool#

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

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

# create_ipam_pool method definition

def create_ipam_pool(
    self,
    *,
    IpamScopeId: str,
    AddressFamily: AddressFamilyType,  # (1)
    DryRun: bool = ...,
    Locale: str = ...,
    SourceIpamPoolId: str = ...,
    Description: str = ...,
    AutoImport: bool = ...,
    PubliclyAdvertisable: bool = ...,
    AllocationMinNetmaskLength: int = ...,
    AllocationMaxNetmaskLength: int = ...,
    AllocationDefaultNetmaskLength: int = ...,
    AllocationResourceTags: Sequence[RequestIpamResourceTagTypeDef] = ...,  # (2)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (3)
    ClientToken: str = ...,
    AwsService: IpamPoolAwsServiceType = ...,  # (4)
    PublicIpSource: IpamPoolPublicIpSourceType = ...,  # (5)
    SourceResource: IpamPoolSourceResourceRequestTypeDef = ...,  # (6)
) -> CreateIpamPoolResultTypeDef:  # (7)
    ...
  1. See AddressFamilyType
  2. See RequestIpamResourceTagTypeDef
  3. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  4. See IpamPoolAwsServiceType
  5. See IpamPoolPublicIpSourceType
  6. See IpamPoolSourceResourceRequestTypeDef
  7. See CreateIpamPoolResultTypeDef
# create_ipam_pool method usage example with argument unpacking

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

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

create_ipam_resource_discovery#

Creates an IPAM resource discovery.

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

# create_ipam_resource_discovery method definition

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

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

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

create_ipam_scope#

Create an IPAM scope.

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

# create_ipam_scope method definition

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

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

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

create_key_pair#

Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified format.

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

# create_key_pair method definition

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

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

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

create_launch_template#

Creates a launch template.

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

# create_launch_template method definition

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

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

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

create_launch_template_version#

Creates a new version of a launch template.

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

# create_launch_template_version method definition

def create_launch_template_version(
    self,
    *,
    LaunchTemplateData: RequestLaunchTemplateDataTypeDef,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
    SourceVersion: str = ...,
    VersionDescription: str = ...,
    ResolveAlias: bool = ...,
) -> CreateLaunchTemplateVersionResultTypeDef:  # (2)
    ...
  1. See RequestLaunchTemplateDataTypeDef
  2. See CreateLaunchTemplateVersionResultTypeDef
# create_launch_template_version method usage example with argument unpacking

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

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

create_local_gateway_route#

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

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

# create_local_gateway_route method definition

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

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

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

create_local_gateway_route_table#

Creates a local gateway route table.

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

# create_local_gateway_route_table method definition

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

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

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

create_local_gateway_route_table_virtual_interface_group_association#

Creates a local gateway route table virtual interface group association.

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

# create_local_gateway_route_table_virtual_interface_group_association method definition

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

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

parent.create_local_gateway_route_table_virtual_interface_group_association(**kwargs)
  1. See CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequestTypeDef

create_local_gateway_route_table_vpc_association#

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

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

# create_local_gateway_route_table_vpc_association method definition

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

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

parent.create_local_gateway_route_table_vpc_association(**kwargs)
  1. See CreateLocalGatewayRouteTableVpcAssociationRequestTypeDef

create_managed_prefix_list#

Creates a managed prefix list.

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

# create_managed_prefix_list method definition

def create_managed_prefix_list(
    self,
    *,
    PrefixListName: str,
    MaxEntries: int,
    AddressFamily: str,
    DryRun: bool = ...,
    Entries: Sequence[AddPrefixListEntryTypeDef] = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    ClientToken: str = ...,
) -> CreateManagedPrefixListResultTypeDef:  # (3)
    ...
  1. See AddPrefixListEntryTypeDef
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See CreateManagedPrefixListResultTypeDef
# create_managed_prefix_list method usage example with argument unpacking

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

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

create_nat_gateway#

Creates a NAT gateway in the specified subnet.

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

# create_nat_gateway method definition

def create_nat_gateway(
    self,
    *,
    SubnetId: str,
    AllocationId: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    ConnectivityType: ConnectivityTypeType = ...,  # (2)
    PrivateIpAddress: str = ...,
    SecondaryAllocationIds: Sequence[str] = ...,
    SecondaryPrivateIpAddresses: Sequence[str] = ...,
    SecondaryPrivateIpAddressCount: int = ...,
) -> CreateNatGatewayResultTypeDef:  # (3)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See ConnectivityTypeType
  3. See CreateNatGatewayResultTypeDef
# create_nat_gateway method usage example with argument unpacking

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

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

create_network_acl#

Creates a network ACL in a VPC.

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

# create_network_acl method definition

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

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

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

create_network_acl_entry#

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

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

# create_network_acl_entry method definition

def create_network_acl_entry(
    self,
    *,
    NetworkAclId: str,
    RuleNumber: int,
    Protocol: str,
    RuleAction: RuleActionType,  # (1)
    Egress: bool,
    DryRun: bool = ...,
    CidrBlock: str = ...,
    Ipv6CidrBlock: str = ...,
    IcmpTypeCode: IcmpTypeCodeTypeDef = ...,  # (2)
    PortRange: PortRangeTypeDef = ...,  # (3)
) -> EmptyResponseMetadataTypeDef:  # (4)
    ...
  1. See RuleActionType
  2. See IcmpTypeCodeTypeDef
  3. See PortRangeTypeDef
  4. See EmptyResponseMetadataTypeDef
# create_network_acl_entry method usage example with argument unpacking

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

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

create_network_insights_access_scope#

Creates a Network Access Scope.

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

# create_network_insights_access_scope method definition

def create_network_insights_access_scope(
    self,
    *,
    ClientToken: str,
    MatchPaths: Sequence[AccessScopePathRequestTypeDef] = ...,  # (1)
    ExcludePaths: Sequence[AccessScopePathRequestTypeDef] = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (3)
    DryRun: bool = ...,
) -> CreateNetworkInsightsAccessScopeResultTypeDef:  # (4)
    ...
  1. See AccessScopePathRequestTypeDef
  2. See AccessScopePathRequestTypeDef
  3. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  4. See CreateNetworkInsightsAccessScopeResultTypeDef
# create_network_insights_access_scope method usage example with argument unpacking

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

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

create_network_insights_path#

Creates a path to analyze for reachability.

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

# create_network_insights_path method definition

def create_network_insights_path(
    self,
    *,
    Source: str,
    Protocol: ProtocolType,  # (1)
    ClientToken: str,
    SourceIp: str = ...,
    DestinationIp: str = ...,
    Destination: str = ...,
    DestinationPort: int = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    DryRun: bool = ...,
    FilterAtSource: PathRequestFilterTypeDef = ...,  # (3)
    FilterAtDestination: PathRequestFilterTypeDef = ...,  # (3)
) -> CreateNetworkInsightsPathResultTypeDef:  # (5)
    ...
  1. See ProtocolType
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See PathRequestFilterTypeDef
  4. See PathRequestFilterTypeDef
  5. See CreateNetworkInsightsPathResultTypeDef
# create_network_insights_path method usage example with argument unpacking

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

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

create_network_interface#

Creates a network interface in the specified subnet.

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

# create_network_interface method definition

def create_network_interface(
    self,
    *,
    SubnetId: str,
    Ipv4Prefixes: Sequence[Ipv4PrefixSpecificationRequestTypeDef] = ...,  # (1)
    Ipv4PrefixCount: int = ...,
    Ipv6Prefixes: Sequence[Ipv6PrefixSpecificationRequestTypeDef] = ...,  # (2)
    Ipv6PrefixCount: int = ...,
    InterfaceType: NetworkInterfaceCreationTypeType = ...,  # (3)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (4)
    ClientToken: str = ...,
    EnablePrimaryIpv6: bool = ...,
    ConnectionTrackingSpecification: ConnectionTrackingSpecificationRequestTypeDef = ...,  # (5)
    Operator: OperatorRequestTypeDef = ...,  # (6)
    Description: str = ...,
    PrivateIpAddress: str = ...,
    Groups: Sequence[str] = ...,
    PrivateIpAddresses: Sequence[PrivateIpAddressSpecificationTypeDef] = ...,  # (7)
    SecondaryPrivateIpAddressCount: int = ...,
    Ipv6Addresses: Sequence[InstanceIpv6AddressTypeDef] = ...,  # (8)
    Ipv6AddressCount: int = ...,
    DryRun: bool = ...,
) -> CreateNetworkInterfaceResultTypeDef:  # (9)
    ...
  1. See Ipv4PrefixSpecificationRequestTypeDef
  2. See Ipv6PrefixSpecificationRequestTypeDef
  3. See NetworkInterfaceCreationTypeType
  4. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  5. See ConnectionTrackingSpecificationRequestTypeDef
  6. See OperatorRequestTypeDef
  7. See PrivateIpAddressSpecificationTypeDef
  8. See InstanceIpv6AddressTypeDef
  9. See CreateNetworkInterfaceResultTypeDef
# create_network_interface method usage example with argument unpacking

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

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

create_network_interface_permission#

Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.

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

# create_network_interface_permission method definition

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

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

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

create_placement_group#

Creates a placement group in which to launch instances.

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

# create_placement_group method definition

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

kwargs: CreatePlacementGroupRequestTypeDef = {  # (1)
    "PartitionCount": ...,
}

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

create_public_ipv4_pool#

Creates a public IPv4 address pool.

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

# create_public_ipv4_pool method definition

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

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

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

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

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

# create_replace_root_volume_task method definition

def create_replace_root_volume_task(
    self,
    *,
    InstanceId: str,
    SnapshotId: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    ImageId: str = ...,
    DeleteReplacedRootVolume: bool = ...,
) -> CreateReplaceRootVolumeTaskResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See CreateReplaceRootVolumeTaskResultTypeDef
# create_replace_root_volume_task method usage example with argument unpacking

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

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

create_reserved_instances_listing#

Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace.

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

# create_reserved_instances_listing method definition

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

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

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

create_restore_image_task#

Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask.

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

# create_restore_image_task method definition

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

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

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

create_route#

Creates a route in a route table within a VPC.

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

# create_route method definition

def create_route(
    self,
    *,
    RouteTableId: str,
    DestinationPrefixListId: str = ...,
    VpcEndpointId: str = ...,
    TransitGatewayId: str = ...,
    LocalGatewayId: str = ...,
    CarrierGatewayId: str = ...,
    CoreNetworkArn: str = ...,
    DryRun: bool = ...,
    DestinationCidrBlock: str = ...,
    GatewayId: str = ...,
    DestinationIpv6CidrBlock: str = ...,
    EgressOnlyInternetGatewayId: str = ...,
    InstanceId: str = ...,
    NetworkInterfaceId: str = ...,
    VpcPeeringConnectionId: str = ...,
    NatGatewayId: str = ...,
) -> CreateRouteResultTypeDef:  # (1)
    ...
  1. See CreateRouteResultTypeDef
# create_route method usage example with argument unpacking

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

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

create_route_table#

Creates a route table for the specified VPC.

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

# create_route_table method definition

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

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

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

create_security_group#

Creates a security group.

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

# create_security_group method definition

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

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

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

create_snapshot#

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

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

# create_snapshot method definition

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

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

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

create_snapshots#

Creates crash-consistent snapshots of multiple EBS volumes attached to an Amazon EC2 instance.

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

# create_snapshots method definition

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

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

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

create_spot_datafeed_subscription#

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs.

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

# create_spot_datafeed_subscription method definition

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

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

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

create_store_image_task#

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

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

# create_store_image_task method definition

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

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

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

create_subnet#

Creates a subnet in the specified VPC.

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

# create_subnet method definition

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

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

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

create_subnet_cidr_reservation#

Creates a subnet CIDR reservation.

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

# create_subnet_cidr_reservation method definition

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

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

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

create_tags#

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

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

# create_tags method definition

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

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

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

create_traffic_mirror_filter#

Creates a Traffic Mirror filter.

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

# create_traffic_mirror_filter method definition

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

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

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

create_traffic_mirror_filter_rule#

Creates a Traffic Mirror filter rule.

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

# create_traffic_mirror_filter_rule method definition

def create_traffic_mirror_filter_rule(
    self,
    *,
    TrafficMirrorFilterId: str,
    TrafficDirection: TrafficDirectionType,  # (1)
    RuleNumber: int,
    RuleAction: TrafficMirrorRuleActionType,  # (2)
    DestinationCidrBlock: str,
    SourceCidrBlock: str,
    DestinationPortRange: TrafficMirrorPortRangeRequestTypeDef = ...,  # (3)
    SourcePortRange: TrafficMirrorPortRangeRequestTypeDef = ...,  # (3)
    Protocol: int = ...,
    Description: str = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (5)
) -> CreateTrafficMirrorFilterRuleResultTypeDef:  # (6)
    ...
  1. See TrafficDirectionType
  2. See TrafficMirrorRuleActionType
  3. See TrafficMirrorPortRangeRequestTypeDef
  4. See TrafficMirrorPortRangeRequestTypeDef
  5. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  6. See CreateTrafficMirrorFilterRuleResultTypeDef
# create_traffic_mirror_filter_rule method usage example with argument unpacking

kwargs: CreateTrafficMirrorFilterRuleRequestTypeDef = {  # (1)
    "TrafficMirrorFilterId": ...,
    "TrafficDirection": ...,
    "RuleNumber": ...,
    "RuleAction": ...,
    "DestinationCidrBlock": ...,
    "SourceCidrBlock": ...,
}

parent.create_traffic_mirror_filter_rule(**kwargs)
  1. See CreateTrafficMirrorFilterRuleRequestTypeDef

create_traffic_mirror_session#

Creates a Traffic Mirror session.

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

# create_traffic_mirror_session method definition

def create_traffic_mirror_session(
    self,
    *,
    NetworkInterfaceId: str,
    TrafficMirrorTargetId: str,
    TrafficMirrorFilterId: str,
    SessionNumber: int,
    PacketLength: int = ...,
    VirtualNetworkId: int = ...,
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> CreateTrafficMirrorSessionResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See CreateTrafficMirrorSessionResultTypeDef
# create_traffic_mirror_session method usage example with argument unpacking

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

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

create_traffic_mirror_target#

Creates a target for your Traffic Mirror session.

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

# create_traffic_mirror_target method definition

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

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

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

create_transit_gateway#

Creates a transit gateway.

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

# create_transit_gateway method definition

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

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

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

create_transit_gateway_connect#

Creates a Connect attachment from a specified transit gateway attachment.

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

# create_transit_gateway_connect method definition

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

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

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

create_transit_gateway_connect_peer#

Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance.

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

# create_transit_gateway_connect_peer method definition

def create_transit_gateway_connect_peer(
    self,
    *,
    TransitGatewayAttachmentId: str,
    PeerAddress: str,
    InsideCidrBlocks: Sequence[str],
    TransitGatewayAddress: str = ...,
    BgpOptions: TransitGatewayConnectRequestBgpOptionsTypeDef = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateTransitGatewayConnectPeerResultTypeDef:  # (3)
    ...
  1. See TransitGatewayConnectRequestBgpOptionsTypeDef
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See CreateTransitGatewayConnectPeerResultTypeDef
# create_transit_gateway_connect_peer method usage example with argument unpacking

kwargs: CreateTransitGatewayConnectPeerRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
    "PeerAddress": ...,
    "InsideCidrBlocks": ...,
}

parent.create_transit_gateway_connect_peer(**kwargs)
  1. See CreateTransitGatewayConnectPeerRequestTypeDef

create_transit_gateway_multicast_domain#

Creates a multicast domain using the specified transit gateway.

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

# create_transit_gateway_multicast_domain method definition

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

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

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

create_transit_gateway_peering_attachment#

Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter).

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

# create_transit_gateway_peering_attachment method definition

def create_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayId: str,
    PeerTransitGatewayId: str,
    PeerAccountId: str,
    PeerRegion: str,
    Options: CreateTransitGatewayPeeringAttachmentRequestOptionsTypeDef = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateTransitGatewayPeeringAttachmentResultTypeDef:  # (3)
    ...
  1. See CreateTransitGatewayPeeringAttachmentRequestOptionsTypeDef
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See CreateTransitGatewayPeeringAttachmentResultTypeDef
# create_transit_gateway_peering_attachment method usage example with argument unpacking

kwargs: CreateTransitGatewayPeeringAttachmentRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
    "PeerTransitGatewayId": ...,
    "PeerAccountId": ...,
    "PeerRegion": ...,
}

parent.create_transit_gateway_peering_attachment(**kwargs)
  1. See CreateTransitGatewayPeeringAttachmentRequestTypeDef

create_transit_gateway_policy_table#

Creates a transit gateway policy table.

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

# create_transit_gateway_policy_table method definition

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

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

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

create_transit_gateway_prefix_list_reference#

Creates a reference (route) to a prefix list in a specified transit gateway route table.

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

# create_transit_gateway_prefix_list_reference method definition

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

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

parent.create_transit_gateway_prefix_list_reference(**kwargs)
  1. See CreateTransitGatewayPrefixListReferenceRequestTypeDef

create_transit_gateway_route#

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

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

# create_transit_gateway_route method definition

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

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

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

create_transit_gateway_route_table#

Creates a route table for the specified transit gateway.

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

# create_transit_gateway_route_table method definition

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

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

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

create_transit_gateway_route_table_announcement#

Advertises a new transit gateway route table.

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

# create_transit_gateway_route_table_announcement method definition

def create_transit_gateway_route_table_announcement(
    self,
    *,
    TransitGatewayRouteTableId: str,
    PeeringAttachmentId: str,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> CreateTransitGatewayRouteTableAnnouncementResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See CreateTransitGatewayRouteTableAnnouncementResultTypeDef
# create_transit_gateway_route_table_announcement method usage example with argument unpacking

kwargs: CreateTransitGatewayRouteTableAnnouncementRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "PeeringAttachmentId": ...,
}

parent.create_transit_gateway_route_table_announcement(**kwargs)
  1. See CreateTransitGatewayRouteTableAnnouncementRequestTypeDef

create_transit_gateway_vpc_attachment#

Attaches the specified VPC to the specified transit gateway.

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

# create_transit_gateway_vpc_attachment method definition

def create_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayId: str,
    VpcId: str,
    SubnetIds: Sequence[str],
    Options: CreateTransitGatewayVpcAttachmentRequestOptionsTypeDef = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> CreateTransitGatewayVpcAttachmentResultTypeDef:  # (3)
    ...
  1. See CreateTransitGatewayVpcAttachmentRequestOptionsTypeDef
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See CreateTransitGatewayVpcAttachmentResultTypeDef
# create_transit_gateway_vpc_attachment method usage example with argument unpacking

kwargs: CreateTransitGatewayVpcAttachmentRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
    "VpcId": ...,
    "SubnetIds": ...,
}

parent.create_transit_gateway_vpc_attachment(**kwargs)
  1. See CreateTransitGatewayVpcAttachmentRequestTypeDef

create_verified_access_endpoint#

An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy.

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

# create_verified_access_endpoint method definition

def create_verified_access_endpoint(
    self,
    *,
    VerifiedAccessGroupId: str,
    EndpointType: VerifiedAccessEndpointTypeType,  # (1)
    AttachmentType: VerifiedAccessEndpointAttachmentTypeType,  # (2)
    DomainCertificateArn: str = ...,
    ApplicationDomain: str = ...,
    EndpointDomainPrefix: str = ...,
    SecurityGroupIds: Sequence[str] = ...,
    LoadBalancerOptions: CreateVerifiedAccessEndpointLoadBalancerOptionsTypeDef = ...,  # (3)
    NetworkInterfaceOptions: CreateVerifiedAccessEndpointEniOptionsTypeDef = ...,  # (4)
    Description: str = ...,
    PolicyDocument: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (5)
    ClientToken: str = ...,
    DryRun: bool = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (6)
    RdsOptions: CreateVerifiedAccessEndpointRdsOptionsTypeDef = ...,  # (7)
    CidrOptions: CreateVerifiedAccessEndpointCidrOptionsTypeDef = ...,  # (8)
) -> CreateVerifiedAccessEndpointResultTypeDef:  # (9)
    ...
  1. See VerifiedAccessEndpointTypeType
  2. See VerifiedAccessEndpointAttachmentTypeType
  3. See CreateVerifiedAccessEndpointLoadBalancerOptionsTypeDef
  4. See CreateVerifiedAccessEndpointEniOptionsTypeDef
  5. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  6. See VerifiedAccessSseSpecificationRequestTypeDef
  7. See CreateVerifiedAccessEndpointRdsOptionsTypeDef
  8. See CreateVerifiedAccessEndpointCidrOptionsTypeDef
  9. See CreateVerifiedAccessEndpointResultTypeDef
# create_verified_access_endpoint method usage example with argument unpacking

kwargs: CreateVerifiedAccessEndpointRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
    "EndpointType": ...,
    "AttachmentType": ...,
}

parent.create_verified_access_endpoint(**kwargs)
  1. See CreateVerifiedAccessEndpointRequestTypeDef

create_verified_access_group#

An Amazon Web Services Verified Access group is a collection of Amazon Web Services Verified Access endpoints who's associated applications have similar security requirements.

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

# create_verified_access_group method definition

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

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

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

create_verified_access_instance#

An Amazon Web Services Verified Access instance is a regional entity that evaluates application requests and grants access only when your security requirements are met.

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

# create_verified_access_instance method definition

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

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

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

create_verified_access_trust_provider#

A trust provider is a third-party entity that creates, maintains, and manages identity information for users and devices.

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

# create_verified_access_trust_provider method definition

def create_verified_access_trust_provider(
    self,
    *,
    TrustProviderType: TrustProviderTypeType,  # (1)
    PolicyReferenceName: str,
    UserTrustProviderType: UserTrustProviderTypeType = ...,  # (2)
    DeviceTrustProviderType: DeviceTrustProviderTypeType = ...,  # (3)
    OidcOptions: CreateVerifiedAccessTrustProviderOidcOptionsTypeDef = ...,  # (4)
    DeviceOptions: CreateVerifiedAccessTrustProviderDeviceOptionsTypeDef = ...,  # (5)
    Description: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (6)
    ClientToken: str = ...,
    DryRun: bool = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (7)
    NativeApplicationOidcOptions: CreateVerifiedAccessNativeApplicationOidcOptionsTypeDef = ...,  # (8)
) -> CreateVerifiedAccessTrustProviderResultTypeDef:  # (9)
    ...
  1. See TrustProviderTypeType
  2. See UserTrustProviderTypeType
  3. See DeviceTrustProviderTypeType
  4. See CreateVerifiedAccessTrustProviderOidcOptionsTypeDef
  5. See CreateVerifiedAccessTrustProviderDeviceOptionsTypeDef
  6. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  7. See VerifiedAccessSseSpecificationRequestTypeDef
  8. See CreateVerifiedAccessNativeApplicationOidcOptionsTypeDef
  9. See CreateVerifiedAccessTrustProviderResultTypeDef
# create_verified_access_trust_provider method usage example with argument unpacking

kwargs: CreateVerifiedAccessTrustProviderRequestTypeDef = {  # (1)
    "TrustProviderType": ...,
    "PolicyReferenceName": ...,
}

parent.create_verified_access_trust_provider(**kwargs)
  1. See CreateVerifiedAccessTrustProviderRequestTypeDef

create_volume#

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

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

# create_volume method definition

def create_volume(
    self,
    *,
    AvailabilityZone: str,
    Encrypted: bool = ...,
    Iops: int = ...,
    KmsKeyId: str = ...,
    OutpostArn: str = ...,
    Size: int = ...,
    SnapshotId: str = ...,
    VolumeType: VolumeTypeType = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    MultiAttachEnabled: bool = ...,
    Throughput: int = ...,
    ClientToken: str = ...,
    Operator: OperatorRequestTypeDef = ...,  # (3)
    DryRun: bool = ...,
) -> VolumeResponseTypeDef:  # (4)
    ...
  1. See VolumeTypeType
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See OperatorRequestTypeDef
  4. See VolumeResponseTypeDef
# create_volume method usage example with argument unpacking

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

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

create_vpc#

Creates a VPC with the specified CIDR blocks.

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

# create_vpc method definition

def create_vpc(
    self,
    *,
    CidrBlock: str = ...,
    Ipv6Pool: str = ...,
    Ipv6CidrBlock: str = ...,
    Ipv4IpamPoolId: str = ...,
    Ipv4NetmaskLength: int = ...,
    Ipv6IpamPoolId: str = ...,
    Ipv6NetmaskLength: int = ...,
    Ipv6CidrBlockNetworkBorderGroup: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    InstanceTenancy: TenancyType = ...,  # (2)
    AmazonProvidedIpv6CidrBlock: bool = ...,
) -> CreateVpcResultTypeDef:  # (3)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See TenancyType
  3. See CreateVpcResultTypeDef
# create_vpc method usage example with argument unpacking

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

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

create_vpc_block_public_access_exclusion#

Create a VPC Block Public Access (BPA) exclusion.

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

# create_vpc_block_public_access_exclusion method definition

def create_vpc_block_public_access_exclusion(
    self,
    *,
    InternetGatewayExclusionMode: InternetGatewayExclusionModeType,  # (1)
    DryRun: bool = ...,
    SubnetId: str = ...,
    VpcId: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
) -> CreateVpcBlockPublicAccessExclusionResultTypeDef:  # (3)
    ...
  1. See InternetGatewayExclusionModeType
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See CreateVpcBlockPublicAccessExclusionResultTypeDef
# create_vpc_block_public_access_exclusion method usage example with argument unpacking

kwargs: CreateVpcBlockPublicAccessExclusionRequestTypeDef = {  # (1)
    "InternetGatewayExclusionMode": ...,
}

parent.create_vpc_block_public_access_exclusion(**kwargs)
  1. See CreateVpcBlockPublicAccessExclusionRequestTypeDef

create_vpc_endpoint#

Creates a VPC endpoint.

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

# create_vpc_endpoint method definition

def create_vpc_endpoint(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    VpcEndpointType: VpcEndpointTypeType = ...,  # (1)
    ServiceName: str = ...,
    PolicyDocument: str = ...,
    RouteTableIds: Sequence[str] = ...,
    SubnetIds: Sequence[str] = ...,
    SecurityGroupIds: Sequence[str] = ...,
    IpAddressType: IpAddressTypeType = ...,  # (2)
    DnsOptions: DnsOptionsSpecificationTypeDef = ...,  # (3)
    ClientToken: str = ...,
    PrivateDnsEnabled: bool = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (4)
    SubnetConfigurations: Sequence[SubnetConfigurationTypeDef] = ...,  # (5)
    ServiceNetworkArn: str = ...,
    ResourceConfigurationArn: str = ...,
    ServiceRegion: str = ...,
) -> CreateVpcEndpointResultTypeDef:  # (6)
    ...
  1. See VpcEndpointTypeType
  2. See IpAddressTypeType
  3. See DnsOptionsSpecificationTypeDef
  4. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  5. See SubnetConfigurationTypeDef
  6. See CreateVpcEndpointResultTypeDef
# create_vpc_endpoint method usage example with argument unpacking

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

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

create_vpc_endpoint_connection_notification#

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

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

# create_vpc_endpoint_connection_notification method definition

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

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

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

create_vpc_endpoint_service_configuration#

Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, users, and IAM roles) can connect.

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

# create_vpc_endpoint_service_configuration method definition

def create_vpc_endpoint_service_configuration(
    self,
    *,
    DryRun: bool = ...,
    AcceptanceRequired: bool = ...,
    PrivateDnsName: str = ...,
    NetworkLoadBalancerArns: Sequence[str] = ...,
    GatewayLoadBalancerArns: Sequence[str] = ...,
    SupportedIpAddressTypes: Sequence[str] = ...,
    SupportedRegions: Sequence[str] = ...,
    ClientToken: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
) -> CreateVpcEndpointServiceConfigurationResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See CreateVpcEndpointServiceConfigurationResultTypeDef
# create_vpc_endpoint_service_configuration method usage example with argument unpacking

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

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

create_vpc_peering_connection#

Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection.

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

# create_vpc_peering_connection method definition

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

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

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

create_vpn_connection#

Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway.

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

# create_vpn_connection method definition

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

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

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

create_vpn_connection_route#

Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway.

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

# create_vpn_connection_route method definition

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

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

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

create_vpn_gateway#

Creates a virtual private gateway.

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

# create_vpn_gateway method definition

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

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

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

delete_carrier_gateway#

Deletes a carrier gateway.

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

# delete_carrier_gateway method definition

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

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

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

delete_client_vpn_endpoint#

Deletes the specified Client VPN endpoint.

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

# delete_client_vpn_endpoint method definition

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

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

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

delete_client_vpn_route#

Deletes a route from a Client VPN endpoint.

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

# delete_client_vpn_route method definition

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

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

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

delete_coip_cidr#

Deletes a range of customer-owned IP addresses.

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

# delete_coip_cidr method definition

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

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

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

delete_coip_pool#

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

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

# delete_coip_pool method definition

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

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

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

delete_customer_gateway#

Deletes the specified customer gateway.

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

# delete_customer_gateway method definition

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

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

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

delete_dhcp_options#

Deletes the specified set of DHCP options.

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

# delete_dhcp_options method definition

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

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

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

delete_egress_only_internet_gateway#

Deletes an egress-only internet gateway.

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

# delete_egress_only_internet_gateway method definition

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

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

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

delete_fleets#

Deletes the specified EC2 Fleets.

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

# delete_fleets method definition

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

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

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

delete_flow_logs#

Deletes one or more flow logs.

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

# delete_flow_logs method definition

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

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

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

delete_fpga_image#

Deletes the specified Amazon FPGA Image (AFI).

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

# delete_fpga_image method definition

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

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

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

delete_instance_connect_endpoint#

Deletes the specified EC2 Instance Connect Endpoint.

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

# delete_instance_connect_endpoint method definition

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

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

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

delete_instance_event_window#

Deletes the specified event window.

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

# delete_instance_event_window method definition

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

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

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

delete_internet_gateway#

Deletes the specified internet gateway.

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

# delete_internet_gateway method definition

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

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

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

delete_ipam#

Delete an IPAM.

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

# delete_ipam method definition

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

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

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

delete_ipam_external_resource_verification_token#

Delete a verification token.

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

# delete_ipam_external_resource_verification_token method definition

def delete_ipam_external_resource_verification_token(
    self,
    *,
    IpamExternalResourceVerificationTokenId: str,
    DryRun: bool = ...,
) -> DeleteIpamExternalResourceVerificationTokenResultTypeDef:  # (1)
    ...
  1. See DeleteIpamExternalResourceVerificationTokenResultTypeDef
# delete_ipam_external_resource_verification_token method usage example with argument unpacking

kwargs: DeleteIpamExternalResourceVerificationTokenRequestTypeDef = {  # (1)
    "IpamExternalResourceVerificationTokenId": ...,
}

parent.delete_ipam_external_resource_verification_token(**kwargs)
  1. See DeleteIpamExternalResourceVerificationTokenRequestTypeDef

delete_ipam_pool#

Delete an IPAM pool.

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

# delete_ipam_pool method definition

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

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

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

delete_ipam_resource_discovery#

Deletes an IPAM resource discovery.

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

# delete_ipam_resource_discovery method definition

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

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

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

delete_ipam_scope#

Delete the scope for an IPAM.

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

# delete_ipam_scope method definition

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

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

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

delete_key_pair#

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

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

# delete_key_pair method definition

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

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

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

delete_launch_template#

Deletes a launch template.

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

# delete_launch_template method definition

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

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

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

delete_launch_template_versions#

Deletes one or more versions of a launch template.

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

# delete_launch_template_versions method definition

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

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

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

delete_local_gateway_route#

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

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

# delete_local_gateway_route method definition

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

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

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

delete_local_gateway_route_table#

Deletes a local gateway route table.

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

# delete_local_gateway_route_table method definition

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

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

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

delete_local_gateway_route_table_virtual_interface_group_association#

Deletes a local gateway route table virtual interface group association.

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

# delete_local_gateway_route_table_virtual_interface_group_association method definition

def delete_local_gateway_route_table_virtual_interface_group_association(
    self,
    *,
    LocalGatewayRouteTableVirtualInterfaceGroupAssociationId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResultTypeDef
# delete_local_gateway_route_table_virtual_interface_group_association method usage example with argument unpacking

kwargs: DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId": ...,
}

parent.delete_local_gateway_route_table_virtual_interface_group_association(**kwargs)
  1. See DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequestTypeDef

delete_local_gateway_route_table_vpc_association#

Deletes the specified association between a VPC and local gateway route table.

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

# delete_local_gateway_route_table_vpc_association method definition

def delete_local_gateway_route_table_vpc_association(
    self,
    *,
    LocalGatewayRouteTableVpcAssociationId: str,
    DryRun: bool = ...,
) -> DeleteLocalGatewayRouteTableVpcAssociationResultTypeDef:  # (1)
    ...
  1. See DeleteLocalGatewayRouteTableVpcAssociationResultTypeDef
# delete_local_gateway_route_table_vpc_association method usage example with argument unpacking

kwargs: DeleteLocalGatewayRouteTableVpcAssociationRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableVpcAssociationId": ...,
}

parent.delete_local_gateway_route_table_vpc_association(**kwargs)
  1. See DeleteLocalGatewayRouteTableVpcAssociationRequestTypeDef

delete_managed_prefix_list#

Deletes the specified managed prefix list.

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

# delete_managed_prefix_list method definition

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

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

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

delete_nat_gateway#

Deletes the specified NAT gateway.

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

# delete_nat_gateway method definition

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

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

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

delete_network_acl#

Deletes the specified network ACL.

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

# delete_network_acl method definition

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

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

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

delete_network_acl_entry#

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

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

# delete_network_acl_entry method definition

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

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

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

delete_network_insights_access_scope#

Deletes the specified Network Access Scope.

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

# delete_network_insights_access_scope method definition

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

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

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

delete_network_insights_access_scope_analysis#

Deletes the specified Network Access Scope analysis.

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

# delete_network_insights_access_scope_analysis method definition

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

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

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

delete_network_insights_analysis#

Deletes the specified network insights analysis.

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

# delete_network_insights_analysis method definition

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

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

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

delete_network_insights_path#

Deletes the specified path.

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

# delete_network_insights_path method definition

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

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

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

delete_network_interface#

Deletes the specified network interface.

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

# delete_network_interface method definition

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

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

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

delete_network_interface_permission#

Deletes a permission for a network interface.

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

# delete_network_interface_permission method definition

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

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

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

delete_placement_group#

Deletes the specified placement group.

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

# delete_placement_group method definition

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

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

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

delete_public_ipv4_pool#

Delete a public IPv4 pool.

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

# delete_public_ipv4_pool method definition

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

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

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

delete_queued_reserved_instances#

Deletes the queued purchases for the specified Reserved Instances.

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

# delete_queued_reserved_instances method definition

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

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

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

delete_route#

Deletes the specified route from the specified route table.

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

# delete_route method definition

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

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

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

delete_route_table#

Deletes the specified route table.

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

# delete_route_table method definition

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

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

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

delete_security_group#

Deletes a security group.

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

# delete_security_group method definition

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

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

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

delete_snapshot#

Deletes the specified snapshot.

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

# delete_snapshot method definition

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

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

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

delete_spot_datafeed_subscription#

Deletes the data feed for Spot Instances.

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

# delete_spot_datafeed_subscription method definition

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

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

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

delete_subnet#

Deletes the specified subnet.

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

# delete_subnet method definition

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

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

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

delete_subnet_cidr_reservation#

Deletes a subnet CIDR reservation.

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

# delete_subnet_cidr_reservation method definition

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

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

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

delete_tags#

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

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

# delete_tags method definition

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

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

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

delete_traffic_mirror_filter#

Deletes the specified Traffic Mirror filter.

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

# delete_traffic_mirror_filter method definition

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

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

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

delete_traffic_mirror_filter_rule#

Deletes the specified Traffic Mirror rule.

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

# delete_traffic_mirror_filter_rule method definition

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

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

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

delete_traffic_mirror_session#

Deletes the specified Traffic Mirror session.

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

# delete_traffic_mirror_session method definition

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

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

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

delete_traffic_mirror_target#

Deletes the specified Traffic Mirror target.

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

# delete_traffic_mirror_target method definition

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

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

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

delete_transit_gateway#

Deletes the specified transit gateway.

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

# delete_transit_gateway method definition

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

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

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

delete_transit_gateway_connect#

Deletes the specified Connect attachment.

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

# delete_transit_gateway_connect method definition

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

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

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

delete_transit_gateway_connect_peer#

Deletes the specified Connect peer.

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

# delete_transit_gateway_connect_peer method definition

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

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

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

delete_transit_gateway_multicast_domain#

Deletes the specified transit gateway multicast domain.

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

# delete_transit_gateway_multicast_domain method definition

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

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

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

delete_transit_gateway_peering_attachment#

Deletes a transit gateway peering attachment.

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

# delete_transit_gateway_peering_attachment method definition

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

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

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

delete_transit_gateway_policy_table#

Deletes the specified transit gateway policy table.

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

# delete_transit_gateway_policy_table method definition

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

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

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

delete_transit_gateway_prefix_list_reference#

Deletes a reference (route) to a prefix list in a specified transit gateway route table.

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

# delete_transit_gateway_prefix_list_reference method definition

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

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

parent.delete_transit_gateway_prefix_list_reference(**kwargs)
  1. See DeleteTransitGatewayPrefixListReferenceRequestTypeDef

delete_transit_gateway_route#

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

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

# delete_transit_gateway_route method definition

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

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

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

delete_transit_gateway_route_table#

Deletes the specified transit gateway route table.

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

# delete_transit_gateway_route_table method definition

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

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

parent.delete_transit_gateway_route_table(**kwargs)
  1. See DeleteTransitGatewayRouteTableRequestTypeDef

delete_transit_gateway_route_table_announcement#

Advertises to the transit gateway that a transit gateway route table is deleted.

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

# delete_transit_gateway_route_table_announcement method definition

def delete_transit_gateway_route_table_announcement(
    self,
    *,
    TransitGatewayRouteTableAnnouncementId: str,
    DryRun: bool = ...,
) -> DeleteTransitGatewayRouteTableAnnouncementResultTypeDef:  # (1)
    ...
  1. See DeleteTransitGatewayRouteTableAnnouncementResultTypeDef
# delete_transit_gateway_route_table_announcement method usage example with argument unpacking

kwargs: DeleteTransitGatewayRouteTableAnnouncementRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableAnnouncementId": ...,
}

parent.delete_transit_gateway_route_table_announcement(**kwargs)
  1. See DeleteTransitGatewayRouteTableAnnouncementRequestTypeDef

delete_transit_gateway_vpc_attachment#

Deletes the specified VPC attachment.

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

# delete_transit_gateway_vpc_attachment method definition

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

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

parent.delete_transit_gateway_vpc_attachment(**kwargs)
  1. See DeleteTransitGatewayVpcAttachmentRequestTypeDef

delete_verified_access_endpoint#

Delete an Amazon Web Services Verified Access endpoint.

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

# delete_verified_access_endpoint method definition

def delete_verified_access_endpoint(
    self,
    *,
    VerifiedAccessEndpointId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DeleteVerifiedAccessEndpointResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessEndpointResultTypeDef
# delete_verified_access_endpoint method usage example with argument unpacking

kwargs: DeleteVerifiedAccessEndpointRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.delete_verified_access_endpoint(**kwargs)
  1. See DeleteVerifiedAccessEndpointRequestTypeDef

delete_verified_access_group#

Delete an Amazon Web Services Verified Access group.

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

# delete_verified_access_group method definition

def delete_verified_access_group(
    self,
    *,
    VerifiedAccessGroupId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DeleteVerifiedAccessGroupResultTypeDef:  # (1)
    ...
  1. See DeleteVerifiedAccessGroupResultTypeDef
# delete_verified_access_group method usage example with argument unpacking

kwargs: DeleteVerifiedAccessGroupRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.delete_verified_access_group(**kwargs)
  1. See DeleteVerifiedAccessGroupRequestTypeDef

delete_verified_access_instance#

Delete an Amazon Web Services Verified Access instance.

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

# delete_verified_access_instance method definition

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

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

parent.delete_verified_access_instance(**kwargs)
  1. See DeleteVerifiedAccessInstanceRequestTypeDef

delete_verified_access_trust_provider#

Delete an Amazon Web Services Verified Access trust provider.

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

# delete_verified_access_trust_provider method definition

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

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

parent.delete_verified_access_trust_provider(**kwargs)
  1. See DeleteVerifiedAccessTrustProviderRequestTypeDef

delete_volume#

Deletes the specified EBS volume.

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

# delete_volume method definition

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

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

parent.delete_volume(**kwargs)
  1. See DeleteVolumeRequestTypeDef

delete_vpc#

Deletes the specified VPC.

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

# delete_vpc method definition

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

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

parent.delete_vpc(**kwargs)
  1. See DeleteVpcRequestTypeDef

delete_vpc_block_public_access_exclusion#

Delete a VPC Block Public Access (BPA) exclusion.

Type annotations and code completion for boto3.client("ec2").delete_vpc_block_public_access_exclusion method. boto3 documentation

# delete_vpc_block_public_access_exclusion method definition

def delete_vpc_block_public_access_exclusion(
    self,
    *,
    ExclusionId: str,
    DryRun: bool = ...,
) -> DeleteVpcBlockPublicAccessExclusionResultTypeDef:  # (1)
    ...
  1. See DeleteVpcBlockPublicAccessExclusionResultTypeDef
# delete_vpc_block_public_access_exclusion method usage example with argument unpacking

kwargs: DeleteVpcBlockPublicAccessExclusionRequestTypeDef = {  # (1)
    "ExclusionId": ...,
}

parent.delete_vpc_block_public_access_exclusion(**kwargs)
  1. See DeleteVpcBlockPublicAccessExclusionRequestTypeDef

delete_vpc_endpoint_connection_notifications#

Deletes the specified VPC endpoint connection notifications.

Type annotations and code completion for boto3.client("ec2").delete_vpc_endpoint_connection_notifications method. boto3 documentation

# delete_vpc_endpoint_connection_notifications method definition

def delete_vpc_endpoint_connection_notifications(
    self,
    *,
    ConnectionNotificationIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointConnectionNotificationsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointConnectionNotificationsResultTypeDef
# delete_vpc_endpoint_connection_notifications method usage example with argument unpacking

kwargs: DeleteVpcEndpointConnectionNotificationsRequestTypeDef = {  # (1)
    "ConnectionNotificationIds": ...,
}

parent.delete_vpc_endpoint_connection_notifications(**kwargs)
  1. See DeleteVpcEndpointConnectionNotificationsRequestTypeDef

delete_vpc_endpoint_service_configurations#

Deletes the specified VPC endpoint service configurations.

Type annotations and code completion for boto3.client("ec2").delete_vpc_endpoint_service_configurations method. boto3 documentation

# delete_vpc_endpoint_service_configurations method definition

def delete_vpc_endpoint_service_configurations(
    self,
    *,
    ServiceIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointServiceConfigurationsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointServiceConfigurationsResultTypeDef
# delete_vpc_endpoint_service_configurations method usage example with argument unpacking

kwargs: DeleteVpcEndpointServiceConfigurationsRequestTypeDef = {  # (1)
    "ServiceIds": ...,
}

parent.delete_vpc_endpoint_service_configurations(**kwargs)
  1. See DeleteVpcEndpointServiceConfigurationsRequestTypeDef

delete_vpc_endpoints#

Deletes the specified VPC endpoints.

Type annotations and code completion for boto3.client("ec2").delete_vpc_endpoints method. boto3 documentation

# delete_vpc_endpoints method definition

def delete_vpc_endpoints(
    self,
    *,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> DeleteVpcEndpointsResultTypeDef:  # (1)
    ...
  1. See DeleteVpcEndpointsResultTypeDef
# delete_vpc_endpoints method usage example with argument unpacking

kwargs: DeleteVpcEndpointsRequestTypeDef = {  # (1)
    "VpcEndpointIds": ...,
}

parent.delete_vpc_endpoints(**kwargs)
  1. See DeleteVpcEndpointsRequestTypeDef

delete_vpc_peering_connection#

Deletes a VPC peering connection.

Type annotations and code completion for boto3.client("ec2").delete_vpc_peering_connection method. boto3 documentation

# delete_vpc_peering_connection method definition

def delete_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> DeleteVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See DeleteVpcPeeringConnectionResultTypeDef
# delete_vpc_peering_connection method usage example with argument unpacking

kwargs: DeleteVpcPeeringConnectionRequestTypeDef = {  # (1)
    "VpcPeeringConnectionId": ...,
}

parent.delete_vpc_peering_connection(**kwargs)
  1. See DeleteVpcPeeringConnectionRequestTypeDef

delete_vpn_connection#

Deletes the specified VPN connection.

Type annotations and code completion for boto3.client("ec2").delete_vpn_connection method. boto3 documentation

# delete_vpn_connection method definition

def delete_vpn_connection(
    self,
    *,
    VpnConnectionId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_vpn_connection method usage example with argument unpacking

kwargs: DeleteVpnConnectionRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
}

parent.delete_vpn_connection(**kwargs)
  1. See DeleteVpnConnectionRequestTypeDef

delete_vpn_connection_route#

Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway.

Type annotations and code completion for boto3.client("ec2").delete_vpn_connection_route method. boto3 documentation

# delete_vpn_connection_route method definition

def delete_vpn_connection_route(
    self,
    *,
    DestinationCidrBlock: str,
    VpnConnectionId: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_vpn_connection_route method usage example with argument unpacking

kwargs: DeleteVpnConnectionRouteRequestTypeDef = {  # (1)
    "DestinationCidrBlock": ...,
    "VpnConnectionId": ...,
}

parent.delete_vpn_connection_route(**kwargs)
  1. See DeleteVpnConnectionRouteRequestTypeDef

delete_vpn_gateway#

Deletes the specified virtual private gateway.

Type annotations and code completion for boto3.client("ec2").delete_vpn_gateway method. boto3 documentation

# delete_vpn_gateway method definition

def delete_vpn_gateway(
    self,
    *,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# delete_vpn_gateway method usage example with argument unpacking

kwargs: DeleteVpnGatewayRequestTypeDef = {  # (1)
    "VpnGatewayId": ...,
}

parent.delete_vpn_gateway(**kwargs)
  1. See DeleteVpnGatewayRequestTypeDef

deprovision_byoip_cidr#

Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

Type annotations and code completion for boto3.client("ec2").deprovision_byoip_cidr method. boto3 documentation

# deprovision_byoip_cidr method definition

def deprovision_byoip_cidr(
    self,
    *,
    Cidr: str,
    DryRun: bool = ...,
) -> DeprovisionByoipCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionByoipCidrResultTypeDef
# deprovision_byoip_cidr method usage example with argument unpacking

kwargs: DeprovisionByoipCidrRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.deprovision_byoip_cidr(**kwargs)
  1. See DeprovisionByoipCidrRequestTypeDef

deprovision_ipam_byoasn#

Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services account.

Type annotations and code completion for boto3.client("ec2").deprovision_ipam_byoasn method. boto3 documentation

# deprovision_ipam_byoasn method definition

def deprovision_ipam_byoasn(
    self,
    *,
    IpamId: str,
    Asn: str,
    DryRun: bool = ...,
) -> DeprovisionIpamByoasnResultTypeDef:  # (1)
    ...
  1. See DeprovisionIpamByoasnResultTypeDef
# deprovision_ipam_byoasn method usage example with argument unpacking

kwargs: DeprovisionIpamByoasnRequestTypeDef = {  # (1)
    "IpamId": ...,
    "Asn": ...,
}

parent.deprovision_ipam_byoasn(**kwargs)
  1. See DeprovisionIpamByoasnRequestTypeDef

deprovision_ipam_pool_cidr#

Deprovision a CIDR provisioned from an IPAM pool.

Type annotations and code completion for boto3.client("ec2").deprovision_ipam_pool_cidr method. boto3 documentation

# deprovision_ipam_pool_cidr method definition

def deprovision_ipam_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cidr: str = ...,
) -> DeprovisionIpamPoolCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionIpamPoolCidrResultTypeDef
# deprovision_ipam_pool_cidr method usage example with argument unpacking

kwargs: DeprovisionIpamPoolCidrRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.deprovision_ipam_pool_cidr(**kwargs)
  1. See DeprovisionIpamPoolCidrRequestTypeDef

deprovision_public_ipv4_pool_cidr#

Deprovision a CIDR from a public IPv4 pool.

Type annotations and code completion for boto3.client("ec2").deprovision_public_ipv4_pool_cidr method. boto3 documentation

# deprovision_public_ipv4_pool_cidr method definition

def deprovision_public_ipv4_pool_cidr(
    self,
    *,
    PoolId: str,
    Cidr: str,
    DryRun: bool = ...,
) -> DeprovisionPublicIpv4PoolCidrResultTypeDef:  # (1)
    ...
  1. See DeprovisionPublicIpv4PoolCidrResultTypeDef
# deprovision_public_ipv4_pool_cidr method usage example with argument unpacking

kwargs: DeprovisionPublicIpv4PoolCidrRequestTypeDef = {  # (1)
    "PoolId": ...,
    "Cidr": ...,
}

parent.deprovision_public_ipv4_pool_cidr(**kwargs)
  1. See DeprovisionPublicIpv4PoolCidrRequestTypeDef

deregister_image#

Deregisters the specified AMI.

Type annotations and code completion for boto3.client("ec2").deregister_image method. boto3 documentation

# deregister_image method definition

def deregister_image(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# deregister_image method usage example with argument unpacking

kwargs: DeregisterImageRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.deregister_image(**kwargs)
  1. See DeregisterImageRequestTypeDef

deregister_instance_event_notification_attributes#

Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.

Type annotations and code completion for boto3.client("ec2").deregister_instance_event_notification_attributes method. boto3 documentation

# deregister_instance_event_notification_attributes method definition

def deregister_instance_event_notification_attributes(
    self,
    *,
    InstanceTagAttribute: DeregisterInstanceTagAttributeRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> DeregisterInstanceEventNotificationAttributesResultTypeDef:  # (2)
    ...
  1. See DeregisterInstanceTagAttributeRequestTypeDef
  2. See DeregisterInstanceEventNotificationAttributesResultTypeDef
# deregister_instance_event_notification_attributes method usage example with argument unpacking

kwargs: DeregisterInstanceEventNotificationAttributesRequestTypeDef = {  # (1)
    "InstanceTagAttribute": ...,
}

parent.deregister_instance_event_notification_attributes(**kwargs)
  1. See DeregisterInstanceEventNotificationAttributesRequestTypeDef

deregister_transit_gateway_multicast_group_members#

Deregisters the specified members (network interfaces) from the transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").deregister_transit_gateway_multicast_group_members method. boto3 documentation

# deregister_transit_gateway_multicast_group_members method definition

def deregister_transit_gateway_multicast_group_members(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    GroupIpAddress: str = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupMembersResultTypeDef:  # (1)
    ...
  1. See DeregisterTransitGatewayMulticastGroupMembersResultTypeDef
# deregister_transit_gateway_multicast_group_members method usage example with argument unpacking

kwargs: DeregisterTransitGatewayMulticastGroupMembersRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.deregister_transit_gateway_multicast_group_members(**kwargs)
  1. See DeregisterTransitGatewayMulticastGroupMembersRequestTypeDef

deregister_transit_gateway_multicast_group_sources#

Deregisters the specified sources (network interfaces) from the transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").deregister_transit_gateway_multicast_group_sources method. boto3 documentation

# deregister_transit_gateway_multicast_group_sources method definition

def deregister_transit_gateway_multicast_group_sources(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    GroupIpAddress: str = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DeregisterTransitGatewayMulticastGroupSourcesResultTypeDef:  # (1)
    ...
  1. See DeregisterTransitGatewayMulticastGroupSourcesResultTypeDef
# deregister_transit_gateway_multicast_group_sources method usage example with argument unpacking

kwargs: DeregisterTransitGatewayMulticastGroupSourcesRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.deregister_transit_gateway_multicast_group_sources(**kwargs)
  1. See DeregisterTransitGatewayMulticastGroupSourcesRequestTypeDef

describe_account_attributes#

Describes attributes of your Amazon Web Services account.

Type annotations and code completion for boto3.client("ec2").describe_account_attributes method. boto3 documentation

# describe_account_attributes method definition

def describe_account_attributes(
    self,
    *,
    DryRun: bool = ...,
    AttributeNames: Sequence[AccountAttributeNameType] = ...,  # (1)
) -> DescribeAccountAttributesResultTypeDef:  # (2)
    ...
  1. See AccountAttributeNameType
  2. See DescribeAccountAttributesResultTypeDef
# describe_account_attributes method usage example with argument unpacking

kwargs: DescribeAccountAttributesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_account_attributes(**kwargs)
  1. See DescribeAccountAttributesRequestTypeDef

describe_address_transfers#

Describes an Elastic IP address transfer.

Type annotations and code completion for boto3.client("ec2").describe_address_transfers method. boto3 documentation

# describe_address_transfers method definition

def describe_address_transfers(
    self,
    *,
    AllocationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeAddressTransfersResultTypeDef:  # (1)
    ...
  1. See DescribeAddressTransfersResultTypeDef
# describe_address_transfers method usage example with argument unpacking

kwargs: DescribeAddressTransfersRequestTypeDef = {  # (1)
    "AllocationIds": ...,
}

parent.describe_address_transfers(**kwargs)
  1. See DescribeAddressTransfersRequestTypeDef

describe_addresses#

Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

Type annotations and code completion for boto3.client("ec2").describe_addresses method. boto3 documentation

# describe_addresses method definition

def describe_addresses(
    self,
    *,
    PublicIps: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    AllocationIds: Sequence[str] = ...,
) -> DescribeAddressesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAddressesResultTypeDef
# describe_addresses method usage example with argument unpacking

kwargs: DescribeAddressesRequestTypeDef = {  # (1)
    "PublicIps": ...,
}

parent.describe_addresses(**kwargs)
  1. See DescribeAddressesRequestTypeDef

describe_addresses_attribute#

Describes the attributes of the specified Elastic IP addresses.

Type annotations and code completion for boto3.client("ec2").describe_addresses_attribute method. boto3 documentation

# describe_addresses_attribute method definition

def describe_addresses_attribute(
    self,
    *,
    AllocationIds: Sequence[str] = ...,
    Attribute: AddressAttributeNameType = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeAddressesAttributeResultTypeDef:  # (2)
    ...
  1. See AddressAttributeNameType
  2. See DescribeAddressesAttributeResultTypeDef
# describe_addresses_attribute method usage example with argument unpacking

kwargs: DescribeAddressesAttributeRequestTypeDef = {  # (1)
    "AllocationIds": ...,
}

parent.describe_addresses_attribute(**kwargs)
  1. See DescribeAddressesAttributeRequestTypeDef

describe_aggregate_id_format#

Describes the longer ID format settings for all resource types in a specific Region.

Type annotations and code completion for boto3.client("ec2").describe_aggregate_id_format method. boto3 documentation

# describe_aggregate_id_format method definition

def describe_aggregate_id_format(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeAggregateIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeAggregateIdFormatResultTypeDef
# describe_aggregate_id_format method usage example with argument unpacking

kwargs: DescribeAggregateIdFormatRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_aggregate_id_format(**kwargs)
  1. See DescribeAggregateIdFormatRequestTypeDef

describe_availability_zones#

Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you.

Type annotations and code completion for boto3.client("ec2").describe_availability_zones method. boto3 documentation

# describe_availability_zones method definition

def describe_availability_zones(
    self,
    *,
    ZoneNames: Sequence[str] = ...,
    ZoneIds: Sequence[str] = ...,
    AllAvailabilityZones: bool = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeAvailabilityZonesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAvailabilityZonesResultTypeDef
# describe_availability_zones method usage example with argument unpacking

kwargs: DescribeAvailabilityZonesRequestTypeDef = {  # (1)
    "ZoneNames": ...,
}

parent.describe_availability_zones(**kwargs)
  1. See DescribeAvailabilityZonesRequestTypeDef

describe_aws_network_performance_metric_subscriptions#

Describes the current Infrastructure Performance metric subscriptions.

Type annotations and code completion for boto3.client("ec2").describe_aws_network_performance_metric_subscriptions method. boto3 documentation

# describe_aws_network_performance_metric_subscriptions method definition

def describe_aws_network_performance_metric_subscriptions(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeAwsNetworkPerformanceMetricSubscriptionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeAwsNetworkPerformanceMetricSubscriptionsResultTypeDef
# describe_aws_network_performance_metric_subscriptions method usage example with argument unpacking

kwargs: DescribeAwsNetworkPerformanceMetricSubscriptionsRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_aws_network_performance_metric_subscriptions(**kwargs)
  1. See DescribeAwsNetworkPerformanceMetricSubscriptionsRequestTypeDef

describe_bundle_tasks#

Describes the specified bundle tasks or all of your bundle tasks.

Type annotations and code completion for boto3.client("ec2").describe_bundle_tasks method. boto3 documentation

# describe_bundle_tasks method definition

def describe_bundle_tasks(
    self,
    *,
    BundleIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeBundleTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeBundleTasksResultTypeDef
# describe_bundle_tasks method usage example with argument unpacking

kwargs: DescribeBundleTasksRequestTypeDef = {  # (1)
    "BundleIds": ...,
}

parent.describe_bundle_tasks(**kwargs)
  1. See DescribeBundleTasksRequestTypeDef

describe_byoip_cidrs#

Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

Type annotations and code completion for boto3.client("ec2").describe_byoip_cidrs method. boto3 documentation

# describe_byoip_cidrs method definition

def describe_byoip_cidrs(
    self,
    *,
    MaxResults: int,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeByoipCidrsResultTypeDef:  # (1)
    ...
  1. See DescribeByoipCidrsResultTypeDef
# describe_byoip_cidrs method usage example with argument unpacking

kwargs: DescribeByoipCidrsRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_byoip_cidrs(**kwargs)
  1. See DescribeByoipCidrsRequestTypeDef

describe_capacity_block_extension_history#

Describes the events for the specified Capacity Block extension during the specified time.

Type annotations and code completion for boto3.client("ec2").describe_capacity_block_extension_history method. boto3 documentation

# describe_capacity_block_extension_history method definition

def describe_capacity_block_extension_history(
    self,
    *,
    CapacityReservationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCapacityBlockExtensionHistoryResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCapacityBlockExtensionHistoryResultTypeDef
# describe_capacity_block_extension_history method usage example with argument unpacking

kwargs: DescribeCapacityBlockExtensionHistoryRequestTypeDef = {  # (1)
    "CapacityReservationIds": ...,
}

parent.describe_capacity_block_extension_history(**kwargs)
  1. See DescribeCapacityBlockExtensionHistoryRequestTypeDef

describe_capacity_block_extension_offerings#

Describes Capacity Block extension offerings available for purchase in the Amazon Web Services Region that you're currently using.

Type annotations and code completion for boto3.client("ec2").describe_capacity_block_extension_offerings method. boto3 documentation

# describe_capacity_block_extension_offerings method definition

def describe_capacity_block_extension_offerings(
    self,
    *,
    CapacityBlockExtensionDurationHours: int,
    CapacityReservationId: str,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeCapacityBlockExtensionOfferingsResultTypeDef:  # (1)
    ...
  1. See DescribeCapacityBlockExtensionOfferingsResultTypeDef
# describe_capacity_block_extension_offerings method usage example with argument unpacking

kwargs: DescribeCapacityBlockExtensionOfferingsRequestTypeDef = {  # (1)
    "CapacityBlockExtensionDurationHours": ...,
    "CapacityReservationId": ...,
}

parent.describe_capacity_block_extension_offerings(**kwargs)
  1. See DescribeCapacityBlockExtensionOfferingsRequestTypeDef

describe_capacity_block_offerings#

Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using.

Type annotations and code completion for boto3.client("ec2").describe_capacity_block_offerings method. boto3 documentation

# describe_capacity_block_offerings method definition

def describe_capacity_block_offerings(
    self,
    *,
    CapacityDurationHours: int,
    DryRun: bool = ...,
    InstanceType: str = ...,
    InstanceCount: int = ...,
    StartDateRange: TimestampTypeDef = ...,
    EndDateRange: TimestampTypeDef = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeCapacityBlockOfferingsResultTypeDef:  # (1)
    ...
  1. See DescribeCapacityBlockOfferingsResultTypeDef
# describe_capacity_block_offerings method usage example with argument unpacking

kwargs: DescribeCapacityBlockOfferingsRequestTypeDef = {  # (1)
    "CapacityDurationHours": ...,
}

parent.describe_capacity_block_offerings(**kwargs)
  1. See DescribeCapacityBlockOfferingsRequestTypeDef

describe_capacity_reservation_billing_requests#

Describes a request to assign the billing of the unused capacity of a Capacity Reservation.

Type annotations and code completion for boto3.client("ec2").describe_capacity_reservation_billing_requests method. boto3 documentation

# describe_capacity_reservation_billing_requests method definition

def describe_capacity_reservation_billing_requests(
    self,
    *,
    Role: CallerRoleType,  # (1)
    CapacityReservationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    DryRun: bool = ...,
) -> DescribeCapacityReservationBillingRequestsResultTypeDef:  # (3)
    ...
  1. See CallerRoleType
  2. See FilterTypeDef
  3. See DescribeCapacityReservationBillingRequestsResultTypeDef
# describe_capacity_reservation_billing_requests method usage example with argument unpacking

kwargs: DescribeCapacityReservationBillingRequestsRequestTypeDef = {  # (1)
    "Role": ...,
}

parent.describe_capacity_reservation_billing_requests(**kwargs)
  1. See DescribeCapacityReservationBillingRequestsRequestTypeDef

describe_capacity_reservation_fleets#

Describes one or more Capacity Reservation Fleets.

Type annotations and code completion for boto3.client("ec2").describe_capacity_reservation_fleets method. boto3 documentation

# describe_capacity_reservation_fleets method definition

def describe_capacity_reservation_fleets(
    self,
    *,
    CapacityReservationFleetIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCapacityReservationFleetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCapacityReservationFleetsResultTypeDef
# describe_capacity_reservation_fleets method usage example with argument unpacking

kwargs: DescribeCapacityReservationFleetsRequestTypeDef = {  # (1)
    "CapacityReservationFleetIds": ...,
}

parent.describe_capacity_reservation_fleets(**kwargs)
  1. See DescribeCapacityReservationFleetsRequestTypeDef

describe_capacity_reservations#

Describes one or more of your Capacity Reservations.

Type annotations and code completion for boto3.client("ec2").describe_capacity_reservations method. boto3 documentation

# describe_capacity_reservations method definition

def describe_capacity_reservations(
    self,
    *,
    CapacityReservationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCapacityReservationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCapacityReservationsResultTypeDef
# describe_capacity_reservations method usage example with argument unpacking

kwargs: DescribeCapacityReservationsRequestTypeDef = {  # (1)
    "CapacityReservationIds": ...,
}

parent.describe_capacity_reservations(**kwargs)
  1. See DescribeCapacityReservationsRequestTypeDef

describe_carrier_gateways#

Describes one or more of your carrier gateways.

Type annotations and code completion for boto3.client("ec2").describe_carrier_gateways method. boto3 documentation

# describe_carrier_gateways method definition

def describe_carrier_gateways(
    self,
    *,
    CarrierGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeCarrierGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCarrierGatewaysResultTypeDef
# describe_carrier_gateways method usage example with argument unpacking

kwargs: DescribeCarrierGatewaysRequestTypeDef = {  # (1)
    "CarrierGatewayIds": ...,
}

parent.describe_carrier_gateways(**kwargs)
  1. See DescribeCarrierGatewaysRequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").describe_classic_link_instances method. boto3 documentation

# describe_classic_link_instances method definition

def describe_classic_link_instances(
    self,
    *,
    DryRun: bool = ...,
    InstanceIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeClassicLinkInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClassicLinkInstancesResultTypeDef
# describe_classic_link_instances method usage example with argument unpacking

kwargs: DescribeClassicLinkInstancesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_classic_link_instances(**kwargs)
  1. See DescribeClassicLinkInstancesRequestTypeDef

describe_client_vpn_authorization_rules#

Describes the authorization rules for a specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_authorization_rules method. boto3 documentation

# describe_client_vpn_authorization_rules method definition

def describe_client_vpn_authorization_rules(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
) -> DescribeClientVpnAuthorizationRulesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnAuthorizationRulesResultTypeDef
# describe_client_vpn_authorization_rules method usage example with argument unpacking

kwargs: DescribeClientVpnAuthorizationRulesRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_authorization_rules(**kwargs)
  1. See DescribeClientVpnAuthorizationRulesRequestTypeDef

describe_client_vpn_connections#

Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_connections method. boto3 documentation

# describe_client_vpn_connections method definition

def describe_client_vpn_connections(
    self,
    *,
    ClientVpnEndpointId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeClientVpnConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnConnectionsResultTypeDef
# describe_client_vpn_connections method usage example with argument unpacking

kwargs: DescribeClientVpnConnectionsRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_connections(**kwargs)
  1. See DescribeClientVpnConnectionsRequestTypeDef

describe_client_vpn_endpoints#

Describes one or more Client VPN endpoints in the account.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_endpoints method. boto3 documentation

# describe_client_vpn_endpoints method definition

def describe_client_vpn_endpoints(
    self,
    *,
    ClientVpnEndpointIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeClientVpnEndpointsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnEndpointsResultTypeDef
# describe_client_vpn_endpoints method usage example with argument unpacking

kwargs: DescribeClientVpnEndpointsRequestTypeDef = {  # (1)
    "ClientVpnEndpointIds": ...,
}

parent.describe_client_vpn_endpoints(**kwargs)
  1. See DescribeClientVpnEndpointsRequestTypeDef

describe_client_vpn_routes#

Describes the routes for the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_routes method. boto3 documentation

# describe_client_vpn_routes method definition

def describe_client_vpn_routes(
    self,
    *,
    ClientVpnEndpointId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeClientVpnRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnRoutesResultTypeDef
# describe_client_vpn_routes method usage example with argument unpacking

kwargs: DescribeClientVpnRoutesRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_routes(**kwargs)
  1. See DescribeClientVpnRoutesRequestTypeDef

describe_client_vpn_target_networks#

Describes the target networks associated with the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").describe_client_vpn_target_networks method. boto3 documentation

# describe_client_vpn_target_networks method definition

def describe_client_vpn_target_networks(
    self,
    *,
    ClientVpnEndpointId: str,
    AssociationIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeClientVpnTargetNetworksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeClientVpnTargetNetworksResultTypeDef
# describe_client_vpn_target_networks method usage example with argument unpacking

kwargs: DescribeClientVpnTargetNetworksRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.describe_client_vpn_target_networks(**kwargs)
  1. See DescribeClientVpnTargetNetworksRequestTypeDef

describe_coip_pools#

Describes the specified customer-owned address pools or all of your customer-owned address pools.

Type annotations and code completion for boto3.client("ec2").describe_coip_pools method. boto3 documentation

# describe_coip_pools method definition

def describe_coip_pools(
    self,
    *,
    PoolIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeCoipPoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCoipPoolsResultTypeDef
# describe_coip_pools method usage example with argument unpacking

kwargs: DescribeCoipPoolsRequestTypeDef = {  # (1)
    "PoolIds": ...,
}

parent.describe_coip_pools(**kwargs)
  1. See DescribeCoipPoolsRequestTypeDef

describe_conversion_tasks#

Describes the specified conversion tasks or all your conversion tasks.

Type annotations and code completion for boto3.client("ec2").describe_conversion_tasks method. boto3 documentation

# describe_conversion_tasks method definition

def describe_conversion_tasks(
    self,
    *,
    DryRun: bool = ...,
    ConversionTaskIds: Sequence[str] = ...,
) -> DescribeConversionTasksResultTypeDef:  # (1)
    ...
  1. See DescribeConversionTasksResultTypeDef
# describe_conversion_tasks method usage example with argument unpacking

kwargs: DescribeConversionTasksRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_conversion_tasks(**kwargs)
  1. See DescribeConversionTasksRequestTypeDef

describe_customer_gateways#

Describes one or more of your VPN customer gateways.

Type annotations and code completion for boto3.client("ec2").describe_customer_gateways method. boto3 documentation

# describe_customer_gateways method definition

def describe_customer_gateways(
    self,
    *,
    CustomerGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeCustomerGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeCustomerGatewaysResultTypeDef
# describe_customer_gateways method usage example with argument unpacking

kwargs: DescribeCustomerGatewaysRequestTypeDef = {  # (1)
    "CustomerGatewayIds": ...,
}

parent.describe_customer_gateways(**kwargs)
  1. See DescribeCustomerGatewaysRequestTypeDef

describe_declarative_policies_reports#

Describes the metadata of an account status report, including the status of the report.

Type annotations and code completion for boto3.client("ec2").describe_declarative_policies_reports method. boto3 documentation

# describe_declarative_policies_reports method definition

def describe_declarative_policies_reports(
    self,
    *,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    ReportIds: Sequence[str] = ...,
) -> DescribeDeclarativePoliciesReportsResultTypeDef:  # (1)
    ...
  1. See DescribeDeclarativePoliciesReportsResultTypeDef
# describe_declarative_policies_reports method usage example with argument unpacking

kwargs: DescribeDeclarativePoliciesReportsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_declarative_policies_reports(**kwargs)
  1. See DescribeDeclarativePoliciesReportsRequestTypeDef

describe_dhcp_options#

Describes your DHCP option sets.

Type annotations and code completion for boto3.client("ec2").describe_dhcp_options method. boto3 documentation

# describe_dhcp_options method definition

def describe_dhcp_options(
    self,
    *,
    DhcpOptionsIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeDhcpOptionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeDhcpOptionsResultTypeDef
# describe_dhcp_options method usage example with argument unpacking

kwargs: DescribeDhcpOptionsRequestTypeDef = {  # (1)
    "DhcpOptionsIds": ...,
}

parent.describe_dhcp_options(**kwargs)
  1. See DescribeDhcpOptionsRequestTypeDef

describe_egress_only_internet_gateways#

Describes your egress-only internet gateways.

Type annotations and code completion for boto3.client("ec2").describe_egress_only_internet_gateways method. boto3 documentation

# describe_egress_only_internet_gateways method definition

def describe_egress_only_internet_gateways(
    self,
    *,
    DryRun: bool = ...,
    EgressOnlyInternetGatewayIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeEgressOnlyInternetGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeEgressOnlyInternetGatewaysResultTypeDef
# describe_egress_only_internet_gateways method usage example with argument unpacking

kwargs: DescribeEgressOnlyInternetGatewaysRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_egress_only_internet_gateways(**kwargs)
  1. See DescribeEgressOnlyInternetGatewaysRequestTypeDef

describe_elastic_gpus#

Amazon Elastic Graphics reached end of life on January 8, 2024.

Type annotations and code completion for boto3.client("ec2").describe_elastic_gpus method. boto3 documentation

# describe_elastic_gpus method definition

def describe_elastic_gpus(
    self,
    *,
    ElasticGpuIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeElasticGpusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeElasticGpusResultTypeDef
# describe_elastic_gpus method usage example with argument unpacking

kwargs: DescribeElasticGpusRequestTypeDef = {  # (1)
    "ElasticGpuIds": ...,
}

parent.describe_elastic_gpus(**kwargs)
  1. See DescribeElasticGpusRequestTypeDef

describe_export_image_tasks#

Describes the specified export image tasks or all of your export image tasks.

Type annotations and code completion for boto3.client("ec2").describe_export_image_tasks method. boto3 documentation

# describe_export_image_tasks method definition

def describe_export_image_tasks(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ExportImageTaskIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeExportImageTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeExportImageTasksResultTypeDef
# describe_export_image_tasks method usage example with argument unpacking

kwargs: DescribeExportImageTasksRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_export_image_tasks(**kwargs)
  1. See DescribeExportImageTasksRequestTypeDef

describe_export_tasks#

Describes the specified export instance tasks or all of your export instance tasks.

Type annotations and code completion for boto3.client("ec2").describe_export_tasks method. boto3 documentation

# describe_export_tasks method definition

def describe_export_tasks(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ExportTaskIds: Sequence[str] = ...,
) -> DescribeExportTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeExportTasksResultTypeDef
# describe_export_tasks method usage example with argument unpacking

kwargs: DescribeExportTasksRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_export_tasks(**kwargs)
  1. See DescribeExportTasksRequestTypeDef

describe_fast_launch_images#

Describe details for Windows AMIs that are configured for Windows fast launch.

Type annotations and code completion for boto3.client("ec2").describe_fast_launch_images method. boto3 documentation

# describe_fast_launch_images method definition

def describe_fast_launch_images(
    self,
    *,
    ImageIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeFastLaunchImagesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFastLaunchImagesResultTypeDef
# describe_fast_launch_images method usage example with argument unpacking

kwargs: DescribeFastLaunchImagesRequestTypeDef = {  # (1)
    "ImageIds": ...,
}

parent.describe_fast_launch_images(**kwargs)
  1. See DescribeFastLaunchImagesRequestTypeDef

describe_fast_snapshot_restores#

Describes the state of fast snapshot restores for your snapshots.

Type annotations and code completion for boto3.client("ec2").describe_fast_snapshot_restores method. boto3 documentation

# describe_fast_snapshot_restores method definition

def describe_fast_snapshot_restores(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeFastSnapshotRestoresResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFastSnapshotRestoresResultTypeDef
# describe_fast_snapshot_restores method usage example with argument unpacking

kwargs: DescribeFastSnapshotRestoresRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_fast_snapshot_restores(**kwargs)
  1. See DescribeFastSnapshotRestoresRequestTypeDef

describe_fleet_history#

Describes the events for the specified EC2 Fleet during the specified time.

Type annotations and code completion for boto3.client("ec2").describe_fleet_history method. boto3 documentation

# describe_fleet_history method definition

def describe_fleet_history(
    self,
    *,
    FleetId: str,
    StartTime: TimestampTypeDef,
    DryRun: bool = ...,
    EventType: FleetEventTypeType = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeFleetHistoryResultTypeDef:  # (2)
    ...
  1. See FleetEventTypeType
  2. See DescribeFleetHistoryResultTypeDef
# describe_fleet_history method usage example with argument unpacking

kwargs: DescribeFleetHistoryRequestTypeDef = {  # (1)
    "FleetId": ...,
    "StartTime": ...,
}

parent.describe_fleet_history(**kwargs)
  1. See DescribeFleetHistoryRequestTypeDef

describe_fleet_instances#

Describes the running instances for the specified EC2 Fleet.

Type annotations and code completion for boto3.client("ec2").describe_fleet_instances method. boto3 documentation

# describe_fleet_instances method definition

def describe_fleet_instances(
    self,
    *,
    FleetId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeFleetInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFleetInstancesResultTypeDef
# describe_fleet_instances method usage example with argument unpacking

kwargs: DescribeFleetInstancesRequestTypeDef = {  # (1)
    "FleetId": ...,
}

parent.describe_fleet_instances(**kwargs)
  1. See DescribeFleetInstancesRequestTypeDef

describe_fleets#

Describes the specified EC2 Fleet or all of your EC2 Fleets.

Type annotations and code completion for boto3.client("ec2").describe_fleets method. boto3 documentation

# describe_fleets method definition

def describe_fleets(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    FleetIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeFleetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFleetsResultTypeDef
# describe_fleets method usage example with argument unpacking

kwargs: DescribeFleetsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_fleets(**kwargs)
  1. See DescribeFleetsRequestTypeDef

describe_flow_logs#

Describes one or more flow logs.

Type annotations and code completion for boto3.client("ec2").describe_flow_logs method. boto3 documentation

# describe_flow_logs method definition

def describe_flow_logs(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    FlowLogIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeFlowLogsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFlowLogsResultTypeDef
# describe_flow_logs method usage example with argument unpacking

kwargs: DescribeFlowLogsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_flow_logs(**kwargs)
  1. See DescribeFlowLogsRequestTypeDef

describe_fpga_image_attribute#

Describes the specified attribute of the specified Amazon FPGA Image (AFI).

Type annotations and code completion for boto3.client("ec2").describe_fpga_image_attribute method. boto3 documentation

# describe_fpga_image_attribute method definition

def describe_fpga_image_attribute(
    self,
    *,
    FpgaImageId: str,
    Attribute: FpgaImageAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> DescribeFpgaImageAttributeResultTypeDef:  # (2)
    ...
  1. See FpgaImageAttributeNameType
  2. See DescribeFpgaImageAttributeResultTypeDef
# describe_fpga_image_attribute method usage example with argument unpacking

kwargs: DescribeFpgaImageAttributeRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
    "Attribute": ...,
}

parent.describe_fpga_image_attribute(**kwargs)
  1. See DescribeFpgaImageAttributeRequestTypeDef

describe_fpga_images#

Describes the Amazon FPGA Images (AFIs) available to you.

Type annotations and code completion for boto3.client("ec2").describe_fpga_images method. boto3 documentation

# describe_fpga_images method definition

def describe_fpga_images(
    self,
    *,
    DryRun: bool = ...,
    FpgaImageIds: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeFpgaImagesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeFpgaImagesResultTypeDef
# describe_fpga_images method usage example with argument unpacking

kwargs: DescribeFpgaImagesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_fpga_images(**kwargs)
  1. See DescribeFpgaImagesRequestTypeDef

describe_host_reservation_offerings#

Describes the Dedicated Host reservations that are available to purchase.

Type annotations and code completion for boto3.client("ec2").describe_host_reservation_offerings method. boto3 documentation

# describe_host_reservation_offerings method definition

def describe_host_reservation_offerings(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxDuration: int = ...,
    MaxResults: int = ...,
    MinDuration: int = ...,
    NextToken: str = ...,
    OfferingId: str = ...,
) -> DescribeHostReservationOfferingsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeHostReservationOfferingsResultTypeDef
# describe_host_reservation_offerings method usage example with argument unpacking

kwargs: DescribeHostReservationOfferingsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_host_reservation_offerings(**kwargs)
  1. See DescribeHostReservationOfferingsRequestTypeDef

describe_host_reservations#

Describes reservations that are associated with Dedicated Hosts in your account.

Type annotations and code completion for boto3.client("ec2").describe_host_reservations method. boto3 documentation

# describe_host_reservations method definition

def describe_host_reservations(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    HostReservationIdSet: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeHostReservationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeHostReservationsResultTypeDef
# describe_host_reservations method usage example with argument unpacking

kwargs: DescribeHostReservationsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_host_reservations(**kwargs)
  1. See DescribeHostReservationsRequestTypeDef

describe_hosts#

Describes the specified Dedicated Hosts or all your Dedicated Hosts.

Type annotations and code completion for boto3.client("ec2").describe_hosts method. boto3 documentation

# describe_hosts method definition

def describe_hosts(
    self,
    *,
    HostIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeHostsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeHostsResultTypeDef
# describe_hosts method usage example with argument unpacking

kwargs: DescribeHostsRequestTypeDef = {  # (1)
    "HostIds": ...,
}

parent.describe_hosts(**kwargs)
  1. See DescribeHostsRequestTypeDef

describe_iam_instance_profile_associations#

Describes your IAM instance profile associations.

Type annotations and code completion for boto3.client("ec2").describe_iam_instance_profile_associations method. boto3 documentation

# describe_iam_instance_profile_associations method definition

def describe_iam_instance_profile_associations(
    self,
    *,
    AssociationIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeIamInstanceProfileAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIamInstanceProfileAssociationsResultTypeDef
# describe_iam_instance_profile_associations method usage example with argument unpacking

kwargs: DescribeIamInstanceProfileAssociationsRequestTypeDef = {  # (1)
    "AssociationIds": ...,
}

parent.describe_iam_instance_profile_associations(**kwargs)
  1. See DescribeIamInstanceProfileAssociationsRequestTypeDef

describe_id_format#

Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs.

Type annotations and code completion for boto3.client("ec2").describe_id_format method. boto3 documentation

# describe_id_format method definition

def describe_id_format(
    self,
    *,
    Resource: str = ...,
) -> DescribeIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeIdFormatResultTypeDef
# describe_id_format method usage example with argument unpacking

kwargs: DescribeIdFormatRequestTypeDef = {  # (1)
    "Resource": ...,
}

parent.describe_id_format(**kwargs)
  1. See DescribeIdFormatRequestTypeDef

describe_identity_id_format#

Describes the ID format settings for resources for the specified IAM user, IAM role, or root user.

Type annotations and code completion for boto3.client("ec2").describe_identity_id_format method. boto3 documentation

# describe_identity_id_format method definition

def describe_identity_id_format(
    self,
    *,
    PrincipalArn: str,
    Resource: str = ...,
) -> DescribeIdentityIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribeIdentityIdFormatResultTypeDef
# describe_identity_id_format method usage example with argument unpacking

kwargs: DescribeIdentityIdFormatRequestTypeDef = {  # (1)
    "PrincipalArn": ...,
}

parent.describe_identity_id_format(**kwargs)
  1. See DescribeIdentityIdFormatRequestTypeDef

describe_image_attribute#

Describes the specified attribute of the specified AMI.

Type annotations and code completion for boto3.client("ec2").describe_image_attribute method. boto3 documentation

# describe_image_attribute method definition

def describe_image_attribute(
    self,
    *,
    Attribute: ImageAttributeNameType,  # (1)
    ImageId: str,
    DryRun: bool = ...,
) -> ImageAttributeTypeDef:  # (2)
    ...
  1. See ImageAttributeNameType
  2. See ImageAttributeTypeDef
# describe_image_attribute method usage example with argument unpacking

kwargs: DescribeImageAttributeRequestTypeDef = {  # (1)
    "Attribute": ...,
    "ImageId": ...,
}

parent.describe_image_attribute(**kwargs)
  1. See DescribeImageAttributeRequestTypeDef

describe_images#

Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

Type annotations and code completion for boto3.client("ec2").describe_images method. boto3 documentation

# describe_images method definition

def describe_images(
    self,
    *,
    ExecutableUsers: Sequence[str] = ...,
    ImageIds: Sequence[str] = ...,
    Owners: Sequence[str] = ...,
    IncludeDeprecated: bool = ...,
    IncludeDisabled: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeImagesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeImagesResultTypeDef
# describe_images method usage example with argument unpacking

kwargs: DescribeImagesRequestTypeDef = {  # (1)
    "ExecutableUsers": ...,
}

parent.describe_images(**kwargs)
  1. See DescribeImagesRequestTypeDef

describe_import_image_tasks#

Displays details about an import virtual machine or import snapshot tasks that are already created.

Type annotations and code completion for boto3.client("ec2").describe_import_image_tasks method. boto3 documentation

# describe_import_image_tasks method definition

def describe_import_image_tasks(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImportTaskIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeImportImageTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeImportImageTasksResultTypeDef
# describe_import_image_tasks method usage example with argument unpacking

kwargs: DescribeImportImageTasksRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_import_image_tasks(**kwargs)
  1. See DescribeImportImageTasksRequestTypeDef

describe_import_snapshot_tasks#

Describes your import snapshot tasks.

Type annotations and code completion for boto3.client("ec2").describe_import_snapshot_tasks method. boto3 documentation

# describe_import_snapshot_tasks method definition

def describe_import_snapshot_tasks(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ImportTaskIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeImportSnapshotTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeImportSnapshotTasksResultTypeDef
# describe_import_snapshot_tasks method usage example with argument unpacking

kwargs: DescribeImportSnapshotTasksRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_import_snapshot_tasks(**kwargs)
  1. See DescribeImportSnapshotTasksRequestTypeDef

describe_instance_attribute#

Describes the specified attribute of the specified instance.

Type annotations and code completion for boto3.client("ec2").describe_instance_attribute method. boto3 documentation

# describe_instance_attribute method definition

def describe_instance_attribute(
    self,
    *,
    InstanceId: str,
    Attribute: InstanceAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> InstanceAttributeTypeDef:  # (2)
    ...
  1. See InstanceAttributeNameType
  2. See InstanceAttributeTypeDef
# describe_instance_attribute method usage example with argument unpacking

kwargs: DescribeInstanceAttributeRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "Attribute": ...,
}

parent.describe_instance_attribute(**kwargs)
  1. See DescribeInstanceAttributeRequestTypeDef

describe_instance_connect_endpoints#

Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints.

Type annotations and code completion for boto3.client("ec2").describe_instance_connect_endpoints method. boto3 documentation

# describe_instance_connect_endpoints method definition

def describe_instance_connect_endpoints(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    InstanceConnectEndpointIds: Sequence[str] = ...,
) -> DescribeInstanceConnectEndpointsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceConnectEndpointsResultTypeDef
# describe_instance_connect_endpoints method usage example with argument unpacking

kwargs: DescribeInstanceConnectEndpointsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_connect_endpoints(**kwargs)
  1. See DescribeInstanceConnectEndpointsRequestTypeDef

describe_instance_credit_specifications#

Describes the credit option for CPU usage of the specified burstable performance instances.

Type annotations and code completion for boto3.client("ec2").describe_instance_credit_specifications method. boto3 documentation

# describe_instance_credit_specifications method definition

def describe_instance_credit_specifications(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    InstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceCreditSpecificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceCreditSpecificationsResultTypeDef
# describe_instance_credit_specifications method usage example with argument unpacking

kwargs: DescribeInstanceCreditSpecificationsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_credit_specifications(**kwargs)
  1. See DescribeInstanceCreditSpecificationsRequestTypeDef

describe_instance_event_notification_attributes#

Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.

Type annotations and code completion for boto3.client("ec2").describe_instance_event_notification_attributes method. boto3 documentation

# describe_instance_event_notification_attributes method definition

def describe_instance_event_notification_attributes(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeInstanceEventNotificationAttributesResultTypeDef:  # (1)
    ...
  1. See DescribeInstanceEventNotificationAttributesResultTypeDef
# describe_instance_event_notification_attributes method usage example with argument unpacking

kwargs: DescribeInstanceEventNotificationAttributesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_event_notification_attributes(**kwargs)
  1. See DescribeInstanceEventNotificationAttributesRequestTypeDef

describe_instance_event_windows#

Describes the specified event windows or all event windows.

Type annotations and code completion for boto3.client("ec2").describe_instance_event_windows method. boto3 documentation

# describe_instance_event_windows method definition

def describe_instance_event_windows(
    self,
    *,
    DryRun: bool = ...,
    InstanceEventWindowIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceEventWindowsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceEventWindowsResultTypeDef
# describe_instance_event_windows method usage example with argument unpacking

kwargs: DescribeInstanceEventWindowsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_event_windows(**kwargs)
  1. See DescribeInstanceEventWindowsRequestTypeDef

describe_instance_image_metadata#

Describes the AMI that was used to launch an instance, even if the AMI is deprecated, deregistered, made private (no longer public or shared with your account), or not allowed.

Type annotations and code completion for boto3.client("ec2").describe_instance_image_metadata method. boto3 documentation

# describe_instance_image_metadata method definition

def describe_instance_image_metadata(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    InstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeInstanceImageMetadataResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceImageMetadataResultTypeDef
# describe_instance_image_metadata method usage example with argument unpacking

kwargs: DescribeInstanceImageMetadataRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_instance_image_metadata(**kwargs)
  1. See DescribeInstanceImageMetadataRequestTypeDef

describe_instance_status#

Describes the status of the specified instances or all of your instances.

Type annotations and code completion for boto3.client("ec2").describe_instance_status method. boto3 documentation

# describe_instance_status method definition

def describe_instance_status(
    self,
    *,
    InstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    IncludeAllInstances: bool = ...,
) -> DescribeInstanceStatusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceStatusResultTypeDef
# describe_instance_status method usage example with argument unpacking

kwargs: DescribeInstanceStatusRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.describe_instance_status(**kwargs)
  1. See DescribeInstanceStatusRequestTypeDef

describe_instance_topology#

Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone.

Type annotations and code completion for boto3.client("ec2").describe_instance_topology method. boto3 documentation

# describe_instance_topology method definition

def describe_instance_topology(
    self,
    *,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    InstanceIds: Sequence[str] = ...,
    GroupNames: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeInstanceTopologyResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstanceTopologyResultTypeDef
# describe_instance_topology method usage example with argument unpacking

kwargs: DescribeInstanceTopologyRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_topology(**kwargs)
  1. See DescribeInstanceTopologyRequestTypeDef

describe_instance_type_offerings#

Lists the instance types that are offered for the specified location.

Type annotations and code completion for boto3.client("ec2").describe_instance_type_offerings method. boto3 documentation

# describe_instance_type_offerings method definition

def describe_instance_type_offerings(
    self,
    *,
    DryRun: bool = ...,
    LocationType: LocationTypeType = ...,  # (1)
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceTypeOfferingsResultTypeDef:  # (3)
    ...
  1. See LocationTypeType
  2. See FilterTypeDef
  3. See DescribeInstanceTypeOfferingsResultTypeDef
# describe_instance_type_offerings method usage example with argument unpacking

kwargs: DescribeInstanceTypeOfferingsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_type_offerings(**kwargs)
  1. See DescribeInstanceTypeOfferingsRequestTypeDef

describe_instance_types#

Describes the specified instance types.

Type annotations and code completion for boto3.client("ec2").describe_instance_types method. boto3 documentation

# describe_instance_types method definition

def describe_instance_types(
    self,
    *,
    DryRun: bool = ...,
    InstanceTypes: Sequence[InstanceTypeType] = ...,  # (1)
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeInstanceTypesResultTypeDef:  # (3)
    ...
  1. See InstanceTypeType
  2. See FilterTypeDef
  3. See DescribeInstanceTypesResultTypeDef
# describe_instance_types method usage example with argument unpacking

kwargs: DescribeInstanceTypesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_instance_types(**kwargs)
  1. See DescribeInstanceTypesRequestTypeDef

describe_instances#

Describes the specified instances or all instances.

Type annotations and code completion for boto3.client("ec2").describe_instances method. boto3 documentation

# describe_instances method definition

def describe_instances(
    self,
    *,
    InstanceIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInstancesResultTypeDef
# describe_instances method usage example with argument unpacking

kwargs: DescribeInstancesRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.describe_instances(**kwargs)
  1. See DescribeInstancesRequestTypeDef

describe_internet_gateways#

Describes your internet gateways.

Type annotations and code completion for boto3.client("ec2").describe_internet_gateways method. boto3 documentation

# describe_internet_gateways method definition

def describe_internet_gateways(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    InternetGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeInternetGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeInternetGatewaysResultTypeDef
# describe_internet_gateways method usage example with argument unpacking

kwargs: DescribeInternetGatewaysRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.describe_internet_gateways(**kwargs)
  1. See DescribeInternetGatewaysRequestTypeDef

describe_ipam_byoasn#

Describes your Autonomous System Numbers (ASNs), their provisioning statuses, and the BYOIP CIDRs with which they are associated.

Type annotations and code completion for boto3.client("ec2").describe_ipam_byoasn method. boto3 documentation

# describe_ipam_byoasn method definition

def describe_ipam_byoasn(
    self,
    *,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeIpamByoasnResultTypeDef:  # (1)
    ...
  1. See DescribeIpamByoasnResultTypeDef
# describe_ipam_byoasn method usage example with argument unpacking

kwargs: DescribeIpamByoasnRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_byoasn(**kwargs)
  1. See DescribeIpamByoasnRequestTypeDef

describe_ipam_external_resource_verification_tokens#

Describe verification tokens.

Type annotations and code completion for boto3.client("ec2").describe_ipam_external_resource_verification_tokens method. boto3 documentation

# describe_ipam_external_resource_verification_tokens method definition

def describe_ipam_external_resource_verification_tokens(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    IpamExternalResourceVerificationTokenIds: Sequence[str] = ...,
) -> DescribeIpamExternalResourceVerificationTokensResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamExternalResourceVerificationTokensResultTypeDef
# describe_ipam_external_resource_verification_tokens method usage example with argument unpacking

kwargs: DescribeIpamExternalResourceVerificationTokensRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_external_resource_verification_tokens(**kwargs)
  1. See DescribeIpamExternalResourceVerificationTokensRequestTypeDef

describe_ipam_pools#

Get information about your IPAM pools.

Type annotations and code completion for boto3.client("ec2").describe_ipam_pools method. boto3 documentation

# describe_ipam_pools method definition

def describe_ipam_pools(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    IpamPoolIds: Sequence[str] = ...,
) -> DescribeIpamPoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamPoolsResultTypeDef
# describe_ipam_pools method usage example with argument unpacking

kwargs: DescribeIpamPoolsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_pools(**kwargs)
  1. See DescribeIpamPoolsRequestTypeDef

describe_ipam_resource_discoveries#

Describes IPAM resource discoveries.

Type annotations and code completion for boto3.client("ec2").describe_ipam_resource_discoveries method. boto3 documentation

# describe_ipam_resource_discoveries method definition

def describe_ipam_resource_discoveries(
    self,
    *,
    DryRun: bool = ...,
    IpamResourceDiscoveryIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeIpamResourceDiscoveriesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamResourceDiscoveriesResultTypeDef
# describe_ipam_resource_discoveries method usage example with argument unpacking

kwargs: DescribeIpamResourceDiscoveriesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_resource_discoveries(**kwargs)
  1. See DescribeIpamResourceDiscoveriesRequestTypeDef

describe_ipam_resource_discovery_associations#

Describes resource discovery association with an Amazon VPC IPAM.

Type annotations and code completion for boto3.client("ec2").describe_ipam_resource_discovery_associations method. boto3 documentation

# describe_ipam_resource_discovery_associations method definition

def describe_ipam_resource_discovery_associations(
    self,
    *,
    DryRun: bool = ...,
    IpamResourceDiscoveryAssociationIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeIpamResourceDiscoveryAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamResourceDiscoveryAssociationsResultTypeDef
# describe_ipam_resource_discovery_associations method usage example with argument unpacking

kwargs: DescribeIpamResourceDiscoveryAssociationsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_resource_discovery_associations(**kwargs)
  1. See DescribeIpamResourceDiscoveryAssociationsRequestTypeDef

describe_ipam_scopes#

Get information about your IPAM scopes.

Type annotations and code completion for boto3.client("ec2").describe_ipam_scopes method. boto3 documentation

# describe_ipam_scopes method definition

def describe_ipam_scopes(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    IpamScopeIds: Sequence[str] = ...,
) -> DescribeIpamScopesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamScopesResultTypeDef
# describe_ipam_scopes method usage example with argument unpacking

kwargs: DescribeIpamScopesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipam_scopes(**kwargs)
  1. See DescribeIpamScopesRequestTypeDef

describe_ipams#

Get information about your IPAM pools.

Type annotations and code completion for boto3.client("ec2").describe_ipams method. boto3 documentation

# describe_ipams method definition

def describe_ipams(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    IpamIds: Sequence[str] = ...,
) -> DescribeIpamsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpamsResultTypeDef
# describe_ipams method usage example with argument unpacking

kwargs: DescribeIpamsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_ipams(**kwargs)
  1. See DescribeIpamsRequestTypeDef

describe_ipv6_pools#

Describes your IPv6 address pools.

Type annotations and code completion for boto3.client("ec2").describe_ipv6_pools method. boto3 documentation

# describe_ipv6_pools method definition

def describe_ipv6_pools(
    self,
    *,
    PoolIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeIpv6PoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeIpv6PoolsResultTypeDef
# describe_ipv6_pools method usage example with argument unpacking

kwargs: DescribeIpv6PoolsRequestTypeDef = {  # (1)
    "PoolIds": ...,
}

parent.describe_ipv6_pools(**kwargs)
  1. See DescribeIpv6PoolsRequestTypeDef

describe_key_pairs#

Describes the specified key pairs or all of your key pairs.

Type annotations and code completion for boto3.client("ec2").describe_key_pairs method. boto3 documentation

# describe_key_pairs method definition

def describe_key_pairs(
    self,
    *,
    KeyNames: Sequence[str] = ...,
    KeyPairIds: Sequence[str] = ...,
    IncludePublicKey: bool = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeKeyPairsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeKeyPairsResultTypeDef
# describe_key_pairs method usage example with argument unpacking

kwargs: DescribeKeyPairsRequestTypeDef = {  # (1)
    "KeyNames": ...,
}

parent.describe_key_pairs(**kwargs)
  1. See DescribeKeyPairsRequestTypeDef

describe_launch_template_versions#

Describes one or more versions of a specified launch template.

Type annotations and code completion for boto3.client("ec2").describe_launch_template_versions method. boto3 documentation

# describe_launch_template_versions method definition

def describe_launch_template_versions(
    self,
    *,
    DryRun: bool = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
    Versions: Sequence[str] = ...,
    MinVersion: str = ...,
    MaxVersion: str = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ResolveAlias: bool = ...,
) -> DescribeLaunchTemplateVersionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLaunchTemplateVersionsResultTypeDef
# describe_launch_template_versions method usage example with argument unpacking

kwargs: DescribeLaunchTemplateVersionsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_launch_template_versions(**kwargs)
  1. See DescribeLaunchTemplateVersionsRequestTypeDef

describe_launch_templates#

Describes one or more launch templates.

Type annotations and code completion for boto3.client("ec2").describe_launch_templates method. boto3 documentation

# describe_launch_templates method definition

def describe_launch_templates(
    self,
    *,
    DryRun: bool = ...,
    LaunchTemplateIds: Sequence[str] = ...,
    LaunchTemplateNames: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeLaunchTemplatesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLaunchTemplatesResultTypeDef
# describe_launch_templates method usage example with argument unpacking

kwargs: DescribeLaunchTemplatesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_launch_templates(**kwargs)
  1. See DescribeLaunchTemplatesRequestTypeDef

describe_local_gateway_route_table_virtual_interface_group_associations#

Describes the associations between virtual interface groups and local gateway route tables.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_route_table_virtual_interface_group_associations method. boto3 documentation

# describe_local_gateway_route_table_virtual_interface_group_associations method definition

def describe_local_gateway_route_table_virtual_interface_group_associations(
    self,
    *,
    LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResultTypeDef
# describe_local_gateway_route_table_virtual_interface_group_associations method usage example with argument unpacking

kwargs: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableVirtualInterfaceGroupAssociationIds": ...,
}

parent.describe_local_gateway_route_table_virtual_interface_group_associations(**kwargs)
  1. See DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequestTypeDef

describe_local_gateway_route_table_vpc_associations#

Describes the specified associations between VPCs and local gateway route tables.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_route_table_vpc_associations method. boto3 documentation

# describe_local_gateway_route_table_vpc_associations method definition

def describe_local_gateway_route_table_vpc_associations(
    self,
    *,
    LocalGatewayRouteTableVpcAssociationIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTableVpcAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayRouteTableVpcAssociationsResultTypeDef
# describe_local_gateway_route_table_vpc_associations method usage example with argument unpacking

kwargs: DescribeLocalGatewayRouteTableVpcAssociationsRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableVpcAssociationIds": ...,
}

parent.describe_local_gateway_route_table_vpc_associations(**kwargs)
  1. See DescribeLocalGatewayRouteTableVpcAssociationsRequestTypeDef

describe_local_gateway_route_tables#

Describes one or more local gateway route tables.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_route_tables method. boto3 documentation

# describe_local_gateway_route_tables method definition

def describe_local_gateway_route_tables(
    self,
    *,
    LocalGatewayRouteTableIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayRouteTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayRouteTablesResultTypeDef
# describe_local_gateway_route_tables method usage example with argument unpacking

kwargs: DescribeLocalGatewayRouteTablesRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableIds": ...,
}

parent.describe_local_gateway_route_tables(**kwargs)
  1. See DescribeLocalGatewayRouteTablesRequestTypeDef

describe_local_gateway_virtual_interface_groups#

Describes the specified local gateway virtual interface groups.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_virtual_interface_groups method. boto3 documentation

# describe_local_gateway_virtual_interface_groups method definition

def describe_local_gateway_virtual_interface_groups(
    self,
    *,
    LocalGatewayVirtualInterfaceGroupIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayVirtualInterfaceGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayVirtualInterfaceGroupsResultTypeDef
# describe_local_gateway_virtual_interface_groups method usage example with argument unpacking

kwargs: DescribeLocalGatewayVirtualInterfaceGroupsRequestTypeDef = {  # (1)
    "LocalGatewayVirtualInterfaceGroupIds": ...,
}

parent.describe_local_gateway_virtual_interface_groups(**kwargs)
  1. See DescribeLocalGatewayVirtualInterfaceGroupsRequestTypeDef

describe_local_gateway_virtual_interfaces#

Describes the specified local gateway virtual interfaces.

Type annotations and code completion for boto3.client("ec2").describe_local_gateway_virtual_interfaces method. boto3 documentation

# describe_local_gateway_virtual_interfaces method definition

def describe_local_gateway_virtual_interfaces(
    self,
    *,
    LocalGatewayVirtualInterfaceIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewayVirtualInterfacesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewayVirtualInterfacesResultTypeDef
# describe_local_gateway_virtual_interfaces method usage example with argument unpacking

kwargs: DescribeLocalGatewayVirtualInterfacesRequestTypeDef = {  # (1)
    "LocalGatewayVirtualInterfaceIds": ...,
}

parent.describe_local_gateway_virtual_interfaces(**kwargs)
  1. See DescribeLocalGatewayVirtualInterfacesRequestTypeDef

describe_local_gateways#

Describes one or more local gateways.

Type annotations and code completion for boto3.client("ec2").describe_local_gateways method. boto3 documentation

# describe_local_gateways method definition

def describe_local_gateways(
    self,
    *,
    LocalGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeLocalGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLocalGatewaysResultTypeDef
# describe_local_gateways method usage example with argument unpacking

kwargs: DescribeLocalGatewaysRequestTypeDef = {  # (1)
    "LocalGatewayIds": ...,
}

parent.describe_local_gateways(**kwargs)
  1. See DescribeLocalGatewaysRequestTypeDef

describe_locked_snapshots#

Describes the lock status for a snapshot.

Type annotations and code completion for boto3.client("ec2").describe_locked_snapshots method. boto3 documentation

# describe_locked_snapshots method definition

def describe_locked_snapshots(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    SnapshotIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeLockedSnapshotsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeLockedSnapshotsResultTypeDef
# describe_locked_snapshots method usage example with argument unpacking

kwargs: DescribeLockedSnapshotsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_locked_snapshots(**kwargs)
  1. See DescribeLockedSnapshotsRequestTypeDef

describe_mac_hosts#

Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts.

Type annotations and code completion for boto3.client("ec2").describe_mac_hosts method. boto3 documentation

# describe_mac_hosts method definition

def describe_mac_hosts(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    HostIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeMacHostsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeMacHostsResultTypeDef
# describe_mac_hosts method usage example with argument unpacking

kwargs: DescribeMacHostsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_mac_hosts(**kwargs)
  1. See DescribeMacHostsRequestTypeDef

describe_managed_prefix_lists#

Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.

Type annotations and code completion for boto3.client("ec2").describe_managed_prefix_lists method. boto3 documentation

# describe_managed_prefix_lists method definition

def describe_managed_prefix_lists(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    PrefixListIds: Sequence[str] = ...,
) -> DescribeManagedPrefixListsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeManagedPrefixListsResultTypeDef
# describe_managed_prefix_lists method usage example with argument unpacking

kwargs: DescribeManagedPrefixListsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_managed_prefix_lists(**kwargs)
  1. See DescribeManagedPrefixListsRequestTypeDef

describe_moving_addresses#

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").describe_moving_addresses method. boto3 documentation

# describe_moving_addresses method definition

def describe_moving_addresses(
    self,
    *,
    DryRun: bool = ...,
    PublicIps: Sequence[str] = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
) -> DescribeMovingAddressesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeMovingAddressesResultTypeDef
# describe_moving_addresses method usage example with argument unpacking

kwargs: DescribeMovingAddressesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_moving_addresses(**kwargs)
  1. See DescribeMovingAddressesRequestTypeDef

describe_nat_gateways#

Describes your NAT gateways.

Type annotations and code completion for boto3.client("ec2").describe_nat_gateways method. boto3 documentation

# describe_nat_gateways method definition

def describe_nat_gateways(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NatGatewayIds: Sequence[str] = ...,
    NextToken: str = ...,
) -> DescribeNatGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNatGatewaysResultTypeDef
# describe_nat_gateways method usage example with argument unpacking

kwargs: DescribeNatGatewaysRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_nat_gateways(**kwargs)
  1. See DescribeNatGatewaysRequestTypeDef

describe_network_acls#

Describes your network ACLs.

Type annotations and code completion for boto3.client("ec2").describe_network_acls method. boto3 documentation

# describe_network_acls method definition

def describe_network_acls(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    NetworkAclIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeNetworkAclsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkAclsResultTypeDef
# describe_network_acls method usage example with argument unpacking

kwargs: DescribeNetworkAclsRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.describe_network_acls(**kwargs)
  1. See DescribeNetworkAclsRequestTypeDef

describe_network_insights_access_scope_analyses#

Describes the specified Network Access Scope analyses.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_access_scope_analyses method. boto3 documentation

# describe_network_insights_access_scope_analyses method definition

def describe_network_insights_access_scope_analyses(
    self,
    *,
    NetworkInsightsAccessScopeAnalysisIds: Sequence[str] = ...,
    NetworkInsightsAccessScopeId: str = ...,
    AnalysisStartTimeBegin: TimestampTypeDef = ...,
    AnalysisStartTimeEnd: TimestampTypeDef = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeNetworkInsightsAccessScopeAnalysesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsAccessScopeAnalysesResultTypeDef
# describe_network_insights_access_scope_analyses method usage example with argument unpacking

kwargs: DescribeNetworkInsightsAccessScopeAnalysesRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeAnalysisIds": ...,
}

parent.describe_network_insights_access_scope_analyses(**kwargs)
  1. See DescribeNetworkInsightsAccessScopeAnalysesRequestTypeDef

describe_network_insights_access_scopes#

Describes the specified Network Access Scopes.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_access_scopes method. boto3 documentation

# describe_network_insights_access_scopes method definition

def describe_network_insights_access_scopes(
    self,
    *,
    NetworkInsightsAccessScopeIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeNetworkInsightsAccessScopesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsAccessScopesResultTypeDef
# describe_network_insights_access_scopes method usage example with argument unpacking

kwargs: DescribeNetworkInsightsAccessScopesRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeIds": ...,
}

parent.describe_network_insights_access_scopes(**kwargs)
  1. See DescribeNetworkInsightsAccessScopesRequestTypeDef

describe_network_insights_analyses#

Describes one or more of your network insights analyses.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_analyses method. boto3 documentation

# describe_network_insights_analyses method definition

def describe_network_insights_analyses(
    self,
    *,
    NetworkInsightsAnalysisIds: Sequence[str] = ...,
    NetworkInsightsPathId: str = ...,
    AnalysisStartTime: TimestampTypeDef = ...,
    AnalysisEndTime: TimestampTypeDef = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeNetworkInsightsAnalysesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsAnalysesResultTypeDef
# describe_network_insights_analyses method usage example with argument unpacking

kwargs: DescribeNetworkInsightsAnalysesRequestTypeDef = {  # (1)
    "NetworkInsightsAnalysisIds": ...,
}

parent.describe_network_insights_analyses(**kwargs)
  1. See DescribeNetworkInsightsAnalysesRequestTypeDef

describe_network_insights_paths#

Describes one or more of your paths.

Type annotations and code completion for boto3.client("ec2").describe_network_insights_paths method. boto3 documentation

# describe_network_insights_paths method definition

def describe_network_insights_paths(
    self,
    *,
    NetworkInsightsPathIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
) -> DescribeNetworkInsightsPathsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInsightsPathsResultTypeDef
# describe_network_insights_paths method usage example with argument unpacking

kwargs: DescribeNetworkInsightsPathsRequestTypeDef = {  # (1)
    "NetworkInsightsPathIds": ...,
}

parent.describe_network_insights_paths(**kwargs)
  1. See DescribeNetworkInsightsPathsRequestTypeDef

describe_network_interface_attribute#

Describes a network interface attribute.

Type annotations and code completion for boto3.client("ec2").describe_network_interface_attribute method. boto3 documentation

# describe_network_interface_attribute method definition

def describe_network_interface_attribute(
    self,
    *,
    NetworkInterfaceId: str,
    DryRun: bool = ...,
    Attribute: NetworkInterfaceAttributeType = ...,  # (1)
) -> DescribeNetworkInterfaceAttributeResultTypeDef:  # (2)
    ...
  1. See NetworkInterfaceAttributeType
  2. See DescribeNetworkInterfaceAttributeResultTypeDef
# describe_network_interface_attribute method usage example with argument unpacking

kwargs: DescribeNetworkInterfaceAttributeRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.describe_network_interface_attribute(**kwargs)
  1. See DescribeNetworkInterfaceAttributeRequestTypeDef

describe_network_interface_permissions#

Describes the permissions for your network interfaces.

Type annotations and code completion for boto3.client("ec2").describe_network_interface_permissions method. boto3 documentation

# describe_network_interface_permissions method definition

def describe_network_interface_permissions(
    self,
    *,
    NetworkInterfacePermissionIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeNetworkInterfacePermissionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInterfacePermissionsResultTypeDef
# describe_network_interface_permissions method usage example with argument unpacking

kwargs: DescribeNetworkInterfacePermissionsRequestTypeDef = {  # (1)
    "NetworkInterfacePermissionIds": ...,
}

parent.describe_network_interface_permissions(**kwargs)
  1. See DescribeNetworkInterfacePermissionsRequestTypeDef

describe_network_interfaces#

Describes the specified network interfaces or all your network interfaces.

Type annotations and code completion for boto3.client("ec2").describe_network_interfaces method. boto3 documentation

# describe_network_interfaces method definition

def describe_network_interfaces(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    NetworkInterfaceIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeNetworkInterfacesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeNetworkInterfacesResultTypeDef
# describe_network_interfaces method usage example with argument unpacking

kwargs: DescribeNetworkInterfacesRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.describe_network_interfaces(**kwargs)
  1. See DescribeNetworkInterfacesRequestTypeDef

describe_placement_groups#

Describes the specified placement groups or all of your placement groups.

Type annotations and code completion for boto3.client("ec2").describe_placement_groups method. boto3 documentation

# describe_placement_groups method definition

def describe_placement_groups(
    self,
    *,
    GroupIds: Sequence[str] = ...,
    DryRun: bool = ...,
    GroupNames: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribePlacementGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribePlacementGroupsResultTypeDef
# describe_placement_groups method usage example with argument unpacking

kwargs: DescribePlacementGroupsRequestTypeDef = {  # (1)
    "GroupIds": ...,
}

parent.describe_placement_groups(**kwargs)
  1. See DescribePlacementGroupsRequestTypeDef

describe_prefix_lists#

Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.

Type annotations and code completion for boto3.client("ec2").describe_prefix_lists method. boto3 documentation

# describe_prefix_lists method definition

def describe_prefix_lists(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    PrefixListIds: Sequence[str] = ...,
) -> DescribePrefixListsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribePrefixListsResultTypeDef
# describe_prefix_lists method usage example with argument unpacking

kwargs: DescribePrefixListsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_prefix_lists(**kwargs)
  1. See DescribePrefixListsRequestTypeDef

describe_principal_id_format#

Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

Type annotations and code completion for boto3.client("ec2").describe_principal_id_format method. boto3 documentation

# describe_principal_id_format method definition

def describe_principal_id_format(
    self,
    *,
    DryRun: bool = ...,
    Resources: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribePrincipalIdFormatResultTypeDef:  # (1)
    ...
  1. See DescribePrincipalIdFormatResultTypeDef
# describe_principal_id_format method usage example with argument unpacking

kwargs: DescribePrincipalIdFormatRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_principal_id_format(**kwargs)
  1. See DescribePrincipalIdFormatRequestTypeDef

describe_public_ipv4_pools#

Describes the specified IPv4 address pools.

Type annotations and code completion for boto3.client("ec2").describe_public_ipv4_pools method. boto3 documentation

# describe_public_ipv4_pools method definition

def describe_public_ipv4_pools(
    self,
    *,
    PoolIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribePublicIpv4PoolsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribePublicIpv4PoolsResultTypeDef
# describe_public_ipv4_pools method usage example with argument unpacking

kwargs: DescribePublicIpv4PoolsRequestTypeDef = {  # (1)
    "PoolIds": ...,
}

parent.describe_public_ipv4_pools(**kwargs)
  1. See DescribePublicIpv4PoolsRequestTypeDef

describe_regions#

Describes the Regions that are enabled for your account, or all Regions.

Type annotations and code completion for boto3.client("ec2").describe_regions method. boto3 documentation

# describe_regions method definition

def describe_regions(
    self,
    *,
    RegionNames: Sequence[str] = ...,
    AllRegions: bool = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeRegionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeRegionsResultTypeDef
# describe_regions method usage example with argument unpacking

kwargs: DescribeRegionsRequestTypeDef = {  # (1)
    "RegionNames": ...,
}

parent.describe_regions(**kwargs)
  1. See DescribeRegionsRequestTypeDef

describe_replace_root_volume_tasks#

Describes a root volume replacement task.

Type annotations and code completion for boto3.client("ec2").describe_replace_root_volume_tasks method. boto3 documentation

# describe_replace_root_volume_tasks method definition

def describe_replace_root_volume_tasks(
    self,
    *,
    ReplaceRootVolumeTaskIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeReplaceRootVolumeTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeReplaceRootVolumeTasksResultTypeDef
# describe_replace_root_volume_tasks method usage example with argument unpacking

kwargs: DescribeReplaceRootVolumeTasksRequestTypeDef = {  # (1)
    "ReplaceRootVolumeTaskIds": ...,
}

parent.describe_replace_root_volume_tasks(**kwargs)
  1. See DescribeReplaceRootVolumeTasksRequestTypeDef

describe_reserved_instances#

Describes one or more of the Reserved Instances that you purchased.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances method. boto3 documentation

# describe_reserved_instances method definition

def describe_reserved_instances(
    self,
    *,
    OfferingClass: OfferingClassTypeType = ...,  # (1)
    ReservedInstancesIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    OfferingType: OfferingTypeValuesType = ...,  # (3)
) -> DescribeReservedInstancesResultTypeDef:  # (4)
    ...
  1. See OfferingClassTypeType
  2. See FilterTypeDef
  3. See OfferingTypeValuesType
  4. See DescribeReservedInstancesResultTypeDef
# describe_reserved_instances method usage example with argument unpacking

kwargs: DescribeReservedInstancesRequestTypeDef = {  # (1)
    "OfferingClass": ...,
}

parent.describe_reserved_instances(**kwargs)
  1. See DescribeReservedInstancesRequestTypeDef

describe_reserved_instances_listings#

Describes your account's Reserved Instance listings in the Reserved Instance Marketplace.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances_listings method. boto3 documentation

# describe_reserved_instances_listings method definition

def describe_reserved_instances_listings(
    self,
    *,
    ReservedInstancesId: str = ...,
    ReservedInstancesListingId: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeReservedInstancesListingsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeReservedInstancesListingsResultTypeDef
# describe_reserved_instances_listings method usage example with argument unpacking

kwargs: DescribeReservedInstancesListingsRequestTypeDef = {  # (1)
    "ReservedInstancesId": ...,
}

parent.describe_reserved_instances_listings(**kwargs)
  1. See DescribeReservedInstancesListingsRequestTypeDef

describe_reserved_instances_modifications#

Describes the modifications made to your Reserved Instances.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances_modifications method. boto3 documentation

# describe_reserved_instances_modifications method definition

def describe_reserved_instances_modifications(
    self,
    *,
    ReservedInstancesModificationIds: Sequence[str] = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeReservedInstancesModificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeReservedInstancesModificationsResultTypeDef
# describe_reserved_instances_modifications method usage example with argument unpacking

kwargs: DescribeReservedInstancesModificationsRequestTypeDef = {  # (1)
    "ReservedInstancesModificationIds": ...,
}

parent.describe_reserved_instances_modifications(**kwargs)
  1. See DescribeReservedInstancesModificationsRequestTypeDef

describe_reserved_instances_offerings#

Describes Reserved Instance offerings that are available for purchase.

Type annotations and code completion for boto3.client("ec2").describe_reserved_instances_offerings method. boto3 documentation

# describe_reserved_instances_offerings method definition

def describe_reserved_instances_offerings(
    self,
    *,
    AvailabilityZone: str = ...,
    IncludeMarketplace: bool = ...,
    InstanceType: InstanceTypeType = ...,  # (1)
    MaxDuration: int = ...,
    MaxInstanceCount: int = ...,
    MinDuration: int = ...,
    OfferingClass: OfferingClassTypeType = ...,  # (2)
    ProductDescription: RIProductDescriptionType = ...,  # (3)
    ReservedInstancesOfferingIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (4)
    InstanceTenancy: TenancyType = ...,  # (5)
    OfferingType: OfferingTypeValuesType = ...,  # (6)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeReservedInstancesOfferingsResultTypeDef:  # (7)
    ...
  1. See InstanceTypeType
  2. See OfferingClassTypeType
  3. See RIProductDescriptionType
  4. See FilterTypeDef
  5. See TenancyType
  6. See OfferingTypeValuesType
  7. See DescribeReservedInstancesOfferingsResultTypeDef
# describe_reserved_instances_offerings method usage example with argument unpacking

kwargs: DescribeReservedInstancesOfferingsRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
}

parent.describe_reserved_instances_offerings(**kwargs)
  1. See DescribeReservedInstancesOfferingsRequestTypeDef

describe_route_tables#

Describes your route tables.

Type annotations and code completion for boto3.client("ec2").describe_route_tables method. boto3 documentation

# describe_route_tables method definition

def describe_route_tables(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    RouteTableIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeRouteTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeRouteTablesResultTypeDef
# describe_route_tables method usage example with argument unpacking

kwargs: DescribeRouteTablesRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.describe_route_tables(**kwargs)
  1. See DescribeRouteTablesRequestTypeDef

describe_scheduled_instance_availability#

Finds available schedules that meet the specified criteria.

Type annotations and code completion for boto3.client("ec2").describe_scheduled_instance_availability method. boto3 documentation

# describe_scheduled_instance_availability method definition

def describe_scheduled_instance_availability(
    self,
    *,
    FirstSlotStartTimeRange: SlotDateTimeRangeRequestTypeDef,  # (1)
    Recurrence: ScheduledInstanceRecurrenceRequestTypeDef,  # (2)
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (3)
    MaxResults: int = ...,
    MaxSlotDurationInHours: int = ...,
    MinSlotDurationInHours: int = ...,
    NextToken: str = ...,
) -> DescribeScheduledInstanceAvailabilityResultTypeDef:  # (4)
    ...
  1. See SlotDateTimeRangeRequestTypeDef
  2. See ScheduledInstanceRecurrenceRequestTypeDef
  3. See FilterTypeDef
  4. See DescribeScheduledInstanceAvailabilityResultTypeDef
# describe_scheduled_instance_availability method usage example with argument unpacking

kwargs: DescribeScheduledInstanceAvailabilityRequestTypeDef = {  # (1)
    "FirstSlotStartTimeRange": ...,
    "Recurrence": ...,
}

parent.describe_scheduled_instance_availability(**kwargs)
  1. See DescribeScheduledInstanceAvailabilityRequestTypeDef

describe_scheduled_instances#

Describes the specified Scheduled Instances or all your Scheduled Instances.

Type annotations and code completion for boto3.client("ec2").describe_scheduled_instances method. boto3 documentation

# describe_scheduled_instances method definition

def describe_scheduled_instances(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    ScheduledInstanceIds: Sequence[str] = ...,
    SlotStartTimeRange: SlotStartTimeRangeRequestTypeDef = ...,  # (2)
) -> DescribeScheduledInstancesResultTypeDef:  # (3)
    ...
  1. See FilterTypeDef
  2. See SlotStartTimeRangeRequestTypeDef
  3. See DescribeScheduledInstancesResultTypeDef
# describe_scheduled_instances method usage example with argument unpacking

kwargs: DescribeScheduledInstancesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_scheduled_instances(**kwargs)
  1. See DescribeScheduledInstancesRequestTypeDef

describe_security_group_references#

Describes the VPCs on the other side of a VPC peering or Transit Gateway connection that are referencing the security groups you've specified in this request.

Type annotations and code completion for boto3.client("ec2").describe_security_group_references method. boto3 documentation

# describe_security_group_references method definition

def describe_security_group_references(
    self,
    *,
    GroupId: Sequence[str],
    DryRun: bool = ...,
) -> DescribeSecurityGroupReferencesResultTypeDef:  # (1)
    ...
  1. See DescribeSecurityGroupReferencesResultTypeDef
# describe_security_group_references method usage example with argument unpacking

kwargs: DescribeSecurityGroupReferencesRequestTypeDef = {  # (1)
    "GroupId": ...,
}

parent.describe_security_group_references(**kwargs)
  1. See DescribeSecurityGroupReferencesRequestTypeDef

describe_security_group_rules#

Describes one or more of your security group rules.

Type annotations and code completion for boto3.client("ec2").describe_security_group_rules method. boto3 documentation

# describe_security_group_rules method definition

def describe_security_group_rules(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    SecurityGroupRuleIds: Sequence[str] = ...,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSecurityGroupRulesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSecurityGroupRulesResultTypeDef
# describe_security_group_rules method usage example with argument unpacking

kwargs: DescribeSecurityGroupRulesRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_security_group_rules(**kwargs)
  1. See DescribeSecurityGroupRulesRequestTypeDef

describe_security_group_vpc_associations#

Describes security group VPC associations made with AssociateSecurityGroupVpc.

Type annotations and code completion for boto3.client("ec2").describe_security_group_vpc_associations method. boto3 documentation

# describe_security_group_vpc_associations method definition

def describe_security_group_vpc_associations(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeSecurityGroupVpcAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSecurityGroupVpcAssociationsResultTypeDef
# describe_security_group_vpc_associations method usage example with argument unpacking

kwargs: DescribeSecurityGroupVpcAssociationsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_security_group_vpc_associations(**kwargs)
  1. See DescribeSecurityGroupVpcAssociationsRequestTypeDef

describe_security_groups#

Describes the specified security groups or all of your security groups.

Type annotations and code completion for boto3.client("ec2").describe_security_groups method. boto3 documentation

# describe_security_groups method definition

def describe_security_groups(
    self,
    *,
    GroupIds: Sequence[str] = ...,
    GroupNames: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeSecurityGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSecurityGroupsResultTypeDef
# describe_security_groups method usage example with argument unpacking

kwargs: DescribeSecurityGroupsRequestTypeDef = {  # (1)
    "GroupIds": ...,
}

parent.describe_security_groups(**kwargs)
  1. See DescribeSecurityGroupsRequestTypeDef

describe_snapshot_attribute#

Describes the specified attribute of the specified snapshot.

Type annotations and code completion for boto3.client("ec2").describe_snapshot_attribute method. boto3 documentation

# describe_snapshot_attribute method definition

def describe_snapshot_attribute(
    self,
    *,
    Attribute: SnapshotAttributeNameType,  # (1)
    SnapshotId: str,
    DryRun: bool = ...,
) -> DescribeSnapshotAttributeResultTypeDef:  # (2)
    ...
  1. See SnapshotAttributeNameType
  2. See DescribeSnapshotAttributeResultTypeDef
# describe_snapshot_attribute method usage example with argument unpacking

kwargs: DescribeSnapshotAttributeRequestTypeDef = {  # (1)
    "Attribute": ...,
    "SnapshotId": ...,
}

parent.describe_snapshot_attribute(**kwargs)
  1. See DescribeSnapshotAttributeRequestTypeDef

describe_snapshot_tier_status#

Describes the storage tier status of one or more Amazon EBS snapshots.

Type annotations and code completion for boto3.client("ec2").describe_snapshot_tier_status method. boto3 documentation

# describe_snapshot_tier_status method definition

def describe_snapshot_tier_status(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSnapshotTierStatusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSnapshotTierStatusResultTypeDef
# describe_snapshot_tier_status method usage example with argument unpacking

kwargs: DescribeSnapshotTierStatusRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_snapshot_tier_status(**kwargs)
  1. See DescribeSnapshotTierStatusRequestTypeDef

describe_snapshots#

Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

Type annotations and code completion for boto3.client("ec2").describe_snapshots method. boto3 documentation

# describe_snapshots method definition

def describe_snapshots(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    OwnerIds: Sequence[str] = ...,
    RestorableByUserIds: Sequence[str] = ...,
    SnapshotIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeSnapshotsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSnapshotsResultTypeDef
# describe_snapshots method usage example with argument unpacking

kwargs: DescribeSnapshotsRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_snapshots(**kwargs)
  1. See DescribeSnapshotsRequestTypeDef

describe_spot_datafeed_subscription#

Describes the data feed for Spot Instances.

Type annotations and code completion for boto3.client("ec2").describe_spot_datafeed_subscription method. boto3 documentation

# describe_spot_datafeed_subscription method definition

def describe_spot_datafeed_subscription(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeSpotDatafeedSubscriptionResultTypeDef:  # (1)
    ...
  1. See DescribeSpotDatafeedSubscriptionResultTypeDef
# describe_spot_datafeed_subscription method usage example with argument unpacking

kwargs: DescribeSpotDatafeedSubscriptionRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_spot_datafeed_subscription(**kwargs)
  1. See DescribeSpotDatafeedSubscriptionRequestTypeDef

describe_spot_fleet_instances#

Describes the running instances for the specified Spot Fleet.

Type annotations and code completion for boto3.client("ec2").describe_spot_fleet_instances method. boto3 documentation

# describe_spot_fleet_instances method definition

def describe_spot_fleet_instances(
    self,
    *,
    SpotFleetRequestId: str,
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSpotFleetInstancesResponseTypeDef:  # (1)
    ...
  1. See DescribeSpotFleetInstancesResponseTypeDef
# describe_spot_fleet_instances method usage example with argument unpacking

kwargs: DescribeSpotFleetInstancesRequestTypeDef = {  # (1)
    "SpotFleetRequestId": ...,
}

parent.describe_spot_fleet_instances(**kwargs)
  1. See DescribeSpotFleetInstancesRequestTypeDef

describe_spot_fleet_request_history#

Describes the events for the specified Spot Fleet request during the specified time.

Type annotations and code completion for boto3.client("ec2").describe_spot_fleet_request_history method. boto3 documentation

# describe_spot_fleet_request_history method definition

def describe_spot_fleet_request_history(
    self,
    *,
    SpotFleetRequestId: str,
    StartTime: TimestampTypeDef,
    DryRun: bool = ...,
    EventType: EventTypeType = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSpotFleetRequestHistoryResponseTypeDef:  # (2)
    ...
  1. See EventTypeType
  2. See DescribeSpotFleetRequestHistoryResponseTypeDef
# describe_spot_fleet_request_history method usage example with argument unpacking

kwargs: DescribeSpotFleetRequestHistoryRequestTypeDef = {  # (1)
    "SpotFleetRequestId": ...,
    "StartTime": ...,
}

parent.describe_spot_fleet_request_history(**kwargs)
  1. See DescribeSpotFleetRequestHistoryRequestTypeDef

describe_spot_fleet_requests#

Describes your Spot Fleet requests.

Type annotations and code completion for boto3.client("ec2").describe_spot_fleet_requests method. boto3 documentation

# describe_spot_fleet_requests method definition

def describe_spot_fleet_requests(
    self,
    *,
    DryRun: bool = ...,
    SpotFleetRequestIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeSpotFleetRequestsResponseTypeDef:  # (1)
    ...
  1. See DescribeSpotFleetRequestsResponseTypeDef
# describe_spot_fleet_requests method usage example with argument unpacking

kwargs: DescribeSpotFleetRequestsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_spot_fleet_requests(**kwargs)
  1. See DescribeSpotFleetRequestsRequestTypeDef

describe_spot_instance_requests#

Describes the specified Spot Instance requests.

Type annotations and code completion for boto3.client("ec2").describe_spot_instance_requests method. boto3 documentation

# describe_spot_instance_requests method definition

def describe_spot_instance_requests(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    SpotInstanceRequestIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeSpotInstanceRequestsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSpotInstanceRequestsResultTypeDef
# describe_spot_instance_requests method usage example with argument unpacking

kwargs: DescribeSpotInstanceRequestsRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.describe_spot_instance_requests(**kwargs)
  1. See DescribeSpotInstanceRequestsRequestTypeDef

describe_spot_price_history#

Describes the Spot price history.

Type annotations and code completion for boto3.client("ec2").describe_spot_price_history method. boto3 documentation

# describe_spot_price_history method definition

def describe_spot_price_history(
    self,
    *,
    DryRun: bool = ...,
    StartTime: TimestampTypeDef = ...,
    EndTime: TimestampTypeDef = ...,
    InstanceTypes: Sequence[InstanceTypeType] = ...,  # (1)
    ProductDescriptions: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (2)
    AvailabilityZone: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeSpotPriceHistoryResultTypeDef:  # (3)
    ...
  1. See InstanceTypeType
  2. See FilterTypeDef
  3. See DescribeSpotPriceHistoryResultTypeDef
# describe_spot_price_history method usage example with argument unpacking

kwargs: DescribeSpotPriceHistoryRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_spot_price_history(**kwargs)
  1. See DescribeSpotPriceHistoryRequestTypeDef

describe_stale_security_groups#

Describes the stale security group rules for security groups referenced across a VPC peering connection, transit gateway connection, or with a security group VPC association.

Type annotations and code completion for boto3.client("ec2").describe_stale_security_groups method. boto3 documentation

# describe_stale_security_groups method definition

def describe_stale_security_groups(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeStaleSecurityGroupsResultTypeDef:  # (1)
    ...
  1. See DescribeStaleSecurityGroupsResultTypeDef
# describe_stale_security_groups method usage example with argument unpacking

kwargs: DescribeStaleSecurityGroupsRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.describe_stale_security_groups(**kwargs)
  1. See DescribeStaleSecurityGroupsRequestTypeDef

describe_store_image_tasks#

Describes the progress of the AMI store tasks.

Type annotations and code completion for boto3.client("ec2").describe_store_image_tasks method. boto3 documentation

# describe_store_image_tasks method definition

def describe_store_image_tasks(
    self,
    *,
    ImageIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeStoreImageTasksResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeStoreImageTasksResultTypeDef
# describe_store_image_tasks method usage example with argument unpacking

kwargs: DescribeStoreImageTasksRequestTypeDef = {  # (1)
    "ImageIds": ...,
}

parent.describe_store_image_tasks(**kwargs)
  1. See DescribeStoreImageTasksRequestTypeDef

describe_subnets#

Describes your subnets.

Type annotations and code completion for boto3.client("ec2").describe_subnets method. boto3 documentation

# describe_subnets method definition

def describe_subnets(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    SubnetIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeSubnetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeSubnetsResultTypeDef
# describe_subnets method usage example with argument unpacking

kwargs: DescribeSubnetsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_subnets(**kwargs)
  1. See DescribeSubnetsRequestTypeDef

describe_tags#

Describes the specified tags for your EC2 resources.

Type annotations and code completion for boto3.client("ec2").describe_tags method. boto3 documentation

# describe_tags method definition

def describe_tags(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTagsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTagsResultTypeDef
# describe_tags method usage example with argument unpacking

kwargs: DescribeTagsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_tags(**kwargs)
  1. See DescribeTagsRequestTypeDef

describe_traffic_mirror_filter_rules#

Describe traffic mirror filters that determine the traffic that is mirrored.

Type annotations and code completion for boto3.client("ec2").describe_traffic_mirror_filter_rules method. boto3 documentation

# describe_traffic_mirror_filter_rules method definition

def describe_traffic_mirror_filter_rules(
    self,
    *,
    TrafficMirrorFilterRuleIds: Sequence[str] = ...,
    TrafficMirrorFilterId: str = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTrafficMirrorFilterRulesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrafficMirrorFilterRulesResultTypeDef
# describe_traffic_mirror_filter_rules method usage example with argument unpacking

kwargs: DescribeTrafficMirrorFilterRulesRequestTypeDef = {  # (1)
    "TrafficMirrorFilterRuleIds": ...,
}

parent.describe_traffic_mirror_filter_rules(**kwargs)
  1. See DescribeTrafficMirrorFilterRulesRequestTypeDef

describe_traffic_mirror_filters#

Describes one or more Traffic Mirror filters.

Type annotations and code completion for boto3.client("ec2").describe_traffic_mirror_filters method. boto3 documentation

# describe_traffic_mirror_filters method definition

def describe_traffic_mirror_filters(
    self,
    *,
    TrafficMirrorFilterIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTrafficMirrorFiltersResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrafficMirrorFiltersResultTypeDef
# describe_traffic_mirror_filters method usage example with argument unpacking

kwargs: DescribeTrafficMirrorFiltersRequestTypeDef = {  # (1)
    "TrafficMirrorFilterIds": ...,
}

parent.describe_traffic_mirror_filters(**kwargs)
  1. See DescribeTrafficMirrorFiltersRequestTypeDef

describe_traffic_mirror_sessions#

Describes one or more Traffic Mirror sessions.

Type annotations and code completion for boto3.client("ec2").describe_traffic_mirror_sessions method. boto3 documentation

# describe_traffic_mirror_sessions method definition

def describe_traffic_mirror_sessions(
    self,
    *,
    TrafficMirrorSessionIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTrafficMirrorSessionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrafficMirrorSessionsResultTypeDef
# describe_traffic_mirror_sessions method usage example with argument unpacking

kwargs: DescribeTrafficMirrorSessionsRequestTypeDef = {  # (1)
    "TrafficMirrorSessionIds": ...,
}

parent.describe_traffic_mirror_sessions(**kwargs)
  1. See DescribeTrafficMirrorSessionsRequestTypeDef

describe_traffic_mirror_targets#

Information about one or more Traffic Mirror targets.

Type annotations and code completion for boto3.client("ec2").describe_traffic_mirror_targets method. boto3 documentation

# describe_traffic_mirror_targets method definition

def describe_traffic_mirror_targets(
    self,
    *,
    TrafficMirrorTargetIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeTrafficMirrorTargetsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrafficMirrorTargetsResultTypeDef
# describe_traffic_mirror_targets method usage example with argument unpacking

kwargs: DescribeTrafficMirrorTargetsRequestTypeDef = {  # (1)
    "TrafficMirrorTargetIds": ...,
}

parent.describe_traffic_mirror_targets(**kwargs)
  1. See DescribeTrafficMirrorTargetsRequestTypeDef

describe_transit_gateway_attachments#

Describes one or more attachments between resources and transit gateways.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_attachments method. boto3 documentation

# describe_transit_gateway_attachments method definition

def describe_transit_gateway_attachments(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayAttachmentsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayAttachmentsResultTypeDef
# describe_transit_gateway_attachments method usage example with argument unpacking

kwargs: DescribeTransitGatewayAttachmentsRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_attachments(**kwargs)
  1. See DescribeTransitGatewayAttachmentsRequestTypeDef

describe_transit_gateway_connect_peers#

Describes one or more Connect peers.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_connect_peers method. boto3 documentation

# describe_transit_gateway_connect_peers method definition

def describe_transit_gateway_connect_peers(
    self,
    *,
    TransitGatewayConnectPeerIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayConnectPeersResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayConnectPeersResultTypeDef
# describe_transit_gateway_connect_peers method usage example with argument unpacking

kwargs: DescribeTransitGatewayConnectPeersRequestTypeDef = {  # (1)
    "TransitGatewayConnectPeerIds": ...,
}

parent.describe_transit_gateway_connect_peers(**kwargs)
  1. See DescribeTransitGatewayConnectPeersRequestTypeDef

describe_transit_gateway_connects#

Describes one or more Connect attachments.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_connects method. boto3 documentation

# describe_transit_gateway_connects method definition

def describe_transit_gateway_connects(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayConnectsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayConnectsResultTypeDef
# describe_transit_gateway_connects method usage example with argument unpacking

kwargs: DescribeTransitGatewayConnectsRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_connects(**kwargs)
  1. See DescribeTransitGatewayConnectsRequestTypeDef

describe_transit_gateway_multicast_domains#

Describes one or more transit gateway multicast domains.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_multicast_domains method. boto3 documentation

# describe_transit_gateway_multicast_domains method definition

def describe_transit_gateway_multicast_domains(
    self,
    *,
    TransitGatewayMulticastDomainIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayMulticastDomainsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayMulticastDomainsResultTypeDef
# describe_transit_gateway_multicast_domains method usage example with argument unpacking

kwargs: DescribeTransitGatewayMulticastDomainsRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainIds": ...,
}

parent.describe_transit_gateway_multicast_domains(**kwargs)
  1. See DescribeTransitGatewayMulticastDomainsRequestTypeDef

describe_transit_gateway_peering_attachments#

Describes your transit gateway peering attachments.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_peering_attachments method. boto3 documentation

# describe_transit_gateway_peering_attachments method definition

def describe_transit_gateway_peering_attachments(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayPeeringAttachmentsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayPeeringAttachmentsResultTypeDef
# describe_transit_gateway_peering_attachments method usage example with argument unpacking

kwargs: DescribeTransitGatewayPeeringAttachmentsRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_peering_attachments(**kwargs)
  1. See DescribeTransitGatewayPeeringAttachmentsRequestTypeDef

describe_transit_gateway_policy_tables#

Describes one or more transit gateway route policy tables.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_policy_tables method. boto3 documentation

# describe_transit_gateway_policy_tables method definition

def describe_transit_gateway_policy_tables(
    self,
    *,
    TransitGatewayPolicyTableIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayPolicyTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayPolicyTablesResultTypeDef
# describe_transit_gateway_policy_tables method usage example with argument unpacking

kwargs: DescribeTransitGatewayPolicyTablesRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableIds": ...,
}

parent.describe_transit_gateway_policy_tables(**kwargs)
  1. See DescribeTransitGatewayPolicyTablesRequestTypeDef

describe_transit_gateway_route_table_announcements#

Describes one or more transit gateway route table advertisements.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_route_table_announcements method. boto3 documentation

# describe_transit_gateway_route_table_announcements method definition

def describe_transit_gateway_route_table_announcements(
    self,
    *,
    TransitGatewayRouteTableAnnouncementIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayRouteTableAnnouncementsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayRouteTableAnnouncementsResultTypeDef
# describe_transit_gateway_route_table_announcements method usage example with argument unpacking

kwargs: DescribeTransitGatewayRouteTableAnnouncementsRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableAnnouncementIds": ...,
}

parent.describe_transit_gateway_route_table_announcements(**kwargs)
  1. See DescribeTransitGatewayRouteTableAnnouncementsRequestTypeDef

describe_transit_gateway_route_tables#

Describes one or more transit gateway route tables.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_route_tables method. boto3 documentation

# describe_transit_gateway_route_tables method definition

def describe_transit_gateway_route_tables(
    self,
    *,
    TransitGatewayRouteTableIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayRouteTablesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayRouteTablesResultTypeDef
# describe_transit_gateway_route_tables method usage example with argument unpacking

kwargs: DescribeTransitGatewayRouteTablesRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableIds": ...,
}

parent.describe_transit_gateway_route_tables(**kwargs)
  1. See DescribeTransitGatewayRouteTablesRequestTypeDef

describe_transit_gateway_vpc_attachments#

Describes one or more VPC attachments.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateway_vpc_attachments method. boto3 documentation

# describe_transit_gateway_vpc_attachments method definition

def describe_transit_gateway_vpc_attachments(
    self,
    *,
    TransitGatewayAttachmentIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewayVpcAttachmentsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewayVpcAttachmentsResultTypeDef
# describe_transit_gateway_vpc_attachments method usage example with argument unpacking

kwargs: DescribeTransitGatewayVpcAttachmentsRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentIds": ...,
}

parent.describe_transit_gateway_vpc_attachments(**kwargs)
  1. See DescribeTransitGatewayVpcAttachmentsRequestTypeDef

describe_transit_gateways#

Describes one or more transit gateways.

Type annotations and code completion for boto3.client("ec2").describe_transit_gateways method. boto3 documentation

# describe_transit_gateways method definition

def describe_transit_gateways(
    self,
    *,
    TransitGatewayIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> DescribeTransitGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTransitGatewaysResultTypeDef
# describe_transit_gateways method usage example with argument unpacking

kwargs: DescribeTransitGatewaysRequestTypeDef = {  # (1)
    "TransitGatewayIds": ...,
}

parent.describe_transit_gateways(**kwargs)
  1. See DescribeTransitGatewaysRequestTypeDef

describe_trunk_interface_associations#

Describes one or more network interface trunk associations.

Type annotations and code completion for boto3.client("ec2").describe_trunk_interface_associations method. boto3 documentation

# describe_trunk_interface_associations method definition

def describe_trunk_interface_associations(
    self,
    *,
    AssociationIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeTrunkInterfaceAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeTrunkInterfaceAssociationsResultTypeDef
# describe_trunk_interface_associations method usage example with argument unpacking

kwargs: DescribeTrunkInterfaceAssociationsRequestTypeDef = {  # (1)
    "AssociationIds": ...,
}

parent.describe_trunk_interface_associations(**kwargs)
  1. See DescribeTrunkInterfaceAssociationsRequestTypeDef

describe_verified_access_endpoints#

Describes the specified Amazon Web Services Verified Access endpoints.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_endpoints method. boto3 documentation

# describe_verified_access_endpoints method definition

def describe_verified_access_endpoints(
    self,
    *,
    VerifiedAccessEndpointIds: Sequence[str] = ...,
    VerifiedAccessInstanceId: str = ...,
    VerifiedAccessGroupId: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessEndpointsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessEndpointsResultTypeDef
# describe_verified_access_endpoints method usage example with argument unpacking

kwargs: DescribeVerifiedAccessEndpointsRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointIds": ...,
}

parent.describe_verified_access_endpoints(**kwargs)
  1. See DescribeVerifiedAccessEndpointsRequestTypeDef

describe_verified_access_groups#

Describes the specified Verified Access groups.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_groups method. boto3 documentation

# describe_verified_access_groups method definition

def describe_verified_access_groups(
    self,
    *,
    VerifiedAccessGroupIds: Sequence[str] = ...,
    VerifiedAccessInstanceId: str = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessGroupsResultTypeDef
# describe_verified_access_groups method usage example with argument unpacking

kwargs: DescribeVerifiedAccessGroupsRequestTypeDef = {  # (1)
    "VerifiedAccessGroupIds": ...,
}

parent.describe_verified_access_groups(**kwargs)
  1. See DescribeVerifiedAccessGroupsRequestTypeDef

describe_verified_access_instance_logging_configurations#

Describes the specified Amazon Web Services Verified Access instances.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_instance_logging_configurations method. boto3 documentation

# describe_verified_access_instance_logging_configurations method definition

def describe_verified_access_instance_logging_configurations(
    self,
    *,
    VerifiedAccessInstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessInstanceLoggingConfigurationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessInstanceLoggingConfigurationsResultTypeDef
# describe_verified_access_instance_logging_configurations method usage example with argument unpacking

kwargs: DescribeVerifiedAccessInstanceLoggingConfigurationsRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceIds": ...,
}

parent.describe_verified_access_instance_logging_configurations(**kwargs)
  1. See DescribeVerifiedAccessInstanceLoggingConfigurationsRequestTypeDef

describe_verified_access_instances#

Describes the specified Amazon Web Services Verified Access instances.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_instances method. boto3 documentation

# describe_verified_access_instances method definition

def describe_verified_access_instances(
    self,
    *,
    VerifiedAccessInstanceIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessInstancesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessInstancesResultTypeDef
# describe_verified_access_instances method usage example with argument unpacking

kwargs: DescribeVerifiedAccessInstancesRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceIds": ...,
}

parent.describe_verified_access_instances(**kwargs)
  1. See DescribeVerifiedAccessInstancesRequestTypeDef

describe_verified_access_trust_providers#

Describes the specified Amazon Web Services Verified Access trust providers.

Type annotations and code completion for boto3.client("ec2").describe_verified_access_trust_providers method. boto3 documentation

# describe_verified_access_trust_providers method definition

def describe_verified_access_trust_providers(
    self,
    *,
    VerifiedAccessTrustProviderIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> DescribeVerifiedAccessTrustProvidersResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVerifiedAccessTrustProvidersResultTypeDef
# describe_verified_access_trust_providers method usage example with argument unpacking

kwargs: DescribeVerifiedAccessTrustProvidersRequestTypeDef = {  # (1)
    "VerifiedAccessTrustProviderIds": ...,
}

parent.describe_verified_access_trust_providers(**kwargs)
  1. See DescribeVerifiedAccessTrustProvidersRequestTypeDef

describe_volume_attribute#

Describes the specified attribute of the specified volume.

Type annotations and code completion for boto3.client("ec2").describe_volume_attribute method. boto3 documentation

# describe_volume_attribute method definition

def describe_volume_attribute(
    self,
    *,
    Attribute: VolumeAttributeNameType,  # (1)
    VolumeId: str,
    DryRun: bool = ...,
) -> DescribeVolumeAttributeResultTypeDef:  # (2)
    ...
  1. See VolumeAttributeNameType
  2. See DescribeVolumeAttributeResultTypeDef
# describe_volume_attribute method usage example with argument unpacking

kwargs: DescribeVolumeAttributeRequestTypeDef = {  # (1)
    "Attribute": ...,
    "VolumeId": ...,
}

parent.describe_volume_attribute(**kwargs)
  1. See DescribeVolumeAttributeRequestTypeDef

describe_volume_status#

Describes the status of the specified volumes.

Type annotations and code completion for boto3.client("ec2").describe_volume_status method. boto3 documentation

# describe_volume_status method definition

def describe_volume_status(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    VolumeIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeVolumeStatusResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVolumeStatusResultTypeDef
# describe_volume_status method usage example with argument unpacking

kwargs: DescribeVolumeStatusRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.describe_volume_status(**kwargs)
  1. See DescribeVolumeStatusRequestTypeDef

describe_volumes#

Describes the specified EBS volumes or all of your EBS volumes.

Type annotations and code completion for boto3.client("ec2").describe_volumes method. boto3 documentation

# describe_volumes method definition

def describe_volumes(
    self,
    *,
    VolumeIds: Sequence[str] = ...,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeVolumesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVolumesResultTypeDef
# describe_volumes method usage example with argument unpacking

kwargs: DescribeVolumesRequestTypeDef = {  # (1)
    "VolumeIds": ...,
}

parent.describe_volumes(**kwargs)
  1. See DescribeVolumesRequestTypeDef

describe_volumes_modifications#

Describes the most recent volume modification request for the specified EBS volumes.

Type annotations and code completion for boto3.client("ec2").describe_volumes_modifications method. boto3 documentation

# describe_volumes_modifications method definition

def describe_volumes_modifications(
    self,
    *,
    DryRun: bool = ...,
    VolumeIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeVolumesModificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVolumesModificationsResultTypeDef
# describe_volumes_modifications method usage example with argument unpacking

kwargs: DescribeVolumesModificationsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_volumes_modifications(**kwargs)
  1. See DescribeVolumesModificationsRequestTypeDef

describe_vpc_attribute#

Describes the specified attribute of the specified VPC.

Type annotations and code completion for boto3.client("ec2").describe_vpc_attribute method. boto3 documentation

# describe_vpc_attribute method definition

def describe_vpc_attribute(
    self,
    *,
    Attribute: VpcAttributeNameType,  # (1)
    VpcId: str,
    DryRun: bool = ...,
) -> DescribeVpcAttributeResultTypeDef:  # (2)
    ...
  1. See VpcAttributeNameType
  2. See DescribeVpcAttributeResultTypeDef
# describe_vpc_attribute method usage example with argument unpacking

kwargs: DescribeVpcAttributeRequestTypeDef = {  # (1)
    "Attribute": ...,
    "VpcId": ...,
}

parent.describe_vpc_attribute(**kwargs)
  1. See DescribeVpcAttributeRequestTypeDef

describe_vpc_block_public_access_exclusions#

Describe VPC Block Public Access (BPA) exclusions.

Type annotations and code completion for boto3.client("ec2").describe_vpc_block_public_access_exclusions method. boto3 documentation

# describe_vpc_block_public_access_exclusions method definition

def describe_vpc_block_public_access_exclusions(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    ExclusionIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> DescribeVpcBlockPublicAccessExclusionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcBlockPublicAccessExclusionsResultTypeDef
# describe_vpc_block_public_access_exclusions method usage example with argument unpacking

kwargs: DescribeVpcBlockPublicAccessExclusionsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_block_public_access_exclusions(**kwargs)
  1. See DescribeVpcBlockPublicAccessExclusionsRequestTypeDef

describe_vpc_block_public_access_options#

Describe VPC Block Public Access (BPA) options.

Type annotations and code completion for boto3.client("ec2").describe_vpc_block_public_access_options method. boto3 documentation

# describe_vpc_block_public_access_options method definition

def describe_vpc_block_public_access_options(
    self,
    *,
    DryRun: bool = ...,
) -> DescribeVpcBlockPublicAccessOptionsResultTypeDef:  # (1)
    ...
  1. See DescribeVpcBlockPublicAccessOptionsResultTypeDef
# describe_vpc_block_public_access_options method usage example with argument unpacking

kwargs: DescribeVpcBlockPublicAccessOptionsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_block_public_access_options(**kwargs)
  1. See DescribeVpcBlockPublicAccessOptionsRequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").describe_vpc_classic_link method. boto3 documentation

# describe_vpc_classic_link method definition

def describe_vpc_classic_link(
    self,
    *,
    DryRun: bool = ...,
    VpcIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeVpcClassicLinkResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcClassicLinkResultTypeDef
# describe_vpc_classic_link method usage example with argument unpacking

kwargs: DescribeVpcClassicLinkRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_classic_link(**kwargs)
  1. See DescribeVpcClassicLinkRequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").describe_vpc_classic_link_dns_support method. boto3 documentation

# describe_vpc_classic_link_dns_support method definition

def describe_vpc_classic_link_dns_support(
    self,
    *,
    VpcIds: Sequence[str] = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See DescribeVpcClassicLinkDnsSupportResultTypeDef
# describe_vpc_classic_link_dns_support method usage example with argument unpacking

kwargs: DescribeVpcClassicLinkDnsSupportRequestTypeDef = {  # (1)
    "VpcIds": ...,
}

parent.describe_vpc_classic_link_dns_support(**kwargs)
  1. See DescribeVpcClassicLinkDnsSupportRequestTypeDef

describe_vpc_endpoint_associations#

Describes the VPC resources, VPC endpoint services, Amazon Lattice services, or service networks associated with the VPC endpoint.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_associations method. boto3 documentation

# describe_vpc_endpoint_associations method definition

def describe_vpc_endpoint_associations(
    self,
    *,
    DryRun: bool = ...,
    VpcEndpointIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointAssociationsResultTypeDef
# describe_vpc_endpoint_associations method usage example with argument unpacking

kwargs: DescribeVpcEndpointAssociationsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_associations(**kwargs)
  1. See DescribeVpcEndpointAssociationsRequestTypeDef

describe_vpc_endpoint_connection_notifications#

Describes the connection notifications for VPC endpoints and VPC endpoint services.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_connection_notifications method. boto3 documentation

# describe_vpc_endpoint_connection_notifications method definition

def describe_vpc_endpoint_connection_notifications(
    self,
    *,
    DryRun: bool = ...,
    ConnectionNotificationId: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointConnectionNotificationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointConnectionNotificationsResultTypeDef
# describe_vpc_endpoint_connection_notifications method usage example with argument unpacking

kwargs: DescribeVpcEndpointConnectionNotificationsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_connection_notifications(**kwargs)
  1. See DescribeVpcEndpointConnectionNotificationsRequestTypeDef

describe_vpc_endpoint_connections#

Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_connections method. boto3 documentation

# describe_vpc_endpoint_connections method definition

def describe_vpc_endpoint_connections(
    self,
    *,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointConnectionsResultTypeDef
# describe_vpc_endpoint_connections method usage example with argument unpacking

kwargs: DescribeVpcEndpointConnectionsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_connections(**kwargs)
  1. See DescribeVpcEndpointConnectionsRequestTypeDef

describe_vpc_endpoint_service_configurations#

Describes the VPC endpoint service configurations in your account (your services).

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_service_configurations method. boto3 documentation

# describe_vpc_endpoint_service_configurations method definition

def describe_vpc_endpoint_service_configurations(
    self,
    *,
    DryRun: bool = ...,
    ServiceIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointServiceConfigurationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointServiceConfigurationsResultTypeDef
# describe_vpc_endpoint_service_configurations method usage example with argument unpacking

kwargs: DescribeVpcEndpointServiceConfigurationsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_service_configurations(**kwargs)
  1. See DescribeVpcEndpointServiceConfigurationsRequestTypeDef

describe_vpc_endpoint_service_permissions#

Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_service_permissions method. boto3 documentation

# describe_vpc_endpoint_service_permissions method definition

def describe_vpc_endpoint_service_permissions(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointServicePermissionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointServicePermissionsResultTypeDef
# describe_vpc_endpoint_service_permissions method usage example with argument unpacking

kwargs: DescribeVpcEndpointServicePermissionsRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.describe_vpc_endpoint_service_permissions(**kwargs)
  1. See DescribeVpcEndpointServicePermissionsRequestTypeDef

describe_vpc_endpoint_services#

Describes available services to which you can create a VPC endpoint.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoint_services method. boto3 documentation

# describe_vpc_endpoint_services method definition

def describe_vpc_endpoint_services(
    self,
    *,
    DryRun: bool = ...,
    ServiceNames: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    ServiceRegions: Sequence[str] = ...,
) -> DescribeVpcEndpointServicesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointServicesResultTypeDef
# describe_vpc_endpoint_services method usage example with argument unpacking

kwargs: DescribeVpcEndpointServicesRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoint_services(**kwargs)
  1. See DescribeVpcEndpointServicesRequestTypeDef

describe_vpc_endpoints#

Describes your VPC endpoints.

Type annotations and code completion for boto3.client("ec2").describe_vpc_endpoints method. boto3 documentation

# describe_vpc_endpoints method definition

def describe_vpc_endpoints(
    self,
    *,
    DryRun: bool = ...,
    VpcEndpointIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> DescribeVpcEndpointsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcEndpointsResultTypeDef
# describe_vpc_endpoints method usage example with argument unpacking

kwargs: DescribeVpcEndpointsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.describe_vpc_endpoints(**kwargs)
  1. See DescribeVpcEndpointsRequestTypeDef

describe_vpc_peering_connections#

Describes your VPC peering connections.

Type annotations and code completion for boto3.client("ec2").describe_vpc_peering_connections method. boto3 documentation

# describe_vpc_peering_connections method definition

def describe_vpc_peering_connections(
    self,
    *,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
    VpcPeeringConnectionIds: Sequence[str] = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
) -> DescribeVpcPeeringConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcPeeringConnectionsResultTypeDef
# describe_vpc_peering_connections method usage example with argument unpacking

kwargs: DescribeVpcPeeringConnectionsRequestTypeDef = {  # (1)
    "NextToken": ...,
}

parent.describe_vpc_peering_connections(**kwargs)
  1. See DescribeVpcPeeringConnectionsRequestTypeDef

describe_vpcs#

Describes your VPCs.

Type annotations and code completion for boto3.client("ec2").describe_vpcs method. boto3 documentation

# describe_vpcs method definition

def describe_vpcs(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpcIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> DescribeVpcsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpcsResultTypeDef
# describe_vpcs method usage example with argument unpacking

kwargs: DescribeVpcsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpcs(**kwargs)
  1. See DescribeVpcsRequestTypeDef

describe_vpn_connections#

Describes one or more of your VPN connections.

Type annotations and code completion for boto3.client("ec2").describe_vpn_connections method. boto3 documentation

# describe_vpn_connections method definition

def describe_vpn_connections(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpnConnectionIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeVpnConnectionsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpnConnectionsResultTypeDef
# describe_vpn_connections method usage example with argument unpacking

kwargs: DescribeVpnConnectionsRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpn_connections(**kwargs)
  1. See DescribeVpnConnectionsRequestTypeDef

describe_vpn_gateways#

Describes one or more of your virtual private gateways.

Type annotations and code completion for boto3.client("ec2").describe_vpn_gateways method. boto3 documentation

# describe_vpn_gateways method definition

def describe_vpn_gateways(
    self,
    *,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    VpnGatewayIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> DescribeVpnGatewaysResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See DescribeVpnGatewaysResultTypeDef
# describe_vpn_gateways method usage example with argument unpacking

kwargs: DescribeVpnGatewaysRequestTypeDef = {  # (1)
    "Filters": ...,
}

parent.describe_vpn_gateways(**kwargs)
  1. See DescribeVpnGatewaysRequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").detach_classic_link_vpc method. boto3 documentation

# detach_classic_link_vpc method definition

def detach_classic_link_vpc(
    self,
    *,
    InstanceId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> DetachClassicLinkVpcResultTypeDef:  # (1)
    ...
  1. See DetachClassicLinkVpcResultTypeDef
# detach_classic_link_vpc method usage example with argument unpacking

kwargs: DetachClassicLinkVpcRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "VpcId": ...,
}

parent.detach_classic_link_vpc(**kwargs)
  1. See DetachClassicLinkVpcRequestTypeDef

detach_internet_gateway#

Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC.

Type annotations and code completion for boto3.client("ec2").detach_internet_gateway method. boto3 documentation

# detach_internet_gateway method definition

def detach_internet_gateway(
    self,
    *,
    InternetGatewayId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# detach_internet_gateway method usage example with argument unpacking

kwargs: DetachInternetGatewayRequestTypeDef = {  # (1)
    "InternetGatewayId": ...,
    "VpcId": ...,
}

parent.detach_internet_gateway(**kwargs)
  1. See DetachInternetGatewayRequestTypeDef

detach_network_interface#

Detaches a network interface from an instance.

Type annotations and code completion for boto3.client("ec2").detach_network_interface method. boto3 documentation

# detach_network_interface method definition

def detach_network_interface(
    self,
    *,
    AttachmentId: str,
    DryRun: bool = ...,
    Force: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# detach_network_interface method usage example with argument unpacking

kwargs: DetachNetworkInterfaceRequestTypeDef = {  # (1)
    "AttachmentId": ...,
}

parent.detach_network_interface(**kwargs)
  1. See DetachNetworkInterfaceRequestTypeDef

detach_verified_access_trust_provider#

Detaches the specified Amazon Web Services Verified Access trust provider from the specified Amazon Web Services Verified Access instance.

Type annotations and code completion for boto3.client("ec2").detach_verified_access_trust_provider method. boto3 documentation

# detach_verified_access_trust_provider method definition

def detach_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessInstanceId: str,
    VerifiedAccessTrustProviderId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DetachVerifiedAccessTrustProviderResultTypeDef:  # (1)
    ...
  1. See DetachVerifiedAccessTrustProviderResultTypeDef
# detach_verified_access_trust_provider method usage example with argument unpacking

kwargs: DetachVerifiedAccessTrustProviderRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
    "VerifiedAccessTrustProviderId": ...,
}

parent.detach_verified_access_trust_provider(**kwargs)
  1. See DetachVerifiedAccessTrustProviderRequestTypeDef

detach_volume#

Detaches an EBS volume from an instance.

Type annotations and code completion for boto3.client("ec2").detach_volume method. boto3 documentation

# detach_volume method definition

def detach_volume(
    self,
    *,
    VolumeId: str,
    Device: str = ...,
    Force: bool = ...,
    InstanceId: str = ...,
    DryRun: bool = ...,
) -> VolumeAttachmentResponseTypeDef:  # (1)
    ...
  1. See VolumeAttachmentResponseTypeDef
# detach_volume method usage example with argument unpacking

kwargs: DetachVolumeRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.detach_volume(**kwargs)
  1. See DetachVolumeRequestTypeDef

detach_vpn_gateway#

Detaches a virtual private gateway from a VPC.

Type annotations and code completion for boto3.client("ec2").detach_vpn_gateway method. boto3 documentation

# detach_vpn_gateway method definition

def detach_vpn_gateway(
    self,
    *,
    VpcId: str,
    VpnGatewayId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# detach_vpn_gateway method usage example with argument unpacking

kwargs: DetachVpnGatewayRequestTypeDef = {  # (1)
    "VpcId": ...,
    "VpnGatewayId": ...,
}

parent.detach_vpn_gateway(**kwargs)
  1. See DetachVpnGatewayRequestTypeDef

disable_address_transfer#

Disables Elastic IP address transfer.

Type annotations and code completion for boto3.client("ec2").disable_address_transfer method. boto3 documentation

# disable_address_transfer method definition

def disable_address_transfer(
    self,
    *,
    AllocationId: str,
    DryRun: bool = ...,
) -> DisableAddressTransferResultTypeDef:  # (1)
    ...
  1. See DisableAddressTransferResultTypeDef
# disable_address_transfer method usage example with argument unpacking

kwargs: DisableAddressTransferRequestTypeDef = {  # (1)
    "AllocationId": ...,
}

parent.disable_address_transfer(**kwargs)
  1. See DisableAddressTransferRequestTypeDef

disable_allowed_images_settings#

Disables Allowed AMIs for your account in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").disable_allowed_images_settings method. boto3 documentation

# disable_allowed_images_settings method definition

def disable_allowed_images_settings(
    self,
    *,
    DryRun: bool = ...,
) -> DisableAllowedImagesSettingsResultTypeDef:  # (1)
    ...
  1. See DisableAllowedImagesSettingsResultTypeDef
# disable_allowed_images_settings method usage example with argument unpacking

kwargs: DisableAllowedImagesSettingsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_allowed_images_settings(**kwargs)
  1. See DisableAllowedImagesSettingsRequestTypeDef

disable_aws_network_performance_metric_subscription#

Disables Infrastructure Performance metric subscriptions.

Type annotations and code completion for boto3.client("ec2").disable_aws_network_performance_metric_subscription method. boto3 documentation

# disable_aws_network_performance_metric_subscription method definition

def disable_aws_network_performance_metric_subscription(
    self,
    *,
    Source: str = ...,
    Destination: str = ...,
    Metric: MetricTypeType = ...,  # (1)
    Statistic: StatisticTypeType = ...,  # (2)
    DryRun: bool = ...,
) -> DisableAwsNetworkPerformanceMetricSubscriptionResultTypeDef:  # (3)
    ...
  1. See MetricTypeType
  2. See StatisticTypeType
  3. See DisableAwsNetworkPerformanceMetricSubscriptionResultTypeDef
# disable_aws_network_performance_metric_subscription method usage example with argument unpacking

kwargs: DisableAwsNetworkPerformanceMetricSubscriptionRequestTypeDef = {  # (1)
    "Source": ...,
}

parent.disable_aws_network_performance_metric_subscription(**kwargs)
  1. See DisableAwsNetworkPerformanceMetricSubscriptionRequestTypeDef

disable_ebs_encryption_by_default#

Disables EBS encryption by default for your account in the current Region.

Type annotations and code completion for boto3.client("ec2").disable_ebs_encryption_by_default method. boto3 documentation

# disable_ebs_encryption_by_default method definition

def disable_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> DisableEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See DisableEbsEncryptionByDefaultResultTypeDef
# disable_ebs_encryption_by_default method usage example with argument unpacking

kwargs: DisableEbsEncryptionByDefaultRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_ebs_encryption_by_default(**kwargs)
  1. See DisableEbsEncryptionByDefaultRequestTypeDef

disable_fast_launch#

Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots.

Type annotations and code completion for boto3.client("ec2").disable_fast_launch method. boto3 documentation

# disable_fast_launch method definition

def disable_fast_launch(
    self,
    *,
    ImageId: str,
    Force: bool = ...,
    DryRun: bool = ...,
) -> DisableFastLaunchResultTypeDef:  # (1)
    ...
  1. See DisableFastLaunchResultTypeDef
# disable_fast_launch method usage example with argument unpacking

kwargs: DisableFastLaunchRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.disable_fast_launch(**kwargs)
  1. See DisableFastLaunchRequestTypeDef

disable_fast_snapshot_restores#

Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.

Type annotations and code completion for boto3.client("ec2").disable_fast_snapshot_restores method. boto3 documentation

# disable_fast_snapshot_restores method definition

def disable_fast_snapshot_restores(
    self,
    *,
    AvailabilityZones: Sequence[str],
    SourceSnapshotIds: Sequence[str],
    DryRun: bool = ...,
) -> DisableFastSnapshotRestoresResultTypeDef:  # (1)
    ...
  1. See DisableFastSnapshotRestoresResultTypeDef
# disable_fast_snapshot_restores method usage example with argument unpacking

kwargs: DisableFastSnapshotRestoresRequestTypeDef = {  # (1)
    "AvailabilityZones": ...,
    "SourceSnapshotIds": ...,
}

parent.disable_fast_snapshot_restores(**kwargs)
  1. See DisableFastSnapshotRestoresRequestTypeDef

disable_image#

Sets the AMI state to disabled and removes all launch permissions from the AMI.

Type annotations and code completion for boto3.client("ec2").disable_image method. boto3 documentation

# disable_image method definition

def disable_image(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> DisableImageResultTypeDef:  # (1)
    ...
  1. See DisableImageResultTypeDef
# disable_image method usage example with argument unpacking

kwargs: DisableImageRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.disable_image(**kwargs)
  1. See DisableImageRequestTypeDef

disable_image_block_public_access#

Disables block public access for AMIs at the account level in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").disable_image_block_public_access method. boto3 documentation

# disable_image_block_public_access method definition

def disable_image_block_public_access(
    self,
    *,
    DryRun: bool = ...,
) -> DisableImageBlockPublicAccessResultTypeDef:  # (1)
    ...
  1. See DisableImageBlockPublicAccessResultTypeDef
# disable_image_block_public_access method usage example with argument unpacking

kwargs: DisableImageBlockPublicAccessRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_image_block_public_access(**kwargs)
  1. See DisableImageBlockPublicAccessRequestTypeDef

disable_image_deprecation#

Cancels the deprecation of the specified AMI.

Type annotations and code completion for boto3.client("ec2").disable_image_deprecation method. boto3 documentation

# disable_image_deprecation method definition

def disable_image_deprecation(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> DisableImageDeprecationResultTypeDef:  # (1)
    ...
  1. See DisableImageDeprecationResultTypeDef
# disable_image_deprecation method usage example with argument unpacking

kwargs: DisableImageDeprecationRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.disable_image_deprecation(**kwargs)
  1. See DisableImageDeprecationRequestTypeDef

disable_image_deregistration_protection#

Disables deregistration protection for an AMI.

Type annotations and code completion for boto3.client("ec2").disable_image_deregistration_protection method. boto3 documentation

# disable_image_deregistration_protection method definition

def disable_image_deregistration_protection(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> DisableImageDeregistrationProtectionResultTypeDef:  # (1)
    ...
  1. See DisableImageDeregistrationProtectionResultTypeDef
# disable_image_deregistration_protection method usage example with argument unpacking

kwargs: DisableImageDeregistrationProtectionRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.disable_image_deregistration_protection(**kwargs)
  1. See DisableImageDeregistrationProtectionRequestTypeDef

disable_ipam_organization_admin_account#

Disable the IPAM account.

Type annotations and code completion for boto3.client("ec2").disable_ipam_organization_admin_account method. boto3 documentation

# disable_ipam_organization_admin_account method definition

def disable_ipam_organization_admin_account(
    self,
    *,
    DelegatedAdminAccountId: str,
    DryRun: bool = ...,
) -> DisableIpamOrganizationAdminAccountResultTypeDef:  # (1)
    ...
  1. See DisableIpamOrganizationAdminAccountResultTypeDef
# disable_ipam_organization_admin_account method usage example with argument unpacking

kwargs: DisableIpamOrganizationAdminAccountRequestTypeDef = {  # (1)
    "DelegatedAdminAccountId": ...,
}

parent.disable_ipam_organization_admin_account(**kwargs)
  1. See DisableIpamOrganizationAdminAccountRequestTypeDef

disable_serial_console_access#

Disables access to the EC2 serial console of all instances for your account.

Type annotations and code completion for boto3.client("ec2").disable_serial_console_access method. boto3 documentation

# disable_serial_console_access method definition

def disable_serial_console_access(
    self,
    *,
    DryRun: bool = ...,
) -> DisableSerialConsoleAccessResultTypeDef:  # (1)
    ...
  1. See DisableSerialConsoleAccessResultTypeDef
# disable_serial_console_access method usage example with argument unpacking

kwargs: DisableSerialConsoleAccessRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_serial_console_access(**kwargs)
  1. See DisableSerialConsoleAccessRequestTypeDef

disable_snapshot_block_public_access#

Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").disable_snapshot_block_public_access method. boto3 documentation

# disable_snapshot_block_public_access method definition

def disable_snapshot_block_public_access(
    self,
    *,
    DryRun: bool = ...,
) -> DisableSnapshotBlockPublicAccessResultTypeDef:  # (1)
    ...
  1. See DisableSnapshotBlockPublicAccessResultTypeDef
# disable_snapshot_block_public_access method usage example with argument unpacking

kwargs: DisableSnapshotBlockPublicAccessRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.disable_snapshot_block_public_access(**kwargs)
  1. See DisableSnapshotBlockPublicAccessRequestTypeDef

disable_transit_gateway_route_table_propagation#

Disables the specified resource attachment from propagating routes to the specified propagation route table.

Type annotations and code completion for boto3.client("ec2").disable_transit_gateway_route_table_propagation method. boto3 documentation

# disable_transit_gateway_route_table_propagation method definition

def disable_transit_gateway_route_table_propagation(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    DryRun: bool = ...,
    TransitGatewayRouteTableAnnouncementId: str = ...,
) -> DisableTransitGatewayRouteTablePropagationResultTypeDef:  # (1)
    ...
  1. See DisableTransitGatewayRouteTablePropagationResultTypeDef
# disable_transit_gateway_route_table_propagation method usage example with argument unpacking

kwargs: DisableTransitGatewayRouteTablePropagationRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.disable_transit_gateway_route_table_propagation(**kwargs)
  1. See DisableTransitGatewayRouteTablePropagationRequestTypeDef

disable_vgw_route_propagation#

Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.

Type annotations and code completion for boto3.client("ec2").disable_vgw_route_propagation method. boto3 documentation

# disable_vgw_route_propagation method definition

def disable_vgw_route_propagation(
    self,
    *,
    GatewayId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# disable_vgw_route_propagation method usage example with argument unpacking

kwargs: DisableVgwRoutePropagationRequestTypeDef = {  # (1)
    "GatewayId": ...,
    "RouteTableId": ...,
}

parent.disable_vgw_route_propagation(**kwargs)
  1. See DisableVgwRoutePropagationRequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").disable_vpc_classic_link method. boto3 documentation

# disable_vpc_classic_link method definition

def disable_vpc_classic_link(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> DisableVpcClassicLinkResultTypeDef:  # (1)
    ...
  1. See DisableVpcClassicLinkResultTypeDef
# disable_vpc_classic_link method usage example with argument unpacking

kwargs: DisableVpcClassicLinkRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.disable_vpc_classic_link(**kwargs)
  1. See DisableVpcClassicLinkRequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").disable_vpc_classic_link_dns_support method. boto3 documentation

# disable_vpc_classic_link_dns_support method definition

def disable_vpc_classic_link_dns_support(
    self,
    *,
    VpcId: str = ...,
) -> DisableVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See DisableVpcClassicLinkDnsSupportResultTypeDef
# disable_vpc_classic_link_dns_support method usage example with argument unpacking

kwargs: DisableVpcClassicLinkDnsSupportRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.disable_vpc_classic_link_dns_support(**kwargs)
  1. See DisableVpcClassicLinkDnsSupportRequestTypeDef

disassociate_address#

Disassociates an Elastic IP address from the instance or network interface it's associated with.

Type annotations and code completion for boto3.client("ec2").disassociate_address method. boto3 documentation

# disassociate_address method definition

def disassociate_address(
    self,
    *,
    AssociationId: str = ...,
    PublicIp: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# disassociate_address method usage example with argument unpacking

kwargs: DisassociateAddressRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_address(**kwargs)
  1. See DisassociateAddressRequestTypeDef

disassociate_capacity_reservation_billing_owner#

Cancels a pending request to assign billing of the unused capacity of a Capacity Reservation to a consumer account, or revokes a request that has already been accepted.

Type annotations and code completion for boto3.client("ec2").disassociate_capacity_reservation_billing_owner method. boto3 documentation

# disassociate_capacity_reservation_billing_owner method definition

def disassociate_capacity_reservation_billing_owner(
    self,
    *,
    CapacityReservationId: str,
    UnusedReservationBillingOwnerId: str,
    DryRun: bool = ...,
) -> DisassociateCapacityReservationBillingOwnerResultTypeDef:  # (1)
    ...
  1. See DisassociateCapacityReservationBillingOwnerResultTypeDef
# disassociate_capacity_reservation_billing_owner method usage example with argument unpacking

kwargs: DisassociateCapacityReservationBillingOwnerRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
    "UnusedReservationBillingOwnerId": ...,
}

parent.disassociate_capacity_reservation_billing_owner(**kwargs)
  1. See DisassociateCapacityReservationBillingOwnerRequestTypeDef

disassociate_client_vpn_target_network#

Disassociates a target network from the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").disassociate_client_vpn_target_network method. boto3 documentation

# disassociate_client_vpn_target_network method definition

def disassociate_client_vpn_target_network(
    self,
    *,
    ClientVpnEndpointId: str,
    AssociationId: str,
    DryRun: bool = ...,
) -> DisassociateClientVpnTargetNetworkResultTypeDef:  # (1)
    ...
  1. See DisassociateClientVpnTargetNetworkResultTypeDef
# disassociate_client_vpn_target_network method usage example with argument unpacking

kwargs: DisassociateClientVpnTargetNetworkRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "AssociationId": ...,
}

parent.disassociate_client_vpn_target_network(**kwargs)
  1. See DisassociateClientVpnTargetNetworkRequestTypeDef

disassociate_enclave_certificate_iam_role#

Disassociates an IAM role from an Certificate Manager (ACM) certificate.

Type annotations and code completion for boto3.client("ec2").disassociate_enclave_certificate_iam_role method. boto3 documentation

# disassociate_enclave_certificate_iam_role method definition

def disassociate_enclave_certificate_iam_role(
    self,
    *,
    CertificateArn: str,
    RoleArn: str,
    DryRun: bool = ...,
) -> DisassociateEnclaveCertificateIamRoleResultTypeDef:  # (1)
    ...
  1. See DisassociateEnclaveCertificateIamRoleResultTypeDef
# disassociate_enclave_certificate_iam_role method usage example with argument unpacking

kwargs: DisassociateEnclaveCertificateIamRoleRequestTypeDef = {  # (1)
    "CertificateArn": ...,
    "RoleArn": ...,
}

parent.disassociate_enclave_certificate_iam_role(**kwargs)
  1. See DisassociateEnclaveCertificateIamRoleRequestTypeDef

disassociate_iam_instance_profile#

Disassociates an IAM instance profile from a running or stopped instance.

Type annotations and code completion for boto3.client("ec2").disassociate_iam_instance_profile method. boto3 documentation

# disassociate_iam_instance_profile method definition

def disassociate_iam_instance_profile(
    self,
    *,
    AssociationId: str,
) -> DisassociateIamInstanceProfileResultTypeDef:  # (1)
    ...
  1. See DisassociateIamInstanceProfileResultTypeDef
# disassociate_iam_instance_profile method usage example with argument unpacking

kwargs: DisassociateIamInstanceProfileRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_iam_instance_profile(**kwargs)
  1. See DisassociateIamInstanceProfileRequestTypeDef

disassociate_instance_event_window#

Disassociates one or more targets from an event window.

Type annotations and code completion for boto3.client("ec2").disassociate_instance_event_window method. boto3 documentation

# disassociate_instance_event_window method definition

def disassociate_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    AssociationTarget: InstanceEventWindowDisassociationRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> DisassociateInstanceEventWindowResultTypeDef:  # (2)
    ...
  1. See InstanceEventWindowDisassociationRequestTypeDef
  2. See DisassociateInstanceEventWindowResultTypeDef
# disassociate_instance_event_window method usage example with argument unpacking

kwargs: DisassociateInstanceEventWindowRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
    "AssociationTarget": ...,
}

parent.disassociate_instance_event_window(**kwargs)
  1. See DisassociateInstanceEventWindowRequestTypeDef

disassociate_ipam_byoasn#

Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR.

Type annotations and code completion for boto3.client("ec2").disassociate_ipam_byoasn method. boto3 documentation

# disassociate_ipam_byoasn method definition

def disassociate_ipam_byoasn(
    self,
    *,
    Asn: str,
    Cidr: str,
    DryRun: bool = ...,
) -> DisassociateIpamByoasnResultTypeDef:  # (1)
    ...
  1. See DisassociateIpamByoasnResultTypeDef
# disassociate_ipam_byoasn method usage example with argument unpacking

kwargs: DisassociateIpamByoasnRequestTypeDef = {  # (1)
    "Asn": ...,
    "Cidr": ...,
}

parent.disassociate_ipam_byoasn(**kwargs)
  1. See DisassociateIpamByoasnRequestTypeDef

disassociate_ipam_resource_discovery#

Disassociates a resource discovery from an Amazon VPC IPAM.

Type annotations and code completion for boto3.client("ec2").disassociate_ipam_resource_discovery method. boto3 documentation

# disassociate_ipam_resource_discovery method definition

def disassociate_ipam_resource_discovery(
    self,
    *,
    IpamResourceDiscoveryAssociationId: str,
    DryRun: bool = ...,
) -> DisassociateIpamResourceDiscoveryResultTypeDef:  # (1)
    ...
  1. See DisassociateIpamResourceDiscoveryResultTypeDef
# disassociate_ipam_resource_discovery method usage example with argument unpacking

kwargs: DisassociateIpamResourceDiscoveryRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryAssociationId": ...,
}

parent.disassociate_ipam_resource_discovery(**kwargs)
  1. See DisassociateIpamResourceDiscoveryRequestTypeDef

disassociate_nat_gateway_address#

Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway.

Type annotations and code completion for boto3.client("ec2").disassociate_nat_gateway_address method. boto3 documentation

# disassociate_nat_gateway_address method definition

def disassociate_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    AssociationIds: Sequence[str],
    MaxDrainDurationSeconds: int = ...,
    DryRun: bool = ...,
) -> DisassociateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See DisassociateNatGatewayAddressResultTypeDef
# disassociate_nat_gateway_address method usage example with argument unpacking

kwargs: DisassociateNatGatewayAddressRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
    "AssociationIds": ...,
}

parent.disassociate_nat_gateway_address(**kwargs)
  1. See DisassociateNatGatewayAddressRequestTypeDef

disassociate_route_table#

Disassociates a subnet or gateway from a route table.

Type annotations and code completion for boto3.client("ec2").disassociate_route_table method. boto3 documentation

# disassociate_route_table method definition

def disassociate_route_table(
    self,
    *,
    AssociationId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# disassociate_route_table method usage example with argument unpacking

kwargs: DisassociateRouteTableRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_route_table(**kwargs)
  1. See DisassociateRouteTableRequestTypeDef

disassociate_security_group_vpc#

Disassociates a security group from a VPC.

Type annotations and code completion for boto3.client("ec2").disassociate_security_group_vpc method. boto3 documentation

# disassociate_security_group_vpc method definition

def disassociate_security_group_vpc(
    self,
    *,
    GroupId: str,
    VpcId: str,
    DryRun: bool = ...,
) -> DisassociateSecurityGroupVpcResultTypeDef:  # (1)
    ...
  1. See DisassociateSecurityGroupVpcResultTypeDef
# disassociate_security_group_vpc method usage example with argument unpacking

kwargs: DisassociateSecurityGroupVpcRequestTypeDef = {  # (1)
    "GroupId": ...,
    "VpcId": ...,
}

parent.disassociate_security_group_vpc(**kwargs)
  1. See DisassociateSecurityGroupVpcRequestTypeDef

disassociate_subnet_cidr_block#

Disassociates a CIDR block from a subnet.

Type annotations and code completion for boto3.client("ec2").disassociate_subnet_cidr_block method. boto3 documentation

# disassociate_subnet_cidr_block method definition

def disassociate_subnet_cidr_block(
    self,
    *,
    AssociationId: str,
) -> DisassociateSubnetCidrBlockResultTypeDef:  # (1)
    ...
  1. See DisassociateSubnetCidrBlockResultTypeDef
# disassociate_subnet_cidr_block method usage example with argument unpacking

kwargs: DisassociateSubnetCidrBlockRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_subnet_cidr_block(**kwargs)
  1. See DisassociateSubnetCidrBlockRequestTypeDef

disassociate_transit_gateway_multicast_domain#

Disassociates the specified subnets from the transit gateway multicast domain.

Type annotations and code completion for boto3.client("ec2").disassociate_transit_gateway_multicast_domain method. boto3 documentation

# disassociate_transit_gateway_multicast_domain method definition

def disassociate_transit_gateway_multicast_domain(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    TransitGatewayAttachmentId: str,
    SubnetIds: Sequence[str],
    DryRun: bool = ...,
) -> DisassociateTransitGatewayMulticastDomainResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayMulticastDomainResultTypeDef
# disassociate_transit_gateway_multicast_domain method usage example with argument unpacking

kwargs: DisassociateTransitGatewayMulticastDomainRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
    "TransitGatewayAttachmentId": ...,
    "SubnetIds": ...,
}

parent.disassociate_transit_gateway_multicast_domain(**kwargs)
  1. See DisassociateTransitGatewayMulticastDomainRequestTypeDef

disassociate_transit_gateway_policy_table#

Removes the association between an an attachment and a policy table.

Type annotations and code completion for boto3.client("ec2").disassociate_transit_gateway_policy_table method. boto3 documentation

# disassociate_transit_gateway_policy_table method definition

def disassociate_transit_gateway_policy_table(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DisassociateTransitGatewayPolicyTableResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayPolicyTableResultTypeDef
# disassociate_transit_gateway_policy_table method usage example with argument unpacking

kwargs: DisassociateTransitGatewayPolicyTableRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

parent.disassociate_transit_gateway_policy_table(**kwargs)
  1. See DisassociateTransitGatewayPolicyTableRequestTypeDef

disassociate_transit_gateway_route_table#

Disassociates a resource attachment from a transit gateway route table.

Type annotations and code completion for boto3.client("ec2").disassociate_transit_gateway_route_table method. boto3 documentation

# disassociate_transit_gateway_route_table method definition

def disassociate_transit_gateway_route_table(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> DisassociateTransitGatewayRouteTableResultTypeDef:  # (1)
    ...
  1. See DisassociateTransitGatewayRouteTableResultTypeDef
# disassociate_transit_gateway_route_table method usage example with argument unpacking

kwargs: DisassociateTransitGatewayRouteTableRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "TransitGatewayAttachmentId": ...,
}

parent.disassociate_transit_gateway_route_table(**kwargs)
  1. See DisassociateTransitGatewayRouteTableRequestTypeDef

disassociate_trunk_interface#

Removes an association between a branch network interface with a trunk network interface.

Type annotations and code completion for boto3.client("ec2").disassociate_trunk_interface method. boto3 documentation

# disassociate_trunk_interface method definition

def disassociate_trunk_interface(
    self,
    *,
    AssociationId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> DisassociateTrunkInterfaceResultTypeDef:  # (1)
    ...
  1. See DisassociateTrunkInterfaceResultTypeDef
# disassociate_trunk_interface method usage example with argument unpacking

kwargs: DisassociateTrunkInterfaceRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_trunk_interface(**kwargs)
  1. See DisassociateTrunkInterfaceRequestTypeDef

disassociate_vpc_cidr_block#

Disassociates a CIDR block from a VPC.

Type annotations and code completion for boto3.client("ec2").disassociate_vpc_cidr_block method. boto3 documentation

# disassociate_vpc_cidr_block method definition

def disassociate_vpc_cidr_block(
    self,
    *,
    AssociationId: str,
) -> DisassociateVpcCidrBlockResultTypeDef:  # (1)
    ...
  1. See DisassociateVpcCidrBlockResultTypeDef
# disassociate_vpc_cidr_block method usage example with argument unpacking

kwargs: DisassociateVpcCidrBlockRequestTypeDef = {  # (1)
    "AssociationId": ...,
}

parent.disassociate_vpc_cidr_block(**kwargs)
  1. See DisassociateVpcCidrBlockRequestTypeDef

enable_address_transfer#

Enables Elastic IP address transfer.

Type annotations and code completion for boto3.client("ec2").enable_address_transfer method. boto3 documentation

# enable_address_transfer method definition

def enable_address_transfer(
    self,
    *,
    AllocationId: str,
    TransferAccountId: str,
    DryRun: bool = ...,
) -> EnableAddressTransferResultTypeDef:  # (1)
    ...
  1. See EnableAddressTransferResultTypeDef
# enable_address_transfer method usage example with argument unpacking

kwargs: EnableAddressTransferRequestTypeDef = {  # (1)
    "AllocationId": ...,
    "TransferAccountId": ...,
}

parent.enable_address_transfer(**kwargs)
  1. See EnableAddressTransferRequestTypeDef

enable_allowed_images_settings#

Enables Allowed AMIs for your account in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").enable_allowed_images_settings method. boto3 documentation

# enable_allowed_images_settings method definition

def enable_allowed_images_settings(
    self,
    *,
    AllowedImagesSettingsState: AllowedImagesSettingsEnabledStateType,  # (1)
    DryRun: bool = ...,
) -> EnableAllowedImagesSettingsResultTypeDef:  # (2)
    ...
  1. See AllowedImagesSettingsEnabledStateType
  2. See EnableAllowedImagesSettingsResultTypeDef
# enable_allowed_images_settings method usage example with argument unpacking

kwargs: EnableAllowedImagesSettingsRequestTypeDef = {  # (1)
    "AllowedImagesSettingsState": ...,
}

parent.enable_allowed_images_settings(**kwargs)
  1. See EnableAllowedImagesSettingsRequestTypeDef

enable_aws_network_performance_metric_subscription#

Enables Infrastructure Performance subscriptions.

Type annotations and code completion for boto3.client("ec2").enable_aws_network_performance_metric_subscription method. boto3 documentation

# enable_aws_network_performance_metric_subscription method definition

def enable_aws_network_performance_metric_subscription(
    self,
    *,
    Source: str = ...,
    Destination: str = ...,
    Metric: MetricTypeType = ...,  # (1)
    Statistic: StatisticTypeType = ...,  # (2)
    DryRun: bool = ...,
) -> EnableAwsNetworkPerformanceMetricSubscriptionResultTypeDef:  # (3)
    ...
  1. See MetricTypeType
  2. See StatisticTypeType
  3. See EnableAwsNetworkPerformanceMetricSubscriptionResultTypeDef
# enable_aws_network_performance_metric_subscription method usage example with argument unpacking

kwargs: EnableAwsNetworkPerformanceMetricSubscriptionRequestTypeDef = {  # (1)
    "Source": ...,
}

parent.enable_aws_network_performance_metric_subscription(**kwargs)
  1. See EnableAwsNetworkPerformanceMetricSubscriptionRequestTypeDef

enable_ebs_encryption_by_default#

Enables EBS encryption by default for your account in the current Region.

Type annotations and code completion for boto3.client("ec2").enable_ebs_encryption_by_default method. boto3 documentation

# enable_ebs_encryption_by_default method definition

def enable_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> EnableEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See EnableEbsEncryptionByDefaultResultTypeDef
# enable_ebs_encryption_by_default method usage example with argument unpacking

kwargs: EnableEbsEncryptionByDefaultRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_ebs_encryption_by_default(**kwargs)
  1. See EnableEbsEncryptionByDefaultRequestTypeDef

enable_fast_launch#

When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster.

Type annotations and code completion for boto3.client("ec2").enable_fast_launch method. boto3 documentation

# enable_fast_launch method definition

def enable_fast_launch(
    self,
    *,
    ImageId: str,
    ResourceType: str = ...,
    SnapshotConfiguration: FastLaunchSnapshotConfigurationRequestTypeDef = ...,  # (1)
    LaunchTemplate: FastLaunchLaunchTemplateSpecificationRequestTypeDef = ...,  # (2)
    MaxParallelLaunches: int = ...,
    DryRun: bool = ...,
) -> EnableFastLaunchResultTypeDef:  # (3)
    ...
  1. See FastLaunchSnapshotConfigurationRequestTypeDef
  2. See FastLaunchLaunchTemplateSpecificationRequestTypeDef
  3. See EnableFastLaunchResultTypeDef
# enable_fast_launch method usage example with argument unpacking

kwargs: EnableFastLaunchRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.enable_fast_launch(**kwargs)
  1. See EnableFastLaunchRequestTypeDef

enable_fast_snapshot_restores#

Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

Type annotations and code completion for boto3.client("ec2").enable_fast_snapshot_restores method. boto3 documentation

# enable_fast_snapshot_restores method definition

def enable_fast_snapshot_restores(
    self,
    *,
    AvailabilityZones: Sequence[str],
    SourceSnapshotIds: Sequence[str],
    DryRun: bool = ...,
) -> EnableFastSnapshotRestoresResultTypeDef:  # (1)
    ...
  1. See EnableFastSnapshotRestoresResultTypeDef
# enable_fast_snapshot_restores method usage example with argument unpacking

kwargs: EnableFastSnapshotRestoresRequestTypeDef = {  # (1)
    "AvailabilityZones": ...,
    "SourceSnapshotIds": ...,
}

parent.enable_fast_snapshot_restores(**kwargs)
  1. See EnableFastSnapshotRestoresRequestTypeDef

enable_image#

Re-enables a disabled AMI.

Type annotations and code completion for boto3.client("ec2").enable_image method. boto3 documentation

# enable_image method definition

def enable_image(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> EnableImageResultTypeDef:  # (1)
    ...
  1. See EnableImageResultTypeDef
# enable_image method usage example with argument unpacking

kwargs: EnableImageRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.enable_image(**kwargs)
  1. See EnableImageRequestTypeDef

enable_image_block_public_access#

Enables block public access for AMIs at the account level in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").enable_image_block_public_access method. boto3 documentation

# enable_image_block_public_access method definition

def enable_image_block_public_access(
    self,
    *,
    ImageBlockPublicAccessState: ImageBlockPublicAccessEnabledStateType,  # (1)
    DryRun: bool = ...,
) -> EnableImageBlockPublicAccessResultTypeDef:  # (2)
    ...
  1. See ImageBlockPublicAccessEnabledStateType
  2. See EnableImageBlockPublicAccessResultTypeDef
# enable_image_block_public_access method usage example with argument unpacking

kwargs: EnableImageBlockPublicAccessRequestTypeDef = {  # (1)
    "ImageBlockPublicAccessState": ...,
}

parent.enable_image_block_public_access(**kwargs)
  1. See EnableImageBlockPublicAccessRequestTypeDef

enable_image_deprecation#

Enables deprecation of the specified AMI at the specified date and time.

Type annotations and code completion for boto3.client("ec2").enable_image_deprecation method. boto3 documentation

# enable_image_deprecation method definition

def enable_image_deprecation(
    self,
    *,
    ImageId: str,
    DeprecateAt: TimestampTypeDef,
    DryRun: bool = ...,
) -> EnableImageDeprecationResultTypeDef:  # (1)
    ...
  1. See EnableImageDeprecationResultTypeDef
# enable_image_deprecation method usage example with argument unpacking

kwargs: EnableImageDeprecationRequestTypeDef = {  # (1)
    "ImageId": ...,
    "DeprecateAt": ...,
}

parent.enable_image_deprecation(**kwargs)
  1. See EnableImageDeprecationRequestTypeDef

enable_image_deregistration_protection#

Enables deregistration protection for an AMI.

Type annotations and code completion for boto3.client("ec2").enable_image_deregistration_protection method. boto3 documentation

# enable_image_deregistration_protection method definition

def enable_image_deregistration_protection(
    self,
    *,
    ImageId: str,
    WithCooldown: bool = ...,
    DryRun: bool = ...,
) -> EnableImageDeregistrationProtectionResultTypeDef:  # (1)
    ...
  1. See EnableImageDeregistrationProtectionResultTypeDef
# enable_image_deregistration_protection method usage example with argument unpacking

kwargs: EnableImageDeregistrationProtectionRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.enable_image_deregistration_protection(**kwargs)
  1. See EnableImageDeregistrationProtectionRequestTypeDef

enable_ipam_organization_admin_account#

Enable an Organizations member account as the IPAM admin account.

Type annotations and code completion for boto3.client("ec2").enable_ipam_organization_admin_account method. boto3 documentation

# enable_ipam_organization_admin_account method definition

def enable_ipam_organization_admin_account(
    self,
    *,
    DelegatedAdminAccountId: str,
    DryRun: bool = ...,
) -> EnableIpamOrganizationAdminAccountResultTypeDef:  # (1)
    ...
  1. See EnableIpamOrganizationAdminAccountResultTypeDef
# enable_ipam_organization_admin_account method usage example with argument unpacking

kwargs: EnableIpamOrganizationAdminAccountRequestTypeDef = {  # (1)
    "DelegatedAdminAccountId": ...,
}

parent.enable_ipam_organization_admin_account(**kwargs)
  1. See EnableIpamOrganizationAdminAccountRequestTypeDef

enable_reachability_analyzer_organization_sharing#

Establishes a trust relationship between Reachability Analyzer and Organizations.

Type annotations and code completion for boto3.client("ec2").enable_reachability_analyzer_organization_sharing method. boto3 documentation

# enable_reachability_analyzer_organization_sharing method definition

def enable_reachability_analyzer_organization_sharing(
    self,
    *,
    DryRun: bool = ...,
) -> EnableReachabilityAnalyzerOrganizationSharingResultTypeDef:  # (1)
    ...
  1. See EnableReachabilityAnalyzerOrganizationSharingResultTypeDef
# enable_reachability_analyzer_organization_sharing method usage example with argument unpacking

kwargs: EnableReachabilityAnalyzerOrganizationSharingRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_reachability_analyzer_organization_sharing(**kwargs)
  1. See EnableReachabilityAnalyzerOrganizationSharingRequestTypeDef

enable_serial_console_access#

Enables access to the EC2 serial console of all instances for your account.

Type annotations and code completion for boto3.client("ec2").enable_serial_console_access method. boto3 documentation

# enable_serial_console_access method definition

def enable_serial_console_access(
    self,
    *,
    DryRun: bool = ...,
) -> EnableSerialConsoleAccessResultTypeDef:  # (1)
    ...
  1. See EnableSerialConsoleAccessResultTypeDef
# enable_serial_console_access method usage example with argument unpacking

kwargs: EnableSerialConsoleAccessRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.enable_serial_console_access(**kwargs)
  1. See EnableSerialConsoleAccessRequestTypeDef

enable_snapshot_block_public_access#

Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").enable_snapshot_block_public_access method. boto3 documentation

# enable_snapshot_block_public_access method definition

def enable_snapshot_block_public_access(
    self,
    *,
    State: SnapshotBlockPublicAccessStateType,  # (1)
    DryRun: bool = ...,
) -> EnableSnapshotBlockPublicAccessResultTypeDef:  # (2)
    ...
  1. See SnapshotBlockPublicAccessStateType
  2. See EnableSnapshotBlockPublicAccessResultTypeDef
# enable_snapshot_block_public_access method usage example with argument unpacking

kwargs: EnableSnapshotBlockPublicAccessRequestTypeDef = {  # (1)
    "State": ...,
}

parent.enable_snapshot_block_public_access(**kwargs)
  1. See EnableSnapshotBlockPublicAccessRequestTypeDef

enable_transit_gateway_route_table_propagation#

Enables the specified attachment to propagate routes to the specified propagation route table.

Type annotations and code completion for boto3.client("ec2").enable_transit_gateway_route_table_propagation method. boto3 documentation

# enable_transit_gateway_route_table_propagation method definition

def enable_transit_gateway_route_table_propagation(
    self,
    *,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    DryRun: bool = ...,
    TransitGatewayRouteTableAnnouncementId: str = ...,
) -> EnableTransitGatewayRouteTablePropagationResultTypeDef:  # (1)
    ...
  1. See EnableTransitGatewayRouteTablePropagationResultTypeDef
# enable_transit_gateway_route_table_propagation method usage example with argument unpacking

kwargs: EnableTransitGatewayRouteTablePropagationRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.enable_transit_gateway_route_table_propagation(**kwargs)
  1. See EnableTransitGatewayRouteTablePropagationRequestTypeDef

enable_vgw_route_propagation#

Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.

Type annotations and code completion for boto3.client("ec2").enable_vgw_route_propagation method. boto3 documentation

# enable_vgw_route_propagation method definition

def enable_vgw_route_propagation(
    self,
    *,
    GatewayId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# enable_vgw_route_propagation method usage example with argument unpacking

kwargs: EnableVgwRoutePropagationRequestTypeDef = {  # (1)
    "GatewayId": ...,
    "RouteTableId": ...,
}

parent.enable_vgw_route_propagation(**kwargs)
  1. See EnableVgwRoutePropagationRequestTypeDef

enable_volume_io#

Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.

Type annotations and code completion for boto3.client("ec2").enable_volume_io method. boto3 documentation

# enable_volume_io method definition

def enable_volume_io(
    self,
    *,
    VolumeId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# enable_volume_io method usage example with argument unpacking

kwargs: EnableVolumeIORequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.enable_volume_io(**kwargs)
  1. See EnableVolumeIORequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").enable_vpc_classic_link method. boto3 documentation

# enable_vpc_classic_link method definition

def enable_vpc_classic_link(
    self,
    *,
    VpcId: str,
    DryRun: bool = ...,
) -> EnableVpcClassicLinkResultTypeDef:  # (1)
    ...
  1. See EnableVpcClassicLinkResultTypeDef
# enable_vpc_classic_link method usage example with argument unpacking

kwargs: EnableVpcClassicLinkRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.enable_vpc_classic_link(**kwargs)
  1. See EnableVpcClassicLinkRequestTypeDef

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").enable_vpc_classic_link_dns_support method. boto3 documentation

# enable_vpc_classic_link_dns_support method definition

def enable_vpc_classic_link_dns_support(
    self,
    *,
    VpcId: str = ...,
) -> EnableVpcClassicLinkDnsSupportResultTypeDef:  # (1)
    ...
  1. See EnableVpcClassicLinkDnsSupportResultTypeDef
# enable_vpc_classic_link_dns_support method usage example with argument unpacking

kwargs: EnableVpcClassicLinkDnsSupportRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.enable_vpc_classic_link_dns_support(**kwargs)
  1. See EnableVpcClassicLinkDnsSupportRequestTypeDef

export_client_vpn_client_certificate_revocation_list#

Downloads the client certificate revocation list for the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").export_client_vpn_client_certificate_revocation_list method. boto3 documentation

# export_client_vpn_client_certificate_revocation_list method definition

def export_client_vpn_client_certificate_revocation_list(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> ExportClientVpnClientCertificateRevocationListResultTypeDef:  # (1)
    ...
  1. See ExportClientVpnClientCertificateRevocationListResultTypeDef
# export_client_vpn_client_certificate_revocation_list method usage example with argument unpacking

kwargs: ExportClientVpnClientCertificateRevocationListRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.export_client_vpn_client_certificate_revocation_list(**kwargs)
  1. See ExportClientVpnClientCertificateRevocationListRequestTypeDef

export_client_vpn_client_configuration#

Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").export_client_vpn_client_configuration method. boto3 documentation

# export_client_vpn_client_configuration method definition

def export_client_vpn_client_configuration(
    self,
    *,
    ClientVpnEndpointId: str,
    DryRun: bool = ...,
) -> ExportClientVpnClientConfigurationResultTypeDef:  # (1)
    ...
  1. See ExportClientVpnClientConfigurationResultTypeDef
# export_client_vpn_client_configuration method usage example with argument unpacking

kwargs: ExportClientVpnClientConfigurationRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.export_client_vpn_client_configuration(**kwargs)
  1. See ExportClientVpnClientConfigurationRequestTypeDef

export_image#

Exports an Amazon Machine Image (AMI) to a VM file.

Type annotations and code completion for boto3.client("ec2").export_image method. boto3 documentation

# export_image method definition

def export_image(
    self,
    *,
    DiskImageFormat: DiskImageFormatType,  # (1)
    ImageId: str,
    S3ExportLocation: ExportTaskS3LocationRequestTypeDef,  # (2)
    ClientToken: str = ...,
    Description: str = ...,
    DryRun: bool = ...,
    RoleName: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (3)
) -> ExportImageResultTypeDef:  # (4)
    ...
  1. See DiskImageFormatType
  2. See ExportTaskS3LocationRequestTypeDef
  3. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  4. See ExportImageResultTypeDef
# export_image method usage example with argument unpacking

kwargs: ExportImageRequestTypeDef = {  # (1)
    "DiskImageFormat": ...,
    "ImageId": ...,
    "S3ExportLocation": ...,
}

parent.export_image(**kwargs)
  1. See ExportImageRequestTypeDef

export_transit_gateway_routes#

Exports routes from the specified transit gateway route table to the specified S3 bucket.

Type annotations and code completion for boto3.client("ec2").export_transit_gateway_routes method. boto3 documentation

# export_transit_gateway_routes method definition

def export_transit_gateway_routes(
    self,
    *,
    TransitGatewayRouteTableId: str,
    S3Bucket: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> ExportTransitGatewayRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See ExportTransitGatewayRoutesResultTypeDef
# export_transit_gateway_routes method usage example with argument unpacking

kwargs: ExportTransitGatewayRoutesRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "S3Bucket": ...,
}

parent.export_transit_gateway_routes(**kwargs)
  1. See ExportTransitGatewayRoutesRequestTypeDef

export_verified_access_instance_client_configuration#

Exports the client configuration for a Verified Access instance.

Type annotations and code completion for boto3.client("ec2").export_verified_access_instance_client_configuration method. boto3 documentation

# export_verified_access_instance_client_configuration method definition

def export_verified_access_instance_client_configuration(
    self,
    *,
    VerifiedAccessInstanceId: str,
    DryRun: bool = ...,
) -> ExportVerifiedAccessInstanceClientConfigurationResultTypeDef:  # (1)
    ...
  1. See ExportVerifiedAccessInstanceClientConfigurationResultTypeDef
# export_verified_access_instance_client_configuration method usage example with argument unpacking

kwargs: ExportVerifiedAccessInstanceClientConfigurationRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
}

parent.export_verified_access_instance_client_configuration(**kwargs)
  1. See ExportVerifiedAccessInstanceClientConfigurationRequestTypeDef

get_allowed_images_settings#

Gets the current state of the Allowed AMIs setting and the list of Allowed AMIs criteria at the account level in the specified Region.

Type annotations and code completion for boto3.client("ec2").get_allowed_images_settings method. boto3 documentation

# get_allowed_images_settings method definition

def get_allowed_images_settings(
    self,
    *,
    DryRun: bool = ...,
) -> GetAllowedImagesSettingsResultTypeDef:  # (1)
    ...
  1. See GetAllowedImagesSettingsResultTypeDef
# get_allowed_images_settings method usage example with argument unpacking

kwargs: GetAllowedImagesSettingsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_allowed_images_settings(**kwargs)
  1. See GetAllowedImagesSettingsRequestTypeDef

get_associated_enclave_certificate_iam_roles#

Returns the IAM roles that are associated with the specified ACM (ACM) certificate.

Type annotations and code completion for boto3.client("ec2").get_associated_enclave_certificate_iam_roles method. boto3 documentation

# get_associated_enclave_certificate_iam_roles method definition

def get_associated_enclave_certificate_iam_roles(
    self,
    *,
    CertificateArn: str,
    DryRun: bool = ...,
) -> GetAssociatedEnclaveCertificateIamRolesResultTypeDef:  # (1)
    ...
  1. See GetAssociatedEnclaveCertificateIamRolesResultTypeDef
# get_associated_enclave_certificate_iam_roles method usage example with argument unpacking

kwargs: GetAssociatedEnclaveCertificateIamRolesRequestTypeDef = {  # (1)
    "CertificateArn": ...,
}

parent.get_associated_enclave_certificate_iam_roles(**kwargs)
  1. See GetAssociatedEnclaveCertificateIamRolesRequestTypeDef

get_associated_ipv6_pool_cidrs#

Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool.

Type annotations and code completion for boto3.client("ec2").get_associated_ipv6_pool_cidrs method. boto3 documentation

# get_associated_ipv6_pool_cidrs method definition

def get_associated_ipv6_pool_cidrs(
    self,
    *,
    PoolId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetAssociatedIpv6PoolCidrsResultTypeDef:  # (1)
    ...
  1. See GetAssociatedIpv6PoolCidrsResultTypeDef
# get_associated_ipv6_pool_cidrs method usage example with argument unpacking

kwargs: GetAssociatedIpv6PoolCidrsRequestTypeDef = {  # (1)
    "PoolId": ...,
}

parent.get_associated_ipv6_pool_cidrs(**kwargs)
  1. See GetAssociatedIpv6PoolCidrsRequestTypeDef

get_aws_network_performance_data#

Gets network performance data.

Type annotations and code completion for boto3.client("ec2").get_aws_network_performance_data method. boto3 documentation

# get_aws_network_performance_data method definition

def get_aws_network_performance_data(
    self,
    *,
    DataQueries: Sequence[DataQueryTypeDef] = ...,  # (1)
    StartTime: TimestampTypeDef = ...,
    EndTime: TimestampTypeDef = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetAwsNetworkPerformanceDataResultTypeDef:  # (2)
    ...
  1. See DataQueryTypeDef
  2. See GetAwsNetworkPerformanceDataResultTypeDef
# get_aws_network_performance_data method usage example with argument unpacking

kwargs: GetAwsNetworkPerformanceDataRequestTypeDef = {  # (1)
    "DataQueries": ...,
}

parent.get_aws_network_performance_data(**kwargs)
  1. See GetAwsNetworkPerformanceDataRequestTypeDef

get_capacity_reservation_usage#

Gets usage information about a Capacity Reservation.

Type annotations and code completion for boto3.client("ec2").get_capacity_reservation_usage method. boto3 documentation

# get_capacity_reservation_usage method definition

def get_capacity_reservation_usage(
    self,
    *,
    CapacityReservationId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetCapacityReservationUsageResultTypeDef:  # (1)
    ...
  1. See GetCapacityReservationUsageResultTypeDef
# get_capacity_reservation_usage method usage example with argument unpacking

kwargs: GetCapacityReservationUsageRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.get_capacity_reservation_usage(**kwargs)
  1. See GetCapacityReservationUsageRequestTypeDef

get_coip_pool_usage#

Describes the allocations from the specified customer-owned address pool.

Type annotations and code completion for boto3.client("ec2").get_coip_pool_usage method. boto3 documentation

# get_coip_pool_usage method definition

def get_coip_pool_usage(
    self,
    *,
    PoolId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetCoipPoolUsageResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetCoipPoolUsageResultTypeDef
# get_coip_pool_usage method usage example with argument unpacking

kwargs: GetCoipPoolUsageRequestTypeDef = {  # (1)
    "PoolId": ...,
}

parent.get_coip_pool_usage(**kwargs)
  1. See GetCoipPoolUsageRequestTypeDef

get_console_output#

Gets the console output for the specified instance.

Type annotations and code completion for boto3.client("ec2").get_console_output method. boto3 documentation

# get_console_output method definition

def get_console_output(
    self,
    *,
    InstanceId: str,
    Latest: bool = ...,
    DryRun: bool = ...,
) -> GetConsoleOutputResultTypeDef:  # (1)
    ...
  1. See GetConsoleOutputResultTypeDef
# get_console_output method usage example with argument unpacking

kwargs: GetConsoleOutputRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_console_output(**kwargs)
  1. See GetConsoleOutputRequestTypeDef

get_console_screenshot#

Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

Type annotations and code completion for boto3.client("ec2").get_console_screenshot method. boto3 documentation

# get_console_screenshot method definition

def get_console_screenshot(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
    WakeUp: bool = ...,
) -> GetConsoleScreenshotResultTypeDef:  # (1)
    ...
  1. See GetConsoleScreenshotResultTypeDef
# get_console_screenshot method usage example with argument unpacking

kwargs: GetConsoleScreenshotRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_console_screenshot(**kwargs)
  1. See GetConsoleScreenshotRequestTypeDef

get_declarative_policies_report_summary#

Retrieves a summary of the account status report.

Type annotations and code completion for boto3.client("ec2").get_declarative_policies_report_summary method. boto3 documentation

# get_declarative_policies_report_summary method definition

def get_declarative_policies_report_summary(
    self,
    *,
    ReportId: str,
    DryRun: bool = ...,
) -> GetDeclarativePoliciesReportSummaryResultTypeDef:  # (1)
    ...
  1. See GetDeclarativePoliciesReportSummaryResultTypeDef
# get_declarative_policies_report_summary method usage example with argument unpacking

kwargs: GetDeclarativePoliciesReportSummaryRequestTypeDef = {  # (1)
    "ReportId": ...,
}

parent.get_declarative_policies_report_summary(**kwargs)
  1. See GetDeclarativePoliciesReportSummaryRequestTypeDef

get_default_credit_specification#

Describes the default credit option for CPU usage of a burstable performance instance family.

Type annotations and code completion for boto3.client("ec2").get_default_credit_specification method. boto3 documentation

# get_default_credit_specification method definition

def get_default_credit_specification(
    self,
    *,
    InstanceFamily: UnlimitedSupportedInstanceFamilyType,  # (1)
    DryRun: bool = ...,
) -> GetDefaultCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See UnlimitedSupportedInstanceFamilyType
  2. See GetDefaultCreditSpecificationResultTypeDef
# get_default_credit_specification method usage example with argument unpacking

kwargs: GetDefaultCreditSpecificationRequestTypeDef = {  # (1)
    "InstanceFamily": ...,
}

parent.get_default_credit_specification(**kwargs)
  1. See GetDefaultCreditSpecificationRequestTypeDef

get_ebs_default_kms_key_id#

Describes the default KMS key for EBS encryption by default for your account in this Region.

Type annotations and code completion for boto3.client("ec2").get_ebs_default_kms_key_id method. boto3 documentation

# get_ebs_default_kms_key_id method definition

def get_ebs_default_kms_key_id(
    self,
    *,
    DryRun: bool = ...,
) -> GetEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See GetEbsDefaultKmsKeyIdResultTypeDef
# get_ebs_default_kms_key_id method usage example with argument unpacking

kwargs: GetEbsDefaultKmsKeyIdRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_ebs_default_kms_key_id(**kwargs)
  1. See GetEbsDefaultKmsKeyIdRequestTypeDef

get_ebs_encryption_by_default#

Describes whether EBS encryption by default is enabled for your account in the current Region.

Type annotations and code completion for boto3.client("ec2").get_ebs_encryption_by_default method. boto3 documentation

# get_ebs_encryption_by_default method definition

def get_ebs_encryption_by_default(
    self,
    *,
    DryRun: bool = ...,
) -> GetEbsEncryptionByDefaultResultTypeDef:  # (1)
    ...
  1. See GetEbsEncryptionByDefaultResultTypeDef
# get_ebs_encryption_by_default method usage example with argument unpacking

kwargs: GetEbsEncryptionByDefaultRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_ebs_encryption_by_default(**kwargs)
  1. See GetEbsEncryptionByDefaultRequestTypeDef

get_flow_logs_integration_template#

Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena.

Type annotations and code completion for boto3.client("ec2").get_flow_logs_integration_template method. boto3 documentation

# get_flow_logs_integration_template method definition

def get_flow_logs_integration_template(
    self,
    *,
    FlowLogId: str,
    ConfigDeliveryS3DestinationArn: str,
    IntegrateServices: IntegrateServicesTypeDef,  # (1)
    DryRun: bool = ...,
) -> GetFlowLogsIntegrationTemplateResultTypeDef:  # (2)
    ...
  1. See IntegrateServicesTypeDef
  2. See GetFlowLogsIntegrationTemplateResultTypeDef
# get_flow_logs_integration_template method usage example with argument unpacking

kwargs: GetFlowLogsIntegrationTemplateRequestTypeDef = {  # (1)
    "FlowLogId": ...,
    "ConfigDeliveryS3DestinationArn": ...,
    "IntegrateServices": ...,
}

parent.get_flow_logs_integration_template(**kwargs)
  1. See GetFlowLogsIntegrationTemplateRequestTypeDef

get_groups_for_capacity_reservation#

Lists the resource groups to which a Capacity Reservation has been added.

Type annotations and code completion for boto3.client("ec2").get_groups_for_capacity_reservation method. boto3 documentation

# get_groups_for_capacity_reservation method definition

def get_groups_for_capacity_reservation(
    self,
    *,
    CapacityReservationId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> GetGroupsForCapacityReservationResultTypeDef:  # (1)
    ...
  1. See GetGroupsForCapacityReservationResultTypeDef
# get_groups_for_capacity_reservation method usage example with argument unpacking

kwargs: GetGroupsForCapacityReservationRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.get_groups_for_capacity_reservation(**kwargs)
  1. See GetGroupsForCapacityReservationRequestTypeDef

get_host_reservation_purchase_preview#

Preview a reservation purchase with configurations that match those of your Dedicated Host.

Type annotations and code completion for boto3.client("ec2").get_host_reservation_purchase_preview method. boto3 documentation

# get_host_reservation_purchase_preview method definition

def get_host_reservation_purchase_preview(
    self,
    *,
    HostIdSet: Sequence[str],
    OfferingId: str,
) -> GetHostReservationPurchasePreviewResultTypeDef:  # (1)
    ...
  1. See GetHostReservationPurchasePreviewResultTypeDef
# get_host_reservation_purchase_preview method usage example with argument unpacking

kwargs: GetHostReservationPurchasePreviewRequestTypeDef = {  # (1)
    "HostIdSet": ...,
    "OfferingId": ...,
}

parent.get_host_reservation_purchase_preview(**kwargs)
  1. See GetHostReservationPurchasePreviewRequestTypeDef

get_image_block_public_access_state#

Gets the current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.

Type annotations and code completion for boto3.client("ec2").get_image_block_public_access_state method. boto3 documentation

# get_image_block_public_access_state method definition

def get_image_block_public_access_state(
    self,
    *,
    DryRun: bool = ...,
) -> GetImageBlockPublicAccessStateResultTypeDef:  # (1)
    ...
  1. See GetImageBlockPublicAccessStateResultTypeDef
# get_image_block_public_access_state method usage example with argument unpacking

kwargs: GetImageBlockPublicAccessStateRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_image_block_public_access_state(**kwargs)
  1. See GetImageBlockPublicAccessStateRequestTypeDef

get_instance_metadata_defaults#

Gets the default instance metadata service (IMDS) settings that are set at the account level in the specified Amazon Web Services
 Region.

Type annotations and code completion for boto3.client("ec2").get_instance_metadata_defaults method. boto3 documentation

# get_instance_metadata_defaults method definition

def get_instance_metadata_defaults(
    self,
    *,
    DryRun: bool = ...,
) -> GetInstanceMetadataDefaultsResultTypeDef:  # (1)
    ...
  1. See GetInstanceMetadataDefaultsResultTypeDef
# get_instance_metadata_defaults method usage example with argument unpacking

kwargs: GetInstanceMetadataDefaultsRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_instance_metadata_defaults(**kwargs)
  1. See GetInstanceMetadataDefaultsRequestTypeDef

get_instance_tpm_ek_pub#

Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance.

Type annotations and code completion for boto3.client("ec2").get_instance_tpm_ek_pub method. boto3 documentation

# get_instance_tpm_ek_pub method definition

def get_instance_tpm_ek_pub(
    self,
    *,
    InstanceId: str,
    KeyType: EkPubKeyTypeType,  # (1)
    KeyFormat: EkPubKeyFormatType,  # (2)
    DryRun: bool = ...,
) -> GetInstanceTpmEkPubResultTypeDef:  # (3)
    ...
  1. See EkPubKeyTypeType
  2. See EkPubKeyFormatType
  3. See GetInstanceTpmEkPubResultTypeDef
# get_instance_tpm_ek_pub method usage example with argument unpacking

kwargs: GetInstanceTpmEkPubRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "KeyType": ...,
    "KeyFormat": ...,
}

parent.get_instance_tpm_ek_pub(**kwargs)
  1. See GetInstanceTpmEkPubRequestTypeDef

get_instance_types_from_instance_requirements#

Returns a list of instance types with the specified instance attributes.

Type annotations and code completion for boto3.client("ec2").get_instance_types_from_instance_requirements method. boto3 documentation

# get_instance_types_from_instance_requirements method definition

def get_instance_types_from_instance_requirements(
    self,
    *,
    ArchitectureTypes: Sequence[ArchitectureTypeType],  # (1)
    VirtualizationTypes: Sequence[VirtualizationTypeType],  # (2)
    InstanceRequirements: InstanceRequirementsRequestTypeDef,  # (3)
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetInstanceTypesFromInstanceRequirementsResultTypeDef:  # (4)
    ...
  1. See ArchitectureTypeType
  2. See VirtualizationTypeType
  3. See InstanceRequirementsRequestTypeDef
  4. See GetInstanceTypesFromInstanceRequirementsResultTypeDef
# get_instance_types_from_instance_requirements method usage example with argument unpacking

kwargs: GetInstanceTypesFromInstanceRequirementsRequestTypeDef = {  # (1)
    "ArchitectureTypes": ...,
    "VirtualizationTypes": ...,
    "InstanceRequirements": ...,
}

parent.get_instance_types_from_instance_requirements(**kwargs)
  1. See GetInstanceTypesFromInstanceRequirementsRequestTypeDef

get_instance_uefi_data#

A binary representation of the UEFI variable store.

Type annotations and code completion for boto3.client("ec2").get_instance_uefi_data method. boto3 documentation

# get_instance_uefi_data method definition

def get_instance_uefi_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetInstanceUefiDataResultTypeDef:  # (1)
    ...
  1. See GetInstanceUefiDataResultTypeDef
# get_instance_uefi_data method usage example with argument unpacking

kwargs: GetInstanceUefiDataRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_instance_uefi_data(**kwargs)
  1. See GetInstanceUefiDataRequestTypeDef

get_ipam_address_history#

Retrieve historical information about a CIDR within an IPAM scope.

Type annotations and code completion for boto3.client("ec2").get_ipam_address_history method. boto3 documentation

# get_ipam_address_history method definition

def get_ipam_address_history(
    self,
    *,
    Cidr: str,
    IpamScopeId: str,
    DryRun: bool = ...,
    VpcId: str = ...,
    StartTime: TimestampTypeDef = ...,
    EndTime: TimestampTypeDef = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetIpamAddressHistoryResultTypeDef:  # (1)
    ...
  1. See GetIpamAddressHistoryResultTypeDef
# get_ipam_address_history method usage example with argument unpacking

kwargs: GetIpamAddressHistoryRequestTypeDef = {  # (1)
    "Cidr": ...,
    "IpamScopeId": ...,
}

parent.get_ipam_address_history(**kwargs)
  1. See GetIpamAddressHistoryRequestTypeDef

get_ipam_discovered_accounts#

Gets IPAM discovered accounts.

Type annotations and code completion for boto3.client("ec2").get_ipam_discovered_accounts method. boto3 documentation

# get_ipam_discovered_accounts method definition

def get_ipam_discovered_accounts(
    self,
    *,
    IpamResourceDiscoveryId: str,
    DiscoveryRegion: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetIpamDiscoveredAccountsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamDiscoveredAccountsResultTypeDef
# get_ipam_discovered_accounts method usage example with argument unpacking

kwargs: GetIpamDiscoveredAccountsRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
    "DiscoveryRegion": ...,
}

parent.get_ipam_discovered_accounts(**kwargs)
  1. See GetIpamDiscoveredAccountsRequestTypeDef

get_ipam_discovered_public_addresses#

Gets the public IP addresses that have been discovered by IPAM.

Type annotations and code completion for boto3.client("ec2").get_ipam_discovered_public_addresses method. boto3 documentation

# get_ipam_discovered_public_addresses method definition

def get_ipam_discovered_public_addresses(
    self,
    *,
    IpamResourceDiscoveryId: str,
    AddressRegion: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetIpamDiscoveredPublicAddressesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamDiscoveredPublicAddressesResultTypeDef
# get_ipam_discovered_public_addresses method usage example with argument unpacking

kwargs: GetIpamDiscoveredPublicAddressesRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
    "AddressRegion": ...,
}

parent.get_ipam_discovered_public_addresses(**kwargs)
  1. See GetIpamDiscoveredPublicAddressesRequestTypeDef

get_ipam_discovered_resource_cidrs#

Returns the resource CIDRs that are monitored as part of a resource discovery.

Type annotations and code completion for boto3.client("ec2").get_ipam_discovered_resource_cidrs method. boto3 documentation

# get_ipam_discovered_resource_cidrs method definition

def get_ipam_discovered_resource_cidrs(
    self,
    *,
    IpamResourceDiscoveryId: str,
    ResourceRegion: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetIpamDiscoveredResourceCidrsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamDiscoveredResourceCidrsResultTypeDef
# get_ipam_discovered_resource_cidrs method usage example with argument unpacking

kwargs: GetIpamDiscoveredResourceCidrsRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
    "ResourceRegion": ...,
}

parent.get_ipam_discovered_resource_cidrs(**kwargs)
  1. See GetIpamDiscoveredResourceCidrsRequestTypeDef

get_ipam_pool_allocations#

Get a list of all the CIDR allocations in an IPAM pool.

Type annotations and code completion for boto3.client("ec2").get_ipam_pool_allocations method. boto3 documentation

# get_ipam_pool_allocations method definition

def get_ipam_pool_allocations(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    IpamPoolAllocationId: str = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetIpamPoolAllocationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamPoolAllocationsResultTypeDef
# get_ipam_pool_allocations method usage example with argument unpacking

kwargs: GetIpamPoolAllocationsRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.get_ipam_pool_allocations(**kwargs)
  1. See GetIpamPoolAllocationsRequestTypeDef

get_ipam_pool_cidrs#

Get the CIDRs provisioned to an IPAM pool.

Type annotations and code completion for boto3.client("ec2").get_ipam_pool_cidrs method. boto3 documentation

# get_ipam_pool_cidrs method definition

def get_ipam_pool_cidrs(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetIpamPoolCidrsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetIpamPoolCidrsResultTypeDef
# get_ipam_pool_cidrs method usage example with argument unpacking

kwargs: GetIpamPoolCidrsRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.get_ipam_pool_cidrs(**kwargs)
  1. See GetIpamPoolCidrsRequestTypeDef

get_ipam_resource_cidrs#

Returns resource CIDRs managed by IPAM in a given scope.

Type annotations and code completion for boto3.client("ec2").get_ipam_resource_cidrs method. boto3 documentation

# get_ipam_resource_cidrs method definition

def get_ipam_resource_cidrs(
    self,
    *,
    IpamScopeId: str,
    DryRun: bool = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    IpamPoolId: str = ...,
    ResourceId: str = ...,
    ResourceType: IpamResourceTypeType = ...,  # (2)
    ResourceTag: RequestIpamResourceTagTypeDef = ...,  # (3)
    ResourceOwner: str = ...,
) -> GetIpamResourceCidrsResultTypeDef:  # (4)
    ...
  1. See FilterTypeDef
  2. See IpamResourceTypeType
  3. See RequestIpamResourceTagTypeDef
  4. See GetIpamResourceCidrsResultTypeDef
# get_ipam_resource_cidrs method usage example with argument unpacking

kwargs: GetIpamResourceCidrsRequestTypeDef = {  # (1)
    "IpamScopeId": ...,
}

parent.get_ipam_resource_cidrs(**kwargs)
  1. See GetIpamResourceCidrsRequestTypeDef

get_launch_template_data#

Retrieves the configuration data of the specified instance.

Type annotations and code completion for boto3.client("ec2").get_launch_template_data method. boto3 documentation

# get_launch_template_data method definition

def get_launch_template_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetLaunchTemplateDataResultTypeDef:  # (1)
    ...
  1. See GetLaunchTemplateDataResultTypeDef
# get_launch_template_data method usage example with argument unpacking

kwargs: GetLaunchTemplateDataRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_launch_template_data(**kwargs)
  1. See GetLaunchTemplateDataRequestTypeDef

get_managed_prefix_list_associations#

Gets information about the resources that are associated with the specified managed prefix list.

Type annotations and code completion for boto3.client("ec2").get_managed_prefix_list_associations method. boto3 documentation

# get_managed_prefix_list_associations method definition

def get_managed_prefix_list_associations(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetManagedPrefixListAssociationsResultTypeDef:  # (1)
    ...
  1. See GetManagedPrefixListAssociationsResultTypeDef
# get_managed_prefix_list_associations method usage example with argument unpacking

kwargs: GetManagedPrefixListAssociationsRequestTypeDef = {  # (1)
    "PrefixListId": ...,
}

parent.get_managed_prefix_list_associations(**kwargs)
  1. See GetManagedPrefixListAssociationsRequestTypeDef

get_managed_prefix_list_entries#

Gets information about the entries for a specified managed prefix list.

Type annotations and code completion for boto3.client("ec2").get_managed_prefix_list_entries method. boto3 documentation

# get_managed_prefix_list_entries method definition

def get_managed_prefix_list_entries(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
    TargetVersion: int = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetManagedPrefixListEntriesResultTypeDef:  # (1)
    ...
  1. See GetManagedPrefixListEntriesResultTypeDef
# get_managed_prefix_list_entries method usage example with argument unpacking

kwargs: GetManagedPrefixListEntriesRequestTypeDef = {  # (1)
    "PrefixListId": ...,
}

parent.get_managed_prefix_list_entries(**kwargs)
  1. See GetManagedPrefixListEntriesRequestTypeDef

get_network_insights_access_scope_analysis_findings#

Gets the findings for the specified Network Access Scope analysis.

Type annotations and code completion for boto3.client("ec2").get_network_insights_access_scope_analysis_findings method. boto3 documentation

# get_network_insights_access_scope_analysis_findings method definition

def get_network_insights_access_scope_analysis_findings(
    self,
    *,
    NetworkInsightsAccessScopeAnalysisId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeAnalysisFindingsResultTypeDef:  # (1)
    ...
  1. See GetNetworkInsightsAccessScopeAnalysisFindingsResultTypeDef
# get_network_insights_access_scope_analysis_findings method usage example with argument unpacking

kwargs: GetNetworkInsightsAccessScopeAnalysisFindingsRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeAnalysisId": ...,
}

parent.get_network_insights_access_scope_analysis_findings(**kwargs)
  1. See GetNetworkInsightsAccessScopeAnalysisFindingsRequestTypeDef

get_network_insights_access_scope_content#

Gets the content for the specified Network Access Scope.

Type annotations and code completion for boto3.client("ec2").get_network_insights_access_scope_content method. boto3 documentation

# get_network_insights_access_scope_content method definition

def get_network_insights_access_scope_content(
    self,
    *,
    NetworkInsightsAccessScopeId: str,
    DryRun: bool = ...,
) -> GetNetworkInsightsAccessScopeContentResultTypeDef:  # (1)
    ...
  1. See GetNetworkInsightsAccessScopeContentResultTypeDef
# get_network_insights_access_scope_content method usage example with argument unpacking

kwargs: GetNetworkInsightsAccessScopeContentRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeId": ...,
}

parent.get_network_insights_access_scope_content(**kwargs)
  1. See GetNetworkInsightsAccessScopeContentRequestTypeDef

get_password_data#

Retrieves the encrypted administrator password for a running Windows instance.

Type annotations and code completion for boto3.client("ec2").get_password_data method. boto3 documentation

# get_password_data method definition

def get_password_data(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> GetPasswordDataResultTypeDef:  # (1)
    ...
  1. See GetPasswordDataResultTypeDef
# get_password_data method usage example with argument unpacking

kwargs: GetPasswordDataRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.get_password_data(**kwargs)
  1. See GetPasswordDataRequestTypeDef

get_reserved_instances_exchange_quote#

Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance.

Type annotations and code completion for boto3.client("ec2").get_reserved_instances_exchange_quote method. boto3 documentation

# get_reserved_instances_exchange_quote method definition

def get_reserved_instances_exchange_quote(
    self,
    *,
    ReservedInstanceIds: Sequence[str],
    DryRun: bool = ...,
    TargetConfigurations: Sequence[TargetConfigurationRequestTypeDef] = ...,  # (1)
) -> GetReservedInstancesExchangeQuoteResultTypeDef:  # (2)
    ...
  1. See TargetConfigurationRequestTypeDef
  2. See GetReservedInstancesExchangeQuoteResultTypeDef
# get_reserved_instances_exchange_quote method usage example with argument unpacking

kwargs: GetReservedInstancesExchangeQuoteRequestTypeDef = {  # (1)
    "ReservedInstanceIds": ...,
}

parent.get_reserved_instances_exchange_quote(**kwargs)
  1. See GetReservedInstancesExchangeQuoteRequestTypeDef

get_security_groups_for_vpc#

Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC.

Type annotations and code completion for boto3.client("ec2").get_security_groups_for_vpc method. boto3 documentation

# get_security_groups_for_vpc method definition

def get_security_groups_for_vpc(
    self,
    *,
    VpcId: str,
    NextToken: str = ...,
    MaxResults: int = ...,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> GetSecurityGroupsForVpcResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetSecurityGroupsForVpcResultTypeDef
# get_security_groups_for_vpc method usage example with argument unpacking

kwargs: GetSecurityGroupsForVpcRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.get_security_groups_for_vpc(**kwargs)
  1. See GetSecurityGroupsForVpcRequestTypeDef

get_serial_console_access_status#

Retrieves the access status of your account to the EC2 serial console of all instances.

Type annotations and code completion for boto3.client("ec2").get_serial_console_access_status method. boto3 documentation

# get_serial_console_access_status method definition

def get_serial_console_access_status(
    self,
    *,
    DryRun: bool = ...,
) -> GetSerialConsoleAccessStatusResultTypeDef:  # (1)
    ...
  1. See GetSerialConsoleAccessStatusResultTypeDef
# get_serial_console_access_status method usage example with argument unpacking

kwargs: GetSerialConsoleAccessStatusRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_serial_console_access_status(**kwargs)
  1. See GetSerialConsoleAccessStatusRequestTypeDef

get_snapshot_block_public_access_state#

Gets the current state of block public access for snapshots setting for the account and Region.

Type annotations and code completion for boto3.client("ec2").get_snapshot_block_public_access_state method. boto3 documentation

# get_snapshot_block_public_access_state method definition

def get_snapshot_block_public_access_state(
    self,
    *,
    DryRun: bool = ...,
) -> GetSnapshotBlockPublicAccessStateResultTypeDef:  # (1)
    ...
  1. See GetSnapshotBlockPublicAccessStateResultTypeDef
# get_snapshot_block_public_access_state method usage example with argument unpacking

kwargs: GetSnapshotBlockPublicAccessStateRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.get_snapshot_block_public_access_state(**kwargs)
  1. See GetSnapshotBlockPublicAccessStateRequestTypeDef

get_spot_placement_scores#

Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.

Type annotations and code completion for boto3.client("ec2").get_spot_placement_scores method. boto3 documentation

# get_spot_placement_scores method definition

def get_spot_placement_scores(
    self,
    *,
    TargetCapacity: int,
    InstanceTypes: Sequence[str] = ...,
    TargetCapacityUnitType: TargetCapacityUnitTypeType = ...,  # (1)
    SingleAvailabilityZone: bool = ...,
    RegionNames: Sequence[str] = ...,
    InstanceRequirementsWithMetadata: InstanceRequirementsWithMetadataRequestTypeDef = ...,  # (2)
    DryRun: bool = ...,
    MaxResults: int = ...,
    NextToken: str = ...,
) -> GetSpotPlacementScoresResultTypeDef:  # (3)
    ...
  1. See TargetCapacityUnitTypeType
  2. See InstanceRequirementsWithMetadataRequestTypeDef
  3. See GetSpotPlacementScoresResultTypeDef
# get_spot_placement_scores method usage example with argument unpacking

kwargs: GetSpotPlacementScoresRequestTypeDef = {  # (1)
    "TargetCapacity": ...,
}

parent.get_spot_placement_scores(**kwargs)
  1. See GetSpotPlacementScoresRequestTypeDef

get_subnet_cidr_reservations#

Gets information about the subnet CIDR reservations.

Type annotations and code completion for boto3.client("ec2").get_subnet_cidr_reservations method. boto3 documentation

# get_subnet_cidr_reservations method definition

def get_subnet_cidr_reservations(
    self,
    *,
    SubnetId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    DryRun: bool = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
) -> GetSubnetCidrReservationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetSubnetCidrReservationsResultTypeDef
# get_subnet_cidr_reservations method usage example with argument unpacking

kwargs: GetSubnetCidrReservationsRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.get_subnet_cidr_reservations(**kwargs)
  1. See GetSubnetCidrReservationsRequestTypeDef

get_transit_gateway_attachment_propagations#

Lists the route tables to which the specified resource attachment propagates routes.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_attachment_propagations method. boto3 documentation

# get_transit_gateway_attachment_propagations method definition

def get_transit_gateway_attachment_propagations(
    self,
    *,
    TransitGatewayAttachmentId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayAttachmentPropagationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayAttachmentPropagationsResultTypeDef
# get_transit_gateway_attachment_propagations method usage example with argument unpacking

kwargs: GetTransitGatewayAttachmentPropagationsRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.get_transit_gateway_attachment_propagations(**kwargs)
  1. See GetTransitGatewayAttachmentPropagationsRequestTypeDef

get_transit_gateway_multicast_domain_associations#

Gets information about the associations for the transit gateway multicast domain.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_multicast_domain_associations method. boto3 documentation

# get_transit_gateway_multicast_domain_associations method definition

def get_transit_gateway_multicast_domain_associations(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayMulticastDomainAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayMulticastDomainAssociationsResultTypeDef
# get_transit_gateway_multicast_domain_associations method usage example with argument unpacking

kwargs: GetTransitGatewayMulticastDomainAssociationsRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.get_transit_gateway_multicast_domain_associations(**kwargs)
  1. See GetTransitGatewayMulticastDomainAssociationsRequestTypeDef

get_transit_gateway_policy_table_associations#

Gets a list of the transit gateway policy table associations.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_policy_table_associations method. boto3 documentation

# get_transit_gateway_policy_table_associations method definition

def get_transit_gateway_policy_table_associations(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayPolicyTableAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayPolicyTableAssociationsResultTypeDef
# get_transit_gateway_policy_table_associations method usage example with argument unpacking

kwargs: GetTransitGatewayPolicyTableAssociationsRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
}

parent.get_transit_gateway_policy_table_associations(**kwargs)
  1. See GetTransitGatewayPolicyTableAssociationsRequestTypeDef

get_transit_gateway_policy_table_entries#

Returns a list of transit gateway policy table entries.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_policy_table_entries method. boto3 documentation

# get_transit_gateway_policy_table_entries method definition

def get_transit_gateway_policy_table_entries(
    self,
    *,
    TransitGatewayPolicyTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayPolicyTableEntriesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayPolicyTableEntriesResultTypeDef
# get_transit_gateway_policy_table_entries method usage example with argument unpacking

kwargs: GetTransitGatewayPolicyTableEntriesRequestTypeDef = {  # (1)
    "TransitGatewayPolicyTableId": ...,
}

parent.get_transit_gateway_policy_table_entries(**kwargs)
  1. See GetTransitGatewayPolicyTableEntriesRequestTypeDef

get_transit_gateway_prefix_list_references#

Gets information about the prefix list references in a specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_prefix_list_references method. boto3 documentation

# get_transit_gateway_prefix_list_references method definition

def get_transit_gateway_prefix_list_references(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayPrefixListReferencesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayPrefixListReferencesResultTypeDef
# get_transit_gateway_prefix_list_references method usage example with argument unpacking

kwargs: GetTransitGatewayPrefixListReferencesRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.get_transit_gateway_prefix_list_references(**kwargs)
  1. See GetTransitGatewayPrefixListReferencesRequestTypeDef

get_transit_gateway_route_table_associations#

Gets information about the associations for the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_route_table_associations method. boto3 documentation

# get_transit_gateway_route_table_associations method definition

def get_transit_gateway_route_table_associations(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayRouteTableAssociationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayRouteTableAssociationsResultTypeDef
# get_transit_gateway_route_table_associations method usage example with argument unpacking

kwargs: GetTransitGatewayRouteTableAssociationsRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.get_transit_gateway_route_table_associations(**kwargs)
  1. See GetTransitGatewayRouteTableAssociationsRequestTypeDef

get_transit_gateway_route_table_propagations#

Gets information about the route table propagations for the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").get_transit_gateway_route_table_propagations method. boto3 documentation

# get_transit_gateway_route_table_propagations method definition

def get_transit_gateway_route_table_propagations(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetTransitGatewayRouteTablePropagationsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See GetTransitGatewayRouteTablePropagationsResultTypeDef
# get_transit_gateway_route_table_propagations method usage example with argument unpacking

kwargs: GetTransitGatewayRouteTablePropagationsRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
}

parent.get_transit_gateway_route_table_propagations(**kwargs)
  1. See GetTransitGatewayRouteTablePropagationsRequestTypeDef

get_verified_access_endpoint_policy#

Get the Verified Access policy associated with the endpoint.

Type annotations and code completion for boto3.client("ec2").get_verified_access_endpoint_policy method. boto3 documentation

# get_verified_access_endpoint_policy method definition

def get_verified_access_endpoint_policy(
    self,
    *,
    VerifiedAccessEndpointId: str,
    DryRun: bool = ...,
) -> GetVerifiedAccessEndpointPolicyResultTypeDef:  # (1)
    ...
  1. See GetVerifiedAccessEndpointPolicyResultTypeDef
# get_verified_access_endpoint_policy method usage example with argument unpacking

kwargs: GetVerifiedAccessEndpointPolicyRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.get_verified_access_endpoint_policy(**kwargs)
  1. See GetVerifiedAccessEndpointPolicyRequestTypeDef

get_verified_access_endpoint_targets#

Gets the targets for the specified network CIDR endpoint for Verified Access.

Type annotations and code completion for boto3.client("ec2").get_verified_access_endpoint_targets method. boto3 documentation

# get_verified_access_endpoint_targets method definition

def get_verified_access_endpoint_targets(
    self,
    *,
    VerifiedAccessEndpointId: str,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetVerifiedAccessEndpointTargetsResultTypeDef:  # (1)
    ...
  1. See GetVerifiedAccessEndpointTargetsResultTypeDef
# get_verified_access_endpoint_targets method usage example with argument unpacking

kwargs: GetVerifiedAccessEndpointTargetsRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.get_verified_access_endpoint_targets(**kwargs)
  1. See GetVerifiedAccessEndpointTargetsRequestTypeDef

get_verified_access_group_policy#

Shows the contents of the Verified Access policy associated with the group.

Type annotations and code completion for boto3.client("ec2").get_verified_access_group_policy method. boto3 documentation

# get_verified_access_group_policy method definition

def get_verified_access_group_policy(
    self,
    *,
    VerifiedAccessGroupId: str,
    DryRun: bool = ...,
) -> GetVerifiedAccessGroupPolicyResultTypeDef:  # (1)
    ...
  1. See GetVerifiedAccessGroupPolicyResultTypeDef
# get_verified_access_group_policy method usage example with argument unpacking

kwargs: GetVerifiedAccessGroupPolicyRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.get_verified_access_group_policy(**kwargs)
  1. See GetVerifiedAccessGroupPolicyRequestTypeDef

get_vpn_connection_device_sample_configuration#

Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.

Type annotations and code completion for boto3.client("ec2").get_vpn_connection_device_sample_configuration method. boto3 documentation

# get_vpn_connection_device_sample_configuration method definition

def get_vpn_connection_device_sample_configuration(
    self,
    *,
    VpnConnectionId: str,
    VpnConnectionDeviceTypeId: str,
    InternetKeyExchangeVersion: str = ...,
    DryRun: bool = ...,
) -> GetVpnConnectionDeviceSampleConfigurationResultTypeDef:  # (1)
    ...
  1. See GetVpnConnectionDeviceSampleConfigurationResultTypeDef
# get_vpn_connection_device_sample_configuration method usage example with argument unpacking

kwargs: GetVpnConnectionDeviceSampleConfigurationRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnConnectionDeviceTypeId": ...,
}

parent.get_vpn_connection_device_sample_configuration(**kwargs)
  1. See GetVpnConnectionDeviceSampleConfigurationRequestTypeDef

get_vpn_connection_device_types#

Obtain a list of customer gateway devices for which sample configuration files can be provided.

Type annotations and code completion for boto3.client("ec2").get_vpn_connection_device_types method. boto3 documentation

# get_vpn_connection_device_types method definition

def get_vpn_connection_device_types(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> GetVpnConnectionDeviceTypesResultTypeDef:  # (1)
    ...
  1. See GetVpnConnectionDeviceTypesResultTypeDef
# get_vpn_connection_device_types method usage example with argument unpacking

kwargs: GetVpnConnectionDeviceTypesRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.get_vpn_connection_device_types(**kwargs)
  1. See GetVpnConnectionDeviceTypesRequestTypeDef

get_vpn_tunnel_replacement_status#

Get details of available tunnel endpoint maintenance.

Type annotations and code completion for boto3.client("ec2").get_vpn_tunnel_replacement_status method. boto3 documentation

# get_vpn_tunnel_replacement_status method definition

def get_vpn_tunnel_replacement_status(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    DryRun: bool = ...,
) -> GetVpnTunnelReplacementStatusResultTypeDef:  # (1)
    ...
  1. See GetVpnTunnelReplacementStatusResultTypeDef
# get_vpn_tunnel_replacement_status method usage example with argument unpacking

kwargs: GetVpnTunnelReplacementStatusRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
}

parent.get_vpn_tunnel_replacement_status(**kwargs)
  1. See GetVpnTunnelReplacementStatusRequestTypeDef

import_client_vpn_client_certificate_revocation_list#

Uploads a client certificate revocation list to the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").import_client_vpn_client_certificate_revocation_list method. boto3 documentation

# import_client_vpn_client_certificate_revocation_list method definition

def import_client_vpn_client_certificate_revocation_list(
    self,
    *,
    ClientVpnEndpointId: str,
    CertificateRevocationList: str,
    DryRun: bool = ...,
) -> ImportClientVpnClientCertificateRevocationListResultTypeDef:  # (1)
    ...
  1. See ImportClientVpnClientCertificateRevocationListResultTypeDef
# import_client_vpn_client_certificate_revocation_list method usage example with argument unpacking

kwargs: ImportClientVpnClientCertificateRevocationListRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "CertificateRevocationList": ...,
}

parent.import_client_vpn_client_certificate_revocation_list(**kwargs)
  1. See ImportClientVpnClientCertificateRevocationListRequestTypeDef

import_image#

To import your virtual machines (VMs) with a console-based experience, you can use the Import virtual machine images to Amazon Web Services template in the Migration Hub Orchestrator console.

Type annotations and code completion for boto3.client("ec2").import_image method. boto3 documentation

# import_image method definition

def import_image(
    self,
    *,
    Architecture: str = ...,
    ClientData: ClientDataTypeDef = ...,  # (1)
    ClientToken: str = ...,
    Description: str = ...,
    DiskContainers: Sequence[ImageDiskContainerTypeDef] = ...,  # (2)
    DryRun: bool = ...,
    Encrypted: bool = ...,
    Hypervisor: str = ...,
    KmsKeyId: str = ...,
    LicenseType: str = ...,
    Platform: str = ...,
    RoleName: str = ...,
    LicenseSpecifications: Sequence[ImportImageLicenseConfigurationRequestTypeDef] = ...,  # (3)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (4)
    UsageOperation: str = ...,
    BootMode: BootModeValuesType = ...,  # (5)
) -> ImportImageResultTypeDef:  # (6)
    ...
  1. See ClientDataTypeDef
  2. See ImageDiskContainerTypeDef
  3. See ImportImageLicenseConfigurationRequestTypeDef
  4. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  5. See BootModeValuesType
  6. See ImportImageResultTypeDef
# import_image method usage example with argument unpacking

kwargs: ImportImageRequestTypeDef = {  # (1)
    "Architecture": ...,
}

parent.import_image(**kwargs)
  1. See ImportImageRequestTypeDef

import_instance#

We recommend that you use the ImportImage API instead.

Type annotations and code completion for boto3.client("ec2").import_instance method. boto3 documentation

# import_instance method definition

def import_instance(
    self,
    *,
    Platform: PlatformValuesType,  # (1)
    DryRun: bool = ...,
    Description: str = ...,
    LaunchSpecification: ImportInstanceLaunchSpecificationTypeDef = ...,  # (2)
    DiskImages: Sequence[DiskImageTypeDef] = ...,  # (3)
) -> ImportInstanceResultTypeDef:  # (4)
    ...
  1. See PlatformValuesType
  2. See ImportInstanceLaunchSpecificationTypeDef
  3. See DiskImageTypeDef
  4. See ImportInstanceResultTypeDef
# import_instance method usage example with argument unpacking

kwargs: ImportInstanceRequestTypeDef = {  # (1)
    "Platform": ...,
}

parent.import_instance(**kwargs)
  1. See ImportInstanceRequestTypeDef

import_key_pair#

Imports the public key from an RSA or ED25519 key pair that you created using a third-party tool.

Type annotations and code completion for boto3.client("ec2").import_key_pair method. boto3 documentation

# import_key_pair method definition

def import_key_pair(
    self,
    *,
    KeyName: str,
    PublicKeyMaterial: BlobTypeDef,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> ImportKeyPairResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See ImportKeyPairResultTypeDef
# import_key_pair method usage example with argument unpacking

kwargs: ImportKeyPairRequestTypeDef = {  # (1)
    "KeyName": ...,
    "PublicKeyMaterial": ...,
}

parent.import_key_pair(**kwargs)
  1. See ImportKeyPairRequestTypeDef

import_snapshot#

Imports a disk into an EBS snapshot.

Type annotations and code completion for boto3.client("ec2").import_snapshot method. boto3 documentation

# import_snapshot method definition

def import_snapshot(
    self,
    *,
    ClientData: ClientDataTypeDef = ...,  # (1)
    ClientToken: str = ...,
    Description: str = ...,
    DiskContainer: SnapshotDiskContainerTypeDef = ...,  # (2)
    DryRun: bool = ...,
    Encrypted: bool = ...,
    KmsKeyId: str = ...,
    RoleName: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (3)
) -> ImportSnapshotResultTypeDef:  # (4)
    ...
  1. See ClientDataTypeDef
  2. See SnapshotDiskContainerTypeDef
  3. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  4. See ImportSnapshotResultTypeDef
# import_snapshot method usage example with argument unpacking

kwargs: ImportSnapshotRequestTypeDef = {  # (1)
    "ClientData": ...,
}

parent.import_snapshot(**kwargs)
  1. See ImportSnapshotRequestTypeDef

import_volume#

This API action supports only single-volume VMs.

Type annotations and code completion for boto3.client("ec2").import_volume method. boto3 documentation

# import_volume method definition

def import_volume(
    self,
    *,
    AvailabilityZone: str,
    Image: DiskImageDetailTypeDef,  # (1)
    Volume: VolumeDetailTypeDef,  # (2)
    DryRun: bool = ...,
    Description: str = ...,
) -> ImportVolumeResultTypeDef:  # (3)
    ...
  1. See DiskImageDetailTypeDef
  2. See VolumeDetailTypeDef
  3. See ImportVolumeResultTypeDef
# import_volume method usage example with argument unpacking

kwargs: ImportVolumeRequestTypeDef = {  # (1)
    "AvailabilityZone": ...,
    "Image": ...,
    "Volume": ...,
}

parent.import_volume(**kwargs)
  1. See ImportVolumeRequestTypeDef

list_images_in_recycle_bin#

Lists one or more AMIs that are currently in the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").list_images_in_recycle_bin method. boto3 documentation

# list_images_in_recycle_bin method definition

def list_images_in_recycle_bin(
    self,
    *,
    ImageIds: Sequence[str] = ...,
    NextToken: str = ...,
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> ListImagesInRecycleBinResultTypeDef:  # (1)
    ...
  1. See ListImagesInRecycleBinResultTypeDef
# list_images_in_recycle_bin method usage example with argument unpacking

kwargs: ListImagesInRecycleBinRequestTypeDef = {  # (1)
    "ImageIds": ...,
}

parent.list_images_in_recycle_bin(**kwargs)
  1. See ListImagesInRecycleBinRequestTypeDef

list_snapshots_in_recycle_bin#

Lists one or more snapshots that are currently in the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").list_snapshots_in_recycle_bin method. boto3 documentation

# list_snapshots_in_recycle_bin method definition

def list_snapshots_in_recycle_bin(
    self,
    *,
    MaxResults: int = ...,
    NextToken: str = ...,
    SnapshotIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> ListSnapshotsInRecycleBinResultTypeDef:  # (1)
    ...
  1. See ListSnapshotsInRecycleBinResultTypeDef
# list_snapshots_in_recycle_bin method usage example with argument unpacking

kwargs: ListSnapshotsInRecycleBinRequestTypeDef = {  # (1)
    "MaxResults": ...,
}

parent.list_snapshots_in_recycle_bin(**kwargs)
  1. See ListSnapshotsInRecycleBinRequestTypeDef

lock_snapshot#

Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration.

Type annotations and code completion for boto3.client("ec2").lock_snapshot method. boto3 documentation

# lock_snapshot method definition

def lock_snapshot(
    self,
    *,
    SnapshotId: str,
    LockMode: LockModeType,  # (1)
    DryRun: bool = ...,
    CoolOffPeriod: int = ...,
    LockDuration: int = ...,
    ExpirationDate: TimestampTypeDef = ...,
) -> LockSnapshotResultTypeDef:  # (2)
    ...
  1. See LockModeType
  2. See LockSnapshotResultTypeDef
# lock_snapshot method usage example with argument unpacking

kwargs: LockSnapshotRequestTypeDef = {  # (1)
    "SnapshotId": ...,
    "LockMode": ...,
}

parent.lock_snapshot(**kwargs)
  1. See LockSnapshotRequestTypeDef

modify_address_attribute#

Modifies an attribute of the specified Elastic IP address.

Type annotations and code completion for boto3.client("ec2").modify_address_attribute method. boto3 documentation

# modify_address_attribute method definition

def modify_address_attribute(
    self,
    *,
    AllocationId: str,
    DomainName: str = ...,
    DryRun: bool = ...,
) -> ModifyAddressAttributeResultTypeDef:  # (1)
    ...
  1. See ModifyAddressAttributeResultTypeDef
# modify_address_attribute method usage example with argument unpacking

kwargs: ModifyAddressAttributeRequestTypeDef = {  # (1)
    "AllocationId": ...,
}

parent.modify_address_attribute(**kwargs)
  1. See ModifyAddressAttributeRequestTypeDef

modify_availability_zone_group#

Changes the opt-in status of the specified zone group for your account.

Type annotations and code completion for boto3.client("ec2").modify_availability_zone_group method. boto3 documentation

# modify_availability_zone_group method definition

def modify_availability_zone_group(
    self,
    *,
    GroupName: str,
    OptInStatus: ModifyAvailabilityZoneOptInStatusType,  # (1)
    DryRun: bool = ...,
) -> ModifyAvailabilityZoneGroupResultTypeDef:  # (2)
    ...
  1. See ModifyAvailabilityZoneOptInStatusType
  2. See ModifyAvailabilityZoneGroupResultTypeDef
# modify_availability_zone_group method usage example with argument unpacking

kwargs: ModifyAvailabilityZoneGroupRequestTypeDef = {  # (1)
    "GroupName": ...,
    "OptInStatus": ...,
}

parent.modify_availability_zone_group(**kwargs)
  1. See ModifyAvailabilityZoneGroupRequestTypeDef

modify_capacity_reservation#

Modifies a Capacity Reservation's capacity, instance eligibility, and the conditions under which it is to be released.

Type annotations and code completion for boto3.client("ec2").modify_capacity_reservation method. boto3 documentation

# modify_capacity_reservation method definition

def modify_capacity_reservation(
    self,
    *,
    CapacityReservationId: str,
    InstanceCount: int = ...,
    EndDate: TimestampTypeDef = ...,
    EndDateType: EndDateTypeType = ...,  # (1)
    Accept: bool = ...,
    DryRun: bool = ...,
    AdditionalInfo: str = ...,
    InstanceMatchCriteria: InstanceMatchCriteriaType = ...,  # (2)
) -> ModifyCapacityReservationResultTypeDef:  # (3)
    ...
  1. See EndDateTypeType
  2. See InstanceMatchCriteriaType
  3. See ModifyCapacityReservationResultTypeDef
# modify_capacity_reservation method usage example with argument unpacking

kwargs: ModifyCapacityReservationRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.modify_capacity_reservation(**kwargs)
  1. See ModifyCapacityReservationRequestTypeDef

modify_capacity_reservation_fleet#

Modifies a Capacity Reservation Fleet.

Type annotations and code completion for boto3.client("ec2").modify_capacity_reservation_fleet method. boto3 documentation

# modify_capacity_reservation_fleet method definition

def modify_capacity_reservation_fleet(
    self,
    *,
    CapacityReservationFleetId: str,
    TotalTargetCapacity: int = ...,
    EndDate: TimestampTypeDef = ...,
    DryRun: bool = ...,
    RemoveEndDate: bool = ...,
) -> ModifyCapacityReservationFleetResultTypeDef:  # (1)
    ...
  1. See ModifyCapacityReservationFleetResultTypeDef
# modify_capacity_reservation_fleet method usage example with argument unpacking

kwargs: ModifyCapacityReservationFleetRequestTypeDef = {  # (1)
    "CapacityReservationFleetId": ...,
}

parent.modify_capacity_reservation_fleet(**kwargs)
  1. See ModifyCapacityReservationFleetRequestTypeDef

modify_client_vpn_endpoint#

Modifies the specified Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").modify_client_vpn_endpoint method. boto3 documentation

# modify_client_vpn_endpoint method definition

def modify_client_vpn_endpoint(
    self,
    *,
    ClientVpnEndpointId: str,
    ServerCertificateArn: str = ...,
    ConnectionLogOptions: ConnectionLogOptionsTypeDef = ...,  # (1)
    DnsServers: DnsServersOptionsModifyStructureTypeDef = ...,  # (2)
    VpnPort: int = ...,
    Description: str = ...,
    SplitTunnel: bool = ...,
    DryRun: bool = ...,
    SecurityGroupIds: Sequence[str] = ...,
    VpcId: str = ...,
    SelfServicePortal: SelfServicePortalType = ...,  # (3)
    ClientConnectOptions: ClientConnectOptionsTypeDef = ...,  # (4)
    SessionTimeoutHours: int = ...,
    ClientLoginBannerOptions: ClientLoginBannerOptionsTypeDef = ...,  # (5)
    DisconnectOnSessionTimeout: bool = ...,
) -> ModifyClientVpnEndpointResultTypeDef:  # (6)
    ...
  1. See ConnectionLogOptionsTypeDef
  2. See DnsServersOptionsModifyStructureTypeDef
  3. See SelfServicePortalType
  4. See ClientConnectOptionsTypeDef
  5. See ClientLoginBannerOptionsTypeDef
  6. See ModifyClientVpnEndpointResultTypeDef
# modify_client_vpn_endpoint method usage example with argument unpacking

kwargs: ModifyClientVpnEndpointRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.modify_client_vpn_endpoint(**kwargs)
  1. See ModifyClientVpnEndpointRequestTypeDef

modify_default_credit_specification#

Modifies the default credit option for CPU usage of burstable performance instances.

Type annotations and code completion for boto3.client("ec2").modify_default_credit_specification method. boto3 documentation

# modify_default_credit_specification method definition

def modify_default_credit_specification(
    self,
    *,
    InstanceFamily: UnlimitedSupportedInstanceFamilyType,  # (1)
    CpuCredits: str,
    DryRun: bool = ...,
) -> ModifyDefaultCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See UnlimitedSupportedInstanceFamilyType
  2. See ModifyDefaultCreditSpecificationResultTypeDef
# modify_default_credit_specification method usage example with argument unpacking

kwargs: ModifyDefaultCreditSpecificationRequestTypeDef = {  # (1)
    "InstanceFamily": ...,
    "CpuCredits": ...,
}

parent.modify_default_credit_specification(**kwargs)
  1. See ModifyDefaultCreditSpecificationRequestTypeDef

modify_ebs_default_kms_key_id#

Changes the default KMS key for EBS encryption by default for your account in this Region.

Type annotations and code completion for boto3.client("ec2").modify_ebs_default_kms_key_id method. boto3 documentation

# modify_ebs_default_kms_key_id method definition

def modify_ebs_default_kms_key_id(
    self,
    *,
    KmsKeyId: str,
    DryRun: bool = ...,
) -> ModifyEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See ModifyEbsDefaultKmsKeyIdResultTypeDef
# modify_ebs_default_kms_key_id method usage example with argument unpacking

kwargs: ModifyEbsDefaultKmsKeyIdRequestTypeDef = {  # (1)
    "KmsKeyId": ...,
}

parent.modify_ebs_default_kms_key_id(**kwargs)
  1. See ModifyEbsDefaultKmsKeyIdRequestTypeDef

modify_fleet#

Modifies the specified EC2 Fleet.

Type annotations and code completion for boto3.client("ec2").modify_fleet method. boto3 documentation

# modify_fleet method definition

def modify_fleet(
    self,
    *,
    FleetId: str,
    DryRun: bool = ...,
    ExcessCapacityTerminationPolicy: FleetExcessCapacityTerminationPolicyType = ...,  # (1)
    LaunchTemplateConfigs: Sequence[FleetLaunchTemplateConfigRequestTypeDef] = ...,  # (2)
    TargetCapacitySpecification: TargetCapacitySpecificationRequestTypeDef = ...,  # (3)
    Context: str = ...,
) -> ModifyFleetResultTypeDef:  # (4)
    ...
  1. See FleetExcessCapacityTerminationPolicyType
  2. See FleetLaunchTemplateConfigRequestTypeDef
  3. See TargetCapacitySpecificationRequestTypeDef
  4. See ModifyFleetResultTypeDef
# modify_fleet method usage example with argument unpacking

kwargs: ModifyFleetRequestTypeDef = {  # (1)
    "FleetId": ...,
}

parent.modify_fleet(**kwargs)
  1. See ModifyFleetRequestTypeDef

modify_fpga_image_attribute#

Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

Type annotations and code completion for boto3.client("ec2").modify_fpga_image_attribute method. boto3 documentation

# modify_fpga_image_attribute method definition

def modify_fpga_image_attribute(
    self,
    *,
    FpgaImageId: str,
    DryRun: bool = ...,
    Attribute: FpgaImageAttributeNameType = ...,  # (1)
    OperationType: OperationTypeType = ...,  # (2)
    UserIds: Sequence[str] = ...,
    UserGroups: Sequence[str] = ...,
    ProductCodes: Sequence[str] = ...,
    LoadPermission: LoadPermissionModificationsTypeDef = ...,  # (3)
    Description: str = ...,
    Name: str = ...,
) -> ModifyFpgaImageAttributeResultTypeDef:  # (4)
    ...
  1. See FpgaImageAttributeNameType
  2. See OperationTypeType
  3. See LoadPermissionModificationsTypeDef
  4. See ModifyFpgaImageAttributeResultTypeDef
# modify_fpga_image_attribute method usage example with argument unpacking

kwargs: ModifyFpgaImageAttributeRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
}

parent.modify_fpga_image_attribute(**kwargs)
  1. See ModifyFpgaImageAttributeRequestTypeDef

modify_hosts#

Modify the auto-placement setting of a Dedicated Host.

Type annotations and code completion for boto3.client("ec2").modify_hosts method. boto3 documentation

# modify_hosts method definition

def modify_hosts(
    self,
    *,
    HostIds: Sequence[str],
    HostRecovery: HostRecoveryType = ...,  # (1)
    InstanceType: str = ...,
    InstanceFamily: str = ...,
    HostMaintenance: HostMaintenanceType = ...,  # (2)
    AutoPlacement: AutoPlacementType = ...,  # (3)
) -> ModifyHostsResultTypeDef:  # (4)
    ...
  1. See HostRecoveryType
  2. See HostMaintenanceType
  3. See AutoPlacementType
  4. See ModifyHostsResultTypeDef
# modify_hosts method usage example with argument unpacking

kwargs: ModifyHostsRequestTypeDef = {  # (1)
    "HostIds": ...,
}

parent.modify_hosts(**kwargs)
  1. See ModifyHostsRequestTypeDef

modify_id_format#

Modifies the ID format for the specified resource on a per-Region basis.

Type annotations and code completion for boto3.client("ec2").modify_id_format method. boto3 documentation

# modify_id_format method definition

def modify_id_format(
    self,
    *,
    Resource: str,
    UseLongIds: bool,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# modify_id_format method usage example with argument unpacking

kwargs: ModifyIdFormatRequestTypeDef = {  # (1)
    "Resource": ...,
    "UseLongIds": ...,
}

parent.modify_id_format(**kwargs)
  1. See ModifyIdFormatRequestTypeDef

modify_identity_id_format#

Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account.

Type annotations and code completion for boto3.client("ec2").modify_identity_id_format method. boto3 documentation

# modify_identity_id_format method definition

def modify_identity_id_format(
    self,
    *,
    Resource: str,
    UseLongIds: bool,
    PrincipalArn: str,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# modify_identity_id_format method usage example with argument unpacking

kwargs: ModifyIdentityIdFormatRequestTypeDef = {  # (1)
    "Resource": ...,
    "UseLongIds": ...,
    "PrincipalArn": ...,
}

parent.modify_identity_id_format(**kwargs)
  1. See ModifyIdentityIdFormatRequestTypeDef

modify_image_attribute#

Modifies the specified attribute of the specified AMI.

Type annotations and code completion for boto3.client("ec2").modify_image_attribute method. boto3 documentation

# modify_image_attribute method definition

def modify_image_attribute(
    self,
    *,
    ImageId: str,
    Attribute: str = ...,
    Description: AttributeValueTypeDef = ...,  # (1)
    LaunchPermission: LaunchPermissionModificationsTypeDef = ...,  # (2)
    OperationType: OperationTypeType = ...,  # (3)
    ProductCodes: Sequence[str] = ...,
    UserGroups: Sequence[str] = ...,
    UserIds: Sequence[str] = ...,
    Value: str = ...,
    OrganizationArns: Sequence[str] = ...,
    OrganizationalUnitArns: Sequence[str] = ...,
    ImdsSupport: AttributeValueTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (5)
    ...
  1. See AttributeValueTypeDef
  2. See LaunchPermissionModificationsTypeDef
  3. See OperationTypeType
  4. See AttributeValueTypeDef
  5. See EmptyResponseMetadataTypeDef
# modify_image_attribute method usage example with argument unpacking

kwargs: ModifyImageAttributeRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.modify_image_attribute(**kwargs)
  1. See ModifyImageAttributeRequestTypeDef

modify_instance_attribute#

Modifies the specified attribute of the specified instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_attribute method. boto3 documentation

# modify_instance_attribute method definition

def modify_instance_attribute(
    self,
    *,
    InstanceId: str,
    SourceDestCheck: AttributeBooleanValueTypeDef = ...,  # (1)
    DisableApiStop: AttributeBooleanValueTypeDef = ...,  # (1)
    DryRun: bool = ...,
    Attribute: InstanceAttributeNameType = ...,  # (3)
    Value: str = ...,
    BlockDeviceMappings: Sequence[InstanceBlockDeviceMappingSpecificationTypeDef] = ...,  # (4)
    DisableApiTermination: AttributeBooleanValueTypeDef = ...,  # (1)
    InstanceType: AttributeValueTypeDef = ...,  # (6)
    Kernel: AttributeValueTypeDef = ...,  # (6)
    Ramdisk: AttributeValueTypeDef = ...,  # (6)
    UserData: BlobAttributeValueTypeDef = ...,  # (9)
    InstanceInitiatedShutdownBehavior: AttributeValueTypeDef = ...,  # (6)
    Groups: Sequence[str] = ...,
    EbsOptimized: AttributeBooleanValueTypeDef = ...,  # (1)
    SriovNetSupport: AttributeValueTypeDef = ...,  # (6)
    EnaSupport: AttributeBooleanValueTypeDef = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (14)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See AttributeBooleanValueTypeDef
  3. See InstanceAttributeNameType
  4. See InstanceBlockDeviceMappingSpecificationTypeDef
  5. See AttributeBooleanValueTypeDef
  6. See AttributeValueTypeDef
  7. See AttributeValueTypeDef
  8. See AttributeValueTypeDef
  9. See BlobAttributeValueTypeDef
  10. See AttributeValueTypeDef
  11. See AttributeBooleanValueTypeDef
  12. See AttributeValueTypeDef
  13. See AttributeBooleanValueTypeDef
  14. See EmptyResponseMetadataTypeDef
# modify_instance_attribute method usage example with argument unpacking

kwargs: ModifyInstanceAttributeRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_attribute(**kwargs)
  1. See ModifyInstanceAttributeRequestTypeDef

modify_instance_capacity_reservation_attributes#

Modifies the Capacity Reservation settings for a stopped instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_capacity_reservation_attributes method. boto3 documentation

# modify_instance_capacity_reservation_attributes method definition

def modify_instance_capacity_reservation_attributes(
    self,
    *,
    InstanceId: str,
    CapacityReservationSpecification: CapacityReservationSpecificationTypeDef,  # (1)
    DryRun: bool = ...,
) -> ModifyInstanceCapacityReservationAttributesResultTypeDef:  # (2)
    ...
  1. See CapacityReservationSpecificationTypeDef
  2. See ModifyInstanceCapacityReservationAttributesResultTypeDef
# modify_instance_capacity_reservation_attributes method usage example with argument unpacking

kwargs: ModifyInstanceCapacityReservationAttributesRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "CapacityReservationSpecification": ...,
}

parent.modify_instance_capacity_reservation_attributes(**kwargs)
  1. See ModifyInstanceCapacityReservationAttributesRequestTypeDef

modify_instance_cpu_options#

By default, all vCPUs for the instance type are active when you launch an instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_cpu_options method. boto3 documentation

# modify_instance_cpu_options method definition

def modify_instance_cpu_options(
    self,
    *,
    InstanceId: str,
    CoreCount: int,
    ThreadsPerCore: int,
    DryRun: bool = ...,
) -> ModifyInstanceCpuOptionsResultTypeDef:  # (1)
    ...
  1. See ModifyInstanceCpuOptionsResultTypeDef
# modify_instance_cpu_options method usage example with argument unpacking

kwargs: ModifyInstanceCpuOptionsRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "CoreCount": ...,
    "ThreadsPerCore": ...,
}

parent.modify_instance_cpu_options(**kwargs)
  1. See ModifyInstanceCpuOptionsRequestTypeDef

modify_instance_credit_specification#

Modifies the credit option for CPU usage on a running or stopped burstable performance instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_credit_specification method. boto3 documentation

# modify_instance_credit_specification method definition

def modify_instance_credit_specification(
    self,
    *,
    InstanceCreditSpecifications: Sequence[InstanceCreditSpecificationRequestTypeDef],  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyInstanceCreditSpecificationResultTypeDef:  # (2)
    ...
  1. See InstanceCreditSpecificationRequestTypeDef
  2. See ModifyInstanceCreditSpecificationResultTypeDef
# modify_instance_credit_specification method usage example with argument unpacking

kwargs: ModifyInstanceCreditSpecificationRequestTypeDef = {  # (1)
    "InstanceCreditSpecifications": ...,
}

parent.modify_instance_credit_specification(**kwargs)
  1. See ModifyInstanceCreditSpecificationRequestTypeDef

modify_instance_event_start_time#

Modifies the start time for a scheduled Amazon EC2 instance event.

Type annotations and code completion for boto3.client("ec2").modify_instance_event_start_time method. boto3 documentation

# modify_instance_event_start_time method definition

def modify_instance_event_start_time(
    self,
    *,
    InstanceId: str,
    InstanceEventId: str,
    NotBefore: TimestampTypeDef,
    DryRun: bool = ...,
) -> ModifyInstanceEventStartTimeResultTypeDef:  # (1)
    ...
  1. See ModifyInstanceEventStartTimeResultTypeDef
# modify_instance_event_start_time method usage example with argument unpacking

kwargs: ModifyInstanceEventStartTimeRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "InstanceEventId": ...,
    "NotBefore": ...,
}

parent.modify_instance_event_start_time(**kwargs)
  1. See ModifyInstanceEventStartTimeRequestTypeDef

modify_instance_event_window#

Modifies the specified event window.

Type annotations and code completion for boto3.client("ec2").modify_instance_event_window method. boto3 documentation

# modify_instance_event_window method definition

def modify_instance_event_window(
    self,
    *,
    InstanceEventWindowId: str,
    DryRun: bool = ...,
    Name: str = ...,
    TimeRanges: Sequence[InstanceEventWindowTimeRangeRequestTypeDef] = ...,  # (1)
    CronExpression: str = ...,
) -> ModifyInstanceEventWindowResultTypeDef:  # (2)
    ...
  1. See InstanceEventWindowTimeRangeRequestTypeDef
  2. See ModifyInstanceEventWindowResultTypeDef
# modify_instance_event_window method usage example with argument unpacking

kwargs: ModifyInstanceEventWindowRequestTypeDef = {  # (1)
    "InstanceEventWindowId": ...,
}

parent.modify_instance_event_window(**kwargs)
  1. See ModifyInstanceEventWindowRequestTypeDef

modify_instance_maintenance_options#

Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default.

Type annotations and code completion for boto3.client("ec2").modify_instance_maintenance_options method. boto3 documentation

# modify_instance_maintenance_options method definition

def modify_instance_maintenance_options(
    self,
    *,
    InstanceId: str,
    AutoRecovery: InstanceAutoRecoveryStateType = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyInstanceMaintenanceOptionsResultTypeDef:  # (2)
    ...
  1. See InstanceAutoRecoveryStateType
  2. See ModifyInstanceMaintenanceOptionsResultTypeDef
# modify_instance_maintenance_options method usage example with argument unpacking

kwargs: ModifyInstanceMaintenanceOptionsRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_maintenance_options(**kwargs)
  1. See ModifyInstanceMaintenanceOptionsRequestTypeDef

modify_instance_metadata_defaults#

Modifies the default instance metadata service (IMDS) settings at the account level in the specified Amazon Web Services
 Region.

Type annotations and code completion for boto3.client("ec2").modify_instance_metadata_defaults method. boto3 documentation

# modify_instance_metadata_defaults method definition

def modify_instance_metadata_defaults(
    self,
    *,
    HttpTokens: MetadataDefaultHttpTokensStateType = ...,  # (1)
    HttpPutResponseHopLimit: int = ...,
    HttpEndpoint: DefaultInstanceMetadataEndpointStateType = ...,  # (2)
    InstanceMetadataTags: DefaultInstanceMetadataTagsStateType = ...,  # (3)
    DryRun: bool = ...,
) -> ModifyInstanceMetadataDefaultsResultTypeDef:  # (4)
    ...
  1. See MetadataDefaultHttpTokensStateType
  2. See DefaultInstanceMetadataEndpointStateType
  3. See DefaultInstanceMetadataTagsStateType
  4. See ModifyInstanceMetadataDefaultsResultTypeDef
# modify_instance_metadata_defaults method usage example with argument unpacking

kwargs: ModifyInstanceMetadataDefaultsRequestTypeDef = {  # (1)
    "HttpTokens": ...,
}

parent.modify_instance_metadata_defaults(**kwargs)
  1. See ModifyInstanceMetadataDefaultsRequestTypeDef

modify_instance_metadata_options#

Modify the instance metadata parameters on a running or stopped instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_metadata_options method. boto3 documentation

# modify_instance_metadata_options method definition

def modify_instance_metadata_options(
    self,
    *,
    InstanceId: str,
    HttpTokens: HttpTokensStateType = ...,  # (1)
    HttpPutResponseHopLimit: int = ...,
    HttpEndpoint: InstanceMetadataEndpointStateType = ...,  # (2)
    DryRun: bool = ...,
    HttpProtocolIpv6: InstanceMetadataProtocolStateType = ...,  # (3)
    InstanceMetadataTags: InstanceMetadataTagsStateType = ...,  # (4)
) -> ModifyInstanceMetadataOptionsResultTypeDef:  # (5)
    ...
  1. See HttpTokensStateType
  2. See InstanceMetadataEndpointStateType
  3. See InstanceMetadataProtocolStateType
  4. See InstanceMetadataTagsStateType
  5. See ModifyInstanceMetadataOptionsResultTypeDef
# modify_instance_metadata_options method usage example with argument unpacking

kwargs: ModifyInstanceMetadataOptionsRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_metadata_options(**kwargs)
  1. See ModifyInstanceMetadataOptionsRequestTypeDef

modify_instance_network_performance_options#

Change the configuration of the network performance options for an existing instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_network_performance_options method. boto3 documentation

# modify_instance_network_performance_options method definition

def modify_instance_network_performance_options(
    self,
    *,
    InstanceId: str,
    BandwidthWeighting: InstanceBandwidthWeightingType,  # (1)
    DryRun: bool = ...,
) -> ModifyInstanceNetworkPerformanceResultTypeDef:  # (2)
    ...
  1. See InstanceBandwidthWeightingType
  2. See ModifyInstanceNetworkPerformanceResultTypeDef
# modify_instance_network_performance_options method usage example with argument unpacking

kwargs: ModifyInstanceNetworkPerformanceRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "BandwidthWeighting": ...,
}

parent.modify_instance_network_performance_options(**kwargs)
  1. See ModifyInstanceNetworkPerformanceRequestTypeDef

modify_instance_placement#

Modifies the placement attributes for a specified instance.

Type annotations and code completion for boto3.client("ec2").modify_instance_placement method. boto3 documentation

# modify_instance_placement method definition

def modify_instance_placement(
    self,
    *,
    InstanceId: str,
    GroupName: str = ...,
    PartitionNumber: int = ...,
    HostResourceGroupArn: str = ...,
    GroupId: str = ...,
    Tenancy: HostTenancyType = ...,  # (1)
    Affinity: AffinityType = ...,  # (2)
    HostId: str = ...,
) -> ModifyInstancePlacementResultTypeDef:  # (3)
    ...
  1. See HostTenancyType
  2. See AffinityType
  3. See ModifyInstancePlacementResultTypeDef
# modify_instance_placement method usage example with argument unpacking

kwargs: ModifyInstancePlacementRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_instance_placement(**kwargs)
  1. See ModifyInstancePlacementRequestTypeDef

modify_ipam#

Modify the configurations of an IPAM.

Type annotations and code completion for boto3.client("ec2").modify_ipam method. boto3 documentation

# modify_ipam method definition

def modify_ipam(
    self,
    *,
    IpamId: str,
    DryRun: bool = ...,
    Description: str = ...,
    AddOperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    RemoveOperatingRegions: Sequence[RemoveIpamOperatingRegionTypeDef] = ...,  # (2)
    Tier: IpamTierType = ...,  # (3)
    EnablePrivateGua: bool = ...,
) -> ModifyIpamResultTypeDef:  # (4)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See RemoveIpamOperatingRegionTypeDef
  3. See IpamTierType
  4. See ModifyIpamResultTypeDef
# modify_ipam method usage example with argument unpacking

kwargs: ModifyIpamRequestTypeDef = {  # (1)
    "IpamId": ...,
}

parent.modify_ipam(**kwargs)
  1. See ModifyIpamRequestTypeDef

modify_ipam_pool#

Modify the configurations of an IPAM pool.

Type annotations and code completion for boto3.client("ec2").modify_ipam_pool method. boto3 documentation

# modify_ipam_pool method definition

def modify_ipam_pool(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Description: str = ...,
    AutoImport: bool = ...,
    AllocationMinNetmaskLength: int = ...,
    AllocationMaxNetmaskLength: int = ...,
    AllocationDefaultNetmaskLength: int = ...,
    ClearAllocationDefaultNetmaskLength: bool = ...,
    AddAllocationResourceTags: Sequence[RequestIpamResourceTagTypeDef] = ...,  # (1)
    RemoveAllocationResourceTags: Sequence[RequestIpamResourceTagTypeDef] = ...,  # (1)
) -> ModifyIpamPoolResultTypeDef:  # (3)
    ...
  1. See RequestIpamResourceTagTypeDef
  2. See RequestIpamResourceTagTypeDef
  3. See ModifyIpamPoolResultTypeDef
# modify_ipam_pool method usage example with argument unpacking

kwargs: ModifyIpamPoolRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.modify_ipam_pool(**kwargs)
  1. See ModifyIpamPoolRequestTypeDef

modify_ipam_resource_cidr#

Modify a resource CIDR.

Type annotations and code completion for boto3.client("ec2").modify_ipam_resource_cidr method. boto3 documentation

# modify_ipam_resource_cidr method definition

def modify_ipam_resource_cidr(
    self,
    *,
    ResourceId: str,
    ResourceCidr: str,
    ResourceRegion: str,
    CurrentIpamScopeId: str,
    Monitored: bool,
    DryRun: bool = ...,
    DestinationIpamScopeId: str = ...,
) -> ModifyIpamResourceCidrResultTypeDef:  # (1)
    ...
  1. See ModifyIpamResourceCidrResultTypeDef
# modify_ipam_resource_cidr method usage example with argument unpacking

kwargs: ModifyIpamResourceCidrRequestTypeDef = {  # (1)
    "ResourceId": ...,
    "ResourceCidr": ...,
    "ResourceRegion": ...,
    "CurrentIpamScopeId": ...,
    "Monitored": ...,
}

parent.modify_ipam_resource_cidr(**kwargs)
  1. See ModifyIpamResourceCidrRequestTypeDef

modify_ipam_resource_discovery#

Modifies a resource discovery.

Type annotations and code completion for boto3.client("ec2").modify_ipam_resource_discovery method. boto3 documentation

# modify_ipam_resource_discovery method definition

def modify_ipam_resource_discovery(
    self,
    *,
    IpamResourceDiscoveryId: str,
    DryRun: bool = ...,
    Description: str = ...,
    AddOperatingRegions: Sequence[AddIpamOperatingRegionTypeDef] = ...,  # (1)
    RemoveOperatingRegions: Sequence[RemoveIpamOperatingRegionTypeDef] = ...,  # (2)
    AddOrganizationalUnitExclusions: Sequence[AddIpamOrganizationalUnitExclusionTypeDef] = ...,  # (3)
    RemoveOrganizationalUnitExclusions: Sequence[RemoveIpamOrganizationalUnitExclusionTypeDef] = ...,  # (4)
) -> ModifyIpamResourceDiscoveryResultTypeDef:  # (5)
    ...
  1. See AddIpamOperatingRegionTypeDef
  2. See RemoveIpamOperatingRegionTypeDef
  3. See AddIpamOrganizationalUnitExclusionTypeDef
  4. See RemoveIpamOrganizationalUnitExclusionTypeDef
  5. See ModifyIpamResourceDiscoveryResultTypeDef
# modify_ipam_resource_discovery method usage example with argument unpacking

kwargs: ModifyIpamResourceDiscoveryRequestTypeDef = {  # (1)
    "IpamResourceDiscoveryId": ...,
}

parent.modify_ipam_resource_discovery(**kwargs)
  1. See ModifyIpamResourceDiscoveryRequestTypeDef

modify_ipam_scope#

Modify an IPAM scope.

Type annotations and code completion for boto3.client("ec2").modify_ipam_scope method. boto3 documentation

# modify_ipam_scope method definition

def modify_ipam_scope(
    self,
    *,
    IpamScopeId: str,
    DryRun: bool = ...,
    Description: str = ...,
) -> ModifyIpamScopeResultTypeDef:  # (1)
    ...
  1. See ModifyIpamScopeResultTypeDef
# modify_ipam_scope method usage example with argument unpacking

kwargs: ModifyIpamScopeRequestTypeDef = {  # (1)
    "IpamScopeId": ...,
}

parent.modify_ipam_scope(**kwargs)
  1. See ModifyIpamScopeRequestTypeDef

modify_launch_template#

Modifies a launch template.

Type annotations and code completion for boto3.client("ec2").modify_launch_template method. boto3 documentation

# modify_launch_template method definition

def modify_launch_template(
    self,
    *,
    DryRun: bool = ...,
    ClientToken: str = ...,
    LaunchTemplateId: str = ...,
    LaunchTemplateName: str = ...,
    DefaultVersion: str = ...,
) -> ModifyLaunchTemplateResultTypeDef:  # (1)
    ...
  1. See ModifyLaunchTemplateResultTypeDef
# modify_launch_template method usage example with argument unpacking

kwargs: ModifyLaunchTemplateRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.modify_launch_template(**kwargs)
  1. See ModifyLaunchTemplateRequestTypeDef

modify_local_gateway_route#

Modifies the specified local gateway route.

Type annotations and code completion for boto3.client("ec2").modify_local_gateway_route method. boto3 documentation

# modify_local_gateway_route method definition

def modify_local_gateway_route(
    self,
    *,
    LocalGatewayRouteTableId: str,
    DestinationCidrBlock: str = ...,
    LocalGatewayVirtualInterfaceGroupId: str = ...,
    NetworkInterfaceId: str = ...,
    DryRun: bool = ...,
    DestinationPrefixListId: str = ...,
) -> ModifyLocalGatewayRouteResultTypeDef:  # (1)
    ...
  1. See ModifyLocalGatewayRouteResultTypeDef
# modify_local_gateway_route method usage example with argument unpacking

kwargs: ModifyLocalGatewayRouteRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.modify_local_gateway_route(**kwargs)
  1. See ModifyLocalGatewayRouteRequestTypeDef

modify_managed_prefix_list#

Modifies the specified managed prefix list.

Type annotations and code completion for boto3.client("ec2").modify_managed_prefix_list method. boto3 documentation

# modify_managed_prefix_list method definition

def modify_managed_prefix_list(
    self,
    *,
    PrefixListId: str,
    DryRun: bool = ...,
    CurrentVersion: int = ...,
    PrefixListName: str = ...,
    AddEntries: Sequence[AddPrefixListEntryTypeDef] = ...,  # (1)
    RemoveEntries: Sequence[RemovePrefixListEntryTypeDef] = ...,  # (2)
    MaxEntries: int = ...,
) -> ModifyManagedPrefixListResultTypeDef:  # (3)
    ...
  1. See AddPrefixListEntryTypeDef
  2. See RemovePrefixListEntryTypeDef
  3. See ModifyManagedPrefixListResultTypeDef
# modify_managed_prefix_list method usage example with argument unpacking

kwargs: ModifyManagedPrefixListRequestTypeDef = {  # (1)
    "PrefixListId": ...,
}

parent.modify_managed_prefix_list(**kwargs)
  1. See ModifyManagedPrefixListRequestTypeDef

modify_network_interface_attribute#

Modifies the specified network interface attribute.

Type annotations and code completion for boto3.client("ec2").modify_network_interface_attribute method. boto3 documentation

# modify_network_interface_attribute method definition

def modify_network_interface_attribute(
    self,
    *,
    NetworkInterfaceId: str,
    EnaSrdSpecification: EnaSrdSpecificationTypeDef = ...,  # (1)
    EnablePrimaryIpv6: bool = ...,
    ConnectionTrackingSpecification: ConnectionTrackingSpecificationRequestTypeDef = ...,  # (2)
    AssociatePublicIpAddress: bool = ...,
    DryRun: bool = ...,
    Description: AttributeValueTypeDef = ...,  # (3)
    SourceDestCheck: AttributeBooleanValueTypeDef = ...,  # (4)
    Groups: Sequence[str] = ...,
    Attachment: NetworkInterfaceAttachmentChangesTypeDef = ...,  # (5)
) -> EmptyResponseMetadataTypeDef:  # (6)
    ...
  1. See EnaSrdSpecificationTypeDef
  2. See ConnectionTrackingSpecificationRequestTypeDef
  3. See AttributeValueTypeDef
  4. See AttributeBooleanValueTypeDef
  5. See NetworkInterfaceAttachmentChangesTypeDef
  6. See EmptyResponseMetadataTypeDef
# modify_network_interface_attribute method usage example with argument unpacking

kwargs: ModifyNetworkInterfaceAttributeRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.modify_network_interface_attribute(**kwargs)
  1. See ModifyNetworkInterfaceAttributeRequestTypeDef

modify_private_dns_name_options#

Modifies the options for instance hostnames for the specified instance.

Type annotations and code completion for boto3.client("ec2").modify_private_dns_name_options method. boto3 documentation

# modify_private_dns_name_options method definition

def modify_private_dns_name_options(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
    PrivateDnsHostnameType: HostnameTypeType = ...,  # (1)
    EnableResourceNameDnsARecord: bool = ...,
    EnableResourceNameDnsAAAARecord: bool = ...,
) -> ModifyPrivateDnsNameOptionsResultTypeDef:  # (2)
    ...
  1. See HostnameTypeType
  2. See ModifyPrivateDnsNameOptionsResultTypeDef
# modify_private_dns_name_options method usage example with argument unpacking

kwargs: ModifyPrivateDnsNameOptionsRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.modify_private_dns_name_options(**kwargs)
  1. See ModifyPrivateDnsNameOptionsRequestTypeDef

modify_reserved_instances#

Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type.

Type annotations and code completion for boto3.client("ec2").modify_reserved_instances method. boto3 documentation

# modify_reserved_instances method definition

def modify_reserved_instances(
    self,
    *,
    ReservedInstancesIds: Sequence[str],
    TargetConfigurations: Sequence[ReservedInstancesConfigurationTypeDef],  # (1)
    ClientToken: str = ...,
) -> ModifyReservedInstancesResultTypeDef:  # (2)
    ...
  1. See ReservedInstancesConfigurationTypeDef
  2. See ModifyReservedInstancesResultTypeDef
# modify_reserved_instances method usage example with argument unpacking

kwargs: ModifyReservedInstancesRequestTypeDef = {  # (1)
    "ReservedInstancesIds": ...,
    "TargetConfigurations": ...,
}

parent.modify_reserved_instances(**kwargs)
  1. See ModifyReservedInstancesRequestTypeDef

modify_security_group_rules#

Modifies the rules of a security group.

Type annotations and code completion for boto3.client("ec2").modify_security_group_rules method. boto3 documentation

# modify_security_group_rules method definition

def modify_security_group_rules(
    self,
    *,
    GroupId: str,
    SecurityGroupRules: Sequence[SecurityGroupRuleUpdateTypeDef],  # (1)
    DryRun: bool = ...,
) -> ModifySecurityGroupRulesResultTypeDef:  # (2)
    ...
  1. See SecurityGroupRuleUpdateTypeDef
  2. See ModifySecurityGroupRulesResultTypeDef
# modify_security_group_rules method usage example with argument unpacking

kwargs: ModifySecurityGroupRulesRequestTypeDef = {  # (1)
    "GroupId": ...,
    "SecurityGroupRules": ...,
}

parent.modify_security_group_rules(**kwargs)
  1. See ModifySecurityGroupRulesRequestTypeDef

modify_snapshot_attribute#

Adds or removes permission settings for the specified snapshot.

Type annotations and code completion for boto3.client("ec2").modify_snapshot_attribute method. boto3 documentation

# modify_snapshot_attribute method definition

def modify_snapshot_attribute(
    self,
    *,
    SnapshotId: str,
    Attribute: SnapshotAttributeNameType = ...,  # (1)
    CreateVolumePermission: CreateVolumePermissionModificationsTypeDef = ...,  # (2)
    GroupNames: Sequence[str] = ...,
    OperationType: OperationTypeType = ...,  # (3)
    UserIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (4)
    ...
  1. See SnapshotAttributeNameType
  2. See CreateVolumePermissionModificationsTypeDef
  3. See OperationTypeType
  4. See EmptyResponseMetadataTypeDef
# modify_snapshot_attribute method usage example with argument unpacking

kwargs: ModifySnapshotAttributeRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.modify_snapshot_attribute(**kwargs)
  1. See ModifySnapshotAttributeRequestTypeDef

modify_snapshot_tier#

Archives an Amazon EBS snapshot.

Type annotations and code completion for boto3.client("ec2").modify_snapshot_tier method. boto3 documentation

# modify_snapshot_tier method definition

def modify_snapshot_tier(
    self,
    *,
    SnapshotId: str,
    StorageTier: TargetStorageTierType = ...,  # (1)
    DryRun: bool = ...,
) -> ModifySnapshotTierResultTypeDef:  # (2)
    ...
  1. See TargetStorageTierType
  2. See ModifySnapshotTierResultTypeDef
# modify_snapshot_tier method usage example with argument unpacking

kwargs: ModifySnapshotTierRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.modify_snapshot_tier(**kwargs)
  1. See ModifySnapshotTierRequestTypeDef

modify_spot_fleet_request#

Modifies the specified Spot Fleet request.

Type annotations and code completion for boto3.client("ec2").modify_spot_fleet_request method. boto3 documentation

# modify_spot_fleet_request method definition

def modify_spot_fleet_request(
    self,
    *,
    SpotFleetRequestId: str,
    LaunchTemplateConfigs: Sequence[LaunchTemplateConfigUnionTypeDef] = ...,  # (1)
    OnDemandTargetCapacity: int = ...,
    Context: str = ...,
    TargetCapacity: int = ...,
    ExcessCapacityTerminationPolicy: ExcessCapacityTerminationPolicyType = ...,  # (2)
) -> ModifySpotFleetRequestResponseTypeDef:  # (3)
    ...
  1. See LaunchTemplateConfigTypeDef LaunchTemplateConfigOutputTypeDef
  2. See ExcessCapacityTerminationPolicyType
  3. See ModifySpotFleetRequestResponseTypeDef
# modify_spot_fleet_request method usage example with argument unpacking

kwargs: ModifySpotFleetRequestRequestTypeDef = {  # (1)
    "SpotFleetRequestId": ...,
}

parent.modify_spot_fleet_request(**kwargs)
  1. See ModifySpotFleetRequestRequestTypeDef

modify_subnet_attribute#

Modifies a subnet attribute.

Type annotations and code completion for boto3.client("ec2").modify_subnet_attribute method. boto3 documentation

# modify_subnet_attribute method definition

def modify_subnet_attribute(
    self,
    *,
    SubnetId: str,
    AssignIpv6AddressOnCreation: AttributeBooleanValueTypeDef = ...,  # (1)
    MapPublicIpOnLaunch: AttributeBooleanValueTypeDef = ...,  # (1)
    MapCustomerOwnedIpOnLaunch: AttributeBooleanValueTypeDef = ...,  # (1)
    CustomerOwnedIpv4Pool: str = ...,
    EnableDns64: AttributeBooleanValueTypeDef = ...,  # (1)
    PrivateDnsHostnameTypeOnLaunch: HostnameTypeType = ...,  # (5)
    EnableResourceNameDnsARecordOnLaunch: AttributeBooleanValueTypeDef = ...,  # (1)
    EnableResourceNameDnsAAAARecordOnLaunch: AttributeBooleanValueTypeDef = ...,  # (1)
    EnableLniAtDeviceIndex: int = ...,
    DisableLniAtDeviceIndex: AttributeBooleanValueTypeDef = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (9)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See AttributeBooleanValueTypeDef
  3. See AttributeBooleanValueTypeDef
  4. See AttributeBooleanValueTypeDef
  5. See HostnameTypeType
  6. See AttributeBooleanValueTypeDef
  7. See AttributeBooleanValueTypeDef
  8. See AttributeBooleanValueTypeDef
  9. See EmptyResponseMetadataTypeDef
# modify_subnet_attribute method usage example with argument unpacking

kwargs: ModifySubnetAttributeRequestTypeDef = {  # (1)
    "SubnetId": ...,
}

parent.modify_subnet_attribute(**kwargs)
  1. See ModifySubnetAttributeRequestTypeDef

modify_traffic_mirror_filter_network_services#

Allows or restricts mirroring network services.

Type annotations and code completion for boto3.client("ec2").modify_traffic_mirror_filter_network_services method. boto3 documentation

# modify_traffic_mirror_filter_network_services method definition

def modify_traffic_mirror_filter_network_services(
    self,
    *,
    TrafficMirrorFilterId: str,
    AddNetworkServices: Sequence[TrafficMirrorNetworkServiceType] = ...,  # (1)
    RemoveNetworkServices: Sequence[TrafficMirrorNetworkServiceType] = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTrafficMirrorFilterNetworkServicesResultTypeDef:  # (3)
    ...
  1. See TrafficMirrorNetworkServiceType
  2. See TrafficMirrorNetworkServiceType
  3. See ModifyTrafficMirrorFilterNetworkServicesResultTypeDef
# modify_traffic_mirror_filter_network_services method usage example with argument unpacking

kwargs: ModifyTrafficMirrorFilterNetworkServicesRequestTypeDef = {  # (1)
    "TrafficMirrorFilterId": ...,
}

parent.modify_traffic_mirror_filter_network_services(**kwargs)
  1. See ModifyTrafficMirrorFilterNetworkServicesRequestTypeDef

modify_traffic_mirror_filter_rule#

Modifies the specified Traffic Mirror rule.

Type annotations and code completion for boto3.client("ec2").modify_traffic_mirror_filter_rule method. boto3 documentation

# modify_traffic_mirror_filter_rule method definition

def modify_traffic_mirror_filter_rule(
    self,
    *,
    TrafficMirrorFilterRuleId: str,
    TrafficDirection: TrafficDirectionType = ...,  # (1)
    RuleNumber: int = ...,
    RuleAction: TrafficMirrorRuleActionType = ...,  # (2)
    DestinationPortRange: TrafficMirrorPortRangeRequestTypeDef = ...,  # (3)
    SourcePortRange: TrafficMirrorPortRangeRequestTypeDef = ...,  # (3)
    Protocol: int = ...,
    DestinationCidrBlock: str = ...,
    SourceCidrBlock: str = ...,
    Description: str = ...,
    RemoveFields: Sequence[TrafficMirrorFilterRuleFieldType] = ...,  # (5)
    DryRun: bool = ...,
) -> ModifyTrafficMirrorFilterRuleResultTypeDef:  # (6)
    ...
  1. See TrafficDirectionType
  2. See TrafficMirrorRuleActionType
  3. See TrafficMirrorPortRangeRequestTypeDef
  4. See TrafficMirrorPortRangeRequestTypeDef
  5. See TrafficMirrorFilterRuleFieldType
  6. See ModifyTrafficMirrorFilterRuleResultTypeDef
# modify_traffic_mirror_filter_rule method usage example with argument unpacking

kwargs: ModifyTrafficMirrorFilterRuleRequestTypeDef = {  # (1)
    "TrafficMirrorFilterRuleId": ...,
}

parent.modify_traffic_mirror_filter_rule(**kwargs)
  1. See ModifyTrafficMirrorFilterRuleRequestTypeDef

modify_traffic_mirror_session#

Modifies a Traffic Mirror session.

Type annotations and code completion for boto3.client("ec2").modify_traffic_mirror_session method. boto3 documentation

# modify_traffic_mirror_session method definition

def modify_traffic_mirror_session(
    self,
    *,
    TrafficMirrorSessionId: str,
    TrafficMirrorTargetId: str = ...,
    TrafficMirrorFilterId: str = ...,
    PacketLength: int = ...,
    SessionNumber: int = ...,
    VirtualNetworkId: int = ...,
    Description: str = ...,
    RemoveFields: Sequence[TrafficMirrorSessionFieldType] = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTrafficMirrorSessionResultTypeDef:  # (2)
    ...
  1. See TrafficMirrorSessionFieldType
  2. See ModifyTrafficMirrorSessionResultTypeDef
# modify_traffic_mirror_session method usage example with argument unpacking

kwargs: ModifyTrafficMirrorSessionRequestTypeDef = {  # (1)
    "TrafficMirrorSessionId": ...,
}

parent.modify_traffic_mirror_session(**kwargs)
  1. See ModifyTrafficMirrorSessionRequestTypeDef

modify_transit_gateway#

Modifies the specified transit gateway.

Type annotations and code completion for boto3.client("ec2").modify_transit_gateway method. boto3 documentation

# modify_transit_gateway method definition

def modify_transit_gateway(
    self,
    *,
    TransitGatewayId: str,
    Description: str = ...,
    Options: ModifyTransitGatewayOptionsTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTransitGatewayResultTypeDef:  # (2)
    ...
  1. See ModifyTransitGatewayOptionsTypeDef
  2. See ModifyTransitGatewayResultTypeDef
# modify_transit_gateway method usage example with argument unpacking

kwargs: ModifyTransitGatewayRequestTypeDef = {  # (1)
    "TransitGatewayId": ...,
}

parent.modify_transit_gateway(**kwargs)
  1. See ModifyTransitGatewayRequestTypeDef

modify_transit_gateway_prefix_list_reference#

Modifies a reference (route) to a prefix list in a specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").modify_transit_gateway_prefix_list_reference method. boto3 documentation

# modify_transit_gateway_prefix_list_reference method definition

def modify_transit_gateway_prefix_list_reference(
    self,
    *,
    TransitGatewayRouteTableId: str,
    PrefixListId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> ModifyTransitGatewayPrefixListReferenceResultTypeDef:  # (1)
    ...
  1. See ModifyTransitGatewayPrefixListReferenceResultTypeDef
# modify_transit_gateway_prefix_list_reference method usage example with argument unpacking

kwargs: ModifyTransitGatewayPrefixListReferenceRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "PrefixListId": ...,
}

parent.modify_transit_gateway_prefix_list_reference(**kwargs)
  1. See ModifyTransitGatewayPrefixListReferenceRequestTypeDef

modify_transit_gateway_vpc_attachment#

Modifies the specified VPC attachment.

Type annotations and code completion for boto3.client("ec2").modify_transit_gateway_vpc_attachment method. boto3 documentation

# modify_transit_gateway_vpc_attachment method definition

def modify_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    AddSubnetIds: Sequence[str] = ...,
    RemoveSubnetIds: Sequence[str] = ...,
    Options: ModifyTransitGatewayVpcAttachmentRequestOptionsTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> ModifyTransitGatewayVpcAttachmentResultTypeDef:  # (2)
    ...
  1. See ModifyTransitGatewayVpcAttachmentRequestOptionsTypeDef
  2. See ModifyTransitGatewayVpcAttachmentResultTypeDef
# modify_transit_gateway_vpc_attachment method usage example with argument unpacking

kwargs: ModifyTransitGatewayVpcAttachmentRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.modify_transit_gateway_vpc_attachment(**kwargs)
  1. See ModifyTransitGatewayVpcAttachmentRequestTypeDef

modify_verified_access_endpoint#

Modifies the configuration of the specified Amazon Web Services Verified Access endpoint.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_endpoint method. boto3 documentation

# modify_verified_access_endpoint method definition

def modify_verified_access_endpoint(
    self,
    *,
    VerifiedAccessEndpointId: str,
    VerifiedAccessGroupId: str = ...,
    LoadBalancerOptions: ModifyVerifiedAccessEndpointLoadBalancerOptionsTypeDef = ...,  # (1)
    NetworkInterfaceOptions: ModifyVerifiedAccessEndpointEniOptionsTypeDef = ...,  # (2)
    Description: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
    RdsOptions: ModifyVerifiedAccessEndpointRdsOptionsTypeDef = ...,  # (3)
    CidrOptions: ModifyVerifiedAccessEndpointCidrOptionsTypeDef = ...,  # (4)
) -> ModifyVerifiedAccessEndpointResultTypeDef:  # (5)
    ...
  1. See ModifyVerifiedAccessEndpointLoadBalancerOptionsTypeDef
  2. See ModifyVerifiedAccessEndpointEniOptionsTypeDef
  3. See ModifyVerifiedAccessEndpointRdsOptionsTypeDef
  4. See ModifyVerifiedAccessEndpointCidrOptionsTypeDef
  5. See ModifyVerifiedAccessEndpointResultTypeDef
# modify_verified_access_endpoint method usage example with argument unpacking

kwargs: ModifyVerifiedAccessEndpointRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.modify_verified_access_endpoint(**kwargs)
  1. See ModifyVerifiedAccessEndpointRequestTypeDef

modify_verified_access_endpoint_policy#

Modifies the specified Amazon Web Services Verified Access endpoint policy.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_endpoint_policy method. boto3 documentation

# modify_verified_access_endpoint_policy method definition

def modify_verified_access_endpoint_policy(
    self,
    *,
    VerifiedAccessEndpointId: str,
    PolicyEnabled: bool = ...,
    PolicyDocument: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (1)
) -> ModifyVerifiedAccessEndpointPolicyResultTypeDef:  # (2)
    ...
  1. See VerifiedAccessSseSpecificationRequestTypeDef
  2. See ModifyVerifiedAccessEndpointPolicyResultTypeDef
# modify_verified_access_endpoint_policy method usage example with argument unpacking

kwargs: ModifyVerifiedAccessEndpointPolicyRequestTypeDef = {  # (1)
    "VerifiedAccessEndpointId": ...,
}

parent.modify_verified_access_endpoint_policy(**kwargs)
  1. See ModifyVerifiedAccessEndpointPolicyRequestTypeDef

modify_verified_access_group#

Modifies the specified Amazon Web Services Verified Access group configuration.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_group method. boto3 documentation

# modify_verified_access_group method definition

def modify_verified_access_group(
    self,
    *,
    VerifiedAccessGroupId: str,
    VerifiedAccessInstanceId: str = ...,
    Description: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> ModifyVerifiedAccessGroupResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessGroupResultTypeDef
# modify_verified_access_group method usage example with argument unpacking

kwargs: ModifyVerifiedAccessGroupRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.modify_verified_access_group(**kwargs)
  1. See ModifyVerifiedAccessGroupRequestTypeDef

modify_verified_access_group_policy#

Modifies the specified Amazon Web Services Verified Access group policy.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_group_policy method. boto3 documentation

# modify_verified_access_group_policy method definition

def modify_verified_access_group_policy(
    self,
    *,
    VerifiedAccessGroupId: str,
    PolicyEnabled: bool = ...,
    PolicyDocument: str = ...,
    ClientToken: str = ...,
    DryRun: bool = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (1)
) -> ModifyVerifiedAccessGroupPolicyResultTypeDef:  # (2)
    ...
  1. See VerifiedAccessSseSpecificationRequestTypeDef
  2. See ModifyVerifiedAccessGroupPolicyResultTypeDef
# modify_verified_access_group_policy method usage example with argument unpacking

kwargs: ModifyVerifiedAccessGroupPolicyRequestTypeDef = {  # (1)
    "VerifiedAccessGroupId": ...,
}

parent.modify_verified_access_group_policy(**kwargs)
  1. See ModifyVerifiedAccessGroupPolicyRequestTypeDef

modify_verified_access_instance#

Modifies the configuration of the specified Amazon Web Services Verified Access instance.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_instance method. boto3 documentation

# modify_verified_access_instance method definition

def modify_verified_access_instance(
    self,
    *,
    VerifiedAccessInstanceId: str,
    Description: str = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
    CidrEndpointsCustomSubDomain: str = ...,
) -> ModifyVerifiedAccessInstanceResultTypeDef:  # (1)
    ...
  1. See ModifyVerifiedAccessInstanceResultTypeDef
# modify_verified_access_instance method usage example with argument unpacking

kwargs: ModifyVerifiedAccessInstanceRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
}

parent.modify_verified_access_instance(**kwargs)
  1. See ModifyVerifiedAccessInstanceRequestTypeDef

modify_verified_access_instance_logging_configuration#

Modifies the logging configuration for the specified Amazon Web Services Verified Access instance.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_instance_logging_configuration method. boto3 documentation

# modify_verified_access_instance_logging_configuration method definition

def modify_verified_access_instance_logging_configuration(
    self,
    *,
    VerifiedAccessInstanceId: str,
    AccessLogs: VerifiedAccessLogOptionsTypeDef,  # (1)
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> ModifyVerifiedAccessInstanceLoggingConfigurationResultTypeDef:  # (2)
    ...
  1. See VerifiedAccessLogOptionsTypeDef
  2. See ModifyVerifiedAccessInstanceLoggingConfigurationResultTypeDef
# modify_verified_access_instance_logging_configuration method usage example with argument unpacking

kwargs: ModifyVerifiedAccessInstanceLoggingConfigurationRequestTypeDef = {  # (1)
    "VerifiedAccessInstanceId": ...,
    "AccessLogs": ...,
}

parent.modify_verified_access_instance_logging_configuration(**kwargs)
  1. See ModifyVerifiedAccessInstanceLoggingConfigurationRequestTypeDef

modify_verified_access_trust_provider#

Modifies the configuration of the specified Amazon Web Services Verified Access trust provider.

Type annotations and code completion for boto3.client("ec2").modify_verified_access_trust_provider method. boto3 documentation

# modify_verified_access_trust_provider method definition

def modify_verified_access_trust_provider(
    self,
    *,
    VerifiedAccessTrustProviderId: str,
    OidcOptions: ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef = ...,  # (1)
    DeviceOptions: ModifyVerifiedAccessTrustProviderDeviceOptionsTypeDef = ...,  # (2)
    Description: str = ...,
    DryRun: bool = ...,
    ClientToken: str = ...,
    SseSpecification: VerifiedAccessSseSpecificationRequestTypeDef = ...,  # (3)
    NativeApplicationOidcOptions: ModifyVerifiedAccessNativeApplicationOidcOptionsTypeDef = ...,  # (4)
) -> ModifyVerifiedAccessTrustProviderResultTypeDef:  # (5)
    ...
  1. See ModifyVerifiedAccessTrustProviderOidcOptionsTypeDef
  2. See ModifyVerifiedAccessTrustProviderDeviceOptionsTypeDef
  3. See VerifiedAccessSseSpecificationRequestTypeDef
  4. See ModifyVerifiedAccessNativeApplicationOidcOptionsTypeDef
  5. See ModifyVerifiedAccessTrustProviderResultTypeDef
# modify_verified_access_trust_provider method usage example with argument unpacking

kwargs: ModifyVerifiedAccessTrustProviderRequestTypeDef = {  # (1)
    "VerifiedAccessTrustProviderId": ...,
}

parent.modify_verified_access_trust_provider(**kwargs)
  1. See ModifyVerifiedAccessTrustProviderRequestTypeDef

modify_volume#

You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity.

Type annotations and code completion for boto3.client("ec2").modify_volume method. boto3 documentation

# modify_volume method definition

def modify_volume(
    self,
    *,
    VolumeId: str,
    DryRun: bool = ...,
    Size: int = ...,
    VolumeType: VolumeTypeType = ...,  # (1)
    Iops: int = ...,
    Throughput: int = ...,
    MultiAttachEnabled: bool = ...,
) -> ModifyVolumeResultTypeDef:  # (2)
    ...
  1. See VolumeTypeType
  2. See ModifyVolumeResultTypeDef
# modify_volume method usage example with argument unpacking

kwargs: ModifyVolumeRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.modify_volume(**kwargs)
  1. See ModifyVolumeRequestTypeDef

modify_volume_attribute#

Modifies a volume attribute.

Type annotations and code completion for boto3.client("ec2").modify_volume_attribute method. boto3 documentation

# modify_volume_attribute method definition

def modify_volume_attribute(
    self,
    *,
    VolumeId: str,
    AutoEnableIO: AttributeBooleanValueTypeDef = ...,  # (1)
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See EmptyResponseMetadataTypeDef
# modify_volume_attribute method usage example with argument unpacking

kwargs: ModifyVolumeAttributeRequestTypeDef = {  # (1)
    "VolumeId": ...,
}

parent.modify_volume_attribute(**kwargs)
  1. See ModifyVolumeAttributeRequestTypeDef

modify_vpc_attribute#

Modifies the specified attribute of the specified VPC.

Type annotations and code completion for boto3.client("ec2").modify_vpc_attribute method. boto3 documentation

# modify_vpc_attribute method definition

def modify_vpc_attribute(
    self,
    *,
    VpcId: str,
    EnableDnsHostnames: AttributeBooleanValueTypeDef = ...,  # (1)
    EnableDnsSupport: AttributeBooleanValueTypeDef = ...,  # (1)
    EnableNetworkAddressUsageMetrics: AttributeBooleanValueTypeDef = ...,  # (1)
) -> EmptyResponseMetadataTypeDef:  # (4)
    ...
  1. See AttributeBooleanValueTypeDef
  2. See AttributeBooleanValueTypeDef
  3. See AttributeBooleanValueTypeDef
  4. See EmptyResponseMetadataTypeDef
# modify_vpc_attribute method usage example with argument unpacking

kwargs: ModifyVpcAttributeRequestTypeDef = {  # (1)
    "VpcId": ...,
}

parent.modify_vpc_attribute(**kwargs)
  1. See ModifyVpcAttributeRequestTypeDef

modify_vpc_block_public_access_exclusion#

Modify VPC Block Public Access (BPA) exclusions.

Type annotations and code completion for boto3.client("ec2").modify_vpc_block_public_access_exclusion method. boto3 documentation

# modify_vpc_block_public_access_exclusion method definition

def modify_vpc_block_public_access_exclusion(
    self,
    *,
    ExclusionId: str,
    InternetGatewayExclusionMode: InternetGatewayExclusionModeType,  # (1)
    DryRun: bool = ...,
) -> ModifyVpcBlockPublicAccessExclusionResultTypeDef:  # (2)
    ...
  1. See InternetGatewayExclusionModeType
  2. See ModifyVpcBlockPublicAccessExclusionResultTypeDef
# modify_vpc_block_public_access_exclusion method usage example with argument unpacking

kwargs: ModifyVpcBlockPublicAccessExclusionRequestTypeDef = {  # (1)
    "ExclusionId": ...,
    "InternetGatewayExclusionMode": ...,
}

parent.modify_vpc_block_public_access_exclusion(**kwargs)
  1. See ModifyVpcBlockPublicAccessExclusionRequestTypeDef

modify_vpc_block_public_access_options#

Modify VPC Block Public Access (BPA) options.

Type annotations and code completion for boto3.client("ec2").modify_vpc_block_public_access_options method. boto3 documentation

# modify_vpc_block_public_access_options method definition

def modify_vpc_block_public_access_options(
    self,
    *,
    InternetGatewayBlockMode: InternetGatewayBlockModeType,  # (1)
    DryRun: bool = ...,
) -> ModifyVpcBlockPublicAccessOptionsResultTypeDef:  # (2)
    ...
  1. See InternetGatewayBlockModeType
  2. See ModifyVpcBlockPublicAccessOptionsResultTypeDef
# modify_vpc_block_public_access_options method usage example with argument unpacking

kwargs: ModifyVpcBlockPublicAccessOptionsRequestTypeDef = {  # (1)
    "InternetGatewayBlockMode": ...,
}

parent.modify_vpc_block_public_access_options(**kwargs)
  1. See ModifyVpcBlockPublicAccessOptionsRequestTypeDef

modify_vpc_endpoint#

Modifies attributes of a specified VPC endpoint.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint method. boto3 documentation

# modify_vpc_endpoint method definition

def modify_vpc_endpoint(
    self,
    *,
    VpcEndpointId: str,
    DryRun: bool = ...,
    ResetPolicy: bool = ...,
    PolicyDocument: str = ...,
    AddRouteTableIds: Sequence[str] = ...,
    RemoveRouteTableIds: Sequence[str] = ...,
    AddSubnetIds: Sequence[str] = ...,
    RemoveSubnetIds: Sequence[str] = ...,
    AddSecurityGroupIds: Sequence[str] = ...,
    RemoveSecurityGroupIds: Sequence[str] = ...,
    IpAddressType: IpAddressTypeType = ...,  # (1)
    DnsOptions: DnsOptionsSpecificationTypeDef = ...,  # (2)
    PrivateDnsEnabled: bool = ...,
    SubnetConfigurations: Sequence[SubnetConfigurationTypeDef] = ...,  # (3)
) -> ModifyVpcEndpointResultTypeDef:  # (4)
    ...
  1. See IpAddressTypeType
  2. See DnsOptionsSpecificationTypeDef
  3. See SubnetConfigurationTypeDef
  4. See ModifyVpcEndpointResultTypeDef
# modify_vpc_endpoint method usage example with argument unpacking

kwargs: ModifyVpcEndpointRequestTypeDef = {  # (1)
    "VpcEndpointId": ...,
}

parent.modify_vpc_endpoint(**kwargs)
  1. See ModifyVpcEndpointRequestTypeDef

modify_vpc_endpoint_connection_notification#

Modifies a connection notification for VPC endpoint or VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_connection_notification method. boto3 documentation

# modify_vpc_endpoint_connection_notification method definition

def modify_vpc_endpoint_connection_notification(
    self,
    *,
    ConnectionNotificationId: str,
    DryRun: bool = ...,
    ConnectionNotificationArn: str = ...,
    ConnectionEvents: Sequence[str] = ...,
) -> ModifyVpcEndpointConnectionNotificationResultTypeDef:  # (1)
    ...
  1. See ModifyVpcEndpointConnectionNotificationResultTypeDef
# modify_vpc_endpoint_connection_notification method usage example with argument unpacking

kwargs: ModifyVpcEndpointConnectionNotificationRequestTypeDef = {  # (1)
    "ConnectionNotificationId": ...,
}

parent.modify_vpc_endpoint_connection_notification(**kwargs)
  1. See ModifyVpcEndpointConnectionNotificationRequestTypeDef

modify_vpc_endpoint_service_configuration#

Modifies the attributes of the specified VPC endpoint service configuration.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_service_configuration method. boto3 documentation

# modify_vpc_endpoint_service_configuration method definition

def modify_vpc_endpoint_service_configuration(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
    PrivateDnsName: str = ...,
    RemovePrivateDnsName: bool = ...,
    AcceptanceRequired: bool = ...,
    AddNetworkLoadBalancerArns: Sequence[str] = ...,
    RemoveNetworkLoadBalancerArns: Sequence[str] = ...,
    AddGatewayLoadBalancerArns: Sequence[str] = ...,
    RemoveGatewayLoadBalancerArns: Sequence[str] = ...,
    AddSupportedIpAddressTypes: Sequence[str] = ...,
    RemoveSupportedIpAddressTypes: Sequence[str] = ...,
    AddSupportedRegions: Sequence[str] = ...,
    RemoveSupportedRegions: Sequence[str] = ...,
) -> ModifyVpcEndpointServiceConfigurationResultTypeDef:  # (1)
    ...
  1. See ModifyVpcEndpointServiceConfigurationResultTypeDef
# modify_vpc_endpoint_service_configuration method usage example with argument unpacking

kwargs: ModifyVpcEndpointServiceConfigurationRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.modify_vpc_endpoint_service_configuration(**kwargs)
  1. See ModifyVpcEndpointServiceConfigurationRequestTypeDef

modify_vpc_endpoint_service_payer_responsibility#

Modifies the payer responsibility for your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_service_payer_responsibility method. boto3 documentation

# modify_vpc_endpoint_service_payer_responsibility method definition

def modify_vpc_endpoint_service_payer_responsibility(
    self,
    *,
    ServiceId: str,
    PayerResponsibility: PayerResponsibilityType,  # (1)
    DryRun: bool = ...,
) -> ModifyVpcEndpointServicePayerResponsibilityResultTypeDef:  # (2)
    ...
  1. See PayerResponsibilityType
  2. See ModifyVpcEndpointServicePayerResponsibilityResultTypeDef
# modify_vpc_endpoint_service_payer_responsibility method usage example with argument unpacking

kwargs: ModifyVpcEndpointServicePayerResponsibilityRequestTypeDef = {  # (1)
    "ServiceId": ...,
    "PayerResponsibility": ...,
}

parent.modify_vpc_endpoint_service_payer_responsibility(**kwargs)
  1. See ModifyVpcEndpointServicePayerResponsibilityRequestTypeDef

modify_vpc_endpoint_service_permissions#

Modifies the permissions for your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").modify_vpc_endpoint_service_permissions method. boto3 documentation

# modify_vpc_endpoint_service_permissions method definition

def modify_vpc_endpoint_service_permissions(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
    AddAllowedPrincipals: Sequence[str] = ...,
    RemoveAllowedPrincipals: Sequence[str] = ...,
) -> ModifyVpcEndpointServicePermissionsResultTypeDef:  # (1)
    ...
  1. See ModifyVpcEndpointServicePermissionsResultTypeDef
# modify_vpc_endpoint_service_permissions method usage example with argument unpacking

kwargs: ModifyVpcEndpointServicePermissionsRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.modify_vpc_endpoint_service_permissions(**kwargs)
  1. See ModifyVpcEndpointServicePermissionsRequestTypeDef

modify_vpc_peering_connection_options#

Modifies the VPC peering connection options on one side of a VPC peering connection.

Type annotations and code completion for boto3.client("ec2").modify_vpc_peering_connection_options method. boto3 documentation

# modify_vpc_peering_connection_options method definition

def modify_vpc_peering_connection_options(
    self,
    *,
    VpcPeeringConnectionId: str,
    AccepterPeeringConnectionOptions: PeeringConnectionOptionsRequestTypeDef = ...,  # (1)
    DryRun: bool = ...,
    RequesterPeeringConnectionOptions: PeeringConnectionOptionsRequestTypeDef = ...,  # (1)
) -> ModifyVpcPeeringConnectionOptionsResultTypeDef:  # (3)
    ...
  1. See PeeringConnectionOptionsRequestTypeDef
  2. See PeeringConnectionOptionsRequestTypeDef
  3. See ModifyVpcPeeringConnectionOptionsResultTypeDef
# modify_vpc_peering_connection_options method usage example with argument unpacking

kwargs: ModifyVpcPeeringConnectionOptionsRequestTypeDef = {  # (1)
    "VpcPeeringConnectionId": ...,
}

parent.modify_vpc_peering_connection_options(**kwargs)
  1. See ModifyVpcPeeringConnectionOptionsRequestTypeDef

modify_vpc_tenancy#

Modifies the instance tenancy attribute of the specified VPC.

Type annotations and code completion for boto3.client("ec2").modify_vpc_tenancy method. boto3 documentation

# modify_vpc_tenancy method definition

def modify_vpc_tenancy(
    self,
    *,
    VpcId: str,
    InstanceTenancy: VpcTenancyType,  # (1)
    DryRun: bool = ...,
) -> ModifyVpcTenancyResultTypeDef:  # (2)
    ...
  1. See VpcTenancyType
  2. See ModifyVpcTenancyResultTypeDef
# modify_vpc_tenancy method usage example with argument unpacking

kwargs: ModifyVpcTenancyRequestTypeDef = {  # (1)
    "VpcId": ...,
    "InstanceTenancy": ...,
}

parent.modify_vpc_tenancy(**kwargs)
  1. See ModifyVpcTenancyRequestTypeDef

modify_vpn_connection#

Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection.

Type annotations and code completion for boto3.client("ec2").modify_vpn_connection method. boto3 documentation

# modify_vpn_connection method definition

def modify_vpn_connection(
    self,
    *,
    VpnConnectionId: str,
    TransitGatewayId: str = ...,
    CustomerGatewayId: str = ...,
    VpnGatewayId: str = ...,
    DryRun: bool = ...,
) -> ModifyVpnConnectionResultTypeDef:  # (1)
    ...
  1. See ModifyVpnConnectionResultTypeDef
# modify_vpn_connection method usage example with argument unpacking

kwargs: ModifyVpnConnectionRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
}

parent.modify_vpn_connection(**kwargs)
  1. See ModifyVpnConnectionRequestTypeDef

modify_vpn_connection_options#

Modifies the connection options for your Site-to-Site VPN connection.

Type annotations and code completion for boto3.client("ec2").modify_vpn_connection_options method. boto3 documentation

# modify_vpn_connection_options method definition

def modify_vpn_connection_options(
    self,
    *,
    VpnConnectionId: str,
    LocalIpv4NetworkCidr: str = ...,
    RemoteIpv4NetworkCidr: str = ...,
    LocalIpv6NetworkCidr: str = ...,
    RemoteIpv6NetworkCidr: str = ...,
    DryRun: bool = ...,
) -> ModifyVpnConnectionOptionsResultTypeDef:  # (1)
    ...
  1. See ModifyVpnConnectionOptionsResultTypeDef
# modify_vpn_connection_options method usage example with argument unpacking

kwargs: ModifyVpnConnectionOptionsRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
}

parent.modify_vpn_connection_options(**kwargs)
  1. See ModifyVpnConnectionOptionsRequestTypeDef

modify_vpn_tunnel_certificate#

Modifies the VPN tunnel endpoint certificate.

Type annotations and code completion for boto3.client("ec2").modify_vpn_tunnel_certificate method. boto3 documentation

# modify_vpn_tunnel_certificate method definition

def modify_vpn_tunnel_certificate(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    DryRun: bool = ...,
) -> ModifyVpnTunnelCertificateResultTypeDef:  # (1)
    ...
  1. See ModifyVpnTunnelCertificateResultTypeDef
# modify_vpn_tunnel_certificate method usage example with argument unpacking

kwargs: ModifyVpnTunnelCertificateRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
}

parent.modify_vpn_tunnel_certificate(**kwargs)
  1. See ModifyVpnTunnelCertificateRequestTypeDef

modify_vpn_tunnel_options#

Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection.

Type annotations and code completion for boto3.client("ec2").modify_vpn_tunnel_options method. boto3 documentation

# modify_vpn_tunnel_options method definition

def modify_vpn_tunnel_options(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    TunnelOptions: ModifyVpnTunnelOptionsSpecificationTypeDef,  # (1)
    DryRun: bool = ...,
    SkipTunnelReplacement: bool = ...,
) -> ModifyVpnTunnelOptionsResultTypeDef:  # (2)
    ...
  1. See ModifyVpnTunnelOptionsSpecificationTypeDef
  2. See ModifyVpnTunnelOptionsResultTypeDef
# modify_vpn_tunnel_options method usage example with argument unpacking

kwargs: ModifyVpnTunnelOptionsRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
    "TunnelOptions": ...,
}

parent.modify_vpn_tunnel_options(**kwargs)
  1. See ModifyVpnTunnelOptionsRequestTypeDef

monitor_instances#

Enables detailed monitoring for a running instance.

Type annotations and code completion for boto3.client("ec2").monitor_instances method. boto3 documentation

# monitor_instances method definition

def monitor_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> MonitorInstancesResultTypeDef:  # (1)
    ...
  1. See MonitorInstancesResultTypeDef
# monitor_instances method usage example with argument unpacking

kwargs: MonitorInstancesRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.monitor_instances(**kwargs)
  1. See MonitorInstancesRequestTypeDef

move_address_to_vpc#

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").move_address_to_vpc method. boto3 documentation

# move_address_to_vpc method definition

def move_address_to_vpc(
    self,
    *,
    PublicIp: str,
    DryRun: bool = ...,
) -> MoveAddressToVpcResultTypeDef:  # (1)
    ...
  1. See MoveAddressToVpcResultTypeDef
# move_address_to_vpc method usage example with argument unpacking

kwargs: MoveAddressToVpcRequestTypeDef = {  # (1)
    "PublicIp": ...,
}

parent.move_address_to_vpc(**kwargs)
  1. See MoveAddressToVpcRequestTypeDef

move_byoip_cidr_to_ipam#

Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool.

Type annotations and code completion for boto3.client("ec2").move_byoip_cidr_to_ipam method. boto3 documentation

# move_byoip_cidr_to_ipam method definition

def move_byoip_cidr_to_ipam(
    self,
    *,
    Cidr: str,
    IpamPoolId: str,
    IpamPoolOwner: str,
    DryRun: bool = ...,
) -> MoveByoipCidrToIpamResultTypeDef:  # (1)
    ...
  1. See MoveByoipCidrToIpamResultTypeDef
# move_byoip_cidr_to_ipam method usage example with argument unpacking

kwargs: MoveByoipCidrToIpamRequestTypeDef = {  # (1)
    "Cidr": ...,
    "IpamPoolId": ...,
    "IpamPoolOwner": ...,
}

parent.move_byoip_cidr_to_ipam(**kwargs)
  1. See MoveByoipCidrToIpamRequestTypeDef

move_capacity_reservation_instances#

Move available capacity from a source Capacity Reservation to a destination Capacity Reservation.

Type annotations and code completion for boto3.client("ec2").move_capacity_reservation_instances method. boto3 documentation

# move_capacity_reservation_instances method definition

def move_capacity_reservation_instances(
    self,
    *,
    SourceCapacityReservationId: str,
    DestinationCapacityReservationId: str,
    InstanceCount: int,
    DryRun: bool = ...,
    ClientToken: str = ...,
) -> MoveCapacityReservationInstancesResultTypeDef:  # (1)
    ...
  1. See MoveCapacityReservationInstancesResultTypeDef
# move_capacity_reservation_instances method usage example with argument unpacking

kwargs: MoveCapacityReservationInstancesRequestTypeDef = {  # (1)
    "SourceCapacityReservationId": ...,
    "DestinationCapacityReservationId": ...,
    "InstanceCount": ...,
}

parent.move_capacity_reservation_instances(**kwargs)
  1. See MoveCapacityReservationInstancesRequestTypeDef

provision_byoip_cidr#

Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool.

Type annotations and code completion for boto3.client("ec2").provision_byoip_cidr method. boto3 documentation

# provision_byoip_cidr method definition

def provision_byoip_cidr(
    self,
    *,
    Cidr: str,
    CidrAuthorizationContext: CidrAuthorizationContextTypeDef = ...,  # (1)
    PubliclyAdvertisable: bool = ...,
    Description: str = ...,
    DryRun: bool = ...,
    PoolTagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    MultiRegion: bool = ...,
    NetworkBorderGroup: str = ...,
) -> ProvisionByoipCidrResultTypeDef:  # (3)
    ...
  1. See CidrAuthorizationContextTypeDef
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See ProvisionByoipCidrResultTypeDef
# provision_byoip_cidr method usage example with argument unpacking

kwargs: ProvisionByoipCidrRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.provision_byoip_cidr(**kwargs)
  1. See ProvisionByoipCidrRequestTypeDef

provision_ipam_byoasn#

Provisions your Autonomous System Number (ASN) for use in your Amazon Web Services account.

Type annotations and code completion for boto3.client("ec2").provision_ipam_byoasn method. boto3 documentation

# provision_ipam_byoasn method definition

def provision_ipam_byoasn(
    self,
    *,
    IpamId: str,
    Asn: str,
    AsnAuthorizationContext: AsnAuthorizationContextTypeDef,  # (1)
    DryRun: bool = ...,
) -> ProvisionIpamByoasnResultTypeDef:  # (2)
    ...
  1. See AsnAuthorizationContextTypeDef
  2. See ProvisionIpamByoasnResultTypeDef
# provision_ipam_byoasn method usage example with argument unpacking

kwargs: ProvisionIpamByoasnRequestTypeDef = {  # (1)
    "IpamId": ...,
    "Asn": ...,
    "AsnAuthorizationContext": ...,
}

parent.provision_ipam_byoasn(**kwargs)
  1. See ProvisionIpamByoasnRequestTypeDef

provision_ipam_pool_cidr#

Provision a CIDR to an IPAM pool.

Type annotations and code completion for boto3.client("ec2").provision_ipam_pool_cidr method. boto3 documentation

# provision_ipam_pool_cidr method definition

def provision_ipam_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    DryRun: bool = ...,
    Cidr: str = ...,
    CidrAuthorizationContext: IpamCidrAuthorizationContextTypeDef = ...,  # (1)
    NetmaskLength: int = ...,
    ClientToken: str = ...,
    VerificationMethod: VerificationMethodType = ...,  # (2)
    IpamExternalResourceVerificationTokenId: str = ...,
) -> ProvisionIpamPoolCidrResultTypeDef:  # (3)
    ...
  1. See IpamCidrAuthorizationContextTypeDef
  2. See VerificationMethodType
  3. See ProvisionIpamPoolCidrResultTypeDef
# provision_ipam_pool_cidr method usage example with argument unpacking

kwargs: ProvisionIpamPoolCidrRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
}

parent.provision_ipam_pool_cidr(**kwargs)
  1. See ProvisionIpamPoolCidrRequestTypeDef

provision_public_ipv4_pool_cidr#

Provision a CIDR to a public IPv4 pool.

Type annotations and code completion for boto3.client("ec2").provision_public_ipv4_pool_cidr method. boto3 documentation

# provision_public_ipv4_pool_cidr method definition

def provision_public_ipv4_pool_cidr(
    self,
    *,
    IpamPoolId: str,
    PoolId: str,
    NetmaskLength: int,
    DryRun: bool = ...,
    NetworkBorderGroup: str = ...,
) -> ProvisionPublicIpv4PoolCidrResultTypeDef:  # (1)
    ...
  1. See ProvisionPublicIpv4PoolCidrResultTypeDef
# provision_public_ipv4_pool_cidr method usage example with argument unpacking

kwargs: ProvisionPublicIpv4PoolCidrRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
    "PoolId": ...,
    "NetmaskLength": ...,
}

parent.provision_public_ipv4_pool_cidr(**kwargs)
  1. See ProvisionPublicIpv4PoolCidrRequestTypeDef

purchase_capacity_block#

Purchase the Capacity Block for use with your account.

Type annotations and code completion for boto3.client("ec2").purchase_capacity_block method. boto3 documentation

# purchase_capacity_block method definition

def purchase_capacity_block(
    self,
    *,
    CapacityBlockOfferingId: str,
    InstancePlatform: CapacityReservationInstancePlatformType,  # (1)
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
) -> PurchaseCapacityBlockResultTypeDef:  # (3)
    ...
  1. See CapacityReservationInstancePlatformType
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See PurchaseCapacityBlockResultTypeDef
# purchase_capacity_block method usage example with argument unpacking

kwargs: PurchaseCapacityBlockRequestTypeDef = {  # (1)
    "CapacityBlockOfferingId": ...,
    "InstancePlatform": ...,
}

parent.purchase_capacity_block(**kwargs)
  1. See PurchaseCapacityBlockRequestTypeDef

purchase_capacity_block_extension#

Purchase the Capacity Block extension for use with your account.

Type annotations and code completion for boto3.client("ec2").purchase_capacity_block_extension method. boto3 documentation

# purchase_capacity_block_extension method definition

def purchase_capacity_block_extension(
    self,
    *,
    CapacityBlockExtensionOfferingId: str,
    CapacityReservationId: str,
    DryRun: bool = ...,
) -> PurchaseCapacityBlockExtensionResultTypeDef:  # (1)
    ...
  1. See PurchaseCapacityBlockExtensionResultTypeDef
# purchase_capacity_block_extension method usage example with argument unpacking

kwargs: PurchaseCapacityBlockExtensionRequestTypeDef = {  # (1)
    "CapacityBlockExtensionOfferingId": ...,
    "CapacityReservationId": ...,
}

parent.purchase_capacity_block_extension(**kwargs)
  1. See PurchaseCapacityBlockExtensionRequestTypeDef

purchase_host_reservation#

Purchase a reservation with configurations that match those of your Dedicated Host.

Type annotations and code completion for boto3.client("ec2").purchase_host_reservation method. boto3 documentation

# purchase_host_reservation method definition

def purchase_host_reservation(
    self,
    *,
    HostIdSet: Sequence[str],
    OfferingId: str,
    ClientToken: str = ...,
    CurrencyCode: CurrencyCodeValuesType = ...,  # (1)
    LimitPrice: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
) -> PurchaseHostReservationResultTypeDef:  # (3)
    ...
  1. See CurrencyCodeValuesType
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See PurchaseHostReservationResultTypeDef
# purchase_host_reservation method usage example with argument unpacking

kwargs: PurchaseHostReservationRequestTypeDef = {  # (1)
    "HostIdSet": ...,
    "OfferingId": ...,
}

parent.purchase_host_reservation(**kwargs)
  1. See PurchaseHostReservationRequestTypeDef

purchase_reserved_instances_offering#

Purchases a Reserved Instance for use with your account.

Type annotations and code completion for boto3.client("ec2").purchase_reserved_instances_offering method. boto3 documentation

# purchase_reserved_instances_offering method definition

def purchase_reserved_instances_offering(
    self,
    *,
    InstanceCount: int,
    ReservedInstancesOfferingId: str,
    PurchaseTime: TimestampTypeDef = ...,
    DryRun: bool = ...,
    LimitPrice: ReservedInstanceLimitPriceTypeDef = ...,  # (1)
) -> PurchaseReservedInstancesOfferingResultTypeDef:  # (2)
    ...
  1. See ReservedInstanceLimitPriceTypeDef
  2. See PurchaseReservedInstancesOfferingResultTypeDef
# purchase_reserved_instances_offering method usage example with argument unpacking

kwargs: PurchaseReservedInstancesOfferingRequestTypeDef = {  # (1)
    "InstanceCount": ...,
    "ReservedInstancesOfferingId": ...,
}

parent.purchase_reserved_instances_offering(**kwargs)
  1. See PurchaseReservedInstancesOfferingRequestTypeDef

purchase_scheduled_instances#

You can no longer purchase Scheduled Instances.

Type annotations and code completion for boto3.client("ec2").purchase_scheduled_instances method. boto3 documentation

# purchase_scheduled_instances method definition

def purchase_scheduled_instances(
    self,
    *,
    PurchaseRequests: Sequence[PurchaseRequestTypeDef],  # (1)
    ClientToken: str = ...,
    DryRun: bool = ...,
) -> PurchaseScheduledInstancesResultTypeDef:  # (2)
    ...
  1. See PurchaseRequestTypeDef
  2. See PurchaseScheduledInstancesResultTypeDef
# purchase_scheduled_instances method usage example with argument unpacking

kwargs: PurchaseScheduledInstancesRequestTypeDef = {  # (1)
    "PurchaseRequests": ...,
}

parent.purchase_scheduled_instances(**kwargs)
  1. See PurchaseScheduledInstancesRequestTypeDef

reboot_instances#

Requests a reboot of the specified instances.

Type annotations and code completion for boto3.client("ec2").reboot_instances method. boto3 documentation

# reboot_instances method definition

def reboot_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# reboot_instances method usage example with argument unpacking

kwargs: RebootInstancesRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.reboot_instances(**kwargs)
  1. See RebootInstancesRequestTypeDef

register_image#

Registers an AMI.

Type annotations and code completion for boto3.client("ec2").register_image method. boto3 documentation

# register_image method definition

def register_image(
    self,
    *,
    Name: str,
    ImageLocation: str = ...,
    BillingProducts: Sequence[str] = ...,
    BootMode: BootModeValuesType = ...,  # (1)
    TpmSupport: TpmSupportValuesType = ...,  # (2)
    UefiData: str = ...,
    ImdsSupport: ImdsSupportValuesType = ...,  # (3)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (4)
    DryRun: bool = ...,
    Description: str = ...,
    Architecture: ArchitectureValuesType = ...,  # (5)
    KernelId: str = ...,
    RamdiskId: str = ...,
    RootDeviceName: str = ...,
    BlockDeviceMappings: Sequence[BlockDeviceMappingTypeDef] = ...,  # (6)
    VirtualizationType: str = ...,
    SriovNetSupport: str = ...,
    EnaSupport: bool = ...,
) -> RegisterImageResultTypeDef:  # (7)
    ...
  1. See BootModeValuesType
  2. See TpmSupportValuesType
  3. See ImdsSupportValuesType
  4. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  5. See ArchitectureValuesType
  6. See BlockDeviceMappingTypeDef
  7. See RegisterImageResultTypeDef
# register_image method usage example with argument unpacking

kwargs: RegisterImageRequestTypeDef = {  # (1)
    "Name": ...,
}

parent.register_image(**kwargs)
  1. See RegisterImageRequestTypeDef

register_instance_event_notification_attributes#

Registers a set of tag keys to include in scheduled event notifications for your resources.

Type annotations and code completion for boto3.client("ec2").register_instance_event_notification_attributes method. boto3 documentation

# register_instance_event_notification_attributes method definition

def register_instance_event_notification_attributes(
    self,
    *,
    InstanceTagAttribute: RegisterInstanceTagAttributeRequestTypeDef,  # (1)
    DryRun: bool = ...,
) -> RegisterInstanceEventNotificationAttributesResultTypeDef:  # (2)
    ...
  1. See RegisterInstanceTagAttributeRequestTypeDef
  2. See RegisterInstanceEventNotificationAttributesResultTypeDef
# register_instance_event_notification_attributes method usage example with argument unpacking

kwargs: RegisterInstanceEventNotificationAttributesRequestTypeDef = {  # (1)
    "InstanceTagAttribute": ...,
}

parent.register_instance_event_notification_attributes(**kwargs)
  1. See RegisterInstanceEventNotificationAttributesRequestTypeDef

register_transit_gateway_multicast_group_members#

Registers members (network interfaces) with the transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").register_transit_gateway_multicast_group_members method. boto3 documentation

# register_transit_gateway_multicast_group_members method definition

def register_transit_gateway_multicast_group_members(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    NetworkInterfaceIds: Sequence[str],
    GroupIpAddress: str = ...,
    DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupMembersResultTypeDef:  # (1)
    ...
  1. See RegisterTransitGatewayMulticastGroupMembersResultTypeDef
# register_transit_gateway_multicast_group_members method usage example with argument unpacking

kwargs: RegisterTransitGatewayMulticastGroupMembersRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
    "NetworkInterfaceIds": ...,
}

parent.register_transit_gateway_multicast_group_members(**kwargs)
  1. See RegisterTransitGatewayMulticastGroupMembersRequestTypeDef

register_transit_gateway_multicast_group_sources#

Registers sources (network interfaces) with the specified transit gateway multicast group.

Type annotations and code completion for boto3.client("ec2").register_transit_gateway_multicast_group_sources method. boto3 documentation

# register_transit_gateway_multicast_group_sources method definition

def register_transit_gateway_multicast_group_sources(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    NetworkInterfaceIds: Sequence[str],
    GroupIpAddress: str = ...,
    DryRun: bool = ...,
) -> RegisterTransitGatewayMulticastGroupSourcesResultTypeDef:  # (1)
    ...
  1. See RegisterTransitGatewayMulticastGroupSourcesResultTypeDef
# register_transit_gateway_multicast_group_sources method usage example with argument unpacking

kwargs: RegisterTransitGatewayMulticastGroupSourcesRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
    "NetworkInterfaceIds": ...,
}

parent.register_transit_gateway_multicast_group_sources(**kwargs)
  1. See RegisterTransitGatewayMulticastGroupSourcesRequestTypeDef

reject_capacity_reservation_billing_ownership#

Rejects a request to assign billing of the available capacity of a shared Capacity Reservation to your account.

Type annotations and code completion for boto3.client("ec2").reject_capacity_reservation_billing_ownership method. boto3 documentation

# reject_capacity_reservation_billing_ownership method definition

def reject_capacity_reservation_billing_ownership(
    self,
    *,
    CapacityReservationId: str,
    DryRun: bool = ...,
) -> RejectCapacityReservationBillingOwnershipResultTypeDef:  # (1)
    ...
  1. See RejectCapacityReservationBillingOwnershipResultTypeDef
# reject_capacity_reservation_billing_ownership method usage example with argument unpacking

kwargs: RejectCapacityReservationBillingOwnershipRequestTypeDef = {  # (1)
    "CapacityReservationId": ...,
}

parent.reject_capacity_reservation_billing_ownership(**kwargs)
  1. See RejectCapacityReservationBillingOwnershipRequestTypeDef

reject_transit_gateway_multicast_domain_associations#

Rejects a request to associate cross-account subnets with a transit gateway multicast domain.

Type annotations and code completion for boto3.client("ec2").reject_transit_gateway_multicast_domain_associations method. boto3 documentation

# reject_transit_gateway_multicast_domain_associations method definition

def reject_transit_gateway_multicast_domain_associations(
    self,
    *,
    TransitGatewayMulticastDomainId: str = ...,
    TransitGatewayAttachmentId: str = ...,
    SubnetIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> RejectTransitGatewayMulticastDomainAssociationsResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayMulticastDomainAssociationsResultTypeDef
# reject_transit_gateway_multicast_domain_associations method usage example with argument unpacking

kwargs: RejectTransitGatewayMulticastDomainAssociationsRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.reject_transit_gateway_multicast_domain_associations(**kwargs)
  1. See RejectTransitGatewayMulticastDomainAssociationsRequestTypeDef

reject_transit_gateway_peering_attachment#

Rejects a transit gateway peering attachment request.

Type annotations and code completion for boto3.client("ec2").reject_transit_gateway_peering_attachment method. boto3 documentation

# reject_transit_gateway_peering_attachment method definition

def reject_transit_gateway_peering_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> RejectTransitGatewayPeeringAttachmentResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayPeeringAttachmentResultTypeDef
# reject_transit_gateway_peering_attachment method usage example with argument unpacking

kwargs: RejectTransitGatewayPeeringAttachmentRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.reject_transit_gateway_peering_attachment(**kwargs)
  1. See RejectTransitGatewayPeeringAttachmentRequestTypeDef

reject_transit_gateway_vpc_attachment#

Rejects a request to attach a VPC to a transit gateway.

Type annotations and code completion for boto3.client("ec2").reject_transit_gateway_vpc_attachment method. boto3 documentation

# reject_transit_gateway_vpc_attachment method definition

def reject_transit_gateway_vpc_attachment(
    self,
    *,
    TransitGatewayAttachmentId: str,
    DryRun: bool = ...,
) -> RejectTransitGatewayVpcAttachmentResultTypeDef:  # (1)
    ...
  1. See RejectTransitGatewayVpcAttachmentResultTypeDef
# reject_transit_gateway_vpc_attachment method usage example with argument unpacking

kwargs: RejectTransitGatewayVpcAttachmentRequestTypeDef = {  # (1)
    "TransitGatewayAttachmentId": ...,
}

parent.reject_transit_gateway_vpc_attachment(**kwargs)
  1. See RejectTransitGatewayVpcAttachmentRequestTypeDef

reject_vpc_endpoint_connections#

Rejects VPC endpoint connection requests to your VPC endpoint service.

Type annotations and code completion for boto3.client("ec2").reject_vpc_endpoint_connections method. boto3 documentation

# reject_vpc_endpoint_connections method definition

def reject_vpc_endpoint_connections(
    self,
    *,
    ServiceId: str,
    VpcEndpointIds: Sequence[str],
    DryRun: bool = ...,
) -> RejectVpcEndpointConnectionsResultTypeDef:  # (1)
    ...
  1. See RejectVpcEndpointConnectionsResultTypeDef
# reject_vpc_endpoint_connections method usage example with argument unpacking

kwargs: RejectVpcEndpointConnectionsRequestTypeDef = {  # (1)
    "ServiceId": ...,
    "VpcEndpointIds": ...,
}

parent.reject_vpc_endpoint_connections(**kwargs)
  1. See RejectVpcEndpointConnectionsRequestTypeDef

reject_vpc_peering_connection#

Rejects a VPC peering connection request.

Type annotations and code completion for boto3.client("ec2").reject_vpc_peering_connection method. boto3 documentation

# reject_vpc_peering_connection method definition

def reject_vpc_peering_connection(
    self,
    *,
    VpcPeeringConnectionId: str,
    DryRun: bool = ...,
) -> RejectVpcPeeringConnectionResultTypeDef:  # (1)
    ...
  1. See RejectVpcPeeringConnectionResultTypeDef
# reject_vpc_peering_connection method usage example with argument unpacking

kwargs: RejectVpcPeeringConnectionRequestTypeDef = {  # (1)
    "VpcPeeringConnectionId": ...,
}

parent.reject_vpc_peering_connection(**kwargs)
  1. See RejectVpcPeeringConnectionRequestTypeDef

release_address#

Releases the specified Elastic IP address.

Type annotations and code completion for boto3.client("ec2").release_address method. boto3 documentation

# release_address method definition

def release_address(
    self,
    *,
    AllocationId: str = ...,
    PublicIp: str = ...,
    NetworkBorderGroup: str = ...,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# release_address method usage example with argument unpacking

kwargs: ReleaseAddressRequestTypeDef = {  # (1)
    "AllocationId": ...,
}

parent.release_address(**kwargs)
  1. See ReleaseAddressRequestTypeDef

release_hosts#

When you no longer want to use an On-Demand Dedicated Host it can be released.

Type annotations and code completion for boto3.client("ec2").release_hosts method. boto3 documentation

# release_hosts method definition

def release_hosts(
    self,
    *,
    HostIds: Sequence[str],
) -> ReleaseHostsResultTypeDef:  # (1)
    ...
  1. See ReleaseHostsResultTypeDef
# release_hosts method usage example with argument unpacking

kwargs: ReleaseHostsRequestTypeDef = {  # (1)
    "HostIds": ...,
}

parent.release_hosts(**kwargs)
  1. See ReleaseHostsRequestTypeDef

release_ipam_pool_allocation#

Release an allocation within an IPAM pool.

Type annotations and code completion for boto3.client("ec2").release_ipam_pool_allocation method. boto3 documentation

# release_ipam_pool_allocation method definition

def release_ipam_pool_allocation(
    self,
    *,
    IpamPoolId: str,
    Cidr: str,
    IpamPoolAllocationId: str,
    DryRun: bool = ...,
) -> ReleaseIpamPoolAllocationResultTypeDef:  # (1)
    ...
  1. See ReleaseIpamPoolAllocationResultTypeDef
# release_ipam_pool_allocation method usage example with argument unpacking

kwargs: ReleaseIpamPoolAllocationRequestTypeDef = {  # (1)
    "IpamPoolId": ...,
    "Cidr": ...,
    "IpamPoolAllocationId": ...,
}

parent.release_ipam_pool_allocation(**kwargs)
  1. See ReleaseIpamPoolAllocationRequestTypeDef

replace_iam_instance_profile_association#

Replaces an IAM instance profile for the specified running instance.

Type annotations and code completion for boto3.client("ec2").replace_iam_instance_profile_association method. boto3 documentation

# replace_iam_instance_profile_association method definition

def replace_iam_instance_profile_association(
    self,
    *,
    IamInstanceProfile: IamInstanceProfileSpecificationTypeDef,  # (1)
    AssociationId: str,
) -> ReplaceIamInstanceProfileAssociationResultTypeDef:  # (2)
    ...
  1. See IamInstanceProfileSpecificationTypeDef
  2. See ReplaceIamInstanceProfileAssociationResultTypeDef
# replace_iam_instance_profile_association method usage example with argument unpacking

kwargs: ReplaceIamInstanceProfileAssociationRequestTypeDef = {  # (1)
    "IamInstanceProfile": ...,
    "AssociationId": ...,
}

parent.replace_iam_instance_profile_association(**kwargs)
  1. See ReplaceIamInstanceProfileAssociationRequestTypeDef

replace_image_criteria_in_allowed_images_settings#

Sets or replaces the criteria for Allowed AMIs.

Type annotations and code completion for boto3.client("ec2").replace_image_criteria_in_allowed_images_settings method. boto3 documentation

# replace_image_criteria_in_allowed_images_settings method definition

def replace_image_criteria_in_allowed_images_settings(
    self,
    *,
    ImageCriteria: Sequence[ImageCriterionRequestTypeDef] = ...,  # (1)
    DryRun: bool = ...,
) -> ReplaceImageCriteriaInAllowedImagesSettingsResultTypeDef:  # (2)
    ...
  1. See ImageCriterionRequestTypeDef
  2. See ReplaceImageCriteriaInAllowedImagesSettingsResultTypeDef
# replace_image_criteria_in_allowed_images_settings method usage example with argument unpacking

kwargs: ReplaceImageCriteriaInAllowedImagesSettingsRequestTypeDef = {  # (1)
    "ImageCriteria": ...,
}

parent.replace_image_criteria_in_allowed_images_settings(**kwargs)
  1. See ReplaceImageCriteriaInAllowedImagesSettingsRequestTypeDef

replace_network_acl_association#

Changes which network ACL a subnet is associated with.

Type annotations and code completion for boto3.client("ec2").replace_network_acl_association method. boto3 documentation

# replace_network_acl_association method definition

def replace_network_acl_association(
    self,
    *,
    AssociationId: str,
    NetworkAclId: str,
    DryRun: bool = ...,
) -> ReplaceNetworkAclAssociationResultTypeDef:  # (1)
    ...
  1. See ReplaceNetworkAclAssociationResultTypeDef
# replace_network_acl_association method usage example with argument unpacking

kwargs: ReplaceNetworkAclAssociationRequestTypeDef = {  # (1)
    "AssociationId": ...,
    "NetworkAclId": ...,
}

parent.replace_network_acl_association(**kwargs)
  1. See ReplaceNetworkAclAssociationRequestTypeDef

replace_network_acl_entry#

Replaces an entry (rule) in a network ACL.

Type annotations and code completion for boto3.client("ec2").replace_network_acl_entry method. boto3 documentation

# replace_network_acl_entry method definition

def replace_network_acl_entry(
    self,
    *,
    NetworkAclId: str,
    RuleNumber: int,
    Protocol: str,
    RuleAction: RuleActionType,  # (1)
    Egress: bool,
    DryRun: bool = ...,
    CidrBlock: str = ...,
    Ipv6CidrBlock: str = ...,
    IcmpTypeCode: IcmpTypeCodeTypeDef = ...,  # (2)
    PortRange: PortRangeTypeDef = ...,  # (3)
) -> EmptyResponseMetadataTypeDef:  # (4)
    ...
  1. See RuleActionType
  2. See IcmpTypeCodeTypeDef
  3. See PortRangeTypeDef
  4. See EmptyResponseMetadataTypeDef
# replace_network_acl_entry method usage example with argument unpacking

kwargs: ReplaceNetworkAclEntryRequestTypeDef = {  # (1)
    "NetworkAclId": ...,
    "RuleNumber": ...,
    "Protocol": ...,
    "RuleAction": ...,
    "Egress": ...,
}

parent.replace_network_acl_entry(**kwargs)
  1. See ReplaceNetworkAclEntryRequestTypeDef

replace_route#

Replaces an existing route within a route table in a VPC.

Type annotations and code completion for boto3.client("ec2").replace_route method. boto3 documentation

# replace_route method definition

def replace_route(
    self,
    *,
    RouteTableId: str,
    DestinationPrefixListId: str = ...,
    VpcEndpointId: str = ...,
    LocalTarget: bool = ...,
    TransitGatewayId: str = ...,
    LocalGatewayId: str = ...,
    CarrierGatewayId: str = ...,
    CoreNetworkArn: str = ...,
    DryRun: bool = ...,
    DestinationCidrBlock: str = ...,
    GatewayId: str = ...,
    DestinationIpv6CidrBlock: str = ...,
    EgressOnlyInternetGatewayId: str = ...,
    InstanceId: str = ...,
    NetworkInterfaceId: str = ...,
    VpcPeeringConnectionId: str = ...,
    NatGatewayId: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# replace_route method usage example with argument unpacking

kwargs: ReplaceRouteRequestTypeDef = {  # (1)
    "RouteTableId": ...,
}

parent.replace_route(**kwargs)
  1. See ReplaceRouteRequestTypeDef

replace_route_table_association#

Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC.

Type annotations and code completion for boto3.client("ec2").replace_route_table_association method. boto3 documentation

# replace_route_table_association method definition

def replace_route_table_association(
    self,
    *,
    AssociationId: str,
    RouteTableId: str,
    DryRun: bool = ...,
) -> ReplaceRouteTableAssociationResultTypeDef:  # (1)
    ...
  1. See ReplaceRouteTableAssociationResultTypeDef
# replace_route_table_association method usage example with argument unpacking

kwargs: ReplaceRouteTableAssociationRequestTypeDef = {  # (1)
    "AssociationId": ...,
    "RouteTableId": ...,
}

parent.replace_route_table_association(**kwargs)
  1. See ReplaceRouteTableAssociationRequestTypeDef

replace_transit_gateway_route#

Replaces the specified route in the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").replace_transit_gateway_route method. boto3 documentation

# replace_transit_gateway_route method definition

def replace_transit_gateway_route(
    self,
    *,
    DestinationCidrBlock: str,
    TransitGatewayRouteTableId: str,
    TransitGatewayAttachmentId: str = ...,
    Blackhole: bool = ...,
    DryRun: bool = ...,
) -> ReplaceTransitGatewayRouteResultTypeDef:  # (1)
    ...
  1. See ReplaceTransitGatewayRouteResultTypeDef
# replace_transit_gateway_route method usage example with argument unpacking

kwargs: ReplaceTransitGatewayRouteRequestTypeDef = {  # (1)
    "DestinationCidrBlock": ...,
    "TransitGatewayRouteTableId": ...,
}

parent.replace_transit_gateway_route(**kwargs)
  1. See ReplaceTransitGatewayRouteRequestTypeDef

replace_vpn_tunnel#

Trigger replacement of specified VPN tunnel.

Type annotations and code completion for boto3.client("ec2").replace_vpn_tunnel method. boto3 documentation

# replace_vpn_tunnel method definition

def replace_vpn_tunnel(
    self,
    *,
    VpnConnectionId: str,
    VpnTunnelOutsideIpAddress: str,
    ApplyPendingMaintenance: bool = ...,
    DryRun: bool = ...,
) -> ReplaceVpnTunnelResultTypeDef:  # (1)
    ...
  1. See ReplaceVpnTunnelResultTypeDef
# replace_vpn_tunnel method usage example with argument unpacking

kwargs: ReplaceVpnTunnelRequestTypeDef = {  # (1)
    "VpnConnectionId": ...,
    "VpnTunnelOutsideIpAddress": ...,
}

parent.replace_vpn_tunnel(**kwargs)
  1. See ReplaceVpnTunnelRequestTypeDef

report_instance_status#

Submits feedback about the status of an instance.

Type annotations and code completion for boto3.client("ec2").report_instance_status method. boto3 documentation

# report_instance_status method definition

def report_instance_status(
    self,
    *,
    Instances: Sequence[str],
    Status: ReportStatusTypeType,  # (1)
    ReasonCodes: Sequence[ReportInstanceReasonCodesType],  # (2)
    DryRun: bool = ...,
    StartTime: TimestampTypeDef = ...,
    EndTime: TimestampTypeDef = ...,
    Description: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (3)
    ...
  1. See ReportStatusTypeType
  2. See ReportInstanceReasonCodesType
  3. See EmptyResponseMetadataTypeDef
# report_instance_status method usage example with argument unpacking

kwargs: ReportInstanceStatusRequestTypeDef = {  # (1)
    "Instances": ...,
    "Status": ...,
    "ReasonCodes": ...,
}

parent.report_instance_status(**kwargs)
  1. See ReportInstanceStatusRequestTypeDef

request_spot_fleet#

Creates a Spot Fleet request.

Type annotations and code completion for boto3.client("ec2").request_spot_fleet method. boto3 documentation

# request_spot_fleet method definition

def request_spot_fleet(
    self,
    *,
    SpotFleetRequestConfig: SpotFleetRequestConfigDataUnionTypeDef,  # (1)
    DryRun: bool = ...,
) -> RequestSpotFleetResponseTypeDef:  # (2)
    ...
  1. See SpotFleetRequestConfigDataTypeDef SpotFleetRequestConfigDataOutputTypeDef
  2. See RequestSpotFleetResponseTypeDef
# request_spot_fleet method usage example with argument unpacking

kwargs: RequestSpotFleetRequestTypeDef = {  # (1)
    "SpotFleetRequestConfig": ...,
}

parent.request_spot_fleet(**kwargs)
  1. See RequestSpotFleetRequestTypeDef

request_spot_instances#

Creates a Spot Instance request.

Type annotations and code completion for boto3.client("ec2").request_spot_instances method. boto3 documentation

# request_spot_instances method definition

def request_spot_instances(
    self,
    *,
    LaunchSpecification: RequestSpotLaunchSpecificationTypeDef = ...,  # (1)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (2)
    InstanceInterruptionBehavior: InstanceInterruptionBehaviorType = ...,  # (3)
    DryRun: bool = ...,
    SpotPrice: str = ...,
    ClientToken: str = ...,
    InstanceCount: int = ...,
    Type: SpotInstanceTypeType = ...,  # (4)
    ValidFrom: TimestampTypeDef = ...,
    ValidUntil: TimestampTypeDef = ...,
    LaunchGroup: str = ...,
    AvailabilityZoneGroup: str = ...,
    BlockDurationMinutes: int = ...,
) -> RequestSpotInstancesResultTypeDef:  # (5)
    ...
  1. See RequestSpotLaunchSpecificationTypeDef
  2. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  3. See InstanceInterruptionBehaviorType
  4. See SpotInstanceTypeType
  5. See RequestSpotInstancesResultTypeDef
# request_spot_instances method usage example with argument unpacking

kwargs: RequestSpotInstancesRequestTypeDef = {  # (1)
    "LaunchSpecification": ...,
}

parent.request_spot_instances(**kwargs)
  1. See RequestSpotInstancesRequestTypeDef

reset_address_attribute#

Resets the attribute of the specified IP address.

Type annotations and code completion for boto3.client("ec2").reset_address_attribute method. boto3 documentation

# reset_address_attribute method definition

def reset_address_attribute(
    self,
    *,
    AllocationId: str,
    Attribute: AddressAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> ResetAddressAttributeResultTypeDef:  # (2)
    ...
  1. See AddressAttributeNameType
  2. See ResetAddressAttributeResultTypeDef
# reset_address_attribute method usage example with argument unpacking

kwargs: ResetAddressAttributeRequestTypeDef = {  # (1)
    "AllocationId": ...,
    "Attribute": ...,
}

parent.reset_address_attribute(**kwargs)
  1. See ResetAddressAttributeRequestTypeDef

reset_ebs_default_kms_key_id#

Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.

Type annotations and code completion for boto3.client("ec2").reset_ebs_default_kms_key_id method. boto3 documentation

# reset_ebs_default_kms_key_id method definition

def reset_ebs_default_kms_key_id(
    self,
    *,
    DryRun: bool = ...,
) -> ResetEbsDefaultKmsKeyIdResultTypeDef:  # (1)
    ...
  1. See ResetEbsDefaultKmsKeyIdResultTypeDef
# reset_ebs_default_kms_key_id method usage example with argument unpacking

kwargs: ResetEbsDefaultKmsKeyIdRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.reset_ebs_default_kms_key_id(**kwargs)
  1. See ResetEbsDefaultKmsKeyIdRequestTypeDef

reset_fpga_image_attribute#

Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value.

Type annotations and code completion for boto3.client("ec2").reset_fpga_image_attribute method. boto3 documentation

# reset_fpga_image_attribute method definition

def reset_fpga_image_attribute(
    self,
    *,
    FpgaImageId: str,
    DryRun: bool = ...,
    Attribute: ResetFpgaImageAttributeNameType = ...,  # (1)
) -> ResetFpgaImageAttributeResultTypeDef:  # (2)
    ...
  1. See ResetFpgaImageAttributeNameType
  2. See ResetFpgaImageAttributeResultTypeDef
# reset_fpga_image_attribute method usage example with argument unpacking

kwargs: ResetFpgaImageAttributeRequestTypeDef = {  # (1)
    "FpgaImageId": ...,
}

parent.reset_fpga_image_attribute(**kwargs)
  1. See ResetFpgaImageAttributeRequestTypeDef

reset_image_attribute#

Resets an attribute of an AMI to its default value.

Type annotations and code completion for boto3.client("ec2").reset_image_attribute method. boto3 documentation

# reset_image_attribute method definition

def reset_image_attribute(
    self,
    *,
    Attribute: ResetImageAttributeNameType,  # (1)
    ImageId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See ResetImageAttributeNameType
  2. See EmptyResponseMetadataTypeDef
# reset_image_attribute method usage example with argument unpacking

kwargs: ResetImageAttributeRequestTypeDef = {  # (1)
    "Attribute": ...,
    "ImageId": ...,
}

parent.reset_image_attribute(**kwargs)
  1. See ResetImageAttributeRequestTypeDef

reset_instance_attribute#

Resets an attribute of an instance to its default value.

Type annotations and code completion for boto3.client("ec2").reset_instance_attribute method. boto3 documentation

# reset_instance_attribute method definition

def reset_instance_attribute(
    self,
    *,
    InstanceId: str,
    Attribute: InstanceAttributeNameType,  # (1)
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See InstanceAttributeNameType
  2. See EmptyResponseMetadataTypeDef
# reset_instance_attribute method usage example with argument unpacking

kwargs: ResetInstanceAttributeRequestTypeDef = {  # (1)
    "InstanceId": ...,
    "Attribute": ...,
}

parent.reset_instance_attribute(**kwargs)
  1. See ResetInstanceAttributeRequestTypeDef

reset_network_interface_attribute#

Resets a network interface attribute.

Type annotations and code completion for boto3.client("ec2").reset_network_interface_attribute method. boto3 documentation

# reset_network_interface_attribute method definition

def reset_network_interface_attribute(
    self,
    *,
    NetworkInterfaceId: str,
    DryRun: bool = ...,
    SourceDestCheck: str = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# reset_network_interface_attribute method usage example with argument unpacking

kwargs: ResetNetworkInterfaceAttributeRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.reset_network_interface_attribute(**kwargs)
  1. See ResetNetworkInterfaceAttributeRequestTypeDef

reset_snapshot_attribute#

Resets permission settings for the specified snapshot.

Type annotations and code completion for boto3.client("ec2").reset_snapshot_attribute method. boto3 documentation

# reset_snapshot_attribute method definition

def reset_snapshot_attribute(
    self,
    *,
    Attribute: SnapshotAttributeNameType,  # (1)
    SnapshotId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (2)
    ...
  1. See SnapshotAttributeNameType
  2. See EmptyResponseMetadataTypeDef
# reset_snapshot_attribute method usage example with argument unpacking

kwargs: ResetSnapshotAttributeRequestTypeDef = {  # (1)
    "Attribute": ...,
    "SnapshotId": ...,
}

parent.reset_snapshot_attribute(**kwargs)
  1. See ResetSnapshotAttributeRequestTypeDef

restore_address_to_classic#

This action is deprecated.

Type annotations and code completion for boto3.client("ec2").restore_address_to_classic method. boto3 documentation

# restore_address_to_classic method definition

def restore_address_to_classic(
    self,
    *,
    PublicIp: str,
    DryRun: bool = ...,
) -> RestoreAddressToClassicResultTypeDef:  # (1)
    ...
  1. See RestoreAddressToClassicResultTypeDef
# restore_address_to_classic method usage example with argument unpacking

kwargs: RestoreAddressToClassicRequestTypeDef = {  # (1)
    "PublicIp": ...,
}

parent.restore_address_to_classic(**kwargs)
  1. See RestoreAddressToClassicRequestTypeDef

restore_image_from_recycle_bin#

Restores an AMI from the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").restore_image_from_recycle_bin method. boto3 documentation

# restore_image_from_recycle_bin method definition

def restore_image_from_recycle_bin(
    self,
    *,
    ImageId: str,
    DryRun: bool = ...,
) -> RestoreImageFromRecycleBinResultTypeDef:  # (1)
    ...
  1. See RestoreImageFromRecycleBinResultTypeDef
# restore_image_from_recycle_bin method usage example with argument unpacking

kwargs: RestoreImageFromRecycleBinRequestTypeDef = {  # (1)
    "ImageId": ...,
}

parent.restore_image_from_recycle_bin(**kwargs)
  1. See RestoreImageFromRecycleBinRequestTypeDef

restore_managed_prefix_list_version#

Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.

Type annotations and code completion for boto3.client("ec2").restore_managed_prefix_list_version method. boto3 documentation

# restore_managed_prefix_list_version method definition

def restore_managed_prefix_list_version(
    self,
    *,
    PrefixListId: str,
    PreviousVersion: int,
    CurrentVersion: int,
    DryRun: bool = ...,
) -> RestoreManagedPrefixListVersionResultTypeDef:  # (1)
    ...
  1. See RestoreManagedPrefixListVersionResultTypeDef
# restore_managed_prefix_list_version method usage example with argument unpacking

kwargs: RestoreManagedPrefixListVersionRequestTypeDef = {  # (1)
    "PrefixListId": ...,
    "PreviousVersion": ...,
    "CurrentVersion": ...,
}

parent.restore_managed_prefix_list_version(**kwargs)
  1. See RestoreManagedPrefixListVersionRequestTypeDef

restore_snapshot_from_recycle_bin#

Restores a snapshot from the Recycle Bin.

Type annotations and code completion for boto3.client("ec2").restore_snapshot_from_recycle_bin method. boto3 documentation

# restore_snapshot_from_recycle_bin method definition

def restore_snapshot_from_recycle_bin(
    self,
    *,
    SnapshotId: str,
    DryRun: bool = ...,
) -> RestoreSnapshotFromRecycleBinResultTypeDef:  # (1)
    ...
  1. See RestoreSnapshotFromRecycleBinResultTypeDef
# restore_snapshot_from_recycle_bin method usage example with argument unpacking

kwargs: RestoreSnapshotFromRecycleBinRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.restore_snapshot_from_recycle_bin(**kwargs)
  1. See RestoreSnapshotFromRecycleBinRequestTypeDef

restore_snapshot_tier#

Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.

Type annotations and code completion for boto3.client("ec2").restore_snapshot_tier method. boto3 documentation

# restore_snapshot_tier method definition

def restore_snapshot_tier(
    self,
    *,
    SnapshotId: str,
    TemporaryRestoreDays: int = ...,
    PermanentRestore: bool = ...,
    DryRun: bool = ...,
) -> RestoreSnapshotTierResultTypeDef:  # (1)
    ...
  1. See RestoreSnapshotTierResultTypeDef
# restore_snapshot_tier method usage example with argument unpacking

kwargs: RestoreSnapshotTierRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.restore_snapshot_tier(**kwargs)
  1. See RestoreSnapshotTierRequestTypeDef

revoke_client_vpn_ingress#

Removes an ingress authorization rule from a Client VPN endpoint.

Type annotations and code completion for boto3.client("ec2").revoke_client_vpn_ingress method. boto3 documentation

# revoke_client_vpn_ingress method definition

def revoke_client_vpn_ingress(
    self,
    *,
    ClientVpnEndpointId: str,
    TargetNetworkCidr: str,
    AccessGroupId: str = ...,
    RevokeAllGroups: bool = ...,
    DryRun: bool = ...,
) -> RevokeClientVpnIngressResultTypeDef:  # (1)
    ...
  1. See RevokeClientVpnIngressResultTypeDef
# revoke_client_vpn_ingress method usage example with argument unpacking

kwargs: RevokeClientVpnIngressRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
    "TargetNetworkCidr": ...,
}

parent.revoke_client_vpn_ingress(**kwargs)
  1. See RevokeClientVpnIngressRequestTypeDef

revoke_security_group_egress#

Removes the specified outbound (egress) rules from the specified security group.

Type annotations and code completion for boto3.client("ec2").revoke_security_group_egress method. boto3 documentation

# revoke_security_group_egress method definition

def revoke_security_group_egress(
    self,
    *,
    GroupId: str,
    SecurityGroupRuleIds: Sequence[str] = ...,
    DryRun: bool = ...,
    SourceSecurityGroupName: str = ...,
    SourceSecurityGroupOwnerId: str = ...,
    IpProtocol: str = ...,
    FromPort: int = ...,
    ToPort: int = ...,
    CidrIp: str = ...,
    IpPermissions: Sequence[IpPermissionUnionTypeDef] = ...,  # (1)
) -> RevokeSecurityGroupEgressResultTypeDef:  # (2)
    ...
  1. See IpPermissionTypeDef IpPermissionOutputTypeDef
  2. See RevokeSecurityGroupEgressResultTypeDef
# revoke_security_group_egress method usage example with argument unpacking

kwargs: RevokeSecurityGroupEgressRequestTypeDef = {  # (1)
    "GroupId": ...,
}

parent.revoke_security_group_egress(**kwargs)
  1. See RevokeSecurityGroupEgressRequestTypeDef

revoke_security_group_ingress#

Removes the specified inbound (ingress) rules from a security group.

Type annotations and code completion for boto3.client("ec2").revoke_security_group_ingress method. boto3 documentation

# revoke_security_group_ingress method definition

def revoke_security_group_ingress(
    self,
    *,
    CidrIp: str = ...,
    FromPort: int = ...,
    GroupId: str = ...,
    GroupName: str = ...,
    IpPermissions: Sequence[IpPermissionUnionTypeDef] = ...,  # (1)
    IpProtocol: str = ...,
    SourceSecurityGroupName: str = ...,
    SourceSecurityGroupOwnerId: str = ...,
    ToPort: int = ...,
    SecurityGroupRuleIds: Sequence[str] = ...,
    DryRun: bool = ...,
) -> RevokeSecurityGroupIngressResultTypeDef:  # (2)
    ...
  1. See IpPermissionTypeDef IpPermissionOutputTypeDef
  2. See RevokeSecurityGroupIngressResultTypeDef
# revoke_security_group_ingress method usage example with argument unpacking

kwargs: RevokeSecurityGroupIngressRequestTypeDef = {  # (1)
    "CidrIp": ...,
}

parent.revoke_security_group_ingress(**kwargs)
  1. See RevokeSecurityGroupIngressRequestTypeDef

run_instances#

Launches the specified number of instances using an AMI for which you have permissions.

Type annotations and code completion for boto3.client("ec2").run_instances method. boto3 documentation

# run_instances method definition

def run_instances(
    self,
    *,
    MaxCount: int,
    MinCount: int,
    BlockDeviceMappings: Sequence[BlockDeviceMappingTypeDef] = ...,  # (1)
    ImageId: str = ...,
    InstanceType: InstanceTypeType = ...,  # (2)
    Ipv6AddressCount: int = ...,
    Ipv6Addresses: Sequence[InstanceIpv6AddressTypeDef] = ...,  # (3)
    KernelId: str = ...,
    KeyName: str = ...,
    Monitoring: RunInstancesMonitoringEnabledTypeDef = ...,  # (4)
    Placement: PlacementTypeDef = ...,  # (5)
    RamdiskId: str = ...,
    SecurityGroupIds: Sequence[str] = ...,
    SecurityGroups: Sequence[str] = ...,
    SubnetId: str = ...,
    UserData: str = ...,
    ElasticGpuSpecification: Sequence[ElasticGpuSpecificationTypeDef] = ...,  # (6)
    ElasticInferenceAccelerators: Sequence[ElasticInferenceAcceleratorTypeDef] = ...,  # (7)
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (8)
    LaunchTemplate: LaunchTemplateSpecificationTypeDef = ...,  # (9)
    InstanceMarketOptions: InstanceMarketOptionsRequestTypeDef = ...,  # (10)
    CreditSpecification: CreditSpecificationRequestTypeDef = ...,  # (11)
    CpuOptions: CpuOptionsRequestTypeDef = ...,  # (12)
    CapacityReservationSpecification: CapacityReservationSpecificationTypeDef = ...,  # (13)
    HibernationOptions: HibernationOptionsRequestTypeDef = ...,  # (14)
    LicenseSpecifications: Sequence[LicenseConfigurationRequestTypeDef] = ...,  # (15)
    MetadataOptions: InstanceMetadataOptionsRequestTypeDef = ...,  # (16)
    EnclaveOptions: EnclaveOptionsRequestTypeDef = ...,  # (17)
    PrivateDnsNameOptions: PrivateDnsNameOptionsRequestTypeDef = ...,  # (18)
    MaintenanceOptions: InstanceMaintenanceOptionsRequestTypeDef = ...,  # (19)
    DisableApiStop: bool = ...,
    EnablePrimaryIpv6: bool = ...,
    NetworkPerformanceOptions: InstanceNetworkPerformanceOptionsRequestTypeDef = ...,  # (20)
    Operator: OperatorRequestTypeDef = ...,  # (21)
    DryRun: bool = ...,
    DisableApiTermination: bool = ...,
    InstanceInitiatedShutdownBehavior: ShutdownBehaviorType = ...,  # (22)
    PrivateIpAddress: str = ...,
    ClientToken: str = ...,
    AdditionalInfo: str = ...,
    NetworkInterfaces: Sequence[InstanceNetworkInterfaceSpecificationUnionTypeDef] = ...,  # (23)
    IamInstanceProfile: IamInstanceProfileSpecificationTypeDef = ...,  # (24)
    EbsOptimized: bool = ...,
) -> ReservationResponseTypeDef:  # (25)
    ...
  1. See BlockDeviceMappingTypeDef
  2. See InstanceTypeType
  3. See InstanceIpv6AddressTypeDef
  4. See RunInstancesMonitoringEnabledTypeDef
  5. See PlacementTypeDef
  6. See ElasticGpuSpecificationTypeDef
  7. See ElasticInferenceAcceleratorTypeDef
  8. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  9. See LaunchTemplateSpecificationTypeDef
  10. See InstanceMarketOptionsRequestTypeDef
  11. See CreditSpecificationRequestTypeDef
  12. See CpuOptionsRequestTypeDef
  13. See CapacityReservationSpecificationTypeDef
  14. See HibernationOptionsRequestTypeDef
  15. See LicenseConfigurationRequestTypeDef
  16. See InstanceMetadataOptionsRequestTypeDef
  17. See EnclaveOptionsRequestTypeDef
  18. See PrivateDnsNameOptionsRequestTypeDef
  19. See InstanceMaintenanceOptionsRequestTypeDef
  20. See InstanceNetworkPerformanceOptionsRequestTypeDef
  21. See OperatorRequestTypeDef
  22. See ShutdownBehaviorType
  23. See InstanceNetworkInterfaceSpecificationTypeDef InstanceNetworkInterfaceSpecificationOutputTypeDef
  24. See IamInstanceProfileSpecificationTypeDef
  25. See ReservationResponseTypeDef
# run_instances method usage example with argument unpacking

kwargs: RunInstancesRequestTypeDef = {  # (1)
    "MaxCount": ...,
    "MinCount": ...,
}

parent.run_instances(**kwargs)
  1. See RunInstancesRequestTypeDef

run_scheduled_instances#

Launches the specified Scheduled Instances.

Type annotations and code completion for boto3.client("ec2").run_scheduled_instances method. boto3 documentation

# run_scheduled_instances method definition

def run_scheduled_instances(
    self,
    *,
    LaunchSpecification: ScheduledInstancesLaunchSpecificationTypeDef,  # (1)
    ScheduledInstanceId: str,
    ClientToken: str = ...,
    DryRun: bool = ...,
    InstanceCount: int = ...,
) -> RunScheduledInstancesResultTypeDef:  # (2)
    ...
  1. See ScheduledInstancesLaunchSpecificationTypeDef
  2. See RunScheduledInstancesResultTypeDef
# run_scheduled_instances method usage example with argument unpacking

kwargs: RunScheduledInstancesRequestTypeDef = {  # (1)
    "LaunchSpecification": ...,
    "ScheduledInstanceId": ...,
}

parent.run_scheduled_instances(**kwargs)
  1. See RunScheduledInstancesRequestTypeDef

search_local_gateway_routes#

Searches for routes in the specified local gateway route table.

Type annotations and code completion for boto3.client("ec2").search_local_gateway_routes method. boto3 documentation

# search_local_gateway_routes method definition

def search_local_gateway_routes(
    self,
    *,
    LocalGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> SearchLocalGatewayRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See SearchLocalGatewayRoutesResultTypeDef
# search_local_gateway_routes method usage example with argument unpacking

kwargs: SearchLocalGatewayRoutesRequestTypeDef = {  # (1)
    "LocalGatewayRouteTableId": ...,
}

parent.search_local_gateway_routes(**kwargs)
  1. See SearchLocalGatewayRoutesRequestTypeDef

search_transit_gateway_multicast_groups#

Searches one or more transit gateway multicast groups and returns the group membership information.

Type annotations and code completion for boto3.client("ec2").search_transit_gateway_multicast_groups method. boto3 documentation

# search_transit_gateway_multicast_groups method definition

def search_transit_gateway_multicast_groups(
    self,
    *,
    TransitGatewayMulticastDomainId: str,
    Filters: Sequence[FilterTypeDef] = ...,  # (1)
    MaxResults: int = ...,
    NextToken: str = ...,
    DryRun: bool = ...,
) -> SearchTransitGatewayMulticastGroupsResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See SearchTransitGatewayMulticastGroupsResultTypeDef
# search_transit_gateway_multicast_groups method usage example with argument unpacking

kwargs: SearchTransitGatewayMulticastGroupsRequestTypeDef = {  # (1)
    "TransitGatewayMulticastDomainId": ...,
}

parent.search_transit_gateway_multicast_groups(**kwargs)
  1. See SearchTransitGatewayMulticastGroupsRequestTypeDef

search_transit_gateway_routes#

Searches for routes in the specified transit gateway route table.

Type annotations and code completion for boto3.client("ec2").search_transit_gateway_routes method. boto3 documentation

# search_transit_gateway_routes method definition

def search_transit_gateway_routes(
    self,
    *,
    TransitGatewayRouteTableId: str,
    Filters: Sequence[FilterTypeDef],  # (1)
    MaxResults: int = ...,
    DryRun: bool = ...,
) -> SearchTransitGatewayRoutesResultTypeDef:  # (2)
    ...
  1. See FilterTypeDef
  2. See SearchTransitGatewayRoutesResultTypeDef
# search_transit_gateway_routes method usage example with argument unpacking

kwargs: SearchTransitGatewayRoutesRequestTypeDef = {  # (1)
    "TransitGatewayRouteTableId": ...,
    "Filters": ...,
}

parent.search_transit_gateway_routes(**kwargs)
  1. See SearchTransitGatewayRoutesRequestTypeDef

send_diagnostic_interrupt#

Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances).

Type annotations and code completion for boto3.client("ec2").send_diagnostic_interrupt method. boto3 documentation

# send_diagnostic_interrupt method definition

def send_diagnostic_interrupt(
    self,
    *,
    InstanceId: str,
    DryRun: bool = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# send_diagnostic_interrupt method usage example with argument unpacking

kwargs: SendDiagnosticInterruptRequestTypeDef = {  # (1)
    "InstanceId": ...,
}

parent.send_diagnostic_interrupt(**kwargs)
  1. See SendDiagnosticInterruptRequestTypeDef

start_declarative_policies_report#

Generates an account status report.

Type annotations and code completion for boto3.client("ec2").start_declarative_policies_report method. boto3 documentation

# start_declarative_policies_report method definition

def start_declarative_policies_report(
    self,
    *,
    S3Bucket: str,
    TargetId: str,
    DryRun: bool = ...,
    S3Prefix: str = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
) -> StartDeclarativePoliciesReportResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See StartDeclarativePoliciesReportResultTypeDef
# start_declarative_policies_report method usage example with argument unpacking

kwargs: StartDeclarativePoliciesReportRequestTypeDef = {  # (1)
    "S3Bucket": ...,
    "TargetId": ...,
}

parent.start_declarative_policies_report(**kwargs)
  1. See StartDeclarativePoliciesReportRequestTypeDef

start_instances#

Starts an Amazon EBS-backed instance that you've previously stopped.

Type annotations and code completion for boto3.client("ec2").start_instances method. boto3 documentation

# start_instances method definition

def start_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    AdditionalInfo: str = ...,
    DryRun: bool = ...,
) -> StartInstancesResultTypeDef:  # (1)
    ...
  1. See StartInstancesResultTypeDef
# start_instances method usage example with argument unpacking

kwargs: StartInstancesRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.start_instances(**kwargs)
  1. See StartInstancesRequestTypeDef

start_network_insights_access_scope_analysis#

Starts analyzing the specified Network Access Scope.

Type annotations and code completion for boto3.client("ec2").start_network_insights_access_scope_analysis method. boto3 documentation

# start_network_insights_access_scope_analysis method definition

def start_network_insights_access_scope_analysis(
    self,
    *,
    NetworkInsightsAccessScopeId: str,
    ClientToken: str,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
) -> StartNetworkInsightsAccessScopeAnalysisResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See StartNetworkInsightsAccessScopeAnalysisResultTypeDef
# start_network_insights_access_scope_analysis method usage example with argument unpacking

kwargs: StartNetworkInsightsAccessScopeAnalysisRequestTypeDef = {  # (1)
    "NetworkInsightsAccessScopeId": ...,
    "ClientToken": ...,
}

parent.start_network_insights_access_scope_analysis(**kwargs)
  1. See StartNetworkInsightsAccessScopeAnalysisRequestTypeDef

start_network_insights_analysis#

Starts analyzing the specified path.

Type annotations and code completion for boto3.client("ec2").start_network_insights_analysis method. boto3 documentation

# start_network_insights_analysis method definition

def start_network_insights_analysis(
    self,
    *,
    NetworkInsightsPathId: str,
    ClientToken: str,
    AdditionalAccounts: Sequence[str] = ...,
    FilterInArns: Sequence[str] = ...,
    DryRun: bool = ...,
    TagSpecifications: Sequence[TagSpecificationUnionTypeDef] = ...,  # (1)
) -> StartNetworkInsightsAnalysisResultTypeDef:  # (2)
    ...
  1. See TagSpecificationTypeDef TagSpecificationOutputTypeDef
  2. See StartNetworkInsightsAnalysisResultTypeDef
# start_network_insights_analysis method usage example with argument unpacking

kwargs: StartNetworkInsightsAnalysisRequestTypeDef = {  # (1)
    "NetworkInsightsPathId": ...,
    "ClientToken": ...,
}

parent.start_network_insights_analysis(**kwargs)
  1. See StartNetworkInsightsAnalysisRequestTypeDef

start_vpc_endpoint_service_private_dns_verification#

Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

Type annotations and code completion for boto3.client("ec2").start_vpc_endpoint_service_private_dns_verification method. boto3 documentation

# start_vpc_endpoint_service_private_dns_verification method definition

def start_vpc_endpoint_service_private_dns_verification(
    self,
    *,
    ServiceId: str,
    DryRun: bool = ...,
) -> StartVpcEndpointServicePrivateDnsVerificationResultTypeDef:  # (1)
    ...
  1. See StartVpcEndpointServicePrivateDnsVerificationResultTypeDef
# start_vpc_endpoint_service_private_dns_verification method usage example with argument unpacking

kwargs: StartVpcEndpointServicePrivateDnsVerificationRequestTypeDef = {  # (1)
    "ServiceId": ...,
}

parent.start_vpc_endpoint_service_private_dns_verification(**kwargs)
  1. See StartVpcEndpointServicePrivateDnsVerificationRequestTypeDef

stop_instances#

Stops an Amazon EBS-backed instance.

Type annotations and code completion for boto3.client("ec2").stop_instances method. boto3 documentation

# stop_instances method definition

def stop_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    Hibernate: bool = ...,
    DryRun: bool = ...,
    Force: bool = ...,
) -> StopInstancesResultTypeDef:  # (1)
    ...
  1. See StopInstancesResultTypeDef
# stop_instances method usage example with argument unpacking

kwargs: StopInstancesRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.stop_instances(**kwargs)
  1. See StopInstancesRequestTypeDef

terminate_client_vpn_connections#

Terminates active Client VPN endpoint connections.

Type annotations and code completion for boto3.client("ec2").terminate_client_vpn_connections method. boto3 documentation

# terminate_client_vpn_connections method definition

def terminate_client_vpn_connections(
    self,
    *,
    ClientVpnEndpointId: str,
    ConnectionId: str = ...,
    Username: str = ...,
    DryRun: bool = ...,
) -> TerminateClientVpnConnectionsResultTypeDef:  # (1)
    ...
  1. See TerminateClientVpnConnectionsResultTypeDef
# terminate_client_vpn_connections method usage example with argument unpacking

kwargs: TerminateClientVpnConnectionsRequestTypeDef = {  # (1)
    "ClientVpnEndpointId": ...,
}

parent.terminate_client_vpn_connections(**kwargs)
  1. See TerminateClientVpnConnectionsRequestTypeDef

terminate_instances#

Shuts down the specified instances.

Type annotations and code completion for boto3.client("ec2").terminate_instances method. boto3 documentation

# terminate_instances method definition

def terminate_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> TerminateInstancesResultTypeDef:  # (1)
    ...
  1. See TerminateInstancesResultTypeDef
# terminate_instances method usage example with argument unpacking

kwargs: TerminateInstancesRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.terminate_instances(**kwargs)
  1. See TerminateInstancesRequestTypeDef

unassign_ipv6_addresses#

Unassigns the specified IPv6 addresses or Prefix Delegation prefixes from a network interface.

Type annotations and code completion for boto3.client("ec2").unassign_ipv6_addresses method. boto3 documentation

# unassign_ipv6_addresses method definition

def unassign_ipv6_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    Ipv6Prefixes: Sequence[str] = ...,
    Ipv6Addresses: Sequence[str] = ...,
) -> UnassignIpv6AddressesResultTypeDef:  # (1)
    ...
  1. See UnassignIpv6AddressesResultTypeDef
# unassign_ipv6_addresses method usage example with argument unpacking

kwargs: UnassignIpv6AddressesRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.unassign_ipv6_addresses(**kwargs)
  1. See UnassignIpv6AddressesRequestTypeDef

unassign_private_ip_addresses#

Unassigns the specified secondary private IP addresses or IPv4 Prefix Delegation prefixes from a network interface.

Type annotations and code completion for boto3.client("ec2").unassign_private_ip_addresses method. boto3 documentation

# unassign_private_ip_addresses method definition

def unassign_private_ip_addresses(
    self,
    *,
    NetworkInterfaceId: str,
    Ipv4Prefixes: Sequence[str] = ...,
    PrivateIpAddresses: Sequence[str] = ...,
) -> EmptyResponseMetadataTypeDef:  # (1)
    ...
  1. See EmptyResponseMetadataTypeDef
# unassign_private_ip_addresses method usage example with argument unpacking

kwargs: UnassignPrivateIpAddressesRequestTypeDef = {  # (1)
    "NetworkInterfaceId": ...,
}

parent.unassign_private_ip_addresses(**kwargs)
  1. See UnassignPrivateIpAddressesRequestTypeDef

unassign_private_nat_gateway_address#

Unassigns secondary private IPv4 addresses from a private NAT gateway.

Type annotations and code completion for boto3.client("ec2").unassign_private_nat_gateway_address method. boto3 documentation

# unassign_private_nat_gateway_address method definition

def unassign_private_nat_gateway_address(
    self,
    *,
    NatGatewayId: str,
    PrivateIpAddresses: Sequence[str],
    MaxDrainDurationSeconds: int = ...,
    DryRun: bool = ...,
) -> UnassignPrivateNatGatewayAddressResultTypeDef:  # (1)
    ...
  1. See UnassignPrivateNatGatewayAddressResultTypeDef
# unassign_private_nat_gateway_address method usage example with argument unpacking

kwargs: UnassignPrivateNatGatewayAddressRequestTypeDef = {  # (1)
    "NatGatewayId": ...,
    "PrivateIpAddresses": ...,
}

parent.unassign_private_nat_gateway_address(**kwargs)
  1. See UnassignPrivateNatGatewayAddressRequestTypeDef

unlock_snapshot#

Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period.

Type annotations and code completion for boto3.client("ec2").unlock_snapshot method. boto3 documentation

# unlock_snapshot method definition

def unlock_snapshot(
    self,
    *,
    SnapshotId: str,
    DryRun: bool = ...,
) -> UnlockSnapshotResultTypeDef:  # (1)
    ...
  1. See UnlockSnapshotResultTypeDef
# unlock_snapshot method usage example with argument unpacking

kwargs: UnlockSnapshotRequestTypeDef = {  # (1)
    "SnapshotId": ...,
}

parent.unlock_snapshot(**kwargs)
  1. See UnlockSnapshotRequestTypeDef

unmonitor_instances#

Disables detailed monitoring for a running instance.

Type annotations and code completion for boto3.client("ec2").unmonitor_instances method. boto3 documentation

# unmonitor_instances method definition

def unmonitor_instances(
    self,
    *,
    InstanceIds: Sequence[str],
    DryRun: bool = ...,
) -> UnmonitorInstancesResultTypeDef:  # (1)
    ...
  1. See UnmonitorInstancesResultTypeDef
# unmonitor_instances method usage example with argument unpacking

kwargs: UnmonitorInstancesRequestTypeDef = {  # (1)
    "InstanceIds": ...,
}

parent.unmonitor_instances(**kwargs)
  1. See UnmonitorInstancesRequestTypeDef

update_security_group_rule_descriptions_egress#

Updates the description of an egress (outbound) security group rule.

Type annotations and code completion for boto3.client("ec2").update_security_group_rule_descriptions_egress method. boto3 documentation

# update_security_group_rule_descriptions_egress method definition

def update_security_group_rule_descriptions_egress(
    self,
    *,
    DryRun: bool = ...,
    GroupId: str = ...,
    GroupName: str = ...,
    IpPermissions: Sequence[IpPermissionUnionTypeDef] = ...,  # (1)
    SecurityGroupRuleDescriptions: Sequence[SecurityGroupRuleDescriptionTypeDef] = ...,  # (2)
) -> UpdateSecurityGroupRuleDescriptionsEgressResultTypeDef:  # (3)
    ...
  1. See IpPermissionTypeDef IpPermissionOutputTypeDef
  2. See SecurityGroupRuleDescriptionTypeDef
  3. See UpdateSecurityGroupRuleDescriptionsEgressResultTypeDef
# update_security_group_rule_descriptions_egress method usage example with argument unpacking

kwargs: UpdateSecurityGroupRuleDescriptionsEgressRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.update_security_group_rule_descriptions_egress(**kwargs)
  1. See UpdateSecurityGroupRuleDescriptionsEgressRequestTypeDef

update_security_group_rule_descriptions_ingress#

Updates the description of an ingress (inbound) security group rule.

Type annotations and code completion for boto3.client("ec2").update_security_group_rule_descriptions_ingress method. boto3 documentation

# update_security_group_rule_descriptions_ingress method definition

def update_security_group_rule_descriptions_ingress(
    self,
    *,
    DryRun: bool = ...,
    GroupId: str = ...,
    GroupName: str = ...,
    IpPermissions: Sequence[IpPermissionUnionTypeDef] = ...,  # (1)
    SecurityGroupRuleDescriptions: Sequence[SecurityGroupRuleDescriptionTypeDef] = ...,  # (2)
) -> UpdateSecurityGroupRuleDescriptionsIngressResultTypeDef:  # (3)
    ...
  1. See IpPermissionTypeDef IpPermissionOutputTypeDef
  2. See SecurityGroupRuleDescriptionTypeDef
  3. See UpdateSecurityGroupRuleDescriptionsIngressResultTypeDef
# update_security_group_rule_descriptions_ingress method usage example with argument unpacking

kwargs: UpdateSecurityGroupRuleDescriptionsIngressRequestTypeDef = {  # (1)
    "DryRun": ...,
}

parent.update_security_group_rule_descriptions_ingress(**kwargs)
  1. See UpdateSecurityGroupRuleDescriptionsIngressRequestTypeDef

withdraw_byoip_cidr#

Stops advertising an address range that is provisioned as an address pool.

Type annotations and code completion for boto3.client("ec2").withdraw_byoip_cidr method. boto3 documentation

# withdraw_byoip_cidr method definition

def withdraw_byoip_cidr(
    self,
    *,
    Cidr: str,
    DryRun: bool = ...,
) -> WithdrawByoipCidrResultTypeDef:  # (1)
    ...
  1. See WithdrawByoipCidrResultTypeDef
# withdraw_byoip_cidr method usage example with argument unpacking

kwargs: WithdrawByoipCidrRequestTypeDef = {  # (1)
    "Cidr": ...,
}

parent.withdraw_byoip_cidr(**kwargs)
  1. See WithdrawByoipCidrRequestTypeDef

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.