cloudstructs 0.1.42 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2708 -1557
- package/API.md +77 -77
- package/README.md +2 -3
- package/lib/codecommit-mirror/index.d.ts +6 -6
- package/lib/codecommit-mirror/index.js +13 -12
- package/lib/ecs-service-roller/index.d.ts +5 -5
- package/lib/ecs-service-roller/index.js +10 -9
- package/lib/email-receiver/receiver.d.ts +5 -5
- package/lib/email-receiver/receiver.js +15 -14
- package/lib/saml-identity-provider/index.d.ts +18 -18
- package/lib/saml-identity-provider/index.js +16 -15
- package/lib/slack-events/index.d.ts +5 -4
- package/lib/slack-events/index.js +13 -14
- package/lib/slack-textract/index.d.ts +6 -5
- package/lib/slack-textract/index.js +12 -11
- package/lib/state-machine-cr-provider/index.d.ts +2 -1
- package/lib/state-machine-cr-provider/index.js +14 -13
- package/lib/static-website/index.d.ts +6 -6
- package/lib/static-website/index.js +16 -15
- package/lib/url-shortener/index.d.ts +8 -7
- package/lib/url-shortener/index.js +19 -18
- package/package.json +20 -70
package/API.md
CHANGED
|
@@ -45,8 +45,8 @@ Name|Description
|
|
|
45
45
|
|
|
46
46
|
Mirror a repository to AWS CodeCommit on schedule.
|
|
47
47
|
|
|
48
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
49
|
-
__Extends__: [Construct](#
|
|
48
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
49
|
+
__Extends__: [Construct](#constructs-construct)
|
|
50
50
|
|
|
51
51
|
### Initializer
|
|
52
52
|
|
|
@@ -57,13 +57,13 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
57
57
|
new CodeCommitMirror(scope: Construct, id: string, props: CodeCommitMirrorProps)
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
* **scope** (<code>[Construct](#
|
|
60
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
61
61
|
* **id** (<code>string</code>) *No description*
|
|
62
62
|
* **props** (<code>[CodeCommitMirrorProps](#cloudstructs-codecommitmirrorprops)</code>) *No description*
|
|
63
|
-
* **cluster** (<code>[ICluster](#aws-cdk-aws-ecs-icluster)</code>) The ECS cluster where to run the mirroring operation.
|
|
63
|
+
* **cluster** (<code>[aws_ecs.ICluster](#aws-cdk-lib-aws-ecs-icluster)</code>) The ECS cluster where to run the mirroring operation.
|
|
64
64
|
* **repository** (<code>[CodeCommitMirrorSourceRepository](#cloudstructs-codecommitmirrorsourcerepository)</code>) The source repository.
|
|
65
|
-
* **schedule** (<code>[Schedule](#aws-cdk-aws-events-schedule)</code>) The schedule for the mirroring operation. __*Default*__: everyday at midnight
|
|
66
|
-
* **subnetSelection** (<code>[SubnetSelection](#aws-cdk-aws-ec2-subnetselection)</code>) Where to run the mirroring Fargate tasks. __*Default*__: public subnets
|
|
65
|
+
* **schedule** (<code>[aws_events.Schedule](#aws-cdk-lib-aws-events-schedule)</code>) The schedule for the mirroring operation. __*Default*__: everyday at midnight
|
|
66
|
+
* **subnetSelection** (<code>[aws_ec2.SubnetSelection](#aws-cdk-lib-aws-ec2-subnetselection)</code>) Where to run the mirroring Fargate tasks. __*Default*__: public subnets
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -92,7 +92,7 @@ Name | Type | Description
|
|
|
92
92
|
-----|------|-------------
|
|
93
93
|
**name** | <code>string</code> | The name of the repository.
|
|
94
94
|
**plainTextUrl**? | <code>string</code> | The HTTPS clone URL in plain text, used for a public repository.<br/>__*Optional*__
|
|
95
|
-
**secretUrl**? | <code>[Secret](#aws-cdk-aws-ecs-secret)</code> | The HTTPS clone URL if the repository is private.<br/>__*Optional*__
|
|
95
|
+
**secretUrl**? | <code>[aws_ecs.Secret](#aws-cdk-lib-aws-ecs-secret)</code> | The HTTPS clone URL if the repository is private.<br/>__*Optional*__
|
|
96
96
|
|
|
97
97
|
### Methods
|
|
98
98
|
|
|
@@ -120,7 +120,7 @@ static private(name: string, url: Secret): CodeCommitMirrorSourceRepository
|
|
|
120
120
|
```
|
|
121
121
|
|
|
122
122
|
* **name** (<code>string</code>) the repository name.
|
|
123
|
-
* **url** (<code>[Secret](#aws-cdk-aws-ecs-secret)</code>) the secret containing the HTTPS clone URL.
|
|
123
|
+
* **url** (<code>[aws_ecs.Secret](#aws-cdk-lib-aws-ecs-secret)</code>) the secret containing the HTTPS clone URL.
|
|
124
124
|
|
|
125
125
|
__Returns__:
|
|
126
126
|
* <code>[CodeCommitMirrorSourceRepository](#cloudstructs-codecommitmirrorsourcerepository)</code>
|
|
@@ -131,8 +131,8 @@ __Returns__:
|
|
|
131
131
|
|
|
132
132
|
Roll your ECS service tasks on schedule or with a rule.
|
|
133
133
|
|
|
134
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
135
|
-
__Extends__: [Construct](#
|
|
134
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
135
|
+
__Extends__: [Construct](#constructs-construct)
|
|
136
136
|
|
|
137
137
|
### Initializer
|
|
138
138
|
|
|
@@ -143,11 +143,11 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
143
143
|
new EcsServiceRoller(scope: Construct, id: string, props: EcsServiceRollerProps)
|
|
144
144
|
```
|
|
145
145
|
|
|
146
|
-
* **scope** (<code>[Construct](#
|
|
146
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
147
147
|
* **id** (<code>string</code>) *No description*
|
|
148
148
|
* **props** (<code>[EcsServiceRollerProps](#cloudstructs-ecsservicerollerprops)</code>) *No description*
|
|
149
|
-
* **cluster** (<code>[ICluster](#aws-cdk-aws-ecs-icluster)</code>) The ECS cluster where the services run.
|
|
150
|
-
* **service** (<code>[IService](#aws-cdk-aws-ecs-iservice)</code>) The ECS service for which tasks should be rolled.
|
|
149
|
+
* **cluster** (<code>[aws_ecs.ICluster](#aws-cdk-lib-aws-ecs-icluster)</code>) The ECS cluster where the services run.
|
|
150
|
+
* **service** (<code>[aws_ecs.IService](#aws-cdk-lib-aws-ecs-iservice)</code>) The ECS service for which tasks should be rolled.
|
|
151
151
|
* **trigger** (<code>[RollTrigger](#cloudstructs-rolltrigger)</code>) The rule or schedule that should trigger a roll. __*Default*__: roll everyday at midnight
|
|
152
152
|
|
|
153
153
|
|
|
@@ -157,8 +157,8 @@ new EcsServiceRoller(scope: Construct, id: string, props: EcsServiceRollerProps)
|
|
|
157
157
|
|
|
158
158
|
Receive emails through SES, save them to S3 and invokes a Lambda function.
|
|
159
159
|
|
|
160
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
161
|
-
__Extends__: [Construct](#
|
|
160
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
161
|
+
__Extends__: [Construct](#constructs-construct)
|
|
162
162
|
|
|
163
163
|
### Initializer
|
|
164
164
|
|
|
@@ -169,13 +169,13 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
169
169
|
new EmailReceiver(scope: Construct, id: string, props: EmailReceiverProps)
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
-
* **scope** (<code>[Construct](#
|
|
172
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
173
173
|
* **id** (<code>string</code>) *No description*
|
|
174
174
|
* **props** (<code>[EmailReceiverProps](#cloudstructs-emailreceiverprops)</code>) *No description*
|
|
175
|
-
* **function** (<code>[IFunction](#aws-cdk-aws-lambda-ifunction)</code>) A Lambda function to invoke after the message is saved to S3.
|
|
176
|
-
* **receiptRuleSet** (<code>[IReceiptRuleSet](#aws-cdk-aws-ses-ireceiptruleset)</code>) The SES receipt rule set where a receipt rule will be added.
|
|
175
|
+
* **function** (<code>[aws_lambda.IFunction](#aws-cdk-lib-aws-lambda-ifunction)</code>) A Lambda function to invoke after the message is saved to S3.
|
|
176
|
+
* **receiptRuleSet** (<code>[aws_ses.IReceiptRuleSet](#aws-cdk-lib-aws-ses-ireceiptruleset)</code>) The SES receipt rule set where a receipt rule will be added.
|
|
177
177
|
* **recipients** (<code>Array<string></code>) The recipients for which emails should be received.
|
|
178
|
-
* **afterRule** (<code>[IReceiptRule](#aws-cdk-aws-ses-ireceiptrule)</code>) An existing rule after which the new rule will be placed in the rule set. __*Default*__: The new rule is inserted at the beginning of the rule list.
|
|
178
|
+
* **afterRule** (<code>[aws_ses.IReceiptRule](#aws-cdk-lib-aws-ses-ireceiptrule)</code>) An existing rule after which the new rule will be placed in the rule set. __*Default*__: The new rule is inserted at the beginning of the rule list.
|
|
179
179
|
* **sourceWhitelist** (<code>string</code>) A regular expression to whitelist source email addresses. __*Default*__: no whitelisting of source email addresses
|
|
180
180
|
|
|
181
181
|
|
|
@@ -203,8 +203,8 @@ new RollTrigger()
|
|
|
203
203
|
|
|
204
204
|
Name | Type | Description
|
|
205
205
|
-----|------|-------------
|
|
206
|
-
**rule**? | <code>[Rule](#aws-cdk-aws-events-rule)</code> | Roll rule.<br/>__*Default*__: roll everyday at midnight
|
|
207
|
-
**schedule**? | <code>[Schedule](#aws-cdk-aws-events-schedule)</code> | Roll schedule.<br/>__*Default*__: roll everyday at midnight
|
|
206
|
+
**rule**? | <code>[aws_events.Rule](#aws-cdk-lib-aws-events-rule)</code> | Roll rule.<br/>__*Default*__: roll everyday at midnight
|
|
207
|
+
**schedule**? | <code>[aws_events.Schedule](#aws-cdk-lib-aws-events-schedule)</code> | Roll schedule.<br/>__*Default*__: roll everyday at midnight
|
|
208
208
|
|
|
209
209
|
### Methods
|
|
210
210
|
|
|
@@ -217,7 +217,7 @@ Rule that should trigger a roll.
|
|
|
217
217
|
static fromRule(rule: Rule): RollTrigger
|
|
218
218
|
```
|
|
219
219
|
|
|
220
|
-
* **rule** (<code>[Rule](#aws-cdk-aws-events-rule)</code>) *No description*
|
|
220
|
+
* **rule** (<code>[aws_events.Rule](#aws-cdk-lib-aws-events-rule)</code>) *No description*
|
|
221
221
|
|
|
222
222
|
__Returns__:
|
|
223
223
|
* <code>[RollTrigger](#cloudstructs-rolltrigger)</code>
|
|
@@ -230,19 +230,19 @@ Schedule that should trigger a roll.
|
|
|
230
230
|
static fromSchedule(schedule: Schedule): RollTrigger
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
* **schedule** (<code>[Schedule](#aws-cdk-aws-events-schedule)</code>) *No description*
|
|
233
|
+
* **schedule** (<code>[aws_events.Schedule](#aws-cdk-lib-aws-events-schedule)</code>) *No description*
|
|
234
234
|
|
|
235
235
|
__Returns__:
|
|
236
236
|
* <code>[RollTrigger](#cloudstructs-rolltrigger)</code>
|
|
237
237
|
|
|
238
238
|
|
|
239
239
|
|
|
240
|
-
## class SamlFederatedPrincipal
|
|
240
|
+
## class SamlFederatedPrincipal ⚠️ <a id="cloudstructs-samlfederatedprincipal"></a>
|
|
241
241
|
|
|
242
242
|
Principal entity that represents a SAML federated identity provider.
|
|
243
243
|
|
|
244
|
-
__Implements__: [IPrincipal](#aws-cdk-aws-iam-iprincipal), [IGrantable](#aws-cdk-aws-iam-igrantable)
|
|
245
|
-
__Extends__: [FederatedPrincipal](#aws-cdk-aws-iam-federatedprincipal)
|
|
244
|
+
__Implements__: [aws_iam.IPrincipal](#aws-cdk-lib-aws-iam-iprincipal), [aws_iam.IGrantable](#aws-cdk-lib-aws-iam-igrantable)
|
|
245
|
+
__Extends__: [aws_iam.FederatedPrincipal](#aws-cdk-lib-aws-iam-federatedprincipal)
|
|
246
246
|
|
|
247
247
|
### Initializer
|
|
248
248
|
|
|
@@ -258,12 +258,12 @@ new SamlFederatedPrincipal(identityProvider: SamlIdentityProvider)
|
|
|
258
258
|
|
|
259
259
|
|
|
260
260
|
|
|
261
|
-
## class SamlIdentityProvider
|
|
261
|
+
## class SamlIdentityProvider ⚠️ <a id="cloudstructs-samlidentityprovider"></a>
|
|
262
262
|
|
|
263
263
|
Create a SAML identity provider.
|
|
264
264
|
|
|
265
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
266
|
-
__Extends__: [Construct](#
|
|
265
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
266
|
+
__Extends__: [Construct](#constructs-construct)
|
|
267
267
|
|
|
268
268
|
### Initializer
|
|
269
269
|
|
|
@@ -274,7 +274,7 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
274
274
|
new SamlIdentityProvider(scope: Construct, id: string, props: SamlIdentityProviderProps)
|
|
275
275
|
```
|
|
276
276
|
|
|
277
|
-
* **scope** (<code>[Construct](#
|
|
277
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
278
278
|
* **id** (<code>string</code>) *No description*
|
|
279
279
|
* **props** (<code>[SamlIdentityProviderProps](#cloudstructs-samlidentityproviderprops)</code>) *No description*
|
|
280
280
|
* **metadataDocument** (<code>string</code>) An XML document generated by an identity provider (IdP) that supports SAML 2.0.
|
|
@@ -287,7 +287,7 @@ new SamlIdentityProvider(scope: Construct, id: string, props: SamlIdentityProvid
|
|
|
287
287
|
|
|
288
288
|
Name | Type | Description
|
|
289
289
|
-----|------|-------------
|
|
290
|
-
**samlIdentityProviderArn
|
|
290
|
+
**samlIdentityProviderArn**⚠️ | <code>string</code> | The ARN of the SAML identity provider.
|
|
291
291
|
|
|
292
292
|
|
|
293
293
|
|
|
@@ -295,8 +295,8 @@ Name | Type | Description
|
|
|
295
295
|
|
|
296
296
|
Send Slack events to Amazon EventBridge.
|
|
297
297
|
|
|
298
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
299
|
-
__Extends__: [Construct](#
|
|
298
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
299
|
+
__Extends__: [Construct](#constructs-construct)
|
|
300
300
|
|
|
301
301
|
### Initializer
|
|
302
302
|
|
|
@@ -307,10 +307,10 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
307
307
|
new SlackEvents(scope: Construct, id: string, props: SlackEventsProps)
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
* **scope** (<code>[Construct](#
|
|
310
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
311
311
|
* **id** (<code>string</code>) *No description*
|
|
312
312
|
* **props** (<code>[SlackEventsProps](#cloudstructs-slackeventsprops)</code>) *No description*
|
|
313
|
-
* **signingSecret** (<code>[SecretValue](#aws-cdk-
|
|
313
|
+
* **signingSecret** (<code>[SecretValue](#aws-cdk-lib-secretvalue)</code>) The signing secret of the Slack app.
|
|
314
314
|
* **apiName** (<code>string</code>) A name for the API Gateway resource. __*Default*__: SlackEventsApi
|
|
315
315
|
* **customEventBus** (<code>boolean</code>) Whether to use a custom event bus. __*Default*__: false
|
|
316
316
|
|
|
@@ -321,7 +321,7 @@ new SlackEvents(scope: Construct, id: string, props: SlackEventsProps)
|
|
|
321
321
|
|
|
322
322
|
Name | Type | Description
|
|
323
323
|
-----|------|-------------
|
|
324
|
-
**eventBus**? | <code>[EventBus](#aws-cdk-aws-events-eventbus)</code> | The custom event bus where Slack events are sent.<br/>__*Optional*__
|
|
324
|
+
**eventBus**? | <code>[aws_events.EventBus](#aws-cdk-lib-aws-events-eventbus)</code> | The custom event bus where Slack events are sent.<br/>__*Optional*__
|
|
325
325
|
|
|
326
326
|
|
|
327
327
|
|
|
@@ -329,8 +329,8 @@ Name | Type | Description
|
|
|
329
329
|
|
|
330
330
|
Extract text from images posted to Slack using Amazon Textract.
|
|
331
331
|
|
|
332
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
333
|
-
__Extends__: [Construct](#
|
|
332
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
333
|
+
__Extends__: [Construct](#constructs-construct)
|
|
334
334
|
|
|
335
335
|
### Initializer
|
|
336
336
|
|
|
@@ -341,12 +341,12 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
341
341
|
new SlackTextract(scope: Construct, id: string, props: SlackTextractProps)
|
|
342
342
|
```
|
|
343
343
|
|
|
344
|
-
* **scope** (<code>[Construct](#
|
|
344
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
345
345
|
* **id** (<code>string</code>) *No description*
|
|
346
346
|
* **props** (<code>[SlackTextractProps](#cloudstructs-slacktextractprops)</code>) *No description*
|
|
347
347
|
* **appId** (<code>string</code>) The application id of the Slack app.
|
|
348
|
-
* **botToken** (<code>[SecretValue](#aws-cdk-
|
|
349
|
-
* **signingSecret** (<code>[SecretValue](#aws-cdk-
|
|
348
|
+
* **botToken** (<code>[SecretValue](#aws-cdk-lib-secretvalue)</code>) The **bot** token of the Slack app.
|
|
349
|
+
* **signingSecret** (<code>[SecretValue](#aws-cdk-lib-secretvalue)</code>) The signing secret of the Slack app.
|
|
350
350
|
|
|
351
351
|
|
|
352
352
|
|
|
@@ -355,8 +355,8 @@ new SlackTextract(scope: Construct, id: string, props: SlackTextractProps)
|
|
|
355
355
|
|
|
356
356
|
A state machine custom resource provider.
|
|
357
357
|
|
|
358
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
359
|
-
__Extends__: [Construct](#
|
|
358
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
359
|
+
__Extends__: [Construct](#constructs-construct)
|
|
360
360
|
|
|
361
361
|
### Initializer
|
|
362
362
|
|
|
@@ -367,11 +367,11 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
367
367
|
new StateMachineCustomResourceProvider(scope: Construct, id: string, props: StateMachineCustomResourceProviderProps)
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
* **scope** (<code>[Construct](#
|
|
370
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
371
371
|
* **id** (<code>string</code>) *No description*
|
|
372
372
|
* **props** (<code>[StateMachineCustomResourceProviderProps](#cloudstructs-statemachinecustomresourceproviderprops)</code>) *No description*
|
|
373
373
|
* **stateMachine** (<code>[IStateMachine](#cloudstructs-istatemachine)</code>) The state machine.
|
|
374
|
-
* **timeout** (<code>[Duration](#aws-cdk-
|
|
374
|
+
* **timeout** (<code>[Duration](#aws-cdk-lib-duration)</code>) Timeout. __*Default*__: Duration.minutes(30)
|
|
375
375
|
|
|
376
376
|
|
|
377
377
|
|
|
@@ -388,8 +388,8 @@ Name | Type | Description
|
|
|
388
388
|
|
|
389
389
|
A CloudFront static website hosted on S3.
|
|
390
390
|
|
|
391
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
392
|
-
__Extends__: [Construct](#
|
|
391
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
392
|
+
__Extends__: [Construct](#constructs-construct)
|
|
393
393
|
|
|
394
394
|
### Initializer
|
|
395
395
|
|
|
@@ -400,11 +400,11 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
400
400
|
new StaticWebsite(scope: Construct, id: string, props: StaticWebsiteProps)
|
|
401
401
|
```
|
|
402
402
|
|
|
403
|
-
* **scope** (<code>[Construct](#
|
|
403
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
404
404
|
* **id** (<code>string</code>) *No description*
|
|
405
405
|
* **props** (<code>[StaticWebsiteProps](#cloudstructs-staticwebsiteprops)</code>) *No description*
|
|
406
406
|
* **domainName** (<code>string</code>) The domain name for this static website.
|
|
407
|
-
* **hostedZone** (<code>[IHostedZone](#aws-cdk-aws-route53-ihostedzone)</code>) The hosted zone where records should be added.
|
|
407
|
+
* **hostedZone** (<code>[aws_route53.IHostedZone](#aws-cdk-lib-aws-route53-ihostedzone)</code>) The hosted zone where records should be added.
|
|
408
408
|
* **backendConfiguration** (<code>any</code>) A backend configuration that will be saved as `config.json` in the S3 bucket of the static website. __*Optional*__
|
|
409
409
|
* **httpHeaders** (<code>Map<string, string></code>) Custom HTTP headers. __*Default*__: best practice security headers
|
|
410
410
|
* **redirects** (<code>Array<string></code>) A list of domain names that should redirect to `domainName`. __*Default*__: the domain name of the hosted zone
|
|
@@ -416,8 +416,8 @@ new StaticWebsite(scope: Construct, id: string, props: StaticWebsiteProps)
|
|
|
416
416
|
|
|
417
417
|
Name | Type | Description
|
|
418
418
|
-----|------|-------------
|
|
419
|
-
**bucket** | <code>[Bucket](#aws-cdk-aws-s3-bucket)</code> | The S3 bucket of this static website.
|
|
420
|
-
**distribution** | <code>[Distribution](#aws-cdk-aws-cloudfront-distribution)</code> | The CloudFront distribution of this static website.
|
|
419
|
+
**bucket** | <code>[aws_s3.Bucket](#aws-cdk-lib-aws-s3-bucket)</code> | The S3 bucket of this static website.
|
|
420
|
+
**distribution** | <code>[aws_cloudfront.Distribution](#aws-cdk-lib-aws-cloudfront-distribution)</code> | The CloudFront distribution of this static website.
|
|
421
421
|
|
|
422
422
|
|
|
423
423
|
|
|
@@ -425,8 +425,8 @@ Name | Type | Description
|
|
|
425
425
|
|
|
426
426
|
URL shortener.
|
|
427
427
|
|
|
428
|
-
__Implements__: [IConstruct](#constructs-iconstruct), [
|
|
429
|
-
__Extends__: [Construct](#
|
|
428
|
+
__Implements__: [IConstruct](#constructs-iconstruct), [IDependable](#constructs-idependable)
|
|
429
|
+
__Extends__: [Construct](#constructs-construct)
|
|
430
430
|
|
|
431
431
|
### Initializer
|
|
432
432
|
|
|
@@ -437,12 +437,12 @@ __Extends__: [Construct](#aws-cdk-core-construct)
|
|
|
437
437
|
new UrlShortener(scope: Construct, id: string, props: UrlShortenerProps)
|
|
438
438
|
```
|
|
439
439
|
|
|
440
|
-
* **scope** (<code>[Construct](#
|
|
440
|
+
* **scope** (<code>[Construct](#constructs-construct)</code>) *No description*
|
|
441
441
|
* **id** (<code>string</code>) *No description*
|
|
442
442
|
* **props** (<code>[UrlShortenerProps](#cloudstructs-urlshortenerprops)</code>) *No description*
|
|
443
|
-
* **hostedZone** (<code>[IHostedZone](#aws-cdk-aws-route53-ihostedzone)</code>) The hosted zone for the short URLs domain.
|
|
444
|
-
* **apiGatewayEndpoint** (<code>[IInterfaceVpcEndpoint](#aws-cdk-aws-ec2-iinterfacevpcendpoint)</code>) An interface VPC endpoint for API gateway. __*Default*__: API is public
|
|
445
|
-
* **expiration** (<code>[Duration](#aws-cdk-
|
|
443
|
+
* **hostedZone** (<code>[aws_route53.IHostedZone](#aws-cdk-lib-aws-route53-ihostedzone)</code>) The hosted zone for the short URLs domain.
|
|
444
|
+
* **apiGatewayEndpoint** (<code>[aws_ec2.IInterfaceVpcEndpoint](#aws-cdk-lib-aws-ec2-iinterfacevpcendpoint)</code>) An interface VPC endpoint for API gateway. __*Default*__: API is public
|
|
445
|
+
* **expiration** (<code>[Duration](#aws-cdk-lib-duration)</code>) Expiration for short urls. __*Default*__: cdk.Duration.days(365)
|
|
446
446
|
|
|
447
447
|
|
|
448
448
|
|
|
@@ -451,7 +451,7 @@ new UrlShortener(scope: Construct, id: string, props: UrlShortenerProps)
|
|
|
451
451
|
|
|
452
452
|
Name | Type | Description
|
|
453
453
|
-----|------|-------------
|
|
454
|
-
**api** | <code>[LambdaRestApi](#aws-cdk-aws-apigateway-lambdarestapi)</code> | The underlying API Gateway REST API.
|
|
454
|
+
**api** | <code>[aws_apigateway.LambdaRestApi](#aws-cdk-lib-aws-apigateway-lambdarestapi)</code> | The underlying API Gateway REST API.
|
|
455
455
|
**apiEndpoint** | <code>string</code> | The endpoint of the URL shortener API.
|
|
456
456
|
|
|
457
457
|
|
|
@@ -465,10 +465,10 @@ Properties for a CodeCommitMirror.
|
|
|
465
465
|
|
|
466
466
|
Name | Type | Description
|
|
467
467
|
-----|------|-------------
|
|
468
|
-
**cluster** | <code>[ICluster](#aws-cdk-aws-ecs-icluster)</code> | The ECS cluster where to run the mirroring operation.
|
|
468
|
+
**cluster** | <code>[aws_ecs.ICluster](#aws-cdk-lib-aws-ecs-icluster)</code> | The ECS cluster where to run the mirroring operation.
|
|
469
469
|
**repository** | <code>[CodeCommitMirrorSourceRepository](#cloudstructs-codecommitmirrorsourcerepository)</code> | The source repository.
|
|
470
|
-
**schedule**? | <code>[Schedule](#aws-cdk-aws-events-schedule)</code> | The schedule for the mirroring operation.<br/>__*Default*__: everyday at midnight
|
|
471
|
-
**subnetSelection**? | <code>[SubnetSelection](#aws-cdk-aws-ec2-subnetselection)</code> | Where to run the mirroring Fargate tasks.<br/>__*Default*__: public subnets
|
|
470
|
+
**schedule**? | <code>[aws_events.Schedule](#aws-cdk-lib-aws-events-schedule)</code> | The schedule for the mirroring operation.<br/>__*Default*__: everyday at midnight
|
|
471
|
+
**subnetSelection**? | <code>[aws_ec2.SubnetSelection](#aws-cdk-lib-aws-ec2-subnetselection)</code> | Where to run the mirroring Fargate tasks.<br/>__*Default*__: public subnets
|
|
472
472
|
|
|
473
473
|
|
|
474
474
|
|
|
@@ -481,8 +481,8 @@ Properties for a EcsServiceRoller.
|
|
|
481
481
|
|
|
482
482
|
Name | Type | Description
|
|
483
483
|
-----|------|-------------
|
|
484
|
-
**cluster** | <code>[ICluster](#aws-cdk-aws-ecs-icluster)</code> | The ECS cluster where the services run.
|
|
485
|
-
**service** | <code>[IService](#aws-cdk-aws-ecs-iservice)</code> | The ECS service for which tasks should be rolled.
|
|
484
|
+
**cluster** | <code>[aws_ecs.ICluster](#aws-cdk-lib-aws-ecs-icluster)</code> | The ECS cluster where the services run.
|
|
485
|
+
**service** | <code>[aws_ecs.IService](#aws-cdk-lib-aws-ecs-iservice)</code> | The ECS service for which tasks should be rolled.
|
|
486
486
|
**trigger**? | <code>[RollTrigger](#cloudstructs-rolltrigger)</code> | The rule or schedule that should trigger a roll.<br/>__*Default*__: roll everyday at midnight
|
|
487
487
|
|
|
488
488
|
|
|
@@ -496,10 +496,10 @@ Properties for an EmailReceiver.
|
|
|
496
496
|
|
|
497
497
|
Name | Type | Description
|
|
498
498
|
-----|------|-------------
|
|
499
|
-
**function** | <code>[IFunction](#aws-cdk-aws-lambda-ifunction)</code> | A Lambda function to invoke after the message is saved to S3.
|
|
500
|
-
**receiptRuleSet** | <code>[IReceiptRuleSet](#aws-cdk-aws-ses-ireceiptruleset)</code> | The SES receipt rule set where a receipt rule will be added.
|
|
499
|
+
**function** | <code>[aws_lambda.IFunction](#aws-cdk-lib-aws-lambda-ifunction)</code> | A Lambda function to invoke after the message is saved to S3.
|
|
500
|
+
**receiptRuleSet** | <code>[aws_ses.IReceiptRuleSet](#aws-cdk-lib-aws-ses-ireceiptruleset)</code> | The SES receipt rule set where a receipt rule will be added.
|
|
501
501
|
**recipients** | <code>Array<string></code> | The recipients for which emails should be received.
|
|
502
|
-
**afterRule**? | <code>[IReceiptRule](#aws-cdk-aws-ses-ireceiptrule)</code> | An existing rule after which the new rule will be placed in the rule set.<br/>__*Default*__: The new rule is inserted at the beginning of the rule list.
|
|
502
|
+
**afterRule**? | <code>[aws_ses.IReceiptRule](#aws-cdk-lib-aws-ses-ireceiptrule)</code> | An existing rule after which the new rule will be placed in the rule set.<br/>__*Default*__: The new rule is inserted at the beginning of the rule list.
|
|
503
503
|
**sourceWhitelist**? | <code>string</code> | A regular expression to whitelist source email addresses.<br/>__*Default*__: no whitelisting of source email addresses
|
|
504
504
|
|
|
505
505
|
|
|
@@ -518,7 +518,7 @@ Name | Type | Description
|
|
|
518
518
|
|
|
519
519
|
|
|
520
520
|
|
|
521
|
-
## struct SamlIdentityProviderProps
|
|
521
|
+
## struct SamlIdentityProviderProps ⚠️ <a id="cloudstructs-samlidentityproviderprops"></a>
|
|
522
522
|
|
|
523
523
|
|
|
524
524
|
Properties for a SamlProvider.
|
|
@@ -527,8 +527,8 @@ Properties for a SamlProvider.
|
|
|
527
527
|
|
|
528
528
|
Name | Type | Description
|
|
529
529
|
-----|------|-------------
|
|
530
|
-
**metadataDocument
|
|
531
|
-
**name
|
|
530
|
+
**metadataDocument**⚠️ | <code>string</code> | An XML document generated by an identity provider (IdP) that supports SAML 2.0.
|
|
531
|
+
**name**?⚠️ | <code>string</code> | A name for the SAML identity provider.<br/>__*Default*__: derived for the node's unique id
|
|
532
532
|
|
|
533
533
|
|
|
534
534
|
|
|
@@ -541,7 +541,7 @@ Properties for a SlackEvents.
|
|
|
541
541
|
|
|
542
542
|
Name | Type | Description
|
|
543
543
|
-----|------|-------------
|
|
544
|
-
**signingSecret** | <code>[SecretValue](#aws-cdk-
|
|
544
|
+
**signingSecret** | <code>[SecretValue](#aws-cdk-lib-secretvalue)</code> | The signing secret of the Slack app.
|
|
545
545
|
**apiName**? | <code>string</code> | A name for the API Gateway resource.<br/>__*Default*__: SlackEventsApi
|
|
546
546
|
**customEventBus**? | <code>boolean</code> | Whether to use a custom event bus.<br/>__*Default*__: false
|
|
547
547
|
|
|
@@ -557,8 +557,8 @@ Properties for a SlackTextract.
|
|
|
557
557
|
Name | Type | Description
|
|
558
558
|
-----|------|-------------
|
|
559
559
|
**appId** | <code>string</code> | The application id of the Slack app.
|
|
560
|
-
**botToken** | <code>[SecretValue](#aws-cdk-
|
|
561
|
-
**signingSecret** | <code>[SecretValue](#aws-cdk-
|
|
560
|
+
**botToken** | <code>[SecretValue](#aws-cdk-lib-secretvalue)</code> | The **bot** token of the Slack app.
|
|
561
|
+
**signingSecret** | <code>[SecretValue](#aws-cdk-lib-secretvalue)</code> | The signing secret of the Slack app.
|
|
562
562
|
|
|
563
563
|
|
|
564
564
|
|
|
@@ -572,7 +572,7 @@ Properties for a StateMachineCustomResourceProvider.
|
|
|
572
572
|
Name | Type | Description
|
|
573
573
|
-----|------|-------------
|
|
574
574
|
**stateMachine** | <code>[IStateMachine](#cloudstructs-istatemachine)</code> | The state machine.
|
|
575
|
-
**timeout**? | <code>[Duration](#aws-cdk-
|
|
575
|
+
**timeout**? | <code>[Duration](#aws-cdk-lib-duration)</code> | Timeout.<br/>__*Default*__: Duration.minutes(30)
|
|
576
576
|
|
|
577
577
|
|
|
578
578
|
|
|
@@ -586,7 +586,7 @@ Properties for a StaticWebsite.
|
|
|
586
586
|
Name | Type | Description
|
|
587
587
|
-----|------|-------------
|
|
588
588
|
**domainName** | <code>string</code> | The domain name for this static website.
|
|
589
|
-
**hostedZone** | <code>[IHostedZone](#aws-cdk-aws-route53-ihostedzone)</code> | The hosted zone where records should be added.
|
|
589
|
+
**hostedZone** | <code>[aws_route53.IHostedZone](#aws-cdk-lib-aws-route53-ihostedzone)</code> | The hosted zone where records should be added.
|
|
590
590
|
**backendConfiguration**? | <code>any</code> | A backend configuration that will be saved as `config.json` in the S3 bucket of the static website.<br/>__*Optional*__
|
|
591
591
|
**httpHeaders**? | <code>Map<string, string></code> | Custom HTTP headers.<br/>__*Default*__: best practice security headers
|
|
592
592
|
**redirects**? | <code>Array<string></code> | A list of domain names that should redirect to `domainName`.<br/>__*Default*__: the domain name of the hosted zone
|
|
@@ -602,9 +602,9 @@ Properties for a UrlShortener.
|
|
|
602
602
|
|
|
603
603
|
Name | Type | Description
|
|
604
604
|
-----|------|-------------
|
|
605
|
-
**hostedZone** | <code>[IHostedZone](#aws-cdk-aws-route53-ihostedzone)</code> | The hosted zone for the short URLs domain.
|
|
606
|
-
**apiGatewayEndpoint**? | <code>[IInterfaceVpcEndpoint](#aws-cdk-aws-ec2-iinterfacevpcendpoint)</code> | An interface VPC endpoint for API gateway.<br/>__*Default*__: API is public
|
|
607
|
-
**expiration**? | <code>[Duration](#aws-cdk-
|
|
605
|
+
**hostedZone** | <code>[aws_route53.IHostedZone](#aws-cdk-lib-aws-route53-ihostedzone)</code> | The hosted zone for the short URLs domain.
|
|
606
|
+
**apiGatewayEndpoint**? | <code>[aws_ec2.IInterfaceVpcEndpoint](#aws-cdk-lib-aws-ec2-iinterfacevpcendpoint)</code> | An interface VPC endpoint for API gateway.<br/>__*Default*__: API is public
|
|
607
|
+
**expiration**? | <code>[Duration](#aws-cdk-lib-duration)</code> | Expiration for short urls.<br/>__*Default*__: cdk.Duration.days(365)
|
|
608
608
|
|
|
609
609
|
|
|
610
610
|
|
package/README.md
CHANGED
|
@@ -6,6 +6,8 @@ High-level constructs for AWS CDK
|
|
|
6
6
|
|
|
7
7
|
`npm install cloudstructs` or `yarn add cloudstructs`
|
|
8
8
|
|
|
9
|
+
Version >= 0.2.0 requires AWS CDK v2.
|
|
10
|
+
|
|
9
11
|
## Constructs
|
|
10
12
|
|
|
11
13
|
* [`CodeCommitMirror`](src/codecommit-mirror) Mirror a repository to AWS CodeCommit on schedule
|
|
@@ -16,9 +18,6 @@ High-level constructs for AWS CDK
|
|
|
16
18
|
* [`EmailReceiver`](src/email-receiver) Receive emails through SES, save them to S3
|
|
17
19
|
and invoke a Lambda function
|
|
18
20
|
|
|
19
|
-
* [`SamlIdentityProvider`](src/saml-identity-provider) Custom resource to create a SAML identity
|
|
20
|
-
provider
|
|
21
|
-
|
|
22
21
|
* [`SlackEvents`](src/slack-events) Send Slack events to Amazon EventBridge
|
|
23
22
|
|
|
24
23
|
* [`SlackTextract`](src/slack-textract) Extract text from images posted to Slack
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as ec2 from '
|
|
2
|
-
import * as ecs from '
|
|
3
|
-
import * as events from '
|
|
4
|
-
import
|
|
1
|
+
import * as ec2 from 'aws-cdk-lib/aws-ec2';
|
|
2
|
+
import * as ecs from 'aws-cdk-lib/aws-ecs';
|
|
3
|
+
import * as events from 'aws-cdk-lib/aws-events';
|
|
4
|
+
import { Construct } from 'constructs';
|
|
5
5
|
/**
|
|
6
6
|
* Properties for a CodeCommitMirror.
|
|
7
7
|
*
|
|
@@ -85,9 +85,9 @@ export declare abstract class CodeCommitMirrorSourceRepository {
|
|
|
85
85
|
*
|
|
86
86
|
* @stability stable
|
|
87
87
|
*/
|
|
88
|
-
export declare class CodeCommitMirror extends
|
|
88
|
+
export declare class CodeCommitMirror extends Construct {
|
|
89
89
|
/**
|
|
90
90
|
* @stability stable
|
|
91
91
|
*/
|
|
92
|
-
constructor(scope:
|
|
92
|
+
constructor(scope: Construct, id: string, props: CodeCommitMirrorProps);
|
|
93
93
|
}
|
|
@@ -4,14 +4,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.CodeCommitMirror = exports.CodeCommitMirrorSourceRepository = void 0;
|
|
5
5
|
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
6
6
|
const path = require("path");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
7
|
+
const cdk = require("aws-cdk-lib");
|
|
8
|
+
const codecommit = require("aws-cdk-lib/aws-codecommit");
|
|
9
|
+
const ec2 = require("aws-cdk-lib/aws-ec2");
|
|
10
|
+
const ecs = require("aws-cdk-lib/aws-ecs");
|
|
11
|
+
const events = require("aws-cdk-lib/aws-events");
|
|
12
|
+
const targets = require("aws-cdk-lib/aws-events-targets");
|
|
13
|
+
const iam = require("aws-cdk-lib/aws-iam");
|
|
14
|
+
const logs = require("aws-cdk-lib/aws-logs");
|
|
15
|
+
const constructs_1 = require("constructs");
|
|
15
16
|
/**
|
|
16
17
|
* A source repository for AWS CodeCommit mirroring.
|
|
17
18
|
*
|
|
@@ -45,13 +46,13 @@ class CodeCommitMirrorSourceRepository {
|
|
|
45
46
|
}
|
|
46
47
|
exports.CodeCommitMirrorSourceRepository = CodeCommitMirrorSourceRepository;
|
|
47
48
|
_a = JSII_RTTI_SYMBOL_1;
|
|
48
|
-
CodeCommitMirrorSourceRepository[_a] = { fqn: "cloudstructs.CodeCommitMirrorSourceRepository", version: "0.
|
|
49
|
+
CodeCommitMirrorSourceRepository[_a] = { fqn: "cloudstructs.CodeCommitMirrorSourceRepository", version: "0.2.3" };
|
|
49
50
|
/**
|
|
50
51
|
* Mirror a repository to AWS CodeCommit on schedule.
|
|
51
52
|
*
|
|
52
53
|
* @stability stable
|
|
53
54
|
*/
|
|
54
|
-
class CodeCommitMirror extends
|
|
55
|
+
class CodeCommitMirror extends constructs_1.Construct {
|
|
55
56
|
/**
|
|
56
57
|
* @stability stable
|
|
57
58
|
*/
|
|
@@ -99,5 +100,5 @@ class CodeCommitMirror extends cdk.Construct {
|
|
|
99
100
|
}
|
|
100
101
|
exports.CodeCommitMirror = CodeCommitMirror;
|
|
101
102
|
_b = JSII_RTTI_SYMBOL_1;
|
|
102
|
-
CodeCommitMirror[_b] = { fqn: "cloudstructs.CodeCommitMirror", version: "0.
|
|
103
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
103
|
+
CodeCommitMirror[_b] = { fqn: "cloudstructs.CodeCommitMirror", version: "0.2.3" };
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29kZWNvbW1pdC1taXJyb3IvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw2QkFBNkI7QUFDN0IsbUNBQW1DO0FBQ25DLHlEQUF5RDtBQUN6RCwyQ0FBMkM7QUFDM0MsMkNBQTJDO0FBQzNDLGlEQUFpRDtBQUNqRCwwREFBMEQ7QUFDMUQsMkNBQTJDO0FBQzNDLDZDQUE2QztBQUM3QywyQ0FBdUM7Ozs7OztBQWtCdkMsTUFBc0IsZ0NBQWdDOzs7Ozs7SUFFN0MsTUFBTSxDQUFDLE1BQU0sQ0FBQyxLQUFhLEVBQUUsSUFBWTtRQUM5QyxPQUFPO1lBQ0wsSUFBSTtZQUNKLFlBQVksRUFBRSxzQkFBc0IsS0FBSyxJQUFJLElBQUksRUFBRTtTQUNwRCxDQUFDO0lBQ0osQ0FBQzs7Ozs7Ozs7SUFHTSxNQUFNLENBQUMsT0FBTyxDQUFDLElBQVksRUFBRSxHQUFlO1FBQ2pELE9BQU87WUFDTCxJQUFJO1lBQ0osU0FBUyxFQUFFLEdBQUc7U0FDZixDQUFDO0lBQ0osQ0FBQzs7QUFmSCw0RUF5QkM7Ozs7Ozs7O0FBR0QsTUFBYSxnQkFBaUIsU0FBUSxzQkFBUzs7OztJQUM3QyxZQUFZLEtBQWdCLEVBQUU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sQ0FBQyxDQUFDO0lBQ04sQ0FBQzs7QUE5Q0gsNENBK0NDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0ICogYXMgcGF0aCBmcm9tICdwYXRoJztcbmltcG9ydCAqIGFzIGNkayBmcm9tICdhd3MtY2RrLWxpYic7XG5pbXBvcnQgKiBhcyBjb2RlY29tbWl0IGZyb20gJ2F3cy1jZGstbGliL2F3cy1jb2RlY29tbWl0JztcbmltcG9ydCAqIGFzIGVjMiBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZWMyJztcbmltcG9ydCAqIGFzIGVjcyBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZWNzJztcbmltcG9ydCAqIGFzIGV2ZW50cyBmcm9tICdhd3MtY2RrLWxpYi9hd3MtZXZlbnRzJztcbmltcG9ydCAqIGFzIHRhcmdldHMgZnJvbSAnYXdzLWNkay1saWIvYXdzLWV2ZW50cy10YXJnZXRzJztcbmltcG9ydCAqIGFzIGlhbSBmcm9tICdhd3MtY2RrLWxpYi9hd3MtaWFtJztcbmltcG9ydCAqIGFzIGxvZ3MgZnJvbSAnYXdzLWNkay1saWIvYXdzLWxvZ3MnO1xuaW1wb3J0IHsgQ29uc3RydWN0IH0gZnJvbSAnY29uc3RydWN0cyc7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgaW50ZXJmYWNlIENvZGVDb21taXRNaXJyb3JQcm9wcyB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICByZWFkb25seSByZXBvc2l0b3J5OiBDb2RlQ29tbWl0TWlycm9yU291cmNlUmVwb3NpdG9yeTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IGNsdXN0ZXI6IGVjcy5JQ2x1c3RlcjtcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHJlYWRvbmx5IHNjaGVkdWxlPzogZXZlbnRzLlNjaGVkdWxlO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcmVhZG9ubHkgc3VibmV0U2VsZWN0aW9uPzogZWMyLlN1Ym5ldFNlbGVjdGlvbjtcbn1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbmV4cG9ydCBhYnN0cmFjdCBjbGFzcyBDb2RlQ29tbWl0TWlycm9yU291cmNlUmVwb3NpdG9yeSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgc3RhdGljIGdpdEh1Yihvd25lcjogc3RyaW5nLCBuYW1lOiBzdHJpbmcpOiBDb2RlQ29tbWl0TWlycm9yU291cmNlUmVwb3NpdG9yeSB7XG4gICAgcmV0dXJuIHtcbiAgICAgIG5hbWUsXG4gICAgICBwbGFpblRleHRVcmw6IGBodHRwczovL2dpdGh1Yi5jb20vJHtvd25lcn0vJHtuYW1lfWAsXG4gICAgfTtcbiAgfVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gIHB1YmxpYyBzdGF0aWMgcHJpdmF0ZShuYW1lOiBzdHJpbmcsIHVybDogZWNzLlNlY3JldCk6IENvZGVDb21taXRNaXJyb3JTb3VyY2VSZXBvc2l0b3J5IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmFtZSxcbiAgICAgIHNlY3JldFVybDogdXJsLFxuICAgIH07XG4gIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgYWJzdHJhY3QgcmVhZG9ubHkgbmFtZTogc3RyaW5nO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcbiAgcHVibGljIGFic3RyYWN0IHJlYWRvbmx5IHBsYWluVGV4dFVybD86IHN0cmluZztcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgYWJzdHJhY3QgcmVhZG9ubHkgc2VjcmV0VXJsPzogZWNzLlNlY3JldDtcbn1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgQ29kZUNvbW1pdE1pcnJvciBleHRlbmRzIENvbnN0cnVjdCB7XG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIHByb3BzOiBDb2RlQ29tbWl0TWlycm9yUHJvcHMpIHtcbiAgICBzdXBlcihzY29wZSwgaWQpO1xuXG4gICAgY29uc3QgZGVzdGluYXRpb24gPSBuZXcgY29kZWNvbW1pdC5SZXBvc2l0b3J5KHRoaXMsICdSZX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RzOiBwcm9wcy5yZXBvc2l0b3J5LnNlY3JldFVybFxuICAgICAgICA/IHsgU09VUkNFOiBwcm9wcy5yZXBvc2l0b3J5LnNlY3JldFVybCB9XG4gICAgICAgIDogdW5kZWZpbmVkLFxuICAgIH0pO1xuXG4gICAgdGFza0RlZmluaXRpb24uYWRkVG9UYXNrUm9sZVBvbGljeShuZXcgaWFtLlBvbGljeVN0YXRlbWVudCh7XG4gICAgICBhY3Rpb25zOiBbJ2NvZGVjb21taXQ6R2l0UHVzaCddLFxuICAgICAgcmVzb3VyY2VzOiBbZGVzdGluYXRpb24ucmVwb3NpdG9yeUFybl0sXG4gICAgfSkpO1xuXG4gICAgY29uc3QgcnVsZSA9IG5ldyBldmVudHMuUnVsZSh0aGlzLCAnUnVsZScsIHtcbiAgICAgIHNjaGVkdWxlOiBwcm9wcy5zY2hlZHVsZSA/PyBldmVudHMuU2NoZWR1bGUuY3Jvbih7XG4gICAgICAgIG1pbnV0ZTogJzAnLFxuICAgICAgICBob3VyOiAnMCcsXG4gICAgICB9KSxcbiAgICB9KTtcblxuICAgIHJ1bGUuYWRkVGFyZ2V0KG5ldyB0YXJnZXRzLkVjc1Rhc2soe1xuICAgICAgY2x1c3RlcjogcHJvcHMuY2x1c3RlcixcbiAgICAgIHRhc2tEZWZpbml0aW9uLFxuICAgICAgc3VibmV0U2VsZWN0aW9uOiBwcm9wcy5zdWJuZXRTZWxlY3Rpb24gPz8geyBzdWJuZXRUeXBlOiBlYzIuU3VibmV0VHlwZS5QVUJMSUMgfSxcbiAgICB9KSk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as ecs from '
|
|
2
|
-
import * as events from '
|
|
3
|
-
import
|
|
1
|
+
import * as ecs from 'aws-cdk-lib/aws-ecs';
|
|
2
|
+
import * as events from 'aws-cdk-lib/aws-events';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
4
|
/**
|
|
5
5
|
* Properties for a EcsServiceRoller.
|
|
6
6
|
*
|
|
@@ -65,9 +65,9 @@ export declare abstract class RollTrigger {
|
|
|
65
65
|
*
|
|
66
66
|
* @stability stable
|
|
67
67
|
*/
|
|
68
|
-
export declare class EcsServiceRoller extends
|
|
68
|
+
export declare class EcsServiceRoller extends Construct {
|
|
69
69
|
/**
|
|
70
70
|
* @stability stable
|
|
71
71
|
*/
|
|
72
|
-
constructor(scope:
|
|
72
|
+
constructor(scope: Construct, id: string, props: EcsServiceRollerProps);
|
|
73
73
|
}
|