import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * `aws.ram.ResourceShare` Retrieve information about a RAM Resource Share. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ram.getResourceShare({ * name: "example", * resourceOwner: "SELF", * }); * ``` * * ### Search by filters * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const tagFilter = aws.ram.getResourceShare({ * filters: [{ * name: "NameOfTag", * values: ["exampleNameTagValue"], * }], * resourceOwner: "SELF", * }); * ``` */ export declare function getResourceShare(args: GetResourceShareArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getResourceShare. */ export interface GetResourceShareArgs { /** * Filter used to scope the list e.g., by tags. See `filter` Block below. */ filters?: inputs.ram.GetResourceShareFilter[]; /** * Name of the resource share to retrieve. */ name?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Owner of the resource share. Valid values are `SELF` or `OTHER-ACCOUNTS`. */ resourceOwner: string; /** * Status of resource shares to retrieve. Valid values are `PENDING`, `ACTIVE`, `FAILED`, `DELETING`, and `DELETED`. */ resourceShareStatus?: string; /** * Tags attached to the resource share. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getResourceShare. */ export interface GetResourceShareResult { /** * ARN of the resource share. */ readonly arn: string; readonly filters?: outputs.ram.GetResourceShareFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; /** * ID of the AWS account that owns the resource share. */ readonly owningAccountId: string; readonly region: string; /** * List of resource ARNs associated with the resource share. */ readonly resourceArns: string[]; readonly resourceOwner: string; readonly resourceShareStatus?: string; /** * Status of the resource share. */ readonly status: string; /** * Tags attached to the resource share. */ readonly tags: { [key: string]: string; }; } /** * `aws.ram.ResourceShare` Retrieve information about a RAM Resource Share. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ram.getResourceShare({ * name: "example", * resourceOwner: "SELF", * }); * ``` * * ### Search by filters * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const tagFilter = aws.ram.getResourceShare({ * filters: [{ * name: "NameOfTag", * values: ["exampleNameTagValue"], * }], * resourceOwner: "SELF", * }); * ``` */ export declare function getResourceShareOutput(args: GetResourceShareOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getResourceShare. */ export interface GetResourceShareOutputArgs { /** * Filter used to scope the list e.g., by tags. See `filter` Block below. */ filters?: pulumi.Input[] | undefined>; /** * Name of the resource share to retrieve. */ name?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Owner of the resource share. Valid values are `SELF` or `OTHER-ACCOUNTS`. */ resourceOwner: pulumi.Input; /** * Status of resource shares to retrieve. Valid values are `PENDING`, `ACTIVE`, `FAILED`, `DELETING`, and `DELETED`. */ resourceShareStatus?: pulumi.Input; /** * Tags attached to the resource share. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=getResourceShare.d.ts.map