@aws-cdk/aws-imagebuilder-alpha 2.227.0-alpha.0 → 2.229.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.
@@ -0,0 +1,119 @@
1
+ import * as ecr from 'aws-cdk-lib/aws-ecr';
2
+ import * as ssm from 'aws-cdk-lib/aws-ssm';
3
+ /**
4
+ * Represents a base image that is used to start from in EC2 Image Builder image builds
5
+ */
6
+ export declare class BaseImage {
7
+ /**
8
+ * The AMI ID to use as a base image in an image recipe
9
+ *
10
+ * @param amiId The AMI ID to use as the base image
11
+ */
12
+ static fromAmiId(amiId: string): BaseImage;
13
+ /**
14
+ * The marketplace product ID for an AMI product to use as the base image in an image recipe
15
+ *
16
+ * @param productId The Marketplace AMI product ID to use as the base image
17
+ */
18
+ static fromMarketplaceProductId(productId: string): BaseImage;
19
+ /**
20
+ * The SSM parameter to use as the base image in an image recipe
21
+ *
22
+ * @param parameter The SSM parameter to use as the base image
23
+ */
24
+ static fromSsmParameter(parameter: ssm.IParameter): BaseImage;
25
+ /**
26
+ * The parameter name for the SSM parameter to use as the base image in an image recipe
27
+ *
28
+ * @param parameterName The name of the SSM parameter to use as the base image
29
+ */
30
+ static fromSsmParameterName(parameterName: string): BaseImage;
31
+ /**
32
+ * The direct string value of the base image to use in an image recipe. This can be an EC2 Image Builder image ARN,
33
+ * an SSM parameter, an AWS Marketplace product ID, or an AMI ID.
34
+ *
35
+ * @param baseImageString The base image as a direct string value
36
+ */
37
+ static fromString(baseImageString: string): BaseImage;
38
+ /**
39
+ * The rendered base image to use
40
+ **/
41
+ readonly image: string;
42
+ protected constructor(image: string);
43
+ }
44
+ /**
45
+ * Represents a base image that is used to start from in EC2 Image Builder image builds
46
+ */
47
+ export declare class BaseContainerImage {
48
+ /**
49
+ * The DockerHub image to use as the base image in a container recipe
50
+ *
51
+ * @param repository The DockerHub repository where the base image resides in
52
+ * @param tag The tag of the base image in the DockerHub repository
53
+ */
54
+ static fromDockerHub(repository: string, tag: string): BaseContainerImage;
55
+ /**
56
+ * The ECR container image to use as the base image in a container recipe
57
+ *
58
+ * @param repository The ECR repository where the base image resides in
59
+ * @param tag The tag of the base image in the ECR repository
60
+ */
61
+ static fromEcr(repository: ecr.IRepository, tag: string): BaseContainerImage;
62
+ /**
63
+ * The ECR public container image to use as the base image in a container recipe
64
+ *
65
+ * @param registryAlias The alias of the ECR public registry where the base image resides in
66
+ * @param repositoryName The name of the ECR public repository, where the base image resides in
67
+ * @param tag The tag of the base image in the ECR public repository
68
+ */
69
+ static fromEcrPublic(registryAlias: string, repositoryName: string, tag: string): BaseContainerImage;
70
+ /**
71
+ * The string value of the base image to use in a container recipe. This can be an EC2 Image Builder image ARN,
72
+ * an ECR or ECR public image, or a container URI sourced from a third-party container registry such as DockerHub.
73
+ *
74
+ * @param baseContainerImageString The base image as a direct string value
75
+ */
76
+ static fromString(baseContainerImageString: string): BaseContainerImage;
77
+ /**
78
+ * The rendered base image to use
79
+ **/
80
+ readonly image: string;
81
+ protected constructor(image: string);
82
+ }
83
+ /**
84
+ * Represents a container instance image that is used to launch the instance used for building the container for an
85
+ * EC2 Image Builder container build.
86
+ */
87
+ export declare class ContainerInstanceImage {
88
+ /**
89
+ * The AMI ID to use to launch the instance for building the container image
90
+ *
91
+ * @param amiId The AMI ID to use as the container instance image
92
+ */
93
+ static fromAmiId(amiId: string): ContainerInstanceImage;
94
+ /**
95
+ * The SSM parameter to use to launch the instance for building the container image
96
+ *
97
+ * @param parameter The SSM parameter to use as the container instance image
98
+ */
99
+ static fromSsmParameter(parameter: ssm.IStringParameter): ContainerInstanceImage;
100
+ /**
101
+ * The ARN of the SSM parameter used to launch the instance for building the container image
102
+ *
103
+ * @param parameterName The name of the SSM parameter used as the container instance image
104
+ */
105
+ static fromSsmParameterName(parameterName: string): ContainerInstanceImage;
106
+ /**
107
+ * The string value of the container instance image to use in a container recipe. This can either be:
108
+ * - an SSM parameter reference, prefixed with `ssm:` and followed by the parameter name or ARN
109
+ * - an AMI ID
110
+ *
111
+ * @param containerInstanceImageString The container instance image as a direct string value
112
+ */
113
+ static fromString(containerInstanceImageString: string): ContainerInstanceImage;
114
+ /**
115
+ * The rendered container instance image to use
116
+ **/
117
+ readonly image: string;
118
+ protected constructor(image: string);
119
+ }
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerInstanceImage = exports.BaseContainerImage = exports.BaseImage = void 0;
4
+ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
5
+ /**
6
+ * Represents a base image that is used to start from in EC2 Image Builder image builds
7
+ */
8
+ class BaseImage {
9
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.BaseImage", version: "2.229.0-alpha.0" };
10
+ /**
11
+ * The AMI ID to use as a base image in an image recipe
12
+ *
13
+ * @param amiId The AMI ID to use as the base image
14
+ */
15
+ static fromAmiId(amiId) {
16
+ return new BaseImage(amiId);
17
+ }
18
+ /**
19
+ * The marketplace product ID for an AMI product to use as the base image in an image recipe
20
+ *
21
+ * @param productId The Marketplace AMI product ID to use as the base image
22
+ */
23
+ static fromMarketplaceProductId(productId) {
24
+ return new BaseImage(productId);
25
+ }
26
+ /**
27
+ * The SSM parameter to use as the base image in an image recipe
28
+ *
29
+ * @param parameter The SSM parameter to use as the base image
30
+ */
31
+ static fromSsmParameter(parameter) {
32
+ return new BaseImage(`ssm:${parameter.parameterArn}`);
33
+ }
34
+ /**
35
+ * The parameter name for the SSM parameter to use as the base image in an image recipe
36
+ *
37
+ * @param parameterName The name of the SSM parameter to use as the base image
38
+ */
39
+ static fromSsmParameterName(parameterName) {
40
+ return new BaseImage(`ssm:${parameterName}`);
41
+ }
42
+ /**
43
+ * The direct string value of the base image to use in an image recipe. This can be an EC2 Image Builder image ARN,
44
+ * an SSM parameter, an AWS Marketplace product ID, or an AMI ID.
45
+ *
46
+ * @param baseImageString The base image as a direct string value
47
+ */
48
+ static fromString(baseImageString) {
49
+ return new BaseImage(baseImageString);
50
+ }
51
+ /**
52
+ * The rendered base image to use
53
+ **/
54
+ image;
55
+ constructor(image) {
56
+ this.image = image;
57
+ }
58
+ }
59
+ exports.BaseImage = BaseImage;
60
+ /**
61
+ * Represents a base image that is used to start from in EC2 Image Builder image builds
62
+ */
63
+ class BaseContainerImage {
64
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.BaseContainerImage", version: "2.229.0-alpha.0" };
65
+ /**
66
+ * The DockerHub image to use as the base image in a container recipe
67
+ *
68
+ * @param repository The DockerHub repository where the base image resides in
69
+ * @param tag The tag of the base image in the DockerHub repository
70
+ */
71
+ static fromDockerHub(repository, tag) {
72
+ return new BaseContainerImage(`${repository}:${tag}`);
73
+ }
74
+ /**
75
+ * The ECR container image to use as the base image in a container recipe
76
+ *
77
+ * @param repository The ECR repository where the base image resides in
78
+ * @param tag The tag of the base image in the ECR repository
79
+ */
80
+ static fromEcr(repository, tag) {
81
+ return new BaseContainerImage(repository.repositoryUriForTag(tag));
82
+ }
83
+ /**
84
+ * The ECR public container image to use as the base image in a container recipe
85
+ *
86
+ * @param registryAlias The alias of the ECR public registry where the base image resides in
87
+ * @param repositoryName The name of the ECR public repository, where the base image resides in
88
+ * @param tag The tag of the base image in the ECR public repository
89
+ */
90
+ static fromEcrPublic(registryAlias, repositoryName, tag) {
91
+ return new BaseContainerImage(`public.ecr.aws/${registryAlias}/${repositoryName}:${tag}`);
92
+ }
93
+ /**
94
+ * The string value of the base image to use in a container recipe. This can be an EC2 Image Builder image ARN,
95
+ * an ECR or ECR public image, or a container URI sourced from a third-party container registry such as DockerHub.
96
+ *
97
+ * @param baseContainerImageString The base image as a direct string value
98
+ */
99
+ static fromString(baseContainerImageString) {
100
+ return new BaseContainerImage(baseContainerImageString);
101
+ }
102
+ /**
103
+ * The rendered base image to use
104
+ **/
105
+ image;
106
+ constructor(image) {
107
+ this.image = image;
108
+ }
109
+ }
110
+ exports.BaseContainerImage = BaseContainerImage;
111
+ /**
112
+ * Represents a container instance image that is used to launch the instance used for building the container for an
113
+ * EC2 Image Builder container build.
114
+ */
115
+ class ContainerInstanceImage {
116
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ContainerInstanceImage", version: "2.229.0-alpha.0" };
117
+ /**
118
+ * The AMI ID to use to launch the instance for building the container image
119
+ *
120
+ * @param amiId The AMI ID to use as the container instance image
121
+ */
122
+ static fromAmiId(amiId) {
123
+ return new ContainerInstanceImage(amiId);
124
+ }
125
+ /**
126
+ * The SSM parameter to use to launch the instance for building the container image
127
+ *
128
+ * @param parameter The SSM parameter to use as the container instance image
129
+ */
130
+ static fromSsmParameter(parameter) {
131
+ return new ContainerInstanceImage(`ssm:${parameter.parameterArn}`);
132
+ }
133
+ /**
134
+ * The ARN of the SSM parameter used to launch the instance for building the container image
135
+ *
136
+ * @param parameterName The name of the SSM parameter used as the container instance image
137
+ */
138
+ static fromSsmParameterName(parameterName) {
139
+ return new ContainerInstanceImage(`ssm:${parameterName}`);
140
+ }
141
+ /**
142
+ * The string value of the container instance image to use in a container recipe. This can either be:
143
+ * - an SSM parameter reference, prefixed with `ssm:` and followed by the parameter name or ARN
144
+ * - an AMI ID
145
+ *
146
+ * @param containerInstanceImageString The container instance image as a direct string value
147
+ */
148
+ static fromString(containerInstanceImageString) {
149
+ return new ContainerInstanceImage(containerInstanceImageString);
150
+ }
151
+ /**
152
+ * The rendered container instance image to use
153
+ **/
154
+ image;
155
+ constructor(image) {
156
+ this.image = image;
157
+ }
158
+ }
159
+ exports.ContainerInstanceImage = ContainerInstanceImage;
160
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1pbWFnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImJhc2UtaW1hZ2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5nc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gaW4gYSBjb250YWluZXIgcmVjaXBlLiBUaGlzIGNhbiBlaXRoZXIgYmU6XG4gICAqIC0gYW4gU1NNIHBhcmFtZXRlciByZWZlcmVuY2UsIHByZWZpeGVkIHdpdGggYHNzbTpgIGFuZCBmb2xsb3dlZCBieSB0aGUgcGFyYW1ldGVyIG5hbWUgb3IgQVJOXG4gICAqIC0gYW4gQU1JIElEXG4gICAqXG4gICAqIEBwYXJhbSBjb250YWluZXJJbnN0YW5jZUltYWdlU3RyaW5nIFRoZSBjb250YWluZXIgaW5zdGFuY2UgaW1hZ2UgYXMgYSBkaXJlY3Qgc3RyaW5nIHZhbHVlXG4gICAqL1xuICBwdWJsaWMgc3RhdGljIGZyb21TdHJpbmcoY29udGFpbmVySW5zdGFuY2VJbWFnZVN0cmluZzogc3RyaW5nKTogQ29udGFpbmVySW5zdGFuY2VJbWFnZSB7XG4gICAgcmV0dXJuIG5ldyBDb250YWluZXJJbnN0YW5jZUltYWdlKGNvbnRhaW5lckluc3RhbmNlSW1hZ2VTdHJpbmcpO1xuICB9XG5cbiAgLyoqXG4gICAqIFRoZSByZW5kZXJlZCBjb250YWluZXIgaW5zdGFuY2UgaW1hZ2UgdG8gdXNlXG4gICAqKi9cbiAgcHVibGljIHJlYWRvbmx5IGltYWdlOiBzdHJpbmc7XG5cbiAgcHJvdGVjdGVkIGNvbnN0cnVjdG9yKGltYWdlOiBzdHJpbmcpIHtcbiAgICB0aGlzLmltYWdlID0gaW1hZ2U7XG4gIH1cbn1cbiJdfQ==
package/lib/component.js CHANGED
@@ -51,7 +51,7 @@ const LATEST_VERSION = 'x.x.x';
51
51
  * The value of a constant in a component document
52
52
  */
53
53
  class ComponentConstantValue {
54
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentConstantValue", version: "2.227.0-alpha.0" };
54
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentConstantValue", version: "2.229.0-alpha.0" };
55
55
  /**
56
56
  * Creates a string type constant in a component document
57
57
  *
@@ -268,7 +268,7 @@ var ComponentSchemaVersion;
268
268
  * Represents the inputs for a step in the component document
269
269
  */
270
270
  class ComponentStepInputs {
271
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentStepInputs", version: "2.227.0-alpha.0" };
271
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentStepInputs", version: "2.229.0-alpha.0" };
272
272
  /**
273
273
  * Creates the input value from an object, for the component step
274
274
  *
@@ -298,7 +298,7 @@ exports.ComponentStepInputs = ComponentStepInputs;
298
298
  * Represents an `if` condition in the component document
299
299
  */
300
300
  class ComponentStepIfCondition {
301
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentStepIfCondition", version: "2.227.0-alpha.0" };
301
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentStepIfCondition", version: "2.229.0-alpha.0" };
302
302
  /**
303
303
  * Creates the `if` value from an object, for the component step
304
304
  *
@@ -320,7 +320,7 @@ exports.ComponentStepIfCondition = ComponentStepIfCondition;
320
320
  * Helper class for referencing and uploading component data
321
321
  */
322
322
  class ComponentData {
323
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentData", version: "2.227.0-alpha.0" };
323
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.ComponentData", version: "2.229.0-alpha.0" };
324
324
  /**
325
325
  * Uploads component data from a local file to S3 to use as the component data
326
326
  *
@@ -414,7 +414,7 @@ exports.ComponentData = ComponentData;
414
414
  * Helper class for S3-based component data references, containing additional permission grant methods on the S3 object
415
415
  */
416
416
  class S3ComponentData extends ComponentData {
417
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.S3ComponentData", version: "2.227.0-alpha.0" };
417
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.S3ComponentData", version: "2.229.0-alpha.0" };
418
418
  isS3Reference = true;
419
419
  bucket;
420
420
  key;
@@ -461,7 +461,7 @@ class S3ComponentDataFromAsset extends S3ComponentData {
461
461
  * Helper class for working with AWS-managed components
462
462
  */
463
463
  class AwsManagedComponent {
464
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.AwsManagedComponent", version: "2.227.0-alpha.0" };
464
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.AwsManagedComponent", version: "2.229.0-alpha.0" };
465
465
  /**
466
466
  * Imports the AWS CLI v2 AWS-managed component
467
467
  *
@@ -728,7 +728,7 @@ exports.AwsManagedComponent = AwsManagedComponent;
728
728
  * Helper class for working with AWS Marketplace components
729
729
  */
730
730
  class AwsMarketplaceComponent {
731
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.AwsMarketplaceComponent", version: "2.227.0-alpha.0" };
731
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.AwsMarketplaceComponent", version: "2.229.0-alpha.0" };
732
732
  /**
733
733
  * Imports an AWS Marketplace component from its attributes
734
734
  *
@@ -801,7 +801,7 @@ let Component = (() => {
801
801
  Component = _classThis = _classDescriptor.value;
802
802
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
803
803
  }
804
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.Component", version: "2.227.0-alpha.0" };
804
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/aws-imagebuilder-alpha.Component", version: "2.229.0-alpha.0" };
805
805
  /** Uniquely identifies this class. */
806
806
  static PROPERTY_INJECTION_ID = '@aws-cdk.aws-imagebuilder-alpha.Component';
807
807
  /**