gcp.integrationconnectors.EndpointAttachment
Explore with Pulumi AI
An Integration connectors Endpoint Attachment.
To get more information about EndpointAttachment, see:
- API documentation
- How-to Guides
Example Usage
Integration Connectors Endpoint Attachment
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const sampleendpointattachment = new gcp.integrationconnectors.EndpointAttachment("sampleendpointattachment", {
    name: "test-endpoint-attachment",
    location: "us-central1",
    description: "tf created description",
    serviceAttachment: "projects/connectors-example/regions/us-central1/serviceAttachments/test",
    labels: {
        foo: "bar",
    },
});
import pulumi
import pulumi_gcp as gcp
sampleendpointattachment = gcp.integrationconnectors.EndpointAttachment("sampleendpointattachment",
    name="test-endpoint-attachment",
    location="us-central1",
    description="tf created description",
    service_attachment="projects/connectors-example/regions/us-central1/serviceAttachments/test",
    labels={
        "foo": "bar",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/integrationconnectors"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := integrationconnectors.NewEndpointAttachment(ctx, "sampleendpointattachment", &integrationconnectors.EndpointAttachmentArgs{
			Name:              pulumi.String("test-endpoint-attachment"),
			Location:          pulumi.String("us-central1"),
			Description:       pulumi.String("tf created description"),
			ServiceAttachment: pulumi.String("projects/connectors-example/regions/us-central1/serviceAttachments/test"),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var sampleendpointattachment = new Gcp.IntegrationConnectors.EndpointAttachment("sampleendpointattachment", new()
    {
        Name = "test-endpoint-attachment",
        Location = "us-central1",
        Description = "tf created description",
        ServiceAttachment = "projects/connectors-example/regions/us-central1/serviceAttachments/test",
        Labels = 
        {
            { "foo", "bar" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.integrationconnectors.EndpointAttachment;
import com.pulumi.gcp.integrationconnectors.EndpointAttachmentArgs;
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 sampleendpointattachment = new EndpointAttachment("sampleendpointattachment", EndpointAttachmentArgs.builder()
            .name("test-endpoint-attachment")
            .location("us-central1")
            .description("tf created description")
            .serviceAttachment("projects/connectors-example/regions/us-central1/serviceAttachments/test")
            .labels(Map.of("foo", "bar"))
            .build());
    }
}
resources:
  sampleendpointattachment:
    type: gcp:integrationconnectors:EndpointAttachment
    properties:
      name: test-endpoint-attachment
      location: us-central1
      description: tf created description
      serviceAttachment: projects/connectors-example/regions/us-central1/serviceAttachments/test
      labels:
        foo: bar
Create EndpointAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EndpointAttachment(name: string, args: EndpointAttachmentArgs, opts?: CustomResourceOptions);@overload
def EndpointAttachment(resource_name: str,
                       args: EndpointAttachmentArgs,
                       opts: Optional[ResourceOptions] = None)
@overload
def EndpointAttachment(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       location: Optional[str] = None,
                       service_attachment: Optional[str] = None,
                       description: Optional[str] = None,
                       endpoint_global_access: Optional[bool] = None,
                       labels: Optional[Mapping[str, str]] = None,
                       name: Optional[str] = None,
                       project: Optional[str] = None)func NewEndpointAttachment(ctx *Context, name string, args EndpointAttachmentArgs, opts ...ResourceOption) (*EndpointAttachment, error)public EndpointAttachment(string name, EndpointAttachmentArgs args, CustomResourceOptions? opts = null)
public EndpointAttachment(String name, EndpointAttachmentArgs args)
public EndpointAttachment(String name, EndpointAttachmentArgs args, CustomResourceOptions options)
type: gcp:integrationconnectors:EndpointAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EndpointAttachmentArgs
- 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 EndpointAttachmentArgs
- 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 EndpointAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var gcpEndpointAttachmentResource = new Gcp.IntegrationConnectors.EndpointAttachment("gcpEndpointAttachmentResource", new()
{
    Location = "string",
    ServiceAttachment = "string",
    Description = "string",
    EndpointGlobalAccess = false,
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Project = "string",
});
example, err := integrationconnectors.NewEndpointAttachment(ctx, "gcpEndpointAttachmentResource", &integrationconnectors.EndpointAttachmentArgs{
	Location:             pulumi.String("string"),
	ServiceAttachment:    pulumi.String("string"),
	Description:          pulumi.String("string"),
	EndpointGlobalAccess: pulumi.Bool(false),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:    pulumi.String("string"),
	Project: pulumi.String("string"),
})
var gcpEndpointAttachmentResource = new EndpointAttachment("gcpEndpointAttachmentResource", EndpointAttachmentArgs.builder()
    .location("string")
    .serviceAttachment("string")
    .description("string")
    .endpointGlobalAccess(false)
    .labels(Map.of("string", "string"))
    .name("string")
    .project("string")
    .build());
gcp_endpoint_attachment_resource = gcp.integrationconnectors.EndpointAttachment("gcpEndpointAttachmentResource",
    location="string",
    service_attachment="string",
    description="string",
    endpoint_global_access=False,
    labels={
        "string": "string",
    },
    name="string",
    project="string")
const gcpEndpointAttachmentResource = new gcp.integrationconnectors.EndpointAttachment("gcpEndpointAttachmentResource", {
    location: "string",
    serviceAttachment: "string",
    description: "string",
    endpointGlobalAccess: false,
    labels: {
        string: "string",
    },
    name: "string",
    project: "string",
});
type: gcp:integrationconnectors:EndpointAttachment
properties:
    description: string
    endpointGlobalAccess: false
    labels:
        string: string
    location: string
    name: string
    project: string
    serviceAttachment: string
EndpointAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EndpointAttachment resource accepts the following input properties:
- Location string
- Location in which Endpoint Attachment needs to be created.
- ServiceAttachment string
- The path of the service attachment.
- Description string
- Description of the resource.
- EndpointGlobal boolAccess 
- Enable global access for endpoint attachment.
- Labels Dictionary<string, string>
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Name string
- Name of Endpoint Attachment needs to be created.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- Location in which Endpoint Attachment needs to be created.
- ServiceAttachment string
- The path of the service attachment.
- Description string
- Description of the resource.
- EndpointGlobal boolAccess 
- Enable global access for endpoint attachment.
- Labels map[string]string
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Name string
- Name of Endpoint Attachment needs to be created.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Location in which Endpoint Attachment needs to be created.
- serviceAttachment String
- The path of the service attachment.
- description String
- Description of the resource.
- endpointGlobal BooleanAccess 
- Enable global access for endpoint attachment.
- labels Map<String,String>
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name String
- Name of Endpoint Attachment needs to be created.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location string
- Location in which Endpoint Attachment needs to be created.
- serviceAttachment string
- The path of the service attachment.
- description string
- Description of the resource.
- endpointGlobal booleanAccess 
- Enable global access for endpoint attachment.
- labels {[key: string]: string}
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name string
- Name of Endpoint Attachment needs to be created.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location str
- Location in which Endpoint Attachment needs to be created.
- service_attachment str
- The path of the service attachment.
- description str
- Description of the resource.
- endpoint_global_ boolaccess 
- Enable global access for endpoint attachment.
- labels Mapping[str, str]
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name str
- Name of Endpoint Attachment needs to be created.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- location String
- Location in which Endpoint Attachment needs to be created.
- serviceAttachment String
- The path of the service attachment.
- description String
- Description of the resource.
- endpointGlobal BooleanAccess 
- Enable global access for endpoint attachment.
- labels Map<String>
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name String
- Name of Endpoint Attachment needs to be created.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointAttachment resource produces the following output properties:
- CreateTime string
- Time the Namespace was created in UTC.
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- EndpointIp string
- The Private Service Connect connection endpoint ip.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- UpdateTime string
- Time the Namespace was updated in UTC.
- CreateTime string
- Time the Namespace was created in UTC.
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- EndpointIp string
- The Private Service Connect connection endpoint ip.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- UpdateTime string
- Time the Namespace was updated in UTC.
- createTime String
- Time the Namespace was created in UTC.
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpointIp String
- The Private Service Connect connection endpoint ip.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- updateTime String
- Time the Namespace was updated in UTC.
- createTime string
- Time the Namespace was created in UTC.
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpointIp string
- The Private Service Connect connection endpoint ip.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- updateTime string
- Time the Namespace was updated in UTC.
- create_time str
- Time the Namespace was created in UTC.
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoint_ip str
- The Private Service Connect connection endpoint ip.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- update_time str
- Time the Namespace was updated in UTC.
- createTime String
- Time the Namespace was created in UTC.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpointIp String
- The Private Service Connect connection endpoint ip.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- updateTime String
- Time the Namespace was updated in UTC.
Look up Existing EndpointAttachment Resource
Get an existing EndpointAttachment 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?: EndpointAttachmentState, opts?: CustomResourceOptions): EndpointAttachment@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        description: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        endpoint_global_access: Optional[bool] = None,
        endpoint_ip: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        name: Optional[str] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        service_attachment: Optional[str] = None,
        update_time: Optional[str] = None) -> EndpointAttachmentfunc GetEndpointAttachment(ctx *Context, name string, id IDInput, state *EndpointAttachmentState, opts ...ResourceOption) (*EndpointAttachment, error)public static EndpointAttachment Get(string name, Input<string> id, EndpointAttachmentState? state, CustomResourceOptions? opts = null)public static EndpointAttachment get(String name, Output<String> id, EndpointAttachmentState state, CustomResourceOptions options)resources:  _:    type: gcp:integrationconnectors:EndpointAttachment    get:      id: ${id}- 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.
- CreateTime string
- Time the Namespace was created in UTC.
- Description string
- Description of the resource.
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- EndpointGlobal boolAccess 
- Enable global access for endpoint attachment.
- EndpointIp string
- The Private Service Connect connection endpoint ip.
- Labels Dictionary<string, string>
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- Location in which Endpoint Attachment needs to be created.
- Name string
- Name of Endpoint Attachment needs to be created.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- ServiceAttachment string
- The path of the service attachment.
- UpdateTime string
- Time the Namespace was updated in UTC.
- CreateTime string
- Time the Namespace was created in UTC.
- Description string
- Description of the resource.
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- EndpointGlobal boolAccess 
- Enable global access for endpoint attachment.
- EndpointIp string
- The Private Service Connect connection endpoint ip.
- Labels map[string]string
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Location string
- Location in which Endpoint Attachment needs to be created.
- Name string
- Name of Endpoint Attachment needs to be created.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- ServiceAttachment string
- The path of the service attachment.
- UpdateTime string
- Time the Namespace was updated in UTC.
- createTime String
- Time the Namespace was created in UTC.
- description String
- Description of the resource.
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpointGlobal BooleanAccess 
- Enable global access for endpoint attachment.
- endpointIp String
- The Private Service Connect connection endpoint ip.
- labels Map<String,String>
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- Location in which Endpoint Attachment needs to be created.
- name String
- Name of Endpoint Attachment needs to be created.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- serviceAttachment String
- The path of the service attachment.
- updateTime String
- Time the Namespace was updated in UTC.
- createTime string
- Time the Namespace was created in UTC.
- description string
- Description of the resource.
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpointGlobal booleanAccess 
- Enable global access for endpoint attachment.
- endpointIp string
- The Private Service Connect connection endpoint ip.
- labels {[key: string]: string}
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location string
- Location in which Endpoint Attachment needs to be created.
- name string
- Name of Endpoint Attachment needs to be created.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- serviceAttachment string
- The path of the service attachment.
- updateTime string
- Time the Namespace was updated in UTC.
- create_time str
- Time the Namespace was created in UTC.
- description str
- Description of the resource.
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoint_global_ boolaccess 
- Enable global access for endpoint attachment.
- endpoint_ip str
- The Private Service Connect connection endpoint ip.
- labels Mapping[str, str]
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location str
- Location in which Endpoint Attachment needs to be created.
- name str
- Name of Endpoint Attachment needs to be created.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- service_attachment str
- The path of the service attachment.
- update_time str
- Time the Namespace was updated in UTC.
- createTime String
- Time the Namespace was created in UTC.
- description String
- Description of the resource.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpointGlobal BooleanAccess 
- Enable global access for endpoint attachment.
- endpointIp String
- The Private Service Connect connection endpoint ip.
- labels Map<String>
- Resource labels to represent user provided metadata. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- location String
- Location in which Endpoint Attachment needs to be created.
- name String
- Name of Endpoint Attachment needs to be created.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- serviceAttachment String
- The path of the service attachment.
- updateTime String
- Time the Namespace was updated in UTC.
Import
EndpointAttachment can be imported using any of these accepted formats:
- projects/{{project}}/locations/{{location}}/endpointAttachments/{{name}}
- {{project}}/{{location}}/{{name}}
- {{location}}/{{name}}
When using the pulumi import command, EndpointAttachment can be imported using one of the formats above. For example:
$ pulumi import gcp:integrationconnectors/endpointAttachment:EndpointAttachment default projects/{{project}}/locations/{{location}}/endpointAttachments/{{name}}
$ pulumi import gcp:integrationconnectors/endpointAttachment:EndpointAttachment default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:integrationconnectors/endpointAttachment:EndpointAttachment default {{location}}/{{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.