Class CfnPolicyStatement.Builder
java.lang.Object
software.amazon.awscdk.services.entityresolution.CfnPolicyStatement.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPolicyStatement>
- Enclosing class:
CfnPolicyStatement
@Stability(Stable)
public static final class CfnPolicyStatement.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPolicyStatement>
A fluent builder for
CfnPolicyStatement
.-
Method Summary
Modifier and TypeMethodDescriptionThe action that the principal can use on the resource.The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.build()
A set of condition keys that you can use in key policies.static CfnPolicyStatement.Builder
Determines whether the permissions specified in the policy are to be allowed (Allow
) or denied (Deny
).The AWS service or AWS account that can access the resource defined as ARN.statementId
(String statementId) A statement identifier that differentiates the statement from others in the same policy.
-
Method Details
-
create
@Stability(Stable) public static CfnPolicyStatement.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnPolicyStatement.Builder
.
-
arn
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.- Parameters:
arn
- The Amazon Resource Name (ARN) of the resource that will be accessed by the principal. This parameter is required.- Returns:
this
- See Also:
-
statementId
A statement identifier that differentiates the statement from others in the same policy.- Parameters:
statementId
- A statement identifier that differentiates the statement from others in the same policy. This parameter is required.- Returns:
this
- See Also:
-
action
The action that the principal can use on the resource.For example,
entityresolution:GetIdMappingJob
,entityresolution:GetMatchingJob
.- Parameters:
action
- The action that the principal can use on the resource. This parameter is required.- Returns:
this
- See Also:
-
condition
A set of condition keys that you can use in key policies.- Parameters:
condition
- A set of condition keys that you can use in key policies. This parameter is required.- Returns:
this
- See Also:
-
effect
Determines whether the permissions specified in the policy are to be allowed (Allow
) or denied (Deny
).If you set the value of the
effect
parameter toDeny
for theAddPolicyStatement
operation, you must also set the value of theeffect
parameter in thepolicy
toDeny
for thePutPolicy
operation.- Parameters:
effect
- Determines whether the permissions specified in the policy are to be allowed (Allow
) or denied (Deny
). This parameter is required.- Returns:
this
- See Also:
-
principal
The AWS service or AWS account that can access the resource defined as ARN.- Parameters:
principal
- The AWS service or AWS account that can access the resource defined as ARN. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPolicyStatement>
- Returns:
- a newly built instance of
CfnPolicyStatement
.
-