[][src]Module aws_arn::builder

Provides a more natural builder interface for constructing ARNs.

Example

The following shows the construction of an AWS versioned layer ARN.

use aws_arn::builder::*;

let arn = ArnBuilder::new("lambda")
    .resource(
        ResourceBuilder::new("my-layer")
            .is_a("layer")
            .with_version(3)
            .build(),
    )
    .in_region("us-east-2")
    .owned_by("123456789012")
    .build();
println!("ARN: '{}'", arn);

This should print ARN: 'arn:aws:lambda:us-east-2:123456789012:layer:my-layer:3'.

Modules

cognito

Provides a set of simple helper functions to make ARNs for the Cognito Identity service.

iam

Provides a set of simple helper functions to make ARNs for the IAM service.

lambda

Provides a set of simple helper functions to make ARNs for the Lambda service.

s3

Provides a set of simple helper functions to make ARNs for the S3 service.

Structs

ArnBuilder

Builder type for an AWS ARN.

ResourceBuilder

Builder type for the resource portion of an ARN.