@aws-sdk/client-imagebuilder 3.42.0 → 3.43.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +54 -0
- package/dist-es/protocols/Aws_restJson1.js +53 -1
- package/dist-types/Imagebuilder.d.ts +2 -2
- package/dist-types/commands/DeleteImageCommand.d.ts +1 -1
- package/dist-types/commands/PutContainerRecipePolicyCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +15 -5
- package/dist-types/ts3.4/models/models_0.d.ts +4 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-imagebuilder
|
|
@@ -6897,6 +6897,14 @@ const serializeAws_restJson1InstanceTypeList = (input, context) => {
|
|
|
6897
6897
|
};
|
|
6898
6898
|
const serializeAws_restJson1LaunchPermissionConfiguration = (input, context) => {
|
|
6899
6899
|
return {
|
|
6900
|
+
...(input.organizationArns !== undefined &&
|
|
6901
|
+
input.organizationArns !== null && {
|
|
6902
|
+
organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
|
|
6903
|
+
}),
|
|
6904
|
+
...(input.organizationalUnitArns !== undefined &&
|
|
6905
|
+
input.organizationalUnitArns !== null && {
|
|
6906
|
+
organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
|
|
6907
|
+
}),
|
|
6900
6908
|
...(input.userGroups !== undefined &&
|
|
6901
6909
|
input.userGroups !== null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) }),
|
|
6902
6910
|
...(input.userIds !== undefined &&
|
|
@@ -6938,6 +6946,26 @@ const serializeAws_restJson1Logging = (input, context) => {
|
|
|
6938
6946
|
input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }),
|
|
6939
6947
|
};
|
|
6940
6948
|
};
|
|
6949
|
+
const serializeAws_restJson1OrganizationalUnitArnList = (input, context) => {
|
|
6950
|
+
return input
|
|
6951
|
+
.filter((e) => e != null)
|
|
6952
|
+
.map((entry) => {
|
|
6953
|
+
if (entry === null) {
|
|
6954
|
+
return null;
|
|
6955
|
+
}
|
|
6956
|
+
return entry;
|
|
6957
|
+
});
|
|
6958
|
+
};
|
|
6959
|
+
const serializeAws_restJson1OrganizationArnList = (input, context) => {
|
|
6960
|
+
return input
|
|
6961
|
+
.filter((e) => e != null)
|
|
6962
|
+
.map((entry) => {
|
|
6963
|
+
if (entry === null) {
|
|
6964
|
+
return null;
|
|
6965
|
+
}
|
|
6966
|
+
return entry;
|
|
6967
|
+
});
|
|
6968
|
+
};
|
|
6941
6969
|
const serializeAws_restJson1OsVersionList = (input, context) => {
|
|
6942
6970
|
return input
|
|
6943
6971
|
.filter((e) => e != null)
|
|
@@ -7707,6 +7735,12 @@ const deserializeAws_restJson1InstanceTypeList = (output, context) => {
|
|
|
7707
7735
|
};
|
|
7708
7736
|
const deserializeAws_restJson1LaunchPermissionConfiguration = (output, context) => {
|
|
7709
7737
|
return {
|
|
7738
|
+
organizationArns: output.organizationArns !== undefined && output.organizationArns !== null
|
|
7739
|
+
? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
|
|
7740
|
+
: undefined,
|
|
7741
|
+
organizationalUnitArns: output.organizationalUnitArns !== undefined && output.organizationalUnitArns !== null
|
|
7742
|
+
? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
|
|
7743
|
+
: undefined,
|
|
7710
7744
|
userGroups: output.userGroups !== undefined && output.userGroups !== null
|
|
7711
7745
|
? deserializeAws_restJson1StringList(output.userGroups, context)
|
|
7712
7746
|
: undefined,
|
|
@@ -7749,6 +7783,26 @@ const deserializeAws_restJson1Logging = (output, context) => {
|
|
|
7749
7783
|
: undefined,
|
|
7750
7784
|
};
|
|
7751
7785
|
};
|
|
7786
|
+
const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
|
|
7787
|
+
return (output || [])
|
|
7788
|
+
.filter((e) => e != null)
|
|
7789
|
+
.map((entry) => {
|
|
7790
|
+
if (entry === null) {
|
|
7791
|
+
return null;
|
|
7792
|
+
}
|
|
7793
|
+
return smithy_client_1.expectString(entry);
|
|
7794
|
+
});
|
|
7795
|
+
};
|
|
7796
|
+
const deserializeAws_restJson1OrganizationArnList = (output, context) => {
|
|
7797
|
+
return (output || [])
|
|
7798
|
+
.filter((e) => e != null)
|
|
7799
|
+
.map((entry) => {
|
|
7800
|
+
if (entry === null) {
|
|
7801
|
+
return null;
|
|
7802
|
+
}
|
|
7803
|
+
return smithy_client_1.expectString(entry);
|
|
7804
|
+
});
|
|
7805
|
+
};
|
|
7752
7806
|
const deserializeAws_restJson1OsVersionList = (output, context) => {
|
|
7753
7807
|
return (output || [])
|
|
7754
7808
|
.filter((e) => e != null)
|
|
@@ -7581,7 +7581,13 @@ var serializeAws_restJson1InstanceTypeList = function (input, context) {
|
|
|
7581
7581
|
});
|
|
7582
7582
|
};
|
|
7583
7583
|
var serializeAws_restJson1LaunchPermissionConfiguration = function (input, context) {
|
|
7584
|
-
return __assign(__assign({}, (input.
|
|
7584
|
+
return __assign(__assign(__assign(__assign({}, (input.organizationArns !== undefined &&
|
|
7585
|
+
input.organizationArns !== null && {
|
|
7586
|
+
organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
|
|
7587
|
+
})), (input.organizationalUnitArns !== undefined &&
|
|
7588
|
+
input.organizationalUnitArns !== null && {
|
|
7589
|
+
organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
|
|
7590
|
+
})), (input.userGroups !== undefined &&
|
|
7585
7591
|
input.userGroups !== null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) })), (input.userIds !== undefined &&
|
|
7586
7592
|
input.userIds !== null && { userIds: serializeAws_restJson1AccountList(input.userIds, context) }));
|
|
7587
7593
|
};
|
|
@@ -7614,6 +7620,26 @@ var serializeAws_restJson1Logging = function (input, context) {
|
|
|
7614
7620
|
return __assign({}, (input.s3Logs !== undefined &&
|
|
7615
7621
|
input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }));
|
|
7616
7622
|
};
|
|
7623
|
+
var serializeAws_restJson1OrganizationalUnitArnList = function (input, context) {
|
|
7624
|
+
return input
|
|
7625
|
+
.filter(function (e) { return e != null; })
|
|
7626
|
+
.map(function (entry) {
|
|
7627
|
+
if (entry === null) {
|
|
7628
|
+
return null;
|
|
7629
|
+
}
|
|
7630
|
+
return entry;
|
|
7631
|
+
});
|
|
7632
|
+
};
|
|
7633
|
+
var serializeAws_restJson1OrganizationArnList = function (input, context) {
|
|
7634
|
+
return input
|
|
7635
|
+
.filter(function (e) { return e != null; })
|
|
7636
|
+
.map(function (entry) {
|
|
7637
|
+
if (entry === null) {
|
|
7638
|
+
return null;
|
|
7639
|
+
}
|
|
7640
|
+
return entry;
|
|
7641
|
+
});
|
|
7642
|
+
};
|
|
7617
7643
|
var serializeAws_restJson1OsVersionList = function (input, context) {
|
|
7618
7644
|
return input
|
|
7619
7645
|
.filter(function (e) { return e != null; })
|
|
@@ -8369,6 +8395,12 @@ var deserializeAws_restJson1InstanceTypeList = function (output, context) {
|
|
|
8369
8395
|
};
|
|
8370
8396
|
var deserializeAws_restJson1LaunchPermissionConfiguration = function (output, context) {
|
|
8371
8397
|
return {
|
|
8398
|
+
organizationArns: output.organizationArns !== undefined && output.organizationArns !== null
|
|
8399
|
+
? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
|
|
8400
|
+
: undefined,
|
|
8401
|
+
organizationalUnitArns: output.organizationalUnitArns !== undefined && output.organizationalUnitArns !== null
|
|
8402
|
+
? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
|
|
8403
|
+
: undefined,
|
|
8372
8404
|
userGroups: output.userGroups !== undefined && output.userGroups !== null
|
|
8373
8405
|
? deserializeAws_restJson1StringList(output.userGroups, context)
|
|
8374
8406
|
: undefined,
|
|
@@ -8411,6 +8443,26 @@ var deserializeAws_restJson1Logging = function (output, context) {
|
|
|
8411
8443
|
: undefined,
|
|
8412
8444
|
};
|
|
8413
8445
|
};
|
|
8446
|
+
var deserializeAws_restJson1OrganizationalUnitArnList = function (output, context) {
|
|
8447
|
+
return (output || [])
|
|
8448
|
+
.filter(function (e) { return e != null; })
|
|
8449
|
+
.map(function (entry) {
|
|
8450
|
+
if (entry === null) {
|
|
8451
|
+
return null;
|
|
8452
|
+
}
|
|
8453
|
+
return __expectString(entry);
|
|
8454
|
+
});
|
|
8455
|
+
};
|
|
8456
|
+
var deserializeAws_restJson1OrganizationArnList = function (output, context) {
|
|
8457
|
+
return (output || [])
|
|
8458
|
+
.filter(function (e) { return e != null; })
|
|
8459
|
+
.map(function (entry) {
|
|
8460
|
+
if (entry === null) {
|
|
8461
|
+
return null;
|
|
8462
|
+
}
|
|
8463
|
+
return __expectString(entry);
|
|
8464
|
+
});
|
|
8465
|
+
};
|
|
8414
8466
|
var deserializeAws_restJson1OsVersionList = function (output, context) {
|
|
8415
8467
|
return (output || [])
|
|
8416
8468
|
.filter(function (e) { return e != null; })
|
|
@@ -148,7 +148,7 @@ export declare class Imagebuilder extends ImagebuilderClient {
|
|
|
148
148
|
* </i>.</p>
|
|
149
149
|
* </li>
|
|
150
150
|
* <li>
|
|
151
|
-
* <p>To delete a container image from Amazon ECR, see <a href="https://docs.aws.amazon.com/
|
|
151
|
+
* <p>To delete a container image from Amazon ECR, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html">Deleting
|
|
152
152
|
* an image</a> in the <i>Amazon ECR User Guide</i>.</p>
|
|
153
153
|
* </li>
|
|
154
154
|
* </ul>
|
|
@@ -345,7 +345,7 @@ export declare class Imagebuilder extends ImagebuilderClient {
|
|
|
345
345
|
putComponentPolicy(args: PutComponentPolicyCommandInput, cb: (err: any, data?: PutComponentPolicyCommandOutput) => void): void;
|
|
346
346
|
putComponentPolicy(args: PutComponentPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutComponentPolicyCommandOutput) => void): void;
|
|
347
347
|
/**
|
|
348
|
-
* <p>Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com
|
|
348
|
+
* <p>Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API <code>PutContainerImagePolicy</code>, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.</p>
|
|
349
349
|
*/
|
|
350
350
|
putContainerRecipePolicy(args: PutContainerRecipePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutContainerRecipePolicyCommandOutput>;
|
|
351
351
|
putContainerRecipePolicy(args: PutContainerRecipePolicyCommandInput, cb: (err: any, data?: PutContainerRecipePolicyCommandOutput) => void): void;
|
|
@@ -24,7 +24,7 @@ export interface DeleteImageCommandOutput extends DeleteImageResponse, __Metadat
|
|
|
24
24
|
* </i>.</p>
|
|
25
25
|
* </li>
|
|
26
26
|
* <li>
|
|
27
|
-
* <p>To delete a container image from Amazon ECR, see <a href="https://docs.aws.amazon.com/
|
|
27
|
+
* <p>To delete a container image from Amazon ECR, see <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/delete_image.html">Deleting
|
|
28
28
|
* an image</a> in the <i>Amazon ECR User Guide</i>.</p>
|
|
29
29
|
* </li>
|
|
30
30
|
* </ul>
|
|
@@ -7,7 +7,7 @@ export interface PutContainerRecipePolicyCommandInput extends PutContainerRecipe
|
|
|
7
7
|
export interface PutContainerRecipePolicyCommandOutput extends PutContainerRecipePolicyResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com
|
|
10
|
+
* <p>Applies a policy to a container image. We recommend that you call the RAM API CreateResourceShare (https://docs.aws.amazon.com//ram/latest/APIReference/API_CreateResourceShare.html) to share resources. If you call the Image Builder API <code>PutContainerImagePolicy</code>, you must also call the RAM API PromoteResourceShareCreatedFromPolicy (https://docs.aws.amazon.com//ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html) in order for the resource to be visible to all principals with whom the resource is shared.</p>
|
|
11
11
|
* @example
|
|
12
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
13
|
* ```javascript
|
|
@@ -114,11 +114,11 @@ export declare namespace Ami {
|
|
|
114
114
|
const filterSensitiveLog: (obj: Ami) => any;
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
|
-
* <p>Describes the configuration for a launch permission. The launch permission modification
|
|
118
|
-
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html">Amazon EC2 ModifyImageAttribute</a>
|
|
117
|
+
* <p>Describes the configuration for a launch permission. The launch permission modification
|
|
118
|
+
* request is sent to the <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html">Amazon EC2 ModifyImageAttribute</a>
|
|
119
119
|
* API on behalf of the user for each Region they have selected to distribute the AMI. To make an AMI public,
|
|
120
|
-
* set the launch permission authorized accounts to <code>all</code>. See the examples for making an AMI
|
|
121
|
-
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html">Amazon EC2 ModifyImageAttribute</a>.</p>
|
|
120
|
+
* set the launch permission authorized accounts to <code>all</code>. See the examples for making an AMI
|
|
121
|
+
* public at <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyImageAttribute.html">Amazon EC2 ModifyImageAttribute</a>.</p>
|
|
122
122
|
*/
|
|
123
123
|
export interface LaunchPermissionConfiguration {
|
|
124
124
|
/**
|
|
@@ -129,6 +129,16 @@ export interface LaunchPermissionConfiguration {
|
|
|
129
129
|
* <p>The name of the group.</p>
|
|
130
130
|
*/
|
|
131
131
|
userGroups?: string[];
|
|
132
|
+
/**
|
|
133
|
+
* <p>The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see
|
|
134
|
+
* <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_introduction.html">What is Organizations?</a>.</p>
|
|
135
|
+
*/
|
|
136
|
+
organizationArns?: string[];
|
|
137
|
+
/**
|
|
138
|
+
* <p>The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more
|
|
139
|
+
* information about key concepts for Organizations, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_getting-started_concepts.html">Organizations terminology and concepts</a>.</p>
|
|
140
|
+
*/
|
|
141
|
+
organizationalUnitArns?: string[];
|
|
132
142
|
}
|
|
133
143
|
export declare namespace LaunchPermissionConfiguration {
|
|
134
144
|
/**
|
|
@@ -145,7 +155,7 @@ export interface AmiDistributionConfiguration {
|
|
|
145
155
|
*/
|
|
146
156
|
name?: string;
|
|
147
157
|
/**
|
|
148
|
-
* <p>The description of the distribution configuration. Minimum and maximum length are in characters.</p>
|
|
158
|
+
* <p>The description of the AMI distribution configuration. Minimum and maximum length are in characters.</p>
|
|
149
159
|
*/
|
|
150
160
|
description?: string;
|
|
151
161
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-imagebuilder",
|
|
3
3
|
"description": "AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.43.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.43.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.40.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.41.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.40.0",
|