File tree Expand file tree Collapse file tree 2 files changed +42
-9
lines changed Expand file tree Collapse file tree 2 files changed +42
-9
lines changed Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "LogicalResourceId" : " NotesTable" ,
4
+ "ResourceType" : " AWS::DynamoDB::Table"
5
+ },
6
+ {
7
+ "LogicalResourceId" : " DynamoDBRole" ,
8
+ "ResourceType" : " AWS::IAM::Role"
9
+ },
10
+ {
11
+ "LogicalResourceId" : " AppSyncApi" ,
12
+ "ResourceType" : " AWS::AppSync::GraphQLApi"
13
+ },
14
+ {
15
+ "LogicalResourceId" : " ApiKey" ,
16
+ "ResourceType" : " AWS::AppSync::ApiKey"
17
+ },
18
+ {
19
+ "LogicalResourceId" : " ApiSchema" ,
20
+ "ResourceType" : " AWS::AppSync::GraphQLSchema"
21
+ },
22
+ {
23
+ "LogicalResourceId" : " NotesTableDataSource" ,
24
+ "ResourceType" : " AWS::AppSync::DataSource"
25
+ },
26
+ {
27
+ "LogicalResourceId" : " TriggerFunction" ,
28
+ "ResourceType" : " AWS::Lambda::Function"
29
+ },
30
+ {
31
+ "LogicalResourceId" : " TriggerFunctionRole" ,
32
+ "ResourceType" : " AWS::IAM::Role"
33
+ },
34
+ {
35
+ "LogicalResourceId" : " DataSourceToTableConnectorPolicy" ,
36
+ "ResourceType" : " AWS::IAM::ManagedPolicy"
37
+ }
38
+ ]
Original file line number Diff line number Diff line change 1
1
Resources :
2
2
NotesTable :
3
- Type : AWS::DynamoDB::Table
3
+ Type : AWS::Serverless::SimpleTable
4
4
Properties :
5
- TableName : notes-table
6
- AttributeDefinitions :
7
- - AttributeName : UserId
8
- AttributeType : S
9
- KeySchema :
10
- - AttributeName : NoteId
11
- KeyType : HASH
5
+ PrimaryKey :
6
+ Name : NoteId
7
+ Type : String
12
8
13
9
DynamoDBRole :
14
10
Type : AWS::IAM::Role
15
11
Properties :
16
- RoleName : appsync-dynamodb-role
17
12
AssumeRolePolicyDocument :
18
13
Version : ' 2012-10-17'
19
14
Statement :
You can’t perform that action at this time.
0 commit comments