Show / Hide Table of Contents

Enum ArnFormat

An enum representing the various ARN formats that different services use.

Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum ArnFormat
Syntax (vb)
Public Enum ArnFormat
Remarks

ExampleMetadata: infused

Examples
Stack stack;


            // Builds "arn:<PARTITION>:lambda:<REGION>:<ACCOUNT>:function:MyFunction"
            stack.FormatArn(new ArnComponents {
                Service = "lambda",
                Resource = "function",
                ArnFormat = ArnFormat.COLON_RESOURCE_NAME,
                ResourceName = "MyFunction"
            });

Synopsis

Fields

COLON_RESOURCE_NAME

This represents a format where the 'resource' and 'resourceName' parts are separated with a colon.

NO_RESOURCE_NAME

This represents a format where there is no 'resourceName' part.

SLASH_RESOURCE_NAME

This represents a format where the 'resource' and 'resourceName' parts are separated with a slash.

SLASH_RESOURCE_SLASH_RESOURCE_NAME

This represents a format where the 'resource' and 'resourceName' parts are seperated with a slash, but there is also an additional slash after the colon separating 'account' from 'resource'.

Fields

Name Description
COLON_RESOURCE_NAME

This represents a format where the 'resource' and 'resourceName' parts are separated with a colon.

NO_RESOURCE_NAME

This represents a format where there is no 'resourceName' part.

SLASH_RESOURCE_NAME

This represents a format where the 'resource' and 'resourceName' parts are separated with a slash.

SLASH_RESOURCE_SLASH_RESOURCE_NAME

This represents a format where the 'resource' and 'resourceName' parts are seperated with a slash, but there is also an additional slash after the colon separating 'account' from 'resource'.

Back to top Generated by DocFX