Class CfnPolicyStore
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.verifiedpermissions.CfnPolicyStore
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IPolicyStoreRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:31.295Z")
@Stability(Stable)
public class CfnPolicyStore
extends CfnResource
implements IInspectable, IPolicyStoreRef, ITaggableV2
Creates a policy store.
A policy store is a container for policy resources. You can create a separate policy store for each of your applications.
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.verifiedpermissions.*;
CfnPolicyStore cfnPolicyStore = CfnPolicyStore.Builder.create(this, "MyCfnPolicyStore")
.validationSettings(ValidationSettingsProperty.builder()
.mode("mode")
.build())
// the properties below are optional
.deletionProtection(DeletionProtectionProperty.builder()
.mode("mode")
.build())
.description("description")
.schema(SchemaDefinitionProperty.builder()
.cedarFormat("cedarFormat")
.cedarJson("cedarJson")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnPolicyStore.static interfaceSpecifies whether the policy store can be deleted.static interfaceContains a list of principal types, resource types, and actions that can be specified in policies stored in the same policy store.static interfaceA structure that contains Cedar policy validation settings for the policy store.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.verifiedpermissions.IPolicyStoreRef
IPolicyStoreRef.Jsii$Default, IPolicyStoreRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPolicyStore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPolicyStore(software.amazon.jsii.JsiiObjectRef objRef) CfnPolicyStore(software.constructs.Construct scope, String id, CfnPolicyStoreProps props) Create a newAWS::VerifiedPermissions::PolicyStore. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForPolicyStore(IPolicyStoreRef resource) static IPolicyStoreReffromPolicyStoreArn(software.constructs.Construct scope, String id, String arn) Creates a new IPolicyStoreRef from an ARN.static IPolicyStoreReffromPolicyStoreId(software.constructs.Construct scope, String id, String policyStoreId) Creates a new IPolicyStoreRef from a policyStoreId.The Amazon Resource Name (ARN) of the new or updated policy store.The unique ID of the new or updated policy store.Tag Manager which manages the tags for this resource.Specifies whether the policy store can be deleted.Descriptive text that you can provide to help with identification of the current policy store.A reference to a PolicyStore resource.Creates or updates the policy schema in a policy store.getTags()The list of key-value pairs to associate with the policy store.Specifies the validation setting for this policy store.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPolicyStore.renderProperties(Map<String, Object> props) voidsetDeletionProtection(IResolvable value) Specifies whether the policy store can be deleted.voidSpecifies whether the policy store can be deleted.voidsetDescription(String value) Descriptive text that you can provide to help with identification of the current policy store.voidsetSchema(IResolvable value) Creates or updates the policy schema in a policy store.voidCreates or updates the policy schema in a policy store.voidThe list of key-value pairs to associate with the policy store.voidsetValidationSettings(IResolvable value) Specifies the validation setting for this policy store.voidSpecifies the validation setting for this policy store.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPolicyStore
protected CfnPolicyStore(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPolicyStore
protected CfnPolicyStore(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPolicyStore
@Stability(Stable) public CfnPolicyStore(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPolicyStoreProps props) Create a newAWS::VerifiedPermissions::PolicyStore.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForPolicyStore
@Stability(Stable) @NotNull public static String arnForPolicyStore(@NotNull IPolicyStoreRef resource) - Parameters:
resource- This parameter is required.
-
fromPolicyStoreArn
@Stability(Stable) @NotNull public static IPolicyStoreRef fromPolicyStoreArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IPolicyStoreRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromPolicyStoreId
@Stability(Stable) @NotNull public static IPolicyStoreRef fromPolicyStoreId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String policyStoreId) Creates a new IPolicyStoreRef from a policyStoreId.- Parameters:
scope- This parameter is required.id- This parameter is required.policyStoreId- This parameter is required.
-
isCfnPolicyStore
Checks whether the given object is a CfnPolicyStore.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the new or updated policy store. -
getAttrPolicyStoreId
The unique ID of the new or updated policy store. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPolicyStoreRef
A reference to a PolicyStore resource.- Specified by:
getPolicyStoreRefin interfaceIPolicyStoreRef
-
getValidationSettings
Specifies the validation setting for this policy store.Returns union: either
IResolvableorCfnPolicyStore.ValidationSettingsProperty -
setValidationSettings
Specifies the validation setting for this policy store. -
setValidationSettings
@Stability(Stable) public void setValidationSettings(@NotNull CfnPolicyStore.ValidationSettingsProperty value) Specifies the validation setting for this policy store. -
getDeletionProtection
Specifies whether the policy store can be deleted.If enabled, the policy store can't be deleted.
Returns union: either
IResolvableorCfnPolicyStore.DeletionProtectionProperty -
setDeletionProtection
Specifies whether the policy store can be deleted.If enabled, the policy store can't be deleted.
-
setDeletionProtection
@Stability(Stable) public void setDeletionProtection(@Nullable CfnPolicyStore.DeletionProtectionProperty value) Specifies whether the policy store can be deleted.If enabled, the policy store can't be deleted.
-
getDescription
Descriptive text that you can provide to help with identification of the current policy store. -
setDescription
Descriptive text that you can provide to help with identification of the current policy store. -
getSchema
Creates or updates the policy schema in a policy store.Returns union: either
IResolvableorCfnPolicyStore.SchemaDefinitionProperty -
setSchema
Creates or updates the policy schema in a policy store. -
setSchema
Creates or updates the policy schema in a policy store. -
getTags
The list of key-value pairs to associate with the policy store. -
setTags
The list of key-value pairs to associate with the policy store.
-