Class CfnPolicyGrantPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.mixins.preview.core.Mixin
software.amazon.awscdk.mixins.preview.services.datazone.mixins.CfnPolicyGrantPropsMixin
All Implemented Interfaces:
IMixin, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)", date="2025-12-18T18:20:24.696Z") @Stability(Stable) public class CfnPolicyGrantPropsMixin extends Mixin implements IMixin
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.mixins.preview.mixins.*;
 import software.amazon.awscdk.mixins.preview.services.datazone.mixins.*;
 Object allDomainUnitsGrantFilter;
 Object allUsersGrantFilter;
 Object createEnvironment;
 Object createEnvironmentFromBlueprint;
 Object delegateCreateEnvironmentProfile;
 CfnPolicyGrantPropsMixin cfnPolicyGrantPropsMixin = CfnPolicyGrantPropsMixin.Builder.create(CfnPolicyGrantMixinProps.builder()
         .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())
         .domainIdentifier("domainIdentifier")
         .entityIdentifier("entityIdentifier")
         .entityType("entityType")
         .policyType("policyType")
         .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")
                                         .includeChildDomainUnits(false)
                                         .build())
                                 .build())
                         .projectIdentifier("projectIdentifier")
                         .build())
                 .user(UserPolicyGrantPrincipalProperty.builder()
                         .allUsersGrantFilter(allUsersGrantFilter)
                         .userIdentifier("userIdentifier")
                         .build())
                 .build())
         .build())
 .strategy(PropertyMergeStrategy.OVERRIDE)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnPolicyGrantPropsMixin

      protected CfnPolicyGrantPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnPolicyGrantPropsMixin

      protected CfnPolicyGrantPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnPolicyGrantPropsMixin

      @Stability(Stable) public CfnPolicyGrantPropsMixin(@NotNull CfnPolicyGrantMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::DataZone::PolicyGrant.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnPolicyGrantPropsMixin

      @Stability(Stable) public CfnPolicyGrantPropsMixin(@NotNull CfnPolicyGrantMixinProps props)
      Create a mixin to apply properties to AWS::DataZone::PolicyGrant.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) @NotNull public software.constructs.IConstruct applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnPolicyGrantMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected PropertyMergeStrategy getStrategy()