-
Notifications
You must be signed in to change notification settings - Fork 272
/
Copy pathtemplate.yml
332 lines (326 loc) · 15.7 KB
/
template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
audited 20 packages in 1.07s
found 0 vulnerabilities
> [email protected] build /Users/n1531137/Documents/GitRepos/serverless/the-alexa-skill/python/lambda_fns
> tsc
Version 3.7.5
Syntax: tsc [options] [file...]
Examples: tsc hello.ts
tsc --outFile file.js file.ts
tsc @args.txt
tsc --build tsconfig.json
Options:
-h, --help Print this message.
-w, --watch Watch input files.
--pretty Stylize errors and messages using color and context (experimental).
--all Show all compiler options.
-v, --version Print the compiler's version.
--init Initializes a TypeScript project and creates a tsconfig.json file.
-p FILE OR DIRECTORY, --project FILE OR DIRECTORY Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
-b, --build Build one or more projects and their dependencies, if out of date
-t VERSION, --target VERSION Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'.
-m KIND, --module KIND Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'.
--lib Specify library files to be included in the compilation.
'es5' 'es6' 'es2015' 'es7' 'es2016' 'es2017' 'es2018' 'es2019' 'es2020' 'esnext' 'dom' 'dom.iterable' 'webworker' 'webworker.importscripts' 'scripthost' 'es2015.core' 'es2015.collection' 'es2015.generator' 'es2015.iterable' 'es2015.promise' 'es2015.proxy' 'es2015.reflect' 'es2015.symbol' 'es2015.symbol.wellknown' 'es2016.array.include' 'es2017.object' 'es2017.sharedmemory' 'es2017.string' 'es2017.intl' 'es2017.typedarrays' 'es2018.asyncgenerator' 'es2018.asynciterable' 'es2018.intl' 'es2018.promise' 'es2018.regexp' 'es2019.array' 'es2019.object' 'es2019.string' 'es2019.symbol' 'es2020.string' 'es2020.symbol.wellknown' 'esnext.array' 'esnext.symbol' 'esnext.asynciterable' 'esnext.intl' 'esnext.bigint'
--allowJs Allow javascript files to be compiled.
--jsx KIND Specify JSX code generation: 'preserve', 'react-native', or 'react'.
-d, --declaration Generates corresponding '.d.ts' file.
--declarationMap Generates a sourcemap for each corresponding '.d.ts' file.
--sourceMap Generates corresponding '.map' file.
--outFile FILE Concatenate and emit output to single file.
--outDir DIRECTORY Redirect output structure to the directory.
--removeComments Do not emit comments to output.
--noEmit Do not emit outputs.
--strict Enable all strict type-checking options.
--noImplicitAny Raise error on expressions and declarations with an implied 'any' type.
--strictNullChecks Enable strict null checks.
--strictFunctionTypes Enable strict checking of function types.
--strictBindCallApply Enable strict 'bind', 'call', and 'apply' methods on functions.
--strictPropertyInitialization Enable strict checking of property initialization in classes.
--noImplicitThis Raise error on 'this' expressions with an implied 'any' type.
--alwaysStrict Parse in strict mode and emit "use strict" for each source file.
--noUnusedLocals Report errors on unused locals.
--noUnusedParameters Report errors on unused parameters.
--noImplicitReturns Report error when not all code paths in function return a value.
--noFallthroughCasesInSwitch Report errors for fallthrough cases in switch statement.
--types Type declaration files to be included in compilation.
--esModuleInterop Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.
@<file> Insert command line options and files from a file.
Parameters:
AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3BucketCA61D416:
Type: String
Description: S3 bucket for asset "17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560"
AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3VersionKey52343CE5:
Type: String
Description: S3 key for asset version "17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560"
AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560ArtifactHashF33907CF:
Type: String
Description: Artifact hash for asset "17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560"
AssetParametersd905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7dfS3BucketB49D32AD:
Type: String
Description: S3 bucket for asset "d905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7df"
AssetParametersd905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7dfS3VersionKey5D53C02B:
Type: String
Description: S3 key for asset version "d905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7df"
AssetParametersd905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7dfArtifactHashFDF399F8:
Type: String
Description: Artifact hash for asset "d905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7df"
Resources:
Role1ABCC5F0:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service:
- alexa-appkit.amazon.com
- cloudformation.amazonaws.com
Version: "2012-10-17"
Metadata:
aws:cdk:path: the-alexa-skill/Role/Resource
RoleDefaultPolicy5FFB7DAB:
Type: AWS::IAM::Policy
Properties:
PolicyDocument:
Statement:
- Action: S3:GetObject
Effect: Allow
Resource:
Fn::Join:
- ""
- - arn:aws:s3:::%
- Ref: AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3BucketCA61D416
- /
- Fn::Select:
- 0
- Fn::Split:
- "||"
- Ref: AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3VersionKey52343CE5
- Fn::Select:
- 1
- Fn::Split:
- "||"
- Ref: AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3VersionKey52343CE5
Version: "2012-10-17"
PolicyName: RoleDefaultPolicy5FFB7DAB
Roles:
- Ref: Role1ABCC5F0
Metadata:
aws:cdk:path: the-alexa-skill/Role/DefaultPolicy/Resource
Users0A0EEA89:
Type: AWS::DynamoDB::Table
Properties:
KeySchema:
- AttributeName: userId
KeyType: HASH
AttributeDefinitions:
- AttributeName: userId
AttributeType: S
BillingMode: PAY_PER_REQUEST
UpdateReplacePolicy: Retain
DeletionPolicy: Retain
Metadata:
aws:cdk:path: the-alexa-skill/Users/Resource
AlexaLambdaHandlerServiceRoleA4811424:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: sts:AssumeRole
Effect: Allow
Principal:
Service: lambda.amazonaws.com
Version: "2012-10-17"
ManagedPolicyArns:
- Fn::Join:
- ""
- - "arn:"
- Ref: AWS::Partition
- :iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
Metadata:
aws:cdk:path: the-alexa-skill/AlexaLambdaHandler/ServiceRole/Resource
AlexaLambdaHandlerServiceRoleDefaultPolicy8BC5130A:
Type: AWS::IAM::Policy
Properties:
PolicyDocument:
Statement:
- Action:
- dynamodb:BatchGetItem
- dynamodb:GetRecords
- dynamodb:GetShardIterator
- dynamodb:Query
- dynamodb:GetItem
- dynamodb:Scan
- dynamodb:BatchWriteItem
- dynamodb:PutItem
- dynamodb:UpdateItem
- dynamodb:DeleteItem
Effect: Allow
Resource:
- Fn::GetAtt:
- Users0A0EEA89
- Arn
- Ref: AWS::NoValue
Version: "2012-10-17"
PolicyName: AlexaLambdaHandlerServiceRoleDefaultPolicy8BC5130A
Roles:
- Ref: AlexaLambdaHandlerServiceRoleA4811424
Metadata:
aws:cdk:path: the-alexa-skill/AlexaLambdaHandler/ServiceRole/DefaultPolicy/Resource
AlexaLambdaHandler6FAFE38D:
Type: AWS::Lambda::Function
Properties:
Code:
S3Bucket:
Ref: AssetParametersd905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7dfS3BucketB49D32AD
S3Key:
Fn::Join:
- ""
- - Fn::Select:
- 0
- Fn::Split:
- "||"
- Ref: AssetParametersd905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7dfS3VersionKey5D53C02B
- Fn::Select:
- 1
- Fn::Split:
- "||"
- Ref: AssetParametersd905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7dfS3VersionKey5D53C02B
Handler: message_wall.lambda_handler
Role:
Fn::GetAtt:
- AlexaLambdaHandlerServiceRoleA4811424
- Arn
Runtime: python3.8
Environment:
Variables:
USERS_TABLE:
Ref: Users0A0EEA89
DependsOn:
- AlexaLambdaHandlerServiceRoleDefaultPolicy8BC5130A
- AlexaLambdaHandlerServiceRoleA4811424
Metadata:
aws:cdk:path: the-alexa-skill/AlexaLambdaHandler/Resource
aws:asset:path: asset.d905e01cfffbc70fd4e1333e40f2bc5f5f0c1588864f483d5fb993498aa2d7df
aws:asset:property: Code
AlexaLambdaHandlerAlexaPermissionA372D625:
Type: AWS::Lambda::Permission
Properties:
Action: lambda:InvokeFunction
FunctionName:
Fn::GetAtt:
- AlexaLambdaHandler6FAFE38D
- Arn
Principal: alexa-appkit.amazon.com
Metadata:
aws:cdk:path: the-alexa-skill/AlexaLambdaHandler/AlexaPermission
thealexaskill:
Type: Alexa::ASK::Skill
Properties:
AuthenticationConfiguration:
ClientId: amzn1.application-oa2-client.4bdff2c9133341feba2db249d7739d18
ClientSecret: 64ed758c10dac51f5d9c25912206dd19d2d379826a269695de2439fd2a4a7aed
RefreshToken: Atzr|IwEBIJceCFdn8sCj6hhKnLW_avbXUba49DyzyuNXVvMa_o38QqdJ84osI__mZGhZg-0JLqd88jtkzhdrYHdvMg5En4qEpw4knMIFllH1GO9NJUJtSiGYDPOxyDnp1CV16AV1t7YojuHtFj4X6V0XE_tSBswTFzRpP0fjx_E0t97QaKllo4LFParxjsibO7cLRGY6fbe8CqZlMnOOpTRfCqL5JIzEArziVdC27leW02QRJkkUErYCJNAsKv-2tutYB1UXb2nT7IIwOfmNXSVmX1gUiFNgKrfXaXSFAXaZlQZ2zJN2v58uhD-3Aqqh5uyBAGJ1t4-ONovYbqnblrXRQvqZr6DvgSQb-8fgK0GFjHSpSfhGuHgFipJShpUouHg8ps0BRQYcyf8ESNcKEaVjCu9FSQ697MfTp4zo7s4Fxt2IGgN06PceR1GE6JrFlVGL-xkW-z_LCKGYWc1OPHmF2MwEQvUDAjT72huk-46Zh-GtzC-SezTrHYnfN4DkS-Ut5X8yZ_Iv1WdczVjqSP80b_T7KMV1tCP2EVwTBOk_86YzRsIyWXiLdpd-I_e-TWN0UuJms11q-Wn7LQ2Q58TkmsmQM4lCqcdNiY-QptOtfNt2q79SskXwTUii6wbP-LExWTl4iwEERIDEvzpyjlmxBNn98u_XlsBF-UdMjAHPmikCA0Mw1Q
SkillPackage:
Overrides:
Manifest:
apis:
custom:
endpoint:
uri:
Fn::GetAtt:
- AlexaLambdaHandler6FAFE38D
- Arn
S3Bucket:
Ref: AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3BucketCA61D416
S3BucketRole:
Fn::GetAtt:
- Role1ABCC5F0
- Arn
S3Key:
Fn::Join:
- ""
- - Fn::Select:
- 0
- Fn::Split:
- "||"
- Ref: AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3VersionKey52343CE5
- Fn::Select:
- 1
- Fn::Split:
- "||"
- Ref: AssetParameters17b588b0e3cf09068a05b4304cc136e8bb99c723652832e5051c406bc762f560S3VersionKey52343CE5
VendorId: M9WVOMA66B48U
Metadata:
aws:cdk:path: the-alexa-skill/the-alexa-skill
CDKMetadata:
Type: AWS::CDK::Metadata
Properties:
Modules: aws-cdk=1.64.0,@aws-cdk/alexa-ask=1.50.0,@aws-cdk/assets=1.50.0,@aws-cdk/aws-applicationautoscaling=1.50.0,@aws-cdk/aws-autoscaling-common=1.50.0,@aws-cdk/aws-cloudformation=1.50.0,@aws-cdk/aws-cloudwatch=1.50.0,@aws-cdk/aws-dynamodb=1.50.0,@aws-cdk/aws-ec2=1.50.0,@aws-cdk/aws-efs=1.50.0,@aws-cdk/aws-events=1.50.0,@aws-cdk/aws-iam=1.50.0,@aws-cdk/aws-kms=1.50.0,@aws-cdk/aws-lambda=1.50.0,@aws-cdk/aws-logs=1.50.0,@aws-cdk/aws-s3=1.50.0,@aws-cdk/aws-s3-assets=1.50.0,@aws-cdk/aws-sns=1.50.0,@aws-cdk/aws-sqs=1.50.0,@aws-cdk/aws-ssm=1.50.0,@aws-cdk/cloud-assembly-schema=1.50.0,@aws-cdk/core=1.50.0,@aws-cdk/custom-resources=1.50.0,@aws-cdk/cx-api=1.50.0,@aws-cdk/region-info=1.50.0,jsii-runtime=Python/3.8.5
Condition: CDKMetadataAvailable
Conditions:
CDKMetadataAvailable:
Fn::Or:
- Fn::Or:
- Fn::Equals:
- Ref: AWS::Region
- ap-east-1
- Fn::Equals:
- Ref: AWS::Region
- ap-northeast-1
- Fn::Equals:
- Ref: AWS::Region
- ap-northeast-2
- Fn::Equals:
- Ref: AWS::Region
- ap-south-1
- Fn::Equals:
- Ref: AWS::Region
- ap-southeast-1
- Fn::Equals:
- Ref: AWS::Region
- ap-southeast-2
- Fn::Equals:
- Ref: AWS::Region
- ca-central-1
- Fn::Equals:
- Ref: AWS::Region
- cn-north-1
- Fn::Equals:
- Ref: AWS::Region
- cn-northwest-1
- Fn::Equals:
- Ref: AWS::Region
- eu-central-1
- Fn::Or:
- Fn::Equals:
- Ref: AWS::Region
- eu-north-1
- Fn::Equals:
- Ref: AWS::Region
- eu-west-1
- Fn::Equals:
- Ref: AWS::Region
- eu-west-2
- Fn::Equals:
- Ref: AWS::Region
- eu-west-3
- Fn::Equals:
- Ref: AWS::Region
- me-south-1
- Fn::Equals:
- Ref: AWS::Region
- sa-east-1
- Fn::Equals:
- Ref: AWS::Region
- us-east-1
- Fn::Equals:
- Ref: AWS::Region
- us-east-2
- Fn::Equals:
- Ref: AWS::Region
- us-west-1
- Fn::Equals:
- Ref: AWS::Region
- us-west-2