How to use describe_ipam_scopes method in localstack

Best Python code snippet using localstack_python

__init__.pyi

Source:__init__.pyi Github

copy

Full Screen

1"""2Main interface for ec2 service.3Usage::4 ```python5 import boto36 from mypy_boto3_ec2 import (7 BundleTaskCompleteWaiter,8 Client,9 ConversionTaskCancelledWaiter,10 ConversionTaskCompletedWaiter,11 ConversionTaskDeletedWaiter,12 CustomerGatewayAvailableWaiter,13 DescribeAddressesAttributePaginator,14 DescribeByoipCidrsPaginator,15 DescribeCapacityReservationFleetsPaginator,16 DescribeCapacityReservationsPaginator,17 DescribeCarrierGatewaysPaginator,18 DescribeClassicLinkInstancesPaginator,19 DescribeClientVpnAuthorizationRulesPaginator,20 DescribeClientVpnConnectionsPaginator,21 DescribeClientVpnEndpointsPaginator,22 DescribeClientVpnRoutesPaginator,23 DescribeClientVpnTargetNetworksPaginator,24 DescribeCoipPoolsPaginator,25 DescribeDhcpOptionsPaginator,26 DescribeEgressOnlyInternetGatewaysPaginator,27 DescribeExportImageTasksPaginator,28 DescribeFastLaunchImagesPaginator,29 DescribeFastSnapshotRestoresPaginator,30 DescribeFleetsPaginator,31 DescribeFlowLogsPaginator,32 DescribeFpgaImagesPaginator,33 DescribeHostReservationOfferingsPaginator,34 DescribeHostReservationsPaginator,35 DescribeHostsPaginator,36 DescribeIamInstanceProfileAssociationsPaginator,37 DescribeImportImageTasksPaginator,38 DescribeImportSnapshotTasksPaginator,39 DescribeInstanceCreditSpecificationsPaginator,40 DescribeInstanceEventWindowsPaginator,41 DescribeInstanceStatusPaginator,42 DescribeInstanceTypeOfferingsPaginator,43 DescribeInstanceTypesPaginator,44 DescribeInstancesPaginator,45 DescribeInternetGatewaysPaginator,46 DescribeIpamPoolsPaginator,47 DescribeIpamScopesPaginator,48 DescribeIpamsPaginator,49 DescribeIpv6PoolsPaginator,50 DescribeLaunchTemplateVersionsPaginator,51 DescribeLaunchTemplatesPaginator,52 DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator,53 DescribeLocalGatewayRouteTableVpcAssociationsPaginator,54 DescribeLocalGatewayRouteTablesPaginator,55 DescribeLocalGatewayVirtualInterfaceGroupsPaginator,56 DescribeLocalGatewayVirtualInterfacesPaginator,57 DescribeLocalGatewaysPaginator,58 DescribeManagedPrefixListsPaginator,59 DescribeMovingAddressesPaginator,60 DescribeNatGatewaysPaginator,61 DescribeNetworkAclsPaginator,62 DescribeNetworkInsightsAccessScopeAnalysesPaginator,63 DescribeNetworkInsightsAccessScopesPaginator,64 DescribeNetworkInsightsAnalysesPaginator,65 DescribeNetworkInsightsPathsPaginator,66 DescribeNetworkInterfacePermissionsPaginator,67 DescribeNetworkInterfacesPaginator,68 DescribePrefixListsPaginator,69 DescribePrincipalIdFormatPaginator,70 DescribePublicIpv4PoolsPaginator,71 DescribeReplaceRootVolumeTasksPaginator,72 DescribeReservedInstancesModificationsPaginator,73 DescribeReservedInstancesOfferingsPaginator,74 DescribeRouteTablesPaginator,75 DescribeScheduledInstanceAvailabilityPaginator,76 DescribeScheduledInstancesPaginator,77 DescribeSecurityGroupRulesPaginator,78 DescribeSecurityGroupsPaginator,79 DescribeSnapshotTierStatusPaginator,80 DescribeSnapshotsPaginator,81 DescribeSpotFleetInstancesPaginator,82 DescribeSpotFleetRequestsPaginator,83 DescribeSpotInstanceRequestsPaginator,84 DescribeSpotPriceHistoryPaginator,85 DescribeStaleSecurityGroupsPaginator,86 DescribeStoreImageTasksPaginator,87 DescribeSubnetsPaginator,88 DescribeTagsPaginator,89 DescribeTrafficMirrorFiltersPaginator,90 DescribeTrafficMirrorSessionsPaginator,91 DescribeTrafficMirrorTargetsPaginator,92 DescribeTransitGatewayAttachmentsPaginator,93 DescribeTransitGatewayConnectPeersPaginator,94 DescribeTransitGatewayConnectsPaginator,95 DescribeTransitGatewayMulticastDomainsPaginator,96 DescribeTransitGatewayPeeringAttachmentsPaginator,97 DescribeTransitGatewayPolicyTablesPaginator,98 DescribeTransitGatewayRouteTableAnnouncementsPaginator,99 DescribeTransitGatewayRouteTablesPaginator,100 DescribeTransitGatewayVpcAttachmentsPaginator,101 DescribeTransitGatewaysPaginator,102 DescribeTrunkInterfaceAssociationsPaginator,103 DescribeVolumeStatusPaginator,104 DescribeVolumesModificationsPaginator,105 DescribeVolumesPaginator,106 DescribeVpcClassicLinkDnsSupportPaginator,107 DescribeVpcEndpointConnectionNotificationsPaginator,108 DescribeVpcEndpointConnectionsPaginator,109 DescribeVpcEndpointServiceConfigurationsPaginator,110 DescribeVpcEndpointServicePermissionsPaginator,111 DescribeVpcEndpointServicesPaginator,112 DescribeVpcEndpointsPaginator,113 DescribeVpcPeeringConnectionsPaginator,114 DescribeVpcsPaginator,115 EC2Client,116 EC2ServiceResource,117 ExportTaskCancelledWaiter,118 ExportTaskCompletedWaiter,119 GetAssociatedIpv6PoolCidrsPaginator,120 GetGroupsForCapacityReservationPaginator,121 GetInstanceTypesFromInstanceRequirementsPaginator,122 GetIpamAddressHistoryPaginator,123 GetIpamPoolAllocationsPaginator,124 GetIpamPoolCidrsPaginator,125 GetIpamResourceCidrsPaginator,126 GetManagedPrefixListAssociationsPaginator,127 GetManagedPrefixListEntriesPaginator,128 GetSpotPlacementScoresPaginator,129 GetTransitGatewayAttachmentPropagationsPaginator,130 GetTransitGatewayMulticastDomainAssociationsPaginator,131 GetTransitGatewayPolicyTableAssociationsPaginator,132 GetTransitGatewayPrefixListReferencesPaginator,133 GetTransitGatewayRouteTableAssociationsPaginator,134 GetTransitGatewayRouteTablePropagationsPaginator,135 GetVpnConnectionDeviceTypesPaginator,136 ImageAvailableWaiter,137 ImageExistsWaiter,138 InstanceExistsWaiter,139 InstanceRunningWaiter,140 InstanceStatusOkWaiter,141 InstanceStoppedWaiter,142 InstanceTerminatedWaiter,143 InternetGatewayExistsWaiter,144 KeyPairExistsWaiter,145 ListImagesInRecycleBinPaginator,146 ListSnapshotsInRecycleBinPaginator,147 NatGatewayAvailableWaiter,148 NatGatewayDeletedWaiter,149 NetworkInterfaceAvailableWaiter,150 PasswordDataAvailableWaiter,151 SearchLocalGatewayRoutesPaginator,152 SearchTransitGatewayMulticastGroupsPaginator,153 SecurityGroupExistsWaiter,154 ServiceResource,155 SnapshotCompletedWaiter,156 SpotInstanceRequestFulfilledWaiter,157 SubnetAvailableWaiter,158 SystemStatusOkWaiter,159 VolumeAvailableWaiter,160 VolumeDeletedWaiter,161 VolumeInUseWaiter,162 VpcAvailableWaiter,163 VpcExistsWaiter,164 VpcPeeringConnectionDeletedWaiter,165 VpcPeeringConnectionExistsWaiter,166 VpnConnectionAvailableWaiter,167 VpnConnectionDeletedWaiter,168 )169 session = boto3.Session()170 client: EC2Client = boto3.client("ec2")171 session_client: EC2Client = session.client("ec2")172 resource: EC2ServiceResource = boto3.resource("ec2")173 session_resource: EC2ServiceResource = session.resource("ec2")174 bundle_task_complete_waiter: BundleTaskCompleteWaiter = client.get_waiter("bundle_task_complete")175 conversion_task_cancelled_waiter: ConversionTaskCancelledWaiter = client.get_waiter("conversion_task_cancelled")176 conversion_task_completed_waiter: ConversionTaskCompletedWaiter = client.get_waiter("conversion_task_completed")177 conversion_task_deleted_waiter: ConversionTaskDeletedWaiter = client.get_waiter("conversion_task_deleted")178 customer_gateway_available_waiter: CustomerGatewayAvailableWaiter = client.get_waiter("customer_gateway_available")179 export_task_cancelled_waiter: ExportTaskCancelledWaiter = client.get_waiter("export_task_cancelled")180 export_task_completed_waiter: ExportTaskCompletedWaiter = client.get_waiter("export_task_completed")181 image_available_waiter: ImageAvailableWaiter = client.get_waiter("image_available")182 image_exists_waiter: ImageExistsWaiter = client.get_waiter("image_exists")183 instance_exists_waiter: InstanceExistsWaiter = client.get_waiter("instance_exists")184 instance_running_waiter: InstanceRunningWaiter = client.get_waiter("instance_running")185 instance_status_ok_waiter: InstanceStatusOkWaiter = client.get_waiter("instance_status_ok")186 instance_stopped_waiter: InstanceStoppedWaiter = client.get_waiter("instance_stopped")187 instance_terminated_waiter: InstanceTerminatedWaiter = client.get_waiter("instance_terminated")188 internet_gateway_exists_waiter: InternetGatewayExistsWaiter = client.get_waiter("internet_gateway_exists")189 key_pair_exists_waiter: KeyPairExistsWaiter = client.get_waiter("key_pair_exists")190 nat_gateway_available_waiter: NatGatewayAvailableWaiter = client.get_waiter("nat_gateway_available")191 nat_gateway_deleted_waiter: NatGatewayDeletedWaiter = client.get_waiter("nat_gateway_deleted")192 network_interface_available_waiter: NetworkInterfaceAvailableWaiter = client.get_waiter("network_interface_available")193 password_data_available_waiter: PasswordDataAvailableWaiter = client.get_waiter("password_data_available")194 security_group_exists_waiter: SecurityGroupExistsWaiter = client.get_waiter("security_group_exists")195 snapshot_completed_waiter: SnapshotCompletedWaiter = client.get_waiter("snapshot_completed")196 spot_instance_request_fulfilled_waiter: SpotInstanceRequestFulfilledWaiter = client.get_waiter("spot_instance_request_fulfilled")197 subnet_available_waiter: SubnetAvailableWaiter = client.get_waiter("subnet_available")198 system_status_ok_waiter: SystemStatusOkWaiter = client.get_waiter("system_status_ok")199 volume_available_waiter: VolumeAvailableWaiter = client.get_waiter("volume_available")200 volume_deleted_waiter: VolumeDeletedWaiter = client.get_waiter("volume_deleted")201 volume_in_use_waiter: VolumeInUseWaiter = client.get_waiter("volume_in_use")202 vpc_available_waiter: VpcAvailableWaiter = client.get_waiter("vpc_available")203 vpc_exists_waiter: VpcExistsWaiter = client.get_waiter("vpc_exists")204 vpc_peering_connection_deleted_waiter: VpcPeeringConnectionDeletedWaiter = client.get_waiter("vpc_peering_connection_deleted")205 vpc_peering_connection_exists_waiter: VpcPeeringConnectionExistsWaiter = client.get_waiter("vpc_peering_connection_exists")206 vpn_connection_available_waiter: VpnConnectionAvailableWaiter = client.get_waiter("vpn_connection_available")207 vpn_connection_deleted_waiter: VpnConnectionDeletedWaiter = client.get_waiter("vpn_connection_deleted")208 describe_addresses_attribute_paginator: DescribeAddressesAttributePaginator = client.get_paginator("describe_addresses_attribute")209 describe_byoip_cidrs_paginator: DescribeByoipCidrsPaginator = client.get_paginator("describe_byoip_cidrs")210 describe_capacity_reservation_fleets_paginator: DescribeCapacityReservationFleetsPaginator = client.get_paginator("describe_capacity_reservation_fleets")211 describe_capacity_reservations_paginator: DescribeCapacityReservationsPaginator = client.get_paginator("describe_capacity_reservations")212 describe_carrier_gateways_paginator: DescribeCarrierGatewaysPaginator = client.get_paginator("describe_carrier_gateways")213 describe_classic_link_instances_paginator: DescribeClassicLinkInstancesPaginator = client.get_paginator("describe_classic_link_instances")214 describe_client_vpn_authorization_rules_paginator: DescribeClientVpnAuthorizationRulesPaginator = client.get_paginator("describe_client_vpn_authorization_rules")215 describe_client_vpn_connections_paginator: DescribeClientVpnConnectionsPaginator = client.get_paginator("describe_client_vpn_connections")216 describe_client_vpn_endpoints_paginator: DescribeClientVpnEndpointsPaginator = client.get_paginator("describe_client_vpn_endpoints")217 describe_client_vpn_routes_paginator: DescribeClientVpnRoutesPaginator = client.get_paginator("describe_client_vpn_routes")218 describe_client_vpn_target_networks_paginator: DescribeClientVpnTargetNetworksPaginator = client.get_paginator("describe_client_vpn_target_networks")219 describe_coip_pools_paginator: DescribeCoipPoolsPaginator = client.get_paginator("describe_coip_pools")220 describe_dhcp_options_paginator: DescribeDhcpOptionsPaginator = client.get_paginator("describe_dhcp_options")221 describe_egress_only_internet_gateways_paginator: DescribeEgressOnlyInternetGatewaysPaginator = client.get_paginator("describe_egress_only_internet_gateways")222 describe_export_image_tasks_paginator: DescribeExportImageTasksPaginator = client.get_paginator("describe_export_image_tasks")223 describe_fast_launch_images_paginator: DescribeFastLaunchImagesPaginator = client.get_paginator("describe_fast_launch_images")224 describe_fast_snapshot_restores_paginator: DescribeFastSnapshotRestoresPaginator = client.get_paginator("describe_fast_snapshot_restores")225 describe_fleets_paginator: DescribeFleetsPaginator = client.get_paginator("describe_fleets")226 describe_flow_logs_paginator: DescribeFlowLogsPaginator = client.get_paginator("describe_flow_logs")227 describe_fpga_images_paginator: DescribeFpgaImagesPaginator = client.get_paginator("describe_fpga_images")228 describe_host_reservation_offerings_paginator: DescribeHostReservationOfferingsPaginator = client.get_paginator("describe_host_reservation_offerings")229 describe_host_reservations_paginator: DescribeHostReservationsPaginator = client.get_paginator("describe_host_reservations")230 describe_hosts_paginator: DescribeHostsPaginator = client.get_paginator("describe_hosts")231 describe_iam_instance_profile_associations_paginator: DescribeIamInstanceProfileAssociationsPaginator = client.get_paginator("describe_iam_instance_profile_associations")232 describe_import_image_tasks_paginator: DescribeImportImageTasksPaginator = client.get_paginator("describe_import_image_tasks")233 describe_import_snapshot_tasks_paginator: DescribeImportSnapshotTasksPaginator = client.get_paginator("describe_import_snapshot_tasks")234 describe_instance_credit_specifications_paginator: DescribeInstanceCreditSpecificationsPaginator = client.get_paginator("describe_instance_credit_specifications")235 describe_instance_event_windows_paginator: DescribeInstanceEventWindowsPaginator = client.get_paginator("describe_instance_event_windows")236 describe_instance_status_paginator: DescribeInstanceStatusPaginator = client.get_paginator("describe_instance_status")237 describe_instance_type_offerings_paginator: DescribeInstanceTypeOfferingsPaginator = client.get_paginator("describe_instance_type_offerings")238 describe_instance_types_paginator: DescribeInstanceTypesPaginator = client.get_paginator("describe_instance_types")239 describe_instances_paginator: DescribeInstancesPaginator = client.get_paginator("describe_instances")240 describe_internet_gateways_paginator: DescribeInternetGatewaysPaginator = client.get_paginator("describe_internet_gateways")241 describe_ipam_pools_paginator: DescribeIpamPoolsPaginator = client.get_paginator("describe_ipam_pools")242 describe_ipam_scopes_paginator: DescribeIpamScopesPaginator = client.get_paginator("describe_ipam_scopes")243 describe_ipams_paginator: DescribeIpamsPaginator = client.get_paginator("describe_ipams")244 describe_ipv6_pools_paginator: DescribeIpv6PoolsPaginator = client.get_paginator("describe_ipv6_pools")245 describe_launch_template_versions_paginator: DescribeLaunchTemplateVersionsPaginator = client.get_paginator("describe_launch_template_versions")246 describe_launch_templates_paginator: DescribeLaunchTemplatesPaginator = client.get_paginator("describe_launch_templates")247 describe_local_gateway_route_table_virtual_interface_group_associations_paginator: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator = client.get_paginator("describe_local_gateway_route_table_virtual_interface_group_associations")248 describe_local_gateway_route_table_vpc_associations_paginator: DescribeLocalGatewayRouteTableVpcAssociationsPaginator = client.get_paginator("describe_local_gateway_route_table_vpc_associations")249 describe_local_gateway_route_tables_paginator: DescribeLocalGatewayRouteTablesPaginator = client.get_paginator("describe_local_gateway_route_tables")250 describe_local_gateway_virtual_interface_groups_paginator: DescribeLocalGatewayVirtualInterfaceGroupsPaginator = client.get_paginator("describe_local_gateway_virtual_interface_groups")251 describe_local_gateway_virtual_interfaces_paginator: DescribeLocalGatewayVirtualInterfacesPaginator = client.get_paginator("describe_local_gateway_virtual_interfaces")252 describe_local_gateways_paginator: DescribeLocalGatewaysPaginator = client.get_paginator("describe_local_gateways")253 describe_managed_prefix_lists_paginator: DescribeManagedPrefixListsPaginator = client.get_paginator("describe_managed_prefix_lists")254 describe_moving_addresses_paginator: DescribeMovingAddressesPaginator = client.get_paginator("describe_moving_addresses")255 describe_nat_gateways_paginator: DescribeNatGatewaysPaginator = client.get_paginator("describe_nat_gateways")256 describe_network_acls_paginator: DescribeNetworkAclsPaginator = client.get_paginator("describe_network_acls")257 describe_network_insights_access_scope_analyses_paginator: DescribeNetworkInsightsAccessScopeAnalysesPaginator = client.get_paginator("describe_network_insights_access_scope_analyses")258 describe_network_insights_access_scopes_paginator: DescribeNetworkInsightsAccessScopesPaginator = client.get_paginator("describe_network_insights_access_scopes")259 describe_network_insights_analyses_paginator: DescribeNetworkInsightsAnalysesPaginator = client.get_paginator("describe_network_insights_analyses")260 describe_network_insights_paths_paginator: DescribeNetworkInsightsPathsPaginator = client.get_paginator("describe_network_insights_paths")261 describe_network_interface_permissions_paginator: DescribeNetworkInterfacePermissionsPaginator = client.get_paginator("describe_network_interface_permissions")262 describe_network_interfaces_paginator: DescribeNetworkInterfacesPaginator = client.get_paginator("describe_network_interfaces")263 describe_prefix_lists_paginator: DescribePrefixListsPaginator = client.get_paginator("describe_prefix_lists")264 describe_principal_id_format_paginator: DescribePrincipalIdFormatPaginator = client.get_paginator("describe_principal_id_format")265 describe_public_ipv4_pools_paginator: DescribePublicIpv4PoolsPaginator = client.get_paginator("describe_public_ipv4_pools")266 describe_replace_root_volume_tasks_paginator: DescribeReplaceRootVolumeTasksPaginator = client.get_paginator("describe_replace_root_volume_tasks")267 describe_reserved_instances_modifications_paginator: DescribeReservedInstancesModificationsPaginator = client.get_paginator("describe_reserved_instances_modifications")268 describe_reserved_instances_offerings_paginator: DescribeReservedInstancesOfferingsPaginator = client.get_paginator("describe_reserved_instances_offerings")269 describe_route_tables_paginator: DescribeRouteTablesPaginator = client.get_paginator("describe_route_tables")270 describe_scheduled_instance_availability_paginator: DescribeScheduledInstanceAvailabilityPaginator = client.get_paginator("describe_scheduled_instance_availability")271 describe_scheduled_instances_paginator: DescribeScheduledInstancesPaginator = client.get_paginator("describe_scheduled_instances")272 describe_security_group_rules_paginator: DescribeSecurityGroupRulesPaginator = client.get_paginator("describe_security_group_rules")273 describe_security_groups_paginator: DescribeSecurityGroupsPaginator = client.get_paginator("describe_security_groups")274 describe_snapshot_tier_status_paginator: DescribeSnapshotTierStatusPaginator = client.get_paginator("describe_snapshot_tier_status")275 describe_snapshots_paginator: DescribeSnapshotsPaginator = client.get_paginator("describe_snapshots")276 describe_spot_fleet_instances_paginator: DescribeSpotFleetInstancesPaginator = client.get_paginator("describe_spot_fleet_instances")277 describe_spot_fleet_requests_paginator: DescribeSpotFleetRequestsPaginator = client.get_paginator("describe_spot_fleet_requests")278 describe_spot_instance_requests_paginator: DescribeSpotInstanceRequestsPaginator = client.get_paginator("describe_spot_instance_requests")279 describe_spot_price_history_paginator: DescribeSpotPriceHistoryPaginator = client.get_paginator("describe_spot_price_history")280 describe_stale_security_groups_paginator: DescribeStaleSecurityGroupsPaginator = client.get_paginator("describe_stale_security_groups")281 describe_store_image_tasks_paginator: DescribeStoreImageTasksPaginator = client.get_paginator("describe_store_image_tasks")282 describe_subnets_paginator: DescribeSubnetsPaginator = client.get_paginator("describe_subnets")283 describe_tags_paginator: DescribeTagsPaginator = client.get_paginator("describe_tags")284 describe_traffic_mirror_filters_paginator: DescribeTrafficMirrorFiltersPaginator = client.get_paginator("describe_traffic_mirror_filters")285 describe_traffic_mirror_sessions_paginator: DescribeTrafficMirrorSessionsPaginator = client.get_paginator("describe_traffic_mirror_sessions")286 describe_traffic_mirror_targets_paginator: DescribeTrafficMirrorTargetsPaginator = client.get_paginator("describe_traffic_mirror_targets")287 describe_transit_gateway_attachments_paginator: DescribeTransitGatewayAttachmentsPaginator = client.get_paginator("describe_transit_gateway_attachments")288 describe_transit_gateway_connect_peers_paginator: DescribeTransitGatewayConnectPeersPaginator = client.get_paginator("describe_transit_gateway_connect_peers")289 describe_transit_gateway_connects_paginator: DescribeTransitGatewayConnectsPaginator = client.get_paginator("describe_transit_gateway_connects")290 describe_transit_gateway_multicast_domains_paginator: DescribeTransitGatewayMulticastDomainsPaginator = client.get_paginator("describe_transit_gateway_multicast_domains")291 describe_transit_gateway_peering_attachments_paginator: DescribeTransitGatewayPeeringAttachmentsPaginator = client.get_paginator("describe_transit_gateway_peering_attachments")292 describe_transit_gateway_policy_tables_paginator: DescribeTransitGatewayPolicyTablesPaginator = client.get_paginator("describe_transit_gateway_policy_tables")293 describe_transit_gateway_route_table_announcements_paginator: DescribeTransitGatewayRouteTableAnnouncementsPaginator = client.get_paginator("describe_transit_gateway_route_table_announcements")294 describe_transit_gateway_route_tables_paginator: DescribeTransitGatewayRouteTablesPaginator = client.get_paginator("describe_transit_gateway_route_tables")295 describe_transit_gateway_vpc_attachments_paginator: DescribeTransitGatewayVpcAttachmentsPaginator = client.get_paginator("describe_transit_gateway_vpc_attachments")296 describe_transit_gateways_paginator: DescribeTransitGatewaysPaginator = client.get_paginator("describe_transit_gateways")297 describe_trunk_interface_associations_paginator: DescribeTrunkInterfaceAssociationsPaginator = client.get_paginator("describe_trunk_interface_associations")298 describe_volume_status_paginator: DescribeVolumeStatusPaginator = client.get_paginator("describe_volume_status")299 describe_volumes_paginator: DescribeVolumesPaginator = client.get_paginator("describe_volumes")300 describe_volumes_modifications_paginator: DescribeVolumesModificationsPaginator = client.get_paginator("describe_volumes_modifications")301 describe_vpc_classic_link_dns_support_paginator: DescribeVpcClassicLinkDnsSupportPaginator = client.get_paginator("describe_vpc_classic_link_dns_support")302 describe_vpc_endpoint_connection_notifications_paginator: DescribeVpcEndpointConnectionNotificationsPaginator = client.get_paginator("describe_vpc_endpoint_connection_notifications")303 describe_vpc_endpoint_connections_paginator: DescribeVpcEndpointConnectionsPaginator = client.get_paginator("describe_vpc_endpoint_connections")304 describe_vpc_endpoint_service_configurations_paginator: DescribeVpcEndpointServiceConfigurationsPaginator = client.get_paginator("describe_vpc_endpoint_service_configurations")305 describe_vpc_endpoint_service_permissions_paginator: DescribeVpcEndpointServicePermissionsPaginator = client.get_paginator("describe_vpc_endpoint_service_permissions")306 describe_vpc_endpoint_services_paginator: DescribeVpcEndpointServicesPaginator = client.get_paginator("describe_vpc_endpoint_services")307 describe_vpc_endpoints_paginator: DescribeVpcEndpointsPaginator = client.get_paginator("describe_vpc_endpoints")308 describe_vpc_peering_connections_paginator: DescribeVpcPeeringConnectionsPaginator = client.get_paginator("describe_vpc_peering_connections")309 describe_vpcs_paginator: DescribeVpcsPaginator = client.get_paginator("describe_vpcs")310 get_associated_ipv6_pool_cidrs_paginator: GetAssociatedIpv6PoolCidrsPaginator = client.get_paginator("get_associated_ipv6_pool_cidrs")311 get_groups_for_capacity_reservation_paginator: GetGroupsForCapacityReservationPaginator = client.get_paginator("get_groups_for_capacity_reservation")312 get_instance_types_from_instance_requirements_paginator: GetInstanceTypesFromInstanceRequirementsPaginator = client.get_paginator("get_instance_types_from_instance_requirements")313 get_ipam_address_history_paginator: GetIpamAddressHistoryPaginator = client.get_paginator("get_ipam_address_history")314 get_ipam_pool_allocations_paginator: GetIpamPoolAllocationsPaginator = client.get_paginator("get_ipam_pool_allocations")315 get_ipam_pool_cidrs_paginator: GetIpamPoolCidrsPaginator = client.get_paginator("get_ipam_pool_cidrs")316 get_ipam_resource_cidrs_paginator: GetIpamResourceCidrsPaginator = client.get_paginator("get_ipam_resource_cidrs")317 get_managed_prefix_list_associations_paginator: GetManagedPrefixListAssociationsPaginator = client.get_paginator("get_managed_prefix_list_associations")318 get_managed_prefix_list_entries_paginator: GetManagedPrefixListEntriesPaginator = client.get_paginator("get_managed_prefix_list_entries")319 get_spot_placement_scores_paginator: GetSpotPlacementScoresPaginator = client.get_paginator("get_spot_placement_scores")320 get_transit_gateway_attachment_propagations_paginator: GetTransitGatewayAttachmentPropagationsPaginator = client.get_paginator("get_transit_gateway_attachment_propagations")321 get_transit_gateway_multicast_domain_associations_paginator: GetTransitGatewayMulticastDomainAssociationsPaginator = client.get_paginator("get_transit_gateway_multicast_domain_associations")322 get_transit_gateway_policy_table_associations_paginator: GetTransitGatewayPolicyTableAssociationsPaginator = client.get_paginator("get_transit_gateway_policy_table_associations")323 get_transit_gateway_prefix_list_references_paginator: GetTransitGatewayPrefixListReferencesPaginator = client.get_paginator("get_transit_gateway_prefix_list_references")324 get_transit_gateway_route_table_associations_paginator: GetTransitGatewayRouteTableAssociationsPaginator = client.get_paginator("get_transit_gateway_route_table_associations")325 get_transit_gateway_route_table_propagations_paginator: GetTransitGatewayRouteTablePropagationsPaginator = client.get_paginator("get_transit_gateway_route_table_propagations")326 get_vpn_connection_device_types_paginator: GetVpnConnectionDeviceTypesPaginator = client.get_paginator("get_vpn_connection_device_types")327 list_images_in_recycle_bin_paginator: ListImagesInRecycleBinPaginator = client.get_paginator("list_images_in_recycle_bin")328 list_snapshots_in_recycle_bin_paginator: ListSnapshotsInRecycleBinPaginator = client.get_paginator("list_snapshots_in_recycle_bin")329 search_local_gateway_routes_paginator: SearchLocalGatewayRoutesPaginator = client.get_paginator("search_local_gateway_routes")330 search_transit_gateway_multicast_groups_paginator: SearchTransitGatewayMulticastGroupsPaginator = client.get_paginator("search_transit_gateway_multicast_groups")331 ```332"""333from .client import EC2Client334from .paginator import (335 DescribeAddressesAttributePaginator,336 DescribeByoipCidrsPaginator,337 DescribeCapacityReservationFleetsPaginator,338 DescribeCapacityReservationsPaginator,339 DescribeCarrierGatewaysPaginator,340 DescribeClassicLinkInstancesPaginator,341 DescribeClientVpnAuthorizationRulesPaginator,342 DescribeClientVpnConnectionsPaginator,343 DescribeClientVpnEndpointsPaginator,344 DescribeClientVpnRoutesPaginator,345 DescribeClientVpnTargetNetworksPaginator,346 DescribeCoipPoolsPaginator,347 DescribeDhcpOptionsPaginator,348 DescribeEgressOnlyInternetGatewaysPaginator,349 DescribeExportImageTasksPaginator,350 DescribeFastLaunchImagesPaginator,351 DescribeFastSnapshotRestoresPaginator,352 DescribeFleetsPaginator,353 DescribeFlowLogsPaginator,354 DescribeFpgaImagesPaginator,355 DescribeHostReservationOfferingsPaginator,356 DescribeHostReservationsPaginator,357 DescribeHostsPaginator,358 DescribeIamInstanceProfileAssociationsPaginator,359 DescribeImportImageTasksPaginator,360 DescribeImportSnapshotTasksPaginator,361 DescribeInstanceCreditSpecificationsPaginator,362 DescribeInstanceEventWindowsPaginator,363 DescribeInstancesPaginator,364 DescribeInstanceStatusPaginator,365 DescribeInstanceTypeOfferingsPaginator,366 DescribeInstanceTypesPaginator,367 DescribeInternetGatewaysPaginator,368 DescribeIpamPoolsPaginator,369 DescribeIpamScopesPaginator,370 DescribeIpamsPaginator,371 DescribeIpv6PoolsPaginator,372 DescribeLaunchTemplatesPaginator,373 DescribeLaunchTemplateVersionsPaginator,374 DescribeLocalGatewayRouteTablesPaginator,375 DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator,376 DescribeLocalGatewayRouteTableVpcAssociationsPaginator,377 DescribeLocalGatewaysPaginator,378 DescribeLocalGatewayVirtualInterfaceGroupsPaginator,379 DescribeLocalGatewayVirtualInterfacesPaginator,380 DescribeManagedPrefixListsPaginator,381 DescribeMovingAddressesPaginator,382 DescribeNatGatewaysPaginator,383 DescribeNetworkAclsPaginator,384 DescribeNetworkInsightsAccessScopeAnalysesPaginator,385 DescribeNetworkInsightsAccessScopesPaginator,386 DescribeNetworkInsightsAnalysesPaginator,387 DescribeNetworkInsightsPathsPaginator,388 DescribeNetworkInterfacePermissionsPaginator,389 DescribeNetworkInterfacesPaginator,390 DescribePrefixListsPaginator,391 DescribePrincipalIdFormatPaginator,392 DescribePublicIpv4PoolsPaginator,393 DescribeReplaceRootVolumeTasksPaginator,394 DescribeReservedInstancesModificationsPaginator,395 DescribeReservedInstancesOfferingsPaginator,396 DescribeRouteTablesPaginator,397 DescribeScheduledInstanceAvailabilityPaginator,398 DescribeScheduledInstancesPaginator,399 DescribeSecurityGroupRulesPaginator,400 DescribeSecurityGroupsPaginator,401 DescribeSnapshotsPaginator,402 DescribeSnapshotTierStatusPaginator,403 DescribeSpotFleetInstancesPaginator,404 DescribeSpotFleetRequestsPaginator,405 DescribeSpotInstanceRequestsPaginator,406 DescribeSpotPriceHistoryPaginator,407 DescribeStaleSecurityGroupsPaginator,408 DescribeStoreImageTasksPaginator,409 DescribeSubnetsPaginator,410 DescribeTagsPaginator,411 DescribeTrafficMirrorFiltersPaginator,412 DescribeTrafficMirrorSessionsPaginator,413 DescribeTrafficMirrorTargetsPaginator,414 DescribeTransitGatewayAttachmentsPaginator,415 DescribeTransitGatewayConnectPeersPaginator,416 DescribeTransitGatewayConnectsPaginator,417 DescribeTransitGatewayMulticastDomainsPaginator,418 DescribeTransitGatewayPeeringAttachmentsPaginator,419 DescribeTransitGatewayPolicyTablesPaginator,420 DescribeTransitGatewayRouteTableAnnouncementsPaginator,421 DescribeTransitGatewayRouteTablesPaginator,422 DescribeTransitGatewaysPaginator,423 DescribeTransitGatewayVpcAttachmentsPaginator,424 DescribeTrunkInterfaceAssociationsPaginator,425 DescribeVolumesModificationsPaginator,426 DescribeVolumesPaginator,427 DescribeVolumeStatusPaginator,428 DescribeVpcClassicLinkDnsSupportPaginator,429 DescribeVpcEndpointConnectionNotificationsPaginator,430 DescribeVpcEndpointConnectionsPaginator,431 DescribeVpcEndpointServiceConfigurationsPaginator,432 DescribeVpcEndpointServicePermissionsPaginator,433 DescribeVpcEndpointServicesPaginator,434 DescribeVpcEndpointsPaginator,435 DescribeVpcPeeringConnectionsPaginator,436 DescribeVpcsPaginator,437 GetAssociatedIpv6PoolCidrsPaginator,438 GetGroupsForCapacityReservationPaginator,439 GetInstanceTypesFromInstanceRequirementsPaginator,440 GetIpamAddressHistoryPaginator,441 GetIpamPoolAllocationsPaginator,442 GetIpamPoolCidrsPaginator,443 GetIpamResourceCidrsPaginator,444 GetManagedPrefixListAssociationsPaginator,445 GetManagedPrefixListEntriesPaginator,446 GetSpotPlacementScoresPaginator,447 GetTransitGatewayAttachmentPropagationsPaginator,448 GetTransitGatewayMulticastDomainAssociationsPaginator,449 GetTransitGatewayPolicyTableAssociationsPaginator,450 GetTransitGatewayPrefixListReferencesPaginator,451 GetTransitGatewayRouteTableAssociationsPaginator,452 GetTransitGatewayRouteTablePropagationsPaginator,453 GetVpnConnectionDeviceTypesPaginator,454 ListImagesInRecycleBinPaginator,455 ListSnapshotsInRecycleBinPaginator,456 SearchLocalGatewayRoutesPaginator,457 SearchTransitGatewayMulticastGroupsPaginator,458)459from .service_resource import EC2ServiceResource460from .waiter import (461 BundleTaskCompleteWaiter,462 ConversionTaskCancelledWaiter,463 ConversionTaskCompletedWaiter,464 ConversionTaskDeletedWaiter,465 CustomerGatewayAvailableWaiter,466 ExportTaskCancelledWaiter,467 ExportTaskCompletedWaiter,468 ImageAvailableWaiter,469 ImageExistsWaiter,470 InstanceExistsWaiter,471 InstanceRunningWaiter,472 InstanceStatusOkWaiter,473 InstanceStoppedWaiter,474 InstanceTerminatedWaiter,475 InternetGatewayExistsWaiter,476 KeyPairExistsWaiter,477 NatGatewayAvailableWaiter,478 NatGatewayDeletedWaiter,479 NetworkInterfaceAvailableWaiter,480 PasswordDataAvailableWaiter,481 SecurityGroupExistsWaiter,482 SnapshotCompletedWaiter,483 SpotInstanceRequestFulfilledWaiter,484 SubnetAvailableWaiter,485 SystemStatusOkWaiter,486 VolumeAvailableWaiter,487 VolumeDeletedWaiter,488 VolumeInUseWaiter,489 VpcAvailableWaiter,490 VpcExistsWaiter,491 VpcPeeringConnectionDeletedWaiter,492 VpcPeeringConnectionExistsWaiter,493 VpnConnectionAvailableWaiter,494 VpnConnectionDeletedWaiter,495)496Client = EC2Client497ServiceResource = EC2ServiceResource498__all__ = (499 "BundleTaskCompleteWaiter",500 "Client",501 "ConversionTaskCancelledWaiter",502 "ConversionTaskCompletedWaiter",503 "ConversionTaskDeletedWaiter",504 "CustomerGatewayAvailableWaiter",505 "DescribeAddressesAttributePaginator",506 "DescribeByoipCidrsPaginator",507 "DescribeCapacityReservationFleetsPaginator",508 "DescribeCapacityReservationsPaginator",509 "DescribeCarrierGatewaysPaginator",510 "DescribeClassicLinkInstancesPaginator",511 "DescribeClientVpnAuthorizationRulesPaginator",512 "DescribeClientVpnConnectionsPaginator",513 "DescribeClientVpnEndpointsPaginator",514 "DescribeClientVpnRoutesPaginator",515 "DescribeClientVpnTargetNetworksPaginator",516 "DescribeCoipPoolsPaginator",517 "DescribeDhcpOptionsPaginator",518 "DescribeEgressOnlyInternetGatewaysPaginator",519 "DescribeExportImageTasksPaginator",520 "DescribeFastLaunchImagesPaginator",521 "DescribeFastSnapshotRestoresPaginator",522 "DescribeFleetsPaginator",523 "DescribeFlowLogsPaginator",524 "DescribeFpgaImagesPaginator",525 "DescribeHostReservationOfferingsPaginator",526 "DescribeHostReservationsPaginator",527 "DescribeHostsPaginator",528 "DescribeIamInstanceProfileAssociationsPaginator",529 "DescribeImportImageTasksPaginator",530 "DescribeImportSnapshotTasksPaginator",531 "DescribeInstanceCreditSpecificationsPaginator",532 "DescribeInstanceEventWindowsPaginator",533 "DescribeInstanceStatusPaginator",534 "DescribeInstanceTypeOfferingsPaginator",535 "DescribeInstanceTypesPaginator",536 "DescribeInstancesPaginator",537 "DescribeInternetGatewaysPaginator",538 "DescribeIpamPoolsPaginator",539 "DescribeIpamScopesPaginator",540 "DescribeIpamsPaginator",541 "DescribeIpv6PoolsPaginator",542 "DescribeLaunchTemplateVersionsPaginator",543 "DescribeLaunchTemplatesPaginator",544 "DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsPaginator",545 "DescribeLocalGatewayRouteTableVpcAssociationsPaginator",546 "DescribeLocalGatewayRouteTablesPaginator",547 "DescribeLocalGatewayVirtualInterfaceGroupsPaginator",548 "DescribeLocalGatewayVirtualInterfacesPaginator",549 "DescribeLocalGatewaysPaginator",550 "DescribeManagedPrefixListsPaginator",551 "DescribeMovingAddressesPaginator",552 "DescribeNatGatewaysPaginator",553 "DescribeNetworkAclsPaginator",554 "DescribeNetworkInsightsAccessScopeAnalysesPaginator",555 "DescribeNetworkInsightsAccessScopesPaginator",556 "DescribeNetworkInsightsAnalysesPaginator",557 "DescribeNetworkInsightsPathsPaginator",558 "DescribeNetworkInterfacePermissionsPaginator",559 "DescribeNetworkInterfacesPaginator",560 "DescribePrefixListsPaginator",561 "DescribePrincipalIdFormatPaginator",562 "DescribePublicIpv4PoolsPaginator",563 "DescribeReplaceRootVolumeTasksPaginator",564 "DescribeReservedInstancesModificationsPaginator",565 "DescribeReservedInstancesOfferingsPaginator",566 "DescribeRouteTablesPaginator",567 "DescribeScheduledInstanceAvailabilityPaginator",568 "DescribeScheduledInstancesPaginator",569 "DescribeSecurityGroupRulesPaginator",570 "DescribeSecurityGroupsPaginator",571 "DescribeSnapshotTierStatusPaginator",572 "DescribeSnapshotsPaginator",573 "DescribeSpotFleetInstancesPaginator",574 "DescribeSpotFleetRequestsPaginator",575 "DescribeSpotInstanceRequestsPaginator",576 "DescribeSpotPriceHistoryPaginator",577 "DescribeStaleSecurityGroupsPaginator",578 "DescribeStoreImageTasksPaginator",579 "DescribeSubnetsPaginator",580 "DescribeTagsPaginator",581 "DescribeTrafficMirrorFiltersPaginator",582 "DescribeTrafficMirrorSessionsPaginator",583 "DescribeTrafficMirrorTargetsPaginator",584 "DescribeTransitGatewayAttachmentsPaginator",585 "DescribeTransitGatewayConnectPeersPaginator",586 "DescribeTransitGatewayConnectsPaginator",587 "DescribeTransitGatewayMulticastDomainsPaginator",588 "DescribeTransitGatewayPeeringAttachmentsPaginator",589 "DescribeTransitGatewayPolicyTablesPaginator",590 "DescribeTransitGatewayRouteTableAnnouncementsPaginator",591 "DescribeTransitGatewayRouteTablesPaginator",592 "DescribeTransitGatewayVpcAttachmentsPaginator",593 "DescribeTransitGatewaysPaginator",594 "DescribeTrunkInterfaceAssociationsPaginator",595 "DescribeVolumeStatusPaginator",596 "DescribeVolumesModificationsPaginator",597 "DescribeVolumesPaginator",598 "DescribeVpcClassicLinkDnsSupportPaginator",599 "DescribeVpcEndpointConnectionNotificationsPaginator",600 "DescribeVpcEndpointConnectionsPaginator",601 "DescribeVpcEndpointServiceConfigurationsPaginator",602 "DescribeVpcEndpointServicePermissionsPaginator",603 "DescribeVpcEndpointServicesPaginator",604 "DescribeVpcEndpointsPaginator",605 "DescribeVpcPeeringConnectionsPaginator",606 "DescribeVpcsPaginator",607 "EC2Client",608 "EC2ServiceResource",609 "ExportTaskCancelledWaiter",610 "ExportTaskCompletedWaiter",611 "GetAssociatedIpv6PoolCidrsPaginator",612 "GetGroupsForCapacityReservationPaginator",613 "GetInstanceTypesFromInstanceRequirementsPaginator",614 "GetIpamAddressHistoryPaginator",615 "GetIpamPoolAllocationsPaginator",616 "GetIpamPoolCidrsPaginator",617 "GetIpamResourceCidrsPaginator",618 "GetManagedPrefixListAssociationsPaginator",619 "GetManagedPrefixListEntriesPaginator",620 "GetSpotPlacementScoresPaginator",621 "GetTransitGatewayAttachmentPropagationsPaginator",622 "GetTransitGatewayMulticastDomainAssociationsPaginator",623 "GetTransitGatewayPolicyTableAssociationsPaginator",624 "GetTransitGatewayPrefixListReferencesPaginator",625 "GetTransitGatewayRouteTableAssociationsPaginator",626 "GetTransitGatewayRouteTablePropagationsPaginator",627 "GetVpnConnectionDeviceTypesPaginator",628 "ImageAvailableWaiter",629 "ImageExistsWaiter",630 "InstanceExistsWaiter",631 "InstanceRunningWaiter",632 "InstanceStatusOkWaiter",633 "InstanceStoppedWaiter",634 "InstanceTerminatedWaiter",635 "InternetGatewayExistsWaiter",636 "KeyPairExistsWaiter",637 "ListImagesInRecycleBinPaginator",638 "ListSnapshotsInRecycleBinPaginator",639 "NatGatewayAvailableWaiter",640 "NatGatewayDeletedWaiter",641 "NetworkInterfaceAvailableWaiter",642 "PasswordDataAvailableWaiter",643 "SearchLocalGatewayRoutesPaginator",644 "SearchTransitGatewayMulticastGroupsPaginator",645 "SecurityGroupExistsWaiter",646 "ServiceResource",647 "SnapshotCompletedWaiter",648 "SpotInstanceRequestFulfilledWaiter",649 "SubnetAvailableWaiter",650 "SystemStatusOkWaiter",651 "VolumeAvailableWaiter",652 "VolumeDeletedWaiter",653 "VolumeInUseWaiter",654 "VpcAvailableWaiter",655 "VpcExistsWaiter",656 "VpcPeeringConnectionDeletedWaiter",657 "VpcPeeringConnectionExistsWaiter",658 "VpnConnectionAvailableWaiter",659 "VpnConnectionDeletedWaiter",...

Full Screen

Full Screen

aws-ipam-monitor-app.py

Source:aws-ipam-monitor-app.py Github

copy

Full Screen

...59 ec2 = boto3.client("ec2")60 # get_ipam_resource_cidrs61 logger.debug('Getting IPAM scopes')62 # get_ipam_scopes from EC263 scopeResponse = ec2.describe_ipam_scopes(MaxResults=PAGE_SIZE_MIN)64 if (scopeResponse is not None):65 ipamScopes = scopeResponse['IpamScopes']66 for ipamScope in ipamScopes:67 if (ipamScope['IpamScopeType'] == ipamScopeType):68 myIpamScopeId = ipamScope['IpamScopeId']69 # get_ipam_resource_cidrs70 logger.info('Getting IPAM resource CIDRS: ' + ipamResourceType)71 # get_ipam_resource_cidrs from EC2 for specific scope ... results maybe paginated72 if (ipamResourceType == None or ipamResourceType == "*" or ipamResourceType == ""):73 # loop over defaults74 for defIpamResourceType in DEFAULT_IPAM_RESOURCE_TYPES:75 resourceCidrResponse = ec2.get_ipam_resource_cidrs(IpamScopeId=myIpamScopeId, ResourceType=defIpamResourceType, MaxResults=PAGE_SIZE_MAX)76 if (resourceCidrResponse is not None):77 allResourceCidrs += resourceCidrResponse['IpamResourceCidrs'] ...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful