Skip to content

Commit 07f9765

Browse files
author
awstools
committed
feat(client-wafv2): Add a new CurrentDefaultVersion field to ListAvailableManagedRuleGroupVersions API response; add a new VersioningSupported boolean to each ManagedRuleGroup returned from ListAvailableManagedRuleGroups API response.
1 parent d49135a commit 07f9765

File tree

3 files changed

+48
-6
lines changed

3 files changed

+48
-6
lines changed

Diff for: clients/client-wafv2/src/models/models_0.ts

+18-2
Original file line numberDiff line numberDiff line change
@@ -1367,6 +1367,7 @@ export namespace UsernameField {
13671367
* <p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>
13681368
* <p>Use this for the account takeover prevention managed rule group
13691369
* <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p>
1370+
* <p>You can provide multiple individual <code>ManagedRuleGroupConfig</code> objects for any rule group configuration, for example <code>UsernameField</code> and <code>PasswordField</code>. The configuration that you provide depends on the needs of the managed rule group. For the ATP managed rule group, you provide the following individual configuration objects: <code>LoginPath</code>, <code>PasswordField</code>, <code>PayloadType</code> and <code>UsernameField</code>.</p>
13701371
*/
13711372
export interface ManagedRuleGroupConfig {
13721373
/**
@@ -4743,6 +4744,11 @@ export interface ManagedRuleGroupSummary {
47434744
*/
47444745
Name?: string;
47454746

4747+
/**
4748+
* <p>Indicates whether the managed rule group is versioned. If it is, you can retrieve the versions list by calling <a>ListAvailableManagedRuleGroupVersions</a>. </p>
4749+
*/
4750+
VersioningSupported?: boolean;
4751+
47464752
/**
47474753
* <p>The description of the managed rule group, provided by Amazon Web Services Managed Rules or the Amazon Web Services Marketplace seller who manages it.</p>
47484754
*/
@@ -4867,6 +4873,11 @@ export interface ListAvailableManagedRuleGroupVersionsResponse {
48674873
* <p>The versions that are currently available for the specified managed rule group. </p>
48684874
*/
48694875
Versions?: ManagedRuleGroupVersion[];
4876+
4877+
/**
4878+
* <p>The name of the version that's currently set as the default. </p>
4879+
*/
4880+
CurrentDefaultVersion?: string;
48704881
}
48714882

48724883
export namespace ListAvailableManagedRuleGroupVersionsResponse {
@@ -5726,7 +5737,9 @@ export interface PutPermissionPolicyRequest {
57265737
* </li>
57275738
* <li>
57285739
* <p>
5729-
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and <code>wafv2:PutFirewallManagerRuleGroups</code>. WAF rejects any extra actions or wildcard actions in the policy.</p>
5740+
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and
5741+
* <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>.
5742+
* WAF rejects any extra actions or wildcard actions in the policy.</p>
57305743
* </li>
57315744
* <li>
57325745
* <p>The policy must not include a <code>Resource</code> parameter.</p>
@@ -5774,7 +5787,9 @@ export namespace PutPermissionPolicyResponse {
57745787
* </li>
57755788
* <li>
57765789
* <p>
5777-
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and <code>wafv2:PutFirewallManagerRuleGroups</code>. WAF rejects any extra actions or wildcard actions in the policy.</p>
5790+
* <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and
5791+
* <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>.
5792+
* WAF rejects any extra actions or wildcard actions in the policy.</p>
57785793
* </li>
57795794
* <li>
57805795
* <p>The policy must not include a <code>Resource</code> parameter.</p>
@@ -6300,6 +6315,7 @@ export interface ManagedRuleGroupStatement {
63006315
* <p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>
63016316
* <p>Use this for the account takeover prevention managed rule group
63026317
* <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p>
6318+
* <p>You can provide multiple individual <code>ManagedRuleGroupConfig</code> objects for any rule group configuration, for example <code>UsernameField</code> and <code>PasswordField</code>. The configuration that you provide depends on the needs of the managed rule group. For the ATP managed rule group, you provide the following individual configuration objects: <code>LoginPath</code>, <code>PasswordField</code>, <code>PayloadType</code> and <code>UsernameField</code>.</p>
63036319
*/
63046320
ManagedRuleGroupConfigs?: ManagedRuleGroupConfig[];
63056321
}

Diff for: clients/client-wafv2/src/protocols/Aws_json1_1.ts

+5
Original file line numberDiff line numberDiff line change
@@ -2596,6 +2596,9 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsCommandError =
25962596
case "WAFInvalidParameterException":
25972597
case "com.amazonaws.wafv2#WAFInvalidParameterException":
25982598
throw await deserializeAws_json1_1WAFInvalidParameterExceptionResponse(parsedOutput, context);
2599+
case "WAFNonexistentItemException":
2600+
case "com.amazonaws.wafv2#WAFNonexistentItemException":
2601+
throw await deserializeAws_json1_1WAFNonexistentItemExceptionResponse(parsedOutput, context);
25992602
default:
26002603
const parsedBody = parsedOutput.body;
26012604
response = new __BaseException({
@@ -6154,6 +6157,7 @@ const deserializeAws_json1_1ListAvailableManagedRuleGroupVersionsResponse = (
61546157
context: __SerdeContext
61556158
): ListAvailableManagedRuleGroupVersionsResponse => {
61566159
return {
6160+
CurrentDefaultVersion: __expectString(output.CurrentDefaultVersion),
61576161
NextMarker: __expectString(output.NextMarker),
61586162
Versions:
61596163
output.Versions !== undefined && output.Versions !== null
@@ -6398,6 +6402,7 @@ const deserializeAws_json1_1ManagedRuleGroupSummary = (
63986402
Description: __expectString(output.Description),
63996403
Name: __expectString(output.Name),
64006404
VendorName: __expectString(output.VendorName),
6405+
VersioningSupported: __expectBoolean(output.VersioningSupported),
64016406
} as any;
64026407
};
64036408

Diff for: codegen/sdk-codegen/aws-models/wafv2.json

+25-4
Original file line numberDiff line numberDiff line change
@@ -2872,6 +2872,12 @@
28722872
"type": "list",
28732873
"member": {
28742874
"target": "com.amazonaws.wafv2#ExcludedRule"
2875+
},
2876+
"traits": {
2877+
"smithy.api#length": {
2878+
"min": 0,
2879+
"max": 100
2880+
}
28752881
}
28762882
},
28772883
"com.amazonaws.wafv2#FailureReason": {
@@ -4463,6 +4469,9 @@
44634469
},
44644470
{
44654471
"target": "com.amazonaws.wafv2#WAFInvalidParameterException"
4472+
},
4473+
{
4474+
"target": "com.amazonaws.wafv2#WAFNonexistentItemException"
44664475
}
44674476
],
44684477
"traits": {
@@ -4521,6 +4530,12 @@
45214530
"traits": {
45224531
"smithy.api#documentation": "<p>The versions that are currently available for the specified managed rule group. </p>"
45234532
}
4533+
},
4534+
"CurrentDefaultVersion": {
4535+
"target": "com.amazonaws.wafv2#VersionKeyString",
4536+
"traits": {
4537+
"smithy.api#documentation": "<p>The name of the version that's currently set as the default. </p>"
4538+
}
45244539
}
45254540
}
45264541
},
@@ -5302,7 +5317,7 @@
53025317
}
53035318
},
53045319
"traits": {
5305-
"smithy.api#documentation": "<p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>\n <p>Use this for the account takeover prevention managed rule group \n <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p>"
5320+
"smithy.api#documentation": "<p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>\n <p>Use this for the account takeover prevention managed rule group \n <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p> \n <p>You can provide multiple individual <code>ManagedRuleGroupConfig</code> objects for any rule group configuration, for example <code>UsernameField</code> and <code>PasswordField</code>. The configuration that you provide depends on the needs of the managed rule group. For the ATP managed rule group, you provide the following individual configuration objects: <code>LoginPath</code>, <code>PasswordField</code>, <code>PayloadType</code> and <code>UsernameField</code>.</p>"
53065321
}
53075322
},
53085323
"com.amazonaws.wafv2#ManagedRuleGroupConfigs": {
@@ -5354,7 +5369,7 @@
53545369
"ManagedRuleGroupConfigs": {
53555370
"target": "com.amazonaws.wafv2#ManagedRuleGroupConfigs",
53565371
"traits": {
5357-
"smithy.api#documentation": "<p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>\n <p>Use this for the account takeover prevention managed rule group \n <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p>"
5372+
"smithy.api#documentation": "<p>Additional information that's used by a managed rule group. Most managed rule groups don't require this.</p>\n <p>Use this for the account takeover prevention managed rule group \n <code>AWSManagedRulesATPRuleSet</code>, to provide information about the sign-in page of your application. </p> \n <p>You can provide multiple individual <code>ManagedRuleGroupConfig</code> objects for any rule group configuration, for example <code>UsernameField</code> and <code>PasswordField</code>. The configuration that you provide depends on the needs of the managed rule group. For the ATP managed rule group, you provide the following individual configuration objects: <code>LoginPath</code>, <code>PasswordField</code>, <code>PayloadType</code> and <code>UsernameField</code>.</p>"
53585373
}
53595374
}
53605375
},
@@ -5383,6 +5398,12 @@
53835398
"smithy.api#documentation": "<p>The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.</p>"
53845399
}
53855400
},
5401+
"VersioningSupported": {
5402+
"target": "com.amazonaws.wafv2#Boolean",
5403+
"traits": {
5404+
"smithy.api#documentation": "<p>Indicates whether the managed rule group is versioned. If it is, you can retrieve the versions list by calling <a>ListAvailableManagedRuleGroupVersions</a>. </p>"
5405+
}
5406+
},
53865407
"Description": {
53875408
"target": "com.amazonaws.wafv2#EntityDescription",
53885409
"traits": {
@@ -6226,7 +6247,7 @@
62266247
"Policy": {
62276248
"target": "com.amazonaws.wafv2#PolicyString",
62286249
"traits": {
6229-
"smithy.api#documentation": "<p>The policy to attach to the specified rule group. </p>\n \n <p>The policy specifications must conform to the following:</p>\n <ul>\n <li> \n <p>The policy must be composed using IAM Policy version 2012-10-17 or version 2015-01-01.</p>\n </li>\n <li>\n <p>The policy must include specifications for <code>Effect</code>, <code>Action</code>, and <code>Principal</code>.</p>\n </li>\n <li>\n <p>\n <code>Effect</code> must specify <code>Allow</code>.</p>\n </li>\n <li>\n <p>\n <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and <code>wafv2:PutFirewallManagerRuleGroups</code>. WAF rejects any extra actions or wildcard actions in the policy.</p>\n </li>\n <li>\n <p>The policy must not include a <code>Resource</code> parameter.</p>\n </li>\n </ul> \n <p>For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html\">IAM Policies</a>. </p>",
6250+
"smithy.api#documentation": "<p>The policy to attach to the specified rule group. </p>\n \n <p>The policy specifications must conform to the following:</p>\n <ul>\n <li> \n <p>The policy must be composed using IAM Policy version 2012-10-17 or version 2015-01-01.</p>\n </li>\n <li>\n <p>The policy must include specifications for <code>Effect</code>, <code>Action</code>, and <code>Principal</code>.</p>\n </li>\n <li>\n <p>\n <code>Effect</code> must specify <code>Allow</code>.</p>\n </li>\n <li>\n <p>\n <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and \n <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>. \n WAF rejects any extra actions or wildcard actions in the policy.</p>\n </li>\n <li>\n <p>The policy must not include a <code>Resource</code> parameter.</p>\n </li>\n </ul> \n <p>For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html\">IAM Policies</a>. </p>",
62306251
"smithy.api#required": {}
62316252
}
62326253
}
@@ -8287,7 +8308,7 @@
82878308
}
82888309
},
82898310
"traits": {
8290-
"smithy.api#documentation": "<p>The operation failed because the specified policy isn't in the proper format. </p>\n \n <p>The policy specifications must conform to the following:</p>\n <ul>\n <li> \n <p>The policy must be composed using IAM Policy version 2012-10-17 or version 2015-01-01.</p>\n </li>\n <li>\n <p>The policy must include specifications for <code>Effect</code>, <code>Action</code>, and <code>Principal</code>.</p>\n </li>\n <li>\n <p>\n <code>Effect</code> must specify <code>Allow</code>.</p>\n </li>\n <li>\n <p>\n <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and <code>wafv2:PutFirewallManagerRuleGroups</code>. WAF rejects any extra actions or wildcard actions in the policy.</p>\n </li>\n <li>\n <p>The policy must not include a <code>Resource</code> parameter.</p>\n </li>\n </ul> \n <p>For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html\">IAM Policies</a>. </p>",
8311+
"smithy.api#documentation": "<p>The operation failed because the specified policy isn't in the proper format. </p>\n \n <p>The policy specifications must conform to the following:</p>\n <ul>\n <li> \n <p>The policy must be composed using IAM Policy version 2012-10-17 or version 2015-01-01.</p>\n </li>\n <li>\n <p>The policy must include specifications for <code>Effect</code>, <code>Action</code>, and <code>Principal</code>.</p>\n </li>\n <li>\n <p>\n <code>Effect</code> must specify <code>Allow</code>.</p>\n </li>\n <li>\n <p>\n <code>Action</code> must specify <code>wafv2:CreateWebACL</code>, <code>wafv2:UpdateWebACL</code>, and \n <code>wafv2:PutFirewallManagerRuleGroups</code> and may optionally specify <code>wafv2:GetRuleGroup</code>. \n WAF rejects any extra actions or wildcard actions in the policy.</p>\n </li>\n <li>\n <p>The policy must not include a <code>Resource</code> parameter.</p>\n </li>\n </ul> \n <p>For more information, see <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html\">IAM Policies</a>. </p>",
82918312
"smithy.api#error": "client"
82928313
}
82938314
},

0 commit comments

Comments
 (0)