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 Jun 3, 2024
1 parent e3c589f commit 3f8909d
Show file tree
Hide file tree
Showing 4 changed files with 280 additions and 57 deletions.
22 changes: 11 additions & 11 deletions codegen/sdk-codegen/aws-models/amplify.json
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Describes the backend properties associated with an Amplify\n <code>Branch</code>.</p>"
"smithy.api#documentation": "<p>Describes the backend associated with an Amplify\n <code>Branch</code>.</p>\n <p>This property is available to Amplify Gen 2 apps only. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>"
}
},
"com.amazonaws.amplify#BackendEnvironment": {
Expand Down Expand Up @@ -1484,7 +1484,7 @@
}
},
"traits": {
"smithy.api#documentation": "<p>Describes the backend environment for an Amplify app. </p>"
"smithy.api#documentation": "<p>Describes the backend environment associated with a <code>Branch</code> of a Gen 1\n Amplify app. Amplify Gen 1 applications are created\n using Amplify Studio or the Amplify command line\n interface (CLI).</p>"
}
},
"com.amazonaws.amplify#BackendEnvironmentArn": {
Expand Down Expand Up @@ -1706,7 +1706,7 @@
"backendEnvironmentArn": {
"target": "com.amazonaws.amplify#BackendEnvironmentArn",
"traits": {
"smithy.api#documentation": "<p> The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify\n app. </p>"
"smithy.api#documentation": "<p> The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. </p>\n <p>This property is available to Amplify Gen 1 apps only. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>"
}
},
"backend": {
Expand Down Expand Up @@ -2082,7 +2082,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Creates a new backend environment for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend is created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to applications created using the\n Amplify Gen 2 public preview. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#documentation": "<p>Creates a new backend environment for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend is created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. \n When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#http": {
"method": "POST",
"uri": "/apps/{appId}/backendenvironments",
Expand Down Expand Up @@ -2290,13 +2290,13 @@
"backendEnvironmentArn": {
"target": "com.amazonaws.amplify#BackendEnvironmentArn",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify\n app. </p>"
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify\n app. </p>\n <p>This field is available to Amplify Gen 1 apps only where the\n backend is created using Amplify Studio or the Amplify\n command line interface (CLI).</p>"
}
},
"backend": {
"target": "com.amazonaws.amplify#Backend",
"traits": {
"smithy.api#documentation": "<p>The backend for a <code>Branch</code> of an Amplify app. Use for a\n backend created from an CloudFormation stack.</p>"
"smithy.api#documentation": "<p>The backend for a <code>Branch</code> of an Amplify app. Use for a\n backend created from an CloudFormation stack.</p>\n <p>This field is available to Amplify Gen 2 apps only. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>"
}
}
},
Expand Down Expand Up @@ -2787,7 +2787,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Deletes a backend environment for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend was created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to applications created using the\n Amplify Gen 2 public preview. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#documentation": "<p>Deletes a backend environment for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend is created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. \n When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#http": {
"method": "DELETE",
"uri": "/apps/{appId}/backendenvironments/{environmentName}",
Expand Down Expand Up @@ -3719,7 +3719,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Returns a backend environment for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend was created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to applications created using the\n Amplify Gen 2 public preview. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#documentation": "<p>Returns a backend environment for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend is created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. \n When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#http": {
"method": "GET",
"uri": "/apps/{appId}/backendenvironments/{environmentName}",
Expand Down Expand Up @@ -4497,7 +4497,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Lists the backend environments for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend was created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to applications created using the\n Amplify Gen 2 public preview. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#documentation": "<p>Lists the backend environments for an Amplify app. </p>\n <p>This API is available only to Amplify Gen 1 applications where the\n backend is created using Amplify Studio or the Amplify\n command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. \n When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>",
"smithy.api#http": {
"method": "GET",
"uri": "/apps/{appId}/backendenvironments",
Expand Down Expand Up @@ -6324,13 +6324,13 @@
"backendEnvironmentArn": {
"target": "com.amazonaws.amplify#BackendEnvironmentArn",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify\n app. </p>"
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify\n app. </p>\n <p>This field is available to Amplify Gen 1 apps only where the\n backend is created using Amplify Studio or the Amplify\n command line interface (CLI).</p>"
}
},
"backend": {
"target": "com.amazonaws.amplify#Backend",
"traits": {
"smithy.api#documentation": "<p>The backend for a <code>Branch</code> of an Amplify app. Use for a\n backend created from an CloudFormation stack.</p>"
"smithy.api#documentation": "<p>The backend for a <code>Branch</code> of an Amplify app. Use for a\n backend created from an CloudFormation stack.</p>\n <p>This field is available to Amplify Gen 2 apps only. When you deploy an application with\n Amplify Gen 2, you provision the app's backend infrastructure using Typescript\n code.</p>"
}
}
},
Expand Down
106 changes: 105 additions & 1 deletion codegen/sdk-codegen/aws-models/batch.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
{
"target": "com.amazonaws.batch#DescribeSchedulingPolicies"
},
{
"target": "com.amazonaws.batch#GetJobQueueSnapshot"
},
{
"target": "com.amazonaws.batch#ListJobs"
},
Expand Down Expand Up @@ -4843,6 +4846,107 @@
"com.amazonaws.batch#Float": {
"type": "float"
},
"com.amazonaws.batch#FrontOfQueueDetail": {
"type": "structure",
"members": {
"jobs": {
"target": "com.amazonaws.batch#FrontOfQueueJobSummaryList",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Names (ARNs) of the first 100 <code>RUNNABLE</code> jobs in a named job queue. For first-in-first-out (FIFO) job queues, jobs are ordered based on their submission time. For fair share scheduling (FSS) job queues, jobs are ordered based on their job priority and share usage.</p>"
}
},
"lastUpdatedAt": {
"target": "com.amazonaws.batch#Long",
"traits": {
"smithy.api#documentation": "<p>The Unix timestamp (in milliseconds) for when each of the first 100 <code>RUNNABLE</code> jobs were last updated. </p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Contains a list of the first 100 <code>RUNNABLE</code> jobs associated to a single job queue.</p>"
}
},
"com.amazonaws.batch#FrontOfQueueJobSummary": {
"type": "structure",
"members": {
"jobArn": {
"target": "com.amazonaws.batch#String",
"traits": {
"smithy.api#documentation": "<p>The ARN for a job in a named job queue.</p>"
}
},
"earliestTimeAtPosition": {
"target": "com.amazonaws.batch#Long",
"traits": {
"smithy.api#documentation": "<p>The Unix timestamp (in milliseconds) for when the job transitioned to its current position in the job queue.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>An object that represents summary details for the first 100 <code>RUNNABLE</code> jobs in a job queue.</p>"
}
},
"com.amazonaws.batch#FrontOfQueueJobSummaryList": {
"type": "list",
"member": {
"target": "com.amazonaws.batch#FrontOfQueueJobSummary"
}
},
"com.amazonaws.batch#GetJobQueueSnapshot": {
"type": "operation",
"input": {
"target": "com.amazonaws.batch#GetJobQueueSnapshotRequest"
},
"output": {
"target": "com.amazonaws.batch#GetJobQueueSnapshotResponse"
},
"errors": [
{
"target": "com.amazonaws.batch#ClientException"
},
{
"target": "com.amazonaws.batch#ServerException"
}
],
"traits": {
"smithy.api#documentation": "<p>Provides a list of the first 100 <code>RUNNABLE</code> jobs associated to a single job queue.</p>",
"smithy.api#http": {
"method": "POST",
"uri": "/v1/getjobqueuesnapshot",
"code": 200
}
}
},
"com.amazonaws.batch#GetJobQueueSnapshotRequest": {
"type": "structure",
"members": {
"jobQueue": {
"target": "com.amazonaws.batch#String",
"traits": {
"smithy.api#clientOptional": {},
"smithy.api#documentation": "<p>The job queue’s name or full queue Amazon Resource Name (ARN).</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#input": {}
}
},
"com.amazonaws.batch#GetJobQueueSnapshotResponse": {
"type": "structure",
"members": {
"frontOfQueue": {
"target": "com.amazonaws.batch#FrontOfQueueDetail",
"traits": {
"smithy.api#documentation": "<p>The list of the first 100 <code>RUNNABLE</code> jobs in each job queue. For first-in-first-out (FIFO) job queues, jobs are ordered based on their submission time. For fair share scheduling (FSS) job queues, jobs are ordered based on their job priority and share usage.</p>"
}
}
},
"traits": {
"smithy.api#output": {}
}
},
"com.amazonaws.batch#Host": {
"type": "structure",
"members": {
Expand Down Expand Up @@ -5880,7 +5984,7 @@
"maxResults": {
"target": "com.amazonaws.batch#Integer",
"traits": {
"smithy.api#documentation": "<p>The maximum number of results returned by <code>ListJobs</code> in paginated output. When\n this parameter is used, <code>ListJobs</code> only returns <code>maxResults</code> results in\n a single page and a <code>nextToken</code> response element. The remaining results of the\n initial request can be seen by sending another <code>ListJobs</code> request with the returned\n <code>nextToken</code> value. This value can be between 1 and\n 100. If this parameter isn't used, then <code>ListJobs</code> returns up to\n 100 results and a <code>nextToken</code> value if applicable.</p>"
"smithy.api#documentation": "<p>The maximum number of results returned by <code>ListJobs</code> in a paginated output. When this parameter is used, <code>ListJobs</code> returns up to <code>maxResults</code> results in a single page and a <code>nextToken</code> response element, if applicable. The remaining results of the initial request can be seen by sending another <code>ListJobs</code> request with the returned <code>nextToken</code> value.</p>\n <p>The following outlines key parameters and limitations:</p>\n <ul>\n <li>\n <p>The minimum value is 1. </p>\n </li>\n <li>\n <p>When <code>--job-status</code> is used, Batch returns up to 1000 values. </p>\n </li>\n <li>\n <p>When <code>--filters</code> is used, Batch returns up to 100 values.</p>\n </li>\n <li>\n <p>If neither parameter is used, then <code>ListJobs</code> returns up to\n 1000 results (jobs that are in the <code>RUNNING</code> status) and a <code>nextToken</code> value, if applicable.</p>\n </li>\n </ul>"
}
},
"nextToken": {
Expand Down
Loading

0 comments on commit 3f8909d

Please sign in to comment.