We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Associates a specified source account with a resource share.
Create SourceAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SourceAssociation(name: string, args: SourceAssociationArgs, opts?: CustomResourceOptions);@overload
def SourceAssociation(resource_name: str,
args: SourceAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SourceAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_share_arn: Optional[str] = None,
source_id: Optional[str] = None)func NewSourceAssociation(ctx *Context, name string, args SourceAssociationArgs, opts ...ResourceOption) (*SourceAssociation, error)public SourceAssociation(string name, SourceAssociationArgs args, CustomResourceOptions? opts = null)
public SourceAssociation(String name, SourceAssociationArgs args)
public SourceAssociation(String name, SourceAssociationArgs args, CustomResourceOptions options)
type: aws-native:ram:SourceAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_ram_source_association" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SourceAssociationArgs
- 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 SourceAssociationArgs
- 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 SourceAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SourceAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SourceAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SourceAssociation 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 SourceAssociation resource accepts the following input properties:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the SourceAssociation resource produces the following output properties:
- Creation
Time string - The date and time when the association was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - The date and time when the association was last updated.
- Source
Type string - The type of the source.
- Status
Pulumi.
Aws Native. Ram. Source Association Status - The current status of the association.
- Creation
Time string - The date and time when the association was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - The date and time when the association was last updated.
- Source
Type string - The type of the source.
- Status
Source
Association Status - The current status of the association.
- creation_
time string - The date and time when the association was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated_ stringtime - 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.
- creation
Time String - The date and time when the association was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - The date and time when the association was last updated.
- source
Type String - The type of the source.
- status
Source
Association Status - The current status of the association.
- creation
Time string - The date and time when the association was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringTime - The date and time when the association was last updated.
- source
Type string - The type of the source.
- status
Source
Association Status - The current status of the association.
- creation_
time str - The date and time when the association was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strtime - The date and time when the association was last updated.
- source_
type str - The type of the source.
- status
Source
Association Status - The current status of the association.
- creation
Time String - The date and time when the association was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - 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.
Look up Existing SourceAssociation Resource
Get an existing SourceAssociation 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): SourceAssociation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> SourceAssociationfunc GetSourceAssociation(ctx *Context, name string, id IDInput, state *SourceAssociationState, opts ...ResourceOption) (*SourceAssociation, error)public static SourceAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static SourceAssociation get(String name, Output<String> id, CustomResourceOptions options)resources: existingSourceAssociation: type: aws-native:ram:SourceAssociation get: id: ${id}import {
to = aws-native_ram_source_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 SourceAssociationState
- 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
SourceAssociationStatus
The current status of the association.
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Disassociated | DISASSOCIATED |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Name | Value |
|---|---|
| Source | ASSOCIATING |
| Source | ASSOCIATED |
| Source | FAILED |
| Source | DISASSOCIATING |
| Source | DISASSOCIATED |
| Source | SUSPENDED |
| Source | SUSPENDING |
| Source | RESTORING |
| Value |
|---|
ASSOCIATING |
ASSOCIATED |
FAILED |
DISASSOCIATING |
DISASSOCIATED |
SUSPENDED |
SUSPENDING |
RESTORING |
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Disassociated | DISASSOCIATED |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Name | Value |
|---|---|
| Associating | ASSOCIATING |
| Associated | ASSOCIATED |
| Failed | FAILED |
| Disassociating | DISASSOCIATING |
| Disassociated | DISASSOCIATED |
| Suspended | SUSPENDED |
| Suspending | SUSPENDING |
| Restoring | RESTORING |
| Name | Value |
|---|---|
| ASSOCIATING | ASSOCIATING |
| ASSOCIATED | ASSOCIATED |
| FAILED | FAILED |
| DISASSOCIATING | DISASSOCIATING |
| DISASSOCIATED | DISASSOCIATED |
| SUSPENDED | SUSPENDED |
| SUSPENDING | SUSPENDING |
| RESTORING | RESTORING |
| Value |
|---|
ASSOCIATING |
ASSOCIATED |
FAILED |
DISASSOCIATING |
DISASSOCIATED |
SUSPENDED |
SUSPENDING |
RESTORING |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi