Skip to content

Commit 0a9cbdd

Browse files
author
awstools
committed
docs(client-batch): Documentation-only update: clarified the description of the shareDecaySeconds parameter of the FairsharePolicy data type, clarified the description of the priority parameter of the JobQueueDetail data type.
1 parent 516e383 commit 0a9cbdd

File tree

2 files changed

+33
-10
lines changed

2 files changed

+33
-10
lines changed

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

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export interface LaunchTemplateSpecificationOverride {
507507
version?: string | undefined;
508508

509509
/**
510-
* <p>The instance type or family that this this override launch template should be applied to.</p>
510+
* <p>The instance type or family that this override launch template should be applied to.</p>
511511
* <p>This parameter is required when defining a launch template override.</p>
512512
* <p>Information included in this parameter must meet the following requirements:</p>
513513
* <ul>
@@ -1323,9 +1323,12 @@ export interface ShareAttributes {
13231323
export interface FairsharePolicy {
13241324
/**
13251325
* <p>The amount of time (in seconds) to use to calculate a fair share percentage for each fair
1326-
* share identifier in use. A value of zero (0) indicates that only current usage is measured. The
1327-
* decay allows for more recently run jobs to have more weight than jobs that ran earlier. The
1328-
* maximum supported value is 604800 (1 week).</p>
1326+
* share identifier in use. A value of zero (0) indicates the default minimum time window (600 seconds).
1327+
* The maximum supported value is 604800 (1 week).</p>
1328+
* <p>The decay allows for more recently run jobs to have more weight than jobs that ran earlier.
1329+
* Consider adjusting this number if you have jobs that (on average) run longer than ten minutes,
1330+
* or a large difference in job count or job run times between share identifiers, and the allocation
1331+
* of resources doesn’t meet your needs.</p>
13291332
* @public
13301333
*/
13311334
shareDecaySeconds?: number | undefined;
@@ -3018,7 +3021,7 @@ export interface TaskContainerProperties {
30183021
dependsOn?: TaskContainerDependency[] | undefined;
30193022

30203023
/**
3021-
* <p>The environment variables to pass to a container. This parameter maps to Env inthe <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a>
3024+
* <p>The environment variables to pass to a container. This parameter maps to Env in the <a href="https://docs.docker.com/engine/api/v1.23/#create-a-container">Create a container</a>
30223025
* section of the <a href="https://docs.docker.com/engine/api/v1.23/">Docker Remote API</a>
30233026
* and the <code>--env</code> parameter to <a href="https://docs.docker.com/engine/reference/run/">docker run</a>. </p>
30243027
* <important>
@@ -4462,7 +4465,27 @@ export interface JobQueueDetail {
44624465
statusReason?: string | undefined;
44634466

44644467
/**
4465-
* <p>The priority of the job queue. Job queues with a higher priority (or a higher integer value for the <code>priority</code> parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of <code>10</code> is given scheduling preference over a job queue with a priority value of <code>1</code>. All of the compute environments must be either Amazon EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>). Amazon EC2 and Fargate compute environments can't be mixed.</p>
4468+
* <p>The priority of the job queue. Job queue priority determines the order
4469+
* that job queues are evaluated when multiple queues dispatch jobs within a
4470+
* shared compute environment. A higher value for <code>priority</code> indicates
4471+
* a higher priority. Queues are evaluated in cycles, in descending order by
4472+
* priority. For example, a job queue with a priority value of <code>10</code> is
4473+
* evaluated before a queue with a priority value of <code>1</code>. All of the
4474+
* compute environments must be either Amazon EC2 (<code>EC2</code> or <code>SPOT</code>)
4475+
* or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>). Amazon EC2 and
4476+
* Fargate compute environments can't be mixed.</p>
4477+
* <note>
4478+
* <p>Job queue priority doesn't guarantee that a particular job executes before
4479+
* a job in a lower priority queue. Jobs added to higher priority queues during the
4480+
* queue evaluation cycle might not be evaluated until the next cycle. A job is
4481+
* dispatched from a queue only if resources are available when the queue is evaluated.
4482+
* If there are insufficient resources available at that time, the cycle proceeds to the
4483+
* next queue. This means that jobs added to higher priority queues might have to wait
4484+
* for jobs in multiple lower priority queues to complete before they are dispatched.
4485+
* You can use job dependencies to control the order for jobs from queues with different
4486+
* priorities. For more information, see <a href="https://docs.aws.amazon.com/batch/latest/userguide/job_dependencies.html">Job Dependencies</a>
4487+
* in the <i>Batch User Guide</i>.</p>
4488+
* </note>
44664489
* @public
44674490
*/
44684491
priority: number | undefined;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4867,7 +4867,7 @@
48674867
"shareDecaySeconds": {
48684868
"target": "com.amazonaws.batch#Integer",
48694869
"traits": {
4870-
"smithy.api#documentation": "<p>The amount of time (in seconds) to use to calculate a fair share percentage for each fair\n share identifier in use. A value of zero (0) indicates that only current usage is measured. The\n decay allows for more recently run jobs to have more weight than jobs that ran earlier. The\n maximum supported value is 604800 (1 week).</p>"
4870+
"smithy.api#documentation": "<p>The amount of time (in seconds) to use to calculate a fair share percentage for each fair\n share identifier in use. A value of zero (0) indicates the default minimum time window (600 seconds).\n The maximum supported value is 604800 (1 week).</p>\n <p>The decay allows for more recently run jobs to have more weight than jobs that ran earlier. \n Consider adjusting this number if you have jobs that (on average) run longer than ten minutes, \n or a large difference in job count or job run times between share identifiers, and the allocation\n of resources doesn’t meet your needs.</p>"
48714871
}
48724872
},
48734873
"computeReservation": {
@@ -5545,7 +5545,7 @@
55455545
"target": "com.amazonaws.batch#Integer",
55465546
"traits": {
55475547
"smithy.api#clientOptional": {},
5548-
"smithy.api#documentation": "<p>The priority of the job queue. Job queues with a higher priority (or a higher integer value for the <code>priority</code> parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of <code>10</code> is given scheduling preference over a job queue with a priority value of <code>1</code>. All of the compute environments must be either Amazon EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>). Amazon EC2 and Fargate compute environments can't be mixed.</p>",
5548+
"smithy.api#documentation": "<p>The priority of the job queue. Job queue priority determines the order \n that job queues are evaluated when multiple queues dispatch jobs within a \n shared compute environment. A higher value for <code>priority</code> indicates\n a higher priority. Queues are evaluated in cycles, in descending order by\n priority. For example, a job queue with a priority value of <code>10</code> is \n evaluated before a queue with a priority value of <code>1</code>. All of the \n compute environments must be either Amazon EC2 (<code>EC2</code> or <code>SPOT</code>)\n or Fargate (<code>FARGATE</code> or <code>FARGATE_SPOT</code>). Amazon EC2 and \n Fargate compute environments can't be mixed.</p>\n <note>\n <p>Job queue priority doesn't guarantee that a particular job executes before \n a job in a lower priority queue. Jobs added to higher priority queues during the \n queue evaluation cycle might not be evaluated until the next cycle. A job is \n dispatched from a queue only if resources are available when the queue is evaluated. \n If there are insufficient resources available at that time, the cycle proceeds to the \n next queue. This means that jobs added to higher priority queues might have to wait \n for jobs in multiple lower priority queues to complete before they are dispatched. \n You can use job dependencies to control the order for jobs from queues with different \n priorities. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/job_dependencies.html\">Job Dependencies</a>\n in the <i>Batch User Guide</i>.</p>\n </note>",
55495549
"smithy.api#required": {}
55505550
}
55515551
},
@@ -5904,7 +5904,7 @@
59045904
"targetInstanceTypes": {
59055905
"target": "com.amazonaws.batch#StringList",
59065906
"traits": {
5907-
"smithy.api#documentation": "<p>The instance type or family that this this override launch template should be applied to.</p>\n <p>This parameter is required when defining a launch template override.</p>\n <p>Information included in this parameter must meet the following requirements:</p>\n <ul>\n <li>\n <p>Must be a valid Amazon EC2 instance type or family.</p>\n </li>\n <li>\n <p>\n <code>optimal</code> isn't allowed.</p>\n </li>\n <li>\n <p>\n <code>targetInstanceTypes</code> can target only instance types and families that are included within the <a href=\"https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-instanceTypes\">\n <code>ComputeResource.instanceTypes</code>\n </a> set. <code>targetInstanceTypes</code> doesn't need to include all of the instances from the <code>instanceType</code> set, but at least a subset. For example, if <code>ComputeResource.instanceTypes</code> includes <code>[m5, g5]</code>, <code>targetInstanceTypes</code> can include <code>[m5.2xlarge]</code> and <code>[m5.large]</code> but not <code>[c5.large]</code>.</p>\n </li>\n <li>\n <p>\n <code>targetInstanceTypes</code> included within the same launch template override or across launch template overrides can't overlap for the same compute environment. For example, you can't define one launch template override to target an instance family and another define an instance type within this same family.</p>\n </li>\n </ul>"
5907+
"smithy.api#documentation": "<p>The instance type or family that this override launch template should be applied to.</p>\n <p>This parameter is required when defining a launch template override.</p>\n <p>Information included in this parameter must meet the following requirements:</p>\n <ul>\n <li>\n <p>Must be a valid Amazon EC2 instance type or family.</p>\n </li>\n <li>\n <p>\n <code>optimal</code> isn't allowed.</p>\n </li>\n <li>\n <p>\n <code>targetInstanceTypes</code> can target only instance types and families that are included within the <a href=\"https://docs.aws.amazon.com/batch/latest/APIReference/API_ComputeResource.html#Batch-Type-ComputeResource-instanceTypes\">\n <code>ComputeResource.instanceTypes</code>\n </a> set. <code>targetInstanceTypes</code> doesn't need to include all of the instances from the <code>instanceType</code> set, but at least a subset. For example, if <code>ComputeResource.instanceTypes</code> includes <code>[m5, g5]</code>, <code>targetInstanceTypes</code> can include <code>[m5.2xlarge]</code> and <code>[m5.large]</code> but not <code>[c5.large]</code>.</p>\n </li>\n <li>\n <p>\n <code>targetInstanceTypes</code> included within the same launch template override or across launch template overrides can't overlap for the same compute environment. For example, you can't define one launch template override to target an instance family and another define an instance type within this same family.</p>\n </li>\n </ul>"
59085908
}
59095909
}
59105910
},
@@ -7697,7 +7697,7 @@
76977697
"environment": {
76987698
"target": "com.amazonaws.batch#EnvironmentVariables",
76997699
"traits": {
7700-
"smithy.api#documentation": "<p>The environment variables to pass to a container. This parameter maps to Env inthe <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a>\n section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a>\n and the <code>--env</code> parameter to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. </p>\n <important>\n <p>We don't recommend using plaintext environment variables for sensitive information, such as\n credential data.</p>\n </important>\n <note>\n <p>Environment variables cannot start with <code>AWS_BATCH</code>. This naming convention is\n reserved for variables that Batch sets.</p>\n </note>"
7700+
"smithy.api#documentation": "<p>The environment variables to pass to a container. This parameter maps to Env in the <a href=\"https://docs.docker.com/engine/api/v1.23/#create-a-container\">Create a container</a>\n section of the <a href=\"https://docs.docker.com/engine/api/v1.23/\">Docker Remote API</a>\n and the <code>--env</code> parameter to <a href=\"https://docs.docker.com/engine/reference/run/\">docker run</a>. </p>\n <important>\n <p>We don't recommend using plaintext environment variables for sensitive information, such as\n credential data.</p>\n </important>\n <note>\n <p>Environment variables cannot start with <code>AWS_BATCH</code>. This naming convention is\n reserved for variables that Batch sets.</p>\n </note>"
77017701
}
77027702
},
77037703
"essential": {

0 commit comments

Comments
 (0)