For AWS::DynamoDB::Table, CloudFormation supports!GetAtt on StreamArn to return the ARN of a DynamoDB Stream when StreamSpecification is configured.
There are cases where only the Stream's name is desirable. For example, SAM's DynamoDBStreamReadPolicy. The name can be extracted from the ARN: given DynamoDB Table MyDynamoDbTable, we get the name like so:
Name of the resource
AWS::DynamoDB::Table
Description
For
AWS::DynamoDB::Table
, CloudFormation supports!GetAtt
onStreamArn
to return the ARN of a DynamoDB Stream whenStreamSpecification
is configured.There are cases where only the Stream's name is desirable. For example, SAM's DynamoDBStreamReadPolicy. The name can be extracted from the ARN: given DynamoDB Table
MyDynamoDbTable
, we get the name like so:Whilst the above is a sufficient workaround for now, may
GetAtt
be extended to support name retrieval in addition to ARN?