Class ResourceAssociation
Manages a Resource Access Manager (RAM) Resource Association.
NOTE: Certain AWS resources (e.g. EC2 Subnets) can only be shared in an AWS account that is a member of an AWS Organizations organization with organization-wide Resource Access Manager functionality enabled. See the Resource Access Manager User Guide and AWS service specific documentation for additional information.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Ram.ResourceAssociation("example", new Aws.Ram.ResourceAssociationArgs
{
ResourceArn = aws_subnet.Example.Arn,
ResourceShareArn = aws_ram_resource_share.Example.Arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Ram
Assembly: Pulumi.Aws.dll
Syntax
public class ResourceAssociation : CustomResource
Constructors
View SourceResourceAssociation(String, ResourceAssociationArgs, CustomResourceOptions)
Create a ResourceAssociation resource with the given unique name, arguments, and options.
Declaration
public ResourceAssociation(string name, ResourceAssociationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ResourceAssociationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceResourceArn
Amazon Resource Name (ARN) of the resource to associate with the RAM Resource Share.
Declaration
public Output<string> ResourceArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceShareArn
Amazon Resource Name (ARN) of the RAM Resource Share.
Declaration
public Output<string> ResourceShareArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ResourceAssociationState, CustomResourceOptions)
Get an existing ResourceAssociation resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ResourceAssociation Get(string name, Input<string> id, ResourceAssociationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ResourceAssociationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ResourceAssociation |