1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. servicemanagement
  6. servicemanagement/v1
  7. Service

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

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

    Creates a new managed service. A managed service is immutable, and is subject to mandatory 30-day data retention. You cannot move a service or recreate it within 30 days after deletion. One producer project can own no more than 500 services. For security and reliability purposes, a production service should be hosted in a dedicated producer project. Operation Auto-naming is currently not supported for this resource.

    Create Service Resource

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

    Constructor syntax

    new Service(name: string, args?: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: Optional[ServiceArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                producer_project_id: Optional[str] = None,
                service_name: Optional[str] = None)
    func NewService(ctx *Context, name string, args *ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs? args = null, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: google-native:servicemanagement/v1:Service
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "google-native_servicemanagement_v1_service" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ServiceArgs
    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 ServiceArgs
    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 ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    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 exampleserviceResourceResourceFromServicemanagementv1 = new GoogleNative.ServiceManagement.V1.Service("exampleserviceResourceResourceFromServicemanagementv1", new()
    {
        ProducerProjectId = "string",
        ServiceName = "string",
    });
    
    example, err := servicemanagement.NewService(ctx, "exampleserviceResourceResourceFromServicemanagementv1", &servicemanagement.ServiceArgs{
    	ProducerProjectId: pulumi.String("string"),
    	ServiceName:       pulumi.String("string"),
    })
    
    resource "google-native_servicemanagement_v1_service" "exampleserviceResourceResourceFromServicemanagementv1" {
      lifecycle {
        create_before_destroy = true
      }
      producer_project_id = "string"
      service_name        = "string"
    }
    
    var exampleserviceResourceResourceFromServicemanagementv1 = new com.pulumi.googlenative.servicemanagement_v1.Service("exampleserviceResourceResourceFromServicemanagementv1", com.pulumi.googlenative.servicemanagement_v1.ServiceArgs.builder()
        .producerProjectId("string")
        .serviceName("string")
        .build());
    
    exampleservice_resource_resource_from_servicemanagementv1 = google_native.servicemanagement.v1.Service("exampleserviceResourceResourceFromServicemanagementv1",
        producer_project_id="string",
        service_name="string")
    
    const exampleserviceResourceResourceFromServicemanagementv1 = new google_native.servicemanagement.v1.Service("exampleserviceResourceResourceFromServicemanagementv1", {
        producerProjectId: "string",
        serviceName: "string",
    });
    
    type: google-native:servicemanagement/v1:Service
    properties:
        producerProjectId: string
        serviceName: string
    

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

    ProducerProjectId string
    ID of the project that produces and owns this service.
    ServiceName string
    The name of the service. See the overview for naming requirements.
    ProducerProjectId string
    ID of the project that produces and owns this service.
    ServiceName string
    The name of the service. See the overview for naming requirements.
    producer_project_id string
    ID of the project that produces and owns this service.
    service_name string
    The name of the service. See the overview for naming requirements.
    producerProjectId String
    ID of the project that produces and owns this service.
    serviceName String
    The name of the service. See the overview for naming requirements.
    producerProjectId string
    ID of the project that produces and owns this service.
    serviceName string
    The name of the service. See the overview for naming requirements.
    producer_project_id str
    ID of the project that produces and owns this service.
    service_name str
    The name of the service. See the overview for naming requirements.
    producerProjectId String
    ID of the project that produces and owns this service.
    serviceName String
    The name of the service. See the overview for naming requirements.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Service Resource

    Get an existing Service 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>, opts?: CustomResourceOptions): Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Service
    func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
    public static Service Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Service get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingService:    type: google-native:servicemanagement/v1:Service    get:      id: ${id}
    import {
      to = google-native_servicemanagement_v1_service.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ServiceState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Package Details

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

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

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

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial