UNPKG

@pulumi/aws

Version:

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

116 lines (115 loc) 3.57 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides information for multiple EC2 Local Gateways, such as their identifiers. * * ## Example Usage * * The following example retrieves Local Gateways with a resource tag of `service` set to `production`. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * export = async () => { * const foo = await aws.ec2.getLocalGateways({ * tags: { * service: "production", * }, * }); * return { * foo: foo.ids, * }; * } * ``` */ export declare function getLocalGateways(args?: GetLocalGatewaysArgs, opts?: pulumi.InvokeOptions): Promise<GetLocalGatewaysResult>; /** * A collection of arguments for invoking getLocalGateways. */ export interface GetLocalGatewaysArgs { /** * Custom filter block as described below. * * More complex filters can be expressed using one or more `filter` sub-blocks, * which take the following arguments: */ filters?: inputs.ec2.GetLocalGatewaysFilter[]; /** * 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; /** * Mapping of tags, each pair of which must exactly match * a pair on the desired local_gateways. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getLocalGateways. */ export interface GetLocalGatewaysResult { readonly filters?: outputs.ec2.GetLocalGatewaysFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Set of all the Local Gateway identifiers */ readonly ids: string[]; readonly region: string; readonly tags: { [key: string]: string; }; } /** * Provides information for multiple EC2 Local Gateways, such as their identifiers. * * ## Example Usage * * The following example retrieves Local Gateways with a resource tag of `service` set to `production`. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * export = async () => { * const foo = await aws.ec2.getLocalGateways({ * tags: { * service: "production", * }, * }); * return { * foo: foo.ids, * }; * } * ``` */ export declare function getLocalGatewaysOutput(args?: GetLocalGatewaysOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLocalGatewaysResult>; /** * A collection of arguments for invoking getLocalGateways. */ export interface GetLocalGatewaysOutputArgs { /** * Custom filter block as described below. * * More complex filters can be expressed using one or more `filter` sub-blocks, * which take the following arguments: */ filters?: pulumi.Input<pulumi.Input<inputs.ec2.GetLocalGatewaysFilterArgs>[]>; /** * 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>; /** * Mapping of tags, each pair of which must exactly match * a pair on the desired local_gateways. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }