Class CfnPolicyGrant
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.datazone.CfnPolicyGrant
- All Implemented Interfaces:
IInspectable,IPolicyGrantRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:08.532Z")
@Stability(Stable)
public class CfnPolicyGrant
extends CfnResource
implements IInspectable, IPolicyGrantRef
Adds a policy grant (an authorization policy) to a specified entity, including domain units, environment blueprint configurations, or environment profiles.
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.datazone.*;
Object allDomainUnitsGrantFilter;
Object allUsersGrantFilter;
Object createEnvironment;
Object createEnvironmentFromBlueprint;
Object delegateCreateEnvironmentProfile;
CfnPolicyGrant cfnPolicyGrant = CfnPolicyGrant.Builder.create(this, "MyCfnPolicyGrant")
.domainIdentifier("domainIdentifier")
.entityIdentifier("entityIdentifier")
.entityType("entityType")
.policyType("policyType")
// the properties below are optional
.detail(PolicyGrantDetailProperty.builder()
.addToProjectMemberPool(AddToProjectMemberPoolPolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.createAssetType(CreateAssetTypePolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.createDomainUnit(CreateDomainUnitPolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.createEnvironment(createEnvironment)
.createEnvironmentFromBlueprint(createEnvironmentFromBlueprint)
.createEnvironmentProfile(CreateEnvironmentProfilePolicyGrantDetailProperty.builder()
.domainUnitId("domainUnitId")
.build())
.createFormType(CreateFormTypePolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.createGlossary(CreateGlossaryPolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.createProject(CreateProjectPolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.createProjectFromProjectProfile(CreateProjectFromProjectProfilePolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.projectProfiles(List.of("projectProfiles"))
.build())
.delegateCreateEnvironmentProfile(delegateCreateEnvironmentProfile)
.overrideDomainUnitOwners(OverrideDomainUnitOwnersPolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.overrideProjectOwners(OverrideProjectOwnersPolicyGrantDetailProperty.builder()
.includeChildDomainUnits(false)
.build())
.build())
.principal(PolicyGrantPrincipalProperty.builder()
.domainUnit(DomainUnitPolicyGrantPrincipalProperty.builder()
.domainUnitDesignation("domainUnitDesignation")
.domainUnitGrantFilter(DomainUnitGrantFilterProperty.builder()
.allDomainUnitsGrantFilter(allDomainUnitsGrantFilter)
.build())
.domainUnitIdentifier("domainUnitIdentifier")
.build())
.group(GroupPolicyGrantPrincipalProperty.builder()
.groupIdentifier("groupIdentifier")
.build())
.project(ProjectPolicyGrantPrincipalProperty.builder()
.projectDesignation("projectDesignation")
.projectGrantFilter(ProjectGrantFilterProperty.builder()
.domainUnitFilter(DomainUnitFilterForProjectProperty.builder()
.domainUnit("domainUnit")
// the properties below are optional
.includeChildDomainUnits(false)
.build())
.build())
.projectIdentifier("projectIdentifier")
.build())
.user(UserPolicyGrantPrincipalProperty.builder()
.allUsersGrantFilter(allUsersGrantFilter)
.userIdentifier("userIdentifier")
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe details of the policy grant.static final classA fluent builder forCfnPolicyGrant.static interfaceThe details of the policy grant.static interfaceThe details of the policy grant.static interfaceThe details of the policy grant.static interfaceThe details of the policy grant.static interfaceThe details of the policy grant.static interfaceSpecifies whether to create a project from project profile policy grant details.static interfaceThe details of the policy grant.static interfaceThe domain unit filter of the project grant filter.static interfaceThe grant filter for the domain unit.static interfaceThe domain unit principal to whom the policy is granted.static interfaceThe group principal to whom the policy is granted.static interfaceThe grant details of the override domain unit owners policy.static interfaceThe details of the override project owners policy grant.static interfaceThe details of the policy grant.static interfaceThe policy grant principal.static interfaceThe project grant filter.static interfaceThe project policy grant principal.static interfaceThe user policy grant principal.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.services.datazone.IPolicyGrantRef
IPolicyGrantRef.Jsii$Default, IPolicyGrantRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPolicyGrant(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPolicyGrant(software.amazon.jsii.JsiiObjectRef objRef) CfnPolicyGrant(software.constructs.Construct scope, String id, CfnPolicyGrantProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the timestamp at which policy grant member was created.Specifies the user who created the policy grant member.The unique identifier of the policy grant returned by the AddPolicyGrant API.The details of the policy grant member.The ID of the domain where you want to add a policy grant.The ID of the entity (resource) to which you want to add a policy grant.The type of entity (resource) to which the grant is added.A reference to a PolicyGrant resource.The type of policy that you want to grant.The principal of the policy grant member.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDetail(IResolvable value) The details of the policy grant member.voidThe details of the policy grant member.voidsetDomainIdentifier(String value) The ID of the domain where you want to add a policy grant.voidsetEntityIdentifier(String value) The ID of the entity (resource) to which you want to add a policy grant.voidsetEntityType(String value) The type of entity (resource) to which the grant is added.voidsetPolicyType(String value) The type of policy that you want to grant.voidsetPrincipal(IResolvable value) The principal of the policy grant member.voidThe principal of the policy grant member.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPolicyGrant
protected CfnPolicyGrant(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPolicyGrant
protected CfnPolicyGrant(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPolicyGrant
@Stability(Stable) public CfnPolicyGrant(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPolicyGrantProps props) - 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
-
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.
-
getAttrCreatedAt
Specifies the timestamp at which policy grant member was created. -
getAttrCreatedBy
Specifies the user who created the policy grant member. -
getAttrGrantId
The unique identifier of the policy grant returned by the AddPolicyGrant API. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPolicyGrantRef
A reference to a PolicyGrant resource.- Specified by:
getPolicyGrantRefin interfaceIPolicyGrantRef
-
getDomainIdentifier
The ID of the domain where you want to add a policy grant. -
setDomainIdentifier
The ID of the domain where you want to add a policy grant. -
getEntityIdentifier
The ID of the entity (resource) to which you want to add a policy grant. -
setEntityIdentifier
The ID of the entity (resource) to which you want to add a policy grant. -
getEntityType
The type of entity (resource) to which the grant is added. -
setEntityType
The type of entity (resource) to which the grant is added. -
getPolicyType
The type of policy that you want to grant. -
setPolicyType
The type of policy that you want to grant. -
getDetail
The details of the policy grant member. -
setDetail
The details of the policy grant member. -
setDetail
The details of the policy grant member. -
getPrincipal
The principal of the policy grant member. -
setPrincipal
The principal of the policy grant member. -
setPrincipal
@Stability(Stable) public void setPrincipal(@Nullable CfnPolicyGrant.PolicyGrantPrincipalProperty value) The principal of the policy grant member.
-