Class CfnPolicyStatementMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.entityresolution.CfnPolicyStatementMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyStatementMixinProps>
- Enclosing interface:
CfnPolicyStatementMixinProps
@Stability(Stable)
public static final class CfnPolicyStatementMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyStatementMixinProps>
A builder for
CfnPolicyStatementMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnPolicyStatementMixinProps.getAction()Sets the value ofCfnPolicyStatementMixinProps.getArn()build()Builds the configured instance.Sets the value ofCfnPolicyStatementMixinProps.getCondition()Sets the value ofCfnPolicyStatementMixinProps.getEffect()Sets the value ofCfnPolicyStatementMixinProps.getPrincipal()statementId(String statementId) Sets the value ofCfnPolicyStatementMixinProps.getStatementId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnPolicyStatementMixinProps.getAction()- Parameters:
action- The action that the principal can use on the resource. For example,entityresolution:GetIdMappingJob,entityresolution:GetMatchingJob.- Returns:
this
-
arn
Sets the value ofCfnPolicyStatementMixinProps.getArn()- Parameters:
arn- The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.- Returns:
this
-
condition
Sets the value ofCfnPolicyStatementMixinProps.getCondition()- Parameters:
condition- A set of condition keys that you can use in key policies.- Returns:
this
-
effect
Sets the value ofCfnPolicyStatementMixinProps.getEffect()- Parameters:
effect- Determines whether the permissions specified in the policy are to be allowed (Allow) or denied (Deny).If you set the value of the
effectparameter toDenyfor theAddPolicyStatementoperation, you must also set the value of theeffectparameter in thepolicytoDenyfor thePutPolicyoperation.- Returns:
this
-
principal
Sets the value ofCfnPolicyStatementMixinProps.getPrincipal()- Parameters:
principal- The AWS service or AWS account that can access the resource defined as ARN.- Returns:
this
-
statementId
Sets the value ofCfnPolicyStatementMixinProps.getStatementId()- Parameters:
statementId- A statement identifier that differentiates the statement from others in the same policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPolicyStatementMixinProps>- Returns:
- a new instance of
CfnPolicyStatementMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-