import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Returns the specified NetworkAttachment resource in the given scope. */ export declare function getNetworkAttachment(args: GetNetworkAttachmentArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetNetworkAttachmentArgs { networkAttachment: string; project?: string; region: string; } export interface GetNetworkAttachmentResult { /** * An array of connections for all the producers connected to this network attachment. */ readonly connectionEndpoints: outputs.compute.beta.NetworkAttachmentConnectedEndpointResponse[]; readonly connectionPreference: string; /** * Creation timestamp in RFC3339 text format. */ readonly creationTimestamp: string; /** * An optional description of this resource. Provide this property when you create the resource. */ readonly description: string; /** * Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch. */ readonly fingerprint: string; /** * Type of the resource. */ readonly kind: string; /** * Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. */ readonly name: string; /** * The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks. */ readonly network: string; /** * Projects that are allowed to connect to this network attachment. The project can be specified using its id or number. */ readonly producerAcceptLists: string[]; /** * Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number. */ readonly producerRejectLists: string[]; /** * URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body. */ readonly region: string; /** * Server-defined URL for the resource. */ readonly selfLink: string; /** * Server-defined URL for this resource's resource id. */ readonly selfLinkWithId: string; /** * An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment. */ readonly subnetworks: string[]; } /** * Returns the specified NetworkAttachment resource in the given scope. */ export declare function getNetworkAttachmentOutput(args: GetNetworkAttachmentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetNetworkAttachmentOutputArgs { networkAttachment: pulumi.Input; project?: pulumi.Input; region: pulumi.Input; }