1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. apphub
  5. ServiceProjectAttachment
Google Cloud Classic v7.23.0 published on Wednesday, May 15, 2024 by Pulumi

gcp.apphub.ServiceProjectAttachment

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.23.0 published on Wednesday, May 15, 2024 by Pulumi

    Represents a Service project attachment to the Host Project.

    Example Usage

    Service Project Attachment Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as time from "@pulumi/time";
    
    const serviceProject = new gcp.organizations.Project("service_project", {
        projectId: "project-1",
        name: "Service Project",
        orgId: "123456789",
    });
    const example = new gcp.apphub.ServiceProjectAttachment("example", {serviceProjectAttachmentId: serviceProject.projectId});
    const wait120s = new time.index.Sleep("wait_120s", {createDuration: "120s"});
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumi_time as time
    
    service_project = gcp.organizations.Project("service_project",
        project_id="project-1",
        name="Service Project",
        org_id="123456789")
    example = gcp.apphub.ServiceProjectAttachment("example", service_project_attachment_id=service_project.project_id)
    wait120s = time.index.Sleep("wait_120s", create_duration=120s)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/apphub"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
    	"github.com/pulumi/pulumi-time/sdk/go/time"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		serviceProject, err := organizations.NewProject(ctx, "service_project", &organizations.ProjectArgs{
    			ProjectId: pulumi.String("project-1"),
    			Name:      pulumi.String("Service Project"),
    			OrgId:     pulumi.String("123456789"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = apphub.NewServiceProjectAttachment(ctx, "example", &apphub.ServiceProjectAttachmentArgs{
    			ServiceProjectAttachmentId: serviceProject.ProjectId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = time.NewSleep(ctx, "wait_120s", &time.SleepArgs{
    			CreateDuration: "120s",
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Time = Pulumi.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var serviceProject = new Gcp.Organizations.Project("service_project", new()
        {
            ProjectId = "project-1",
            Name = "Service Project",
            OrgId = "123456789",
        });
    
        var example = new Gcp.Apphub.ServiceProjectAttachment("example", new()
        {
            ServiceProjectAttachmentId = serviceProject.ProjectId,
        });
    
        var wait120s = new Time.Index.Sleep("wait_120s", new()
        {
            CreateDuration = "120s",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.Project;
    import com.pulumi.gcp.organizations.ProjectArgs;
    import com.pulumi.gcp.apphub.ServiceProjectAttachment;
    import com.pulumi.gcp.apphub.ServiceProjectAttachmentArgs;
    import com.pulumi.time.sleep;
    import com.pulumi.time.SleepArgs;
    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 serviceProject = new Project("serviceProject", ProjectArgs.builder()        
                .projectId("project-1")
                .name("Service Project")
                .orgId("123456789")
                .build());
    
            var example = new ServiceProjectAttachment("example", ServiceProjectAttachmentArgs.builder()        
                .serviceProjectAttachmentId(serviceProject.projectId())
                .build());
    
            var wait120s = new Sleep("wait120s", SleepArgs.builder()        
                .createDuration("120s")
                .build());
    
        }
    }
    
    resources:
      example:
        type: gcp:apphub:ServiceProjectAttachment
        properties:
          serviceProjectAttachmentId: ${serviceProject.projectId}
      serviceProject:
        type: gcp:organizations:Project
        name: service_project
        properties:
          projectId: project-1
          name: Service Project
          orgId: '123456789'
      wait120s:
        type: time:sleep
        name: wait_120s
        properties:
          createDuration: 120s
    

    Service Project Attachment Full

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    import * as time from "@pulumi/time";
    
    const serviceProjectFull = new gcp.organizations.Project("service_project_full", {
        projectId: "project-1",
        name: "Service Project Full",
        orgId: "123456789",
    });
    const example2 = new gcp.apphub.ServiceProjectAttachment("example2", {
        serviceProjectAttachmentId: serviceProjectFull.projectId,
        serviceProject: serviceProjectFull.projectId,
    });
    const wait120s = new time.index.Sleep("wait_120s", {createDuration: "120s"});
    
    import pulumi
    import pulumi_gcp as gcp
    import pulumi_time as time
    
    service_project_full = gcp.organizations.Project("service_project_full",
        project_id="project-1",
        name="Service Project Full",
        org_id="123456789")
    example2 = gcp.apphub.ServiceProjectAttachment("example2",
        service_project_attachment_id=service_project_full.project_id,
        service_project=service_project_full.project_id)
    wait120s = time.index.Sleep("wait_120s", create_duration=120s)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/apphub"
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/organizations"
    	"github.com/pulumi/pulumi-time/sdk/go/time"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		serviceProjectFull, err := organizations.NewProject(ctx, "service_project_full", &organizations.ProjectArgs{
    			ProjectId: pulumi.String("project-1"),
    			Name:      pulumi.String("Service Project Full"),
    			OrgId:     pulumi.String("123456789"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = apphub.NewServiceProjectAttachment(ctx, "example2", &apphub.ServiceProjectAttachmentArgs{
    			ServiceProjectAttachmentId: serviceProjectFull.ProjectId,
    			ServiceProject:             serviceProjectFull.ProjectId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = time.NewSleep(ctx, "wait_120s", &time.SleepArgs{
    			CreateDuration: "120s",
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    using Time = Pulumi.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var serviceProjectFull = new Gcp.Organizations.Project("service_project_full", new()
        {
            ProjectId = "project-1",
            Name = "Service Project Full",
            OrgId = "123456789",
        });
    
        var example2 = new Gcp.Apphub.ServiceProjectAttachment("example2", new()
        {
            ServiceProjectAttachmentId = serviceProjectFull.ProjectId,
            ServiceProject = serviceProjectFull.ProjectId,
        });
    
        var wait120s = new Time.Index.Sleep("wait_120s", new()
        {
            CreateDuration = "120s",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.organizations.Project;
    import com.pulumi.gcp.organizations.ProjectArgs;
    import com.pulumi.gcp.apphub.ServiceProjectAttachment;
    import com.pulumi.gcp.apphub.ServiceProjectAttachmentArgs;
    import com.pulumi.time.sleep;
    import com.pulumi.time.SleepArgs;
    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 serviceProjectFull = new Project("serviceProjectFull", ProjectArgs.builder()        
                .projectId("project-1")
                .name("Service Project Full")
                .orgId("123456789")
                .build());
    
            var example2 = new ServiceProjectAttachment("example2", ServiceProjectAttachmentArgs.builder()        
                .serviceProjectAttachmentId(serviceProjectFull.projectId())
                .serviceProject(serviceProjectFull.projectId())
                .build());
    
            var wait120s = new Sleep("wait120s", SleepArgs.builder()        
                .createDuration("120s")
                .build());
    
        }
    }
    
    resources:
      example2:
        type: gcp:apphub:ServiceProjectAttachment
        properties:
          serviceProjectAttachmentId: ${serviceProjectFull.projectId}
          serviceProject: ${serviceProjectFull.projectId}
      serviceProjectFull:
        type: gcp:organizations:Project
        name: service_project_full
        properties:
          projectId: project-1
          name: Service Project Full
          orgId: '123456789'
      wait120s:
        type: time:sleep
        name: wait_120s
        properties:
          createDuration: 120s
    

    Create ServiceProjectAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceProjectAttachment(name: string, args: ServiceProjectAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceProjectAttachment(resource_name: str,
                                 args: ServiceProjectAttachmentArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceProjectAttachment(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 service_project_attachment_id: Optional[str] = None,
                                 project: Optional[str] = None,
                                 service_project: Optional[str] = None)
    func NewServiceProjectAttachment(ctx *Context, name string, args ServiceProjectAttachmentArgs, opts ...ResourceOption) (*ServiceProjectAttachment, error)
    public ServiceProjectAttachment(string name, ServiceProjectAttachmentArgs args, CustomResourceOptions? opts = null)
    public ServiceProjectAttachment(String name, ServiceProjectAttachmentArgs args)
    public ServiceProjectAttachment(String name, ServiceProjectAttachmentArgs args, CustomResourceOptions options)
    
    type: gcp:apphub:ServiceProjectAttachment
    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 ServiceProjectAttachmentArgs
    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 ServiceProjectAttachmentArgs
    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 ServiceProjectAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceProjectAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceProjectAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var serviceProjectAttachmentResource = new Gcp.Apphub.ServiceProjectAttachment("serviceProjectAttachmentResource", new()
    {
        ServiceProjectAttachmentId = "string",
        Project = "string",
        ServiceProject = "string",
    });
    
    example, err := apphub.NewServiceProjectAttachment(ctx, "serviceProjectAttachmentResource", &apphub.ServiceProjectAttachmentArgs{
    	ServiceProjectAttachmentId: pulumi.String("string"),
    	Project:                    pulumi.String("string"),
    	ServiceProject:             pulumi.String("string"),
    })
    
    var serviceProjectAttachmentResource = new ServiceProjectAttachment("serviceProjectAttachmentResource", ServiceProjectAttachmentArgs.builder()        
        .serviceProjectAttachmentId("string")
        .project("string")
        .serviceProject("string")
        .build());
    
    service_project_attachment_resource = gcp.apphub.ServiceProjectAttachment("serviceProjectAttachmentResource",
        service_project_attachment_id="string",
        project="string",
        service_project="string")
    
    const serviceProjectAttachmentResource = new gcp.apphub.ServiceProjectAttachment("serviceProjectAttachmentResource", {
        serviceProjectAttachmentId: "string",
        project: "string",
        serviceProject: "string",
    });
    
    type: gcp:apphub:ServiceProjectAttachment
    properties:
        project: string
        serviceProject: string
        serviceProjectAttachmentId: string
    

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

    ServiceProjectAttachmentId string
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ServiceProject string
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    ServiceProjectAttachmentId string
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ServiceProject string
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    serviceProjectAttachmentId String
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    serviceProject String
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    serviceProjectAttachmentId string
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    serviceProject string
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    service_project_attachment_id str
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    service_project str
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    serviceProjectAttachmentId String
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    serviceProject String
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "

    Outputs

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

    CreateTime string
    Output only. Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    State string
    ServiceProjectAttachment state.
    Uid string
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    CreateTime string
    Output only. Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    State string
    ServiceProjectAttachment state.
    Uid string
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    createTime String
    Output only. Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    state String
    ServiceProjectAttachment state.
    uid String
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    createTime string
    Output only. Create time.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    state string
    ServiceProjectAttachment state.
    uid string
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    create_time str
    Output only. Create time.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    state str
    ServiceProjectAttachment state.
    uid str
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    createTime String
    Output only. Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    state String
    ServiceProjectAttachment state.
    uid String
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.

    Look up Existing ServiceProjectAttachment Resource

    Get an existing ServiceProjectAttachment 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?: ServiceProjectAttachmentState, opts?: CustomResourceOptions): ServiceProjectAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            service_project: Optional[str] = None,
            service_project_attachment_id: Optional[str] = None,
            state: Optional[str] = None,
            uid: Optional[str] = None) -> ServiceProjectAttachment
    func GetServiceProjectAttachment(ctx *Context, name string, id IDInput, state *ServiceProjectAttachmentState, opts ...ResourceOption) (*ServiceProjectAttachment, error)
    public static ServiceProjectAttachment Get(string name, Input<string> id, ServiceProjectAttachmentState? state, CustomResourceOptions? opts = null)
    public static ServiceProjectAttachment get(String name, Output<String> id, ServiceProjectAttachmentState 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:
    CreateTime string
    Output only. Create time.
    Name string
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ServiceProject string
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    ServiceProjectAttachmentId string
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    State string
    ServiceProjectAttachment state.
    Uid string
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    CreateTime string
    Output only. Create time.
    Name string
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    ServiceProject string
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    ServiceProjectAttachmentId string
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    State string
    ServiceProjectAttachment state.
    Uid string
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    createTime String
    Output only. Create time.
    name String
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    serviceProject String
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    serviceProjectAttachmentId String
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    state String
    ServiceProjectAttachment state.
    uid String
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    createTime string
    Output only. Create time.
    name string
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    serviceProject string
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    serviceProjectAttachmentId string
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    state string
    ServiceProjectAttachment state.
    uid string
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    create_time str
    Output only. Create time.
    name str
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    service_project str
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    service_project_attachment_id str
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    state str
    ServiceProjectAttachment state.
    uid str
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.
    createTime String
    Output only. Create time.
    name String
    "Identifier. The resource name of a ServiceProjectAttachment. Format:"projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." "
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    serviceProject String
    "Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. "
    serviceProjectAttachmentId String
    Required. The service project attachment identifier must contain the project_id of the service project specified in the service_project_attachment.service_project field. Hint: "projects/{project_id}"


    state String
    ServiceProjectAttachment state.
    uid String
    Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.

    Import

    ServiceProjectAttachment can be imported using any of these accepted formats:

    • projects/{{project}}/locations/global/serviceProjectAttachments/{{service_project_attachment_id}}

    • {{project}}/{{service_project_attachment_id}}

    • {{service_project_attachment_id}}

    When using the pulumi import command, ServiceProjectAttachment can be imported using one of the formats above. For example:

    $ pulumi import gcp:apphub/serviceProjectAttachment:ServiceProjectAttachment default projects/{{project}}/locations/global/serviceProjectAttachments/{{service_project_attachment_id}}
    
    $ pulumi import gcp:apphub/serviceProjectAttachment:ServiceProjectAttachment default {{project}}/{{service_project_attachment_id}}
    
    $ pulumi import gcp:apphub/serviceProjectAttachment:ServiceProjectAttachment default {{service_project_attachment_id}}
    

    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-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.23.0 published on Wednesday, May 15, 2024 by Pulumi