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