Crate aws_resource_id

Source
Expand description

§aws-resource-id

License Crates.io Docs.rs

Copy-able stack-only AWS resource IDs

§General format IDs

18 bytes stack-only IDs following the general [prefix]-[8-or-17-chars-unique-string] format.

TypePrefixDetails
AwsAmiIdami-AMI (Amazon Machine Image)
AwsNetworkAclIdacl-Network ACL (Access Control List)
AwsCustomerGatewayIdcgw-Customer Gateway
AwsElasticIpIdeipalloc-Elastic IP
AwsEfsFileSystemIdfs-EFS (Elastic File System)
AwsEfsMountTargetIdfsmt-EFS Mount Target ID
AwsCloudFormationStackIdstack-CloudFormation Stack
AwsElasticBeanstalkEnvironmentIde-Elastic Beanstalk Environment
AwsInstanceIdi-EC2 Instance
AwsInternetGatewayIdigw-Internet Gateway
AwsKeyPairIdkey-Key Pair
AwsLoadBalancerIdelbv2-Elastic Load Balancer
AwsNatGatewayIdnat-NAT Gateway
AwsNetworkInterfaceIdeni-Network Interface
AwsPlacementGroupIdpg-Placement Group
AwsRdsInstanceIddb-RDS Instance
AwsRedshiftClusterIdredshift-Redshift Cluster
AwsRouteTableIdrtb-Route Table
AwsSecurityGroupIdsg-Security Group
AwsSnapshotIdsnap-EBS Snapshot
AwsSubnetIdsubnet-VPC Subnet
AwsTargetGroupIdtg-Target Group
AwsTransitGatewayAttachmentIdtgw-attach-Transit Gateway Attachment
AwsTransitGatewayIdtgw-Transit Gateway
AwsVolumeIdvol-EBS Volume
AwsVpcIdvpc-VPC (Virtual Private Cloud)
AwsVpnConnectionIdvpn-VPN Connection
AwsVpnGatewayIdvgw-VPN Gateway

§Specific format ids

TypeSizeStack-onlyExampleDetails
AwsRegionId1 byteyeseu-central-1Region

§Contributing

  • please run .pre-commit.sh before sending a PR, it will check everything

§License

This project is licensed under the MIT license.

Re-exports§

pub use general::*;
pub use region::*;

Modules§

general
AWS Resource IDs in a General Format
region
AWS Region ID

Enums§

Error
AWS resource ID parsing or validating error