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

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

    Using getSourceAssociation

    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 getSourceAssociation(args: GetSourceAssociationArgs, opts?: InvokeOptions): Promise<GetSourceAssociationResult>
    function getSourceAssociationOutput(args: GetSourceAssociationOutputArgs, opts?: InvokeOutputOptions): Output<GetSourceAssociationResult>
    def get_source_association(resource_share_arn: Optional[str] = None,
                               source_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetSourceAssociationResult
    def get_source_association_output(resource_share_arn: pulumi.Input[Optional[str]] = None,
                               source_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetSourceAssociationResult]
    func LookupSourceAssociation(ctx *Context, args *LookupSourceAssociationArgs, opts ...InvokeOption) (*LookupSourceAssociationResult, error)
    func LookupSourceAssociationOutput(ctx *Context, args *LookupSourceAssociationOutputArgs, opts ...InvokeOption) LookupSourceAssociationResultOutput

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

    public static class GetSourceAssociation 
    {
        public static Task<GetSourceAssociationResult> InvokeAsync(GetSourceAssociationArgs args, InvokeOptions? opts = null)
        public static Output<GetSourceAssociationResult> Invoke(GetSourceAssociationInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetSourceAssociationResult> Invoke(GetSourceAssociationInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetSourceAssociationResult> getSourceAssociation(GetSourceAssociationArgs args, InvokeOptions options)
    public static Output<GetSourceAssociationResult> getSourceAssociation(GetSourceAssociationArgs args, InvokeOptions options)
    public static Output<GetSourceAssociationResult> getSourceAssociation(GetSourceAssociationArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:ram:getSourceAssociation
      arguments:
        # arguments dictionary
    data "aws-native_ram_get_source_association" "name" {
        # arguments
    }

    The following arguments are supported:

    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    SourceId string
    Specifies the ID of the source account to associate with the resource share.
    ResourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    SourceId string
    Specifies the ID of the source account to associate with the resource share.
    resource_share_arn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    source_id string
    Specifies the ID of the source account to associate with the resource share.
    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.
    sourceId String
    Specifies the ID of the source account to associate with the resource share.
    resourceShareArn string
    Specifies the Amazon Resource Name (ARN) of the resource share.
    sourceId string
    Specifies the ID of the source account to associate with the resource share.
    resource_share_arn str
    Specifies the Amazon Resource Name (ARN) of the resource share.
    source_id str
    Specifies the ID of the source account to associate with the resource share.
    resourceShareArn String
    Specifies the Amazon Resource Name (ARN) of the resource share.
    sourceId String
    Specifies the ID of the source account to associate with the resource share.

    getSourceAssociation Result

    The following output properties are available:

    CreationTime string
    The date and time when the association was created.
    LastUpdatedTime string
    The date and time when the association was last updated.
    SourceType string
    The type of the source.
    Status Pulumi.AwsNative.Ram.SourceAssociationStatus
    The current status of the association.
    CreationTime string
    The date and time when the association was created.
    LastUpdatedTime string
    The date and time when the association was last updated.
    SourceType string
    The type of the source.
    Status SourceAssociationStatus
    The current status of the association.
    creation_time string
    The date and time when the association was created.
    last_updated_time string
    The date and time when the association was last updated.
    source_type string
    The type of the source.
    status "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "DISASSOCIATED" | "SUSPENDED" | "SUSPENDING" | "RESTORING"
    The current status of the association.
    creationTime String
    The date and time when the association was created.
    lastUpdatedTime String
    The date and time when the association was last updated.
    sourceType String
    The type of the source.
    status SourceAssociationStatus
    The current status of the association.
    creationTime string
    The date and time when the association was created.
    lastUpdatedTime string
    The date and time when the association was last updated.
    sourceType string
    The type of the source.
    status SourceAssociationStatus
    The current status of the association.
    creation_time str
    The date and time when the association was created.
    last_updated_time str
    The date and time when the association was last updated.
    source_type str
    The type of the source.
    status SourceAssociationStatus
    The current status of the association.
    creationTime String
    The date and time when the association was created.
    lastUpdatedTime String
    The date and time when the association was last updated.
    sourceType String
    The type of the source.
    status "ASSOCIATING" | "ASSOCIATED" | "FAILED" | "DISASSOCIATING" | "DISASSOCIATED" | "SUSPENDED" | "SUSPENDING" | "RESTORING"
    The current status of the association.

    Supporting Types

    SourceAssociationStatus

    NameValue
    AssociatingASSOCIATING
    AssociatedASSOCIATED
    FailedFAILED
    DisassociatingDISASSOCIATING
    DisassociatedDISASSOCIATED
    SuspendedSUSPENDED
    SuspendingSUSPENDING
    RestoringRESTORING
    NameValue
    SourceAssociationStatusAssociatingASSOCIATING
    SourceAssociationStatusAssociatedASSOCIATED
    SourceAssociationStatusFailedFAILED
    SourceAssociationStatusDisassociatingDISASSOCIATING
    SourceAssociationStatusDisassociatedDISASSOCIATED
    SourceAssociationStatusSuspendedSUSPENDED
    SourceAssociationStatusSuspendingSUSPENDING
    SourceAssociationStatusRestoringRESTORING
    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