From 1191ab702c4a91f255de6380ee824cd7ce07d8fd Mon Sep 17 00:00:00 2001
From: awstools Creates a deployment for a manually deployed Amplify app. Manually deployed apps are
- * not connected to a repository.
The maximum duration between the CreateDeployment
call and the
* StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8
* hours, the StartDeployment
call and the associated Job
will
diff --git a/clients/client-amplify/src/commands/DeleteJobCommand.ts b/clients/client-amplify/src/commands/DeleteJobCommand.ts
index af64307cb487..621311a554e4 100644
--- a/clients/client-amplify/src/commands/DeleteJobCommand.ts
+++ b/clients/client-amplify/src/commands/DeleteJobCommand.ts
@@ -53,6 +53,8 @@ export interface DeleteJobCommandOutput extends DeleteJobResult, __MetadataBeare
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
* // endTime: new Date("TIMESTAMP"),
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
+ * // sourceUrl: "STRING_VALUE",
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
* // },
* // };
*
diff --git a/clients/client-amplify/src/commands/GetJobCommand.ts b/clients/client-amplify/src/commands/GetJobCommand.ts
index 896c0c547358..5d63c32e10d6 100644
--- a/clients/client-amplify/src/commands/GetJobCommand.ts
+++ b/clients/client-amplify/src/commands/GetJobCommand.ts
@@ -54,6 +54,8 @@ export interface GetJobCommandOutput extends GetJobResult, __MetadataBearer {}
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
* // endTime: new Date("TIMESTAMP"),
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
+ * // sourceUrl: "STRING_VALUE",
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
* // },
* // steps: [ // Steps // required
* // { // Step
diff --git a/clients/client-amplify/src/commands/ListJobsCommand.ts b/clients/client-amplify/src/commands/ListJobsCommand.ts
index d0cc3e72c0a8..bab94adb53e3 100644
--- a/clients/client-amplify/src/commands/ListJobsCommand.ts
+++ b/clients/client-amplify/src/commands/ListJobsCommand.ts
@@ -55,6 +55,8 @@ export interface ListJobsCommandOutput extends ListJobsResult, __MetadataBearer
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
* // endTime: new Date("TIMESTAMP"),
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
+ * // sourceUrl: "STRING_VALUE",
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
* // },
* // ],
* // nextToken: "STRING_VALUE",
diff --git a/clients/client-amplify/src/commands/StartDeploymentCommand.ts b/clients/client-amplify/src/commands/StartDeploymentCommand.ts
index 5e85f03b516f..6e0fb674105f 100644
--- a/clients/client-amplify/src/commands/StartDeploymentCommand.ts
+++ b/clients/client-amplify/src/commands/StartDeploymentCommand.ts
@@ -29,7 +29,7 @@ export interface StartDeploymentCommandOutput extends StartDeploymentResult, __M
/**
*
Starts a deployment for a manually deployed app. Manually deployed apps are not - * connected to a repository.
+ * connected to a Git repository. *The maximum duration between the CreateDeployment
call and the
* StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8
* hours, the StartDeployment
call and the associated Job
will
@@ -45,6 +45,7 @@ export interface StartDeploymentCommandOutput extends StartDeploymentResult, __M
* branchName: "STRING_VALUE", // required
* jobId: "STRING_VALUE",
* sourceUrl: "STRING_VALUE",
+ * sourceUrlType: "ZIP" || "BUCKET_PREFIX",
* };
* const command = new StartDeploymentCommand(input);
* const response = await client.send(command);
@@ -59,6 +60,8 @@ export interface StartDeploymentCommandOutput extends StartDeploymentResult, __M
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
* // endTime: new Date("TIMESTAMP"),
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
+ * // sourceUrl: "STRING_VALUE",
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
* // },
* // };
*
diff --git a/clients/client-amplify/src/commands/StartJobCommand.ts b/clients/client-amplify/src/commands/StartJobCommand.ts
index b3a37ac75579..a8c649591849 100644
--- a/clients/client-amplify/src/commands/StartJobCommand.ts
+++ b/clients/client-amplify/src/commands/StartJobCommand.ts
@@ -58,6 +58,8 @@ export interface StartJobCommandOutput extends StartJobResult, __MetadataBearer
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
* // endTime: new Date("TIMESTAMP"),
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
+ * // sourceUrl: "STRING_VALUE",
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
* // },
* // };
*
diff --git a/clients/client-amplify/src/commands/StopJobCommand.ts b/clients/client-amplify/src/commands/StopJobCommand.ts
index d17d338eac15..81c270b5ba77 100644
--- a/clients/client-amplify/src/commands/StopJobCommand.ts
+++ b/clients/client-amplify/src/commands/StopJobCommand.ts
@@ -53,6 +53,8 @@ export interface StopJobCommandOutput extends StopJobResult, __MetadataBearer {}
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
* // endTime: new Date("TIMESTAMP"),
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
+ * // sourceUrl: "STRING_VALUE",
+ * // sourceUrlType: "ZIP" || "BUCKET_PREFIX",
* // },
* // };
*
diff --git a/clients/client-amplify/src/models/models_0.ts b/clients/client-amplify/src/models/models_0.ts
index 31e733166019..6bb9dcd7bed7 100644
--- a/clients/client-amplify/src/models/models_0.ts
+++ b/clients/client-amplify/src/models/models_0.ts
@@ -1793,6 +1793,20 @@ export const JobType = {
*/
export type JobType = (typeof JobType)[keyof typeof JobType];
+/**
+ * @public
+ * @enum
+ */
+export const SourceUrlType = {
+ BUCKET_PREFIX: "BUCKET_PREFIX",
+ ZIP: "ZIP",
+} as const;
+
+/**
+ * @public
+ */
+export type SourceUrlType = (typeof SourceUrlType)[keyof typeof SourceUrlType];
+
/**
* @public
* @enum
@@ -1867,13 +1881,30 @@ export interface JobSummary {
/**
*
The type for the job. If the value is RELEASE
, the job was manually
- * released from its source by using the StartJob
API. If the value is
- * RETRY
, the job was manually retried using the StartJob
+ * released from its source by using the StartJob
API. This value is available only for apps
+ * that are connected to a repository.
If the value is RETRY
, the job was manually retried using the StartJob
* API. If the value is WEB_HOOK
, the job was automatically triggered by
- * webhooks.
MANUAL
, the job is for a manually deployed app. Manually deployed apps are not connected to a Git repository.
* @public
*/
jobType: JobType | undefined;
+
+ /**
+ * The source URL for the files to deploy. The source URL can be either an HTTP GET URL that is publicly accessible and + * downloads a single .zip file, or an Amazon S3 bucket and prefix.
+ * @public + */ + sourceUrl?: string; + + /** + *The type of source specified by the sourceURL
.
+ * If the value is ZIP
, the source is a .zip file.
+ * If the value is BUCKET_PREFIX
, the source is an Amazon S3 bucket and
+ * prefix. If no value is specified, the default is ZIP
.
The name of the branch to use for the job.
+ *The name of the branch to use for the deployment job.
* @public */ branchName: string | undefined; /** - *The job ID for this deployment, generated by the create deployment request.
+ *The job ID for this deployment that is generated by the CreateDeployment
request.
The source URL for this deployment, used when calling start deployment without create - * deployment. The source URL can be any HTTP GET URL that is publicly accessible and - * downloads a single .zip file.
+ *The source URL for the deployment that is used when calling StartDeployment
without CreateDeployment
. The source URL can be either an HTTP GET URL that is publicly accessible and
+ * downloads a single .zip file, or an Amazon S3 bucket and prefix.
The type of source specified by the sourceURL
.
+ * If the value is ZIP
, the source is a .zip file.
+ * If the value is BUCKET_PREFIX
, the source is an Amazon S3 bucket and
+ * prefix. If no value is specified, the default is ZIP
.
Creates a deployment for a manually deployed Amplify app. Manually deployed apps are\n not connected to a repository.
\nThe maximum duration between the CreateDeployment
call and the\n StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8\n hours, the StartDeployment
call and the associated Job
will\n fail.
Creates a deployment for a manually deployed Amplify app. Manually deployed apps are\n not connected to a Git repository.
\nThe maximum duration between the CreateDeployment
call and the\n StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8\n hours, the StartDeployment
call and the associated Job
will\n fail.
The type for the job. If the value is RELEASE
, the job was manually\n released from its source by using the StartJob
API. If the value is\n RETRY
, the job was manually retried using the StartJob
\n API. If the value is WEB_HOOK
, the job was automatically triggered by\n webhooks.
The type for the job. If the value is RELEASE
, the job was manually\n released from its source by using the StartJob
API. This value is available only for apps\n that are connected to a repository.
If the value is RETRY
, the job was manually retried using the StartJob
\n API. If the value is WEB_HOOK
, the job was automatically triggered by\n webhooks. If the value is MANUAL
, the job is for a manually deployed app. Manually deployed apps are not connected to a Git repository.
The source URL for the files to deploy. The source URL can be either an HTTP GET URL that is publicly accessible and\n downloads a single .zip file, or an Amazon S3 bucket and prefix.
" + } + }, + "sourceUrlType": { + "target": "com.amazonaws.amplify#SourceUrlType", + "traits": { + "smithy.api#documentation": "The type of source specified by the sourceURL
.\n If the value is ZIP
, the source is a .zip file.\n If the value is BUCKET_PREFIX
, the source is an Amazon S3 bucket and\n prefix. If no value is specified, the default is ZIP
.
Starts a deployment for a manually deployed app. Manually deployed apps are not\n connected to a repository.
\nThe maximum duration between the CreateDeployment
call and the\n StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8\n hours, the StartDeployment
call and the associated Job
will\n fail.
Starts a deployment for a manually deployed app. Manually deployed apps are not\n connected to a Git repository.
\nThe maximum duration between the CreateDeployment
call and the\n StartDeployment
call cannot exceed 8 hours. If the duration exceeds 8\n hours, the StartDeployment
call and the associated Job
will\n fail.
The name of the branch to use for the job.
", + "smithy.api#documentation": "The name of the branch to use for the deployment job.
", "smithy.api#httpLabel": {}, "smithy.api#required": {} } @@ -5393,13 +5422,19 @@ "jobId": { "target": "com.amazonaws.amplify#JobId", "traits": { - "smithy.api#documentation": "The job ID for this deployment, generated by the create deployment request.
" + "smithy.api#documentation": "The job ID for this deployment that is generated by the CreateDeployment
request.
The source URL for this deployment, used when calling start deployment without create\n deployment. The source URL can be any HTTP GET URL that is publicly accessible and\n downloads a single .zip file.
" + "smithy.api#documentation": "The source URL for the deployment that is used when calling StartDeployment
without CreateDeployment
. The source URL can be either an HTTP GET URL that is publicly accessible and\n downloads a single .zip file, or an Amazon S3 bucket and prefix.
The type of source specified by the sourceURL
.\n If the value is ZIP
, the source is a .zip file.\n If the value is BUCKET_PREFIX
, the source is an Amazon S3 bucket and\n prefix. If no value is specified, the default is ZIP
.