Skip to content

Commit 3a09cb2

Browse files
committed
chore: Update dependencies
1 parent 654c8e4 commit 3a09cb2

File tree

26 files changed

+2543
-2101
lines changed

26 files changed

+2543
-2101
lines changed

packages/cdk-blue-green-container-deployment/API.md

+84-18
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
## Implements
4949

5050
- [`IDummyTaskDefinition`](#i-dummy-task-definition)
51+
- `ITaggable`
5152

5253
## Table of contents
5354

@@ -62,6 +63,7 @@
6263
- [executionRole](#executionrole)
6364
- [family](#family)
6465
- [node](#node)
66+
- [tags](#tags)
6567
- [taskDefinitionArn](#taskdefinitionarn)
6668

6769
### Methods
@@ -150,6 +152,16 @@ Construct.node
150152

151153
___
152154

155+
### tags
156+
157+
`Readonly` **tags**: `TagManager`
158+
159+
#### Implementation of
160+
161+
ITaggable.tags
162+
163+
___
164+
153165
### taskDefinitionArn
154166

155167
`Readonly` **taskDefinitionArn**: `string`
@@ -939,6 +951,7 @@ Resource.isResource
939951
## Implements
940952

941953
- [`IEcsDeploymentGroup`](#i-ecs-deployment-group)
954+
- `ITaggable`
942955

943956
## Table of contents
944957

@@ -956,12 +969,12 @@ Resource.isResource
956969
- [node](#node)
957970
- [physicalName](#physicalname)
958971
- [stack](#stack)
972+
- [tags](#tags)
959973

960974
### Methods
961975

962976
- [\_enableCrossEnvironment](#_enablecrossenvironment)
963977
- [applyRemovalPolicy](#applyremovalpolicy)
964-
- [arnForDeploymentGroup](#arnfordeploymentgroup)
965978
- [generatePhysicalName](#generatephysicalname)
966979
- [getResourceArnAttribute](#getresourcearnattribute)
967980
- [getResourceNameAttribute](#getresourcenameattribute)
@@ -1122,6 +1135,16 @@ The stack in which this resource is defined.
11221135

11231136
Resource.stack
11241137

1138+
___
1139+
1140+
### tags
1141+
1142+
`Readonly` **tags**: `TagManager`
1143+
1144+
#### Implementation of
1145+
1146+
ITaggable.tags
1147+
11251148
## Methods
11261149

11271150
### \_enableCrossEnvironment
@@ -1171,26 +1194,13 @@ account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
11711194

11721195
`void`
11731196

1174-
#### Inherited from
1175-
1176-
Resource.applyRemovalPolicy
1177-
1178-
___
1179-
1180-
### arnForDeploymentGroup
1181-
1182-
`Private` **arnForDeploymentGroup**(`applicationName`, `deploymentGroupName`): `string`
1183-
1184-
#### Parameters
1197+
#### Implementation of
11851198

1186-
| Name | Type |
1187-
| :------ | :------ |
1188-
| `applicationName` | `string` |
1189-
| `deploymentGroupName` | `string` |
1199+
[IEcsDeploymentGroup](#i-ecs-deployment-group).[applyRemovalPolicy](#applyremovalpolicy)
11901200

1191-
#### Returns
1201+
#### Inherited from
11921202

1193-
`string`
1203+
Resource.applyRemovalPolicy
11941204

11951205
___
11961206

@@ -1498,6 +1508,7 @@ Resource.isResource
14981508

14991509
- `IConnectable`
15001510
- [`IEcsService`](#i-ecs-service)
1511+
- `ITaggable`
15011512

15021513
## Table of contents
15031514

@@ -1511,6 +1522,7 @@ Resource.isResource
15111522
- [connections](#connections)
15121523
- [node](#node)
15131524
- [serviceName](#servicename)
1525+
- [tags](#tags)
15141526

15151527
### Methods
15161528

@@ -1585,6 +1597,16 @@ ___
15851597

15861598
[IEcsService](#i-ecs-service).[serviceName](#servicename)
15871599

1600+
___
1601+
1602+
### tags
1603+
1604+
`Readonly` **tags**: `TagManager`
1605+
1606+
#### Implementation of
1607+
1608+
ITaggable.tags
1609+
15881610
## Methods
15891611

15901612
### onPrepare
@@ -2027,6 +2049,10 @@ Will fail if this Project does not have a VPC set.
20272049

20282050
`Connections`
20292051

2052+
#### Inherited from
2053+
2054+
PipelineProject.connections
2055+
20302056
___
20312057

20322058
### encryptionKey
@@ -2043,6 +2069,10 @@ ___
20432069

20442070
`void`
20452071

2072+
#### Inherited from
2073+
2074+
PipelineProject.encryptionKey
2075+
20462076
## Methods
20472077

20482078
### \_enableCrossEnvironment
@@ -3571,6 +3601,10 @@ Interface for an ECS deployment group.
35713601
- [node](#node)
35723602
- [stack](#stack)
35733603

3604+
### Methods
3605+
3606+
- [applyRemovalPolicy](#applyremovalpolicy)
3607+
35743608
## Properties
35753609

35763610
### application
@@ -3652,6 +3686,38 @@ The stack in which this resource is defined.
36523686

36533687
IResource.stack
36543688

3689+
## Methods
3690+
3691+
### applyRemovalPolicy
3692+
3693+
**applyRemovalPolicy**(`policy`): `void`
3694+
3695+
Apply the given removal policy to this resource.
3696+
3697+
The Removal Policy controls what happens to this resource when it stops
3698+
being managed by CloudFormation, either because you've removed it from the
3699+
CDK application or because you've made a change that requires the resource
3700+
to be replaced.
3701+
3702+
The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
3703+
account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).
3704+
3705+
**`stability`** stable
3706+
3707+
#### Parameters
3708+
3709+
| Name | Type |
3710+
| :------ | :------ |
3711+
| `policy` | `RemovalPolicy` |
3712+
3713+
#### Returns
3714+
3715+
`void`
3716+
3717+
#### Inherited from
3718+
3719+
IResource.applyRemovalPolicy
3720+
36553721
# I Ecs Service
36563722

36573723
[@cloudcomponents/cdk-blue-green-container-deployment](#readme) / IEcsService
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"timestamp":1637794842477,"files":[{"filename":"ecs-deployment-group/index.js","previous":145307,"size":145308,"diff":1},{"filename":"ecs-service/index.js","previous":145016,"size":145014,"diff":-2}]},{"timestamp":1637781788109,"files":[{"filename":"ecs-deployment-group/index.js","previous":144989,"size":145307,"diff":318},{"filename":"ecs-service/index.js","previous":144998,"size":145016,"diff":18}]},{"timestamp":1637708323927,"files":[{"filename":"ecs-deployment-group/index.js","previous":0,"size":144989,"diff":144989},{"filename":"ecs-service/index.js","previous":0,"size":144998,"diff":144998}]}]
1+
[{"timestamp":1639256487176,"files":[{"filename":"ecs-deployment-group/index.js","previous":145308,"size":145598,"diff":290},{"filename":"ecs-service/index.js","previous":145014,"size":145304,"diff":290}]},{"timestamp":1637794842477,"files":[{"filename":"ecs-deployment-group/index.js","previous":145307,"size":145308,"diff":1},{"filename":"ecs-service/index.js","previous":145016,"size":145014,"diff":-2}]},{"timestamp":1637781788109,"files":[{"filename":"ecs-deployment-group/index.js","previous":144989,"size":145307,"diff":318},{"filename":"ecs-service/index.js","previous":144998,"size":145016,"diff":18}]},{"timestamp":1637708323927,"files":[{"filename":"ecs-deployment-group/index.js","previous":0,"size":144989,"diff":144989},{"filename":"ecs-service/index.js","previous":0,"size":144998,"diff":144998}]}]
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{"timestamp":1634480731621,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":32696,"size":32701,"diff":5}]},{"timestamp":1633809533394,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":32350,"size":32696,"diff":346}]},{"timestamp":1633807315743,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":32798,"size":32350,"diff":-448}]},{"timestamp":1631707434286,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30788,"size":32798,"diff":2010}]},{"timestamp":1609970391134,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30462,"size":30788,"diff":326}]},{"timestamp":1606329520224,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30444,"size":30462,"diff":18}]},{"timestamp":1600966264515,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30482,"size":30444,"diff":-38}]},{"timestamp":1598553938146,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27942,"size":30482,"diff":2540}]},{"timestamp":1598552664181,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27936,"size":27942,"diff":6}]},{"timestamp":1596469136579,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27939,"size":27936,"diff":-3}]},{"timestamp":1596457466566,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27873,"size":27939,"diff":66}]},{"timestamp":1596443786707,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":71314,"size":27873,"diff":-43441}]},{"timestamp":1596407638206,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":28968,"size":71314,"diff":42346}]}]
1+
[{"timestamp":1639256487086,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":32701,"size":32954,"diff":253}]},{"timestamp":1634480731621,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":32696,"size":32701,"diff":5}]},{"timestamp":1633809533394,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":32350,"size":32696,"diff":346}]},{"timestamp":1633807315743,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":32798,"size":32350,"diff":-448}]},{"timestamp":1631707434286,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30788,"size":32798,"diff":2010}]},{"timestamp":1609970391134,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30462,"size":30788,"diff":326}]},{"timestamp":1606329520224,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30444,"size":30462,"diff":18}]},{"timestamp":1600966264515,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":30482,"size":30444,"diff":-38}]},{"timestamp":1598553938146,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27942,"size":30482,"diff":2540}]},{"timestamp":1598552664181,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27936,"size":27942,"diff":6}]},{"timestamp":1596469136579,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27939,"size":27936,"diff":-3}]},{"timestamp":1596457466566,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":27873,"size":27939,"diff":66}]},{"timestamp":1596443786707,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":71314,"size":27873,"diff":-43441}]},{"timestamp":1596407638206,"files":[{"filename":"msteams-incoming-webhook/index.js","previous":28968,"size":71314,"diff":42346}]}]

packages/cdk-cloudfront-authorization/API.md

+65-2
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ Construct.isConstruct
861861

862862
### Methods
863863

864+
- [applyRemovalPolicy](#applyremovalpolicy)
864865
- [defaultOrigin](#defaultorigin)
865866
- [onPrepare](#onprepare)
866867
- [onSynthesize](#onsynthesize)
@@ -961,6 +962,26 @@ IDistribution.stack
961962

962963
## Methods
963964

965+
### applyRemovalPolicy
966+
967+
**applyRemovalPolicy**(`policy`): `void`
968+
969+
#### Parameters
970+
971+
| Name | Type |
972+
| :------ | :------ |
973+
| `policy` | `RemovalPolicy` |
974+
975+
#### Returns
976+
977+
`void`
978+
979+
#### Implementation of
980+
981+
IDistribution.applyRemovalPolicy
982+
983+
___
984+
964985
### defaultOrigin
965986

966987
`Private` **defaultOrigin**(`removalPolicy`): `IOrigin`
@@ -1857,7 +1878,7 @@ ___
18571878

18581879
### mode
18591880

1860-
`Readonly` **mode**: [`SPA`](#spa)
1881+
`Readonly` **mode**: [`SPA`](#spa) = `Mode.SPA`
18611882

18621883
#### Implementation of
18631884

@@ -2322,6 +2343,7 @@ x is Construct
23222343

23232344
### Methods
23242345

2346+
- [applyRemovalPolicy](#applyremovalpolicy)
23252347
- [onPrepare](#onprepare)
23262348
- [onSynthesize](#onsynthesize)
23272349
- [onValidate](#onvalidate)
@@ -2417,6 +2439,26 @@ ___
24172439

24182440
## Methods
24192441

2442+
### applyRemovalPolicy
2443+
2444+
**applyRemovalPolicy**(`policy`): `void`
2445+
2446+
#### Parameters
2447+
2448+
| Name | Type |
2449+
| :------ | :------ |
2450+
| `policy` | `RemovalPolicy` |
2451+
2452+
#### Returns
2453+
2454+
`void`
2455+
2456+
#### Inherited from
2457+
2458+
[BaseDistribution](#base-distribution).[applyRemovalPolicy](#applyremovalpolicy)
2459+
2460+
___
2461+
24202462
### onPrepare
24212463

24222464
`Protected` **onPrepare**(): `void`
@@ -2778,7 +2820,7 @@ ___
27782820

27792821
### mode
27802822

2781-
`Readonly` **mode**: [`STATIC_SITE`](#static_site)
2823+
`Readonly` **mode**: [`STATIC_SITE`](#static_site) = `Mode.STATIC_SITE`
27822824

27832825
#### Implementation of
27842826

@@ -3253,6 +3295,7 @@ x is Construct
32533295

32543296
### Methods
32553297

3298+
- [applyRemovalPolicy](#applyremovalpolicy)
32563299
- [onPrepare](#onprepare)
32573300
- [onSynthesize](#onsynthesize)
32583301
- [onValidate](#onvalidate)
@@ -3348,6 +3391,26 @@ ___
33483391

33493392
## Methods
33503393

3394+
### applyRemovalPolicy
3395+
3396+
**applyRemovalPolicy**(`policy`): `void`
3397+
3398+
#### Parameters
3399+
3400+
| Name | Type |
3401+
| :------ | :------ |
3402+
| `policy` | `RemovalPolicy` |
3403+
3404+
#### Returns
3405+
3406+
`void`
3407+
3408+
#### Inherited from
3409+
3410+
[BaseDistribution](#base-distribution).[applyRemovalPolicy](#applyremovalpolicy)
3411+
3412+
___
3413+
33513414
### onPrepare
33523415

33533416
`Protected` **onPrepare**(): `void`

packages/cdk-cloudfront-authorization/lambda-file-sizes.json

+1-1
Large diffs are not rendered by default.

packages/cdk-cloudfront-authorization/src/distributions.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from '@aws-cdk/aws-cloudfront';
1414
import { S3Origin } from '@aws-cdk/aws-cloudfront-origins';
1515
import { Bucket, IBucket } from '@aws-cdk/aws-s3';
16-
import { Construct, Duration, RemovalPolicy, Stack, ResourceEnvironment } from '@aws-cdk/core';
16+
import { Construct, Duration, RemovalPolicy, Stack, ResourceEnvironment, CfnResource } from '@aws-cdk/core';
1717

1818
import { IAuthorization, IStaticSiteAuthorization, ISpaAuthorization } from './authorizations';
1919

@@ -215,6 +215,14 @@ export class BaseDistribution extends Construct implements IDistribution {
215215
};
216216
}
217217

218+
public applyRemovalPolicy(policy: RemovalPolicy) {
219+
const child = this.node.defaultChild;
220+
if (!child || !CfnResource.isCfnResource(child)) {
221+
throw new Error('Cannot apply RemovalPolicy: no child or not a CfnResource. Apply the removal policy on the CfnResource directly.');
222+
}
223+
child.applyRemovalPolicy(policy);
224+
}
225+
218226
protected renderDefaultBehaviour(origin: IOrigin, authorization: IAuthorization): BehaviorOptions {
219227
return authorization.createDefaultBehavior(origin, {
220228
originRequestPolicy: undefined,

0 commit comments

Comments
 (0)