Interface PutPermissionPolicyRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<PutPermissionPolicyRequest.Builder,PutPermissionPolicyRequest>, SdkBuilder<PutPermissionPolicyRequest.Builder,PutPermissionPolicyRequest>, SdkPojo, SdkRequest.Builder, Wafv2Request.Builder
Enclosing class:
PutPermissionPolicyRequest

public static interface PutPermissionPolicyRequest.Builder extends Wafv2Request.Builder, SdkPojo, CopyableBuilder<PutPermissionPolicyRequest.Builder,PutPermissionPolicyRequest>
  • Method Details

    • resourceArn

      PutPermissionPolicyRequest.Builder resourceArn(String resourceArn)

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

      Parameters:
      resourceArn - The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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.

      Parameters:
      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:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      PutPermissionPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.