Skip to main content

Module state

Module state 

Source
Expand description

EC2 service state.

Partitioned per account+region via fakecloud_core::multi_account. The tags map is keyed by EC2 resource id (e.g. vpc-…, i-…, sg-…) and is the backing store for CreateTags/DeleteTags/DescribeTags plus the tag:/tag-key describe filters shared across every resource family.

Structs§

CapacityReservation
An on-demand capacity reservation.
CarrierGateway
A carrier gateway (Wavelength).
ClientVpnEndpoint
A Client VPN endpoint.
CoipPool
A customer-owned IP (CoIP) pool.
ConnectionNotification
A VPC endpoint connection notification.
CpuOptions
CPU options round-tripped by ModifyInstanceCpuOptions.
CustomerGateway
A customer gateway (on-prem side of a VPN).
DedicatedHost
A Dedicated Host.
DhcpConfig
One key -> values entry in a DHCP options set.
DhcpOptions
A DHCP options set.
Ec2Snapshot
On-disk snapshot envelope for EC2 state. Versioned so format changes fail loudly on upgrade rather than silently mis-parsing. Backing containers are not serialized – on restore the server reconciles them via Ec2Service::recover_persisted_containers.
Ec2State
Per-account, per-region EC2 state. Resource families are added to this struct as their batches land.
ElasticIp
An Elastic IP allocation.
EndpointService
A VPC endpoint service configuration (PrivateLink provider side).
EniAttachment
An ENI attachment.
Fleet
An EC2 fleet.
FlowLog
A VPC flow log.
Image
An AMI (machine image).
Instance
An EC2 instance (metadata-faithful; a Docker-backed runtime layers on top).
InstanceConnectEndpoint
An EC2 Instance Connect endpoint.
InternetGateway
An internet gateway (or egress-only IGW) with its VPC attachments.
Ipam
An IPAM (IP Address Manager).
IpamPolicy
An IPAM policy.
IpamPool
An IPAM pool.
IpamPrefixListResolver
An IPAM prefix-list resolver.
IpamPrefixListResolverTarget
An IPAM prefix-list resolver target.
IpamResourceDiscovery
An IPAM resource discovery.
IpamScope
An IPAM scope.
KeyPair
An EC2 key pair (public-key metadata only).
LaunchTemplate
A launch template (versions tracked as monotonic counters).
LocalGatewayRouteTable
A local-gateway route table.
LocalGatewayRouteTableVifgAssoc
A local-gateway route-table <-> virtual-interface-group association.
LocalGatewayRouteTableVpcAssoc
A local-gateway route-table <-> VPC association.
LocalGatewayVif
A local-gateway virtual interface.
LocalGatewayVifGroup
A local-gateway virtual-interface group.
MaintenanceOptions
Maintenance options round-tripped by ModifyInstanceMaintenanceOptions.
MetadataOptions
IMDS (instance-metadata service) options, round-tripped by ModifyInstanceMetadataOptions and reflected in DescribeInstances.
NatGateway
A NAT gateway.
NetworkAcl
A network ACL.
NetworkAclAssoc
A network ACL <-> subnet association.
NetworkAclEntry
A network ACL entry (rule).
NetworkInsightsAccessScope
A Network Insights access scope.
NetworkInsightsAccessScopeAnalysis
A Network Insights access-scope analysis.
NetworkInsightsAnalysis
A Network Insights path analysis.
NetworkInsightsPath
A Network Insights reachability path.
NetworkInterface
An elastic network interface.
NetworkInterfacePermission
A network-interface permission grant.
PlacementGroup
A placement group.
ReservedInstances
A Reserved Instance purchase.
ReservedInstancesListing
A Reserved Instances listing in the Reserved Instance Marketplace.
ReservedInstancesModification
A Reserved Instances modification request.
Route
A route within a route table.
RouteTable
A route table.
RouteTableAssociation
A route-table association (to a subnet or gateway, or the VPC main table).
SecurityGroup
A security group.
SecurityGroupRule
A security-group rule (ingress or egress), stored flat.
Snapshot
An EBS snapshot.
SpotFleet
A Spot fleet request.
SpotRequest
A Spot instance request.
Subnet
A subnet within a VPC.
SubnetCidrReservation
A CIDR reservation within a subnet.
Tag
A single EC2 resource tag.
TgwAttachment
A Transit Gateway attachment (VPC and others).
TgwMeteringPolicy
A Transit Gateway metering policy.
TgwMulticastDomain
A Transit Gateway multicast domain.
TgwPeering
A Transit Gateway peering attachment.
TgwRoute
A static Transit Gateway route within a route table.
TgwRouteTable
A Transit Gateway route table.
TransitGateway
A Transit Gateway.
VerifiedAccessEndpoint
A Verified Access endpoint.
VerifiedAccessGroup
A Verified Access group.
VerifiedAccessInstance
A Verified Access instance.
VerifiedAccessTrustProvider
A Verified Access trust provider.
Volume
An EBS volume.
VolumeAttachment
An EBS volume attachment.
Vpc
A Virtual Private Cloud.
VpcCidrAssoc
A secondary CIDR-block association on a VPC.
VpcEndpoint
A VPC endpoint.
VpcPeering
A VPC peering connection.
VpnConcentrator
A VPN concentrator.
VpnConnection
A Site-to-Site VPN connection.
VpnGateway
A virtual private gateway.

Constants§

EC2_SNAPSHOT_SCHEMA_VERSION

Type Aliases§

SharedEc2State
Shared, account-partitioned EC2 state handle.