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

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

Viewing docs for AWS Cloud Control v1.85.0
published on Monday, Nov 2, 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.85.0
published on Monday, Nov 2, 2026 by Pulumi

    Associates a specified resource with a resource share.

    Create ResourceAssociation Resource

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

    Constructor syntax

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

    Parameters

    name string
    The unique name of the resource.
    args ResourceAssociationArgs
    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 ResourceAssociationArgs
    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 ResourceAssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourceAssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ResourceAssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ResourceAssociation 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 ResourceAssociation resource accepts the following input properties:

    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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResourceAssociation 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.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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    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 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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    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 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.
    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.

    Supporting Types

    ResourceAssociationStatus, ResourceAssociationStatusArgs

    Associating
    ASSOCIATING
    Associated
    ASSOCIATED
    Failed
    FAILED
    Disassociating
    DISASSOCIATING
    Disassociated
    DISASSOCIATED
    Suspended
    SUSPENDED
    Suspending
    SUSPENDING
    Restoring
    RESTORING
    ResourceAssociationStatusAssociating
    ASSOCIATING
    ResourceAssociationStatusAssociated
    ASSOCIATED
    ResourceAssociationStatusFailed
    FAILED
    ResourceAssociationStatusDisassociating
    DISASSOCIATING
    ResourceAssociationStatusDisassociated
    DISASSOCIATED
    ResourceAssociationStatusSuspended
    SUSPENDED
    ResourceAssociationStatusSuspending
    SUSPENDING
    ResourceAssociationStatusRestoring
    RESTORING
    "ASSOCIATING"
    ASSOCIATING
    "ASSOCIATED"
    ASSOCIATED
    "FAILED"
    FAILED
    "DISASSOCIATING"
    DISASSOCIATING
    "DISASSOCIATED"
    DISASSOCIATED
    "SUSPENDED"
    SUSPENDED
    "SUSPENDING"
    SUSPENDING
    "RESTORING"
    RESTORING
    Associating
    ASSOCIATING
    Associated
    ASSOCIATED
    Failed
    FAILED
    Disassociating
    DISASSOCIATING
    Disassociated
    DISASSOCIATED
    Suspended
    SUSPENDED
    Suspending
    SUSPENDING
    Restoring
    RESTORING
    Associating
    ASSOCIATING
    Associated
    ASSOCIATED
    Failed
    FAILED
    Disassociating
    DISASSOCIATING
    Disassociated
    DISASSOCIATED
    Suspended
    SUSPENDED
    Suspending
    SUSPENDING
    Restoring
    RESTORING
    ASSOCIATING
    ASSOCIATING
    ASSOCIATED
    ASSOCIATED
    FAILED
    FAILED
    DISASSOCIATING
    DISASSOCIATING
    DISASSOCIATED
    DISASSOCIATED
    SUSPENDED
    SUSPENDED
    SUSPENDING
    SUSPENDING
    RESTORING
    RESTORING
    "ASSOCIATING"
    ASSOCIATING
    "ASSOCIATED"
    ASSOCIATED
    "FAILED"
    FAILED
    "DISASSOCIATING"
    DISASSOCIATING
    "DISASSOCIATED"
    DISASSOCIATED
    "SUSPENDED"
    SUSPENDED
    "SUSPENDING"
    SUSPENDING
    "RESTORING"
    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.85.0
    published on Monday, Nov 2, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial