Interface CfnPolicyStatementProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyStatementProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:10.582Z")
@Stability(Stable)
public interface CfnPolicyStatementProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnPolicyStatement.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.entityresolution.*;
CfnPolicyStatementProps cfnPolicyStatementProps = CfnPolicyStatementProps.builder()
.arn("arn")
.statementId("statementId")
// the properties below are optional
.action(List.of("action"))
.condition("condition")
.effect("effect")
.principal(List.of("principal"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicyStatementPropsstatic final classAn implementation forCfnPolicyStatementProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The action that the principal can use on the resource.getArn()The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.default StringA set of condition keys that you can use in key policies.default StringDetermines 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.A statement identifier that differentiates the statement from others in the same policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getArn
The Amazon Resource Name (ARN) of the resource that will be accessed by the principal.- See Also:
-
getStatementId
A statement identifier that differentiates the statement from others in the same policy.- See Also:
-
getAction
The action that the principal can use on the resource.For example,
entityresolution:GetIdMappingJob,entityresolution:GetMatchingJob.- See Also:
-
getCondition
A set of condition keys that you can use in key policies.- See Also:
-
getEffect
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.- See Also:
-
getPrincipal
The AWS service or AWS account that can access the resource defined as ARN.- See Also:
-
builder
- Returns:
- a
CfnPolicyStatementProps.BuilderofCfnPolicyStatementProps
-