@aws-cdk/aws-imagebuilder-alpha 2.229.1-alpha.0 → 2.231.0-alpha.0
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 +9966 -4578
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +221 -1
- package/README.md +796 -3
- package/awslint.json +1 -0
- package/lib/amazon-managed-image.d.ts +242 -0
- package/lib/amazon-managed-image.js +522 -0
- package/lib/base-image.d.ts +13 -0
- package/lib/base-image.js +39 -4
- package/lib/component.js +8 -8
- package/lib/container-recipe.js +4 -4
- package/lib/distribution-configuration.js +2 -2
- package/lib/image-pipeline.d.ts +465 -0
- package/lib/image-pipeline.js +469 -0
- package/lib/image-recipe.js +1 -1
- package/lib/image.d.ts +339 -0
- package/lib/image.js +357 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +5 -1
- package/lib/infrastructure-configuration.d.ts +1 -1
- package/lib/infrastructure-configuration.js +2 -2
- package/lib/lifecycle-policy.d.ts +409 -0
- package/lib/lifecycle-policy.js +459 -0
- package/lib/os-version.js +1 -1
- package/lib/private/constants.d.ts +7 -0
- package/lib/private/constants.js +11 -0
- package/lib/private/image-and-pipeline-props-helper.d.ts +26 -0
- package/lib/private/image-and-pipeline-props-helper.js +67 -0
- package/lib/private/policy-helper.d.ts +21 -0
- package/lib/private/policy-helper.js +420 -0
- package/lib/recipe-base.js +1 -1
- package/lib/workflow.d.ts +63 -0
- package/lib/workflow.js +51 -6
- package/package.json +6 -6
- package/rosetta/default.ts-fixture +41 -2
package/awslint.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"exclude": [
|
|
3
3
|
"props-no-arn-refs:@aws-cdk/aws-imagebuilder-alpha.InfrastructureConfigurationProps.ec2InstanceHostResourceGroupArn",
|
|
4
|
+
"props-physical-name:@aws-cdk/aws-imagebuilder-alpha.ImageProps",
|
|
4
5
|
"no-unused-type:@aws-cdk/aws-imagebuilder-alpha.ContainerType",
|
|
5
6
|
"no-unused-type:@aws-cdk/aws-imagebuilder-alpha.WorkflowAction",
|
|
6
7
|
"no-unused-type:@aws-cdk/aws-imagebuilder-alpha.WorkflowOnFailure",
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import { IImage, ImageArchitecture, ImageType } from './image';
|
|
3
|
+
/**
|
|
4
|
+
* Attributes for importing an Amazon-managed image by name (and optionally a version)
|
|
5
|
+
*/
|
|
6
|
+
export interface AmazonManagedImageAttributes {
|
|
7
|
+
/**
|
|
8
|
+
* The name of the Amazon-managed image. The provided name must be normalized by converting all alphabetical
|
|
9
|
+
* characters to lowercase, and replacing all spaces and underscores with hyphens.
|
|
10
|
+
*/
|
|
11
|
+
readonly imageName: string;
|
|
12
|
+
/**
|
|
13
|
+
* The version of the Amazon-managed image
|
|
14
|
+
*
|
|
15
|
+
* @default x.x.x
|
|
16
|
+
*/
|
|
17
|
+
readonly imageVersion?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Options for selecting a predefined Amazon-managed image
|
|
21
|
+
*/
|
|
22
|
+
export interface AmazonManagedImageOptions {
|
|
23
|
+
/**
|
|
24
|
+
* The architecture of the Amazon-managed image
|
|
25
|
+
*/
|
|
26
|
+
readonly imageArchitecture: ImageArchitecture;
|
|
27
|
+
/**
|
|
28
|
+
* The type of the Amazon-managed image
|
|
29
|
+
*/
|
|
30
|
+
readonly imageType: ImageType;
|
|
31
|
+
/**
|
|
32
|
+
* The version of the Amazon-managed image
|
|
33
|
+
*
|
|
34
|
+
* @default x.x.x
|
|
35
|
+
*/
|
|
36
|
+
readonly imageVersion?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Helper class for working with Amazon-managed images
|
|
40
|
+
*/
|
|
41
|
+
export declare class AmazonManagedImage {
|
|
42
|
+
/**
|
|
43
|
+
* Imports the Amazon Linux 2 Amazon-managed image
|
|
44
|
+
*
|
|
45
|
+
* @param scope The construct scope
|
|
46
|
+
* @param id Identifier of the construct
|
|
47
|
+
* @param opts The Amazon-managed image attributes
|
|
48
|
+
*
|
|
49
|
+
* @see https://docs.aws.amazon.com/linux/al2/ug/index.html
|
|
50
|
+
* @see https://gallery.ecr.aws/amazonlinux/amazonlinux
|
|
51
|
+
*/
|
|
52
|
+
static amazonLinux2(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
53
|
+
/**
|
|
54
|
+
* Imports the Amazon Linux 2023 Amazon-managed image
|
|
55
|
+
*
|
|
56
|
+
* @param scope The construct scope
|
|
57
|
+
* @param id Identifier of the construct
|
|
58
|
+
* @param opts The Amazon-managed image attributes
|
|
59
|
+
*
|
|
60
|
+
* @see https://docs.aws.amazon.com/linux/al2023/ug/what-is-amazon-linux.html
|
|
61
|
+
* @see https://gallery.ecr.aws/amazonlinux/amazonlinux
|
|
62
|
+
*/
|
|
63
|
+
static amazonLinux2023(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
64
|
+
/**
|
|
65
|
+
* Imports the Red Hat Enterprise Linux 10 Amazon-managed image
|
|
66
|
+
*
|
|
67
|
+
* @param scope The construct scope
|
|
68
|
+
* @param id Identifier of the construct
|
|
69
|
+
* @param opts The Amazon-managed image attributes
|
|
70
|
+
*
|
|
71
|
+
* @see https://aws.amazon.com/partners/redhat/faqs
|
|
72
|
+
*/
|
|
73
|
+
static redHatEnterpriseLinux10(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
74
|
+
/**
|
|
75
|
+
* Imports the SUSE Linux Enterprise Server 15 Amazon-managed image
|
|
76
|
+
*
|
|
77
|
+
* @param scope The construct scope
|
|
78
|
+
* @param id Identifier of the construct
|
|
79
|
+
* @param opts The Amazon-managed image attributes
|
|
80
|
+
*
|
|
81
|
+
* @see https://aws.amazon.com/linux/commercial-linux/faqs/
|
|
82
|
+
*/
|
|
83
|
+
static suseLinuxEnterpriseServer15(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
84
|
+
/**
|
|
85
|
+
* Imports the Ubuntu 22.04 Amazon-managed image
|
|
86
|
+
*
|
|
87
|
+
* @param scope The construct scope
|
|
88
|
+
* @param id Identifier of the construct
|
|
89
|
+
* @param opts The Amazon-managed image attributes
|
|
90
|
+
*
|
|
91
|
+
* @see https://documentation.ubuntu.com/aws
|
|
92
|
+
* @see https://hub.docker.com/_/ubuntu
|
|
93
|
+
*/
|
|
94
|
+
static ubuntuServer2204(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
95
|
+
/**
|
|
96
|
+
* Imports the Ubuntu 24.04 Amazon-managed image
|
|
97
|
+
*
|
|
98
|
+
* @param scope The construct scope
|
|
99
|
+
* @param id Identifier of the construct
|
|
100
|
+
* @param opts The Amazon-managed image attributes
|
|
101
|
+
*
|
|
102
|
+
* @see https://documentation.ubuntu.com/aws
|
|
103
|
+
* @see https://hub.docker.com/_/ubuntu
|
|
104
|
+
*/
|
|
105
|
+
static ubuntuServer2404(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
106
|
+
/**
|
|
107
|
+
* Imports the Windows Server 2016 Core Amazon-managed image
|
|
108
|
+
*
|
|
109
|
+
* @param scope The construct scope
|
|
110
|
+
* @param id Identifier of the construct
|
|
111
|
+
* @param opts The Amazon-managed image attributes
|
|
112
|
+
*
|
|
113
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
114
|
+
* @see https://hub.docker.com/r/microsoft/windows-servercore
|
|
115
|
+
*/
|
|
116
|
+
static windowsServer2016Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
117
|
+
/**
|
|
118
|
+
* Imports the Windows Server 2016 Full Amazon-managed image
|
|
119
|
+
*
|
|
120
|
+
* @param scope The construct scope
|
|
121
|
+
* @param id Identifier of the construct
|
|
122
|
+
* @param opts The Amazon-managed image attributes
|
|
123
|
+
*
|
|
124
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
125
|
+
*/
|
|
126
|
+
static windowsServer2016Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
127
|
+
/**
|
|
128
|
+
* Imports the Windows Server 2019 Core Amazon-managed image
|
|
129
|
+
*
|
|
130
|
+
* @param scope The construct scope
|
|
131
|
+
* @param id Identifier of the construct
|
|
132
|
+
* @param opts The Amazon-managed image attributes
|
|
133
|
+
*
|
|
134
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
135
|
+
* @see https://hub.docker.com/r/microsoft/windows-servercore
|
|
136
|
+
*/
|
|
137
|
+
static windowsServer2019Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
138
|
+
/**
|
|
139
|
+
* Imports the Windows Server 2019 Full Amazon-managed image
|
|
140
|
+
*
|
|
141
|
+
* @param scope The construct scope
|
|
142
|
+
* @param id Identifier of the construct
|
|
143
|
+
* @param opts The Amazon-managed image attributes
|
|
144
|
+
*
|
|
145
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
146
|
+
*/
|
|
147
|
+
static windowsServer2019Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
148
|
+
/**
|
|
149
|
+
* Imports the Windows Server 2022 Core Amazon-managed image
|
|
150
|
+
*
|
|
151
|
+
* @param scope The construct scope
|
|
152
|
+
* @param id Identifier of the construct
|
|
153
|
+
* @param opts The Amazon-managed image attributes
|
|
154
|
+
*
|
|
155
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
156
|
+
*/
|
|
157
|
+
static windowsServer2022Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
158
|
+
/**
|
|
159
|
+
* Imports the Windows Server 2022 Full Amazon-managed image
|
|
160
|
+
*
|
|
161
|
+
* @param scope The construct scope
|
|
162
|
+
* @param id Identifier of the construct
|
|
163
|
+
* @param opts The Amazon-managed image attributes
|
|
164
|
+
*
|
|
165
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
166
|
+
*/
|
|
167
|
+
static windowsServer2022Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
168
|
+
/**
|
|
169
|
+
* Imports the Windows Server 2025 Core Amazon-managed image
|
|
170
|
+
*
|
|
171
|
+
* @param scope The construct scope
|
|
172
|
+
* @param id Identifier of the construct
|
|
173
|
+
* @param opts The Amazon-managed image attributes
|
|
174
|
+
*
|
|
175
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
176
|
+
*/
|
|
177
|
+
static windowsServer2025Core(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
178
|
+
/**
|
|
179
|
+
* Imports the Windows Server 2025 Full Amazon-managed image
|
|
180
|
+
*
|
|
181
|
+
* @param scope The construct scope
|
|
182
|
+
* @param id Identifier of the construct
|
|
183
|
+
* @param opts The Amazon-managed image attributes
|
|
184
|
+
*
|
|
185
|
+
* @see https://docs.aws.amazon.com/ec2/latest/windows-ami-reference/index.html
|
|
186
|
+
*/
|
|
187
|
+
static windowsServer2025Full(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
188
|
+
/**
|
|
189
|
+
* Imports the macOS 14 Amazon-managed image
|
|
190
|
+
*
|
|
191
|
+
* @param scope The construct scope
|
|
192
|
+
* @param id Identifier of the construct
|
|
193
|
+
* @param opts The Amazon-managed image attributes
|
|
194
|
+
*
|
|
195
|
+
* @see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html
|
|
196
|
+
*/
|
|
197
|
+
static macOS14(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
198
|
+
/**
|
|
199
|
+
* Imports the macOS 15 Amazon-managed image
|
|
200
|
+
*
|
|
201
|
+
* @param scope The construct scope
|
|
202
|
+
* @param id Identifier of the construct
|
|
203
|
+
* @param opts The Amazon-managed image attributes
|
|
204
|
+
*
|
|
205
|
+
* @see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-mac-instances.html
|
|
206
|
+
*/
|
|
207
|
+
static macOS15(scope: Construct, id: string, opts: AmazonManagedImageOptions): IImage;
|
|
208
|
+
/**
|
|
209
|
+
* Imports an Amazon-managed image from its attributes
|
|
210
|
+
*
|
|
211
|
+
* @param scope The construct scope
|
|
212
|
+
* @param id Identifier of the construct
|
|
213
|
+
* @param attrs - The Amazon-managed image attributes
|
|
214
|
+
*/
|
|
215
|
+
static fromAmazonManagedImageAttributes(scope: Construct, id: string, attrs: AmazonManagedImageAttributes): IImage;
|
|
216
|
+
/**
|
|
217
|
+
* Imports an Amazon-managed image from its name
|
|
218
|
+
*
|
|
219
|
+
* @param scope The construct scope
|
|
220
|
+
* @param id Identifier of the construct
|
|
221
|
+
* @param amazonManagedImageName - The name of the Amazon-managed image
|
|
222
|
+
*/
|
|
223
|
+
static fromAmazonManagedImageName(scope: Construct, id: string, amazonManagedImageName: string): IImage;
|
|
224
|
+
private static readonly AMAZON_LINUX_2_CONFIG;
|
|
225
|
+
private static readonly AMAZON_LINUX_2023_CONFIG;
|
|
226
|
+
private static readonly RED_HAT_ENTERPRISE_LINUX_10_CONFIG;
|
|
227
|
+
private static readonly SUSE_LINUX_ENTERPRISE_SERVER_15_CONFIG;
|
|
228
|
+
private static readonly UBUNTU_SERVER_22_04_CONFIG;
|
|
229
|
+
private static readonly UBUNTU_SERVER_24_04_CONFIG;
|
|
230
|
+
private static readonly WINDOWS_SERVER_2016_CORE_CONFIG;
|
|
231
|
+
private static readonly WINDOWS_SERVER_2016_FULL_CONFIG;
|
|
232
|
+
private static readonly WINDOWS_SERVER_2019_CORE_CONFIG;
|
|
233
|
+
private static readonly WINDOWS_SERVER_2019_FULL_CONFIG;
|
|
234
|
+
private static readonly WINDOWS_SERVER_2022_CORE_CONFIG;
|
|
235
|
+
private static readonly WINDOWS_SERVER_2022_FULL_CONFIG;
|
|
236
|
+
private static readonly WINDOWS_SERVER_2025_CORE_CONFIG;
|
|
237
|
+
private static readonly WINDOWS_SERVER_2025_FULL_CONFIG;
|
|
238
|
+
private static readonly MACOS_14_CONFIG;
|
|
239
|
+
private static readonly MACOS_15_CONFIG;
|
|
240
|
+
private static validatePredefinedManagedImageOptions;
|
|
241
|
+
private static predefinedManagedImage;
|
|
242
|
+
}
|