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

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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

google-native.servicemanagement/v1.Service

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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.
    
    

    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"),
    })
    
    var exampleserviceResourceResourceFromServicemanagementv1 = new Service("exampleserviceResourceResourceFromServicemanagementv1", 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

    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.
    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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

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

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

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