Class ComputeServiceAttachment.Builder

    • Method Detail

      • connection

        @Stability(Experimental)
        public ComputeServiceAttachment.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public ComputeServiceAttachment.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public ComputeServiceAttachment.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public ComputeServiceAttachment.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public ComputeServiceAttachment.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public ComputeServiceAttachment.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public ComputeServiceAttachment.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • connectionPreference

        @Stability(Stable)
        public ComputeServiceAttachment.Builder connectionPreference​(String connectionPreference)
        The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#connection_preference ComputeServiceAttachment#connection_preference}

        Parameters:
        connectionPreference - The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL". This parameter is required.
        Returns:
        this
      • enableProxyProtocol

        @Stability(Stable)
        public ComputeServiceAttachment.Builder enableProxyProtocol​(Boolean enableProxyProtocol)
        If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#enable_proxy_protocol ComputeServiceAttachment#enable_proxy_protocol}

        Parameters:
        enableProxyProtocol - If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers. This parameter is required.
        Returns:
        this
      • enableProxyProtocol

        @Stability(Stable)
        public ComputeServiceAttachment.Builder enableProxyProtocol​(com.hashicorp.cdktf.IResolvable enableProxyProtocol)
        If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#enable_proxy_protocol ComputeServiceAttachment#enable_proxy_protocol}

        Parameters:
        enableProxyProtocol - If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public ComputeServiceAttachment.Builder name​(String name)
        Name of the resource.

        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](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' 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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#name ComputeServiceAttachment#name}

        Parameters:
        name - Name of the resource. This parameter is required.
        Returns:
        this
      • natSubnets

        @Stability(Stable)
        public ComputeServiceAttachment.Builder natSubnets​(List<String> natSubnets)
        An array of subnets that is provided for NAT in this service attachment.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#nat_subnets ComputeServiceAttachment#nat_subnets}

        Parameters:
        natSubnets - An array of subnets that is provided for NAT in this service attachment. This parameter is required.
        Returns:
        this
      • targetService

        @Stability(Stable)
        public ComputeServiceAttachment.Builder targetService​(String targetService)
        The URL of a service serving the endpoint identified by this service attachment.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#target_service ComputeServiceAttachment#target_service}

        Parameters:
        targetService - The URL of a service serving the endpoint identified by this service attachment. This parameter is required.
        Returns:
        this
      • consumerAcceptLists

        @Stability(Stable)
        public ComputeServiceAttachment.Builder consumerAcceptLists​(com.hashicorp.cdktf.IResolvable consumerAcceptLists)
        consumer_accept_lists block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#consumer_accept_lists ComputeServiceAttachment#consumer_accept_lists}

        Parameters:
        consumerAcceptLists - consumer_accept_lists block. This parameter is required.
        Returns:
        this
      • consumerAcceptLists

        @Stability(Stable)
        public ComputeServiceAttachment.Builder consumerAcceptLists​(List<? extends ComputeServiceAttachmentConsumerAcceptLists> consumerAcceptLists)
        consumer_accept_lists block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#consumer_accept_lists ComputeServiceAttachment#consumer_accept_lists}

        Parameters:
        consumerAcceptLists - consumer_accept_lists block. This parameter is required.
        Returns:
        this
      • consumerRejectLists

        @Stability(Stable)
        public ComputeServiceAttachment.Builder consumerRejectLists​(List<String> consumerRejectLists)
        An array of projects that are not allowed to connect to this service attachment.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#consumer_reject_lists ComputeServiceAttachment#consumer_reject_lists}

        Parameters:
        consumerRejectLists - An array of projects that are not allowed to connect to this service attachment. This parameter is required.
        Returns:
        this
      • description

        @Stability(Stable)
        public ComputeServiceAttachment.Builder description​(String description)
        An optional description of this resource.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#description ComputeServiceAttachment#description}

        Parameters:
        description - An optional description of this resource. This parameter is required.
        Returns:
        this
      • domainNames

        @Stability(Stable)
        public ComputeServiceAttachment.Builder domainNames​(List<String> domainNames)
        If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS.

        For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#domain_names ComputeServiceAttachment#domain_names}

        Parameters:
        domainNames - If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public ComputeServiceAttachment.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#id ComputeServiceAttachment#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#id ComputeServiceAttachment#id}. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public ComputeServiceAttachment.Builder project​(String project)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#project ComputeServiceAttachment#project}.

        Parameters:
        project - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#project ComputeServiceAttachment#project}. This parameter is required.
        Returns:
        this
      • reconcileConnections

        @Stability(Stable)
        public ComputeServiceAttachment.Builder reconcileConnections​(Boolean reconcileConnections)
        This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints.

        If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#reconcile_connections ComputeServiceAttachment#reconcile_connections}

        Parameters:
        reconcileConnections - This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. This parameter is required.
        Returns:
        this
      • reconcileConnections

        @Stability(Stable)
        public ComputeServiceAttachment.Builder reconcileConnections​(com.hashicorp.cdktf.IResolvable reconcileConnections)
        This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints.

        If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#reconcile_connections ComputeServiceAttachment#reconcile_connections}

        Parameters:
        reconcileConnections - This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. This parameter is required.
        Returns:
        this
      • region

        @Stability(Stable)
        public ComputeServiceAttachment.Builder region​(String region)
        URL of the region where the resource resides.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#region ComputeServiceAttachment#region}

        Parameters:
        region - URL of the region where the resource resides. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public ComputeServiceAttachment.Builder timeouts​(ComputeServiceAttachmentTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_service_attachment#timeouts ComputeServiceAttachment#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this