Skip to content

Commit 43845e9

Browse files
author
AWS
committed
AWS Amplify Update: Whereas previously custom headers were set via the app's buildspec, custom headers can now be set directly on the Amplify app for both ci/cd and manual deploy apps.
1 parent f162d46 commit 43845e9

File tree

2 files changed

+42
-18
lines changed

2 files changed

+42
-18
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": "Whereas previously custom headers were set via the app's buildspec, custom headers can now be set directly on the Amplify app for both ci/cd and manual deploy apps."
6+
}

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

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,10 @@
726726
"shape":"BuildSpec",
727727
"documentation":"<p> Describes the content of the build specification (build spec) for the Amplify app. </p>"
728728
},
729+
"customHeaders":{
730+
"shape":"CustomHeaders",
731+
"documentation":"<p>Describes the custom HTTP headers for the Amplify app.</p>"
732+
},
729733
"enableAutoBranchCreation":{
730734
"shape":"EnableAutoBranchCreation",
731735
"documentation":"<p> Enables automated branch creation for the Amplify app. </p>"
@@ -747,8 +751,9 @@
747751
},
748752
"AppId":{
749753
"type":"string",
750-
"max":255,
751-
"min":1
754+
"max":20,
755+
"min":1,
756+
"pattern":"d[a-z0-9]+"
752757
},
753758
"Apps":{
754759
"type":"list",
@@ -830,15 +835,15 @@
830835
},
831836
"enablePerformanceMode":{
832837
"shape":"EnablePerformanceMode",
833-
"documentation":"<p> Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. Enabling performance mode will mean that hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
838+
"documentation":"<p>Enables performance mode for the branch.</p> <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
834839
},
835840
"buildSpec":{
836841
"shape":"BuildSpec",
837842
"documentation":"<p> The build specification (build spec) for the autocreated branch. </p>"
838843
},
839844
"enablePullRequestPreview":{
840845
"shape":"EnablePullRequestPreview",
841-
"documentation":"<p> Enables pull request preview for the autocreated branch. </p>"
846+
"documentation":"<p> Enables pull request previews for the autocreated branch. </p>"
842847
},
843848
"pullRequestEnvironmentName":{
844849
"shape":"PullRequestEnvironmentName",
@@ -1017,7 +1022,7 @@
10171022
},
10181023
"enablePerformanceMode":{
10191024
"shape":"EnablePerformanceMode",
1020-
"documentation":"<p> Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. Enabling performance mode will mean that hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
1025+
"documentation":"<p>Enables performance mode for the branch.</p> <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
10211026
},
10221027
"thumbnailUrl":{
10231028
"shape":"ThumbnailUrl",
@@ -1041,7 +1046,7 @@
10411046
},
10421047
"enablePullRequestPreview":{
10431048
"shape":"EnablePullRequestPreview",
1044-
"documentation":"<p> Enables pull request preview for the branch. </p>"
1049+
"documentation":"<p> Enables pull request previews for the branch. </p>"
10451050
},
10461051
"pullRequestEnvironmentName":{
10471052
"shape":"PullRequestEnvironmentName",
@@ -1108,7 +1113,7 @@
11081113
"members":{
11091114
"name":{
11101115
"shape":"Name",
1111-
"documentation":"<p> The name for the Amplify app. </p>"
1116+
"documentation":"<p> The name for an Amplify app. </p>"
11121117
},
11131118
"description":{
11141119
"shape":"Description",
@@ -1166,17 +1171,21 @@
11661171
"shape":"BuildSpec",
11671172
"documentation":"<p> The build specification (build spec) for an Amplify app. </p>"
11681173
},
1174+
"customHeaders":{
1175+
"shape":"CustomHeaders",
1176+
"documentation":"<p>The custom HTTP headers for an Amplify app.</p>"
1177+
},
11691178
"enableAutoBranchCreation":{
11701179
"shape":"EnableAutoBranchCreation",
1171-
"documentation":"<p> Enables automated branch creation for the Amplify app. </p>"
1180+
"documentation":"<p> Enables automated branch creation for an Amplify app. </p>"
11721181
},
11731182
"autoBranchCreationPatterns":{
11741183
"shape":"AutoBranchCreationPatterns",
1175-
"documentation":"<p> The automated branch creation glob patterns for the Amplify app. </p>"
1184+
"documentation":"<p> The automated branch creation glob patterns for an Amplify app. </p>"
11761185
},
11771186
"autoBranchCreationConfig":{
11781187
"shape":"AutoBranchCreationConfig",
1179-
"documentation":"<p> The automated branch creation configuration for the Amplify app. </p>"
1188+
"documentation":"<p> The automated branch creation configuration for an Amplify app. </p>"
11801189
}
11811190
},
11821191
"documentation":"<p> The request structure used to create apps in Amplify. </p>"
@@ -1278,7 +1287,7 @@
12781287
},
12791288
"enablePerformanceMode":{
12801289
"shape":"EnablePerformanceMode",
1281-
"documentation":"<p> Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. Enabling performance mode will mean that hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
1290+
"documentation":"<p>Enables performance mode for the branch.</p> <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
12821291
},
12831292
"tags":{
12841293
"shape":"TagMap",
@@ -1298,7 +1307,7 @@
12981307
},
12991308
"enablePullRequestPreview":{
13001309
"shape":"EnablePullRequestPreview",
1301-
"documentation":"<p> Enables pull request preview for this branch. </p>"
1310+
"documentation":"<p> Enables pull request previews for this branch. </p>"
13021311
},
13031312
"pullRequestEnvironmentName":{
13041313
"shape":"PullRequestEnvironmentName",
@@ -1463,6 +1472,11 @@
14631472
"member":{"shape":"CustomDomain"},
14641473
"max":255
14651474
},
1475+
"CustomHeaders":{
1476+
"type":"string",
1477+
"max":25000,
1478+
"min":1
1479+
},
14661480
"CustomRule":{
14671481
"type":"structure",
14681482
"required":[
@@ -2541,7 +2555,7 @@
25412555
"MaxResults":{
25422556
"type":"integer",
25432557
"max":100,
2544-
"min":1
2558+
"min":0
25452559
},
25462560
"Name":{
25472561
"type":"string",
@@ -3086,17 +3100,21 @@
30863100
"shape":"BuildSpec",
30873101
"documentation":"<p> The build specification (build spec) for an Amplify app. </p>"
30883102
},
3103+
"customHeaders":{
3104+
"shape":"CustomHeaders",
3105+
"documentation":"<p>The custom HTTP headers for an Amplify app.</p>"
3106+
},
30893107
"enableAutoBranchCreation":{
30903108
"shape":"EnableAutoBranchCreation",
3091-
"documentation":"<p> Enables automated branch creation for the Amplify app. </p>"
3109+
"documentation":"<p> Enables automated branch creation for an Amplify app. </p>"
30923110
},
30933111
"autoBranchCreationPatterns":{
30943112
"shape":"AutoBranchCreationPatterns",
3095-
"documentation":"<p> Describes the automated branch creation glob patterns for the Amplify app. </p>"
3113+
"documentation":"<p> Describes the automated branch creation glob patterns for an Amplify app. </p>"
30963114
},
30973115
"autoBranchCreationConfig":{
30983116
"shape":"AutoBranchCreationConfig",
3099-
"documentation":"<p> The automated branch creation configuration for the Amplify app. </p>"
3117+
"documentation":"<p> The automated branch creation configuration for an Amplify app. </p>"
31003118
},
31013119
"repository":{
31023120
"shape":"Repository",
@@ -3177,7 +3195,7 @@
31773195
},
31783196
"enablePerformanceMode":{
31793197
"shape":"EnablePerformanceMode",
3180-
"documentation":"<p> Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. Enabling performance mode will mean that hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
3198+
"documentation":"<p>Enables performance mode for the branch.</p> <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. </p>"
31813199
},
31823200
"buildSpec":{
31833201
"shape":"BuildSpec",
@@ -3193,7 +3211,7 @@
31933211
},
31943212
"enablePullRequestPreview":{
31953213
"shape":"EnablePullRequestPreview",
3196-
"documentation":"<p> Enables pull request preview for this branch. </p>"
3214+
"documentation":"<p> Enables pull request previews for this branch. </p>"
31973215
},
31983216
"pullRequestEnvironmentName":{
31993217
"shape":"PullRequestEnvironmentName",

0 commit comments

Comments
 (0)