1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ram
  6. PrincipalAssociation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Associates a specified principal with a resource share.

    Create PrincipalAssociation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PrincipalAssociation(name: string, args: PrincipalAssociationArgs, opts?: CustomResourceOptions);
    @overload
    def PrincipalAssociation(resource_name: str,
                             args: PrincipalAssociationArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrincipalAssociation(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             principal: Optional[str] = None,
                             resource_share_arn: Optional[str] = None)
    func NewPrincipalAssociation(ctx *Context, name string, args PrincipalAssociationArgs, opts ...ResourceOption) (*PrincipalAssociation, error)
    public PrincipalAssociation(string name, PrincipalAssociationArgs args, CustomResourceOptions? opts = null)
    public PrincipalAssociation(String name, PrincipalAssociationArgs args)
    public PrincipalAssociation(String name, PrincipalAssociationArgs args, CustomResourceOptions options)
    
    type: aws-native:ram:PrincipalAssociation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_ram_principal_association" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args PrincipalAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PrincipalAssociationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PrincipalAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrincipalAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrincipalAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PrincipalAssociation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The PrincipalAssociation resource accepts the following input properties:

    Principal string

    Specifies the principal to associate with the resource share. The possible values are:

    • An AWS account ID

    • An Amazon Resource Name (ARN) of an organization in AWS Organizations

    • An ARN of an organizational unit (OU) in AWS Organizations

    • An ARN of an IAM role

    • An ARN of an IAM user

    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    Principal string

    Specifies the principal to associate with the resource share. The possible values are:

    • An AWS account ID

    • An Amazon Resource Name (ARN) of an organization in AWS Organizations

    • An ARN of an organizational unit (OU) in AWS Organizations

    • An ARN of an IAM role

    • An ARN of an IAM user

    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    principal string

    Specifies the principal to associate with the resource share. The possible values are:

    • An AWS account ID

    • An Amazon Resource Name (ARN) of an organization in AWS Organizations

    • An ARN of an organizational unit (OU) in AWS Organizations

    • An ARN of an IAM role

    • An ARN of an IAM user

    resource_share_arn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    principal String

    Specifies the principal to associate with the resource share. The possible values are:

    • An AWS account ID

    • An Amazon Resource Name (ARN) of an organization in AWS Organizations

    • An ARN of an organizational unit (OU) in AWS Organizations

    • An ARN of an IAM role

    • An ARN of an IAM user

    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.
    principal string

    Specifies the principal to associate with the resource share. The possible values are:

    • An AWS account ID

    • An Amazon Resource Name (ARN) of an organization in AWS Organizations

    • An ARN of an organizational unit (OU) in AWS Organizations

    • An ARN of an IAM role

    • An ARN of an IAM user

    resourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    principal str

    Specifies the principal to associate with the resource share. The possible values are:

    • An AWS account ID

    • An Amazon Resource Name (ARN) of an organization in AWS Organizations

    • An ARN of an organizational unit (OU) in AWS Organizations

    • An ARN of an IAM role

    • An ARN of an IAM user

    resource_share_arn str
    Specifies the Amazon Resource Name (ARN) of the resource share.
    principal String

    Specifies the principal to associate with the resource share. The possible values are:

    • An AWS account ID

    • An Amazon Resource Name (ARN) of an organization in AWS Organizations

    • An ARN of an organizational unit (OU) in AWS Organizations

    • An ARN of an IAM role

    • An ARN of an IAM user

    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrincipalAssociation resource produces the following output properties:

    AssociationType string
    The type of entity included in this association.
    CreationTime string
    The date and time when the association was created.
    External bool
    Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedTime string
    The date and time when the association was last updated.
    Status Pulumi.AwsNative.Ram.PrincipalAssociationStatus
    The current status of the association.
    AssociationType string
    The type of entity included in this association.
    CreationTime string
    The date and time when the association was created.
    External bool
    Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdatedTime string
    The date and time when the association was last updated.
    Status PrincipalAssociationStatus
    The current status of the association.
    association_type string
    The type of entity included in this association.
    creation_time string
    The date and time when the association was created.
    external bool
    Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    id string
    The provider-assigned unique ID for this managed resource.
    last_updated_time string
    The date and time when the association was last updated.
    status "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "DISASSOCIATED" | "SUSPENDED" | "SUSPENDING" | "RESTORING"
    The current status of the association.
    associationType String
    The type of entity included in this association.
    creationTime String
    The date and time when the association was created.
    external Boolean
    Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedTime String
    The date and time when the association was last updated.
    status PrincipalAssociationStatus
    The current status of the association.
    associationType string
    The type of entity included in this association.
    creationTime string
    The date and time when the association was created.
    external boolean
    Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdatedTime string
    The date and time when the association was last updated.
    status PrincipalAssociationStatus
    The current status of the association.
    association_type str
    The type of entity included in this association.
    creation_time str
    The date and time when the association was created.
    external bool
    Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    id str
    The provider-assigned unique ID for this managed resource.
    last_updated_time str
    The date and time when the association was last updated.
    status PrincipalAssociationStatus
    The current status of the association.
    associationType String
    The type of entity included in this association.
    creationTime String
    The date and time when the association was created.
    external Boolean
    Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdatedTime String
    The date and time when the association was last updated.
    status "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "DISASSOCIATED" | "SUSPENDED" | "SUSPENDING" | "RESTORING"
    The current status of the association.

    Look up Existing PrincipalAssociation Resource

    Get an existing PrincipalAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): PrincipalAssociation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> PrincipalAssociation
    func GetPrincipalAssociation(ctx *Context, name string, id IDInput, state *PrincipalAssociationState, opts ...ResourceOption) (*PrincipalAssociation, error)
    public static PrincipalAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static PrincipalAssociation get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingPrincipalAssociation:    type: aws-native:ram:PrincipalAssociation    get:      id: ${id}
    import {
      to = aws-native_ram_principal_association.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state PrincipalAssociationState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    PrincipalAssociationStatus

    The current status of the association.

    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    DisassociatedDISASSOCIATED
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    NameValue
    PrincipalAssociationStatusAssociatingASSOCIATING
    PrincipalAssociationStatusAssociatedASSOCIATED
    PrincipalAssociationStatusFailedFAILED
    PrincipalAssociationStatusDisassociatingDISASSOCIATING
    PrincipalAssociationStatusDisassociatedDISASSOCIATED
    PrincipalAssociationStatusSuspendedSUSPENDED
    PrincipalAssociationStatusSuspendingSUSPENDING
    PrincipalAssociationStatusRestoringRESTORING
    Value
    ASSOCIATING
    ASSOCIATED
    FAILED
    DISASSOCIATING
    DISASSOCIATED
    SUSPENDED
    SUSPENDING
    RESTORING
    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    DisassociatedDISASSOCIATED
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    DisassociatedDISASSOCIATED
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    NameValue
    ASSOCIATINGASSOCIATING
    ASSOCIATEDASSOCIATED
    FAILEDFAILED
    DISASSOCIATINGDISASSOCIATING
    DISASSOCIATEDDISASSOCIATED
    SUSPENDEDSUSPENDED
    SUSPENDINGSUSPENDING
    RESTORINGRESTORING
    Value
    ASSOCIATING
    ASSOCIATED
    FAILED
    DISASSOCIATING
    DISASSOCIATED
    SUSPENDED
    SUSPENDING
    RESTORING

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial