Class PutPermissionPolicyRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<PutPermissionPolicyRequest.Builder,PutPermissionPolicyRequest>

@Generated("software.amazon.awssdk:codegen") public final class PutPermissionPolicyRequest extends Wafv2Request implements ToCopyableBuilder<PutPermissionPolicyRequest.Builder,PutPermissionPolicyRequest>
  • Method Details

    • resourceArn

      public final String resourceArn()

      The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.

      Returns:
      The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.
    • policy

      public final String policy()

      The policy to attach to the specified rule group.

      The policy specifications must conform to the following:

      • The policy must be composed using IAM Policy version 2012-10-17.

      • The policy must include specifications for Effect, Action, and Principal.

      • Effect must specify Allow.

      • Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups and may optionally specify wafv2:GetRuleGroup. WAF rejects any extra actions or wildcard actions in the policy.

      • The policy must not include a Resource parameter.

      For more information, see IAM Policies.

      Returns:
      The policy to attach to the specified rule group.

      The policy specifications must conform to the following:

      • The policy must be composed using IAM Policy version 2012-10-17.

      • The policy must include specifications for Effect, Action, and Principal.

      • Effect must specify Allow.

      • Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and wafv2:PutFirewallManagerRuleGroups and may optionally specify wafv2:GetRuleGroup. WAF rejects any extra actions or wildcard actions in the policy.

      • The policy must not include a Resource parameter.

      For more information, see IAM Policies.

    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<PutPermissionPolicyRequest.Builder,PutPermissionPolicyRequest>
      Specified by:
      toBuilder in class Wafv2Request
    • builder

      public static PutPermissionPolicyRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends PutPermissionPolicyRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo