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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutPermissionPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutPermissionPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutPermissionPolicyRequest.Builderpolicy(String policy)The policy to attach to the specified rule group.PutPermissionPolicyRequest.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.services.wafv2.model.Wafv2Request.Builder
build
-
-
-
-
Method Detail
-
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
PutPermissionPolicyRequest.Builder policy(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, andPrincipal. -
Effectmust specifyAllow. -
Actionmust specifywafv2:CreateWebACL,wafv2:UpdateWebACL, andwafv2:PutFirewallManagerRuleGroupsand may optionally specifywafv2:GetRuleGroup. WAF rejects any extra actions or wildcard actions in the policy. -
The policy must not include a
Resourceparameter.
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, andPrincipal. -
Effectmust specifyAllow. -
Actionmust specifywafv2:CreateWebACL,wafv2:UpdateWebACL, andwafv2:PutFirewallManagerRuleGroupsand may optionally specifywafv2:GetRuleGroup. WAF rejects any extra actions or wildcard actions in the policy. -
The policy must not include a
Resourceparameter.
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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutPermissionPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-