Skip to content

Commit be98eba

Browse files
author
awstools
committed
feat(client-amplify): Added WAF Configuration to Amplify Apps
1 parent 4e1a96b commit be98eba

14 files changed

+206
-21
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ export interface CreateAppCommandOutput extends CreateAppResult, __MetadataBeare
152152
* // cacheConfig: { // CacheConfig
153153
* // type: "AMPLIFY_MANAGED" || "AMPLIFY_MANAGED_NO_COOKIES", // required
154154
* // },
155+
* // webhookCreateTime: new Date("TIMESTAMP"),
156+
* // wafConfiguration: { // WafConfiguration
157+
* // webAclArn: "STRING_VALUE",
158+
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
159+
* // statusReason: "STRING_VALUE",
160+
* // },
155161
* // },
156162
* // };
157163
*

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

+6
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ export interface DeleteAppCommandOutput extends DeleteAppResult, __MetadataBeare
100100
* // cacheConfig: { // CacheConfig
101101
* // type: "AMPLIFY_MANAGED" || "AMPLIFY_MANAGED_NO_COOKIES", // required
102102
* // },
103+
* // webhookCreateTime: new Date("TIMESTAMP"),
104+
* // wafConfiguration: { // WafConfiguration
105+
* // webAclArn: "STRING_VALUE",
106+
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
107+
* // statusReason: "STRING_VALUE",
108+
* // },
103109
* // },
104110
* // };
105111
*

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface DeleteJobCommandOutput extends DeleteJobResult, __MetadataBeare
5050
* // commitMessage: "STRING_VALUE", // required
5151
* // commitTime: new Date("TIMESTAMP"), // required
5252
* // startTime: new Date("TIMESTAMP"), // required
53-
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
53+
* // status: "CREATED" || "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
5454
* // endTime: new Date("TIMESTAMP"),
5555
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
5656
* // sourceUrl: "STRING_VALUE",

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

+6
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ export interface GetAppCommandOutput extends GetAppResult, __MetadataBearer {}
100100
* // cacheConfig: { // CacheConfig
101101
* // type: "AMPLIFY_MANAGED" || "AMPLIFY_MANAGED_NO_COOKIES", // required
102102
* // },
103+
* // webhookCreateTime: new Date("TIMESTAMP"),
104+
* // wafConfiguration: { // WafConfiguration
105+
* // webAclArn: "STRING_VALUE",
106+
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
107+
* // statusReason: "STRING_VALUE",
108+
* // },
103109
* // },
104110
* // };
105111
*

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface GetJobCommandOutput extends GetJobResult, __MetadataBearer {}
5151
* // commitMessage: "STRING_VALUE", // required
5252
* // commitTime: new Date("TIMESTAMP"), // required
5353
* // startTime: new Date("TIMESTAMP"), // required
54-
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
54+
* // status: "CREATED" || "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
5555
* // endTime: new Date("TIMESTAMP"),
5656
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
5757
* // sourceUrl: "STRING_VALUE",
@@ -61,7 +61,7 @@ export interface GetJobCommandOutput extends GetJobResult, __MetadataBearer {}
6161
* // { // Step
6262
* // stepName: "STRING_VALUE", // required
6363
* // startTime: new Date("TIMESTAMP"), // required
64-
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
64+
* // status: "CREATED" || "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
6565
* // endTime: new Date("TIMESTAMP"), // required
6666
* // logUrl: "STRING_VALUE",
6767
* // artifactsUrl: "STRING_VALUE",

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

+6
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ export interface ListAppsCommandOutput extends ListAppsResult, __MetadataBearer
102102
* // cacheConfig: { // CacheConfig
103103
* // type: "AMPLIFY_MANAGED" || "AMPLIFY_MANAGED_NO_COOKIES", // required
104104
* // },
105+
* // webhookCreateTime: new Date("TIMESTAMP"),
106+
* // wafConfiguration: { // WafConfiguration
107+
* // webAclArn: "STRING_VALUE",
108+
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
109+
* // statusReason: "STRING_VALUE",
110+
* // },
105111
* // },
106112
* // ],
107113
* // nextToken: "STRING_VALUE",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface ListJobsCommandOutput extends ListJobsResult, __MetadataBearer
5252
* // commitMessage: "STRING_VALUE", // required
5353
* // commitTime: new Date("TIMESTAMP"), // required
5454
* // startTime: new Date("TIMESTAMP"), // required
55-
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
55+
* // status: "CREATED" || "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
5656
* // endTime: new Date("TIMESTAMP"),
5757
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
5858
* // sourceUrl: "STRING_VALUE",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface StartDeploymentCommandOutput extends StartDeploymentResult, __M
5757
* // commitMessage: "STRING_VALUE", // required
5858
* // commitTime: new Date("TIMESTAMP"), // required
5959
* // startTime: new Date("TIMESTAMP"), // required
60-
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
60+
* // status: "CREATED" || "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
6161
* // endTime: new Date("TIMESTAMP"),
6262
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
6363
* // sourceUrl: "STRING_VALUE",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export interface StartJobCommandOutput extends StartJobResult, __MetadataBearer
5555
* // commitMessage: "STRING_VALUE", // required
5656
* // commitTime: new Date("TIMESTAMP"), // required
5757
* // startTime: new Date("TIMESTAMP"), // required
58-
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
58+
* // status: "CREATED" || "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
5959
* // endTime: new Date("TIMESTAMP"),
6060
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
6161
* // sourceUrl: "STRING_VALUE",

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface StopJobCommandOutput extends StopJobResult, __MetadataBearer {}
5050
* // commitMessage: "STRING_VALUE", // required
5151
* // commitTime: new Date("TIMESTAMP"), // required
5252
* // startTime: new Date("TIMESTAMP"), // required
53-
* // status: "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
53+
* // status: "CREATED" || "PENDING" || "PROVISIONING" || "RUNNING" || "FAILED" || "SUCCEED" || "CANCELLING" || "CANCELLED", // required
5454
* // endTime: new Date("TIMESTAMP"),
5555
* // jobType: "RELEASE" || "RETRY" || "MANUAL" || "WEB_HOOK", // required
5656
* // sourceUrl: "STRING_VALUE",

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

+6
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@ export interface UpdateAppCommandOutput extends UpdateAppResult, __MetadataBeare
150150
* // cacheConfig: { // CacheConfig
151151
* // type: "AMPLIFY_MANAGED" || "AMPLIFY_MANAGED_NO_COOKIES", // required
152152
* // },
153+
* // webhookCreateTime: new Date("TIMESTAMP"),
154+
* // wafConfiguration: { // WafConfiguration
155+
* // webAclArn: "STRING_VALUE",
156+
* // wafStatus: "ASSOCIATING" || "ASSOCIATION_FAILED" || "ASSOCIATION_SUCCESS" || "DISASSOCIATING" || "DISASSOCIATION_FAILED",
157+
* // statusReason: "STRING_VALUE",
158+
* // },
153159
* // },
154160
* // };
155161
*

clients/client-amplify/src/models/models_0.ts

+66-7
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,51 @@ export const RepositoryCloneMethod = {
421421
*/
422422
export type RepositoryCloneMethod = (typeof RepositoryCloneMethod)[keyof typeof RepositoryCloneMethod];
423423

424+
/**
425+
* @public
426+
* @enum
427+
*/
428+
export const WafStatus = {
429+
ASSOCIATING: "ASSOCIATING",
430+
ASSOCIATION_FAILED: "ASSOCIATION_FAILED",
431+
ASSOCIATION_SUCCESS: "ASSOCIATION_SUCCESS",
432+
DISASSOCIATING: "DISASSOCIATING",
433+
DISASSOCIATION_FAILED: "DISASSOCIATION_FAILED",
434+
} as const;
435+
436+
/**
437+
* @public
438+
*/
439+
export type WafStatus = (typeof WafStatus)[keyof typeof WafStatus];
440+
441+
/**
442+
* <p>Describes the Firewall configuration for a hosted Amplify application.
443+
* Firewall support enables you to protect your web applications with a direct integration
444+
* with WAF. For more information about using WAF protections for an Amplify application, see
445+
* <a href="https://docs.aws.amazon.com/amplify/latest/userguide/WAF-integration.html">Firewall support for hosted sites</a> in the <i>Amplify
446+
* User Guide</i>. </p>
447+
* @public
448+
*/
449+
export interface WafConfiguration {
450+
/**
451+
* <p>The Amazon Resource Name (ARN) for the web ACL associated with an Amplify app.</p>
452+
* @public
453+
*/
454+
webAclArn?: string | undefined;
455+
456+
/**
457+
* <p>The status of the process to associate or disassociate a web ACL to an Amplify app.</p>
458+
* @public
459+
*/
460+
wafStatus?: WafStatus | undefined;
461+
462+
/**
463+
* <p>The reason for the current status of the Firewall configuration.</p>
464+
* @public
465+
*/
466+
statusReason?: string | undefined;
467+
}
468+
424469
/**
425470
* <p>Represents the different branches of a repository for building, deploying, and hosting
426471
* an Amplify app. </p>
@@ -475,13 +520,13 @@ export interface App {
475520
platform: Platform | undefined;
476521

477522
/**
478-
* <p>Creates a date and time for the Amplify app. </p>
523+
* <p>A timestamp of when Amplify created the application.</p>
479524
* @public
480525
*/
481526
createTime: Date | undefined;
482527

483528
/**
484-
* <p>Updates the date and time for the Amplify app. </p>
529+
* <p>A timestamp of when Amplify updated the application.</p>
485530
* @public
486531
*/
487532
updateTime: Date | undefined;
@@ -598,6 +643,19 @@ export interface App {
598643
* @public
599644
*/
600645
cacheConfig?: CacheConfig | undefined;
646+
647+
/**
648+
* <p>A timestamp of when Amplify created the webhook in your Git repository.</p>
649+
* @public
650+
*/
651+
webhookCreateTime?: Date | undefined;
652+
653+
/**
654+
* <p>Describes the Firewall configuration for the Amplify app. Firewall support enables you to protect your hosted applications with a direct integration
655+
* with WAF.</p>
656+
* @public
657+
*/
658+
wafConfiguration?: WafConfiguration | undefined;
601659
}
602660

603661
/**
@@ -999,13 +1057,13 @@ export interface Branch {
9991057
enableNotification: boolean | undefined;
10001058

10011059
/**
1002-
* <p> The creation date and time for a branch that is part of an Amplify app. </p>
1060+
* <p>A timestamp of when Amplify created the branch.</p>
10031061
* @public
10041062
*/
10051063
createTime: Date | undefined;
10061064

10071065
/**
1008-
* <p> The last updated date and time for a branch that is part of an Amplify app. </p>
1066+
* <p>A timestamp for the last updated time for a branch.</p>
10091067
* @public
10101068
*/
10111069
updateTime: Date | undefined;
@@ -1615,13 +1673,13 @@ export interface Webhook {
16151673
description: string | undefined;
16161674

16171675
/**
1618-
* <p>The create date and time for a webhook. </p>
1676+
* <p>A timestamp of when Amplify created the webhook in your Git repository.</p>
16191677
* @public
16201678
*/
16211679
createTime: Date | undefined;
16221680

16231681
/**
1624-
* <p>Updates the date and time for a webhook. </p>
1682+
* <p>A timestamp of when Amplify updated the webhook in your Git repository.</p>
16251683
* @public
16261684
*/
16271685
updateTime: Date | undefined;
@@ -1814,6 +1872,7 @@ export type SourceUrlType = (typeof SourceUrlType)[keyof typeof SourceUrlType];
18141872
export const JobStatus = {
18151873
CANCELLED: "CANCELLED",
18161874
CANCELLING: "CANCELLING",
1875+
CREATED: "CREATED",
18171876
FAILED: "FAILED",
18181877
PENDING: "PENDING",
18191878
PROVISIONING: "PROVISIONING",
@@ -1856,7 +1915,7 @@ export interface JobSummary {
18561915
commitMessage: string | undefined;
18571916

18581917
/**
1859-
* <p> The commit date and time for the job. </p>
1918+
* <p>The commit date and time for the job. </p>
18601919
* @public
18611920
*/
18621921
commitTime: Date | undefined;

clients/client-amplify/src/protocols/Aws_restJson1.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,8 @@ const de_App = (output: any, context: __SerdeContext): App => {
19531953
repositoryCloneMethod: __expectString,
19541954
tags: _json,
19551955
updateTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1956+
wafConfiguration: _json,
1957+
webhookCreateTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
19561958
}) as any;
19571959
};
19581960

@@ -2168,6 +2170,8 @@ const de_Steps = (output: any, context: __SerdeContext): Step[] => {
21682170

21692171
// de_TagMap omitted.
21702172

2173+
// de_WafConfiguration omitted.
2174+
21712175
/**
21722176
* deserializeAws_restJson1Webhook
21732177
*/

0 commit comments

Comments
 (0)