UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

102 lines (101 loc) 3.4 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a specific network attachment within a region. For more information see * the [official documentation](https://cloud.google.com/vpc/docs/about-network-attachments) * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/networkAttachments/get). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.compute.getNetworkAttachment({ * project: "my-project", * name: "my-network-attachment", * region: "europe-west1", * }); * ``` */ export declare function getNetworkAttachment(args: GetNetworkAttachmentArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkAttachmentResult>; /** * A collection of arguments for invoking getNetworkAttachment. */ export interface GetNetworkAttachmentArgs { /** * The name of the network attachment to retrieve. * The name must be unique within the region. */ name: string; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: string; /** * The region in which the network attachment resides. * For example, `europe-west1`. */ region: string; } /** * A collection of values returned by getNetworkAttachment. */ export interface GetNetworkAttachmentResult { readonly connectionEndpoints: outputs.compute.GetNetworkAttachmentConnectionEndpoint[]; readonly connectionPreference: string; readonly creationTimestamp: string; readonly description: string; readonly fingerprint: string; readonly id: string; readonly kind: string; readonly name: string; readonly network: string; readonly producerAcceptLists: string[]; readonly producerRejectLists: string[]; readonly project?: string; readonly region: string; readonly selfLink: string; readonly selfLinkWithId: string; readonly subnetworks: string[]; } /** * Get a specific network attachment within a region. For more information see * the [official documentation](https://cloud.google.com/vpc/docs/about-network-attachments) * and [API](https://cloud.google.com/compute/docs/reference/rest/v1/networkAttachments/get). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const _default = gcp.compute.getNetworkAttachment({ * project: "my-project", * name: "my-network-attachment", * region: "europe-west1", * }); * ``` */ export declare function getNetworkAttachmentOutput(args: GetNetworkAttachmentOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkAttachmentResult>; /** * A collection of arguments for invoking getNetworkAttachment. */ export interface GetNetworkAttachmentOutputArgs { /** * The name of the network attachment to retrieve. * The name must be unique within the region. */ name: pulumi.Input<string>; /** * The ID of the project in which the resource belongs. * If it is not provided, the provider project is used. */ project?: pulumi.Input<string>; /** * The region in which the network attachment resides. * For example, `europe-west1`. */ region: pulumi.Input<string>; }