NetworkAttachmentArgs

data class NetworkAttachmentArgs(val connectionPreference: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val producerAcceptLists: Output<List<String>>? = null, val producerRejectLists: Output<List<String>>? = null, val project: Output<String>? = null, val region: Output<String>? = null, val subnetworks: Output<List<String>>? = null) : ConvertibleToJava<NetworkAttachmentArgs>

{{% examples %}}

Example Usage

{{% /examples %}}

Import

NetworkAttachment can be imported using any of these accepted formats

$ pulumi import gcp:compute/networkAttachment:NetworkAttachment default projects/{{project}}/regions/{{region}}/networkAttachments/{{name}}
$ pulumi import gcp:compute/networkAttachment:NetworkAttachment default {{project}}/{{region}}/{{name}}
$ pulumi import gcp:compute/networkAttachment:NetworkAttachment default {{region}}/{{name}}
$ pulumi import gcp:compute/networkAttachment:NetworkAttachment default {{name}}

Constructors

Link copied to clipboard
constructor(connectionPreference: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, producerAcceptLists: Output<List<String>>? = null, producerRejectLists: Output<List<String>>? = null, project: Output<String>? = null, region: Output<String>? = null, subnetworks: Output<List<String>>? = null)

Properties

Link copied to clipboard
val connectionPreference: Output<String>? = null

The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Possible values are: ACCEPT_AUTOMATIC, ACCEPT_MANUAL, INVALID.

Link copied to clipboard
val description: Output<String>? = null

An optional description of this resource. Provide this property when you create the resource.

Link copied to clipboard
val name: Output<String>? = null

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? 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.

Link copied to clipboard
val producerAcceptLists: Output<List<String>>? = null

Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.

Link copied to clipboard
val producerRejectLists: Output<List<String>>? = null

Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val region: Output<String>? = null

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.

Link copied to clipboard
val subnetworks: Output<List<String>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): NetworkAttachmentArgs