How to use describe_instance_event_windows 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

ec2_fixtures.py

Source:ec2_fixtures.py Github

copy

Full Screen

1import boto32import pytest3from moto import mock_ec24from tests.utils import random_str5@pytest.fixture6def gen_ec2_client(aws_setup):7 with mock_ec2():8 yield boto3.client("ec2")9@pytest.fixture10def gen_ec2_resource(aws_setup):11 with mock_ec2():12 yield boto3.resource("ec2")13# ============================14# WAITER15# ============================16@pytest.fixture17def gen_instance_exists_waiter(gen_ec2_client):18 return gen_ec2_client.get_waiter("instance_exists")19@pytest.fixture20def gen_bundle_task_complete_waiter(gen_ec2_client):21 return gen_ec2_client.get_waiter("bundle_task_complete")22@pytest.fixture23def gen_conversion_task_cancelled_waiter(gen_ec2_client):24 return gen_ec2_client.get_waiter("conversion_task_cancelled")25@pytest.fixture26def gen_conversion_task_completed_waiter(gen_ec2_client):27 return gen_ec2_client.get_waiter("conversion_task_completed")28@pytest.fixture29def gen_conversion_task_deleted_waiter(gen_ec2_client):30 return gen_ec2_client.get_waiter("conversion_task_deleted")31@pytest.fixture32def gen_customer_gateway_available_waiter(gen_ec2_client):33 return gen_ec2_client.get_waiter("customer_gateway_available")34@pytest.fixture35def gen_export_task_cancelled_waiter(gen_ec2_client):36 return gen_ec2_client.get_waiter("export_task_cancelled")37@pytest.fixture38def gen_export_task_completed_waiter(gen_ec2_client):39 return gen_ec2_client.get_waiter("export_task_completed")40@pytest.fixture41def gen_image_exists_waiter(gen_ec2_client):42 return gen_ec2_client.get_waiter("image_exists")43@pytest.fixture44def gen_image_available_waiter(gen_ec2_client):45 return gen_ec2_client.get_waiter("image_available")46@pytest.fixture47def gen_instance_running_waiter(gen_ec2_client):48 return gen_ec2_client.get_waiter("instance_running")49@pytest.fixture50def gen_instance_status_ok_waiter(gen_ec2_client):51 return gen_ec2_client.get_waiter("instance_status_ok")52@pytest.fixture53def gen_instance_stopped_waiter(gen_ec2_client):54 return gen_ec2_client.get_waiter("instance_stopped")55@pytest.fixture56def gen_instance_terminated_waiter(gen_ec2_client):57 return gen_ec2_client.get_waiter("instance_terminated")58@pytest.fixture59def gen_key_pair_exists_waiter(gen_ec2_client):60 return gen_ec2_client.get_waiter("key_pair_exists")61@pytest.fixture62def gen_nat_gateway_available_waiter(gen_ec2_client):63 return gen_ec2_client.get_waiter("nat_gateway_available")64@pytest.fixture65def gen_network_interface_available_waiter(gen_ec2_client):66 return gen_ec2_client.get_waiter("network_interface_available")67@pytest.fixture68def gen_password_data_available_waiter(gen_ec2_client):69 return gen_ec2_client.get_waiter("password_data_available")70@pytest.fixture71def gen_snapshot_completed_waiter(gen_ec2_client):72 return gen_ec2_client.get_waiter("snapshot_completed")73@pytest.fixture74def gen_security_group_exists_waiter(gen_ec2_client):75 return gen_ec2_client.get_waiter("security_group_exists")76@pytest.fixture77def gen_spot_instance_request_fulfilled_waiter(gen_ec2_client):78 return gen_ec2_client.get_waiter("spot_instance_request_fulfilled")79@pytest.fixture80def gen_subnet_available_waiter(gen_ec2_client):81 return gen_ec2_client.get_waiter("subnet_available")82@pytest.fixture83def gen_system_status_ok_waiter(gen_ec2_client):84 return gen_ec2_client.get_waiter("system_status_ok")85@pytest.fixture86def gen_volume_available_waiter(gen_ec2_client):87 return gen_ec2_client.get_waiter("volume_available")88@pytest.fixture89def gen_volume_deleted_waiter(gen_ec2_client):90 return gen_ec2_client.get_waiter("volume_deleted")91@pytest.fixture92def gen_volume_in_use_waiter(gen_ec2_client):93 return gen_ec2_client.get_waiter("volume_in_use")94@pytest.fixture95def gen_vpc_available_waiter(gen_ec2_client):96 return gen_ec2_client.get_waiter("vpc_available")97@pytest.fixture98def gen_vpc_exists_waiter(gen_ec2_client):99 return gen_ec2_client.get_waiter("vpc_exists")100@pytest.fixture101def gen_vpn_connection_available_waiter(gen_ec2_client):102 return gen_ec2_client.get_waiter("vpn_connection_available")103@pytest.fixture104def gen_vpn_connection_deleted_waiter(gen_ec2_client):105 return gen_ec2_client.get_waiter("vpn_connection_deleted")106@pytest.fixture107def gen_vpc_peering_connection_exists_waiter(gen_ec2_client):108 return gen_ec2_client.get_waiter("vpc_peering_connection_exists")109@pytest.fixture110def gen_vpc_peering_connection_deleted_waiter(gen_ec2_client):111 return gen_ec2_client.get_waiter("vpc_peering_connection_deleted")112# ============================113# PAGINATOR114# ============================115@pytest.fixture116def gen_describe_route_tables_paginator(gen_ec2_client):117 return gen_ec2_client.get_paginator("describe_route_tables")118@pytest.fixture119def gen_describe_iam_instance_profile_associations_paginator(gen_ec2_client):120 return gen_ec2_client.get_paginator("describe_iam_instance_profile_associations")121@pytest.fixture122def gen_describe_instance_status_paginator(gen_ec2_client):123 return gen_ec2_client.get_paginator("describe_instance_status")124@pytest.fixture125def gen_describe_instances_paginator(gen_ec2_client):126 return gen_ec2_client.get_paginator("describe_instances")127@pytest.fixture128def gen_describe_reserved_instances_offerings_paginator(gen_ec2_client):129 return gen_ec2_client.get_paginator("describe_reserved_instances_offerings")130@pytest.fixture131def gen_describe_reserved_instances_modifications_paginator(gen_ec2_client):132 return gen_ec2_client.get_paginator("describe_reserved_instances_modifications")133@pytest.fixture134def gen_describe_security_groups_paginator(gen_ec2_client):135 return gen_ec2_client.get_paginator("describe_security_groups")136@pytest.fixture137def gen_describe_snapshots_paginator(gen_ec2_client):138 return gen_ec2_client.get_paginator("describe_snapshots")139@pytest.fixture140def gen_describe_spot_fleet_instances_paginator(gen_ec2_client):141 return gen_ec2_client.get_paginator("describe_spot_fleet_instances")142@pytest.fixture143def gen_describe_spot_fleet_requests_paginator(gen_ec2_client):144 return gen_ec2_client.get_paginator("describe_spot_fleet_requests")145@pytest.fixture146def gen_describe_spot_price_history_paginator(gen_ec2_client):147 return gen_ec2_client.get_paginator("describe_spot_price_history")148@pytest.fixture149def gen_describe_tags_paginator(gen_ec2_client):150 return gen_ec2_client.get_paginator("describe_tags")151@pytest.fixture152def gen_describe_volume_status_paginator(gen_ec2_client):153 return gen_ec2_client.get_paginator("describe_volume_status")154@pytest.fixture155def gen_describe_volumes_paginator(gen_ec2_client):156 return gen_ec2_client.get_paginator("describe_volumes")157@pytest.fixture158def gen_describe_nat_gateways_paginator(gen_ec2_client):159 return gen_ec2_client.get_paginator("describe_nat_gateways")160@pytest.fixture161def gen_describe_network_interfaces_paginator(gen_ec2_client):162 return gen_ec2_client.get_paginator("describe_network_interfaces")163@pytest.fixture164def gen_describe_vpc_endpoints_paginator(gen_ec2_client):165 return gen_ec2_client.get_paginator("describe_vpc_endpoints")166@pytest.fixture167def gen_describe_vpc_endpoint_services_paginator(gen_ec2_client):168 return gen_ec2_client.get_paginator("describe_vpc_endpoint_services")169@pytest.fixture170def gen_describe_vpc_endpoint_connections_paginator(gen_ec2_client):171 return gen_ec2_client.get_paginator("describe_vpc_endpoint_connections")172@pytest.fixture173def gen_describe_byoip_cidrs_paginator(gen_ec2_client):174 return gen_ec2_client.get_paginator("describe_byoip_cidrs")175@pytest.fixture176def gen_describe_capacity_reservations_paginator(gen_ec2_client):177 return gen_ec2_client.get_paginator("describe_capacity_reservations")178@pytest.fixture179def gen_describe_classic_link_instances_paginator(gen_ec2_client):180 return gen_ec2_client.get_paginator("describe_classic_link_instances")181@pytest.fixture182def gen_describe_client_vpn_authorization_rules_paginator(gen_ec2_client):183 return gen_ec2_client.get_paginator("describe_client_vpn_authorization_rules")184@pytest.fixture185def gen_describe_client_vpn_connections_paginator(gen_ec2_client):186 return gen_ec2_client.get_paginator("describe_client_vpn_connections")187@pytest.fixture188def gen_describe_client_vpn_endpoints_paginator(gen_ec2_client):189 return gen_ec2_client.get_paginator("describe_client_vpn_endpoints")190@pytest.fixture191def gen_describe_client_vpn_routes_paginator(gen_ec2_client):192 return gen_ec2_client.get_paginator("describe_client_vpn_routes")193@pytest.fixture194def gen_describe_client_vpn_target_networks_paginator(gen_ec2_client):195 return gen_ec2_client.get_paginator("describe_client_vpn_target_networks")196@pytest.fixture197def gen_describe_egress_only_internet_gateways_paginator(gen_ec2_client):198 return gen_ec2_client.get_paginator("describe_egress_only_internet_gateways")199@pytest.fixture200def gen_describe_fleets_paginator(gen_ec2_client):201 return gen_ec2_client.get_paginator("describe_fleets")202@pytest.fixture203def gen_describe_flow_logs_paginator(gen_ec2_client):204 return gen_ec2_client.get_paginator("describe_flow_logs")205@pytest.fixture206def gen_describe_fpga_images_paginator(gen_ec2_client):207 return gen_ec2_client.get_paginator("describe_fpga_images")208@pytest.fixture209def gen_describe_host_reservation_offerings_paginator(gen_ec2_client):210 return gen_ec2_client.get_paginator("describe_host_reservation_offerings")211@pytest.fixture212def gen_describe_host_reservations_paginator(gen_ec2_client):213 return gen_ec2_client.get_paginator("describe_host_reservations")214@pytest.fixture215def gen_describe_hosts_paginator(gen_ec2_client):216 return gen_ec2_client.get_paginator("describe_hosts")217@pytest.fixture218def gen_describe_import_image_tasks_paginator(gen_ec2_client):219 return gen_ec2_client.get_paginator("describe_import_image_tasks")220@pytest.fixture221def gen_describe_import_snapshot_tasks_paginator(gen_ec2_client):222 return gen_ec2_client.get_paginator("describe_import_snapshot_tasks")223@pytest.fixture224def gen_describe_instance_credit_specifications_paginator(gen_ec2_client):225 return gen_ec2_client.get_paginator("describe_instance_credit_specifications")226@pytest.fixture227def gen_describe_launch_template_versions_paginator(gen_ec2_client):228 return gen_ec2_client.get_paginator("describe_launch_template_versions")229@pytest.fixture230def gen_describe_launch_templates_paginator(gen_ec2_client):231 return gen_ec2_client.get_paginator("describe_launch_templates")232@pytest.fixture233def gen_describe_moving_addresses_paginator(gen_ec2_client):234 return gen_ec2_client.get_paginator("describe_moving_addresses")235@pytest.fixture236def gen_describe_network_interface_permissions_paginator(gen_ec2_client):237 return gen_ec2_client.get_paginator("describe_network_interface_permissions")238@pytest.fixture239def gen_describe_prefix_lists_paginator(gen_ec2_client):240 return gen_ec2_client.get_paginator("describe_prefix_lists")241@pytest.fixture242def gen_describe_principal_id_format_paginator(gen_ec2_client):243 return gen_ec2_client.get_paginator("describe_principal_id_format")244@pytest.fixture245def gen_describe_public_ipv4_pools_paginator(gen_ec2_client):246 return gen_ec2_client.get_paginator("describe_public_ipv4_pools")247@pytest.fixture248def gen_describe_scheduled_instance_availability_paginator(gen_ec2_client):249 return gen_ec2_client.get_paginator("describe_scheduled_instance_availability")250@pytest.fixture251def gen_describe_scheduled_instances_paginator(gen_ec2_client):252 return gen_ec2_client.get_paginator("describe_scheduled_instances")253@pytest.fixture254def gen_describe_stale_security_groups_paginator(gen_ec2_client):255 return gen_ec2_client.get_paginator("describe_stale_security_groups")256@pytest.fixture257def gen_describe_transit_gateway_attachments_paginator(gen_ec2_client):258 return gen_ec2_client.get_paginator("describe_transit_gateway_attachments")259@pytest.fixture260def gen_describe_transit_gateway_route_tables_paginator(gen_ec2_client):261 return gen_ec2_client.get_paginator("describe_transit_gateway_route_tables")262@pytest.fixture263def gen_describe_transit_gateway_vpc_attachments_paginator(gen_ec2_client):264 return gen_ec2_client.get_paginator("describe_transit_gateway_vpc_attachments")265@pytest.fixture266def gen_describe_transit_gateways_paginator(gen_ec2_client):267 return gen_ec2_client.get_paginator("describe_transit_gateways")268@pytest.fixture269def gen_describe_volumes_modifications_paginator(gen_ec2_client):270 return gen_ec2_client.get_paginator("describe_volumes_modifications")271@pytest.fixture272def gen_describe_vpc_classic_link_dns_support_paginator(gen_ec2_client):273 return gen_ec2_client.get_paginator("describe_vpc_classic_link_dns_support")274@pytest.fixture275def gen_describe_vpc_endpoint_connection_notifications_paginator(gen_ec2_client):276 return gen_ec2_client.get_paginator(277 "describe_vpc_endpoint_connection_notifications"278 )279@pytest.fixture280def gen_describe_vpc_endpoint_service_configurations_paginator(gen_ec2_client):281 return gen_ec2_client.get_paginator("describe_vpc_endpoint_service_configurations")282@pytest.fixture283def gen_describe_vpc_endpoint_service_permissions_paginator(gen_ec2_client):284 return gen_ec2_client.get_paginator("describe_vpc_endpoint_service_permissions")285@pytest.fixture286def gen_describe_vpc_peering_connections_paginator(gen_ec2_client):287 return gen_ec2_client.get_paginator("describe_vpc_peering_connections")288@pytest.fixture289def gen_get_transit_gateway_attachment_propagations_paginator(gen_ec2_client):290 return gen_ec2_client.get_paginator("get_transit_gateway_attachment_propagations")291@pytest.fixture292def gen_get_transit_gateway_route_table_associations_paginator(gen_ec2_client):293 return gen_ec2_client.get_paginator("get_transit_gateway_route_table_associations")294@pytest.fixture295def gen_get_transit_gateway_route_table_propagations_paginator(gen_ec2_client):296 return gen_ec2_client.get_paginator("get_transit_gateway_route_table_propagations")297@pytest.fixture298def gen_describe_internet_gateways_paginator(gen_ec2_client):299 return gen_ec2_client.get_paginator("describe_internet_gateways")300@pytest.fixture301def gen_describe_network_acls_paginator(gen_ec2_client):302 return gen_ec2_client.get_paginator("describe_network_acls")303@pytest.fixture304def gen_describe_vpcs_paginator(gen_ec2_client):305 return gen_ec2_client.get_paginator("describe_vpcs")306@pytest.fixture307def gen_describe_spot_instance_requests_paginator(gen_ec2_client):308 return gen_ec2_client.get_paginator("describe_spot_instance_requests")309@pytest.fixture310def gen_describe_dhcp_options_paginator(gen_ec2_client):311 return gen_ec2_client.get_paginator("describe_dhcp_options")312@pytest.fixture313def gen_describe_subnets_paginator(gen_ec2_client):314 return gen_ec2_client.get_paginator("describe_subnets")315@pytest.fixture316def gen_describe_traffic_mirror_filters_paginator(gen_ec2_client):317 return gen_ec2_client.get_paginator("describe_traffic_mirror_filters")318@pytest.fixture319def gen_describe_traffic_mirror_sessions_paginator(gen_ec2_client):320 return gen_ec2_client.get_paginator("describe_traffic_mirror_sessions")321@pytest.fixture322def gen_describe_traffic_mirror_targets_paginator(gen_ec2_client):323 return gen_ec2_client.get_paginator("describe_traffic_mirror_targets")324@pytest.fixture325def gen_describe_export_image_tasks_paginator(gen_ec2_client):326 return gen_ec2_client.get_paginator("describe_export_image_tasks")327@pytest.fixture328def gen_describe_fast_snapshot_restores_paginator(gen_ec2_client):329 return gen_ec2_client.get_paginator("describe_fast_snapshot_restores")330@pytest.fixture331def gen_describe_ipv6_pools_paginator(gen_ec2_client):332 return gen_ec2_client.get_paginator("describe_ipv6_pools")333@pytest.fixture334def gen_get_associated_ipv6_pool_cidrs_paginator(gen_ec2_client):335 return gen_ec2_client.get_paginator("get_associated_ipv6_pool_cidrs")336@pytest.fixture337def gen_describe_coip_pools_paginator(gen_ec2_client):338 return gen_ec2_client.get_paginator("describe_coip_pools")339@pytest.fixture340def gen_describe_instance_type_offerings_paginator(gen_ec2_client):341 return gen_ec2_client.get_paginator("describe_instance_type_offerings")342@pytest.fixture343def gen_describe_instance_types_paginator(gen_ec2_client):344 return gen_ec2_client.get_paginator("describe_instance_types")345@pytest.fixture346def gen_describe_local_gateway_route_table_virtual_interface_group_associations_paginator(347 gen_ec2_client,348):349 return gen_ec2_client.get_paginator(350 "describe_local_gateway_route_table_virtual_interface_group_associations"351 )352@pytest.fixture353def gen_describe_local_gateway_route_table_vpc_associations_paginator(gen_ec2_client):354 return gen_ec2_client.get_paginator(355 "describe_local_gateway_route_table_vpc_associations"356 )357@pytest.fixture358def gen_describe_local_gateway_route_tables_paginator(gen_ec2_client):359 return gen_ec2_client.get_paginator("describe_local_gateway_route_tables")360@pytest.fixture361def gen_describe_local_gateway_virtual_interface_groups_paginator(gen_ec2_client):362 return gen_ec2_client.get_paginator(363 "describe_local_gateway_virtual_interface_groups"364 )365@pytest.fixture366def gen_describe_local_gateway_virtual_interfaces_paginator(gen_ec2_client):367 return gen_ec2_client.get_paginator("describe_local_gateway_virtual_interfaces")368@pytest.fixture369def gen_describe_local_gateways_paginator(gen_ec2_client):370 return gen_ec2_client.get_paginator("describe_local_gateways")371@pytest.fixture372def gen_describe_transit_gateway_multicast_domains_paginator(gen_ec2_client):373 return gen_ec2_client.get_paginator("describe_transit_gateway_multicast_domains")374@pytest.fixture375def gen_describe_transit_gateway_peering_attachments_paginator(gen_ec2_client):376 return gen_ec2_client.get_paginator("describe_transit_gateway_peering_attachments")377@pytest.fixture378def gen_get_transit_gateway_multicast_domain_associations_paginator(gen_ec2_client):379 return gen_ec2_client.get_paginator(380 "get_transit_gateway_multicast_domain_associations"381 )382@pytest.fixture383def gen_search_local_gateway_routes_paginator(gen_ec2_client):384 return gen_ec2_client.get_paginator("search_local_gateway_routes")385@pytest.fixture386def gen_search_transit_gateway_multicast_groups_paginator(gen_ec2_client):387 return gen_ec2_client.get_paginator("search_transit_gateway_multicast_groups")388@pytest.fixture389def gen_describe_managed_prefix_lists_paginator(gen_ec2_client):390 return gen_ec2_client.get_paginator("describe_managed_prefix_lists")391@pytest.fixture392def gen_get_managed_prefix_list_associations_paginator(gen_ec2_client):393 return gen_ec2_client.get_paginator("get_managed_prefix_list_associations")394@pytest.fixture395def gen_get_managed_prefix_list_entries_paginator(gen_ec2_client):396 return gen_ec2_client.get_paginator("get_managed_prefix_list_entries")397@pytest.fixture398def gen_get_groups_for_capacity_reservation_paginator(gen_ec2_client):399 return gen_ec2_client.get_paginator("get_groups_for_capacity_reservation")400@pytest.fixture401def gen_describe_carrier_gateways_paginator(gen_ec2_client):402 return gen_ec2_client.get_paginator("describe_carrier_gateways")403@pytest.fixture404def gen_get_transit_gateway_prefix_list_references_paginator(gen_ec2_client):405 return gen_ec2_client.get_paginator("get_transit_gateway_prefix_list_references")406@pytest.fixture407def gen_describe_network_insights_analyses_paginator(gen_ec2_client):408 return gen_ec2_client.get_paginator("describe_network_insights_analyses")409@pytest.fixture410def gen_describe_network_insights_paths_paginator(gen_ec2_client):411 return gen_ec2_client.get_paginator("describe_network_insights_paths")412@pytest.fixture413def gen_describe_transit_gateway_connect_peers_paginator(gen_ec2_client):414 return gen_ec2_client.get_paginator("describe_transit_gateway_connect_peers")415@pytest.fixture416def gen_describe_transit_gateway_connects_paginator(gen_ec2_client):417 return gen_ec2_client.get_paginator("describe_transit_gateway_connects")418@pytest.fixture419def gen_describe_addresses_attribute_paginator(gen_ec2_client):420 return gen_ec2_client.get_paginator("describe_addresses_attribute")421@pytest.fixture422def gen_describe_replace_root_volume_tasks_paginator(gen_ec2_client):423 return gen_ec2_client.get_paginator("describe_replace_root_volume_tasks")424@pytest.fixture425def gen_describe_store_image_tasks_paginator(gen_ec2_client):426 return gen_ec2_client.get_paginator("describe_store_image_tasks")427@pytest.fixture428def gen_describe_security_group_rules_paginator(gen_ec2_client):429 return gen_ec2_client.get_paginator("describe_security_group_rules")430@pytest.fixture431def gen_describe_instance_event_windows_paginator(gen_ec2_client):432 return gen_ec2_client.get_paginator("describe_instance_event_windows")433@pytest.fixture434def gen_describe_trunk_interface_associations_paginator(gen_ec2_client):435 return gen_ec2_client.get_paginator("describe_trunk_interface_associations")436@pytest.fixture437def gen_get_vpn_connection_device_types_paginator(gen_ec2_client):438 return gen_ec2_client.get_paginator("get_vpn_connection_device_types")439@pytest.fixture440def gen_describe_capacity_reservation_fleets_paginator(gen_ec2_client):441 return gen_ec2_client.get_paginator("describe_capacity_reservation_fleets")442@pytest.fixture443def gen_get_instance_types_from_instance_requirements_paginator(gen_ec2_client):444 return gen_ec2_client.get_paginator("get_instance_types_from_instance_requirements")445@pytest.fixture446def gen_get_spot_placement_scores_paginator(gen_ec2_client):447 return gen_ec2_client.get_paginator("get_spot_placement_scores")448# ============================449# RESOURCES450# ============================451@pytest.fixture452def gen_classic_address(gen_ec2_resource):453 return gen_ec2_resource.ClassicAddress(random_str())454@pytest.fixture455def gen_dhcp_options(gen_ec2_resource):456 return gen_ec2_resource.DhcpOptions(random_str())457@pytest.fixture458def gen_image(gen_ec2_resource):459 return gen_ec2_resource.Image(random_str())460@pytest.fixture461def gen_instance(gen_ec2_resource):462 return gen_ec2_resource.Instance(random_str())463@pytest.fixture464def gen_internet_gateway(gen_ec2_resource):465 return gen_ec2_resource.InternetGateway(random_str())466@pytest.fixture467def gen_key_pair(gen_ec2_resource):468 return gen_ec2_resource.KeyPair(random_str())469@pytest.fixture470def gen_network_acl(gen_ec2_resource):471 return gen_ec2_resource.NetworkAcl(random_str())472@pytest.fixture473def gen_network_interface(gen_ec2_resource):474 return gen_ec2_resource.NetworkInterface(random_str())475@pytest.fixture476def gen_network_interface_association(gen_ec2_resource):477 return gen_ec2_resource.NetworkInterfaceAssociation(random_str())478@pytest.fixture479def gen_placement_group(gen_ec2_resource):480 return gen_ec2_resource.PlacementGroup(random_str())481@pytest.fixture482def gen_route(gen_ec2_resource):483 return gen_ec2_resource.Route(random_str(), random_str())484@pytest.fixture485def gen_route_table(gen_ec2_resource):486 return gen_ec2_resource.RouteTable(random_str())487@pytest.fixture488def gen_route_table_association(gen_ec2_resource):489 return gen_ec2_resource.RouteTableAssociation(random_str())490@pytest.fixture491def gen_security_group(gen_ec2_resource):492 return gen_ec2_resource.SecurityGroup(random_str())493@pytest.fixture494def gen_snapshot(gen_ec2_resource):495 return gen_ec2_resource.Snapshot(random_str())496@pytest.fixture497def gen_subnet(gen_ec2_resource):498 return gen_ec2_resource.Subnet(random_str())499@pytest.fixture500def gen_tag(gen_ec2_resource):501 return gen_ec2_resource.Tag(random_str(), random_str(), random_str())502@pytest.fixture503def gen_volume(gen_ec2_resource):504 return gen_ec2_resource.Volume(random_str())505@pytest.fixture506def gen_vpc(gen_ec2_resource):507 return gen_ec2_resource.Vpc(random_str())508@pytest.fixture509def gen_vpc_peering_connection(gen_ec2_resource):510 return gen_ec2_resource.VpcPeeringConnection(random_str())511@pytest.fixture512def gen_vpc_address(gen_ec2_resource):513 return gen_ec2_resource.VpcAddress(random_str())514# ============================515# COLLECTIONS516# ============================517@pytest.fixture518def gen_service_resource_classic_addresses_collection(gen_ec2_resource):519 return gen_ec2_resource.classic_addresses.all()520@pytest.fixture521def gen_service_resource_dhcp_options_sets_collection(gen_ec2_resource):522 return gen_ec2_resource.dhcp_options_sets.all()523@pytest.fixture524def gen_service_resource_images_collection(gen_ec2_resource):525 return gen_ec2_resource.images.all()526@pytest.fixture527def gen_service_resource_instances_collection(gen_ec2_resource):528 return gen_ec2_resource.instances.all()529@pytest.fixture530def gen_service_resource_internet_gateways_collection(gen_ec2_resource):531 return gen_ec2_resource.internet_gateways.all()532@pytest.fixture533def gen_service_resource_key_pairs_collection(gen_ec2_resource):534 return gen_ec2_resource.key_pairs.all()535@pytest.fixture536def gen_service_resource_network_acls_collection(gen_ec2_resource):537 return gen_ec2_resource.network_acls.all()538@pytest.fixture539def gen_service_resource_network_interfaces_collection(gen_ec2_resource):540 return gen_ec2_resource.network_interfaces.all()541@pytest.fixture542def gen_service_resource_placement_groups_collection(gen_ec2_resource):543 return gen_ec2_resource.placement_groups.all()544@pytest.fixture545def gen_service_resource_route_tables_collection(gen_ec2_resource):546 return gen_ec2_resource.route_tables.all()547@pytest.fixture548def gen_service_resource_security_groups_collection(gen_ec2_resource):549 return gen_ec2_resource.security_groups.all()550@pytest.fixture551def gen_service_resource_snapshots_collection(gen_ec2_resource):552 return gen_ec2_resource.snapshots.all()553@pytest.fixture554def gen_service_resource_subnets_collection(gen_ec2_resource):555 return gen_ec2_resource.subnets.all()556@pytest.fixture557def gen_service_resource_volumes_collection(gen_ec2_resource):558 return gen_ec2_resource.volumes.all()559@pytest.fixture560def gen_service_resource_vpc_addresses_collection(gen_ec2_resource):561 return gen_ec2_resource.vpc_addresses.all()562@pytest.fixture563def gen_service_resource_vpc_peering_connections_collection(gen_ec2_resource):564 return gen_ec2_resource.vpc_peering_connections.all()565@pytest.fixture566def gen_service_resource_vpcs_collection(gen_ec2_resource):567 return gen_ec2_resource.vpcs.all()568@pytest.fixture569def gen_instance_volumes_collection(gen_instance):570 return gen_instance.volumes.all()571@pytest.fixture572def gen_instance_vpc_addresses_collection(gen_instance):573 return gen_instance.vpc_addresses.all()574@pytest.fixture575def gen_placement_group_instances_collection(gen_placement_group):576 return gen_placement_group.instances.all()577@pytest.fixture578def gen_subnet_instances_collection(gen_subnet):579 return gen_subnet.instances.all()580@pytest.fixture581def gen_subnet_network_interfaces_collection(gen_subnet):582 return gen_subnet.network_interfaces.all()583@pytest.fixture584def gen_volume_snapshots_collection(gen_volume):585 return gen_volume.snapshots.all()586@pytest.fixture587def gen_vpc_accepted_vpc_peering_connections_collection(gen_vpc):588 return gen_vpc.accepted_vpc_peering_connections.all()589@pytest.fixture590def gen_vpc_instances_collection(gen_vpc):591 return gen_vpc.instances.all()592@pytest.fixture593def gen_vpc_internet_gateways_collection(gen_vpc):594 return gen_vpc.internet_gateways.all()595@pytest.fixture596def gen_vpc_network_acls_collection(gen_vpc):597 return gen_vpc.network_acls.all()598@pytest.fixture599def gen_vpc_network_interfaces_collection(gen_vpc):600 return gen_vpc.network_interfaces.all()601@pytest.fixture602def gen_vpc_requested_vpc_peering_connections_collection(gen_vpc):603 return gen_vpc.requested_vpc_peering_connections.all()604@pytest.fixture605def gen_vpc_route_tables_collection(gen_vpc):606 return gen_vpc.route_tables.all()607@pytest.fixture608def gen_vpc_security_groups_collection(gen_vpc):609 return gen_vpc.security_groups.all()610@pytest.fixture611def gen_vpc_subnets_collection(gen_vpc):...

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