aws-sdk-wafv2 1.100.0 → 1.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,6 +79,10 @@ module Aws::WAFV2
79
79
  CustomResponse = Shapes::StructureShape.new(name: 'CustomResponse')
80
80
  CustomResponseBodies = Shapes::MapShape.new(name: 'CustomResponseBodies')
81
81
  CustomResponseBody = Shapes::StructureShape.new(name: 'CustomResponseBody')
82
+ DataProtection = Shapes::StructureShape.new(name: 'DataProtection')
83
+ DataProtectionAction = Shapes::StringShape.new(name: 'DataProtectionAction')
84
+ DataProtectionConfig = Shapes::StructureShape.new(name: 'DataProtectionConfig')
85
+ DataProtections = Shapes::ListShape.new(name: 'DataProtections')
82
86
  DefaultAction = Shapes::StructureShape.new(name: 'DefaultAction')
83
87
  DeleteAPIKeyRequest = Shapes::StructureShape.new(name: 'DeleteAPIKeyRequest')
84
88
  DeleteAPIKeyResponse = Shapes::StructureShape.new(name: 'DeleteAPIKeyResponse')
@@ -122,6 +126,10 @@ module Aws::WAFV2
122
126
  FieldIdentifier = Shapes::StringShape.new(name: 'FieldIdentifier')
123
127
  FieldToMatch = Shapes::StructureShape.new(name: 'FieldToMatch')
124
128
  FieldToMatchData = Shapes::StringShape.new(name: 'FieldToMatchData')
129
+ FieldToProtect = Shapes::StructureShape.new(name: 'FieldToProtect')
130
+ FieldToProtectKeyName = Shapes::StringShape.new(name: 'FieldToProtectKeyName')
131
+ FieldToProtectKeys = Shapes::ListShape.new(name: 'FieldToProtectKeys')
132
+ FieldToProtectType = Shapes::StringShape.new(name: 'FieldToProtectType')
125
133
  Filter = Shapes::StructureShape.new(name: 'Filter')
126
134
  FilterBehavior = Shapes::StringShape.new(name: 'FilterBehavior')
127
135
  FilterRequirement = Shapes::StringShape.new(name: 'FilterRequirement')
@@ -589,6 +597,7 @@ module Aws::WAFV2
589
597
  CreateWebACLRequest.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "Description"))
590
598
  CreateWebACLRequest.add_member(:rules, Shapes::ShapeRef.new(shape: Rules, location_name: "Rules"))
591
599
  CreateWebACLRequest.add_member(:visibility_config, Shapes::ShapeRef.new(shape: VisibilityConfig, required: true, location_name: "VisibilityConfig"))
600
+ CreateWebACLRequest.add_member(:data_protection_config, Shapes::ShapeRef.new(shape: DataProtectionConfig, location_name: "DataProtectionConfig"))
592
601
  CreateWebACLRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
593
602
  CreateWebACLRequest.add_member(:custom_response_bodies, Shapes::ShapeRef.new(shape: CustomResponseBodies, location_name: "CustomResponseBodies"))
594
603
  CreateWebACLRequest.add_member(:captcha_config, Shapes::ShapeRef.new(shape: CaptchaConfig, location_name: "CaptchaConfig"))
@@ -621,6 +630,17 @@ module Aws::WAFV2
621
630
  CustomResponseBody.add_member(:content, Shapes::ShapeRef.new(shape: ResponseContent, required: true, location_name: "Content"))
622
631
  CustomResponseBody.struct_class = Types::CustomResponseBody
623
632
 
633
+ DataProtection.add_member(:field, Shapes::ShapeRef.new(shape: FieldToProtect, required: true, location_name: "Field"))
634
+ DataProtection.add_member(:action, Shapes::ShapeRef.new(shape: DataProtectionAction, required: true, location_name: "Action"))
635
+ DataProtection.add_member(:exclude_rule_match_details, Shapes::ShapeRef.new(shape: Boolean, location_name: "ExcludeRuleMatchDetails"))
636
+ DataProtection.add_member(:exclude_rate_based_details, Shapes::ShapeRef.new(shape: Boolean, location_name: "ExcludeRateBasedDetails"))
637
+ DataProtection.struct_class = Types::DataProtection
638
+
639
+ DataProtectionConfig.add_member(:data_protections, Shapes::ShapeRef.new(shape: DataProtections, required: true, location_name: "DataProtections"))
640
+ DataProtectionConfig.struct_class = Types::DataProtectionConfig
641
+
642
+ DataProtections.member = Shapes::ShapeRef.new(shape: DataProtection)
643
+
624
644
  DefaultAction.add_member(:block, Shapes::ShapeRef.new(shape: BlockAction, location_name: "Block"))
625
645
  DefaultAction.add_member(:allow, Shapes::ShapeRef.new(shape: AllowAction, location_name: "Allow"))
626
646
  DefaultAction.struct_class = Types::DefaultAction
@@ -737,6 +757,12 @@ module Aws::WAFV2
737
757
  FieldToMatch.add_member(:ja3_fingerprint, Shapes::ShapeRef.new(shape: JA3Fingerprint, location_name: "JA3Fingerprint"))
738
758
  FieldToMatch.struct_class = Types::FieldToMatch
739
759
 
760
+ FieldToProtect.add_member(:field_type, Shapes::ShapeRef.new(shape: FieldToProtectType, required: true, location_name: "FieldType"))
761
+ FieldToProtect.add_member(:field_keys, Shapes::ShapeRef.new(shape: FieldToProtectKeys, location_name: "FieldKeys"))
762
+ FieldToProtect.struct_class = Types::FieldToProtect
763
+
764
+ FieldToProtectKeys.member = Shapes::ShapeRef.new(shape: FieldToProtectKeyName)
765
+
740
766
  Filter.add_member(:behavior, Shapes::ShapeRef.new(shape: FilterBehavior, required: true, location_name: "Behavior"))
741
767
  Filter.add_member(:requirement, Shapes::ShapeRef.new(shape: FilterRequirement, required: true, location_name: "Requirement"))
742
768
  Filter.add_member(:conditions, Shapes::ShapeRef.new(shape: Conditions, required: true, location_name: "Conditions"))
@@ -1580,6 +1606,7 @@ module Aws::WAFV2
1580
1606
  UpdateWebACLRequest.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "Description"))
1581
1607
  UpdateWebACLRequest.add_member(:rules, Shapes::ShapeRef.new(shape: Rules, location_name: "Rules"))
1582
1608
  UpdateWebACLRequest.add_member(:visibility_config, Shapes::ShapeRef.new(shape: VisibilityConfig, required: true, location_name: "VisibilityConfig"))
1609
+ UpdateWebACLRequest.add_member(:data_protection_config, Shapes::ShapeRef.new(shape: DataProtectionConfig, location_name: "DataProtectionConfig"))
1583
1610
  UpdateWebACLRequest.add_member(:lock_token, Shapes::ShapeRef.new(shape: LockToken, required: true, location_name: "LockToken"))
1584
1611
  UpdateWebACLRequest.add_member(:custom_response_bodies, Shapes::ShapeRef.new(shape: CustomResponseBodies, location_name: "CustomResponseBodies"))
1585
1612
  UpdateWebACLRequest.add_member(:captcha_config, Shapes::ShapeRef.new(shape: CaptchaConfig, location_name: "CaptchaConfig"))
@@ -1676,6 +1703,7 @@ module Aws::WAFV2
1676
1703
  WebACL.add_member(:description, Shapes::ShapeRef.new(shape: EntityDescription, location_name: "Description"))
1677
1704
  WebACL.add_member(:rules, Shapes::ShapeRef.new(shape: Rules, location_name: "Rules"))
1678
1705
  WebACL.add_member(:visibility_config, Shapes::ShapeRef.new(shape: VisibilityConfig, required: true, location_name: "VisibilityConfig"))
1706
+ WebACL.add_member(:data_protection_config, Shapes::ShapeRef.new(shape: DataProtectionConfig, location_name: "DataProtectionConfig"))
1679
1707
  WebACL.add_member(:capacity, Shapes::ShapeRef.new(shape: ConsumedCapacity, location_name: "Capacity"))
1680
1708
  WebACL.add_member(:pre_process_firewall_manager_rule_groups, Shapes::ShapeRef.new(shape: FirewallManagerRuleGroups, location_name: "PreProcessFirewallManagerRuleGroups"))
1681
1709
  WebACL.add_member(:post_process_firewall_manager_rule_groups, Shapes::ShapeRef.new(shape: FirewallManagerRuleGroups, location_name: "PostProcessFirewallManagerRuleGroups"))
@@ -10,40 +10,36 @@
10
10
  module Aws::WAFV2
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
- region = parameters.region
14
- use_dual_stack = parameters.use_dual_stack
15
- use_fips = parameters.use_fips
16
- endpoint = parameters.endpoint
17
- if Aws::Endpoints::Matchers.set?(endpoint)
18
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
19
15
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
16
  end
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
22
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
19
  end
24
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
25
21
  end
26
- if Aws::Endpoints::Matchers.set?(region)
27
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
29
25
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ return Aws::Endpoints::Endpoint.new(url: "https://wafv2-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
27
  end
32
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
29
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
35
31
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ return Aws::Endpoints::Endpoint.new(url: "https://wafv2-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
33
  end
38
34
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
35
  end
40
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
41
37
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
38
+ return Aws::Endpoints::Endpoint.new(url: "https://wafv2.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
39
  end
44
40
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
41
  end
46
- return Aws::Endpoints::Endpoint.new(url: "https://wafv2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
+ return Aws::Endpoints::Endpoint.new(url: "https://wafv2.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
43
  end
48
44
  end
49
45
  raise ArgumentError, "Invalid Configuration: Missing Region"