Interface CfnPolicyStatementProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyStatementProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:16.155Z")
@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 class
A builder forCfnPolicyStatementProps
static final class
An 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 String
A set of condition keys that you can use in key policies.default String
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.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
effect
parameter toDeny
for theAddPolicyStatement
operation, you must also set the value of theeffect
parameter in thepolicy
toDeny
for thePutPolicy
operation.- See Also:
-
getPrincipal
The AWS service or AWS account that can access the resource defined as ARN.- See Also:
-
builder
- Returns:
- a
CfnPolicyStatementProps.Builder
ofCfnPolicyStatementProps
-