1. Packages
  2. AWS
  3. API Docs
  4. ram
  5. ResourceShareAssociationsExclusive
AWS v7.19.0 published on Friday, Feb 6, 2026 by Pulumi
aws logo
AWS v7.19.0 published on Friday, Feb 6, 2026 by Pulumi

    Import

    Using pulumi import, import RAM Resource Share Association Exclusive using the resource_share_arn. For example:

    $ pulumi import aws:ram/resourceShareAssociationsExclusive:ResourceShareAssociationsExclusive example arn:aws:ram:eu-west-1:123456789012:resource-share/73da1ab9-b94a-4ba3-8eb4-45917f7f4b12
    

    Create ResourceShareAssociationsExclusive Resource

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

    Constructor syntax

    new ResourceShareAssociationsExclusive(name: string, args: ResourceShareAssociationsExclusiveArgs, opts?: CustomResourceOptions);
    @overload
    def ResourceShareAssociationsExclusive(resource_name: str,
                                           args: ResourceShareAssociationsExclusiveArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourceShareAssociationsExclusive(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           resource_share_arn: Optional[str] = None,
                                           principals: Optional[Sequence[str]] = None,
                                           region: Optional[str] = None,
                                           resource_arns: Optional[Sequence[str]] = None,
                                           sources: Optional[Sequence[str]] = None)
    func NewResourceShareAssociationsExclusive(ctx *Context, name string, args ResourceShareAssociationsExclusiveArgs, opts ...ResourceOption) (*ResourceShareAssociationsExclusive, error)
    public ResourceShareAssociationsExclusive(string name, ResourceShareAssociationsExclusiveArgs args, CustomResourceOptions? opts = null)
    public ResourceShareAssociationsExclusive(String name, ResourceShareAssociationsExclusiveArgs args)
    public ResourceShareAssociationsExclusive(String name, ResourceShareAssociationsExclusiveArgs args, CustomResourceOptions options)
    
    type: aws:ram:ResourceShareAssociationsExclusive
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var resourceShareAssociationsExclusiveResource = new Aws.Ram.ResourceShareAssociationsExclusive("resourceShareAssociationsExclusiveResource", new()
    {
        ResourceShareArn = "string",
        Principals = new[]
        {
            "string",
        },
        Region = "string",
        ResourceArns = new[]
        {
            "string",
        },
        Sources = new[]
        {
            "string",
        },
    });
    
    example, err := ram.NewResourceShareAssociationsExclusive(ctx, "resourceShareAssociationsExclusiveResource", &ram.ResourceShareAssociationsExclusiveArgs{
    	ResourceShareArn: pulumi.String("string"),
    	Principals: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Region: pulumi.String("string"),
    	ResourceArns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Sources: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var resourceShareAssociationsExclusiveResource = new ResourceShareAssociationsExclusive("resourceShareAssociationsExclusiveResource", ResourceShareAssociationsExclusiveArgs.builder()
        .resourceShareArn("string")
        .principals("string")
        .region("string")
        .resourceArns("string")
        .sources("string")
        .build());
    
    resource_share_associations_exclusive_resource = aws.ram.ResourceShareAssociationsExclusive("resourceShareAssociationsExclusiveResource",
        resource_share_arn="string",
        principals=["string"],
        region="string",
        resource_arns=["string"],
        sources=["string"])
    
    const resourceShareAssociationsExclusiveResource = new aws.ram.ResourceShareAssociationsExclusive("resourceShareAssociationsExclusiveResource", {
        resourceShareArn: "string",
        principals: ["string"],
        region: "string",
        resourceArns: ["string"],
        sources: ["string"],
    });
    
    type: aws:ram:ResourceShareAssociationsExclusive
    properties:
        principals:
            - string
        region: string
        resourceArns:
            - string
        resourceShareArn: string
        sources:
            - string
    

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

    ResourceShareArn string
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    Principals List<string>
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ResourceArns List<string>
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    Sources List<string>
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    ResourceShareArn string
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    Principals []string
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ResourceArns []string
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    Sources []string
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    resourceShareArn String
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    principals List<String>
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resourceArns List<String>
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    sources List<String>
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    resourceShareArn string
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    principals string[]
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resourceArns string[]
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    sources string[]
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    resource_share_arn str
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    principals Sequence[str]
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resource_arns Sequence[str]
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    sources Sequence[str]
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    resourceShareArn String
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    principals List<String>
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resourceArns List<String>
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    sources List<String>
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResourceShareAssociationsExclusive resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ResourceShareAssociationsExclusive Resource

    Get an existing ResourceShareAssociationsExclusive 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>, state?: ResourceShareAssociationsExclusiveState, opts?: CustomResourceOptions): ResourceShareAssociationsExclusive
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            principals: Optional[Sequence[str]] = None,
            region: Optional[str] = None,
            resource_arns: Optional[Sequence[str]] = None,
            resource_share_arn: Optional[str] = None,
            sources: Optional[Sequence[str]] = None) -> ResourceShareAssociationsExclusive
    func GetResourceShareAssociationsExclusive(ctx *Context, name string, id IDInput, state *ResourceShareAssociationsExclusiveState, opts ...ResourceOption) (*ResourceShareAssociationsExclusive, error)
    public static ResourceShareAssociationsExclusive Get(string name, Input<string> id, ResourceShareAssociationsExclusiveState? state, CustomResourceOptions? opts = null)
    public static ResourceShareAssociationsExclusive get(String name, Output<String> id, ResourceShareAssociationsExclusiveState state, CustomResourceOptions options)
    resources:  _:    type: aws:ram:ResourceShareAssociationsExclusive    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Principals List<string>
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ResourceArns List<string>
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    ResourceShareArn string
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    Sources List<string>
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    Principals []string
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ResourceArns []string
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    ResourceShareArn string
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    Sources []string
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    principals List<String>
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resourceArns List<String>
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    resourceShareArn String
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    sources List<String>
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    principals string[]
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resourceArns string[]
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    resourceShareArn string
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    sources string[]
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    principals Sequence[str]
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resource_arns Sequence[str]
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    resource_share_arn str
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    sources Sequence[str]
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.
    principals List<String>
    A set of principals to associate with the resource share. Principals not configured in this argument will be removed. Valid values include:

    • AWS account ID (exactly 12 digits, e.g., 123456789012)
    • AWS Organizations Organization ARN (e.g., arn:aws:organizations::123456789012:organization/o-exampleorgid)
    • AWS Organizations Organizational Unit ARN (e.g., arn:aws:organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid)
    • IAM role ARN (e.g., arn:aws:iam::123456789012:role/example-role)
    • IAM user ARN (e.g., arn:aws:iam::123456789012:user/example-user)
    • Service principal (e.g., ec2.amazonaws.com)
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    resourceArns List<String>
    A set of Amazon Resource Names (ARNs) of resources to associate with the resource share. Resources not configured in this argument will be removed.
    resourceShareArn String
    The Amazon Resource Name (ARN) of the resource share. Changing this value forces creation of a new resource.
    sources List<String>
    A set of AWS account IDs that restrict which accounts a service principal can access resources from. This argument can only be specified when principals contains only service principals. When specified, it limits the source accounts from which the service can access the shared resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v7.19.0 published on Friday, Feb 6, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate