Skip to content

Commit 193a1bc

Browse files
author
awstools
committed
feat(client-batch): Bug Fix: Fixed a bug where shapes were marked as unboxed and were not serialized and sent over the wire, causing an API error from the service.
1 parent 28ef4d2 commit 193a1bc

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

clients/client-batch/src/Batch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ export class Batch extends BatchClient {
726726
* override parameters defined in the job definition. vCPU and memory requirements that are specified in the
727727
* <code>resourceRequirements</code> objects in the job definition are the exception. They can't be overridden this way
728728
* using the <code>memory</code> and <code>vcpus</code> parameters. Rather, you must specify updates to job definition
729-
* parameters in a <code>ResourceRequirements</code> object that's included in the <code>containerOverrides</code>
729+
* parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code>
730730
* parameter.</p>
731731
* <note>
732732
* <p>Job queues with a scheduling policy are limited to 500 active fair share identifiers at a time. </p>

clients/client-batch/src/commands/SubmitJobCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface SubmitJobCommandOutput extends SubmitJobResponse, __MetadataBea
2626
* override parameters defined in the job definition. vCPU and memory requirements that are specified in the
2727
* <code>resourceRequirements</code> objects in the job definition are the exception. They can't be overridden this way
2828
* using the <code>memory</code> and <code>vcpus</code> parameters. Rather, you must specify updates to job definition
29-
* parameters in a <code>ResourceRequirements</code> object that's included in the <code>containerOverrides</code>
29+
* parameters in a <code>resourceRequirements</code> object that's included in the <code>containerOverrides</code>
3030
* parameter.</p>
3131
* <note>
3232
* <p>Job queues with a scheduling policy are limited to 500 active fair share identifiers at a time. </p>

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ export interface CreateComputeEnvironmentRequest {
694694
* scheduling to reserve vCPU capacity for new share identifiers. If this parameter isn't provided for a fair share job
695695
* queue, no vCPU capacity is reserved.</p>
696696
* <note>
697-
* <p>This parameter is only supported when the <code>type</code> parameter is set to <code>UNMANAGED</code>/</p>
697+
* <p>This parameter is only supported when the <code>type</code> parameter is set to <code>UNMANAGED</code>.</p>
698698
* </note>
699699
*/
700700
unmanagedvCpus?: number;
@@ -2152,6 +2152,12 @@ export interface ContainerProperties {
21522152
* </note>
21532153
* <ul>
21542154
* <li>
2155+
* <p>Images in Amazon ECR Public repositories use the full <code>registry/repository[:tag]</code> or
2156+
* <code>registry/repository[@digest]</code> naming conventions. For example,
2157+
* <code>public.ecr.aws/<i>registry_alias</i>/<i>my-web-app</i>:<i>latest</i>
2158+
* </code>.</p>
2159+
* </li>
2160+
* <li>
21552161
* <p>Images in Amazon ECR repositories use the full registry and repository URI (for example,
21562162
* <code>012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name></code>).</p>
21572163
* </li>
@@ -2175,7 +2181,7 @@ export interface ContainerProperties {
21752181
* @deprecated
21762182
*
21772183
* <p>This parameter is deprecated, use <code>resourceRequirements</code> to specify the vCPU requirements for the job
2178-
* definition. It's not supported for jobs that run on Fargate resources. For jobs run on EC2 resources, it specifies
2184+
* definition. It's not supported for jobs running on Fargate resources. For jobs running on EC2 resources, it specifies
21792185
* the number of vCPUs reserved for the job.</p>
21802186
* <p>Each vCPU is equivalent to 1,024 CPU shares. This parameter maps to <code>CpuShares</code> in the
21812187
* <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a> section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a> and the <code>--cpu-shares</code> option to
@@ -2188,7 +2194,7 @@ export interface ContainerProperties {
21882194
* @deprecated
21892195
*
21902196
* <p>This parameter is deprecated, use <code>resourceRequirements</code> to specify the memory requirements for the
2191-
* job definition. It's not supported for jobs that run on Fargate resources. For jobs run on EC2 resources, it
2197+
* job definition. It's not supported for jobs running on Fargate resources. For jobs running on EC2 resources, it
21922198
* specifies the memory hard limit (in MiB) for a container. If your container attempts to exceed the specified number,
21932199
* it's terminated. You must specify at least 4 MiB of memory for a job using this parameter. The memory hard limit can
21942200
* be specified in several places. It must be specified for each node at least once.</p>
@@ -2826,9 +2832,9 @@ export interface ContainerDetail {
28262832
vcpus?: number;
28272833

28282834
/**
2829-
* <p>For jobs run on EC2 resources that didn't specify memory requirements using <code>resourceRequirements</code>,
2830-
* the number of MiB of memory reserved for the job. For other jobs, including all run on Fargate resources, see
2831-
* <code>resourceRequirements</code>.</p>
2835+
* <p>For jobs running on EC2 resources that didn't specify memory requirements using
2836+
* <code>resourceRequirements</code>, the number of MiB of memory reserved for the job. For other jobs, including all
2837+
* run on Fargate resources, see <code>resourceRequirements</code>.</p>
28322838
*/
28332839
memory?: number;
28342840

@@ -3849,7 +3855,7 @@ export interface ContainerOverrides {
38493855
* @deprecated
38503856
*
38513857
* <p>This parameter is deprecated, use <code>resourceRequirements</code> to override the <code>vcpus</code> parameter
3852-
* that's set in the job definition. It's not supported for jobs that run on Fargate resources. For jobs run on EC2
3858+
* that's set in the job definition. It's not supported for jobs running on Fargate resources. For jobs running on EC2
38533859
* resources, it overrides the <code>vcpus</code> parameter set in the job definition, but doesn't override any vCPU
38543860
* requirement specified in the <code>resourceRequirements</code> structure in the job definition. To override vCPU
38553861
* requirements that are specified in the <code>resourceRequirements</code> structure in the job definition,
@@ -3863,7 +3869,7 @@ export interface ContainerOverrides {
38633869
* @deprecated
38643870
*
38653871
* <p>This parameter is deprecated, use <code>resourceRequirements</code> to override the memory requirements
3866-
* specified in the job definition. It's not supported for jobs that run on Fargate resources. For jobs run on EC2
3872+
* specified in the job definition. It's not supported for jobs running on Fargate resources. For jobs running on EC2
38673873
* resources, it overrides the <code>memory</code> parameter set in the job definition, but doesn't override any memory
38683874
* requirement specified in the <code>resourceRequirements</code> structure in the job definition. To override memory
38693875
* requirements that are specified in the <code>resourceRequirements</code> structure in the job definition,

0 commit comments

Comments
 (0)