Skip to content

Commit

Permalink
Update API model
Browse files Browse the repository at this point in the history
  • Loading branch information
AWS SDK for Go v2 automation user committed Mar 8, 2024
1 parent be4380a commit 65a2b3b
Show file tree
Hide file tree
Showing 7 changed files with 644 additions and 313 deletions.
92 changes: 89 additions & 3 deletions codegen/sdk-codegen/aws-models/batch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2649,6 +2649,12 @@
"traits": {
"smithy.api#documentation": "<p>The tags that you apply to the job queue to help you categorize and organize your\n resources. Each tag consists of a key and an optional value. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html\">Tagging your Batch resources</a>\n in <i>Batch User Guide</i>.</p>"
}
},
"jobStateTimeLimitActions": {
"target": "com.amazonaws.batch#JobStateTimeLimitActions",
"traits": {
"smithy.api#documentation": "<p>The set of actions that Batch performs on jobs that remain at the head of the job queue in the specified state\n longer than specified times. Batch will perform each action after <code>maxTimeSeconds</code> has passed.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -5065,7 +5071,7 @@
"statusReason": {
"target": "com.amazonaws.batch#String",
"traits": {
"smithy.api#documentation": "<p>A short, human-readable string to provide more details for the current status of the\n job.</p>"
"smithy.api#documentation": "<p>A short, human-readable string to provide more details for the current status of the job.</p>\n <ul>\n <li>\n <p>\n <code>CAPACITY:INSUFFICIENT_INSTANCE_CAPACITY</code> - All compute environments have insufficient capacity to\n service the job.</p>\n </li>\n <li>\n <p>\n <code>MISCONFIGURATION:COMPUTE_ENVIRONMENT_MAX_RESOURCE</code> - All compute environments have a\n <code>maxVcpu</code> setting that is smaller than the job requirements.</p>\n </li>\n <li>\n <p>\n <code>MISCONFIGURATION:JOB_RESOURCE_REQUIREMENT</code> - All compute environments have no connected instances\n that meet the job requirements.</p>\n </li>\n <li>\n <p>\n <code>MISCONFIGURATION:SERVICE_ROLE_PERMISSIONS</code> - All compute environments have problems with the\n service role permissions.</p>\n </li>\n </ul>"
}
},
"createdAt": {
Expand Down Expand Up @@ -5278,6 +5284,12 @@
"traits": {
"smithy.api#documentation": "<p>The tags that are applied to the job queue. For more information, see <a href=\"https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html\">Tagging your Batch resources</a> in\n <i>Batch User Guide</i>.</p>"
}
},
"jobStateTimeLimitActions": {
"target": "com.amazonaws.batch#JobStateTimeLimitActions",
"traits": {
"smithy.api#documentation": "<p>The set of actions that Batch perform on jobs that remain at the head of the job queue in the specified state\n longer than specified times. Batch will perform each action after <code>maxTimeSeconds</code> has passed.</p>"
}
}
},
"traits": {
Expand All @@ -5290,6 +5302,74 @@
"target": "com.amazonaws.batch#JobQueueDetail"
}
},
"com.amazonaws.batch#JobStateTimeLimitAction": {
"type": "structure",
"members": {
"reason": {
"target": "com.amazonaws.batch#String",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The reason to log for the action being taken.</p>",
"smithy.api#required": {}
}
},
"state": {
"target": "com.amazonaws.batch#JobStateTimeLimitActionsState",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The state of the job needed to trigger the action. The only supported value is \"<code>RUNNABLE</code>\".</p>",
"smithy.api#required": {}
}
},
"maxTimeSeconds": {
"target": "com.amazonaws.batch#Integer",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The approximate amount of time, in seconds, that must pass with the job in the specified state before the action\n is taken. The minimum value is 600 (10 minutes) and the maximum value is 86,400 (24 hours).</p>",
"smithy.api#required": {}
}
},
"action": {
"target": "com.amazonaws.batch#JobStateTimeLimitActionsAction",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The action to take when a job is at the head of the job queue in the specified state for the specified period of\n time. The only supported value is \"<code>CANCEL</code>\", which will cancel the job.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>Specifies an action that Batch will take after the job has remained at the head of the queue in the specified\n state for longer than the specified time.</p>"
}
},
"com.amazonaws.batch#JobStateTimeLimitActions": {
"type": "list",
"member": {
"target": "com.amazonaws.batch#JobStateTimeLimitAction"
}
},
"com.amazonaws.batch#JobStateTimeLimitActionsAction": {
"type": "enum",
"members": {
"CANCEL": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "CANCEL"
}
}
}
},
"com.amazonaws.batch#JobStateTimeLimitActionsState": {
"type": "enum",
"members": {
"RUNNABLE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "RUNNABLE"
}
}
}
},
"com.amazonaws.batch#JobStatus": {
"type": "enum",
"members": {
Expand Down Expand Up @@ -7123,7 +7203,7 @@
"essential": {
"target": "com.amazonaws.batch#Boolean",
"traits": {
"smithy.api#documentation": "<p>If the essential parameter of a container is marked as <code>true</code>, and that container\n fails or stops for any reason, all other containers that are part of the task are stopped. If the\n <code>essential</code> parameter of a container is marked as false, its failure doesn't affect\n the rest of the containers in a task. If this parameter is omitted, a container is assumed to be\n essential.</p>\n <p>All tasks must have at least one essential container. If you have an application that's\n composed of multiple containers, group containers that are used for a common purpose into\n components, and separate the different components into multiple task definitions. For more\n information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html\">Application\n Architecture</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>"
"smithy.api#documentation": "<p>If the essential parameter of a container is marked as <code>true</code>, and that container\n fails or stops for any reason, all other containers that are part of the task are stopped. If the\n <code>essential</code> parameter of a container is marked as false, its failure doesn't affect\n the rest of the containers in a task. If this parameter is omitted, a container is assumed to be\n essential.</p>\n <p>All jobs must have at least one essential container. If you have an application that's\n composed of multiple containers, group containers that are used for a common purpose into\n components, and separate the different components into multiple task definitions. For more\n information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html\">Application\n Architecture</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>"
}
},
"image": {
Expand Down Expand Up @@ -7283,7 +7363,7 @@
"essential": {
"target": "com.amazonaws.batch#Boolean",
"traits": {
"smithy.api#documentation": "<p>If the essential parameter of a container is marked as <code>true</code>, and that container\n fails or stops for any reason, all other containers that are part of the task are stopped. If the\n <code>essential</code> parameter of a container is marked as false, its failure doesn't affect\n the rest of the containers in a task. If this parameter is omitted, a container is assumed to be\n essential.</p>\n <p>All tasks must have at least one essential container. If you have an application that's\n composed of multiple containers, group containers that are used for a common purpose into\n components, and separate the different components into multiple task definitions. For more\n information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html\">Application\n Architecture</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>"
"smithy.api#documentation": "<p>If the essential parameter of a container is marked as <code>true</code>, and that container\n fails or stops for any reason, all other containers that are part of the task are stopped. If the\n <code>essential</code> parameter of a container is marked as false, its failure doesn't affect\n the rest of the containers in a task. If this parameter is omitted, a container is assumed to be\n essential.</p>\n <p>All jobs must have at least one essential container. If you have an application that's\n composed of multiple containers, group containers that are used for a common purpose into\n components, and separate the different components into multiple task definitions. For more\n information, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html\">Application\n Architecture</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>"
}
},
"image": {
Expand Down Expand Up @@ -7771,6 +7851,12 @@
"traits": {
"smithy.api#documentation": "<p>Details the set of compute environments mapped to a job queue and their order relative to\n each other. This is one of the parameters used by the job scheduler to determine which compute\n environment runs a given job. Compute environments must be in the <code>VALID</code> state\n before you can associate them with a job queue. All of the compute environments must be either\n EC2 (<code>EC2</code> or <code>SPOT</code>) or Fargate (<code>FARGATE</code> or\n <code>FARGATE_SPOT</code>). EC2 and Fargate compute environments can't be mixed.</p>\n <note>\n <p>All compute environments that are associated with a job queue must share the same\n architecture. Batch doesn't support mixing compute environment architecture types in a\n single job queue.</p>\n </note>"
}
},
"jobStateTimeLimitActions": {
"target": "com.amazonaws.batch#JobStateTimeLimitActions",
"traits": {
"smithy.api#documentation": "<p>The set of actions that Batch perform on jobs that remain at the head of the job queue in the specified state\n longer than specified times. Batch will perform each action after <code>maxTimeSeconds</code> has passed.</p>"
}
}
},
"traits": {
Expand Down
Loading

0 comments on commit 65a2b3b

Please sign in to comment.