Skip to content

Commit 8f5b6e0

Browse files
author
AWS
committed
AWS Amplify Update: Added sourceUrlType field to StartDeployment request
1 parent b230317 commit 8f5b6e0

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Amplify",
4+
"contributor": "",
5+
"description": "Added sourceUrlType field to StartDeployment request"
6+
}

services/amplify/src/main/resources/codegen-resources/service-2.json

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
{"shape":"InternalFailureException"},
8282
{"shape":"LimitExceededException"}
8383
],
84-
"documentation":"<p>Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository. </p> <p>The maximum duration between the <code>CreateDeployment</code> call and the <code>StartDeployment</code> call cannot exceed 8 hours. If the duration exceeds 8 hours, the <code>StartDeployment</code> call and the associated <code>Job</code> will fail.</p>"
84+
"documentation":"<p>Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a Git repository. </p> <p>The maximum duration between the <code>CreateDeployment</code> call and the <code>StartDeployment</code> call cannot exceed 8 hours. If the duration exceeds 8 hours, the <code>StartDeployment</code> call and the associated <code>Job</code> will fail.</p>"
8585
},
8686
"CreateDomainAssociation":{
8787
"name":"CreateDomainAssociation",
@@ -490,7 +490,7 @@
490490
{"shape":"NotFoundException"},
491491
{"shape":"LimitExceededException"}
492492
],
493-
"documentation":"<p>Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository. </p> <p>The maximum duration between the <code>CreateDeployment</code> call and the <code>StartDeployment</code> call cannot exceed 8 hours. If the duration exceeds 8 hours, the <code>StartDeployment</code> call and the associated <code>Job</code> will fail.</p>"
493+
"documentation":"<p>Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a Git repository. </p> <p>The maximum duration between the <code>CreateDeployment</code> call and the <code>StartDeployment</code> call cannot exceed 8 hours. If the duration exceeds 8 hours, the <code>StartDeployment</code> call and the associated <code>Job</code> will fail.</p>"
494494
},
495495
"StartJob":{
496496
"name":"StartJob",
@@ -2326,7 +2326,15 @@
23262326
},
23272327
"jobType":{
23282328
"shape":"JobType",
2329-
"documentation":"<p> The type for the job. If the value is <code>RELEASE</code>, the job was manually released from its source by using the <code>StartJob</code> API. If the value is <code>RETRY</code>, the job was manually retried using the <code>StartJob</code> API. If the value is <code>WEB_HOOK</code>, the job was automatically triggered by webhooks. </p>"
2329+
"documentation":"<p> The type for the job. If the value is <code>RELEASE</code>, the job was manually released from its source by using the <code>StartJob</code> API. This value is available only for apps that are connected to a repository.</p> <p>If the value is <code>RETRY</code>, the job was manually retried using the <code>StartJob</code> API. If the value is <code>WEB_HOOK</code>, the job was automatically triggered by webhooks. If the value is <code>MANUAL</code>, the job is for a manually deployed app. Manually deployed apps are not connected to a Git repository.</p>"
2330+
},
2331+
"sourceUrl":{
2332+
"shape":"SourceUrl",
2333+
"documentation":"<p>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.</p>"
2334+
},
2335+
"sourceUrlType":{
2336+
"shape":"SourceUrlType",
2337+
"documentation":"<p>The type of source specified by the <code>sourceURL</code>. If the value is <code>ZIP</code>, the source is a .zip file. If the value is <code>BUCKET_PREFIX</code>, the source is an Amazon S3 bucket and prefix. If no value is specified, the default is <code>ZIP</code>.</p>"
23302338
}
23312339
},
23322340
"documentation":"<p> Describes the summary for an execution job for an Amplify app. </p>"
@@ -2811,7 +2819,14 @@
28112819
"SourceUrl":{
28122820
"type":"string",
28132821
"max":3000,
2814-
"pattern":"(?s).*"
2822+
"pattern":"^(s3|https|http)://.*"
2823+
},
2824+
"SourceUrlType":{
2825+
"type":"string",
2826+
"enum":[
2827+
"ZIP",
2828+
"BUCKET_PREFIX"
2829+
]
28152830
},
28162831
"StackArn":{
28172832
"type":"string",
@@ -2850,17 +2865,21 @@
28502865
},
28512866
"branchName":{
28522867
"shape":"BranchName",
2853-
"documentation":"<p>The name of the branch to use for the job. </p>",
2868+
"documentation":"<p>The name of the branch to use for the deployment job. </p>",
28542869
"location":"uri",
28552870
"locationName":"branchName"
28562871
},
28572872
"jobId":{
28582873
"shape":"JobId",
2859-
"documentation":"<p>The job ID for this deployment, generated by the create deployment request. </p>"
2874+
"documentation":"<p>The job ID for this deployment that is generated by the <code>CreateDeployment</code> request. </p>"
28602875
},
28612876
"sourceUrl":{
28622877
"shape":"SourceUrl",
2863-
"documentation":"<p>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. </p>"
2878+
"documentation":"<p>The source URL for the deployment that is used when calling <code>StartDeployment</code> without <code>CreateDeployment</code>. 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.</p>"
2879+
},
2880+
"sourceUrlType":{
2881+
"shape":"SourceUrlType",
2882+
"documentation":"<p>The type of source specified by the <code>sourceURL</code>. If the value is <code>ZIP</code>, the source is a .zip file. If the value is <code>BUCKET_PREFIX</code>, the source is an Amazon S3 bucket and prefix. If no value is specified, the default is <code>ZIP</code>.</p>"
28642883
}
28652884
},
28662885
"documentation":"<p>The request structure for the start a deployment request. </p>"

0 commit comments

Comments
 (0)