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

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 resource with a resource share.

    Using getResourceAssociation

    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 getResourceAssociation(args: GetResourceAssociationArgs, opts?: InvokeOptions): Promise<GetResourceAssociationResult>
    function getResourceAssociationOutput(args: GetResourceAssociationOutputArgs, opts?: InvokeOutputOptions): Output<GetResourceAssociationResult>
    def get_resource_association(resource_arn: Optional[str] = None,
                                 resource_share_arn: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetResourceAssociationResult
    def get_resource_association_output(resource_arn: pulumi.Input[Optional[str]] = None,
                                 resource_share_arn: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetResourceAssociationResult]
    func LookupResourceAssociation(ctx *Context, args *LookupResourceAssociationArgs, opts ...InvokeOption) (*LookupResourceAssociationResult, error)
    func LookupResourceAssociationOutput(ctx *Context, args *LookupResourceAssociationOutputArgs, opts ...InvokeOption) LookupResourceAssociationResultOutput

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

    public static class GetResourceAssociation 
    {
        public static Task<GetResourceAssociationResult> InvokeAsync(GetResourceAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceAssociationResult> Invoke(GetResourceAssociationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceAssociationResult> Invoke(GetResourceAssociationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetResourceAssociationResult> getResourceAssociation(GetResourceAssociationArgs args, InvokeOptions options)
    public static Output<GetResourceAssociationResult> getResourceAssociation(GetResourceAssociationArgs args, InvokeOptions options)
    public static Output<GetResourceAssociationResult> getResourceAssociation(GetResourceAssociationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:ram:getResourceAssociation
      arguments:
        # arguments dictionary
    data "aws-native_ram_get_resource_association" "name" {
        # arguments
    }

    The following arguments are supported:

    ResourceArn string
    Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    ResourceArn string
    Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    resource_arn string
    Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    resource_share_arn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    resourceArn String
    Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.
    resourceArn string
    Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    resourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    resource_arn str
    Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    resource_share_arn str
    Specifies the Amazon Resource Name (ARN) of the resource share.
    resourceArn String
    Specifies the Amazon Resource Name (ARN) of the resource to associate with the resource share.
    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.

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

    ResourceAssociationStatus

    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    DisassociatedDISASSOCIATED
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    NameValue
    ResourceAssociationStatusAssociatingASSOCIATING
    ResourceAssociationStatusAssociatedASSOCIATED
    ResourceAssociationStatusFailedFAILED
    ResourceAssociationStatusDisassociatingDISASSOCIATING
    ResourceAssociationStatusDisassociatedDISASSOCIATED
    ResourceAssociationStatusSuspendedSUSPENDED
    ResourceAssociationStatusSuspendingSUSPENDING
    ResourceAssociationStatusRestoringRESTORING
    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