1. Packages
  2. Google Cloud Native
  3. API Docs
  4. compute
  5. compute/v1
  6. NetworkAttachment

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.compute/v1.NetworkAttachment

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a NetworkAttachment in the specified project in the given scope using the parameters that are included in the request.

    Create NetworkAttachment Resource

    new NetworkAttachment(name: string, args: NetworkAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def NetworkAttachment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          connection_preference: Optional[NetworkAttachmentConnectionPreference] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None,
                          producer_accept_lists: Optional[Sequence[str]] = None,
                          producer_reject_lists: Optional[Sequence[str]] = None,
                          project: Optional[str] = None,
                          region: Optional[str] = None,
                          request_id: Optional[str] = None,
                          subnetworks: Optional[Sequence[str]] = None)
    @overload
    def NetworkAttachment(resource_name: str,
                          args: NetworkAttachmentArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewNetworkAttachment(ctx *Context, name string, args NetworkAttachmentArgs, opts ...ResourceOption) (*NetworkAttachment, error)
    public NetworkAttachment(string name, NetworkAttachmentArgs args, CustomResourceOptions? opts = null)
    public NetworkAttachment(String name, NetworkAttachmentArgs args)
    public NetworkAttachment(String name, NetworkAttachmentArgs args, CustomResourceOptions options)
    
    type: google-native:compute/v1:NetworkAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args NetworkAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NetworkAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NetworkAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NetworkAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NetworkAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    NetworkAttachment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NetworkAttachment resource accepts the following input properties:

    Region string
    ConnectionPreference Pulumi.GoogleNative.Compute.V1.NetworkAttachmentConnectionPreference
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Name 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.
    ProducerAcceptLists List<string>
    Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
    ProducerRejectLists List<string>
    Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
    Project string
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
    Subnetworks List<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.
    Region string
    ConnectionPreference NetworkAttachmentConnectionPreference
    Description string
    An optional description of this resource. Provide this property when you create the resource.
    Name 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.
    ProducerAcceptLists []string
    Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
    ProducerRejectLists []string
    Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
    Project string
    RequestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
    Subnetworks []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.
    region String
    connectionPreference NetworkAttachmentConnectionPreference
    description String
    An optional description of this resource. Provide this property when you create the resource.
    name 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.
    producerAcceptLists List<String>
    Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
    producerRejectLists List<String>
    Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
    project String
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
    subnetworks List<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.
    region string
    connectionPreference NetworkAttachmentConnectionPreference
    description string
    An optional description of this resource. Provide this property when you create the resource.
    name 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.
    producerAcceptLists string[]
    Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
    producerRejectLists string[]
    Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
    project string
    requestId string
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
    subnetworks 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.
    region str
    connection_preference NetworkAttachmentConnectionPreference
    description str
    An optional description of this resource. Provide this property when you create the resource.
    name str
    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.
    producer_accept_lists Sequence[str]
    Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
    producer_reject_lists Sequence[str]
    Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
    project str
    request_id str
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
    subnetworks Sequence[str]
    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.
    region String
    connectionPreference "ACCEPT_AUTOMATIC" | "ACCEPT_MANUAL" | "INVALID"
    description String
    An optional description of this resource. Provide this property when you create the resource.
    name 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.
    producerAcceptLists List<String>
    Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.
    producerRejectLists List<String>
    Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.
    project String
    requestId String
    An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface: MixerMutationRequestBuilder
    subnetworks List<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.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NetworkAttachment resource produces the following output properties:

    ConnectionEndpoints List<Pulumi.GoogleNative.Compute.V1.Outputs.NetworkAttachmentConnectedEndpointResponse>
    An array of connections for all the producers connected to this network attachment.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Fingerprint 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    Type of the resource.
    Network 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.
    SelfLink string
    Server-defined URL for the resource.
    SelfLinkWithId string
    Server-defined URL for this resource's resource id.
    ConnectionEndpoints []NetworkAttachmentConnectedEndpointResponse
    An array of connections for all the producers connected to this network attachment.
    CreationTimestamp string
    Creation timestamp in RFC3339 text format.
    Fingerprint 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.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    Type of the resource.
    Network 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.
    SelfLink string
    Server-defined URL for the resource.
    SelfLinkWithId string
    Server-defined URL for this resource's resource id.
    connectionEndpoints List<NetworkAttachmentConnectedEndpointResponse>
    An array of connections for all the producers connected to this network attachment.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    fingerprint 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.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Type of the resource.
    network 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.
    selfLink String
    Server-defined URL for the resource.
    selfLinkWithId String
    Server-defined URL for this resource's resource id.
    connectionEndpoints NetworkAttachmentConnectedEndpointResponse[]
    An array of connections for all the producers connected to this network attachment.
    creationTimestamp string
    Creation timestamp in RFC3339 text format.
    fingerprint 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.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    Type of the resource.
    network 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.
    selfLink string
    Server-defined URL for the resource.
    selfLinkWithId string
    Server-defined URL for this resource's resource id.
    connection_endpoints Sequence[NetworkAttachmentConnectedEndpointResponse]
    An array of connections for all the producers connected to this network attachment.
    creation_timestamp str
    Creation timestamp in RFC3339 text format.
    fingerprint str
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    Type of the resource.
    network str
    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.
    self_link str
    Server-defined URL for the resource.
    self_link_with_id str
    Server-defined URL for this resource's resource id.
    connectionEndpoints List<Property Map>
    An array of connections for all the producers connected to this network attachment.
    creationTimestamp String
    Creation timestamp in RFC3339 text format.
    fingerprint 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.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    Type of the resource.
    network 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.
    selfLink String
    Server-defined URL for the resource.
    selfLinkWithId String
    Server-defined URL for this resource's resource id.

    Supporting Types

    NetworkAttachmentConnectedEndpointResponse, NetworkAttachmentConnectedEndpointResponseArgs

    IpAddress string
    The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
    Ipv6Address string
    The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
    ProjectIdOrNum string
    The project id or number of the interface to which the IP was assigned.
    SecondaryIpCidrRanges List<string>
    Alias IP ranges from the same subnetwork.
    Status string
    The status of a connected endpoint to this network attachment.
    Subnetwork string
    The subnetwork used to assign the IP to the producer instance network interface.
    SubnetworkCidrRange string
    The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
    IpAddress string
    The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
    Ipv6Address string
    The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
    ProjectIdOrNum string
    The project id or number of the interface to which the IP was assigned.
    SecondaryIpCidrRanges []string
    Alias IP ranges from the same subnetwork.
    Status string
    The status of a connected endpoint to this network attachment.
    Subnetwork string
    The subnetwork used to assign the IP to the producer instance network interface.
    SubnetworkCidrRange string
    The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
    ipAddress String
    The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
    ipv6Address String
    The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
    projectIdOrNum String
    The project id or number of the interface to which the IP was assigned.
    secondaryIpCidrRanges List<String>
    Alias IP ranges from the same subnetwork.
    status String
    The status of a connected endpoint to this network attachment.
    subnetwork String
    The subnetwork used to assign the IP to the producer instance network interface.
    subnetworkCidrRange String
    The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
    ipAddress string
    The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
    ipv6Address string
    The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
    projectIdOrNum string
    The project id or number of the interface to which the IP was assigned.
    secondaryIpCidrRanges string[]
    Alias IP ranges from the same subnetwork.
    status string
    The status of a connected endpoint to this network attachment.
    subnetwork string
    The subnetwork used to assign the IP to the producer instance network interface.
    subnetworkCidrRange string
    The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
    ip_address str
    The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
    ipv6_address str
    The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
    project_id_or_num str
    The project id or number of the interface to which the IP was assigned.
    secondary_ip_cidr_ranges Sequence[str]
    Alias IP ranges from the same subnetwork.
    status str
    The status of a connected endpoint to this network attachment.
    subnetwork str
    The subnetwork used to assign the IP to the producer instance network interface.
    subnetwork_cidr_range str
    The CIDR range of the subnet from which the IPv4 internal IP was allocated from.
    ipAddress String
    The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.
    ipv6Address String
    The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.
    projectIdOrNum String
    The project id or number of the interface to which the IP was assigned.
    secondaryIpCidrRanges List<String>
    Alias IP ranges from the same subnetwork.
    status String
    The status of a connected endpoint to this network attachment.
    subnetwork String
    The subnetwork used to assign the IP to the producer instance network interface.
    subnetworkCidrRange String
    The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

    NetworkAttachmentConnectionPreference, NetworkAttachmentConnectionPreferenceArgs

    AcceptAutomatic
    ACCEPT_AUTOMATIC
    AcceptManual
    ACCEPT_MANUAL
    Invalid
    INVALID
    NetworkAttachmentConnectionPreferenceAcceptAutomatic
    ACCEPT_AUTOMATIC
    NetworkAttachmentConnectionPreferenceAcceptManual
    ACCEPT_MANUAL
    NetworkAttachmentConnectionPreferenceInvalid
    INVALID
    AcceptAutomatic
    ACCEPT_AUTOMATIC
    AcceptManual
    ACCEPT_MANUAL
    Invalid
    INVALID
    AcceptAutomatic
    ACCEPT_AUTOMATIC
    AcceptManual
    ACCEPT_MANUAL
    Invalid
    INVALID
    ACCEPT_AUTOMATIC
    ACCEPT_AUTOMATIC
    ACCEPT_MANUAL
    ACCEPT_MANUAL
    INVALID
    INVALID
    "ACCEPT_AUTOMATIC"
    ACCEPT_AUTOMATIC
    "ACCEPT_MANUAL"
    ACCEPT_MANUAL
    "INVALID"
    INVALID

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi