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

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.

    Using getPrincipalAssociation

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getPrincipalAssociation(args: GetPrincipalAssociationArgs, opts?: InvokeOptions): Promise<GetPrincipalAssociationResult>
    function getPrincipalAssociationOutput(args: GetPrincipalAssociationOutputArgs, opts?: InvokeOutputOptions): Output<GetPrincipalAssociationResult>
    def get_principal_association(principal: Optional[str] = None,
                                  resource_share_arn: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPrincipalAssociationResult
    def get_principal_association_output(principal: pulumi.Input[Optional[str]] = None,
                                  resource_share_arn: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOutputOptions] = None) -> Output[GetPrincipalAssociationResult]
    func LookupPrincipalAssociation(ctx *Context, args *LookupPrincipalAssociationArgs, opts ...InvokeOption) (*LookupPrincipalAssociationResult, error)
    func LookupPrincipalAssociationOutput(ctx *Context, args *LookupPrincipalAssociationOutputArgs, opts ...InvokeOption) LookupPrincipalAssociationResultOutput

    > Note: This function is named LookupPrincipalAssociation in the Go SDK.

    public static class GetPrincipalAssociation 
    {
        public static Task<GetPrincipalAssociationResult> InvokeAsync(GetPrincipalAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetPrincipalAssociationResult> Invoke(GetPrincipalAssociationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetPrincipalAssociationResult> Invoke(GetPrincipalAssociationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetPrincipalAssociationResult> getPrincipalAssociation(GetPrincipalAssociationArgs args, InvokeOptions options)
    public static Output<GetPrincipalAssociationResult> getPrincipalAssociation(GetPrincipalAssociationArgs args, InvokeOptions options)
    public static Output<GetPrincipalAssociationResult> getPrincipalAssociation(GetPrincipalAssociationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:ram:getPrincipalAssociation
      arguments:
        # arguments dictionary
    data "aws-native_ram_get_principal_association" "name" {
        # arguments
    }

    The following arguments are supported:

    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.

    getPrincipalAssociation Result

    The following output properties are available:

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

    Supporting Types

    PrincipalAssociationStatus

    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