Skip to content

Commit 092c952

Browse files
author
awstools
committed
feat(client-amplify): Add support for customizable build instance sizes. CreateApp and UpdateApp operations now accept a new JobConfig parameter composed of BuildComputeType.
1 parent f3932ee commit 092c952

13 files changed

+359
-163
lines changed

clients/client-amplify/src/commands/CreateAppCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ export interface CreateAppCommandOutput extends CreateAppResult, __MetadataBeare
8787
* enablePullRequestPreview: true || false,
8888
* pullRequestEnvironmentName: "STRING_VALUE",
8989
* },
90+
* jobConfig: { // JobConfig
91+
* buildComputeType: "STANDARD_8GB" || "LARGE_16GB" || "XLARGE_72GB", // required
92+
* },
9093
* cacheConfig: { // CacheConfig
9194
* type: "AMPLIFY_MANAGED" || "AMPLIFY_MANAGED_NO_COOKIES", // required
9295
* },
@@ -160,6 +163,9 @@ export interface CreateAppCommandOutput extends CreateAppResult, __MetadataBeare
160163
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
161164
* // statusReason: "STRING_VALUE",
162165
* // },
166+
* // jobConfig: { // JobConfig
167+
* // buildComputeType: "STANDARD_8GB" || "LARGE_16GB" || "XLARGE_72GB", // required
168+
* // },
163169
* // },
164170
* // };
165171
*

clients/client-amplify/src/commands/CreateBackendEnvironmentCommand.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ export interface CreateBackendEnvironmentCommandOutput extends CreateBackendEnvi
3131
* <p>Creates a new backend environment for an Amplify app. </p>
3232
* <p>This API is available only to Amplify Gen 1 applications where the
3333
* backend is created using Amplify Studio or the Amplify
34-
* command line interface (CLI). This API isn’t available to Amplify Gen 2 applications.
35-
* When you deploy an application with
36-
* Amplify Gen 2, you provision the app's backend infrastructure using Typescript
37-
* code.</p>
34+
* command line interface (CLI). This API isn’t available to Amplify Gen 2
35+
* applications. When you deploy an application with Amplify Gen 2, you provision the app's
36+
* backend infrastructure using Typescript code.</p>
3837
* @example
3938
* Use a bare-bones client and the command you need to make an API call.
4039
* ```javascript

clients/client-amplify/src/commands/DeleteAppCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export interface DeleteAppCommandOutput extends DeleteAppResult, __MetadataBeare
107107
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
108108
* // statusReason: "STRING_VALUE",
109109
* // },
110+
* // jobConfig: { // JobConfig
111+
* // buildComputeType: "STANDARD_8GB" || "LARGE_16GB" || "XLARGE_72GB", // required
112+
* // },
110113
* // },
111114
* // };
112115
*

clients/client-amplify/src/commands/DeleteBackendEnvironmentCommand.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ export interface DeleteBackendEnvironmentCommandOutput extends DeleteBackendEnvi
3131
* <p>Deletes a backend environment for an Amplify app. </p>
3232
* <p>This API is available only to Amplify Gen 1 applications where the
3333
* backend is created using Amplify Studio or the Amplify
34-
* command line interface (CLI). This API isn’t available to Amplify Gen 2 applications.
35-
* When you deploy an application with
36-
* Amplify Gen 2, you provision the app's backend infrastructure using Typescript
37-
* code.</p>
34+
* command line interface (CLI). This API isn’t available to Amplify Gen 2
35+
* applications. When you deploy an application with Amplify Gen 2, you provision the app's
36+
* backend infrastructure using Typescript code.</p>
3837
* @example
3938
* Use a bare-bones client and the command you need to make an API call.
4039
* ```javascript

clients/client-amplify/src/commands/GetAppCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ export interface GetAppCommandOutput extends GetAppResult, __MetadataBearer {}
107107
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
108108
* // statusReason: "STRING_VALUE",
109109
* // },
110+
* // jobConfig: { // JobConfig
111+
* // buildComputeType: "STANDARD_8GB" || "LARGE_16GB" || "XLARGE_72GB", // required
112+
* // },
110113
* // },
111114
* // };
112115
*

clients/client-amplify/src/commands/GetBackendEnvironmentCommand.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ export interface GetBackendEnvironmentCommandOutput extends GetBackendEnvironmen
3131
* <p>Returns a backend environment for an Amplify app. </p>
3232
* <p>This API is available only to Amplify Gen 1 applications where the
3333
* backend is created using Amplify Studio or the Amplify
34-
* command line interface (CLI). This API isn’t available to Amplify Gen 2 applications.
35-
* When you deploy an application with
36-
* Amplify Gen 2, you provision the app's backend infrastructure using Typescript
37-
* code.</p>
34+
* command line interface (CLI). This API isn’t available to Amplify Gen 2
35+
* applications. When you deploy an application with Amplify Gen 2, you provision the app's
36+
* backend infrastructure using Typescript code.</p>
3837
* @example
3938
* Use a bare-bones client and the command you need to make an API call.
4039
* ```javascript

clients/client-amplify/src/commands/ListAppsCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ export interface ListAppsCommandOutput extends ListAppsResult, __MetadataBearer
109109
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
110110
* // statusReason: "STRING_VALUE",
111111
* // },
112+
* // jobConfig: { // JobConfig
113+
* // buildComputeType: "STANDARD_8GB" || "LARGE_16GB" || "XLARGE_72GB", // required
114+
* // },
112115
* // },
113116
* // ],
114117
* // nextToken: "STRING_VALUE",

clients/client-amplify/src/commands/ListArtifactsCommand.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ export interface ListArtifactsCommandInput extends ListArtifactsRequest {}
2828
export interface ListArtifactsCommandOutput extends ListArtifactsResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Returns a list of end-to-end testing artifacts for a specified app, branch, and job.</p>
32-
* <p>To return the build artifacts, use the <a href="https://docs.aws.amazon.com/amplify/latest/APIReference/API_GetJob.html">GetJob</a>
33-
* API.</p>
34-
* <p>For more information about Amplify testing support, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html">Setting up end-to-end Cypress tests for your Amplify application</a> in the <i>Amplify Hosting User
35-
* Guide</i>. </p>
31+
* <p>Returns a list of end-to-end testing artifacts for a specified app, branch, and
32+
* job.</p>
33+
* <p>To return the build artifacts, use the <a href="https://docs.aws.amazon.com/amplify/latest/APIReference/API_GetJob.html">GetJob</a> API.</p>
34+
* <p>For more information about Amplify testing support, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/running-tests.html">Setting up
35+
* end-to-end Cypress tests for your Amplify application</a> in the
36+
* <i>Amplify Hosting User Guide</i>. </p>
3637
* @example
3738
* Use a bare-bones client and the command you need to make an API call.
3839
* ```javascript

clients/client-amplify/src/commands/ListBackendEnvironmentsCommand.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ export interface ListBackendEnvironmentsCommandOutput extends ListBackendEnviron
3131
* <p>Lists the backend environments for an Amplify app. </p>
3232
* <p>This API is available only to Amplify Gen 1 applications where the
3333
* backend is created using Amplify Studio or the Amplify
34-
* command line interface (CLI). This API isn’t available to Amplify Gen 2 applications.
35-
* When you deploy an application with
36-
* Amplify Gen 2, you provision the app's backend infrastructure using Typescript
37-
* code.</p>
34+
* command line interface (CLI). This API isn’t available to Amplify Gen 2
35+
* applications. When you deploy an application with Amplify Gen 2, you provision the app's
36+
* backend infrastructure using Typescript code.</p>
3837
* @example
3938
* Use a bare-bones client and the command you need to make an API call.
4039
* ```javascript

clients/client-amplify/src/commands/UpdateAppCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export interface UpdateAppCommandOutput extends UpdateAppResult, __MetadataBeare
8585
* repository: "STRING_VALUE",
8686
* oauthToken: "STRING_VALUE",
8787
* accessToken: "STRING_VALUE",
88+
* jobConfig: { // JobConfig
89+
* buildComputeType: "STANDARD_8GB" || "LARGE_16GB" || "XLARGE_72GB", // required
90+
* },
8891
* cacheConfig: { // CacheConfig
8992
* type: "AMPLIFY_MANAGED" || "AMPLIFY_MANAGED_NO_COOKIES", // required
9093
* },
@@ -158,6 +161,9 @@ export interface UpdateAppCommandOutput extends UpdateAppResult, __MetadataBeare
158161
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
159162
* // statusReason: "STRING_VALUE",
160163
* // },
164+
* // jobConfig: { // JobConfig
165+
* // buildComputeType: "STANDARD_8GB" || "LARGE_16GB" || "XLARGE_72GB", // required
166+
* // },
161167
* // },
162168
* // };
163169
*

0 commit comments

Comments
 (0)