Class PutPermissionPolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.wafv2.model.Wafv2Request
-
- software.amazon.awssdk.services.wafv2.model.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>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutPermissionPolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutPermissionPolicyRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringpolicy()The policy to attach to the specified rule group.StringresourceArn()The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.List<SdkField<?>>sdkFields()static Class<? extends PutPermissionPolicyRequest.Builder>serializableBuilderClass()PutPermissionPolicyRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
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, 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:
- 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.
-
-
-
toBuilder
public PutPermissionPolicyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutPermissionPolicyRequest.Builder,PutPermissionPolicyRequest>- Specified by:
toBuilderin classWafv2Request
-
builder
public static PutPermissionPolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutPermissionPolicyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-