Package services.verifiedpermissions
Interface CfnPolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnPolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-10-26T00:56:14.520Z")
@Stability(Stable)
public interface CfnPolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnPolicy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import services.verifiedpermissions.*;
CfnPolicyProps cfnPolicyProps = CfnPolicyProps.builder()
.definition(PolicyDefinitionProperty.builder()
.static(StaticPolicyDefinitionProperty.builder()
.statement("statement")
// the properties below are optional
.description("description")
.build())
.templateLinked(TemplateLinkedPolicyDefinitionProperty.builder()
.policyTemplateId("policyTemplateId")
// the properties below are optional
.principal(EntityIdentifierProperty.builder()
.entityId("entityId")
.entityType("entityType")
.build())
.resource(EntityIdentifierProperty.builder()
.entityId("entityId")
.entityType("entityType")
.build())
.build())
.build())
// the properties below are optional
.policyStoreId("policyStoreId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnPolicyPropsstatic final classAn implementation forCfnPolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnPolicyProps.Builderbuilder()Specifies the policy type and content to use for the new or updated policy.default StringSpecifies thePolicyStoreIdof the you want to store the policy in.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefinition
Specifies the policy type and content to use for the new or updated policy.The definition structure must include either a
Staticor aTemplateLinkedelement.- See Also:
-
getPolicyStoreId
Specifies thePolicyStoreIdof the you want to store the policy in.- See Also:
-
builder
- Returns:
- a
CfnPolicyProps.BuilderofCfnPolicyProps
-