UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

103 lines (102 loc) 2.78 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides information about a ElastiCache Subnet Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.elasticache.getSubnetGroup({ * name: "my-subnet-group", * }); * ``` */ export declare function getSubnetGroup(args: GetSubnetGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetSubnetGroupResult>; /** * A collection of arguments for invoking getSubnetGroup. */ export interface GetSubnetGroupArgs { /** * Name of the subnet group. */ 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; /** * Map of tags assigned to the subnet group. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getSubnetGroup. */ export interface GetSubnetGroupResult { /** * ARN of the subnet group. */ readonly arn: string; /** * Description of the subnet group. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name: string; readonly region: string; /** * Set of VPC Subnet ID-s of the subnet group. */ readonly subnetIds: string[]; /** * Map of tags assigned to the subnet group. */ readonly tags?: { [key: string]: string; }; /** * The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group. */ readonly vpcId: string; } /** * Provides information about a ElastiCache Subnet Group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.elasticache.getSubnetGroup({ * name: "my-subnet-group", * }); * ``` */ export declare function getSubnetGroupOutput(args: GetSubnetGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSubnetGroupResult>; /** * A collection of arguments for invoking getSubnetGroup. */ export interface GetSubnetGroupOutputArgs { /** * Name of the subnet group. */ name: pulumi.Input<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?: pulumi.Input<string>; /** * Map of tags assigned to the subnet group. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }