Datasets:
Commit ·
a66ea27
1
Parent(s): 4112f82
Add human_reference_dataset/aws-cloudformation-templates/DynamoDB/
Browse files- human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Secondary_Indexes.json +115 -0
- human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Secondary_Indexes.yaml +69 -0
- human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Table.json +86 -0
- human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Table.yaml +61 -0
human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Secondary_Indexes.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"AWSTemplateFormatVersion": "2010-09-09",
|
| 3 |
+
"Description": "AWS CloudFormation Sample Template DynamoDB_Secondary_Indexes: Create a DynamoDB table with local and global secondary indexes. **WARNING** This template creates an Amazon DynamoDB table. You will be billed for the AWS resources used if you create a stack from this template.",
|
| 4 |
+
"Metadata": {
|
| 5 |
+
"License": "Apache-2.0"
|
| 6 |
+
},
|
| 7 |
+
"Parameters": {
|
| 8 |
+
"ReadCapacityUnits": {
|
| 9 |
+
"Description": "Provisioned read throughput",
|
| 10 |
+
"Type": "Number",
|
| 11 |
+
"Default": "5",
|
| 12 |
+
"MinValue": "5",
|
| 13 |
+
"MaxValue": "10000",
|
| 14 |
+
"ConstraintDescription": "must be between 5 and 10000"
|
| 15 |
+
},
|
| 16 |
+
"WriteCapacityUnits": {
|
| 17 |
+
"Description": "Provisioned write throughput",
|
| 18 |
+
"Type": "Number",
|
| 19 |
+
"Default": "10",
|
| 20 |
+
"MinValue": "5",
|
| 21 |
+
"MaxValue": "10000",
|
| 22 |
+
"ConstraintDescription": "must be between 5 and 10000"
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"Resources": {
|
| 26 |
+
"TableOfBooks": {
|
| 27 |
+
"Type": "AWS::DynamoDB::Table",
|
| 28 |
+
"Properties": {
|
| 29 |
+
"AttributeDefinitions": [
|
| 30 |
+
{
|
| 31 |
+
"AttributeName": "Title",
|
| 32 |
+
"AttributeType": "S"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"AttributeName": "Category",
|
| 36 |
+
"AttributeType": "S"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"AttributeName": "Language",
|
| 40 |
+
"AttributeType": "S"
|
| 41 |
+
}
|
| 42 |
+
],
|
| 43 |
+
"KeySchema": [
|
| 44 |
+
{
|
| 45 |
+
"AttributeName": "Category",
|
| 46 |
+
"KeyType": "HASH"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"AttributeName": "Title",
|
| 50 |
+
"KeyType": "RANGE"
|
| 51 |
+
}
|
| 52 |
+
],
|
| 53 |
+
"ProvisionedThroughput": {
|
| 54 |
+
"ReadCapacityUnits": {
|
| 55 |
+
"Ref": "ReadCapacityUnits"
|
| 56 |
+
},
|
| 57 |
+
"WriteCapacityUnits": {
|
| 58 |
+
"Ref": "WriteCapacityUnits"
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
"LocalSecondaryIndexes": [
|
| 62 |
+
{
|
| 63 |
+
"IndexName": "LanguageIndex",
|
| 64 |
+
"KeySchema": [
|
| 65 |
+
{
|
| 66 |
+
"AttributeName": "Category",
|
| 67 |
+
"KeyType": "HASH"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"AttributeName": "Language",
|
| 71 |
+
"KeyType": "RANGE"
|
| 72 |
+
}
|
| 73 |
+
],
|
| 74 |
+
"Projection": {
|
| 75 |
+
"ProjectionType": "KEYS_ONLY"
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
],
|
| 79 |
+
"GlobalSecondaryIndexes": [
|
| 80 |
+
{
|
| 81 |
+
"IndexName": "TitleIndex",
|
| 82 |
+
"KeySchema": [
|
| 83 |
+
{
|
| 84 |
+
"AttributeName": "Title",
|
| 85 |
+
"KeyType": "HASH"
|
| 86 |
+
}
|
| 87 |
+
],
|
| 88 |
+
"Projection": {
|
| 89 |
+
"ProjectionType": "KEYS_ONLY"
|
| 90 |
+
},
|
| 91 |
+
"ProvisionedThroughput": {
|
| 92 |
+
"ReadCapacityUnits": {
|
| 93 |
+
"Ref": "ReadCapacityUnits"
|
| 94 |
+
},
|
| 95 |
+
"WriteCapacityUnits": {
|
| 96 |
+
"Ref": "WriteCapacityUnits"
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
}
|
| 100 |
+
],
|
| 101 |
+
"PointInTimeRecoverySpecification": {
|
| 102 |
+
"PointInTimeRecoveryEnabled": true
|
| 103 |
+
}
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
},
|
| 107 |
+
"Outputs": {
|
| 108 |
+
"TableName": {
|
| 109 |
+
"Description": "Name of the newly created DynamoDB table",
|
| 110 |
+
"Value": {
|
| 111 |
+
"Ref": "TableOfBooks"
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
}
|
| 115 |
+
}
|
human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Secondary_Indexes.yaml
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
AWSTemplateFormatVersion: "2010-09-09"
|
| 2 |
+
|
| 3 |
+
Description: 'AWS CloudFormation Sample Template DynamoDB_Secondary_Indexes: Create a DynamoDB table with local and global secondary indexes. **WARNING** This template creates an Amazon DynamoDB table. You will be billed for the AWS resources used if you create a stack from this template.'
|
| 4 |
+
|
| 5 |
+
Metadata:
|
| 6 |
+
License: Apache-2.0
|
| 7 |
+
|
| 8 |
+
Parameters:
|
| 9 |
+
ReadCapacityUnits:
|
| 10 |
+
Description: Provisioned read throughput
|
| 11 |
+
Type: Number
|
| 12 |
+
Default: "5"
|
| 13 |
+
MinValue: "5"
|
| 14 |
+
MaxValue: "10000"
|
| 15 |
+
ConstraintDescription: must be between 5 and 10000
|
| 16 |
+
|
| 17 |
+
WriteCapacityUnits:
|
| 18 |
+
Description: Provisioned write throughput
|
| 19 |
+
Type: Number
|
| 20 |
+
Default: "10"
|
| 21 |
+
MinValue: "5"
|
| 22 |
+
MaxValue: "10000"
|
| 23 |
+
ConstraintDescription: must be between 5 and 10000
|
| 24 |
+
|
| 25 |
+
Resources:
|
| 26 |
+
TableOfBooks:
|
| 27 |
+
Type: AWS::DynamoDB::Table
|
| 28 |
+
Properties:
|
| 29 |
+
AttributeDefinitions:
|
| 30 |
+
- AttributeName: Title
|
| 31 |
+
AttributeType: S
|
| 32 |
+
- AttributeName: Category
|
| 33 |
+
AttributeType: S
|
| 34 |
+
- AttributeName: Language
|
| 35 |
+
AttributeType: S
|
| 36 |
+
KeySchema:
|
| 37 |
+
- AttributeName: Category
|
| 38 |
+
KeyType: HASH
|
| 39 |
+
- AttributeName: Title
|
| 40 |
+
KeyType: RANGE
|
| 41 |
+
ProvisionedThroughput:
|
| 42 |
+
ReadCapacityUnits: !Ref ReadCapacityUnits
|
| 43 |
+
WriteCapacityUnits: !Ref WriteCapacityUnits
|
| 44 |
+
LocalSecondaryIndexes:
|
| 45 |
+
- IndexName: LanguageIndex
|
| 46 |
+
KeySchema:
|
| 47 |
+
- AttributeName: Category
|
| 48 |
+
KeyType: HASH
|
| 49 |
+
- AttributeName: Language
|
| 50 |
+
KeyType: RANGE
|
| 51 |
+
Projection:
|
| 52 |
+
ProjectionType: KEYS_ONLY
|
| 53 |
+
GlobalSecondaryIndexes:
|
| 54 |
+
- IndexName: TitleIndex
|
| 55 |
+
KeySchema:
|
| 56 |
+
- AttributeName: Title
|
| 57 |
+
KeyType: HASH
|
| 58 |
+
Projection:
|
| 59 |
+
ProjectionType: KEYS_ONLY
|
| 60 |
+
ProvisionedThroughput:
|
| 61 |
+
ReadCapacityUnits: !Ref ReadCapacityUnits
|
| 62 |
+
WriteCapacityUnits: !Ref WriteCapacityUnits
|
| 63 |
+
PointInTimeRecoverySpecification:
|
| 64 |
+
PointInTimeRecoveryEnabled: true
|
| 65 |
+
|
| 66 |
+
Outputs:
|
| 67 |
+
TableName:
|
| 68 |
+
Description: Name of the newly created DynamoDB table
|
| 69 |
+
Value: !Ref TableOfBooks
|
human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Table.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"AWSTemplateFormatVersion": "2010-09-09",
|
| 3 |
+
"Description": "AWS CloudFormation Sample Template DynamoDB_Table: This template demonstrates the creation of a DynamoDB table. **WARNING** This template creates an Amazon DynamoDB table. You will be billed for the AWS resources used if you create a stack from this template.",
|
| 4 |
+
"Metadata": {
|
| 5 |
+
"License": "Apache-2.0"
|
| 6 |
+
},
|
| 7 |
+
"Parameters": {
|
| 8 |
+
"HashKeyElementName": {
|
| 9 |
+
"Description": "HashType PrimaryKey Name",
|
| 10 |
+
"Type": "String",
|
| 11 |
+
"AllowedPattern": "[a-zA-Z0-9]*",
|
| 12 |
+
"MinLength": "1",
|
| 13 |
+
"MaxLength": "2048",
|
| 14 |
+
"ConstraintDescription": "must contain only alphanumberic characters"
|
| 15 |
+
},
|
| 16 |
+
"HashKeyElementType": {
|
| 17 |
+
"Description": "HashType PrimaryKey Type",
|
| 18 |
+
"Type": "String",
|
| 19 |
+
"Default": "S",
|
| 20 |
+
"AllowedPattern": "[S|N]",
|
| 21 |
+
"MinLength": "1",
|
| 22 |
+
"MaxLength": "1",
|
| 23 |
+
"ConstraintDescription": "must be either S or N"
|
| 24 |
+
},
|
| 25 |
+
"ReadCapacityUnits": {
|
| 26 |
+
"Description": "Provisioned read throughput",
|
| 27 |
+
"Type": "Number",
|
| 28 |
+
"Default": "5",
|
| 29 |
+
"MinValue": "5",
|
| 30 |
+
"MaxValue": "10000",
|
| 31 |
+
"ConstraintDescription": "must be between 5 and 10000"
|
| 32 |
+
},
|
| 33 |
+
"WriteCapacityUnits": {
|
| 34 |
+
"Description": "Provisioned write throughput",
|
| 35 |
+
"Type": "Number",
|
| 36 |
+
"Default": "10",
|
| 37 |
+
"MinValue": "5",
|
| 38 |
+
"MaxValue": "10000",
|
| 39 |
+
"ConstraintDescription": "must be between 5 and 10000"
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"Resources": {
|
| 43 |
+
"myDynamoDBTable": {
|
| 44 |
+
"Type": "AWS::DynamoDB::Table",
|
| 45 |
+
"Properties": {
|
| 46 |
+
"AttributeDefinitions": [
|
| 47 |
+
{
|
| 48 |
+
"AttributeName": {
|
| 49 |
+
"Ref": "HashKeyElementName"
|
| 50 |
+
},
|
| 51 |
+
"AttributeType": {
|
| 52 |
+
"Ref": "HashKeyElementType"
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
],
|
| 56 |
+
"KeySchema": [
|
| 57 |
+
{
|
| 58 |
+
"AttributeName": {
|
| 59 |
+
"Ref": "HashKeyElementName"
|
| 60 |
+
},
|
| 61 |
+
"KeyType": "HASH"
|
| 62 |
+
}
|
| 63 |
+
],
|
| 64 |
+
"ProvisionedThroughput": {
|
| 65 |
+
"ReadCapacityUnits": {
|
| 66 |
+
"Ref": "ReadCapacityUnits"
|
| 67 |
+
},
|
| 68 |
+
"WriteCapacityUnits": {
|
| 69 |
+
"Ref": "WriteCapacityUnits"
|
| 70 |
+
}
|
| 71 |
+
},
|
| 72 |
+
"PointInTimeRecoverySpecification": {
|
| 73 |
+
"PointInTimeRecoveryEnabled": true
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
},
|
| 78 |
+
"Outputs": {
|
| 79 |
+
"TableName": {
|
| 80 |
+
"Description": "Table name of the newly created DynamoDB table",
|
| 81 |
+
"Value": {
|
| 82 |
+
"Ref": "myDynamoDBTable"
|
| 83 |
+
}
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
}
|
human_reference_dataset/aws-cloudformation-templates/DynamoDB/DynamoDB_Table.yaml
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
AWSTemplateFormatVersion: "2010-09-09"
|
| 2 |
+
|
| 3 |
+
Description: 'AWS CloudFormation Sample Template DynamoDB_Table: This template demonstrates the creation of a DynamoDB table. **WARNING** This template creates an Amazon DynamoDB table. You will be billed for the AWS resources used if you create a stack from this template.'
|
| 4 |
+
|
| 5 |
+
Metadata:
|
| 6 |
+
License: Apache-2.0
|
| 7 |
+
|
| 8 |
+
Parameters:
|
| 9 |
+
HashKeyElementName:
|
| 10 |
+
Description: HashType PrimaryKey Name
|
| 11 |
+
Type: String
|
| 12 |
+
AllowedPattern: '[a-zA-Z0-9]*'
|
| 13 |
+
MinLength: "1"
|
| 14 |
+
MaxLength: "2048"
|
| 15 |
+
ConstraintDescription: must contain only alphanumberic characters
|
| 16 |
+
|
| 17 |
+
HashKeyElementType:
|
| 18 |
+
Description: HashType PrimaryKey Type
|
| 19 |
+
Type: String
|
| 20 |
+
Default: S
|
| 21 |
+
AllowedPattern: '[S|N]'
|
| 22 |
+
MinLength: "1"
|
| 23 |
+
MaxLength: "1"
|
| 24 |
+
ConstraintDescription: must be either S or N
|
| 25 |
+
|
| 26 |
+
ReadCapacityUnits:
|
| 27 |
+
Description: Provisioned read throughput
|
| 28 |
+
Type: Number
|
| 29 |
+
Default: "5"
|
| 30 |
+
MinValue: "5"
|
| 31 |
+
MaxValue: "10000"
|
| 32 |
+
ConstraintDescription: must be between 5 and 10000
|
| 33 |
+
|
| 34 |
+
WriteCapacityUnits:
|
| 35 |
+
Description: Provisioned write throughput
|
| 36 |
+
Type: Number
|
| 37 |
+
Default: "10"
|
| 38 |
+
MinValue: "5"
|
| 39 |
+
MaxValue: "10000"
|
| 40 |
+
ConstraintDescription: must be between 5 and 10000
|
| 41 |
+
|
| 42 |
+
Resources:
|
| 43 |
+
myDynamoDBTable:
|
| 44 |
+
Type: AWS::DynamoDB::Table
|
| 45 |
+
Properties:
|
| 46 |
+
AttributeDefinitions:
|
| 47 |
+
- AttributeName: !Ref HashKeyElementName
|
| 48 |
+
AttributeType: !Ref HashKeyElementType
|
| 49 |
+
KeySchema:
|
| 50 |
+
- AttributeName: !Ref HashKeyElementName
|
| 51 |
+
KeyType: HASH
|
| 52 |
+
ProvisionedThroughput:
|
| 53 |
+
ReadCapacityUnits: !Ref ReadCapacityUnits
|
| 54 |
+
WriteCapacityUnits: !Ref WriteCapacityUnits
|
| 55 |
+
PointInTimeRecoverySpecification:
|
| 56 |
+
PointInTimeRecoveryEnabled: true
|
| 57 |
+
|
| 58 |
+
Outputs:
|
| 59 |
+
TableName:
|
| 60 |
+
Description: Table name of the newly created DynamoDB table
|
| 61 |
+
Value: !Ref myDynamoDBTable
|