Class CfnPrincipalAssociation

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

@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)", date="2026-10-08T17:00:02.021Z") @Stability(Stable) public class CfnPrincipalAssociation extends CfnResource implements IInspectable, IPrincipalAssociationRef
Associates a specified principal with a resource share.

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.ram.*;
 CfnPrincipalAssociation cfnPrincipalAssociation = CfnPrincipalAssociation.Builder.create(this, "MyCfnPrincipalAssociation")
         .principal("principal")
         .resourceShareArn("resourceShareArn")
         .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

    • CfnPrincipalAssociation

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

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

      @Stability(Stable) public CfnPrincipalAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPrincipalAssociationProps props)
      Create a new AWS::RAM::PrincipalAssociation.

      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

    • isCfnPrincipalAssociation

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

      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.
    • getAttrAssociationType

      @Stability(Stable) @NotNull public String getAttrAssociationType()
      The type of entity included in this association.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The date and time when the association was created.
    • getAttrExternal

      @Stability(Stable) @NotNull public IResolvable getAttrExternal()
      Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    • getAttrLastUpdatedTime

      @Stability(Stable) @NotNull public String getAttrLastUpdatedTime()
      The date and time when the association was last updated.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The current status of the association.
    • 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
    • getPrincipalAssociationRef

      @Stability(Stable) @NotNull public PrincipalAssociationReference getPrincipalAssociationRef()
      A reference to a PrincipalAssociation resource.
      Specified by:
      getPrincipalAssociationRef in interface IPrincipalAssociationRef
    • getPrincipal

      @Stability(Stable) @NotNull public String getPrincipal()
      Specifies the principal to associate with the resource share.

      The possible values are:.

    • setPrincipal

      @Stability(Stable) public void setPrincipal(@NotNull String value)
      Specifies the principal to associate with the resource share.

      The possible values are:.

    • getResourceShareArn

      @Stability(Stable) @NotNull public String getResourceShareArn()
      Specifies the Amazon Resource Name (ARN) of the resource share.
    • setResourceShareArn

      @Stability(Stable) public void setResourceShareArn(@NotNull String value)
      Specifies the Amazon Resource Name (ARN) of the resource share.