Skip to main content

Ec2State

Struct Ec2State 

Source
pub struct Ec2State {
Show 165 fields pub vpcs: HashMap<String, Vpc>, pub subnets: HashMap<String, Subnet>, pub igws: HashMap<String, InternetGateway>, pub security_groups: HashMap<String, SecurityGroup>, pub route_tables: HashMap<String, RouteTable>, pub key_pairs: HashMap<String, KeyPair>, pub network_acls: HashMap<String, NetworkAcl>, pub elastic_ips: HashMap<String, ElasticIp>, pub nat_gateways: HashMap<String, NatGateway>, pub dhcp_options: HashMap<String, DhcpOptions>, pub egress_only_igws: HashMap<String, EgressOnlyInternetGateway>, pub flow_logs: HashMap<String, FlowLog>, pub vpc_peering_connections: HashMap<String, VpcPeeringConnection>, pub vpc_endpoints: HashMap<String, VpcEndpoint>, pub managed_prefix_lists: HashMap<String, ManagedPrefixList>, pub customer_gateways: HashMap<String, CustomerGateway>, pub vpn_gateways: HashMap<String, VpnGateway>, pub vpn_connections: HashMap<String, VpnConnection>, pub carrier_gateways: HashMap<String, CarrierGateway>, pub network_interfaces: HashMap<String, NetworkInterface>, pub vpc_cidr_associations: HashMap<String, String>, pub ebs_encryption_by_default: bool, pub ebs_default_kms_key_id: Option<String>, pub serial_console_access_enabled: bool, pub allowed_images_settings_state: Option<String>, pub image_block_public_access_state: Option<String>, pub aws_network_performance_subscriptions: HashMap<(String, String, String, String), AwsNetworkPerformanceSubscription>, pub transit_gateways: HashMap<String, TransitGateway>, pub tgw_vpc_attachments: HashMap<String, TransitGatewayVpcAttachment>, pub tgw_peering_attachments: HashMap<String, TransitGatewayPeeringAttachment>, pub tgw_route_tables: HashMap<String, TransitGatewayRouteTable>, pub tgw_routes: HashMap<String, Vec<TransitGatewayRoute>>, pub instances: HashMap<String, Instance>, pub volumes: HashMap<String, Volume>, pub snapshots: HashMap<String, Snapshot>, pub images: HashMap<String, Image>, pub deregistered_images: HashSet<String>, pub launch_templates: HashMap<String, LaunchTemplate>, pub launch_template_versions: HashMap<String, Vec<LaunchTemplateVersion>>, pub spot_requests: HashMap<String, SpotInstanceRequest>, pub spot_datafeed_subscription: Option<SpotDatafeedSubscription>, pub iam_instance_profile_associations: HashMap<String, IamInstanceProfileAssociation>, pub dedicated_hosts: HashMap<String, DedicatedHost>, pub ec2_fleets: HashMap<String, Ec2Fleet>, pub vpc_endpoint_service_configs: HashMap<String, VpcEndpointServiceConfiguration>, pub spot_fleet_requests: HashMap<String, SpotFleetRequest>, pub subnet_cidr_reservations: HashMap<String, SubnetCidrReservationEntry>, pub placement_groups: HashMap<String, PlacementGroup>, pub network_interface_permissions: HashMap<String, NetworkInterfacePermission>, pub instance_connect_endpoints: HashMap<String, InstanceConnectEndpoint>, pub capacity_reservations: HashMap<String, CapacityReservation>, pub capacity_reservation_fleets: HashMap<String, CapacityReservationFleet>, pub coip_pools: HashMap<String, CoipPool>, pub byoip_cidrs: HashMap<String, ByoipCidr>, pub public_ipv4_pools: HashMap<String, PublicIpv4Pool>, pub coip_cidrs: HashMap<(String, String), CoipCidr>, pub address_transfers: HashMap<String, AddressTransfer>, pub security_group_vpc_associations: HashMap<(String, String), SecurityGroupVpcAssociation>, pub enclave_certificate_iam_role_associations: HashMap<(String, String), EnclaveCertificateIamRoleAssociation>, pub mac_sip_modification_tasks: HashMap<String, MacSipModificationTask>, pub declarative_policies_reports: HashMap<String, DeclarativePoliciesReport>, pub vpn_concentrators: HashMap<String, VpnConcentrator>, pub vpc_endpoint_connections: HashMap<(String, String), VpcEndpointConnection>, pub vpc_endpoint_connection_notifications: HashMap<String, VpcEndpointConnectionNotification>, pub vpc_block_public_access_exclusions: HashMap<String, VpcBlockPublicAccessExclusion>, pub vpc_block_public_access_options: Option<VpcBlockPublicAccessOptions>, pub vpc_encryption_controls: HashMap<String, VpcEncryptionControl>, pub mac_volume_ownership_tasks: HashMap<String, MacVolumeOwnershipTask>, pub replace_root_volume_tasks: HashMap<String, ReplaceRootVolumeTask>, pub snapshot_import_tasks: HashMap<String, SnapshotImportTask>, pub conversion_tasks: HashMap<String, ConversionTask>, pub export_tasks: HashMap<String, ExportTask>, pub import_tasks: HashMap<String, (String, Option<String>)>, pub trunk_interface_associations: HashMap<String, TrunkInterfaceAssociation>, pub secondary_networks: HashMap<String, SecondaryNetwork>, pub secondary_subnets: HashMap<String, SecondarySubnet>, pub deleted_volumes_recycle_bin: HashMap<String, Volume>, pub deleted_snapshots_recycle_bin: HashMap<String, Snapshot>, pub reserved_instances_exchanges: HashMap<String, ReservedInstancesExchange>, pub reserved_instances_listings: HashMap<String, ReservedInstancesListing>, pub queued_reserved_instances_purchases: HashMap<String, ReservedInstancesPurchase>, pub reserved_instances_modifications: HashMap<String, ReservedInstancesModification>, pub reserved_instances_purchases: HashMap<String, ReservedInstancesPurchase>, pub reserved_instances: HashMap<String, ReservedInstances>, pub fpga_images: HashMap<String, FpgaImage>, pub image_usage_reports: HashMap<String, ImageUsageReport>, pub restore_image_tasks: HashMap<String, RestoreImageTask>, pub store_image_tasks: HashMap<String, StoreImageTask>, pub import_image_tasks: HashMap<String, ImportImageTask>, pub allowed_image_criteria: Vec<AllowedImageCriterion>, pub default_credit_specifications: HashMap<String, String>, pub instance_metadata_defaults: Option<InstanceMetadataDefaults>, pub instance_event_windows: HashMap<String, InstanceEventWindow>, pub instance_event_notification_attributes: Option<InstanceTagNotificationAttributes>, pub instance_events: HashMap<String, InstanceEvent>, pub host_reservations: HashMap<String, HostReservation>, pub scheduled_instances: HashMap<String, ScheduledInstance>, pub az_group_opt_in: HashMap<String, String>, pub instance_status_reports: Vec<InstanceStatusReport>, pub network_insights_access_scopes: HashMap<String, NetworkInsightsAccessScope>, pub network_insights_access_scope_analyses: HashMap<String, NetworkInsightsAccessScopeAnalysis>, pub network_insights_paths: HashMap<String, NetworkInsightsPath>, pub network_insights_analyses: HashMap<String, NetworkInsightsAnalysis>, pub traffic_mirror_filters: HashMap<String, TrafficMirrorFilter>, pub traffic_mirror_sessions: HashMap<String, TrafficMirrorSession>, pub traffic_mirror_targets: HashMap<String, TrafficMirrorTarget>, pub client_vpn_endpoints: HashMap<String, ClientVpnEndpoint>, pub client_vpn_target_network_associations: HashMap<String, ClientVpnTargetNetworkAssociation>, pub client_vpn_authorization_rules: HashMap<(String, String, String), ClientVpnAuthorizationRule>, pub client_vpn_routes: HashMap<(String, String, String), ClientVpnRoute>, pub client_vpn_connections: HashMap<String, ClientVpnConnection>, pub local_gateways: HashMap<String, LocalGateway>, pub local_gateway_route_tables: HashMap<String, LocalGatewayRouteTable>, pub local_gateway_routes: HashMap<(String, String), LocalGatewayRoute>, pub local_gateway_route_table_virtual_interface_group_associations: HashMap<String, LocalGatewayRouteTableVirtualInterfaceGroupAssociation>, pub local_gateway_route_table_vpc_associations: HashMap<String, LocalGatewayRouteTableVpcAssociation>, pub local_gateway_virtual_interfaces: HashMap<String, LocalGatewayVirtualInterface>, pub local_gateway_virtual_interface_groups: HashMap<String, LocalGatewayVirtualInterfaceGroup>, pub route_servers: HashMap<String, RouteServer>, pub route_server_endpoints: HashMap<String, RouteServerEndpoint>, pub route_server_peers: HashMap<String, RouteServerPeer>, pub route_server_associations: HashMap<(String, String), RouteServerAssociation>, pub verified_access_instances: HashMap<String, VerifiedAccessInstance>, pub verified_access_trust_providers: HashMap<String, VerifiedAccessTrustProvider>, pub verified_access_groups: HashMap<String, VerifiedAccessGroup>, pub verified_access_endpoints: HashMap<String, VerifiedAccessEndpoint>, pub verified_access_trust_provider_attachments: HashMap<(String, String), VerifiedAccessTrustProviderAttachment>, pub verified_access_instance_logging_configurations: HashMap<String, VerifiedAccessLogs>, pub billing_ownership_offers: HashMap<(String, String), BillingOwnershipOffer>, pub capacity_manager_data_exports: HashMap<String, CapacityManagerDataExport>, pub interruptible_capacity_reservation_allocations: HashMap<String, InterruptibleCapacityReservationAllocation>, pub capacity_blocks: HashMap<String, CapacityBlock>, pub capacity_block_extensions: HashMap<String, CapacityBlockExtension>, pub capacity_manager_organizations_access: Option<CapacityManagerOrganizationsAccess>, pub tgw_multicast_domains: HashMap<String, TransitGatewayMulticastDomain>, pub tgw_multicast_domain_associations: HashMap<(String, String), TransitGatewayMulticastDomainAssociation>, pub tgw_multicast_group_members: HashMap<(String, String, String), TransitGatewayMulticastGroupMember>, pub tgw_multicast_group_sources: HashMap<(String, String, String), TransitGatewayMulticastGroupSource>, pub tgw_connects: HashMap<String, TransitGatewayConnect>, pub tgw_connect_peers: HashMap<String, TransitGatewayConnectPeer>, pub tgw_metering_policies: HashMap<String, TransitGatewayMeteringPolicy>, pub tgw_metering_policy_entries: HashMap<(String, String), TransitGatewayMeteringPolicyEntry>, pub tgw_policy_tables: HashMap<String, TransitGatewayPolicyTable>, pub tgw_policy_table_associations: HashMap<(String, String), TransitGatewayPolicyTableAssociation>, pub tgw_prefix_list_references: HashMap<(String, String), TransitGatewayPrefixListReference>, pub tgw_route_table_announcements: HashMap<String, TransitGatewayRouteTableAnnouncement>, pub ipams: HashMap<String, Ipam>, pub ipam_scopes: HashMap<String, IpamScope>, pub ipam_pools: HashMap<String, IpamPool>, pub ipam_pool_cidrs: HashMap<(String, String), IpamPoolCidr>, pub ipam_pool_allocations: HashMap<(String, String), IpamPoolAllocation>, pub ipam_resource_discoveries: HashMap<String, IpamResourceDiscovery>, pub ipam_resource_discovery_associations: HashMap<String, IpamResourceDiscoveryAssociation>, pub ipam_byoasns: HashMap<(String, String), IpamByoasn>, pub ipam_external_resource_verification_tokens: HashMap<String, IpamExternalResourceVerificationToken>, pub ipam_policies: HashMap<String, IpamPolicy>, pub ipam_prefix_list_resolvers: HashMap<String, IpamPrefixListResolver>, pub ipam_prefix_list_resolver_targets: HashMap<(String, String), IpamPrefixListResolverTarget>, pub volume_modifications: HashMap<String, VolumeModification>, pub import_volume_tasks: HashMap<String, ImportVolumeTask>, pub bundle_tasks: HashMap<String, BundleTask>, pub id_format: HashMap<String, IdFormatEntry>, pub outpost_lags: HashMap<String, OutpostLag>, pub export_image_tasks: HashMap<String, ExportImageTask>, pub counters: Ec2Counters,
}

Fields§

§vpcs: HashMap<String, Vpc>§subnets: HashMap<String, Subnet>§igws: HashMap<String, InternetGateway>§security_groups: HashMap<String, SecurityGroup>§route_tables: HashMap<String, RouteTable>§key_pairs: HashMap<String, KeyPair>§network_acls: HashMap<String, NetworkAcl>§elastic_ips: HashMap<String, ElasticIp>§nat_gateways: HashMap<String, NatGateway>§dhcp_options: HashMap<String, DhcpOptions>§egress_only_igws: HashMap<String, EgressOnlyInternetGateway>§flow_logs: HashMap<String, FlowLog>§vpc_peering_connections: HashMap<String, VpcPeeringConnection>§vpc_endpoints: HashMap<String, VpcEndpoint>§managed_prefix_lists: HashMap<String, ManagedPrefixList>§customer_gateways: HashMap<String, CustomerGateway>§vpn_gateways: HashMap<String, VpnGateway>§vpn_connections: HashMap<String, VpnConnection>§carrier_gateways: HashMap<String, CarrierGateway>§network_interfaces: HashMap<String, NetworkInterface>§vpc_cidr_associations: HashMap<String, String>§ebs_encryption_by_default: bool§ebs_default_kms_key_id: Option<String>

Account-level EBS default KMS key ID, set by ModifyEbsDefaultKmsKeyId and reset by ResetEbsDefaultKmsKeyId. None means use the AWS-managed default alias/aws/ebs.

§serial_console_access_enabled: bool

Toggle for EnableSerialConsoleAccess / DisableSerialConsoleAccess.

§allowed_images_settings_state: Option<String>

State for EnableAllowedImagesSettings / DisableAllowedImagesSettings, independent of the criteria list. None means never configured (treated as disabled).

§image_block_public_access_state: Option<String>

Account-level state for EnableImageBlockPublicAccess. One of block-new-sharing, unblocked. None means never configured.

§aws_network_performance_subscriptions: HashMap<(String, String, String, String), AwsNetworkPerformanceSubscription>

Account-level AWS Network Performance metric subscriptions, keyed by (source, destination, metric, statistic).

§transit_gateways: HashMap<String, TransitGateway>§tgw_vpc_attachments: HashMap<String, TransitGatewayVpcAttachment>§tgw_peering_attachments: HashMap<String, TransitGatewayPeeringAttachment>§tgw_route_tables: HashMap<String, TransitGatewayRouteTable>§tgw_routes: HashMap<String, Vec<TransitGatewayRoute>>§instances: HashMap<String, Instance>§volumes: HashMap<String, Volume>§snapshots: HashMap<String, Snapshot>§images: HashMap<String, Image>§deregistered_images: HashSet<String>

IDs of images that were explicitly deregistered. Used to suppress stub-synthesis in describe_images for IDs that once existed.

§launch_templates: HashMap<String, LaunchTemplate>§launch_template_versions: HashMap<String, Vec<LaunchTemplateVersion>>§spot_requests: HashMap<String, SpotInstanceRequest>§spot_datafeed_subscription: Option<SpotDatafeedSubscription>

Singleton per-account spot-instance datafeed subscription. None after DeleteSpotDatafeedSubscription or before any CreateSpotDatafeedSubscription; Describe should return an InvalidSpotDatafeed.NotFound error when this is None.

§iam_instance_profile_associations: HashMap<String, IamInstanceProfileAssociation>§dedicated_hosts: HashMap<String, DedicatedHost>§ec2_fleets: HashMap<String, Ec2Fleet>§vpc_endpoint_service_configs: HashMap<String, VpcEndpointServiceConfiguration>§spot_fleet_requests: HashMap<String, SpotFleetRequest>§subnet_cidr_reservations: HashMap<String, SubnetCidrReservationEntry>§placement_groups: HashMap<String, PlacementGroup>§network_interface_permissions: HashMap<String, NetworkInterfacePermission>§instance_connect_endpoints: HashMap<String, InstanceConnectEndpoint>§capacity_reservations: HashMap<String, CapacityReservation>§capacity_reservation_fleets: HashMap<String, CapacityReservationFleet>§coip_pools: HashMap<String, CoipPool>§byoip_cidrs: HashMap<String, ByoipCidr>

Bring-your-own-IP CIDRs, keyed by CIDR.

§public_ipv4_pools: HashMap<String, PublicIpv4Pool>

Public IPv4 pools, keyed by pool ID.

§coip_cidrs: HashMap<(String, String), CoipCidr>

Customer-owned IP CIDRs, keyed by (cidr, coip_pool_id).

§address_transfers: HashMap<String, AddressTransfer>

Pending / accepted EIP transfer offers, keyed by allocation ID.

§security_group_vpc_associations: HashMap<(String, String), SecurityGroupVpcAssociation>

Keyed by (group_id, vpc_id).

§enclave_certificate_iam_role_associations: HashMap<(String, String), EnclaveCertificateIamRoleAssociation>

Keyed by (certificate_arn, role_arn).

§mac_sip_modification_tasks: HashMap<String, MacSipModificationTask>§declarative_policies_reports: HashMap<String, DeclarativePoliciesReport>§vpn_concentrators: HashMap<String, VpnConcentrator>

Mock VPN concentrator records, keyed by vpn-concentrator-... ID.

§vpc_endpoint_connections: HashMap<(String, String), VpcEndpointConnection>

Pending / accepted endpoint connections to a service configuration, keyed by (service_id, vpc_endpoint_id).

§vpc_endpoint_connection_notifications: HashMap<String, VpcEndpointConnectionNotification>

VPC endpoint connection notifications, keyed by notification ID.

§vpc_block_public_access_exclusions: HashMap<String, VpcBlockPublicAccessExclusion>

VPC block public access exclusions, keyed by exclusion ID.

§vpc_block_public_access_options: Option<VpcBlockPublicAccessOptions>

Account/region-level block public access options. There is at most one of these per account/region; this is the live value (or None when ModifyVpcBlockPublicAccessOptions has never been called).

§vpc_encryption_controls: HashMap<String, VpcEncryptionControl>

VPC encryption controls, keyed by vpc-encryption-control-... ID.

§mac_volume_ownership_tasks: HashMap<String, MacVolumeOwnershipTask>

Mac volume ownership delegation tasks, keyed by task ID.

§replace_root_volume_tasks: HashMap<String, ReplaceRootVolumeTask>

Replace-root-volume tasks, keyed by task ID.

§snapshot_import_tasks: HashMap<String, SnapshotImportTask>

Snapshot import tasks, keyed by import-snap-... ID.

§conversion_tasks: HashMap<String, ConversionTask>

Conversion tasks (ImportInstance / ImportVolume), keyed by task ID.

§export_tasks: HashMap<String, ExportTask>

Export tasks (CreateInstanceExportTask), keyed by export task ID.

§import_tasks: HashMap<String, (String, Option<String>)>

Generic import tasks (e.g. ImportImage), keyed by import task ID. Stores (state, previous_state) so CancelImportTask can report the transition.

§trunk_interface_associations: HashMap<String, TrunkInterfaceAssociation>

Branch / trunk interface associations, keyed by association ID.

§secondary_networks: HashMap<String, SecondaryNetwork>

Secondary networks, keyed by network ID.

§secondary_subnets: HashMap<String, SecondarySubnet>

Secondary subnets, keyed by subnet ID.

§deleted_volumes_recycle_bin: HashMap<String, Volume>

Volumes that have been logically deleted but are recoverable via RestoreVolumeFromRecycleBin. Mock policy treats every volume deletion as recoverable.

§deleted_snapshots_recycle_bin: HashMap<String, Snapshot>

Snapshots that have been logically deleted but are recoverable via RestoreSnapshotFromRecycleBin.

§reserved_instances_exchanges: HashMap<String, ReservedInstancesExchange>

Reserved Instance exchange-quote acceptance records, keyed by exchange ID.

§reserved_instances_listings: HashMap<String, ReservedInstancesListing>

Reserved Instance marketplace listings, keyed by listing ID.

§queued_reserved_instances_purchases: HashMap<String, ReservedInstancesPurchase>

Queued (not-yet-active) Reserved Instance purchase records.

§reserved_instances_modifications: HashMap<String, ReservedInstancesModification>

Reserved Instance modification requests, keyed by modification ID.

§reserved_instances_purchases: HashMap<String, ReservedInstancesPurchase>

Active Reserved Instance purchases, keyed by purchase ID.

§reserved_instances: HashMap<String, ReservedInstances>

Active Reserved Instances, keyed by ReservedInstancesId.

§fpga_images: HashMap<String, FpgaImage>

FPGA images, keyed by FpgaImageId.

§image_usage_reports: HashMap<String, ImageUsageReport>

Image-usage reports, keyed by ReportId.

§restore_image_tasks: HashMap<String, RestoreImageTask>

In-progress and completed CreateRestoreImageTask records, keyed by image_id.

§store_image_tasks: HashMap<String, StoreImageTask>

In-progress and completed CreateStoreImageTask records, keyed by ami_id.

§import_image_tasks: HashMap<String, ImportImageTask>

ImportImage task records, keyed by import-task-id.

§allowed_image_criteria: Vec<AllowedImageCriterion>

Per-region allowed AMI criteria.

§default_credit_specifications: HashMap<String, String>

Per-account default credit specification, keyed by instance family.

§instance_metadata_defaults: Option<InstanceMetadataDefaults>

Account-level / per-region instance metadata defaults.

§instance_event_windows: HashMap<String, InstanceEventWindow>

Instance event windows, keyed by InstanceEventWindowId.

§instance_event_notification_attributes: Option<InstanceTagNotificationAttributes>

Instance event notification attributes (single-record-per-account).

§instance_events: HashMap<String, InstanceEvent>

Scheduled instance status events, keyed by event_id.

§host_reservations: HashMap<String, HostReservation>

Host reservations, keyed by host-reservation ID.

§scheduled_instances: HashMap<String, ScheduledInstance>

Scheduled instances, keyed by scheduled_instance_id.

§az_group_opt_in: HashMap<String, String>

Per-AZ-group opt-in status.

§instance_status_reports: Vec<InstanceStatusReport>

User-submitted instance status reports.

§network_insights_access_scopes: HashMap<String, NetworkInsightsAccessScope>

Network Insights access scopes, keyed by scope ID.

§network_insights_access_scope_analyses: HashMap<String, NetworkInsightsAccessScopeAnalysis>

Network Insights access scope analyses, keyed by analysis ID.

§network_insights_paths: HashMap<String, NetworkInsightsPath>

Network Insights paths, keyed by path ID.

§network_insights_analyses: HashMap<String, NetworkInsightsAnalysis>

Network Insights analyses, keyed by analysis ID.

§traffic_mirror_filters: HashMap<String, TrafficMirrorFilter>

Traffic Mirror filters, keyed by filter ID.

§traffic_mirror_sessions: HashMap<String, TrafficMirrorSession>

Traffic Mirror sessions, keyed by session ID.

§traffic_mirror_targets: HashMap<String, TrafficMirrorTarget>

Traffic Mirror targets, keyed by target ID.

§client_vpn_endpoints: HashMap<String, ClientVpnEndpoint>

Client VPN endpoints, keyed by endpoint ID.

§client_vpn_target_network_associations: HashMap<String, ClientVpnTargetNetworkAssociation>

Client VPN target-network associations, keyed by association ID.

§client_vpn_authorization_rules: HashMap<(String, String, String), ClientVpnAuthorizationRule>

Client VPN authorization rules, keyed by (endpoint_id, destination_cidr, group_id).

§client_vpn_routes: HashMap<(String, String, String), ClientVpnRoute>

Client VPN routes, keyed by (endpoint_id, destination_cidr, target_subnet).

§client_vpn_connections: HashMap<String, ClientVpnConnection>

Client VPN connections, keyed by connection ID.

§local_gateways: HashMap<String, LocalGateway>

Local Gateways, keyed by lgw-... ID. Seeded on demand by tests/handlers.

§local_gateway_route_tables: HashMap<String, LocalGatewayRouteTable>

Local Gateway route tables, keyed by lgw-rtb-... ID.

§local_gateway_routes: HashMap<(String, String), LocalGatewayRoute>

Local Gateway routes, keyed by (local_gateway_route_table_id, destination_cidr_block).

§local_gateway_route_table_virtual_interface_group_associations: HashMap<String, LocalGatewayRouteTableVirtualInterfaceGroupAssociation>

Virtual-interface group associations, keyed by association ID.

§local_gateway_route_table_vpc_associations: HashMap<String, LocalGatewayRouteTableVpcAssociation>

VPC associations, keyed by association ID.

§local_gateway_virtual_interfaces: HashMap<String, LocalGatewayVirtualInterface>

Local Gateway virtual interfaces, keyed by virtual interface ID.

§local_gateway_virtual_interface_groups: HashMap<String, LocalGatewayVirtualInterfaceGroup>

Local Gateway virtual interface groups, keyed by group ID.

§route_servers: HashMap<String, RouteServer>

Route Servers, keyed by rs-... ID.

§route_server_endpoints: HashMap<String, RouteServerEndpoint>

Route Server endpoints, keyed by endpoint ID.

§route_server_peers: HashMap<String, RouteServerPeer>

Route Server peers, keyed by peer ID.

§route_server_associations: HashMap<(String, String), RouteServerAssociation>

Route Server <-> VPC associations, keyed by (route_server_id, vpc_id).

§verified_access_instances: HashMap<String, VerifiedAccessInstance>

Verified Access instances, keyed by vai-... ID.

§verified_access_trust_providers: HashMap<String, VerifiedAccessTrustProvider>

Verified Access trust providers, keyed by vatp-... ID.

§verified_access_groups: HashMap<String, VerifiedAccessGroup>

Verified Access groups, keyed by vagr-... ID.

§verified_access_endpoints: HashMap<String, VerifiedAccessEndpoint>

Verified Access endpoints, keyed by vae-... ID.

§verified_access_trust_provider_attachments: HashMap<(String, String), VerifiedAccessTrustProviderAttachment>

Trust-provider <-> instance attachments, keyed by (instance_id, trust_provider_id).

§verified_access_instance_logging_configurations: HashMap<String, VerifiedAccessLogs>

Per-instance logging configuration, keyed by instance ID.

§billing_ownership_offers: HashMap<(String, String), BillingOwnershipOffer>

Pending / accepted billing-ownership offers, keyed by (capacity_reservation_id, account_id).

§capacity_manager_data_exports: HashMap<String, CapacityManagerDataExport>

Capacity Manager data exports, keyed by export ID.

§interruptible_capacity_reservation_allocations: HashMap<String, InterruptibleCapacityReservationAllocation>

Interruptible capacity-reservation allocations, keyed by allocation ID.

§capacity_blocks: HashMap<String, CapacityBlock>

Capacity Block purchases, keyed by capacity block ID.

§capacity_block_extensions: HashMap<String, CapacityBlockExtension>

Capacity Block extensions, keyed by extension ID.

§capacity_manager_organizations_access: Option<CapacityManagerOrganizationsAccess>

Account-level Capacity Manager Organizations access state.

§tgw_multicast_domains: HashMap<String, TransitGatewayMulticastDomain>

TGW multicast domains, keyed by tgw-mcast-domain-... ID.

§tgw_multicast_domain_associations: HashMap<(String, String), TransitGatewayMulticastDomainAssociation>

TGW multicast domain↔VPC associations, keyed by (domain_id, attachment_id).

§tgw_multicast_group_members: HashMap<(String, String, String), TransitGatewayMulticastGroupMember>

TGW multicast group members, keyed by (domain_id, group_ip, network_interface_id).

§tgw_multicast_group_sources: HashMap<(String, String, String), TransitGatewayMulticastGroupSource>

TGW multicast group sources, keyed by (domain_id, group_ip, network_interface_id).

§tgw_connects: HashMap<String, TransitGatewayConnect>

TGW connect attachments, keyed by attachment ID.

§tgw_connect_peers: HashMap<String, TransitGatewayConnectPeer>

TGW connect peers, keyed by tgw-connect-peer-... ID.

§tgw_metering_policies: HashMap<String, TransitGatewayMeteringPolicy>

TGW metering policies, keyed by tgw-mp-... ID.

§tgw_metering_policy_entries: HashMap<(String, String), TransitGatewayMeteringPolicyEntry>

TGW metering policy entries, keyed by (policy_id, entry_id).

§tgw_policy_tables: HashMap<String, TransitGatewayPolicyTable>

TGW policy tables, keyed by tgw-rtb-policy-... ID.

§tgw_policy_table_associations: HashMap<(String, String), TransitGatewayPolicyTableAssociation>

TGW policy table associations, keyed by (policy_table_id, attachment_id).

§tgw_prefix_list_references: HashMap<(String, String), TransitGatewayPrefixListReference>

TGW prefix-list references, keyed by (route_table_id, prefix_list_id).

§tgw_route_table_announcements: HashMap<String, TransitGatewayRouteTableAnnouncement>

TGW route-table announcements, keyed by announcement ID.

§ipams: HashMap<String, Ipam>

IPAMs, keyed by ipam-... ID.

§ipam_scopes: HashMap<String, IpamScope>

IPAM scopes, keyed by ipam-scope-... ID.

§ipam_pools: HashMap<String, IpamPool>

IPAM pools, keyed by ipam-pool-... ID.

§ipam_pool_cidrs: HashMap<(String, String), IpamPoolCidr>

IPAM pool CIDRs, keyed by (pool_id, cidr).

§ipam_pool_allocations: HashMap<(String, String), IpamPoolAllocation>

IPAM pool allocations, keyed by (pool_id, allocation_id).

§ipam_resource_discoveries: HashMap<String, IpamResourceDiscovery>

IPAM resource discoveries, keyed by ipam-res-disco-... ID.

§ipam_resource_discovery_associations: HashMap<String, IpamResourceDiscoveryAssociation>

IPAM resource discovery associations, keyed by association ID.

§ipam_byoasns: HashMap<(String, String), IpamByoasn>

IPAM BYO-ASNs, keyed by (ipam_id, asn).

§ipam_external_resource_verification_tokens: HashMap<String, IpamExternalResourceVerificationToken>

IPAM external resource verification tokens, keyed by token ID.

§ipam_policies: HashMap<String, IpamPolicy>

IPAM policies, keyed by ipam-policy-... ID.

§ipam_prefix_list_resolvers: HashMap<String, IpamPrefixListResolver>

IPAM prefix list resolvers, keyed by resolver ID.

§ipam_prefix_list_resolver_targets: HashMap<(String, String), IpamPrefixListResolverTarget>

IPAM prefix list resolver targets, keyed by (resolver_id, target_id).

§volume_modifications: HashMap<String, VolumeModification>

ModifyVolume records, keyed by volume_id.

§import_volume_tasks: HashMap<String, ImportVolumeTask>

ImportVolume conversion tasks, keyed by conversion_task_id.

§bundle_tasks: HashMap<String, BundleTask>

BundleInstance tasks, keyed by bundle_id.

§id_format: HashMap<String, IdFormatEntry>

Per-resource-type long/short ID format toggles. Defaults to long IDs for any resource not explicitly modified.

§outpost_lags: HashMap<String, OutpostLag>

Outpost LAGs, keyed by outpost-lag ID.

§export_image_tasks: HashMap<String, ExportImageTask>

ExportImage tasks, keyed by export_image_task_id.

§counters: Ec2Counters

Implementations§

Source§

impl Ec2State

Source

pub fn next_sgr_id(&mut self) -> String

Source

pub fn next_tgw_multicast_domain_id(&mut self) -> String

Source

pub fn next_tgw_connect_id(&mut self) -> String

Source

pub fn next_tgw_connect_peer_id(&mut self) -> String

Source

pub fn next_tgw_metering_policy_id(&mut self) -> String

Source

pub fn next_tgw_metering_policy_entry_id(&mut self) -> String

Source

pub fn next_tgw_policy_table_id(&mut self) -> String

Source

pub fn next_tgw_route_table_announcement_id(&mut self) -> String

Source

pub fn create_network_acl( &mut self, vpc_id: &str, tags: Tags, ) -> Result<&NetworkAcl, Ec2Error>

Source

pub fn delete_network_acl(&mut self, nacl_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_network_acl_entry( &mut self, nacl_id: &str, entry: NetworkAclEntry, ) -> Result<(), Ec2Error>

Source

pub fn delete_network_acl_entry( &mut self, nacl_id: &str, rule_number: i32, egress: bool, ) -> Result<(), Ec2Error>

Source

pub fn replace_network_acl_entry( &mut self, nacl_id: &str, entry: NetworkAclEntry, ) -> Result<(), Ec2Error>

Source

pub fn replace_network_acl_association( &mut self, assoc_id: &str, new_nacl_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn allocate_address(&mut self, tags: Tags) -> &ElasticIp

Source

pub fn release_address(&mut self, allocation_id: &str) -> Result<(), Ec2Error>

Source

pub fn associate_address( &mut self, allocation_id: &str, instance_id: Option<String>, network_interface_id: Option<String>, private_ip: Option<String>, ) -> Result<String, Ec2Error>

Source

pub fn disassociate_address( &mut self, association_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_nat_gateway( &mut self, subnet_id: &str, connectivity_type: &str, allocation_id: Option<String>, tags: Tags, ) -> Result<&NatGateway, Ec2Error>

Source

pub fn delete_nat_gateway(&mut self, nat_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_dhcp_options( &mut self, configurations: Vec<DhcpConfiguration>, tags: Tags, ) -> &DhcpOptions

Source

pub fn delete_dhcp_options(&mut self, dopt_id: &str) -> Result<(), Ec2Error>

Source

pub fn associate_dhcp_options( &mut self, vpc_id: &str, dopt_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_vpc( &mut self, cidr_block: &str, instance_tenancy: &str, tags: Tags, ) -> Result<&Vpc, Ec2Error>

Source

pub fn delete_vpc(&mut self, vpc_id: &str) -> Result<(), Ec2Error>

Source

pub fn modify_vpc_attribute( &mut self, vpc_id: &str, attribute: &str, value: bool, ) -> Result<(), Ec2Error>

Source

pub fn create_subnet( &mut self, vpc_id: &str, cidr_block: &str, availability_zone: &str, tags: Tags, ) -> Result<&Subnet, Ec2Error>

Source

pub fn modify_subnet_attribute( &mut self, subnet_id: &str, map_public_ip_on_launch: bool, ) -> Result<(), Ec2Error>

Source

pub fn delete_subnet(&mut self, subnet_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_internet_gateway(&mut self, tags: Tags) -> &InternetGateway

Source

pub fn attach_internet_gateway( &mut self, igw_id: &str, vpc_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn detach_internet_gateway( &mut self, igw_id: &str, vpc_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn delete_internet_gateway(&mut self, igw_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_security_group( &mut self, group_name: &str, description: &str, vpc_id: &str, owner_id: &str, tags: Tags, ) -> Result<&SecurityGroup, Ec2Error>

Source

pub fn authorize_security_group_ingress( &mut self, group_id: &str, rules: Vec<IpPermission>, ) -> Result<(), Ec2Error>

Source

pub fn authorize_security_group_egress( &mut self, group_id: &str, rules: Vec<IpPermission>, ) -> Result<(), Ec2Error>

Source

pub fn revoke_security_group_ingress( &mut self, group_id: &str, rules: &[IpPermission], ) -> Result<(), Ec2Error>

Source

pub fn revoke_security_group_egress( &mut self, group_id: &str, rules: &[IpPermission], ) -> Result<(), Ec2Error>

Source

pub fn delete_security_group(&mut self, group_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_route_table( &mut self, vpc_id: &str, tags: Tags, ) -> Result<&RouteTable, Ec2Error>

Source

pub fn associate_route_table( &mut self, rtb_id: &str, subnet_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn disassociate_route_table( &mut self, assoc_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_route( &mut self, rtb_id: &str, destination_cidr: Option<String>, destination_ipv6_cidr: Option<String>, gateway_id: Option<String>, ) -> Result<(), Ec2Error>

Source

pub fn delete_route( &mut self, rtb_id: &str, destination_cidr: &str, ) -> Result<(), Ec2Error>

Source

pub fn delete_route_table(&mut self, rtb_id: &str) -> Result<(), Ec2Error>

Source

pub fn import_key_pair( &mut self, key_name: &str, _public_key_material: &str, tags: Tags, ) -> &KeyPair

Source

pub fn delete_key_pair( &mut self, key_name: Option<&str>, key_pair_id: Option<&str>, ) -> Result<(), Ec2Error>

Source

pub fn create_tags(&mut self, resource_ids: &[String], tags: &Tags)

Source

pub fn delete_tags(&mut self, resource_ids: &[String], tag_keys: &[String])

Source

pub fn replace_route( &mut self, rtb_id: &str, destination_cidr: &str, gateway_id: Option<String>, ) -> Result<(), Ec2Error>

Source

pub fn replace_route_table_association( &mut self, assoc_id: &str, new_rtb_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn create_key_pair(&mut self, key_name: &str, tags: Tags) -> &KeyPair

Source

pub fn create_egress_only_igw( &mut self, vpc_id: &str, tags: Tags, ) -> Result<&EgressOnlyInternetGateway, Ec2Error>

Source

pub fn delete_egress_only_igw(&mut self, eigw_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_flow_log( &mut self, resource_id: &str, traffic_type: &str, log_destination_type: &str, log_destination: Option<String>, log_group_name: Option<String>, tags: Tags, ) -> String

Source

pub fn delete_flow_logs(&mut self, flow_log_ids: &[String])

Source

pub fn create_vpc_peering_connection( &mut self, requester_vpc_id: &str, accepter_vpc_id: &str, tags: Tags, ) -> &VpcPeeringConnection

Source

pub fn accept_vpc_peering_connection( &mut self, peering_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn reject_vpc_peering_connection( &mut self, peering_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn delete_vpc_peering_connection( &mut self, peering_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_vpc_endpoint( &mut self, vpc_id: &str, service_name: &str, endpoint_type: &str, policy_document: Option<String>, route_table_ids: Vec<String>, subnet_ids: Vec<String>, security_group_ids: Vec<String>, tags: Tags, ) -> Result<&VpcEndpoint, Ec2Error>

Source

pub fn delete_vpc_endpoints(&mut self, endpoint_ids: &[String])

Source

pub fn create_managed_prefix_list( &mut self, name: &str, max_entries: i32, address_family: &str, entries: Vec<TypesPrefixListEntry>, tags: Tags, ) -> &ManagedPrefixList

Source

pub fn delete_managed_prefix_list( &mut self, id: &str, ) -> Result<&ManagedPrefixList, Ec2Error>

Source

pub fn modify_managed_prefix_list( &mut self, id: &str, add_entries: Vec<TypesPrefixListEntry>, remove_cidrs: Vec<String>, ) -> Result<(), Ec2Error>

Source

pub fn create_customer_gateway( &mut self, bgp_asn: &str, ip_address: &str, gateway_type: &str, tags: Tags, ) -> &CustomerGateway

Source

pub fn delete_customer_gateway(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn create_vpn_gateway( &mut self, gateway_type: &str, amazon_side_asn: Option<i64>, tags: Tags, ) -> &VpnGateway

Source

pub fn delete_vpn_gateway(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn attach_vpn_gateway( &mut self, vgw_id: &str, vpc_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn detach_vpn_gateway( &mut self, vgw_id: &str, vpc_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_vpn_connection( &mut self, vgw_id: &str, cgw_id: &str, connection_type: &str, tags: Tags, ) -> &VpnConnection

Source

pub fn delete_vpn_connection(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn create_vpn_connection_route( &mut self, vpn_id: &str, destination_cidr: &str, ) -> Result<(), Ec2Error>

Source

pub fn delete_vpn_connection_route( &mut self, vpn_id: &str, destination_cidr: &str, ) -> Result<(), Ec2Error>

Source

pub fn modify_vpn_connection( &mut self, vpn_id: &str, new_cgw: Option<String>, new_vgw: Option<String>, new_tgw: Option<String>, ) -> Result<&VpnConnection, Ec2Error>

Source

pub fn modify_vpn_connection_options( &mut self, vpn_id: &str, local_ipv4: Option<String>, local_ipv6: Option<String>, remote_ipv4: Option<String>, remote_ipv6: Option<String>, tunnel_inside_ip_version: Option<String>, ) -> Result<&VpnConnection, Ec2Error>

Source

pub fn modify_vpn_tunnel_certificate( &mut self, vpn_id: &str, outside_ip: &str, ) -> Result<&VpnConnection, Ec2Error>

Source

pub fn modify_vpn_tunnel_options( &mut self, vpn_id: &str, outside_ip: &str, tunnel_inside_cidr: Option<String>, tunnel_inside_ipv6_cidr: Option<String>, pre_shared_key: Option<String>, ) -> Result<&VpnConnection, Ec2Error>

Source

pub fn replace_vpn_tunnel( &mut self, vpn_id: &str, outside_ip: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_vpn_concentrator( &mut self, concentrator_type: &str, transit_gateway_id: Option<String>, tags: Tags, ) -> &VpnConcentrator

Source

pub fn delete_vpn_concentrator(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn create_carrier_gateway( &mut self, vpc_id: &str, tags: Tags, ) -> Result<&CarrierGateway, Ec2Error>

Source

pub fn delete_carrier_gateway(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn create_network_interface( &mut self, subnet_id: &str, description: &str, private_ip_address: &str, security_groups: Vec<String>, tags: Tags, ) -> Result<&NetworkInterface, Ec2Error>

Source

pub fn delete_network_interface(&mut self, eni_id: &str) -> Result<(), Ec2Error>

Source

pub fn attach_network_interface( &mut self, eni_id: &str, instance_id: &str, device_index: i32, ) -> Result<String, Ec2Error>

Source

pub fn detach_network_interface( &mut self, attachment_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn associate_vpc_cidr_block( &mut self, vpc_id: &str, cidr_block: &str, ) -> Result<String, Ec2Error>

Source

pub fn disassociate_vpc_cidr_block( &mut self, assoc_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn describe_security_group_rules( &self, group_id: Option<&str>, rule_ids: &[String], ) -> Vec<(&str, bool, &IpPermission)>

Source

pub fn update_sgr_description_ingress( &mut self, group_id: &str, rule_id: &str, description: Option<String>, ) -> Result<(), Ec2Error>

Source

pub fn update_sgr_description_egress( &mut self, group_id: &str, rule_id: &str, description: Option<String>, ) -> Result<(), Ec2Error>

Source

pub fn run_instances( &mut self, image_id: &str, instance_type: &str, min_count: i32, max_count: i32, key_name: Option<String>, subnet_id: Option<String>, security_group_ids: Vec<String>, tags: Tags, iam_instance_profile_arn: Option<String>, placement_az: &str, owner_id: &str, ) -> Vec<Instance>

Source

pub fn start_instances( &mut self, instance_ids: &[String], ) -> Vec<(String, i32, String, i32, String)>

Source

pub fn stop_instances( &mut self, instance_ids: &[String], ) -> Vec<(String, i32, String, i32, String)>

Source

pub fn terminate_instances( &mut self, instance_ids: &[String], ) -> Vec<(String, i32, String, i32, String)>

Source

pub fn create_volume( &mut self, size: i32, availability_zone: &str, snapshot_id: Option<String>, volume_type: &str, iops: Option<i32>, throughput: Option<i32>, encrypted: bool, tags: Tags, ) -> &Volume

Source

pub fn delete_volume(&mut self, vol_id: &str) -> Result<(), Ec2Error>

Source

pub fn restore_volume_from_recycle_bin( &mut self, vol_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn copy_volumes( &mut self, source_volume_ids: &[String], tags: Tags, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn attach_volume( &mut self, vol_id: &str, instance_id: &str, device: &str, ) -> Result<&VolumeAttachment, Ec2Error>

Source

pub fn detach_volume( &mut self, vol_id: &str, instance_id: Option<&str>, device: Option<&str>, ) -> Result<VolumeAttachment, Ec2Error>

Source

pub fn create_snapshot( &mut self, vol_id: &str, description: &str, tags: Tags, owner_id: &str, ) -> Result<&Snapshot, Ec2Error>

Source

pub fn delete_snapshot(&mut self, snap_id: &str) -> Result<(), Ec2Error>

Source

pub fn restore_snapshot_from_recycle_bin( &mut self, snap_id: &str, ) -> Result<&Snapshot, Ec2Error>

Source

pub fn lock_snapshot( &mut self, snap_id: &str, lock_mode: &str, lock_duration: Option<i32>, cool_off_period: Option<i32>, ) -> Result<&Snapshot, Ec2Error>

Source

pub fn unlock_snapshot(&mut self, snap_id: &str) -> Result<(), Ec2Error>

Source

pub fn modify_snapshot_tier( &mut self, snap_id: &str, storage_tier: &str, ) -> Result<String, Ec2Error>

Source

pub fn restore_snapshot_tier( &mut self, snap_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn create_image( &mut self, instance_id: &str, name: &str, description: &str, tags: Tags, owner_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn modify_image_launch_permissions( &mut self, image_id: &str, add: &[LaunchPermission], remove: &[LaunchPermission], ) -> Result<(), Ec2Error>

Source

pub fn modify_image_description( &mut self, image_id: &str, description: &str, ) -> Result<(), Ec2Error>

Source

pub fn get_image(&self, image_id: &str) -> Result<&Image, Ec2Error>

Source

pub fn deregister_image(&mut self, image_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_launch_template( &mut self, name: &str, version_description: &str, data: HashMap<String, String>, tags: Tags, ) -> Result<&LaunchTemplate, Ec2Error>

Source

pub fn delete_launch_template( &mut self, lt_id_or_name: &str, ) -> Result<LaunchTemplate, Ec2Error>

Source

pub fn create_launch_template_version( &mut self, lt_id: &str, description: &str, data: HashMap<String, String>, ) -> Result<i64, Ec2Error>

Source

pub fn modify_launch_template( &mut self, lt_id: &str, default_version: Option<i64>, ) -> Result<(), Ec2Error>

Source

pub fn get_launch_template_data_from_instance( &self, instance_id: &str, ) -> HashMap<String, String>

Source

pub fn create_transit_gateway( &mut self, description: &str, amazon_side_asn: i64, dns_support: &str, vpn_ecmp_support: &str, tags: Tags, ) -> &TransitGateway

Source

pub fn delete_transit_gateway(&mut self, tgw_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_transit_gateway_vpc_attachment( &mut self, tgw_id: &str, vpc_id: &str, subnet_ids: Vec<String>, tags: Tags, ) -> Result<&TransitGatewayVpcAttachment, Ec2Error>

Source

pub fn delete_transit_gateway_vpc_attachment( &mut self, attach_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_transit_gateway_route_table( &mut self, tgw_id: &str, tags: Tags, ) -> Result<&TransitGatewayRouteTable, Ec2Error>

Source

pub fn delete_transit_gateway_route_table( &mut self, rtb_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_transit_gateway_route( &mut self, rtb_id: &str, cidr: &str, attachment_id: Option<String>, ) -> Result<(), Ec2Error>

Source

pub fn delete_transit_gateway_route( &mut self, rtb_id: &str, cidr: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_transit_gateway_peering_attachment( &mut self, tgw_id: &str, peer_tgw_id: &str, ) -> &TransitGatewayPeeringAttachment

Source

pub fn accept_transit_gateway_peering_attachment( &mut self, attach_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn reject_transit_gateway_peering_attachment( &mut self, attach_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn delete_transit_gateway_peering_attachment( &mut self, attach_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn request_spot_instances( &mut self, spot_price: &str, count: i32, image_id: &str, instance_type: &str, owner_id: &str, ) -> Vec<String>

Source

pub fn cancel_spot_instance_requests(&mut self, ids: &[String])

Source

pub fn create_spot_datafeed_subscription( &mut self, bucket: String, prefix: Option<String>, owner_id: String, ) -> Result<&SpotDatafeedSubscription, Ec2Error>

Create the singleton spot datafeed subscription. Returns AlreadyExists if one is already present.

Source

pub fn delete_spot_datafeed_subscription(&mut self)

Delete the singleton spot datafeed subscription. No-op if none exists ( real AWS also returns success in that case ).

Source

pub fn describe_spot_datafeed_subscription( &self, ) -> Result<&SpotDatafeedSubscription, Ec2Error>

Describe the singleton spot datafeed subscription. Returns InvalidSpotDatafeedNotFound when no subscription is set.

Source

pub fn associate_iam_instance_profile( &mut self, instance_id: &str, arn: &str, name: &str, ) -> &IamInstanceProfileAssociation

Source

pub fn disassociate_iam_instance_profile( &mut self, assoc_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn replace_iam_instance_profile_association( &mut self, assoc_id: &str, arn: &str, name: &str, ) -> Result<(), Ec2Error>

Source

pub fn register_image( &mut self, name: &str, description: &str, architecture: &str, virtualization_type: &str, root_device_name: &str, tags: Tags, owner_id: &str, ) -> String

Source

pub fn copy_image( &mut self, source_image_id: &str, name: &str, owner_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn copy_snapshot( &mut self, source_snapshot_id: &str, owner_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn create_snapshots_from_instance( &mut self, instance_id: &str, owner_id: &str, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn modify_vpc_endpoint(&mut self, endpoint_id: &str) -> Result<(), Ec2Error>

Source

pub fn allocate_hosts( &mut self, availability_zone: &str, instance_type: Option<String>, quantity: usize, auto_placement: &str, host_recovery: &str, tags: Tags, ) -> Vec<String>

Source

pub fn release_hosts(&mut self, host_ids: &[String]) -> Vec<String>

Source

pub fn modify_hosts(&mut self, host_ids: &[String]) -> Vec<String>

Source

pub fn create_fleet(&mut self, fleet_type: &str, tags: Tags) -> String

Source

pub fn delete_fleets(&mut self, fleet_ids: &[String]) -> Vec<String>

Source

pub fn create_vpc_endpoint_service_configuration( &mut self, acceptance_required: bool, network_load_balancer_arns: Vec<String>, gateway_load_balancer_arns: Vec<String>, tags: Tags, ) -> &VpcEndpointServiceConfiguration

Source

pub fn upsert_vpc_endpoint_connection( &mut self, service_id: &str, endpoint_id: &str, owner: &str, state: &str, )

Seed a pending endpoint connection – used by tests, by the CreateVpcEndpoint handler when the endpoint targets a service that requires acceptance, and by Terraform converters.

Source

pub fn accept_vpc_endpoint_connections( &mut self, service_id: &str, endpoint_ids: &[String], ) -> Result<Vec<String>, Ec2Error>

Source

pub fn reject_vpc_endpoint_connections( &mut self, service_id: &str, endpoint_ids: &[String], ) -> Result<Vec<String>, Ec2Error>

Source

pub fn modify_vpc_endpoint_service_payer_responsibility( &mut self, service_id: &str, payer_responsibility: &str, ) -> Result<(), Ec2Error>

Source

pub fn start_vpc_endpoint_service_private_dns_verification( &mut self, service_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_vpc_endpoint_connection_notification( &mut self, sns_topic_arn: &str, connection_events: Vec<String>, service_id: Option<String>, vpc_endpoint_id: Option<String>, ) -> &VpcEndpointConnectionNotification

Source

pub fn delete_vpc_endpoint_connection_notifications( &mut self, ids: &[String], ) -> Vec<String>

Source

pub fn modify_vpc_endpoint_connection_notification( &mut self, id: &str, connection_notification_arn: Option<String>, connection_events: Option<Vec<String>>, ) -> Result<(), Ec2Error>

Source

pub fn create_vpc_block_public_access_exclusion( &mut self, resource_arn: &str, internet_gateway_exclusion_mode: &str, tags: Tags, ) -> &VpcBlockPublicAccessExclusion

Source

pub fn delete_vpc_block_public_access_exclusion( &mut self, id: &str, ) -> Result<VpcBlockPublicAccessExclusion, Ec2Error>

Source

pub fn modify_vpc_block_public_access_exclusion( &mut self, id: &str, new_mode: &str, ) -> Result<&VpcBlockPublicAccessExclusion, Ec2Error>

Source

pub fn modify_vpc_block_public_access_options( &mut self, account_id: &str, region: &str, block_mode: &str, ) -> &VpcBlockPublicAccessOptions

Source

pub fn create_vpc_encryption_control( &mut self, vpc_id: &str, tags: Tags, ) -> Result<&VpcEncryptionControl, Ec2Error>

Source

pub fn delete_vpc_encryption_control( &mut self, id: &str, ) -> Result<VpcEncryptionControl, Ec2Error>

Source

pub fn modify_vpc_encryption_control( &mut self, id: &str, new_mode: Option<&str>, ) -> Result<&VpcEncryptionControl, Ec2Error>

Source

pub fn delete_vpc_endpoint_service_configurations( &mut self, svc_ids: &[String], ) -> Vec<String>

Source

pub fn modify_vpc_endpoint_service_permissions( &mut self, svc_id: &str, add_arns: Vec<String>, remove_arns: Vec<String>, ) -> Result<(), Ec2Error>

Source

pub fn request_spot_fleet( &mut self, target_capacity: i32, iam_fleet_role: &str, tags: Tags, ) -> String

Source

pub fn cancel_spot_fleet_requests(&mut self, ids: &[String]) -> Vec<String>

Source

pub fn create_subnet_cidr_reservation( &mut self, subnet_id: &str, cidr: &str, reservation_type: &str, description: &str, owner_id: &str, ) -> Result<SubnetCidrReservationEntry, Ec2Error>

Source

pub fn delete_subnet_cidr_reservation( &mut self, reservation_id: &str, ) -> Result<SubnetCidrReservationEntry, Ec2Error>

Source

pub fn associate_subnet_cidr_block( &mut self, subnet_id: &str, ipv6_cidr_block: &str, ) -> Result<(String, String), Ec2Error>

Source

pub fn disassociate_subnet_cidr_block( &mut self, association_id: &str, ) -> Result<(String, String), Ec2Error>

Source

pub fn create_default_vpc(&mut self) -> Result<&Vpc, Ec2Error>

Source

pub fn create_default_subnet( &mut self, availability_zone: &str, ) -> Result<&Subnet, Ec2Error>

Source

pub fn create_placement_group( &mut self, group_name: &str, strategy: &str, partition_count: Option<i32>, spread_level: Option<String>, account_id: &str, region: &str, tags: Tags, ) -> Result<&PlacementGroup, Ec2Error>

Source

pub fn delete_placement_group( &mut self, group_name: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_network_interface_permission( &mut self, network_interface_id: &str, aws_account_id: Option<String>, aws_service: Option<String>, permission: &str, ) -> Result<&NetworkInterfacePermission, Ec2Error>

Source

pub fn delete_network_interface_permission( &mut self, network_interface_permission_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_instance_connect_endpoint( &mut self, subnet_id: &str, security_group_ids: Vec<String>, preserve_client_ip: bool, ip_address_type: Option<String>, account_id: &str, region: &str, tags: Tags, ) -> Result<&InstanceConnectEndpoint, Ec2Error>

Source

pub fn delete_instance_connect_endpoint( &mut self, endpoint_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_capacity_reservation( &mut self, instance_type: &str, instance_platform: &str, availability_zone: String, instance_count: i32, ebs_optimized: bool, ephemeral_storage: bool, tenancy: String, instance_match_criteria: String, end_date: Option<String>, end_date_type: String, outpost_arn: Option<String>, placement_group_arn: Option<String>, account_id: &str, region: &str, tags: Tags, ) -> Result<&CapacityReservation, Ec2Error>

Source

pub fn cancel_capacity_reservation(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn modify_capacity_reservation( &mut self, id: &str, instance_count: Option<i32>, end_date: Option<String>, end_date_type: Option<String>, instance_match_criteria: Option<String>, ) -> Result<&CapacityReservation, Ec2Error>

Source

pub fn modify_instance_placement( &mut self, instance_id: &str, group_name: Option<String>, partition_number: Option<i32>, host_id: Option<String>, affinity: Option<String>, tenancy: Option<String>, ) -> Result<(), Ec2Error>

Source

pub fn create_capacity_reservation_fleet( &mut self, allocation_strategy: Option<String>, tenancy: Option<String>, instance_match_criteria: Option<String>, total_target_capacity: i32, end_date: Option<String>, instance_specs: Vec<CapacityReservationFleetInstanceSpec>, account_id: &str, region: &str, tags: Tags, ) -> Result<&CapacityReservationFleet, Ec2Error>

Source

pub fn cancel_capacity_reservation_fleet( &mut self, id: &str, ) -> Result<(), Ec2Error>

Source

pub fn modify_capacity_reservation_fleet( &mut self, id: &str, total_target_capacity: Option<i32>, end_date: Option<String>, remove_end_date: Option<bool>, ) -> Result<&CapacityReservationFleet, Ec2Error>

Source

pub fn create_coip_pool( &mut self, local_gateway_route_table_id: &str, pool_cidrs: Vec<String>, account_id: &str, region: &str, tags: Tags, ) -> &CoipPool

Source

pub fn delete_coip_pool(&mut self, pool_id: &str) -> Result<CoipPool, Ec2Error>

Source

pub fn associate_security_group_vpc( &mut self, group_id: &str, vpc_id: &str, vpc_owner_id: &str, ) -> Result<&SecurityGroupVpcAssociation, Ec2Error>

Source

pub fn disassociate_security_group_vpc( &mut self, group_id: &str, vpc_id: &str, ) -> Result<SecurityGroupVpcAssociation, Ec2Error>

Source

pub fn associate_enclave_certificate_iam_role( &mut self, certificate_arn: &str, role_arn: &str, ) -> &EnclaveCertificateIamRoleAssociation

Source

pub fn disassociate_enclave_certificate_iam_role( &mut self, certificate_arn: &str, role_arn: &str, ) -> Result<(), Ec2Error>

Source

pub fn modify_private_dns_name_options( &mut self, instance_id: &str, private_dns_hostname_type: Option<String>, enable_resource_name_dns_a_record: Option<bool>, enable_resource_name_dns_aaaa_record: Option<bool>, ) -> Result<(), Ec2Error>

Source

pub fn modify_public_ip_dns_name_options( &mut self, network_interface_id: &str, hostname_type: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_mac_sip_modification_task( &mut self, instance_id: &str, apple_internal: Option<String>, base_system: Option<String>, debugging_restrictions: Option<String>, dtrace_restrictions: Option<String>, filesystem_protections: Option<String>, kext_signing: Option<String>, nvram_protections: Option<String>, tags: Tags, ) -> Result<&MacSipModificationTask, Ec2Error>

Source

pub fn start_declarative_policies_report( &mut self, target_id: &str, s3_bucket: &str, s3_prefix: Option<String>, tags: Tags, ) -> &DeclarativePoliciesReport

Source

pub fn cancel_declarative_policies_report( &mut self, report_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn provision_byoip_cidr( &mut self, cidr: &str, description: Option<String>, ) -> Result<&ByoipCidr, Ec2Error>

Source

pub fn advertise_byoip_cidr( &mut self, cidr: &str, ) -> Result<&ByoipCidr, Ec2Error>

Source

pub fn withdraw_byoip_cidr( &mut self, cidr: &str, ) -> Result<&ByoipCidr, Ec2Error>

Source

pub fn deprovision_byoip_cidr( &mut self, cidr: &str, ) -> Result<&ByoipCidr, Ec2Error>

Source

pub fn create_public_ipv4_pool( &mut self, description: Option<String>, network_border_group: Option<String>, tags: Tags, ) -> &PublicIpv4Pool

Source

pub fn delete_public_ipv4_pool(&mut self, pool_id: &str) -> Result<(), Ec2Error>

Source

pub fn provision_public_ipv4_pool_cidr( &mut self, pool_id: &str, cidr: &str, netmask_length: i32, ) -> Result<(String, PublicIpv4PoolRange), Ec2Error>

Source

pub fn deprovision_public_ipv4_pool_cidr( &mut self, pool_id: &str, cidr: &str, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn create_coip_cidr( &mut self, cidr: &str, coip_pool_id: &str, ) -> Result<&CoipCidr, Ec2Error>

Source

pub fn delete_coip_cidr( &mut self, cidr: &str, coip_pool_id: &str, ) -> Result<CoipCidr, Ec2Error>

Source

pub fn accept_address_transfer( &mut self, allocation_id: &str, ) -> Result<&AddressTransfer, Ec2Error>

Source

pub fn modify_address_attribute( &mut self, allocation_id: &str, domain_name: Option<String>, ) -> Result<&ElasticIp, Ec2Error>

Source

pub fn reset_address_attribute( &mut self, allocation_id: &str, ) -> Result<&ElasticIp, Ec2Error>

Source

pub fn move_address_to_vpc( &mut self, public_ip: &str, ) -> Result<&ElasticIp, Ec2Error>

Source

pub fn restore_address_to_classic( &mut self, public_ip: &str, ) -> Result<&ElasticIp, Ec2Error>

Source

pub fn assign_private_nat_gateway_address( &mut self, nat_gateway_id: &str, private_ips: Vec<String>, ) -> Result<&NatGateway, Ec2Error>

Source

pub fn unassign_private_nat_gateway_address( &mut self, nat_gateway_id: &str, private_ips: Vec<String>, ) -> Result<&NatGateway, Ec2Error>

Source

pub fn associate_nat_gateway_address( &mut self, nat_gateway_id: &str, allocation_ids: Vec<String>, private_ips: Vec<String>, ) -> Result<&NatGateway, Ec2Error>

Source

pub fn disassociate_nat_gateway_address( &mut self, nat_gateway_id: &str, association_ids: Vec<String>, ) -> Result<&NatGateway, Ec2Error>

Source

pub fn create_delegate_mac_volume_ownership_task( &mut self, instance_id: &str, source_account: &str, target_account: &str, ) -> &MacVolumeOwnershipTask

Source

pub fn create_replace_root_volume_task( &mut self, instance_id: &str, image_id: Option<String>, snapshot_id: Option<String>, delete_replaced_root_volume: bool, tags: Tags, ) -> Result<&ReplaceRootVolumeTask, Ec2Error>

Source

pub fn import_snapshot( &mut self, description: Option<String>, format: Option<String>, url: Option<String>, s3_bucket: Option<String>, s3_key: Option<String>, encrypted: bool, kms_key_id: Option<String>, owner_id: &str, tags: Tags, ) -> &SnapshotImportTask

Source

pub fn cancel_import_task( &mut self, task_id: &str, ) -> Result<(String, String), Ec2Error>

Source

pub fn import_instance( &mut self, description: Option<String>, platform: &str, tags: Tags, ) -> &ConversionTask

Source

pub fn cancel_conversion_task(&mut self, task_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_instance_export_task( &mut self, description: String, instance_id: String, target_environment: String, disk_image_format: String, container_format: Option<String>, s3_bucket: String, s3_prefix: Option<String>, tags: Tags, ) -> &ExportTask

Source

pub fn cancel_export_task(&mut self, task_id: &str) -> Result<(), Ec2Error>

Source

pub fn associate_trunk_interface( &mut self, branch_interface_id: String, trunk_interface_id: String, interface_protocol: String, vlan_id: Option<i32>, gre_key: Option<i32>, tags: Tags, ) -> &TrunkInterfaceAssociation

Source

pub fn disassociate_trunk_interface( &mut self, assoc_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_secondary_network( &mut self, vpc_id: String, primary_cidr_block: String, network_border_group: Option<String>, tags: Tags, ) -> &SecondaryNetwork

Source

pub fn delete_secondary_network( &mut self, id: &str, ) -> Result<SecondaryNetwork, Ec2Error>

Source

pub fn create_secondary_subnet( &mut self, secondary_network_id: String, cidr_block: String, availability_zone: String, tags: Tags, ) -> Result<&SecondarySubnet, Ec2Error>

Source

pub fn delete_secondary_subnet( &mut self, id: &str, ) -> Result<SecondarySubnet, Ec2Error>

Source

pub fn next_instance_id_pub(&mut self) -> String

Source

pub fn accept_reserved_instances_exchange_quote( &mut self, target_reserved_instances_ids: Vec<String>, source_reserved_instances_ids: Vec<String>, ) -> String

Source

pub fn cancel_reserved_instances_listing( &mut self, listing_id: &str, ) -> Result<&ReservedInstancesListing, Ec2Error>

Source

pub fn create_reserved_instances_listing( &mut self, reserved_instances_id: &str, instance_count: i32, price_schedules: Vec<PriceSchedule>, client_token: Option<String>, tags: Tags, ) -> &ReservedInstancesListing

Source

pub fn delete_queued_reserved_instances( &mut self, ids: &[String], ) -> (Vec<String>, Vec<String>)

Source

pub fn modify_fleet( &mut self, fleet_id: &str, total_target_capacity: Option<i32>, on_demand_target_capacity: Option<i32>, spot_target_capacity: Option<i32>, context: Option<String>, ) -> Result<(), Ec2Error>

Source

pub fn modify_reserved_instances( &mut self, reserved_instances_ids: Vec<String>, target_configurations: Vec<ReservedInstancesConfiguration>, client_token: Option<String>, ) -> String

Source

pub fn purchase_reserved_instances_offering( &mut self, offering_id: &str, instance_count: i32, limit_price: Option<String>, tags: Tags, ) -> String

Source

pub fn cancel_image_launch_permission( &mut self, image_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_fpga_image( &mut self, name: Option<String>, description: Option<String>, owner_id: &str, tags: Tags, ) -> &FpgaImage

Source

pub fn copy_fpga_image( &mut self, source_fpga_image_id: &str, name: Option<String>, description: Option<String>, owner_id: &str, ) -> Result<String, Ec2Error>

Source

pub fn delete_fpga_image(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn modify_fpga_image_attribute( &mut self, id: &str, name: Option<String>, description: Option<String>, add_load: Vec<(String, String)>, remove_load: Vec<(String, String)>, ) -> Result<&FpgaImage, Ec2Error>

Source

pub fn reset_fpga_image_attribute( &mut self, id: &str, attr: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_image_usage_report( &mut self, image_id: &str, account_filters: Vec<String>, resource_types: Vec<String>, tags: Tags, ) -> Result<String, Ec2Error>

Source

pub fn delete_image_usage_report(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn create_restore_image_task( &mut self, bucket: &str, object_key: &str, name: Option<String>, owner_id: &str, ) -> String

Source

pub fn create_store_image_task( &mut self, ami_id: &str, bucket: &str, ) -> Result<String, Ec2Error>

Source

pub fn import_image( &mut self, description: Option<String>, license_type: Option<String>, platform: Option<String>, architecture: Option<String>, encrypted: bool, tags: Tags, ) -> &ImportImageTask

Source

pub fn restore_image_from_recycle_bin( &mut self, image_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn replace_allowed_image_criteria( &mut self, criteria: Vec<AllowedImageCriterion>, )

Source

pub fn modify_default_credit_specification( &mut self, instance_family: &str, cpu_credits: &str, ) -> InstanceFamilyCreditPair

Source

pub fn modify_instance_connect_endpoint( &mut self, endpoint_id: &str, preserve_client_ip: Option<bool>, security_group_ids: Option<Vec<String>>, ) -> Result<(), Ec2Error>

Source

pub fn modify_instance_cpu_options( &mut self, instance_id: &str, core_count: Option<i32>, threads_per_core: Option<i32>, ) -> Result<&Instance, Ec2Error>

Source

pub fn modify_instance_credit_specification( &mut self, specs: &[(String, String)], ) -> (Vec<String>, Vec<String>)

Source

pub fn modify_instance_maintenance_options( &mut self, instance_id: &str, auto_recovery: Option<String>, reboot_migration: Option<String>, ) -> Result<&Instance, Ec2Error>

Source

pub fn modify_instance_metadata_defaults( &mut self, http_tokens: Option<String>, http_put_response_hop_limit: Option<i32>, http_endpoint: Option<String>, instance_metadata_tags: Option<String>, )

Source

pub fn modify_instance_network_performance_options( &mut self, instance_id: &str, bandwidth_weighting: &str, ) -> Result<(), Ec2Error>

Source

pub fn reset_instance_attribute( &mut self, instance_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_instance_event_window( &mut self, name: Option<String>, time_ranges: Vec<InstanceEventWindowTimeRange>, cron_expression: Option<String>, tags: Tags, ) -> &InstanceEventWindow

Source

pub fn modify_instance_event_window( &mut self, id: &str, name: Option<String>, time_ranges: Option<Vec<InstanceEventWindowTimeRange>>, cron_expression: Option<String>, ) -> Result<&InstanceEventWindow, Ec2Error>

Source

pub fn delete_instance_event_window(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn associate_instance_event_window( &mut self, id: &str, instance_ids: Vec<String>, dedicated_host_ids: Vec<String>, tags: Vec<(String, String)>, ) -> Result<&InstanceEventWindow, Ec2Error>

Source

pub fn disassociate_instance_event_window( &mut self, id: &str, instance_ids: Vec<String>, dedicated_host_ids: Vec<String>, ) -> Result<&InstanceEventWindow, Ec2Error>

Source

pub fn modify_instance_event_start_time( &mut self, instance_id: &str, instance_event_id: &str, not_before: &str, ) -> Result<&InstanceEvent, Ec2Error>

Source

pub fn register_instance_event_notification_attributes( &mut self, include_all_tags_of_instance: Option<bool>, instance_tag_keys: Vec<String>, ) -> &InstanceTagNotificationAttributes

Source

pub fn deregister_instance_event_notification_attributes( &mut self, include_all_tags_of_instance: Option<bool>, instance_tag_keys: &[String], ) -> InstanceTagNotificationAttributes

Source

pub fn confirm_product_instance( &self, instance_id: &str, product_code: &str, ) -> Result<(String, bool), Ec2Error>

Source

pub fn delete_launch_template_versions( &mut self, lt_id: &str, versions: &[i64], ) -> Result<(Vec<i64>, Vec<i64>), Ec2Error>

Source

pub fn modify_availability_zone_group( &mut self, group_name: &str, opt_in_status: &str, )

Source

pub fn purchase_host_reservation( &mut self, host_id_set: Vec<String>, offering_id: &str, currency_code: Option<String>, instance_family: &str, tags: Tags, ) -> &HostReservation

Source

pub fn purchase_scheduled_instances( &mut self, requests: Vec<ScheduledInstancePurchaseRequest>, ) -> Vec<ScheduledInstance>

Source

pub fn report_instance_status(&mut self, report: InstanceStatusReport)

Source

pub fn restore_managed_prefix_list_version( &mut self, prefix_list_id: &str, previous_version: i64, ) -> Result<&ManagedPrefixList, Ec2Error>

Source

pub fn run_scheduled_instances( &mut self, scheduled_instance_id: &str, instance_count: i32, owner_id: &str, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn deregister_image_to_recycle_bin( &mut self, image_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_network_insights_access_scope( &mut self, match_paths: Vec<AccessScopePathSpec>, exclude_paths: Vec<AccessScopePathSpec>, tags: Tags, ) -> &NetworkInsightsAccessScope

Source

pub fn delete_network_insights_access_scope( &mut self, scope_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn delete_network_insights_access_scope_analysis( &mut self, analysis_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn start_network_insights_access_scope_analysis( &mut self, scope_id: &str, tags: Tags, ) -> Result<&NetworkInsightsAccessScopeAnalysis, Ec2Error>

Source

pub fn create_network_insights_path( &mut self, source: Option<String>, destination: Option<String>, source_arn: Option<String>, destination_arn: Option<String>, source_ip: Option<String>, destination_ip: Option<String>, protocol: String, destination_port: Option<i32>, filter_at_source: NetworkInsightsPathFilter, filter_at_destination: NetworkInsightsPathFilter, tags: Tags, ) -> &NetworkInsightsPath

Source

pub fn delete_network_insights_path( &mut self, path_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn delete_network_insights_analysis( &mut self, analysis_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn start_network_insights_analysis( &mut self, path_id: &str, additional_accounts: Vec<String>, filter_in_arns: Vec<String>, tags: Tags, ) -> Result<&NetworkInsightsAnalysis, Ec2Error>

Source

pub fn create_traffic_mirror_filter( &mut self, description: Option<String>, tags: Tags, ) -> &TrafficMirrorFilter

Source

pub fn delete_traffic_mirror_filter( &mut self, filter_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_traffic_mirror_filter_rule( &mut self, filter_id: &str, traffic_direction: String, rule_number: i32, rule_action: String, protocol: Option<i32>, destination_port_range: Option<TrafficMirrorPortRange>, source_port_range: Option<TrafficMirrorPortRange>, destination_cidr_block: String, source_cidr_block: String, description: Option<String>, tags: Tags, ) -> Result<TrafficMirrorFilterRule, Ec2Error>

Source

pub fn delete_traffic_mirror_filter_rule( &mut self, rule_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn modify_traffic_mirror_filter_rule( &mut self, rule_id: &str, rule_number: Option<i32>, rule_action: Option<String>, protocol: Option<i32>, destination_port_range: Option<TrafficMirrorPortRange>, source_port_range: Option<TrafficMirrorPortRange>, destination_cidr_block: Option<String>, source_cidr_block: Option<String>, description: Option<String>, traffic_direction: Option<String>, remove_fields: &[String], ) -> Result<TrafficMirrorFilterRule, Ec2Error>

Source

pub fn modify_traffic_mirror_filter_network_services( &mut self, filter_id: &str, add: &[String], remove: &[String], ) -> Result<TrafficMirrorFilter, Ec2Error>

Source

pub fn create_traffic_mirror_session( &mut self, traffic_mirror_target_id: String, traffic_mirror_filter_id: String, network_interface_id: String, owner_id: String, packet_length: Option<i32>, session_number: i32, virtual_network_id: Option<i32>, description: Option<String>, tags: Tags, ) -> Result<&TrafficMirrorSession, Ec2Error>

Source

pub fn delete_traffic_mirror_session( &mut self, session_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn modify_traffic_mirror_session( &mut self, session_id: &str, traffic_mirror_target_id: Option<String>, traffic_mirror_filter_id: Option<String>, packet_length: Option<i32>, session_number: Option<i32>, virtual_network_id: Option<i32>, description: Option<String>, remove_fields: &[String], ) -> Result<TrafficMirrorSession, Ec2Error>

Source

pub fn create_traffic_mirror_target( &mut self, network_interface_id: Option<String>, network_load_balancer_arn: Option<String>, gateway_load_balancer_endpoint_id: Option<String>, description: Option<String>, owner_id: String, tags: Tags, ) -> &TrafficMirrorTarget

Source

pub fn delete_traffic_mirror_target( &mut self, target_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_client_vpn_endpoint( &mut self, description: Option<String>, client_cidr_block: String, server_certificate_arn: String, dns_servers: Vec<String>, transport_protocol: String, vpn_port: i32, split_tunnel: bool, authentication_options: Vec<String>, connection_log_options_enabled: bool, connection_log_options_cloudwatch_log_group: Option<String>, connection_log_options_cloudwatch_log_stream: Option<String>, security_group_ids: Vec<String>, vpc_id: Option<String>, self_service_portal: String, session_timeout_hours: i32, client_login_banner_enabled: bool, client_login_banner_text: Option<String>, disconnect_on_session_timeout: bool, client_route_enforcement_enforced: bool, tags: Tags, ) -> &ClientVpnEndpoint

Source

pub fn delete_client_vpn_endpoint( &mut self, endpoint_id: &str, ) -> Result<ClientVpnEndpointStatus, Ec2Error>

Source

pub fn associate_client_vpn_target_network( &mut self, endpoint_id: &str, subnet_id: &str, ) -> Result<&ClientVpnTargetNetworkAssociation, Ec2Error>

Source

pub fn disassociate_client_vpn_target_network( &mut self, endpoint_id: &str, association_id: &str, ) -> Result<ClientVpnAssociationStatus, Ec2Error>

Source

pub fn apply_security_groups_to_client_vpn_target_network( &mut self, endpoint_id: &str, vpc_id: &str, security_group_ids: Vec<String>, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn authorize_client_vpn_ingress( &mut self, endpoint_id: &str, destination_cidr: String, access_all: bool, group_id: Option<String>, description: Option<String>, ) -> Result<ClientVpnAuthorizationRuleStatus, Ec2Error>

Source

pub fn revoke_client_vpn_ingress( &mut self, endpoint_id: &str, destination_cidr: &str, group_id: Option<String>, ) -> Result<ClientVpnAuthorizationRuleStatus, Ec2Error>

Source

pub fn create_client_vpn_route( &mut self, endpoint_id: &str, destination_cidr: String, target_subnet: String, description: Option<String>, ) -> Result<ClientVpnRouteStatus, Ec2Error>

Source

pub fn delete_client_vpn_route( &mut self, endpoint_id: &str, destination_cidr: &str, target_subnet: &str, ) -> Result<ClientVpnRouteStatus, Ec2Error>

Source

pub fn import_client_vpn_revocation_list( &mut self, endpoint_id: &str, crl: String, ) -> Result<(), Ec2Error>

Source

pub fn modify_client_vpn_endpoint( &mut self, endpoint_id: &str, server_certificate_arn: Option<String>, connection_log_options_enabled: Option<bool>, connection_log_options_cloudwatch_log_group: Option<String>, connection_log_options_cloudwatch_log_stream: Option<String>, dns_servers_custom: Option<Vec<String>>, dns_servers_enabled: Option<bool>, vpn_port: Option<i32>, description: Option<String>, split_tunnel: Option<bool>, security_group_ids: Option<Vec<String>>, vpc_id: Option<String>, self_service_portal: Option<String>, session_timeout_hours: Option<i32>, client_login_banner_enabled: Option<bool>, client_login_banner_text: Option<String>, disconnect_on_session_timeout: Option<bool>, client_route_enforcement_enforced: Option<bool>, ) -> Result<(), Ec2Error>

Source

pub fn seed_client_vpn_connection( &mut self, endpoint_id: &str, username: Option<String>, ) -> String

Seeds a client VPN connection record. Used by tests.

Source

pub fn terminate_client_vpn_connections( &mut self, endpoint_id: &str, connection_ids: Vec<String>, username: Option<String>, ) -> Result<Vec<(String, ClientVpnConnectionStatus, ClientVpnConnectionStatus)>, Ec2Error>

Terminate connections by id list (fallback by username if list empty). Returns the (current, previous) status per connection.

Source

pub fn seed_local_gateway(&mut self, owner_id: &str) -> String

Seeds a local gateway record (used by tests / handlers when AWS does not expose a Create* API for the parent gateway).

Source

pub fn seed_local_gateway_route_table_with_id( &mut self, table_id: &str, owner_id: &str, )

Seed a LocalGatewayRouteTable with the caller-supplied ID, also seeding a paired LocalGateway if needed. No-op when the route table already exists. Used to keep CreateLocalGatewayRoute and CreateLocalGatewayRouteTableVpcAssociation working when the caller passes a pre-existing route-table ID (real AWS pre-creates these for Outposts).

Source

pub fn create_local_gateway_route_table( &mut self, local_gateway_id: &str, mode: Option<String>, owner_id: &str, tags: Tags, ) -> Result<&LocalGatewayRouteTable, Ec2Error>

Source

pub fn delete_local_gateway_route_table( &mut self, table_id: &str, ) -> Result<LocalGatewayRouteTable, Ec2Error>

Source

pub fn create_local_gateway_route( &mut self, local_gateway_route_table_id: &str, destination_cidr_block: String, owner_id: &str, local_gateway_virtual_interface_group_id: Option<String>, network_interface_id: Option<String>, subnet_id: Option<String>, destination_prefix_list_id: Option<String>, coip_pool_id: Option<String>, ) -> Result<&LocalGatewayRoute, Ec2Error>

Source

pub fn delete_local_gateway_route( &mut self, table_id: &str, destination_cidr_block: &str, ) -> Result<LocalGatewayRoute, Ec2Error>

Source

pub fn modify_local_gateway_route( &mut self, table_id: &str, destination_cidr_block: &str, new_subnet_id: Option<String>, new_network_interface_id: Option<String>, ) -> Result<&LocalGatewayRoute, Ec2Error>

Source

pub fn create_local_gateway_virtual_interface( &mut self, local_gateway_virtual_interface_group_id: &str, vlan: i32, local_address: String, peer_address: String, peer_bgp_asn: Option<i32>, peer_bgp_asn_extended: Option<i64>, owner_id: &str, tags: Tags, ) -> Result<&LocalGatewayVirtualInterface, Ec2Error>

Source

pub fn delete_local_gateway_virtual_interface( &mut self, vif_id: &str, ) -> Result<LocalGatewayVirtualInterface, Ec2Error>

Source

pub fn create_local_gateway_virtual_interface_group( &mut self, local_gateway_id: &str, local_bgp_asn: i32, local_bgp_asn_extended: Option<i64>, owner_id: &str, tags: Tags, ) -> Result<&LocalGatewayVirtualInterfaceGroup, Ec2Error>

Source

pub fn delete_local_gateway_virtual_interface_group( &mut self, group_id: &str, ) -> Result<LocalGatewayVirtualInterfaceGroup, Ec2Error>

Source

pub fn create_local_gateway_route_table_virtual_interface_group_association( &mut self, local_gateway_route_table_id: &str, local_gateway_virtual_interface_group_id: &str, owner_id: &str, tags: Tags, ) -> Result<&LocalGatewayRouteTableVirtualInterfaceGroupAssociation, Ec2Error>

Source

pub fn delete_local_gateway_route_table_virtual_interface_group_association( &mut self, association_id: &str, ) -> Result<LocalGatewayRouteTableVirtualInterfaceGroupAssociation, Ec2Error>

Source

pub fn create_local_gateway_route_table_vpc_association( &mut self, local_gateway_route_table_id: &str, vpc_id: &str, owner_id: &str, tags: Tags, ) -> Result<&LocalGatewayRouteTableVpcAssociation, Ec2Error>

Source

pub fn delete_local_gateway_route_table_vpc_association( &mut self, association_id: &str, ) -> Result<LocalGatewayRouteTableVpcAssociation, Ec2Error>

Source

pub fn create_route_server( &mut self, amazon_side_asn: i64, persist_routes: Option<String>, persist_routes_duration: Option<i64>, sns_notifications_enabled: Option<bool>, owner_id: &str, tags: Tags, ) -> &RouteServer

Source

pub fn delete_route_server( &mut self, route_server_id: &str, ) -> Result<RouteServer, Ec2Error>

Source

pub fn modify_route_server( &mut self, route_server_id: &str, persist_routes: Option<String>, persist_routes_duration: Option<i64>, sns_notifications_enabled: Option<bool>, ) -> Result<&RouteServer, Ec2Error>

Source

pub fn associate_route_server( &mut self, route_server_id: &str, vpc_id: &str, ) -> Result<&RouteServerAssociation, Ec2Error>

Source

pub fn disassociate_route_server( &mut self, route_server_id: &str, vpc_id: &str, ) -> Result<RouteServerAssociation, Ec2Error>

Source

pub fn create_route_server_endpoint( &mut self, route_server_id: &str, subnet_id: &str, tags: Tags, ) -> Result<&RouteServerEndpoint, Ec2Error>

Source

pub fn delete_route_server_endpoint( &mut self, endpoint_id: &str, ) -> Result<RouteServerEndpoint, Ec2Error>

Source

pub fn create_route_server_peer( &mut self, endpoint_id: &str, peer_address: String, peer_asn: i64, peer_liveness_detection: Option<String>, tags: Tags, ) -> Result<&RouteServerPeer, Ec2Error>

Source

pub fn delete_route_server_peer( &mut self, peer_id: &str, ) -> Result<RouteServerPeer, Ec2Error>

Source

pub fn create_verified_access_instance( &mut self, description: Option<String>, fips_enabled: bool, cidr_endpoints_custom_subdomain: Option<String>, name: Option<String>, tags: Tags, ) -> &VerifiedAccessInstance

Source

pub fn create_verified_access_trust_provider( &mut self, description: Option<String>, trust_provider_type: String, user_trust_provider_type: Option<String>, device_trust_provider_type: Option<String>, oidc_options: Option<VerifiedAccessOidcOptions>, device_options: Option<VerifiedAccessDeviceOptions>, native_application_oidc_options: Option<VerifiedAccessNativeApplicationOidcOptions>, policy_reference_name: String, sse_specification: VerifiedAccessSseSpecification, tags: Tags, ) -> &VerifiedAccessTrustProvider

Source

pub fn create_verified_access_group( &mut self, instance_id: String, owner: String, description: Option<String>, sse_specification: VerifiedAccessSseSpecification, policy_document: Option<String>, tags: Tags, ) -> Result<&VerifiedAccessGroup, Ec2Error>

Source

pub fn create_verified_access_endpoint( &mut self, verified_access_group_id: String, application_domain: Option<String>, endpoint_type: String, attachment_type: String, domain_certificate_arn: Option<String>, endpoint_domain_prefix: Option<String>, security_group_ids: Vec<String>, load_balancer_options: Option<VerifiedAccessEndpointLoadBalancerOptions>, network_interface_options: Option<VerifiedAccessEndpointEniOptions>, cidr_options: Option<VerifiedAccessEndpointCidrOptions>, rds_options: Option<VerifiedAccessEndpointRdsOptions>, description: Option<String>, policy_document: Option<String>, sse_specification: VerifiedAccessSseSpecification, tags: Tags, ) -> Result<&VerifiedAccessEndpoint, Ec2Error>

Source

pub fn attach_verified_access_trust_provider( &mut self, instance_id: &str, trust_provider_id: &str, ) -> Result<(VerifiedAccessTrustProvider, VerifiedAccessInstance), Ec2Error>

Source

pub fn detach_verified_access_trust_provider( &mut self, instance_id: &str, trust_provider_id: &str, ) -> Result<(VerifiedAccessTrustProvider, VerifiedAccessInstance), Ec2Error>

Source

pub fn delete_verified_access_endpoint( &mut self, endpoint_id: &str, ) -> Result<VerifiedAccessEndpoint, Ec2Error>

Source

pub fn delete_verified_access_group( &mut self, group_id: &str, ) -> Result<VerifiedAccessGroup, Ec2Error>

Source

pub fn delete_verified_access_instance( &mut self, instance_id: &str, ) -> Result<VerifiedAccessInstance, Ec2Error>

Source

pub fn delete_verified_access_trust_provider( &mut self, trust_provider_id: &str, ) -> Result<VerifiedAccessTrustProvider, Ec2Error>

Source

pub fn modify_verified_access_instance( &mut self, instance_id: &str, description: Option<String>, cidr_endpoints_custom_subdomain: Option<String>, ) -> Result<&VerifiedAccessInstance, Ec2Error>

Source

pub fn modify_verified_access_trust_provider( &mut self, trust_provider_id: &str, description: Option<String>, oidc_options: Option<VerifiedAccessOidcOptions>, device_options: Option<VerifiedAccessDeviceOptions>, sse_specification: Option<VerifiedAccessSseSpecification>, ) -> Result<&VerifiedAccessTrustProvider, Ec2Error>

Source

pub fn modify_verified_access_group( &mut self, group_id: &str, description: Option<String>, verified_access_instance_id: Option<String>, ) -> Result<&VerifiedAccessGroup, Ec2Error>

Source

pub fn modify_verified_access_group_policy( &mut self, group_id: &str, policy_document: Option<String>, policy_enabled: Option<bool>, sse_specification: Option<VerifiedAccessSseSpecification>, ) -> Result<&VerifiedAccessGroup, Ec2Error>

Source

pub fn modify_verified_access_endpoint( &mut self, endpoint_id: &str, description: Option<String>, verified_access_group_id: Option<String>, load_balancer_options: Option<VerifiedAccessEndpointLoadBalancerOptions>, network_interface_options: Option<VerifiedAccessEndpointEniOptions>, cidr_options: Option<VerifiedAccessEndpointCidrOptions>, rds_options: Option<VerifiedAccessEndpointRdsOptions>, ) -> Result<&VerifiedAccessEndpoint, Ec2Error>

Source

pub fn modify_verified_access_endpoint_policy( &mut self, endpoint_id: &str, policy_document: Option<String>, policy_enabled: Option<bool>, sse_specification: Option<VerifiedAccessSseSpecification>, ) -> Result<&VerifiedAccessEndpoint, Ec2Error>

Source

pub fn modify_verified_access_instance_logging_configuration( &mut self, instance_id: &str, logs: VerifiedAccessLogs, ) -> Result<&VerifiedAccessLogs, Ec2Error>

Source

pub fn associate_capacity_reservation_billing_owner( &mut self, capacity_reservation_id: &str, unused_reservation_billing_owner_id: &str, requester_account_id: &str, ) -> Result<&BillingOwnershipOffer, Ec2Error>

Create a pending billing-ownership transfer offer.

Source

pub fn accept_capacity_reservation_billing_ownership( &mut self, capacity_reservation_id: &str, accepter_account_id: &str, ) -> Result<&BillingOwnershipOffer, Ec2Error>

Accept a pending billing-ownership offer.

Source

pub fn disassociate_capacity_reservation_billing_owner( &mut self, capacity_reservation_id: &str, unused_reservation_billing_owner_id: &str, ) -> Result<&BillingOwnershipOffer, Ec2Error>

Cancel a pending billing-ownership offer (initiator side).

Source

pub fn reject_capacity_reservation_billing_ownership( &mut self, capacity_reservation_id: &str, rejecter_account_id: &str, ) -> Result<&BillingOwnershipOffer, Ec2Error>

Reject a pending billing-ownership offer (recipient side).

Source

pub fn create_capacity_manager_data_export( &mut self, schedule: String, organization_account_ids: Vec<String>, output_format: String, s3_destination: S3DestinationOptions, tags: Tags, ) -> Result<&CapacityManagerDataExport, Ec2Error>

Create a Capacity Manager data export.

Source

pub fn delete_capacity_manager_data_export( &mut self, data_export_id: &str, ) -> Result<CapacityManagerDataExport, Ec2Error>

Delete a Capacity Manager data export by id.

Source

pub fn update_capacity_manager_organizations_access( &mut self, organizations_access: bool, ) -> &CapacityManagerOrganizationsAccess

Update account-level Capacity Manager Organizations access.

Source

pub fn create_capacity_reservation_by_splitting( &mut self, source_capacity_reservation_id: &str, instance_count: i32, account_id: &str, region: &str, tags: Tags, ) -> Result<(CapacityReservation, CapacityReservation), Ec2Error>

Split an existing capacity reservation into two (the source loses instance_count instances, the new one gets them).

Source

pub fn move_capacity_reservation_instances( &mut self, source_capacity_reservation_id: &str, destination_capacity_reservation_id: &str, instance_count: i32, ) -> Result<(CapacityReservation, CapacityReservation), Ec2Error>

Move some instances from a source capacity reservation to a destination.

Source

pub fn modify_instance_capacity_reservation_attributes( &mut self, instance_id: &str, spec: CapacityReservationSpecificationResponse, ) -> Result<(), Ec2Error>

Modify the per-instance capacity-reservation specification.

Source

pub fn create_interruptible_capacity_reservation_allocation( &mut self, capacity_reservation_id: &str, instance_count: i32, start_date_time: String, end_date_time: String, allocation_type: String, tags: Tags, ) -> Result<&InterruptibleCapacityReservationAllocation, Ec2Error>

Create an interruptible capacity-reservation allocation.

Source

pub fn update_interruptible_capacity_reservation_allocation( &mut self, allocation_id: &str, instance_count: Option<i32>, start_date_time: Option<String>, end_date_time: Option<String>, allocation_type: Option<String>, ) -> Result<&InterruptibleCapacityReservationAllocation, Ec2Error>

Update an interruptible capacity-reservation allocation.

Source

pub fn purchase_capacity_block( &mut self, capacity_block_offering_id: &str, instance_platform: &str, instance_type: &str, instance_count: i32, availability_zone: &str, start_date: String, end_date: String, tenancy: String, upfront_fee: String, commitment_duration_in_seconds: i64, account_id: &str, region: &str, tags: Tags, ) -> Result<(CapacityBlock, CapacityReservation), Ec2Error>

Purchase a capacity block. This also synthesises a fixed-duration capacity reservation backed by the block.

Source

pub fn purchase_capacity_block_extension( &mut self, capacity_block_extension_offering_id: &str, capacity_reservation_id: &str, capacity_block_extension_duration_hours: i32, upfront_fee: String, account_id: &str, region: &str, ) -> Result<CapacityBlockExtension, Ec2Error>

Purchase a capacity-block extension for an existing block-backed capacity reservation.

Source

pub fn create_tgw_multicast_domain( &mut self, tgw_id: &str, igmpv2_support: &str, static_sources_support: &str, auto_accept_shared_associations: &str, owner_id: &str, region: &str, tags: Tags, ) -> Result<&TransitGatewayMulticastDomain, Ec2Error>

Source

pub fn delete_tgw_multicast_domain( &mut self, domain_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn associate_tgw_multicast_domain( &mut self, domain_id: &str, attachment_id: &str, subnet_ids: Vec<String>, ) -> Result<&TransitGatewayMulticastDomainAssociation, Ec2Error>

Source

pub fn accept_tgw_multicast_domain_associations( &mut self, domain_id: &str, attachment_id: &str, subnet_ids: &[String], ) -> Result<&TransitGatewayMulticastDomainAssociation, Ec2Error>

Source

pub fn reject_tgw_multicast_domain_associations( &mut self, domain_id: &str, attachment_id: &str, subnet_ids: &[String], ) -> Result<&TransitGatewayMulticastDomainAssociation, Ec2Error>

Source

pub fn disassociate_tgw_multicast_domain( &mut self, domain_id: &str, attachment_id: &str, ) -> Result<TransitGatewayMulticastDomainAssociation, Ec2Error>

Source

pub fn register_tgw_multicast_group_members( &mut self, domain_id: &str, group_ip: &str, nic_ids: Vec<String>, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn deregister_tgw_multicast_group_members( &mut self, domain_id: &str, group_ip: &str, nic_ids: Vec<String>, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn register_tgw_multicast_group_sources( &mut self, domain_id: &str, group_ip: &str, nic_ids: Vec<String>, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn deregister_tgw_multicast_group_sources( &mut self, domain_id: &str, group_ip: &str, nic_ids: Vec<String>, ) -> Result<Vec<String>, Ec2Error>

Source

pub fn create_tgw_connect( &mut self, transport_attachment_id: &str, protocol: &str, tags: Tags, ) -> Result<&TransitGatewayConnect, Ec2Error>

Source

pub fn delete_tgw_connect(&mut self, attach_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_tgw_connect_peer( &mut self, attachment_id: &str, peer_address: &str, transit_gateway_address: Option<&str>, inside_cidr_blocks: Vec<String>, peer_asn: i64, tags: Tags, ) -> Result<&TransitGatewayConnectPeer, Ec2Error>

Source

pub fn delete_tgw_connect_peer(&mut self, peer_id: &str) -> Result<(), Ec2Error>

Source

pub fn create_tgw_metering_policy( &mut self, tgw_id: &str, name: &str, description: Option<String>, owner_id: &str, region: &str, tags: Tags, ) -> Result<&TransitGatewayMeteringPolicy, Ec2Error>

Source

pub fn delete_tgw_metering_policy( &mut self, policy_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn modify_tgw_metering_policy( &mut self, policy_id: &str, new_name: Option<String>, new_description: Option<String>, ) -> Result<&TransitGatewayMeteringPolicy, Ec2Error>

Source

pub fn create_tgw_metering_policy_entry( &mut self, policy_id: &str, sequence_number: i32, action: &str, source_cidr_block: Option<String>, destination_cidr_block: Option<String>, protocol: Option<String>, source_port: Option<String>, destination_port: Option<String>, dimensions: Vec<String>, ) -> Result<&TransitGatewayMeteringPolicyEntry, Ec2Error>

Source

pub fn delete_tgw_metering_policy_entry( &mut self, policy_id: &str, entry_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_tgw_policy_table( &mut self, tgw_id: &str, tags: Tags, ) -> Result<&TransitGatewayPolicyTable, Ec2Error>

Source

pub fn delete_tgw_policy_table(&mut self, id: &str) -> Result<(), Ec2Error>

Source

pub fn associate_tgw_policy_table( &mut self, policy_table_id: &str, attachment_id: &str, ) -> Result<&TransitGatewayPolicyTableAssociation, Ec2Error>

Source

pub fn disassociate_tgw_policy_table( &mut self, policy_table_id: &str, attachment_id: &str, ) -> Result<TransitGatewayPolicyTableAssociation, Ec2Error>

Source

pub fn create_tgw_prefix_list_reference( &mut self, route_table_id: &str, prefix_list_id: &str, owner_id: &str, blackhole: bool, attachment_id: Option<String>, ) -> Result<&TransitGatewayPrefixListReference, Ec2Error>

Source

pub fn delete_tgw_prefix_list_reference( &mut self, route_table_id: &str, prefix_list_id: &str, ) -> Result<TransitGatewayPrefixListReference, Ec2Error>

Source

pub fn modify_tgw_prefix_list_reference( &mut self, route_table_id: &str, prefix_list_id: &str, blackhole: Option<bool>, attachment_id: Option<String>, ) -> Result<&TransitGatewayPrefixListReference, Ec2Error>

Source

pub fn create_tgw_route_table_announcement( &mut self, route_table_id: &str, peering_attachment_id: &str, announcement_direction: &str, peer_core_network_id: Option<String>, ) -> Result<&TransitGatewayRouteTableAnnouncement, Ec2Error>

Source

pub fn delete_tgw_route_table_announcement( &mut self, id: &str, ) -> Result<(), Ec2Error>

Source

pub fn accept_tgw_vpc_attachment( &mut self, attach_id: &str, ) -> Result<&TransitGatewayVpcAttachment, Ec2Error>

Source

pub fn reject_tgw_vpc_attachment( &mut self, attach_id: &str, ) -> Result<&TransitGatewayVpcAttachment, Ec2Error>

Source

pub fn replace_tgw_route( &mut self, route_table_id: &str, cidr: &str, new_attachment_id: Option<String>, blackhole: bool, ) -> Result<TransitGatewayRoute, Ec2Error>

Source

pub fn next_ipam_id(&mut self) -> String

Source

pub fn next_ipam_scope_id(&mut self) -> String

Source

pub fn next_ipam_pool_id(&mut self) -> String

Source

pub fn next_ipam_pool_cidr_id(&mut self) -> String

Source

pub fn next_ipam_pool_allocation_id(&mut self) -> String

Source

pub fn next_ipam_resource_discovery_id(&mut self) -> String

Source

pub fn next_ipam_resource_discovery_assoc_id(&mut self) -> String

Source

pub fn next_ipam_external_resource_verification_token_id(&mut self) -> String

Source

pub fn next_ipam_policy_id(&mut self) -> String

Source

pub fn next_ipam_prefix_list_resolver_id(&mut self) -> String

Source

pub fn next_ipam_prefix_list_resolver_target_id(&mut self) -> String

Source

pub fn create_ipam( &mut self, region: &str, owner_id: &str, description: Option<String>, operating_regions: Vec<IpamOperatingRegion>, tier: String, enable_private_gua: bool, metered_account: String, tags: Tags, ) -> &Ipam

Create an IPAM. Auto-creates a default private and a default public scope.

Source

pub fn delete_ipam( &mut self, ipam_id: &str, cascade: bool, ) -> Result<Ipam, Ec2Error>

Source

pub fn modify_ipam( &mut self, ipam_id: &str, description: Option<String>, add_operating_regions: Vec<IpamOperatingRegion>, remove_operating_regions: Vec<String>, tier: Option<String>, enable_private_gua: Option<bool>, metered_account: Option<String>, ) -> Result<&Ipam, Ec2Error>

Source

pub fn create_ipam_scope( &mut self, ipam_id: &str, description: Option<String>, tags: Tags, ) -> Result<&IpamScope, Ec2Error>

Source

pub fn delete_ipam_scope( &mut self, scope_id: &str, ) -> Result<IpamScope, Ec2Error>

Source

pub fn modify_ipam_scope( &mut self, scope_id: &str, description: Option<String>, ) -> Result<&IpamScope, Ec2Error>

Source

pub fn create_ipam_pool( &mut self, scope_id: &str, address_family: String, description: Option<String>, locale: Option<String>, publicly_advertisable: bool, auto_import: bool, allocation_min_netmask_length: Option<i32>, allocation_max_netmask_length: Option<i32>, allocation_default_netmask_length: Option<i32>, allocation_resource_tags: Vec<(String, String)>, aws_service: Option<String>, public_ip_source: Option<String>, source_ipam_pool_id: Option<String>, tags: Tags, ) -> Result<&IpamPool, Ec2Error>

Source

pub fn delete_ipam_pool(&mut self, pool_id: &str) -> Result<IpamPool, Ec2Error>

Source

pub fn modify_ipam_pool( &mut self, pool_id: &str, description: Option<String>, auto_import: Option<bool>, allocation_min_netmask_length: Option<i32>, allocation_max_netmask_length: Option<i32>, allocation_default_netmask_length: Option<i32>, add_allocation_resource_tags: Vec<(String, String)>, remove_allocation_resource_tags: Vec<(String, String)>, ) -> Result<&IpamPool, Ec2Error>

Source

pub fn provision_ipam_pool_cidr( &mut self, pool_id: &str, cidr: Option<String>, netmask_length: Option<i32>, ) -> Result<&IpamPoolCidr, Ec2Error>

Source

pub fn deprovision_ipam_pool_cidr( &mut self, pool_id: &str, cidr: &str, ) -> Result<IpamPoolCidr, Ec2Error>

Source

pub fn allocate_ipam_pool_cidr( &mut self, pool_id: &str, cidr: Option<String>, netmask_length: Option<i32>, description: Option<String>, ) -> Result<&IpamPoolAllocation, Ec2Error>

Source

pub fn release_ipam_pool_allocation( &mut self, pool_id: &str, allocation_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn create_ipam_resource_discovery( &mut self, region: &str, owner_id: &str, description: Option<String>, operating_regions: Vec<IpamOperatingRegion>, tags: Tags, ) -> &IpamResourceDiscovery

Source

pub fn delete_ipam_resource_discovery( &mut self, id: &str, ) -> Result<IpamResourceDiscovery, Ec2Error>

Source

pub fn modify_ipam_resource_discovery( &mut self, id: &str, description: Option<String>, add_operating_regions: Vec<IpamOperatingRegion>, remove_operating_regions: Vec<String>, ) -> Result<&IpamResourceDiscovery, Ec2Error>

Source

pub fn associate_ipam_resource_discovery( &mut self, ipam_id: &str, resource_discovery_id: &str, tags: Tags, ) -> Result<&IpamResourceDiscoveryAssociation, Ec2Error>

Source

pub fn disassociate_ipam_resource_discovery( &mut self, assoc_id: &str, ) -> Result<IpamResourceDiscoveryAssociation, Ec2Error>

Source

pub fn provision_ipam_byoasn( &mut self, ipam_id: &str, asn: &str, description: Option<String>, ) -> Result<&IpamByoasn, Ec2Error>

Source

pub fn deprovision_ipam_byoasn( &mut self, ipam_id: &str, asn: &str, ) -> Result<IpamByoasn, Ec2Error>

Source

pub fn associate_ipam_byoasn( &mut self, asn: &str, cidr: &str, ) -> Result<AsnAssociation, Ec2Error>

Source

pub fn disassociate_ipam_byoasn( &mut self, asn: &str, cidr: &str, ) -> Result<AsnAssociation, Ec2Error>

Source

pub fn create_ipam_external_resource_verification_token( &mut self, ipam_id: &str, tags: Tags, ) -> Result<&IpamExternalResourceVerificationToken, Ec2Error>

Source

pub fn delete_ipam_external_resource_verification_token( &mut self, token_id: &str, ) -> Result<IpamExternalResourceVerificationToken, Ec2Error>

Source

pub fn create_ipam_policy( &mut self, ipam_id: &str, policy_name: String, description: Option<String>, allocation_rules: Vec<IpamPolicyAllocationRule>, tags: Tags, ) -> Result<&IpamPolicy, Ec2Error>

Source

pub fn delete_ipam_policy( &mut self, policy_id: &str, ) -> Result<IpamPolicy, Ec2Error>

Source

pub fn modify_ipam_policy_allocation_rules( &mut self, policy_id: &str, add_rules: Vec<IpamPolicyAllocationRule>, remove_rules: Vec<IpamPolicyAllocationRule>, ) -> Result<&IpamPolicy, Ec2Error>

Source

pub fn create_ipam_prefix_list_resolver( &mut self, ipam_id: &str, name: String, description: Option<String>, tags: Tags, ) -> Result<&IpamPrefixListResolver, Ec2Error>

Source

pub fn delete_ipam_prefix_list_resolver( &mut self, resolver_id: &str, ) -> Result<IpamPrefixListResolver, Ec2Error>

Source

pub fn modify_ipam_prefix_list_resolver( &mut self, resolver_id: &str, name: Option<String>, description: Option<String>, ) -> Result<&IpamPrefixListResolver, Ec2Error>

Source

pub fn create_ipam_prefix_list_resolver_target( &mut self, resolver_id: &str, target_resource_arn: String, target_resource_type: String, target_resource_region: String, tags: Tags, ) -> Result<&IpamPrefixListResolverTarget, Ec2Error>

Source

pub fn delete_ipam_prefix_list_resolver_target( &mut self, resolver_id: &str, target_id: &str, ) -> Result<IpamPrefixListResolverTarget, Ec2Error>

Source

pub fn modify_ipam_prefix_list_resolver_target( &mut self, resolver_id: &str, target_id: &str, target_resource_region: Option<String>, ) -> Result<&IpamPrefixListResolverTarget, Ec2Error>

Source

pub fn move_byoip_cidr_to_ipam( &mut self, cidr: &str, ipam_pool_id: &str, ) -> Result<&ByoipCidr, Ec2Error>

Source

pub fn next_bundle_task_id(&mut self) -> String

Source

pub fn next_import_volume_task_id(&mut self) -> String

Source

pub fn next_export_image_task_id(&mut self) -> String

Source

pub fn next_outpost_lag_id(&mut self) -> String

Source

pub fn modify_volume( &mut self, volume_id: &str, new_size: Option<i32>, new_volume_type: Option<String>, new_iops: Option<i32>, new_throughput: Option<i32>, new_multi_attach_enabled: Option<bool>, ) -> Result<&VolumeModification, Ec2Error>

ModifyVolume: mutate the volume in place and record a VolumeModification.

Source

pub fn import_volume( &mut self, availability_zone: String, image_format: String, image_size: i64, image_import_manifest_url: String, volume_size: i64, description: Option<String>, ) -> &ImportVolumeTask

ImportVolume: synthesise a conversion task.

Source

pub fn cancel_import_volume_task( &mut self, task_id: &str, ) -> Result<(), Ec2Error>

Source

pub fn bundle_instance( &mut self, instance_id: String, bucket: String, prefix: String, ) -> &BundleTask

BundleInstance: create a bundle task.

Source

pub fn cancel_bundle_task( &mut self, bundle_id: &str, ) -> Result<&BundleTask, Ec2Error>

Source

pub fn describe_bundle_tasks(&self, ids: &[String]) -> Vec<BundleTask>

Source

pub fn set_id_format(&mut self, resource: &str, use_long_ids: bool)

ModifyIdFormat: set per-resource long/short ID format toggle.

Source

pub fn enable_fast_launch( &mut self, image_id: &str, resource_type: String, target_resource_count: Option<i32>, max_parallel_launches: i32, launch_template_id: Option<String>, launch_template_name: Option<String>, version: Option<String>, owner_id: String, ) -> Result<&FastLaunchState, Ec2Error>

EnableFastLaunch: store fast-launch state on the image.

Source

pub fn disable_fast_launch( &mut self, image_id: &str, ) -> Result<&FastLaunchState, Ec2Error>

Source

pub fn export_image( &mut self, image_id: String, role_name: String, s3_bucket: String, s3_prefix: Option<String>, disk_image_format: String, description: Option<String>, tags: Tags, ) -> &ExportImageTask

ExportImage: synthesise an export task.

Trait Implementations§

Source§

impl Debug for Ec2State

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Ec2State

Source§

fn default() -> Ec2State

Returns the “default value” for a type. Read more
Source§

impl From<&Ec2State> for Ec2StateView

Source§

fn from(state: &Ec2State) -> Self

Converts to this type from the input type.
Source§

impl From<Ec2StateView> for Ec2State

Source§

fn from(view: Ec2StateView) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more