Skip to content

Commit

Permalink
Preserve parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
kookster committed Aug 28, 2024
1 parent 519f041 commit 0ee1a6b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions db/dynamodb-global-table.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Metadata:
default: Table Definition
Parameters:
- TableName
- PartitionKey
- PartitionType
- PrimaryKey
- PrimaryType
- SortKey
- SortType
- ExpirationField
Expand Down Expand Up @@ -48,10 +48,10 @@ Metadata:
ParameterLabels:
TableName:
default: Table name
PartitionKey:
default: Partition key field
PartitionType:
default: Partition key type
PrimaryKey:
default: Primary key field
PrimaryType:
default: Primary key type
SortKey:
default: Sort key field
SortType:
Expand Down Expand Up @@ -97,12 +97,12 @@ Parameters:
TableName:
Type: String
Description: The unique DynamoDB table name.
PartitionKey:
PrimaryKey:
Type: String
Description: The name of the partition key field
PartitionType:
Description: The name of the primary key field
PrimaryType:
Type: String
Description: The type of the partition key field
Description: The type of the primary key field
AllowedValues:
- String
- Numeric
Expand Down Expand Up @@ -211,16 +211,16 @@ Resources:
Type: AWS::DynamoDB::GlobalTable
Properties:
AttributeDefinitions:
- AttributeName: !Ref PartitionKey
AttributeType: !FindInMap [DataTypesMap, !Ref PartitionType, Symbol]
- AttributeName: !Ref PrimaryKey
AttributeType: !FindInMap [DataTypesMap, !Ref PrimaryType, Symbol]
- !If
- HasSortKey
- AttributeName: !Ref SortKey
AttributeType: !FindInMap [DataTypesMap, !Ref SortType, Symbol]
- !Ref AWS::NoValue
BillingMode: !Ref BillingMode
KeySchema:
- AttributeName: !Ref PartitionKey
- AttributeName: !Ref PrimaryKey
KeyType: HASH
- !If
- HasSortKey
Expand Down

0 comments on commit 0ee1a6b

Please sign in to comment.