Class CfnApprovalPolicy

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IApprovalPolicyRef, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:15.781Z") @Stability(Stable) public class CfnApprovalPolicy extends CfnResource implements IInspectable, IApprovalPolicyRef
Definition of the AWS::QuickSight::ApprovalPolicy Resource Type.

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.quicksight.*;
 Object actions;
 Object assetTypes;
 Object type;
 CfnApprovalPolicy cfnApprovalPolicy = CfnApprovalPolicy.Builder.create(this, "MyCfnApprovalPolicy")
         .actions(List.of(actions))
         .applicableTo(ApplicableToProperty.builder()
                 .type(type)
                 // the properties below are optional
                 .groupArns(List.of("groupArns"))
                 .build())
         .approvalGroups(List.of("approvalGroups"))
         .assetTypes(List.of(assetTypes))
         .name("name")
         .policyId("policyId")
         // the properties below are optional
         .description("description")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnApprovalPolicy

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

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

      @Stability(Stable) public CfnApprovalPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnApprovalPolicyProps props)
      Create a new AWS::QuickSight::ApprovalPolicy.

      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

    • arnForApprovalPolicy

      @Stability(Stable) @NotNull public static String arnForApprovalPolicy(@NotNull IApprovalPolicyRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnApprovalPolicy

      @Stability(Stable) @NotNull public static Boolean isCfnApprovalPolicy(@NotNull Object x)
      Checks whether the given object is a CfnApprovalPolicy.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getApprovalPolicyRef

      @Stability(Stable) @NotNull public ApprovalPolicyReference getApprovalPolicyRef()
      A reference to a ApprovalPolicy resource.
      Specified by:
      getApprovalPolicyRef in interface IApprovalPolicyRef
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
    • getAttrPolicyArn

      @Stability(Stable) @NotNull public String getAttrPolicyArn()
    • getAttrUpdatedAt

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getActions

      @Stability(Stable) @NotNull public Object getActions()
      List of governed actions a policy applies to.

      Returns union: either Listinvalid input: '<'Object> or IResolvable

    • setActions

      @Stability(Stable) public void setActions(@NotNull List<Object> value)
      List of governed actions a policy applies to.
    • setActions

      @Stability(Stable) public void setActions(@NotNull IResolvable value)
      List of governed actions a policy applies to.
    • getApplicableTo

      @Stability(Stable) @NotNull public Object getApplicableTo()
      Scoping: who the policy applies to.

      Returns union: either IResolvable or CfnApprovalPolicy.ApplicableToProperty

    • setApplicableTo

      @Stability(Stable) public void setApplicableTo(@NotNull IResolvable value)
      Scoping: who the policy applies to.
    • setApplicableTo

      @Stability(Stable) public void setApplicableTo(@NotNull CfnApprovalPolicy.ApplicableToProperty value)
      Scoping: who the policy applies to.
    • getApprovalGroups

      @Stability(Stable) @NotNull public List<String> getApprovalGroups()
      List of approval group ARNs (e.g. QuickSight group ARNs). At least one approval group is required; the upper bound is enforced per-account at the service layer via the configurable approver-group limit.
    • setApprovalGroups

      @Stability(Stable) public void setApprovalGroups(@NotNull List<String> value)
      List of approval group ARNs (e.g. QuickSight group ARNs). At least one approval group is required; the upper bound is enforced per-account at the service layer via the configurable approver-group limit.
    • getAssetTypes

      @Stability(Stable) @NotNull public Object getAssetTypes()
      List of asset types a policy applies to.

      Returns union: either Listinvalid input: '<'Object> or IResolvable

    • setAssetTypes

      @Stability(Stable) public void setAssetTypes(@NotNull List<Object> value)
      List of asset types a policy applies to.
    • setAssetTypes

      @Stability(Stable) public void setAssetTypes(@NotNull IResolvable value)
      List of asset types a policy applies to.
    • getName

      @Stability(Stable) @NotNull public String getName()
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
    • getPolicyId

      @Stability(Stable) @NotNull public String getPolicyId()
    • setPolicyId

      @Stability(Stable) public void setPolicyId(@NotNull String value)
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)