GetResourceShare
aws.ram.ResourceShare Retrieve information about a RAM Resource Share.
Search by filters
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const tagFilter = pulumi.output(aws.ram.getResourceShare({
filters: [{
name: "NameOfTag",
values: ["exampleNameTagValue"],
}],
name: "MyResourceName",
resourceOwner: "SELF",
}, { async: true }));import pulumi
import pulumi_aws as aws
tag_filter = aws.ram.get_resource_share(filters=[{
"name": "NameOfTag",
"values": ["exampleNameTagValue"],
}],
name="MyResourceName",
resource_owner="SELF")using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var tagFilter = Output.Create(Aws.Ram.GetResourceShare.InvokeAsync(new Aws.Ram.GetResourceShareArgs
{
Filters =
{
new Aws.Ram.Inputs.GetResourceShareFilterArgs
{
Name = "NameOfTag",
Values =
{
"exampleNameTagValue",
},
},
},
Name = "MyResourceName",
ResourceOwner = "SELF",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ram"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ram.LookupResourceShare(ctx, &ram.LookupResourceShareArgs{
Filters: []ram.GetResourceShareFilter{
ram.GetResourceShareFilter{
Name: "NameOfTag",
Values: []string{
"exampleNameTagValue",
},
},
},
Name: "MyResourceName",
ResourceOwner: "SELF",
}, nil)
if err != nil {
return err
}
return nil
})
}Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Ram.GetResourceShare.InvokeAsync(new Aws.Ram.GetResourceShareArgs
{
Name = "example",
ResourceOwner = "SELF",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/ram"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ram.LookupResourceShare(ctx, &ram.LookupResourceShareArgs{
Name: "example",
ResourceOwner: "SELF",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.ram.get_resource_share(name="example",
resource_owner="SELF")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.ram.getResourceShare({
name: "example",
resourceOwner: "SELF",
}, { async: true }));Using GetResourceShare
function getResourceShare(args: GetResourceShareArgs, opts?: InvokeOptions): Promise<GetResourceShareResult>function get_resource_share(filters=None, name=None, resource_owner=None, tags=None, opts=None)func LookupResourceShare(ctx *Context, args *LookupResourceShareArgs, opts ...InvokeOption) (*LookupResourceShareResult, error)Note: This function is named
LookupResourceSharein the Go SDK.
public static class GetResourceShare {
public static Task<GetResourceShareResult> InvokeAsync(GetResourceShareArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the tag key to filter on.
- Resource
Owner string The owner of the resource share. Valid values are SELF or OTHER-ACCOUNTS
- Filters
List<Get
Resource Share Filter Args> A filter used to scope the list e.g. by tags. See related docs.
- Dictionary<string, string>
The Tags attached to the RAM share
- Name string
The name of the tag key to filter on.
- Resource
Owner string The owner of the resource share. Valid values are SELF or OTHER-ACCOUNTS
- Filters
[]Get
Resource Share Filter A filter used to scope the list e.g. by tags. See related docs.
- map[string]string
The Tags attached to the RAM share
- name string
The name of the tag key to filter on.
- resource
Owner string The owner of the resource share. Valid values are SELF or OTHER-ACCOUNTS
- filters
Get
Resource Share Filter[] A filter used to scope the list e.g. by tags. See related docs.
- {[key: string]: string}
The Tags attached to the RAM share
- name str
The name of the tag key to filter on.
- resource_
owner str The owner of the resource share. Valid values are SELF or OTHER-ACCOUNTS
- filters
List[Get
Resource Share Filter] A filter used to scope the list e.g. by tags. See related docs.
- Dict[str, str]
The Tags attached to the RAM share
GetResourceShare Result
The following output properties are available:
- Arn string
The Amazon Resource Name (ARN) of the resource share.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Owning
Account stringId The ID of the AWS account that owns the resource share.
- Resource
Owner string - Status string
The Status of the RAM share.
- Dictionary<string, string>
The Tags attached to the RAM share
- Filters
List<Get
Resource Share Filter>
- Arn string
The Amazon Resource Name (ARN) of the resource share.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Owning
Account stringId The ID of the AWS account that owns the resource share.
- Resource
Owner string - Status string
The Status of the RAM share.
- map[string]string
The Tags attached to the RAM share
- Filters
[]Get
Resource Share Filter
- arn string
The Amazon Resource Name (ARN) of the resource share.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- owning
Account stringId The ID of the AWS account that owns the resource share.
- resource
Owner string - status string
The Status of the RAM share.
- {[key: string]: string}
The Tags attached to the RAM share
- filters
Get
Resource Share Filter[]
- arn str
The Amazon Resource Name (ARN) of the resource share.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- owning_
account_ strid The ID of the AWS account that owns the resource share.
- resource_
owner str - status str
The Status of the RAM share.
- Dict[str, str]
The Tags attached to the RAM share
- filters
List[Get
Resource Share Filter]
Supporting Types
GetResourceShareFilter
- Name string
The name of the tag key to filter on.
- Values List<string>
The value of the tag key.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.