cdk-ecr-deployment 3.0.91 → 3.0.93
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 +2 -2
- package/API.md +425 -87
- package/lib/index.js +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +1060 -110
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +2 -3
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +1060 -110
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +2 -3
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +1060 -110
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +2 -3
- package/package.json +7 -7
package/.jsii
CHANGED
|
@@ -4398,6 +4398,6 @@
|
|
|
4398
4398
|
"symbolId": "src/index:S3ArchiveName"
|
|
4399
4399
|
}
|
|
4400
4400
|
},
|
|
4401
|
-
"version": "3.0.
|
|
4402
|
-
"fingerprint": "
|
|
4401
|
+
"version": "3.0.93",
|
|
4402
|
+
"fingerprint": "2MAfR86b+6U/KEx0JYYo4+g5o4xdVtgkjSs134GStNs="
|
|
4403
4403
|
}
|
package/API.md
CHANGED
|
@@ -1,176 +1,514 @@
|
|
|
1
|
-
# API Reference
|
|
1
|
+
# API Reference <a name="API Reference" id="api-reference"></a>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Constructs <a name="Constructs" id="Constructs"></a>
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
----|-----------
|
|
7
|
-
[DockerImageName](#cdk-ecr-deployment-dockerimagename)|*No description*
|
|
8
|
-
[ECRDeployment](#cdk-ecr-deployment-ecrdeployment)|*No description*
|
|
9
|
-
[S3ArchiveName](#cdk-ecr-deployment-s3archivename)|*No description*
|
|
5
|
+
### ECRDeployment <a name="ECRDeployment" id="cdk-ecr-deployment.ECRDeployment"></a>
|
|
10
6
|
|
|
7
|
+
#### Initializers <a name="Initializers" id="cdk-ecr-deployment.ECRDeployment.Initializer"></a>
|
|
11
8
|
|
|
12
|
-
|
|
9
|
+
```typescript
|
|
10
|
+
import { ECRDeployment } from 'cdk-ecr-deployment'
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[ECRDeploymentProps](#cdk-ecr-deployment-ecrdeploymentprops)|*No description*
|
|
12
|
+
new ECRDeployment(scope: Construct, id: string, props: ECRDeploymentProps)
|
|
13
|
+
```
|
|
17
14
|
|
|
15
|
+
| **Name** | **Type** | **Description** |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeployment.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
|
|
18
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeployment.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
|
|
19
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeployment.Initializer.parameter.props">props</a></code> | <code><a href="#cdk-ecr-deployment.ECRDeploymentProps">ECRDeploymentProps</a></code> | *No description.* |
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
---
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
----|-----------
|
|
23
|
-
[IImageName](#cdk-ecr-deployment-iimagename)|*No description*
|
|
23
|
+
##### `scope`<sup>Required</sup> <a name="scope" id="cdk-ecr-deployment.ECRDeployment.Initializer.parameter.scope"></a>
|
|
24
24
|
|
|
25
|
+
- *Type:* constructs.Construct
|
|
25
26
|
|
|
27
|
+
---
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
##### `id`<sup>Required</sup> <a name="id" id="cdk-ecr-deployment.ECRDeployment.Initializer.parameter.id"></a>
|
|
28
30
|
|
|
31
|
+
- *Type:* string
|
|
29
32
|
|
|
33
|
+
---
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
##### `props`<sup>Required</sup> <a name="props" id="cdk-ecr-deployment.ECRDeployment.Initializer.parameter.props"></a>
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
- *Type:* <a href="#cdk-ecr-deployment.ECRDeploymentProps">ECRDeploymentProps</a>
|
|
34
38
|
|
|
39
|
+
---
|
|
35
40
|
|
|
41
|
+
#### Methods <a name="Methods" id="Methods"></a>
|
|
36
42
|
|
|
43
|
+
| **Name** | **Description** |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeployment.toString">toString</a></code> | Returns a string representation of this construct. |
|
|
46
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeployment.addToPrincipalPolicy">addToPrincipalPolicy</a></code> | *No description.* |
|
|
37
47
|
|
|
38
|
-
|
|
39
|
-
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
##### `toString` <a name="toString" id="cdk-ecr-deployment.ECRDeployment.toString"></a>
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
public toString(): string
|
|
40
54
|
```
|
|
41
55
|
|
|
42
|
-
|
|
43
|
-
* **creds** (<code>string</code>) The credentials of the docker image.
|
|
56
|
+
Returns a string representation of this construct.
|
|
44
57
|
|
|
58
|
+
##### `addToPrincipalPolicy` <a name="addToPrincipalPolicy" id="cdk-ecr-deployment.ECRDeployment.addToPrincipalPolicy"></a>
|
|
45
59
|
|
|
60
|
+
```typescript
|
|
61
|
+
public addToPrincipalPolicy(statement: PolicyStatement): AddToPrincipalPolicyResult
|
|
62
|
+
```
|
|
46
63
|
|
|
47
|
-
|
|
64
|
+
###### `statement`<sup>Required</sup> <a name="statement" id="cdk-ecr-deployment.ECRDeployment.addToPrincipalPolicy.parameter.statement"></a>
|
|
48
65
|
|
|
66
|
+
- *Type:* aws-cdk-lib.aws_iam.PolicyStatement
|
|
49
67
|
|
|
50
|
-
|
|
51
|
-
-----|------|-------------
|
|
52
|
-
**uri** | <code>string</code> | The uri of the docker image.
|
|
53
|
-
**creds**? | <code>string</code> | The credentials of the docker image.<br/>__*Optional*__
|
|
68
|
+
---
|
|
54
69
|
|
|
70
|
+
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
55
71
|
|
|
72
|
+
| **Name** | **Description** |
|
|
73
|
+
| --- | --- |
|
|
74
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeployment.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
|
|
56
75
|
|
|
57
|
-
|
|
76
|
+
---
|
|
58
77
|
|
|
78
|
+
##### `isConstruct` <a name="isConstruct" id="cdk-ecr-deployment.ECRDeployment.isConstruct"></a>
|
|
59
79
|
|
|
80
|
+
```typescript
|
|
81
|
+
import { ECRDeployment } from 'cdk-ecr-deployment'
|
|
60
82
|
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
ECRDeployment.isConstruct(x: any)
|
|
84
|
+
```
|
|
63
85
|
|
|
64
|
-
|
|
86
|
+
Checks if `x` is a construct.
|
|
65
87
|
|
|
88
|
+
Use this method instead of `instanceof` to properly detect `Construct`
|
|
89
|
+
instances, even when the construct library is symlinked.
|
|
66
90
|
|
|
91
|
+
Explanation: in JavaScript, multiple copies of the `constructs` library on
|
|
92
|
+
disk are seen as independent, completely different libraries. As a
|
|
93
|
+
consequence, the class `Construct` in each copy of the `constructs` library
|
|
94
|
+
is seen as a different class, and an instance of one class will not test as
|
|
95
|
+
`instanceof` the other class. `npm install` will not create installations
|
|
96
|
+
like this, but users may manually symlink construct libraries together or
|
|
97
|
+
use a monorepo tool: in those cases, multiple copies of the `constructs`
|
|
98
|
+
library can be accidentally installed, and `instanceof` will behave
|
|
99
|
+
unpredictably. It is safest to avoid using `instanceof`, and using
|
|
100
|
+
this type-testing method instead.
|
|
67
101
|
|
|
102
|
+
###### `x`<sup>Required</sup> <a name="x" id="cdk-ecr-deployment.ECRDeployment.isConstruct.parameter.x"></a>
|
|
68
103
|
|
|
69
|
-
|
|
70
|
-
|
|
104
|
+
- *Type:* any
|
|
105
|
+
|
|
106
|
+
Any object.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
111
|
+
|
|
112
|
+
| **Name** | **Type** | **Description** |
|
|
113
|
+
| --- | --- | --- |
|
|
114
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeployment.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
##### `node`<sup>Required</sup> <a name="node" id="cdk-ecr-deployment.ECRDeployment.property.node"></a>
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
public readonly node: Node;
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
- *Type:* constructs.Node
|
|
125
|
+
|
|
126
|
+
The tree node.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
## Structs <a name="Structs" id="Structs"></a>
|
|
132
|
+
|
|
133
|
+
### ECRDeploymentProps <a name="ECRDeploymentProps" id="cdk-ecr-deployment.ECRDeploymentProps"></a>
|
|
134
|
+
|
|
135
|
+
#### Initializer <a name="Initializer" id="cdk-ecr-deployment.ECRDeploymentProps.Initializer"></a>
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
import { ECRDeploymentProps } from 'cdk-ecr-deployment'
|
|
139
|
+
|
|
140
|
+
const eCRDeploymentProps: ECRDeploymentProps = { ... }
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
144
|
+
|
|
145
|
+
| **Name** | **Type** | **Description** |
|
|
146
|
+
| --- | --- | --- |
|
|
147
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.dest">dest</a></code> | <code><a href="#cdk-ecr-deployment.IImageName">IImageName</a></code> | The destination of the docker image. |
|
|
148
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.src">src</a></code> | <code><a href="#cdk-ecr-deployment.IImageName">IImageName</a></code> | The source of the docker image. |
|
|
149
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.buildImage">buildImage</a></code> | <code>string</code> | Image to use to build Golang lambda for custom resource, if download fails or is not wanted. |
|
|
150
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.environment">environment</a></code> | <code>{[ key: string ]: string}</code> | The environment variable to set. |
|
|
151
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.lambdaHandler">lambdaHandler</a></code> | <code>string</code> | The name of the lambda handler. |
|
|
152
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.lambdaRuntime">lambdaRuntime</a></code> | <code>aws-cdk-lib.aws_lambda.Runtime</code> | The lambda function runtime environment. |
|
|
153
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.memoryLimit">memoryLimit</a></code> | <code>number</code> | The amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket. |
|
|
154
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.role">role</a></code> | <code>aws-cdk-lib.aws_iam.IRole</code> | Execution role associated with this function. |
|
|
155
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.securityGroups">securityGroups</a></code> | <code>aws-cdk-lib.aws_ec2.SecurityGroup[]</code> | The list of security groups to associate with the Lambda's network interfaces. |
|
|
156
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.vpc">vpc</a></code> | <code>aws-cdk-lib.aws_ec2.IVpc</code> | The VPC network to place the deployment lambda handler in. |
|
|
157
|
+
| <code><a href="#cdk-ecr-deployment.ECRDeploymentProps.property.vpcSubnets">vpcSubnets</a></code> | <code>aws-cdk-lib.aws_ec2.SubnetSelection</code> | Where in the VPC to place the deployment lambda handler. |
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
##### `dest`<sup>Required</sup> <a name="dest" id="cdk-ecr-deployment.ECRDeploymentProps.property.dest"></a>
|
|
162
|
+
|
|
163
|
+
```typescript
|
|
164
|
+
public readonly dest: IImageName;
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
- *Type:* <a href="#cdk-ecr-deployment.IImageName">IImageName</a>
|
|
168
|
+
|
|
169
|
+
The destination of the docker image.
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
##### `src`<sup>Required</sup> <a name="src" id="cdk-ecr-deployment.ECRDeploymentProps.property.src"></a>
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
public readonly src: IImageName;
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
- *Type:* <a href="#cdk-ecr-deployment.IImageName">IImageName</a>
|
|
180
|
+
|
|
181
|
+
The source of the docker image.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
##### `buildImage`<sup>Optional</sup> <a name="buildImage" id="cdk-ecr-deployment.ECRDeploymentProps.property.buildImage"></a>
|
|
186
|
+
|
|
187
|
+
```typescript
|
|
188
|
+
public readonly buildImage: string;
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
- *Type:* string
|
|
192
|
+
- *Default:* public.ecr.aws/sam/build-go1.x:latest
|
|
193
|
+
|
|
194
|
+
Image to use to build Golang lambda for custom resource, if download fails or is not wanted.
|
|
195
|
+
|
|
196
|
+
Might be needed for local build if all images need to come from own registry.
|
|
197
|
+
|
|
198
|
+
Note that image should use yum as a package manager and have golang available.
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
##### `environment`<sup>Optional</sup> <a name="environment" id="cdk-ecr-deployment.ECRDeploymentProps.property.environment"></a>
|
|
203
|
+
|
|
204
|
+
```typescript
|
|
205
|
+
public readonly environment: {[ key: string ]: string};
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
- *Type:* {[ key: string ]: string}
|
|
209
|
+
|
|
210
|
+
The environment variable to set.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
##### `lambdaHandler`<sup>Optional</sup> <a name="lambdaHandler" id="cdk-ecr-deployment.ECRDeploymentProps.property.lambdaHandler"></a>
|
|
215
|
+
|
|
216
|
+
```typescript
|
|
217
|
+
public readonly lambdaHandler: string;
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
- *Type:* string
|
|
221
|
+
- *Default:* bootstrap
|
|
222
|
+
|
|
223
|
+
The name of the lambda handler.
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
##### `lambdaRuntime`<sup>Optional</sup> <a name="lambdaRuntime" id="cdk-ecr-deployment.ECRDeploymentProps.property.lambdaRuntime"></a>
|
|
228
|
+
|
|
229
|
+
```typescript
|
|
230
|
+
public readonly lambdaRuntime: Runtime;
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
- *Type:* aws-cdk-lib.aws_lambda.Runtime
|
|
234
|
+
- *Default:* lambda.Runtime.PROVIDED_AL2023
|
|
235
|
+
|
|
236
|
+
The lambda function runtime environment.
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
##### `memoryLimit`<sup>Optional</sup> <a name="memoryLimit" id="cdk-ecr-deployment.ECRDeploymentProps.property.memoryLimit"></a>
|
|
241
|
+
|
|
242
|
+
```typescript
|
|
243
|
+
public readonly memoryLimit: number;
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
- *Type:* number
|
|
247
|
+
- *Default:* 512
|
|
248
|
+
|
|
249
|
+
The amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket.
|
|
250
|
+
|
|
251
|
+
If you are deploying large files, you will need to increase this number
|
|
252
|
+
accordingly.
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
##### `role`<sup>Optional</sup> <a name="role" id="cdk-ecr-deployment.ECRDeploymentProps.property.role"></a>
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
public readonly role: IRole;
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
- *Type:* aws-cdk-lib.aws_iam.IRole
|
|
263
|
+
- *Default:* A role is automatically created
|
|
264
|
+
|
|
265
|
+
Execution role associated with this function.
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
##### `securityGroups`<sup>Optional</sup> <a name="securityGroups" id="cdk-ecr-deployment.ECRDeploymentProps.property.securityGroups"></a>
|
|
270
|
+
|
|
271
|
+
```typescript
|
|
272
|
+
public readonly securityGroups: SecurityGroup[];
|
|
71
273
|
```
|
|
72
274
|
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
275
|
+
- *Type:* aws-cdk-lib.aws_ec2.SecurityGroup[]
|
|
276
|
+
- *Default:* If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
277
|
+
|
|
278
|
+
The list of security groups to associate with the Lambda's network interfaces.
|
|
279
|
+
|
|
280
|
+
Only used if 'vpc' is supplied.
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
##### `vpc`<sup>Optional</sup> <a name="vpc" id="cdk-ecr-deployment.ECRDeploymentProps.property.vpc"></a>
|
|
285
|
+
|
|
286
|
+
```typescript
|
|
287
|
+
public readonly vpc: IVpc;
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
- *Type:* aws-cdk-lib.aws_ec2.IVpc
|
|
291
|
+
- *Default:* None
|
|
292
|
+
|
|
293
|
+
The VPC network to place the deployment lambda handler in.
|
|
294
|
+
|
|
295
|
+
---
|
|
296
|
+
|
|
297
|
+
##### `vpcSubnets`<sup>Optional</sup> <a name="vpcSubnets" id="cdk-ecr-deployment.ECRDeploymentProps.property.vpcSubnets"></a>
|
|
298
|
+
|
|
299
|
+
```typescript
|
|
300
|
+
public readonly vpcSubnets: SubnetSelection;
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
- *Type:* aws-cdk-lib.aws_ec2.SubnetSelection
|
|
304
|
+
- *Default:* the Vpc default strategy if not specified
|
|
305
|
+
|
|
306
|
+
Where in the VPC to place the deployment lambda handler.
|
|
307
|
+
|
|
308
|
+
Only used if 'vpc' is supplied.
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## Classes <a name="Classes" id="Classes"></a>
|
|
313
|
+
|
|
314
|
+
### DockerImageName <a name="DockerImageName" id="cdk-ecr-deployment.DockerImageName"></a>
|
|
315
|
+
|
|
316
|
+
- *Implements:* <a href="#cdk-ecr-deployment.IImageName">IImageName</a>
|
|
317
|
+
|
|
318
|
+
#### Initializers <a name="Initializers" id="cdk-ecr-deployment.DockerImageName.Initializer"></a>
|
|
319
|
+
|
|
320
|
+
```typescript
|
|
321
|
+
import { DockerImageName } from 'cdk-ecr-deployment'
|
|
322
|
+
|
|
323
|
+
new DockerImageName(name: string, creds?: string)
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
| **Name** | **Type** | **Description** |
|
|
327
|
+
| --- | --- | --- |
|
|
328
|
+
| <code><a href="#cdk-ecr-deployment.DockerImageName.Initializer.parameter.name">name</a></code> | <code>string</code> | *No description.* |
|
|
329
|
+
| <code><a href="#cdk-ecr-deployment.DockerImageName.Initializer.parameter.creds">creds</a></code> | <code>string</code> | The credentials of the docker image. |
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
##### `name`<sup>Required</sup> <a name="name" id="cdk-ecr-deployment.DockerImageName.Initializer.parameter.name"></a>
|
|
334
|
+
|
|
335
|
+
- *Type:* string
|
|
336
|
+
|
|
337
|
+
---
|
|
87
338
|
|
|
339
|
+
##### `creds`<sup>Optional</sup> <a name="creds" id="cdk-ecr-deployment.DockerImageName.Initializer.parameter.creds"></a>
|
|
88
340
|
|
|
89
|
-
|
|
341
|
+
- *Type:* string
|
|
90
342
|
|
|
343
|
+
The credentials of the docker image.
|
|
91
344
|
|
|
92
|
-
|
|
345
|
+
Format `user:password` or `AWS Secrets Manager secret arn` or `AWS Secrets Manager secret name`
|
|
93
346
|
|
|
347
|
+
---
|
|
94
348
|
|
|
95
349
|
|
|
96
|
-
|
|
97
|
-
|
|
350
|
+
|
|
351
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
352
|
+
|
|
353
|
+
| **Name** | **Type** | **Description** |
|
|
354
|
+
| --- | --- | --- |
|
|
355
|
+
| <code><a href="#cdk-ecr-deployment.DockerImageName.property.uri">uri</a></code> | <code>string</code> | The uri of the docker image. |
|
|
356
|
+
| <code><a href="#cdk-ecr-deployment.DockerImageName.property.creds">creds</a></code> | <code>string</code> | The credentials of the docker image. |
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
##### `uri`<sup>Required</sup> <a name="uri" id="cdk-ecr-deployment.DockerImageName.property.uri"></a>
|
|
361
|
+
|
|
362
|
+
```typescript
|
|
363
|
+
public readonly uri: string;
|
|
98
364
|
```
|
|
99
365
|
|
|
100
|
-
|
|
366
|
+
- *Type:* string
|
|
101
367
|
|
|
102
|
-
|
|
103
|
-
* <code>[aws_iam.AddToPrincipalPolicyResult](#aws-cdk-lib-aws-iam-addtoprincipalpolicyresult)</code>
|
|
368
|
+
The uri of the docker image.
|
|
104
369
|
|
|
370
|
+
The uri spec follows https://github.com/containers/skopeo
|
|
105
371
|
|
|
372
|
+
---
|
|
106
373
|
|
|
107
|
-
|
|
374
|
+
##### `creds`<sup>Optional</sup> <a name="creds" id="cdk-ecr-deployment.DockerImageName.property.creds"></a>
|
|
108
375
|
|
|
376
|
+
```typescript
|
|
377
|
+
public readonly creds: string;
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
- *Type:* string
|
|
381
|
+
|
|
382
|
+
The credentials of the docker image.
|
|
109
383
|
|
|
384
|
+
Format `user:password` or `AWS Secrets Manager secret arn` or `AWS Secrets Manager secret name`
|
|
110
385
|
|
|
111
|
-
|
|
386
|
+
---
|
|
112
387
|
|
|
113
|
-
### Initializer
|
|
114
388
|
|
|
389
|
+
### S3ArchiveName <a name="S3ArchiveName" id="cdk-ecr-deployment.S3ArchiveName"></a>
|
|
115
390
|
|
|
391
|
+
- *Implements:* <a href="#cdk-ecr-deployment.IImageName">IImageName</a>
|
|
116
392
|
|
|
393
|
+
#### Initializers <a name="Initializers" id="cdk-ecr-deployment.S3ArchiveName.Initializer"></a>
|
|
394
|
+
|
|
395
|
+
```typescript
|
|
396
|
+
import { S3ArchiveName } from 'cdk-ecr-deployment'
|
|
117
397
|
|
|
118
|
-
```ts
|
|
119
398
|
new S3ArchiveName(p: string, ref?: string, creds?: string)
|
|
120
399
|
```
|
|
121
400
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
401
|
+
| **Name** | **Type** | **Description** |
|
|
402
|
+
| --- | --- | --- |
|
|
403
|
+
| <code><a href="#cdk-ecr-deployment.S3ArchiveName.Initializer.parameter.p">p</a></code> | <code>string</code> | *No description.* |
|
|
404
|
+
| <code><a href="#cdk-ecr-deployment.S3ArchiveName.Initializer.parameter.ref">ref</a></code> | <code>string</code> | *No description.* |
|
|
405
|
+
| <code><a href="#cdk-ecr-deployment.S3ArchiveName.Initializer.parameter.creds">creds</a></code> | <code>string</code> | The credentials of the docker image. |
|
|
406
|
+
|
|
407
|
+
---
|
|
125
408
|
|
|
409
|
+
##### `p`<sup>Required</sup> <a name="p" id="cdk-ecr-deployment.S3ArchiveName.Initializer.parameter.p"></a>
|
|
126
410
|
|
|
411
|
+
- *Type:* string
|
|
127
412
|
|
|
128
|
-
|
|
413
|
+
---
|
|
129
414
|
|
|
415
|
+
##### `ref`<sup>Optional</sup> <a name="ref" id="cdk-ecr-deployment.S3ArchiveName.Initializer.parameter.ref"></a>
|
|
130
416
|
|
|
131
|
-
|
|
132
|
-
-----|------|-------------
|
|
133
|
-
**uri** | <code>string</code> | The uri of the docker image.
|
|
134
|
-
**creds**? | <code>string</code> | The credentials of the docker image.<br/>__*Optional*__
|
|
417
|
+
- *Type:* string
|
|
135
418
|
|
|
419
|
+
---
|
|
136
420
|
|
|
421
|
+
##### `creds`<sup>Optional</sup> <a name="creds" id="cdk-ecr-deployment.S3ArchiveName.Initializer.parameter.creds"></a>
|
|
137
422
|
|
|
138
|
-
|
|
423
|
+
- *Type:* string
|
|
139
424
|
|
|
425
|
+
The credentials of the docker image.
|
|
140
426
|
|
|
427
|
+
Format `user:password` or `AWS Secrets Manager secret arn` or `AWS Secrets Manager secret name`
|
|
141
428
|
|
|
429
|
+
---
|
|
142
430
|
|
|
143
431
|
|
|
144
432
|
|
|
145
|
-
|
|
146
|
-
-----|------|-------------
|
|
147
|
-
**dest** | <code>[IImageName](#cdk-ecr-deployment-iimagename)</code> | The destination of the docker image.
|
|
148
|
-
**src** | <code>[IImageName](#cdk-ecr-deployment-iimagename)</code> | The source of the docker image.
|
|
149
|
-
**buildImage**? | <code>string</code> | Image to use to build Golang lambda for custom resource, if download fails or is not wanted.<br/>__*Default*__: public.ecr.aws/sam/build-go1.x:latest
|
|
150
|
-
**environment**? | <code>Map<string, string></code> | The environment variable to set.<br/>__*Optional*__
|
|
151
|
-
**lambdaHandler**? | <code>string</code> | The name of the lambda handler.<br/>__*Default*__: bootstrap
|
|
152
|
-
**lambdaRuntime**? | <code>[aws_lambda.Runtime](#aws-cdk-lib-aws-lambda-runtime)</code> | The lambda function runtime environment.<br/>__*Default*__: lambda.Runtime.PROVIDED_AL2023
|
|
153
|
-
**memoryLimit**? | <code>number</code> | The amount of memory (in MiB) to allocate to the AWS Lambda function which replicates the files from the CDK bucket to the destination bucket.<br/>__*Default*__: 512
|
|
154
|
-
**role**? | <code>[aws_iam.IRole](#aws-cdk-lib-aws-iam-irole)</code> | Execution role associated with this function.<br/>__*Default*__: A role is automatically created
|
|
155
|
-
**securityGroups**? | <code>Array<[aws_ec2.SecurityGroup](#aws-cdk-lib-aws-ec2-securitygroup)></code> | The list of security groups to associate with the Lambda's network interfaces.<br/>__*Default*__: If the function is placed within a VPC and a security group is not specified, either by this or securityGroup prop, a dedicated security group will be created for this function.
|
|
156
|
-
**vpc**? | <code>[aws_ec2.IVpc](#aws-cdk-lib-aws-ec2-ivpc)</code> | The VPC network to place the deployment lambda handler in.<br/>__*Default*__: None
|
|
157
|
-
**vpcSubnets**? | <code>[aws_ec2.SubnetSelection](#aws-cdk-lib-aws-ec2-subnetselection)</code> | Where in the VPC to place the deployment lambda handler.<br/>__*Default*__: the Vpc default strategy if not specified
|
|
433
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
158
434
|
|
|
435
|
+
| **Name** | **Type** | **Description** |
|
|
436
|
+
| --- | --- | --- |
|
|
437
|
+
| <code><a href="#cdk-ecr-deployment.S3ArchiveName.property.uri">uri</a></code> | <code>string</code> | The uri of the docker image. |
|
|
438
|
+
| <code><a href="#cdk-ecr-deployment.S3ArchiveName.property.creds">creds</a></code> | <code>string</code> | The credentials of the docker image. |
|
|
159
439
|
|
|
440
|
+
---
|
|
160
441
|
|
|
161
|
-
|
|
442
|
+
##### `uri`<sup>Required</sup> <a name="uri" id="cdk-ecr-deployment.S3ArchiveName.property.uri"></a>
|
|
443
|
+
|
|
444
|
+
```typescript
|
|
445
|
+
public readonly uri: string;
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
- *Type:* string
|
|
449
|
+
|
|
450
|
+
The uri of the docker image.
|
|
451
|
+
|
|
452
|
+
The uri spec follows https://github.com/containers/skopeo
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
##### `creds`<sup>Optional</sup> <a name="creds" id="cdk-ecr-deployment.S3ArchiveName.property.creds"></a>
|
|
457
|
+
|
|
458
|
+
```typescript
|
|
459
|
+
public readonly creds: string;
|
|
460
|
+
```
|
|
162
461
|
|
|
163
|
-
|
|
462
|
+
- *Type:* string
|
|
164
463
|
|
|
464
|
+
The credentials of the docker image.
|
|
165
465
|
|
|
466
|
+
Format `user:password` or `AWS Secrets Manager secret arn` or `AWS Secrets Manager secret name`
|
|
166
467
|
|
|
167
|
-
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
## Protocols <a name="Protocols" id="Protocols"></a>
|
|
472
|
+
|
|
473
|
+
### IImageName <a name="IImageName" id="cdk-ecr-deployment.IImageName"></a>
|
|
474
|
+
|
|
475
|
+
- *Implemented By:* <a href="#cdk-ecr-deployment.DockerImageName">DockerImageName</a>, <a href="#cdk-ecr-deployment.S3ArchiveName">S3ArchiveName</a>, <a href="#cdk-ecr-deployment.IImageName">IImageName</a>
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
479
|
+
|
|
480
|
+
| **Name** | **Type** | **Description** |
|
|
481
|
+
| --- | --- | --- |
|
|
482
|
+
| <code><a href="#cdk-ecr-deployment.IImageName.property.uri">uri</a></code> | <code>string</code> | The uri of the docker image. |
|
|
483
|
+
| <code><a href="#cdk-ecr-deployment.IImageName.property.creds">creds</a></code> | <code>string</code> | The credentials of the docker image. |
|
|
484
|
+
|
|
485
|
+
---
|
|
486
|
+
|
|
487
|
+
##### `uri`<sup>Required</sup> <a name="uri" id="cdk-ecr-deployment.IImageName.property.uri"></a>
|
|
488
|
+
|
|
489
|
+
```typescript
|
|
490
|
+
public readonly uri: string;
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
- *Type:* string
|
|
494
|
+
|
|
495
|
+
The uri of the docker image.
|
|
496
|
+
|
|
497
|
+
The uri spec follows https://github.com/containers/skopeo
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
##### `creds`<sup>Optional</sup> <a name="creds" id="cdk-ecr-deployment.IImageName.property.creds"></a>
|
|
502
|
+
|
|
503
|
+
```typescript
|
|
504
|
+
public readonly creds: string;
|
|
505
|
+
```
|
|
168
506
|
|
|
507
|
+
- *Type:* string
|
|
169
508
|
|
|
170
|
-
|
|
171
|
-
-----|------|-------------
|
|
172
|
-
**uri** | <code>string</code> | The uri of the docker image.
|
|
173
|
-
**creds**? | <code>string</code> | The credentials of the docker image.<br/>__*Optional*__
|
|
509
|
+
The credentials of the docker image.
|
|
174
510
|
|
|
511
|
+
Format `user:password` or `AWS Secrets Manager secret arn` or `AWS Secrets Manager secret name`
|
|
175
512
|
|
|
513
|
+
---
|
|
176
514
|
|