Skip to content

Commit ac6ffdf

Browse files
author
awstools
committed
feat(client-imagebuilder): Version ARNs are no longer required for the EC2 Image Builder list-image-build-version, list-component-build-version, and list-workflow-build-version APIs. Calling these APIs without the ARN returns all build versions for the given resource type in the requesting account.
1 parent 8a8db62 commit ac6ffdf

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

clients/client-imagebuilder/src/Imagebuilder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,7 @@ export interface Imagebuilder {
10571057
/**
10581058
* @see {@link ListComponentBuildVersionsCommand}
10591059
*/
1060+
listComponentBuildVersions(): Promise<ListComponentBuildVersionsCommandOutput>;
10601061
listComponentBuildVersions(
10611062
args: ListComponentBuildVersionsCommandInput,
10621063
options?: __HttpHandlerOptions
@@ -1125,6 +1126,7 @@ export interface Imagebuilder {
11251126
/**
11261127
* @see {@link ListImageBuildVersionsCommand}
11271128
*/
1129+
listImageBuildVersions(): Promise<ListImageBuildVersionsCommandOutput>;
11281130
listImageBuildVersions(
11291131
args: ListImageBuildVersionsCommandInput,
11301132
options?: __HttpHandlerOptions
@@ -1365,6 +1367,7 @@ export interface Imagebuilder {
13651367
/**
13661368
* @see {@link ListWorkflowBuildVersionsCommand}
13671369
*/
1370+
listWorkflowBuildVersions(): Promise<ListWorkflowBuildVersionsCommandOutput>;
13681371
listWorkflowBuildVersions(
13691372
args: ListWorkflowBuildVersionsCommandInput,
13701373
options?: __HttpHandlerOptions

clients/client-imagebuilder/src/commands/ListComponentBuildVersionsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export interface ListComponentBuildVersionsCommandOutput extends ListComponentBu
3939
* const config = {}; // type is ImagebuilderClientConfig
4040
* const client = new ImagebuilderClient(config);
4141
* const input = { // ListComponentBuildVersionsRequest
42-
* componentVersionArn: "STRING_VALUE", // required
42+
* componentVersionArn: "STRING_VALUE",
4343
* maxResults: Number("int"),
4444
* nextToken: "STRING_VALUE",
4545
* };

clients/client-imagebuilder/src/commands/ListImageBuildVersionsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface ListImageBuildVersionsCommandOutput extends ListImageBuildVersi
3838
* const config = {}; // type is ImagebuilderClientConfig
3939
* const client = new ImagebuilderClient(config);
4040
* const input = { // ListImageBuildVersionsRequest
41-
* imageVersionArn: "STRING_VALUE", // required
41+
* imageVersionArn: "STRING_VALUE",
4242
* filters: [ // FilterList
4343
* { // Filter
4444
* name: "STRING_VALUE",

clients/client-imagebuilder/src/commands/ListWorkflowBuildVersionsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface ListWorkflowBuildVersionsCommandOutput extends ListWorkflowBuil
3838
* const config = {}; // type is ImagebuilderClientConfig
3939
* const client = new ImagebuilderClient(config);
4040
* const input = { // ListWorkflowBuildVersionsRequest
41-
* workflowVersionArn: "STRING_VALUE", // required
41+
* workflowVersionArn: "STRING_VALUE",
4242
* maxResults: Number("int"),
4343
* nextToken: "STRING_VALUE",
4444
* };

clients/client-imagebuilder/src/models/models_0.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6068,7 +6068,7 @@ export interface ListComponentBuildVersionsRequest {
60686068
* list.</p>
60696069
* @public
60706070
*/
6071-
componentVersionArn: string | undefined;
6071+
componentVersionArn?: string | undefined;
60726072

60736073
/**
60746074
* <p>The maximum items to return in a request.</p>
@@ -6363,7 +6363,7 @@ export interface ListImageBuildVersionsRequest {
63636363
* retrieve.</p>
63646364
* @public
63656365
*/
6366-
imageVersionArn: string | undefined;
6366+
imageVersionArn?: string | undefined;
63676367

63686368
/**
63696369
* <p>Use the following filters to streamline results:</p>
@@ -8285,7 +8285,7 @@ export interface ListWorkflowBuildVersionsRequest {
82858285
* <p>The Amazon Resource Name (ARN) of the workflow resource for which to get a list of build versions.</p>
82868286
* @public
82878287
*/
8288-
workflowVersionArn: string | undefined;
8288+
workflowVersionArn?: string | undefined;
82898289

82908290
/**
82918291
* <p>The maximum items to return in a request.</p>

codegen/sdk-codegen/aws-models/imagebuilder.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8414,8 +8414,7 @@
84148414
"componentVersionArn": {
84158415
"target": "com.amazonaws.imagebuilder#ComponentVersionArn",
84168416
"traits": {
8417-
"smithy.api#documentation": "<p>The component version Amazon Resource Name (ARN) whose versions you want to\n\t\t\tlist.</p>",
8418-
"smithy.api#required": {}
8417+
"smithy.api#documentation": "<p>The component version Amazon Resource Name (ARN) whose versions you want to\n\t\t\tlist.</p>"
84198418
}
84208419
},
84218420
"maxResults": {
@@ -8826,8 +8825,7 @@
88268825
"imageVersionArn": {
88278826
"target": "com.amazonaws.imagebuilder#ImageVersionArn",
88288827
"traits": {
8829-
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the image whose build versions you want to\n\t\t\tretrieve.</p>",
8830-
"smithy.api#required": {}
8828+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the image whose build versions you want to\n\t\t\tretrieve.</p>"
88318829
}
88328830
},
88338831
"filters": {
@@ -10190,8 +10188,7 @@
1019010188
"workflowVersionArn": {
1019110189
"target": "com.amazonaws.imagebuilder#WorkflowWildcardVersionArn",
1019210190
"traits": {
10193-
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the workflow resource for which to get a list of build versions.</p>",
10194-
"smithy.api#required": {}
10191+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the workflow resource for which to get a list of build versions.</p>"
1019510192
}
1019610193
},
1019710194
"maxResults": {

0 commit comments

Comments
 (0)