1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. ServiceAttachment
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

gcp.compute.ServiceAttachment

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi

    Represents a ServiceAttachment resource.

    To get more information about ServiceAttachment, see:

    Example Usage

    Service Attachment Basic

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.HealthCheck;
    import com.pulumi.gcp.compute.HealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.HealthCheckTcpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.ServiceAttachment;
    import com.pulumi.gcp.compute.ServiceAttachmentArgs;
    import com.pulumi.gcp.compute.Address;
    import com.pulumi.gcp.compute.AddressArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var producerServiceHealthCheck = new HealthCheck("producerServiceHealthCheck", HealthCheckArgs.builder()        
                .checkIntervalSec(1)
                .timeoutSec(1)
                .tcpHealthCheck(HealthCheckTcpHealthCheckArgs.builder()
                    .port("80")
                    .build())
                .build());
    
            var producerServiceBackend = new RegionBackendService("producerServiceBackend", RegionBackendServiceArgs.builder()        
                .region("us-west2")
                .healthChecks(producerServiceHealthCheck.id())
                .build());
    
            var pscIlbNetwork = new Network("pscIlbNetwork", NetworkArgs.builder()        
                .autoCreateSubnetworks(false)
                .build());
    
            var pscIlbProducerSubnetwork = new Subnetwork("pscIlbProducerSubnetwork", SubnetworkArgs.builder()        
                .region("us-west2")
                .network(pscIlbNetwork.id())
                .ipCidrRange("10.0.0.0/16")
                .build());
    
            var pscIlbTargetService = new ForwardingRule("pscIlbTargetService", ForwardingRuleArgs.builder()        
                .region("us-west2")
                .loadBalancingScheme("INTERNAL")
                .backendService(producerServiceBackend.id())
                .allPorts(true)
                .network(pscIlbNetwork.name())
                .subnetwork(pscIlbProducerSubnetwork.name())
                .build());
    
            var pscIlbNat = new Subnetwork("pscIlbNat", SubnetworkArgs.builder()        
                .region("us-west2")
                .network(pscIlbNetwork.id())
                .purpose("PRIVATE_SERVICE_CONNECT")
                .ipCidrRange("10.1.0.0/16")
                .build());
    
            var pscIlbServiceAttachment = new ServiceAttachment("pscIlbServiceAttachment", ServiceAttachmentArgs.builder()        
                .region("us-west2")
                .description("A service attachment configured with Terraform")
                .domainNames("gcp.tfacc.hashicorptest.com.")
                .enableProxyProtocol(true)
                .connectionPreference("ACCEPT_AUTOMATIC")
                .natSubnets(pscIlbNat.id())
                .targetService(pscIlbTargetService.id())
                .build());
    
            var pscIlbConsumerAddress = new Address("pscIlbConsumerAddress", AddressArgs.builder()        
                .region("us-west2")
                .subnetwork("default")
                .addressType("INTERNAL")
                .build());
    
            var pscIlbConsumer = new ForwardingRule("pscIlbConsumer", ForwardingRuleArgs.builder()        
                .region("us-west2")
                .target(pscIlbServiceAttachment.id())
                .loadBalancingScheme("")
                .network("default")
                .ipAddress(pscIlbConsumerAddress.id())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      pscIlbServiceAttachment:
        type: gcp:compute:ServiceAttachment
        properties:
          region: us-west2
          description: A service attachment configured with Terraform
          domainNames:
            - gcp.tfacc.hashicorptest.com.
          enableProxyProtocol: true
          connectionPreference: ACCEPT_AUTOMATIC
          natSubnets:
            - ${pscIlbNat.id}
          targetService: ${pscIlbTargetService.id}
      pscIlbConsumerAddress:
        type: gcp:compute:Address
        properties:
          region: us-west2
          subnetwork: default
          addressType: INTERNAL
      pscIlbConsumer:
        type: gcp:compute:ForwardingRule
        properties:
          region: us-west2
          target: ${pscIlbServiceAttachment.id}
          loadBalancingScheme:
          # need to override EXTERNAL default when target is a service attachment
          network: default
          ipAddress: ${pscIlbConsumerAddress.id}
      pscIlbTargetService:
        type: gcp:compute:ForwardingRule
        properties:
          region: us-west2
          loadBalancingScheme: INTERNAL
          backendService: ${producerServiceBackend.id}
          allPorts: true
          network: ${pscIlbNetwork.name}
          subnetwork: ${pscIlbProducerSubnetwork.name}
      producerServiceBackend:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-west2
          healthChecks:
            - ${producerServiceHealthCheck.id}
      producerServiceHealthCheck:
        type: gcp:compute:HealthCheck
        properties:
          checkIntervalSec: 1
          timeoutSec: 1
          tcpHealthCheck:
            port: '80'
      pscIlbNetwork:
        type: gcp:compute:Network
        properties:
          autoCreateSubnetworks: false
      pscIlbProducerSubnetwork:
        type: gcp:compute:Subnetwork
        properties:
          region: us-west2
          network: ${pscIlbNetwork.id}
          ipCidrRange: 10.0.0.0/16
      pscIlbNat:
        type: gcp:compute:Subnetwork
        properties:
          region: us-west2
          network: ${pscIlbNetwork.id}
          purpose: PRIVATE_SERVICE_CONNECT
          ipCidrRange: 10.1.0.0/16
    

    Service Attachment Explicit Projects

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.HealthCheck;
    import com.pulumi.gcp.compute.HealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.HealthCheckTcpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.ServiceAttachment;
    import com.pulumi.gcp.compute.ServiceAttachmentArgs;
    import com.pulumi.gcp.compute.inputs.ServiceAttachmentConsumerAcceptListArgs;
    import com.pulumi.gcp.compute.Address;
    import com.pulumi.gcp.compute.AddressArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var producerServiceHealthCheck = new HealthCheck("producerServiceHealthCheck", HealthCheckArgs.builder()        
                .checkIntervalSec(1)
                .timeoutSec(1)
                .tcpHealthCheck(HealthCheckTcpHealthCheckArgs.builder()
                    .port("80")
                    .build())
                .build());
    
            var producerServiceBackend = new RegionBackendService("producerServiceBackend", RegionBackendServiceArgs.builder()        
                .region("us-west2")
                .healthChecks(producerServiceHealthCheck.id())
                .build());
    
            var pscIlbNetwork = new Network("pscIlbNetwork", NetworkArgs.builder()        
                .autoCreateSubnetworks(false)
                .build());
    
            var pscIlbProducerSubnetwork = new Subnetwork("pscIlbProducerSubnetwork", SubnetworkArgs.builder()        
                .region("us-west2")
                .network(pscIlbNetwork.id())
                .ipCidrRange("10.0.0.0/16")
                .build());
    
            var pscIlbTargetService = new ForwardingRule("pscIlbTargetService", ForwardingRuleArgs.builder()        
                .region("us-west2")
                .loadBalancingScheme("INTERNAL")
                .backendService(producerServiceBackend.id())
                .allPorts(true)
                .network(pscIlbNetwork.name())
                .subnetwork(pscIlbProducerSubnetwork.name())
                .build());
    
            var pscIlbNat = new Subnetwork("pscIlbNat", SubnetworkArgs.builder()        
                .region("us-west2")
                .network(pscIlbNetwork.id())
                .purpose("PRIVATE_SERVICE_CONNECT")
                .ipCidrRange("10.1.0.0/16")
                .build());
    
            var pscIlbServiceAttachment = new ServiceAttachment("pscIlbServiceAttachment", ServiceAttachmentArgs.builder()        
                .region("us-west2")
                .description("A service attachment configured with Terraform")
                .domainNames("gcp.tfacc.hashicorptest.com.")
                .enableProxyProtocol(true)
                .connectionPreference("ACCEPT_MANUAL")
                .natSubnets(pscIlbNat.id())
                .targetService(pscIlbTargetService.id())
                .consumerRejectLists(            
                    "673497134629",
                    "482878270665")
                .consumerAcceptLists(ServiceAttachmentConsumerAcceptListArgs.builder()
                    .projectIdOrNum("658859330310")
                    .connectionLimit(4)
                    .build())
                .build());
    
            var pscIlbConsumerAddress = new Address("pscIlbConsumerAddress", AddressArgs.builder()        
                .region("us-west2")
                .subnetwork("default")
                .addressType("INTERNAL")
                .build());
    
            var pscIlbConsumer = new ForwardingRule("pscIlbConsumer", ForwardingRuleArgs.builder()        
                .region("us-west2")
                .target(pscIlbServiceAttachment.id())
                .loadBalancingScheme("")
                .network("default")
                .ipAddress(pscIlbConsumerAddress.id())
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      pscIlbServiceAttachment:
        type: gcp:compute:ServiceAttachment
        properties:
          region: us-west2
          description: A service attachment configured with Terraform
          domainNames:
            - gcp.tfacc.hashicorptest.com.
          enableProxyProtocol: true
          connectionPreference: ACCEPT_MANUAL
          natSubnets:
            - ${pscIlbNat.id}
          targetService: ${pscIlbTargetService.id}
          consumerRejectLists:
            - '673497134629'
            - '482878270665'
          consumerAcceptLists:
            - projectIdOrNum: '658859330310'
              connectionLimit: 4
      pscIlbConsumerAddress:
        type: gcp:compute:Address
        properties:
          region: us-west2
          subnetwork: default
          addressType: INTERNAL
      pscIlbConsumer:
        type: gcp:compute:ForwardingRule
        properties:
          region: us-west2
          target: ${pscIlbServiceAttachment.id}
          loadBalancingScheme:
          # need to override EXTERNAL default when target is a service attachment
          network: default
          ipAddress: ${pscIlbConsumerAddress.id}
      pscIlbTargetService:
        type: gcp:compute:ForwardingRule
        properties:
          region: us-west2
          loadBalancingScheme: INTERNAL
          backendService: ${producerServiceBackend.id}
          allPorts: true
          network: ${pscIlbNetwork.name}
          subnetwork: ${pscIlbProducerSubnetwork.name}
      producerServiceBackend:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-west2
          healthChecks:
            - ${producerServiceHealthCheck.id}
      producerServiceHealthCheck:
        type: gcp:compute:HealthCheck
        properties:
          checkIntervalSec: 1
          timeoutSec: 1
          tcpHealthCheck:
            port: '80'
      pscIlbNetwork:
        type: gcp:compute:Network
        properties:
          autoCreateSubnetworks: false
      pscIlbProducerSubnetwork:
        type: gcp:compute:Subnetwork
        properties:
          region: us-west2
          network: ${pscIlbNetwork.id}
          ipCidrRange: 10.0.0.0/16
      pscIlbNat:
        type: gcp:compute:Subnetwork
        properties:
          region: us-west2
          network: ${pscIlbNetwork.id}
          purpose: PRIVATE_SERVICE_CONNECT
          ipCidrRange: 10.1.0.0/16
    

    Service Attachment Reconcile Connections

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.HealthCheck;
    import com.pulumi.gcp.compute.HealthCheckArgs;
    import com.pulumi.gcp.compute.inputs.HealthCheckTcpHealthCheckArgs;
    import com.pulumi.gcp.compute.RegionBackendService;
    import com.pulumi.gcp.compute.RegionBackendServiceArgs;
    import com.pulumi.gcp.compute.Network;
    import com.pulumi.gcp.compute.NetworkArgs;
    import com.pulumi.gcp.compute.Subnetwork;
    import com.pulumi.gcp.compute.SubnetworkArgs;
    import com.pulumi.gcp.compute.ForwardingRule;
    import com.pulumi.gcp.compute.ForwardingRuleArgs;
    import com.pulumi.gcp.compute.ServiceAttachment;
    import com.pulumi.gcp.compute.ServiceAttachmentArgs;
    import com.pulumi.gcp.compute.inputs.ServiceAttachmentConsumerAcceptListArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var producerServiceHealthCheck = new HealthCheck("producerServiceHealthCheck", HealthCheckArgs.builder()        
                .checkIntervalSec(1)
                .timeoutSec(1)
                .tcpHealthCheck(HealthCheckTcpHealthCheckArgs.builder()
                    .port("80")
                    .build())
                .build());
    
            var producerServiceBackend = new RegionBackendService("producerServiceBackend", RegionBackendServiceArgs.builder()        
                .region("us-west2")
                .healthChecks(producerServiceHealthCheck.id())
                .build());
    
            var pscIlbNetwork = new Network("pscIlbNetwork", NetworkArgs.builder()        
                .autoCreateSubnetworks(false)
                .build());
    
            var pscIlbProducerSubnetwork = new Subnetwork("pscIlbProducerSubnetwork", SubnetworkArgs.builder()        
                .region("us-west2")
                .network(pscIlbNetwork.id())
                .ipCidrRange("10.0.0.0/16")
                .build());
    
            var pscIlbTargetService = new ForwardingRule("pscIlbTargetService", ForwardingRuleArgs.builder()        
                .region("us-west2")
                .loadBalancingScheme("INTERNAL")
                .backendService(producerServiceBackend.id())
                .allPorts(true)
                .network(pscIlbNetwork.name())
                .subnetwork(pscIlbProducerSubnetwork.name())
                .build());
    
            var pscIlbNat = new Subnetwork("pscIlbNat", SubnetworkArgs.builder()        
                .region("us-west2")
                .network(pscIlbNetwork.id())
                .purpose("PRIVATE_SERVICE_CONNECT")
                .ipCidrRange("10.1.0.0/16")
                .build());
    
            var pscIlbServiceAttachment = new ServiceAttachment("pscIlbServiceAttachment", ServiceAttachmentArgs.builder()        
                .region("us-west2")
                .description("A service attachment configured with Terraform")
                .domainNames("gcp.tfacc.hashicorptest.com.")
                .enableProxyProtocol(true)
                .connectionPreference("ACCEPT_MANUAL")
                .natSubnets(pscIlbNat.id())
                .targetService(pscIlbTargetService.id())
                .consumerRejectLists(            
                    "673497134629",
                    "482878270665")
                .consumerAcceptLists(ServiceAttachmentConsumerAcceptListArgs.builder()
                    .projectIdOrNum("658859330310")
                    .connectionLimit(4)
                    .build())
                .reconcileConnections(false)
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    resources:
      pscIlbServiceAttachment:
        type: gcp:compute:ServiceAttachment
        properties:
          region: us-west2
          description: A service attachment configured with Terraform
          domainNames:
            - gcp.tfacc.hashicorptest.com.
          enableProxyProtocol: true
          connectionPreference: ACCEPT_MANUAL
          natSubnets:
            - ${pscIlbNat.id}
          targetService: ${pscIlbTargetService.id}
          consumerRejectLists:
            - '673497134629'
            - '482878270665'
          consumerAcceptLists:
            - projectIdOrNum: '658859330310'
              connectionLimit: 4
          reconcileConnections: false
      pscIlbTargetService:
        type: gcp:compute:ForwardingRule
        properties:
          region: us-west2
          loadBalancingScheme: INTERNAL
          backendService: ${producerServiceBackend.id}
          allPorts: true
          network: ${pscIlbNetwork.name}
          subnetwork: ${pscIlbProducerSubnetwork.name}
      producerServiceBackend:
        type: gcp:compute:RegionBackendService
        properties:
          region: us-west2
          healthChecks:
            - ${producerServiceHealthCheck.id}
      producerServiceHealthCheck:
        type: gcp:compute:HealthCheck
        properties:
          checkIntervalSec: 1
          timeoutSec: 1
          tcpHealthCheck:
            port: '80'
      pscIlbNetwork:
        type: gcp:compute:Network
        properties:
          autoCreateSubnetworks: false
      pscIlbProducerSubnetwork:
        type: gcp:compute:Subnetwork
        properties:
          region: us-west2
          network: ${pscIlbNetwork.id}
          ipCidrRange: 10.0.0.0/16
      pscIlbNat:
        type: gcp:compute:Subnetwork
        properties:
          region: us-west2
          network: ${pscIlbNetwork.id}
          purpose: PRIVATE_SERVICE_CONNECT
          ipCidrRange: 10.1.0.0/16
    

    Create ServiceAttachment Resource

    new ServiceAttachment(name: string, args: ServiceAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAttachment(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          connection_preference: Optional[str] = None,
                          consumer_accept_lists: Optional[Sequence[ServiceAttachmentConsumerAcceptListArgs]] = None,
                          consumer_reject_lists: Optional[Sequence[str]] = None,
                          description: Optional[str] = None,
                          domain_names: Optional[Sequence[str]] = None,
                          enable_proxy_protocol: Optional[bool] = None,
                          name: Optional[str] = None,
                          nat_subnets: Optional[Sequence[str]] = None,
                          project: Optional[str] = None,
                          reconcile_connections: Optional[bool] = None,
                          region: Optional[str] = None,
                          target_service: Optional[str] = None)
    @overload
    def ServiceAttachment(resource_name: str,
                          args: ServiceAttachmentArgs,
                          opts: Optional[ResourceOptions] = None)
    func NewServiceAttachment(ctx *Context, name string, args ServiceAttachmentArgs, opts ...ResourceOption) (*ServiceAttachment, error)
    public ServiceAttachment(string name, ServiceAttachmentArgs args, CustomResourceOptions? opts = null)
    public ServiceAttachment(String name, ServiceAttachmentArgs args)
    public ServiceAttachment(String name, ServiceAttachmentArgs args, CustomResourceOptions options)
    
    type: gcp:compute:ServiceAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ServiceAttachmentArgs
    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 ServiceAttachmentArgs
    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 ServiceAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ServiceAttachment 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 ServiceAttachment resource accepts the following input properties:

    ConnectionPreference string

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    EnableProxyProtocol bool

    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.


    NatSubnets List<string>

    An array of subnets that is provided for NAT in this service attachment.

    TargetService string

    The URL of a forwarding rule that represents the service identified by this service attachment.

    ConsumerAcceptLists List<ServiceAttachmentConsumerAcceptList>

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    ConsumerRejectLists List<string>

    An array of projects that are not allowed to connect to this service attachment.

    Description string

    An optional description of this resource.

    DomainNames List<string>

    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.

    Name string

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

    Project string

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

    ReconcileConnections bool

    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.

    Region string

    URL of the region where the resource resides.

    ConnectionPreference string

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    EnableProxyProtocol bool

    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.


    NatSubnets []string

    An array of subnets that is provided for NAT in this service attachment.

    TargetService string

    The URL of a forwarding rule that represents the service identified by this service attachment.

    ConsumerAcceptLists []ServiceAttachmentConsumerAcceptListArgs

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    ConsumerRejectLists []string

    An array of projects that are not allowed to connect to this service attachment.

    Description string

    An optional description of this resource.

    DomainNames []string

    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.

    Name string

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

    Project string

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

    ReconcileConnections bool

    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.

    Region string

    URL of the region where the resource resides.

    connectionPreference String

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    enableProxyProtocol Boolean

    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.


    natSubnets List<String>

    An array of subnets that is provided for NAT in this service attachment.

    targetService String

    The URL of a forwarding rule that represents the service identified by this service attachment.

    consumerAcceptLists List<ServiceAttachmentConsumerAcceptList>

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumerRejectLists List<String>

    An array of projects that are not allowed to connect to this service attachment.

    description String

    An optional description of this resource.

    domainNames List<String>

    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.

    name String

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

    project String

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

    reconcileConnections Boolean

    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.

    region String

    URL of the region where the resource resides.

    connectionPreference string

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    enableProxyProtocol boolean

    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.


    natSubnets string[]

    An array of subnets that is provided for NAT in this service attachment.

    targetService string

    The URL of a forwarding rule that represents the service identified by this service attachment.

    consumerAcceptLists ServiceAttachmentConsumerAcceptList[]

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumerRejectLists string[]

    An array of projects that are not allowed to connect to this service attachment.

    description string

    An optional description of this resource.

    domainNames string[]

    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.

    name string

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

    project string

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

    reconcileConnections boolean

    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.

    region string

    URL of the region where the resource resides.

    connection_preference str

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    enable_proxy_protocol bool

    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.


    nat_subnets Sequence[str]

    An array of subnets that is provided for NAT in this service attachment.

    target_service str

    The URL of a forwarding rule that represents the service identified by this service attachment.

    consumer_accept_lists Sequence[ServiceAttachmentConsumerAcceptListArgs]

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumer_reject_lists Sequence[str]

    An array of projects that are not allowed to connect to this service attachment.

    description str

    An optional description of this resource.

    domain_names Sequence[str]

    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.

    name str

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

    project str

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

    reconcile_connections bool

    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.

    region str

    URL of the region where the resource resides.

    connectionPreference String

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    enableProxyProtocol Boolean

    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.


    natSubnets List<String>

    An array of subnets that is provided for NAT in this service attachment.

    targetService String

    The URL of a forwarding rule that represents the service identified by this service attachment.

    consumerAcceptLists List<Property Map>

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumerRejectLists List<String>

    An array of projects that are not allowed to connect to this service attachment.

    description String

    An optional description of this resource.

    domainNames List<String>

    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.

    name String

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

    project String

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

    reconcileConnections Boolean

    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.

    region String

    URL of the region where the resource resides.

    Outputs

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

    ConnectedEndpoints List<ServiceAttachmentConnectedEndpoint>

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    Fingerprint string

    Fingerprint of this resource. This field is used internally during updates of this resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    SelfLink string

    The URI of the created resource.

    ConnectedEndpoints []ServiceAttachmentConnectedEndpoint

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    Fingerprint string

    Fingerprint of this resource. This field is used internally during updates of this resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    SelfLink string

    The URI of the created resource.

    connectedEndpoints List<ServiceAttachmentConnectedEndpoint>

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    fingerprint String

    Fingerprint of this resource. This field is used internally during updates of this resource.

    id String

    The provider-assigned unique ID for this managed resource.

    selfLink String

    The URI of the created resource.

    connectedEndpoints ServiceAttachmentConnectedEndpoint[]

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    fingerprint string

    Fingerprint of this resource. This field is used internally during updates of this resource.

    id string

    The provider-assigned unique ID for this managed resource.

    selfLink string

    The URI of the created resource.

    connected_endpoints Sequence[ServiceAttachmentConnectedEndpoint]

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    fingerprint str

    Fingerprint of this resource. This field is used internally during updates of this resource.

    id str

    The provider-assigned unique ID for this managed resource.

    self_link str

    The URI of the created resource.

    connectedEndpoints List<Property Map>

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    fingerprint String

    Fingerprint of this resource. This field is used internally during updates of this resource.

    id String

    The provider-assigned unique ID for this managed resource.

    selfLink String

    The URI of the created resource.

    Look up Existing ServiceAttachment Resource

    Get an existing ServiceAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceAttachmentState, opts?: CustomResourceOptions): ServiceAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            connected_endpoints: Optional[Sequence[ServiceAttachmentConnectedEndpointArgs]] = None,
            connection_preference: Optional[str] = None,
            consumer_accept_lists: Optional[Sequence[ServiceAttachmentConsumerAcceptListArgs]] = None,
            consumer_reject_lists: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            domain_names: Optional[Sequence[str]] = None,
            enable_proxy_protocol: Optional[bool] = None,
            fingerprint: Optional[str] = None,
            name: Optional[str] = None,
            nat_subnets: Optional[Sequence[str]] = None,
            project: Optional[str] = None,
            reconcile_connections: Optional[bool] = None,
            region: Optional[str] = None,
            self_link: Optional[str] = None,
            target_service: Optional[str] = None) -> ServiceAttachment
    func GetServiceAttachment(ctx *Context, name string, id IDInput, state *ServiceAttachmentState, opts ...ResourceOption) (*ServiceAttachment, error)
    public static ServiceAttachment Get(string name, Input<string> id, ServiceAttachmentState? state, CustomResourceOptions? opts = null)
    public static ServiceAttachment get(String name, Output<String> id, ServiceAttachmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ConnectedEndpoints List<ServiceAttachmentConnectedEndpoint>

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    ConnectionPreference string

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    ConsumerAcceptLists List<ServiceAttachmentConsumerAcceptList>

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    ConsumerRejectLists List<string>

    An array of projects that are not allowed to connect to this service attachment.

    Description string

    An optional description of this resource.

    DomainNames List<string>

    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.

    EnableProxyProtocol bool

    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.


    Fingerprint string

    Fingerprint of this resource. This field is used internally during updates of this resource.

    Name string

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

    NatSubnets List<string>

    An array of subnets that is provided for NAT in this service attachment.

    Project string

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

    ReconcileConnections bool

    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.

    Region string

    URL of the region where the resource resides.

    SelfLink string

    The URI of the created resource.

    TargetService string

    The URL of a forwarding rule that represents the service identified by this service attachment.

    ConnectedEndpoints []ServiceAttachmentConnectedEndpointArgs

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    ConnectionPreference string

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    ConsumerAcceptLists []ServiceAttachmentConsumerAcceptListArgs

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    ConsumerRejectLists []string

    An array of projects that are not allowed to connect to this service attachment.

    Description string

    An optional description of this resource.

    DomainNames []string

    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.

    EnableProxyProtocol bool

    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.


    Fingerprint string

    Fingerprint of this resource. This field is used internally during updates of this resource.

    Name string

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

    NatSubnets []string

    An array of subnets that is provided for NAT in this service attachment.

    Project string

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

    ReconcileConnections bool

    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.

    Region string

    URL of the region where the resource resides.

    SelfLink string

    The URI of the created resource.

    TargetService string

    The URL of a forwarding rule that represents the service identified by this service attachment.

    connectedEndpoints List<ServiceAttachmentConnectedEndpoint>

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    connectionPreference String

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    consumerAcceptLists List<ServiceAttachmentConsumerAcceptList>

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumerRejectLists List<String>

    An array of projects that are not allowed to connect to this service attachment.

    description String

    An optional description of this resource.

    domainNames List<String>

    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.

    enableProxyProtocol Boolean

    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.


    fingerprint String

    Fingerprint of this resource. This field is used internally during updates of this resource.

    name String

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

    natSubnets List<String>

    An array of subnets that is provided for NAT in this service attachment.

    project String

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

    reconcileConnections Boolean

    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.

    region String

    URL of the region where the resource resides.

    selfLink String

    The URI of the created resource.

    targetService String

    The URL of a forwarding rule that represents the service identified by this service attachment.

    connectedEndpoints ServiceAttachmentConnectedEndpoint[]

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    connectionPreference string

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    consumerAcceptLists ServiceAttachmentConsumerAcceptList[]

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumerRejectLists string[]

    An array of projects that are not allowed to connect to this service attachment.

    description string

    An optional description of this resource.

    domainNames string[]

    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.

    enableProxyProtocol boolean

    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.


    fingerprint string

    Fingerprint of this resource. This field is used internally during updates of this resource.

    name string

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

    natSubnets string[]

    An array of subnets that is provided for NAT in this service attachment.

    project string

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

    reconcileConnections boolean

    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.

    region string

    URL of the region where the resource resides.

    selfLink string

    The URI of the created resource.

    targetService string

    The URL of a forwarding rule that represents the service identified by this service attachment.

    connected_endpoints Sequence[ServiceAttachmentConnectedEndpointArgs]

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    connection_preference str

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    consumer_accept_lists Sequence[ServiceAttachmentConsumerAcceptListArgs]

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumer_reject_lists Sequence[str]

    An array of projects that are not allowed to connect to this service attachment.

    description str

    An optional description of this resource.

    domain_names Sequence[str]

    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.

    enable_proxy_protocol bool

    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.


    fingerprint str

    Fingerprint of this resource. This field is used internally during updates of this resource.

    name str

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

    nat_subnets Sequence[str]

    An array of subnets that is provided for NAT in this service attachment.

    project str

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

    reconcile_connections bool

    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.

    region str

    URL of the region where the resource resides.

    self_link str

    The URI of the created resource.

    target_service str

    The URL of a forwarding rule that represents the service identified by this service attachment.

    connectedEndpoints List<Property Map>

    An array of the consumer forwarding rules connected to this service attachment. Structure is documented below.

    connectionPreference String

    The connection preference to use for this service attachment. Valid values include "ACCEPT_AUTOMATIC", "ACCEPT_MANUAL".

    consumerAcceptLists List<Property Map>

    An array of projects that are allowed to connect to this service attachment. Structure is documented below.

    consumerRejectLists List<String>

    An array of projects that are not allowed to connect to this service attachment.

    description String

    An optional description of this resource.

    domainNames List<String>

    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.

    enableProxyProtocol Boolean

    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.


    fingerprint String

    Fingerprint of this resource. This field is used internally during updates of this resource.

    name String

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

    natSubnets List<String>

    An array of subnets that is provided for NAT in this service attachment.

    project String

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

    reconcileConnections Boolean

    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.

    region String

    URL of the region where the resource resides.

    selfLink String

    The URI of the created resource.

    targetService String

    The URL of a forwarding rule that represents the service identified by this service attachment.

    Supporting Types

    ServiceAttachmentConnectedEndpoint, ServiceAttachmentConnectedEndpointArgs

    Endpoint string

    (Output) The URL of the consumer forwarding rule.

    Status string

    (Output) The status of the connection from the consumer forwarding rule to this service attachment.

    Endpoint string

    (Output) The URL of the consumer forwarding rule.

    Status string

    (Output) The status of the connection from the consumer forwarding rule to this service attachment.

    endpoint String

    (Output) The URL of the consumer forwarding rule.

    status String

    (Output) The status of the connection from the consumer forwarding rule to this service attachment.

    endpoint string

    (Output) The URL of the consumer forwarding rule.

    status string

    (Output) The status of the connection from the consumer forwarding rule to this service attachment.

    endpoint str

    (Output) The URL of the consumer forwarding rule.

    status str

    (Output) The status of the connection from the consumer forwarding rule to this service attachment.

    endpoint String

    (Output) The URL of the consumer forwarding rule.

    status String

    (Output) The status of the connection from the consumer forwarding rule to this service attachment.

    ServiceAttachmentConsumerAcceptList, ServiceAttachmentConsumerAcceptListArgs

    ConnectionLimit int

    The number of consumer forwarding rules the consumer project can create.

    ProjectIdOrNum string

    A project that is allowed to connect to this service attachment.

    ConnectionLimit int

    The number of consumer forwarding rules the consumer project can create.

    ProjectIdOrNum string

    A project that is allowed to connect to this service attachment.

    connectionLimit Integer

    The number of consumer forwarding rules the consumer project can create.

    projectIdOrNum String

    A project that is allowed to connect to this service attachment.

    connectionLimit number

    The number of consumer forwarding rules the consumer project can create.

    projectIdOrNum string

    A project that is allowed to connect to this service attachment.

    connection_limit int

    The number of consumer forwarding rules the consumer project can create.

    project_id_or_num str

    A project that is allowed to connect to this service attachment.

    connectionLimit Number

    The number of consumer forwarding rules the consumer project can create.

    projectIdOrNum String

    A project that is allowed to connect to this service attachment.

    Import

    ServiceAttachment can be imported using any of these accepted formats* projects/{{project}}/regions/{{region}}/serviceAttachments/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} In Terraform v1.5.0 and later, use an import block to import ServiceAttachment using one of the formats above. For exampletf import {

    id = “projects/{{project}}/regions/{{region}}/serviceAttachments/{{name}}”

    to = google_compute_service_attachment.default }

     $ pulumi import gcp:compute/serviceAttachment:ServiceAttachment When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), ServiceAttachment can be imported using one of the formats above. For example
    
     $ pulumi import gcp:compute/serviceAttachment:ServiceAttachment default projects/{{project}}/regions/{{region}}/serviceAttachments/{{name}}
    
     $ pulumi import gcp:compute/serviceAttachment:ServiceAttachment default {{project}}/{{region}}/{{name}}
    
     $ pulumi import gcp:compute/serviceAttachment:ServiceAttachment default {{region}}/{{name}}
    
     $ pulumi import gcp:compute/serviceAttachment:ServiceAttachment default {{name}}
    

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the google-beta Terraform Provider.

    gcp logo
    Google Cloud Classic v7.2.1 published on Wednesday, Nov 22, 2023 by Pulumi