@aws-sdk/client-imagebuilder 3.315.0 → 3.316.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.
@@ -11,7 +11,7 @@ export const se_CancelImageCreationCommand = async (input, context) => {
11
11
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CancelImageCreation";
12
12
  let body;
13
13
  body = JSON.stringify(take(input, {
14
- clientToken: (_) => _ ?? generateIdempotencyToken(),
14
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
15
15
  imageBuildVersionArn: [],
16
16
  }));
17
17
  return new __HttpRequest({
@@ -33,7 +33,7 @@ export const se_CreateComponentCommand = async (input, context) => {
33
33
  let body;
34
34
  body = JSON.stringify(take(input, {
35
35
  changeDescription: [],
36
- clientToken: (_) => _ ?? generateIdempotencyToken(),
36
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
37
37
  data: [],
38
38
  description: [],
39
39
  kmsKeyId: [],
@@ -62,7 +62,7 @@ export const se_CreateContainerRecipeCommand = async (input, context) => {
62
62
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateContainerRecipe";
63
63
  let body;
64
64
  body = JSON.stringify(take(input, {
65
- clientToken: (_) => _ ?? generateIdempotencyToken(),
65
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
66
66
  components: (_) => _json(_),
67
67
  containerType: [],
68
68
  description: [],
@@ -97,7 +97,7 @@ export const se_CreateDistributionConfigurationCommand = async (input, context)
97
97
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDistributionConfiguration";
98
98
  let body;
99
99
  body = JSON.stringify(take(input, {
100
- clientToken: (_) => _ ?? generateIdempotencyToken(),
100
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
101
101
  description: [],
102
102
  distributions: (_) => _json(_),
103
103
  name: [],
@@ -121,7 +121,7 @@ export const se_CreateImageCommand = async (input, context) => {
121
121
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImage";
122
122
  let body;
123
123
  body = JSON.stringify(take(input, {
124
- clientToken: (_) => _ ?? generateIdempotencyToken(),
124
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
125
125
  containerRecipeArn: [],
126
126
  distributionConfigurationArn: [],
127
127
  enhancedImageMetadataEnabled: [],
@@ -149,7 +149,7 @@ export const se_CreateImagePipelineCommand = async (input, context) => {
149
149
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImagePipeline";
150
150
  let body;
151
151
  body = JSON.stringify(take(input, {
152
- clientToken: (_) => _ ?? generateIdempotencyToken(),
152
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
153
153
  containerRecipeArn: [],
154
154
  description: [],
155
155
  distributionConfigurationArn: [],
@@ -183,7 +183,7 @@ export const se_CreateImageRecipeCommand = async (input, context) => {
183
183
  body = JSON.stringify(take(input, {
184
184
  additionalInstanceConfiguration: (_) => _json(_),
185
185
  blockDeviceMappings: (_) => _json(_),
186
- clientToken: (_) => _ ?? generateIdempotencyToken(),
186
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
187
187
  components: (_) => _json(_),
188
188
  description: [],
189
189
  name: [],
@@ -210,7 +210,7 @@ export const se_CreateInfrastructureConfigurationCommand = async (input, context
210
210
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateInfrastructureConfiguration";
211
211
  let body;
212
212
  body = JSON.stringify(take(input, {
213
- clientToken: (_) => _ ?? generateIdempotencyToken(),
213
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
214
214
  description: [],
215
215
  instanceMetadataOptions: (_) => _json(_),
216
216
  instanceProfileName: [],
@@ -636,7 +636,7 @@ export const se_ImportComponentCommand = async (input, context) => {
636
636
  let body;
637
637
  body = JSON.stringify(take(input, {
638
638
  changeDescription: [],
639
- clientToken: (_) => _ ?? generateIdempotencyToken(),
639
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
640
640
  data: [],
641
641
  description: [],
642
642
  format: [],
@@ -666,7 +666,7 @@ export const se_ImportVmImageCommand = async (input, context) => {
666
666
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ImportVmImage";
667
667
  let body;
668
668
  body = JSON.stringify(take(input, {
669
- clientToken: (_) => _ ?? generateIdempotencyToken(),
669
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
670
670
  description: [],
671
671
  name: [],
672
672
  osVersion: [],
@@ -1131,7 +1131,7 @@ export const se_StartImagePipelineExecutionCommand = async (input, context) => {
1131
1131
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartImagePipelineExecution";
1132
1132
  let body;
1133
1133
  body = JSON.stringify(take(input, {
1134
- clientToken: (_) => _ ?? generateIdempotencyToken(),
1134
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1135
1135
  imagePipelineArn: [],
1136
1136
  }));
1137
1137
  return new __HttpRequest({
@@ -1196,7 +1196,7 @@ export const se_UpdateDistributionConfigurationCommand = async (input, context)
1196
1196
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateDistributionConfiguration";
1197
1197
  let body;
1198
1198
  body = JSON.stringify(take(input, {
1199
- clientToken: (_) => _ ?? generateIdempotencyToken(),
1199
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1200
1200
  description: [],
1201
1201
  distributionConfigurationArn: [],
1202
1202
  distributions: (_) => _json(_),
@@ -1219,7 +1219,7 @@ export const se_UpdateImagePipelineCommand = async (input, context) => {
1219
1219
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateImagePipeline";
1220
1220
  let body;
1221
1221
  body = JSON.stringify(take(input, {
1222
- clientToken: (_) => _ ?? generateIdempotencyToken(),
1222
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1223
1223
  containerRecipeArn: [],
1224
1224
  description: [],
1225
1225
  distributionConfigurationArn: [],
@@ -1250,7 +1250,7 @@ export const se_UpdateInfrastructureConfigurationCommand = async (input, context
1250
1250
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateInfrastructureConfiguration";
1251
1251
  let body;
1252
1252
  body = JSON.stringify(take(input, {
1253
- clientToken: (_) => _ ?? generateIdempotencyToken(),
1253
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1254
1254
  description: [],
1255
1255
  infrastructureConfigurationArn: [],
1256
1256
  instanceMetadataOptions: (_) => _json(_),