-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optional table-arn for ddb datasource (#3250)
- Loading branch information
1 parent
f3db0f3
commit 6e91fe9
Showing
9 changed files
with
2,393 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/translator/input/graphqlapi_ddb_datasource_no_table_arn.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Transform: AWS::Serverless-2016-10-31 | ||
|
||
Mappings: | ||
TablesToRegions: | ||
Table1: | ||
Region: us-west-2 | ||
|
||
Resources: | ||
Table1: | ||
Type: AWS::Serverless::SimpleTable | ||
Properties: | ||
TableName: Table1 | ||
|
||
SuperCoolAPI: | ||
Type: AWS::Serverless::GraphQLApi | ||
Properties: | ||
SchemaInline: | | ||
type Todo { | ||
id: ID! | ||
description: String! | ||
} | ||
type Mutation { | ||
addTodo(id: ID!, description: String!): Todo! | ||
} | ||
type Query { | ||
getTodo(id: ID!): Todo | ||
} | ||
schema { | ||
mutation: Mutation | ||
query: Query | ||
} | ||
Auth: | ||
Type: AWS_IAM | ||
DataSources: | ||
DynamoDb: | ||
HardcodedTableName: | ||
TableName: Table1 | ||
TableNameIntrinsic: | ||
TableName: !Ref Table1 | ||
RegionHardcoded: | ||
TableName: Table1 | ||
Region: us-west-2 | ||
RegionIntrinsic: | ||
TableName: !Ref Table1 | ||
Region: !FindInMap [TablesToRegions, Table1, Region] |
Oops, something went wrong.