1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. saasruntime
  5. Unit
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

gcp.saasruntime.Unit

Start a Neo task
Explain and create a gcp.saasruntime.Unit resource
gcp logo
Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi

    A Unit is the fundamental structural building block of a SaaS offering. Each Unit is an instance of a UnitKind. It is a versioned, manageable component of a service that has its own lifecycle, representing elements like infrastructure, workloads, or an entire application stack that a service producer intends to manage as a single entity.

    Example Usage

    Saas Runtime Unit Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const exampleSaasRegional = new gcp.saasruntime.SaaS("example_saas_regional", {
        saasId: "example-saas",
        location: "us-central1",
        locations: [{
            name: "us-central1",
        }],
    });
    const exampleUnitKind = new gcp.saasruntime.UnitKind("example_unit_kind", {
        location: "us-central1",
        unitKindId: "example-unitkind",
        saas: exampleSaasRegional.id,
    });
    const example = new gcp.saasruntime.Unit("example", {
        location: "us-central1",
        unitId: "example-unit",
        unitKind: exampleUnitKind.id,
        managementMode: "MANAGEMENT_MODE_USER",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    example_saas_regional = gcp.saasruntime.SaaS("example_saas_regional",
        saas_id="example-saas",
        location="us-central1",
        locations=[{
            "name": "us-central1",
        }])
    example_unit_kind = gcp.saasruntime.UnitKind("example_unit_kind",
        location="us-central1",
        unit_kind_id="example-unitkind",
        saas=example_saas_regional.id)
    example = gcp.saasruntime.Unit("example",
        location="us-central1",
        unit_id="example-unit",
        unit_kind=example_unit_kind.id,
        management_mode="MANAGEMENT_MODE_USER")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/saasruntime"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleSaasRegional, err := saasruntime.NewSaaS(ctx, "example_saas_regional", &saasruntime.SaaSArgs{
    			SaasId:   pulumi.String("example-saas"),
    			Location: pulumi.String("us-central1"),
    			Locations: saasruntime.SaaSLocationArray{
    				&saasruntime.SaaSLocationArgs{
    					Name: pulumi.String("us-central1"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleUnitKind, err := saasruntime.NewUnitKind(ctx, "example_unit_kind", &saasruntime.UnitKindArgs{
    			Location:   pulumi.String("us-central1"),
    			UnitKindId: pulumi.String("example-unitkind"),
    			Saas:       exampleSaasRegional.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = saasruntime.NewUnit(ctx, "example", &saasruntime.UnitArgs{
    			Location:       pulumi.String("us-central1"),
    			UnitId:         pulumi.String("example-unit"),
    			UnitKind:       exampleUnitKind.ID(),
    			ManagementMode: pulumi.String("MANAGEMENT_MODE_USER"),
    		})
    		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 exampleSaasRegional = new Gcp.SaaSRuntime.SaaS("example_saas_regional", new()
        {
            SaasId = "example-saas",
            Location = "us-central1",
            Locations = new[]
            {
                new Gcp.SaaSRuntime.Inputs.SaaSLocationArgs
                {
                    Name = "us-central1",
                },
            },
        });
    
        var exampleUnitKind = new Gcp.SaaSRuntime.UnitKind("example_unit_kind", new()
        {
            Location = "us-central1",
            UnitKindId = "example-unitkind",
            Saas = exampleSaasRegional.Id,
        });
    
        var example = new Gcp.SaaSRuntime.Unit("example", new()
        {
            Location = "us-central1",
            UnitId = "example-unit",
            UnitKind = exampleUnitKind.Id,
            ManagementMode = "MANAGEMENT_MODE_USER",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.saasruntime.SaaS;
    import com.pulumi.gcp.saasruntime.SaaSArgs;
    import com.pulumi.gcp.saasruntime.inputs.SaaSLocationArgs;
    import com.pulumi.gcp.saasruntime.UnitKind;
    import com.pulumi.gcp.saasruntime.UnitKindArgs;
    import com.pulumi.gcp.saasruntime.Unit;
    import com.pulumi.gcp.saasruntime.UnitArgs;
    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 exampleSaasRegional = new SaaS("exampleSaasRegional", SaaSArgs.builder()
                .saasId("example-saas")
                .location("us-central1")
                .locations(SaaSLocationArgs.builder()
                    .name("us-central1")
                    .build())
                .build());
    
            var exampleUnitKind = new UnitKind("exampleUnitKind", UnitKindArgs.builder()
                .location("us-central1")
                .unitKindId("example-unitkind")
                .saas(exampleSaasRegional.id())
                .build());
    
            var example = new Unit("example", UnitArgs.builder()
                .location("us-central1")
                .unitId("example-unit")
                .unitKind(exampleUnitKind.id())
                .managementMode("MANAGEMENT_MODE_USER")
                .build());
    
        }
    }
    
    resources:
      exampleSaasRegional:
        type: gcp:saasruntime:SaaS
        name: example_saas_regional
        properties:
          saasId: example-saas
          location: us-central1
          locations:
            - name: us-central1
      exampleUnitKind:
        type: gcp:saasruntime:UnitKind
        name: example_unit_kind
        properties:
          location: us-central1
          unitKindId: example-unitkind
          saas: ${exampleSaasRegional.id}
      example:
        type: gcp:saasruntime:Unit
        properties:
          location: us-central1
          unitId: example-unit
          unitKind: ${exampleUnitKind.id}
          managementMode: MANAGEMENT_MODE_USER
    

    Create Unit Resource

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

    Constructor syntax

    new Unit(name: string, args: UnitArgs, opts?: CustomResourceOptions);
    @overload
    def Unit(resource_name: str,
             args: UnitArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Unit(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             location: Optional[str] = None,
             unit_id: Optional[str] = None,
             annotations: Optional[Mapping[str, str]] = None,
             labels: Optional[Mapping[str, str]] = None,
             maintenance: Optional[UnitMaintenanceArgs] = None,
             management_mode: Optional[str] = None,
             project: Optional[str] = None,
             tenant: Optional[str] = None,
             unit_kind: Optional[str] = None)
    func NewUnit(ctx *Context, name string, args UnitArgs, opts ...ResourceOption) (*Unit, error)
    public Unit(string name, UnitArgs args, CustomResourceOptions? opts = null)
    public Unit(String name, UnitArgs args)
    public Unit(String name, UnitArgs args, CustomResourceOptions options)
    
    type: gcp:saasruntime:Unit
    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 UnitArgs
    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 UnitArgs
    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 UnitArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UnitArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UnitArgs
    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 unitResource = new Gcp.SaaSRuntime.Unit("unitResource", new()
    {
        Location = "string",
        UnitId = "string",
        Annotations = 
        {
            { "string", "string" },
        },
        Labels = 
        {
            { "string", "string" },
        },
        Maintenance = new Gcp.SaaSRuntime.Inputs.UnitMaintenanceArgs
        {
            PinnedUntilTime = "string",
        },
        ManagementMode = "string",
        Project = "string",
        Tenant = "string",
        UnitKind = "string",
    });
    
    example, err := saasruntime.NewUnit(ctx, "unitResource", &saasruntime.UnitArgs{
    	Location: pulumi.String("string"),
    	UnitId:   pulumi.String("string"),
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Maintenance: &saasruntime.UnitMaintenanceArgs{
    		PinnedUntilTime: pulumi.String("string"),
    	},
    	ManagementMode: pulumi.String("string"),
    	Project:        pulumi.String("string"),
    	Tenant:         pulumi.String("string"),
    	UnitKind:       pulumi.String("string"),
    })
    
    var unitResource = new Unit("unitResource", UnitArgs.builder()
        .location("string")
        .unitId("string")
        .annotations(Map.of("string", "string"))
        .labels(Map.of("string", "string"))
        .maintenance(UnitMaintenanceArgs.builder()
            .pinnedUntilTime("string")
            .build())
        .managementMode("string")
        .project("string")
        .tenant("string")
        .unitKind("string")
        .build());
    
    unit_resource = gcp.saasruntime.Unit("unitResource",
        location="string",
        unit_id="string",
        annotations={
            "string": "string",
        },
        labels={
            "string": "string",
        },
        maintenance={
            "pinned_until_time": "string",
        },
        management_mode="string",
        project="string",
        tenant="string",
        unit_kind="string")
    
    const unitResource = new gcp.saasruntime.Unit("unitResource", {
        location: "string",
        unitId: "string",
        annotations: {
            string: "string",
        },
        labels: {
            string: "string",
        },
        maintenance: {
            pinnedUntilTime: "string",
        },
        managementMode: "string",
        project: "string",
        tenant: "string",
        unitKind: "string",
    });
    
    type: gcp:saasruntime:Unit
    properties:
        annotations:
            string: string
        labels:
            string: string
        location: string
        maintenance:
            pinnedUntilTime: string
        managementMode: string
        project: string
        tenant: string
        unitId: string
        unitKind: string
    

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

    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    UnitId string
    The ID value for the new unit.
    Annotations Dictionary<string, string>
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    Labels Dictionary<string, string>
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Maintenance UnitMaintenance
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    ManagementMode string
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Tenant string
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    UnitKind string
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    UnitId string
    The ID value for the new unit.
    Annotations map[string]string
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    Labels map[string]string
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Maintenance UnitMaintenanceArgs
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    ManagementMode string
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    Tenant string
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    UnitKind string
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    unitId String
    The ID value for the new unit.
    annotations Map<String,String>
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    labels Map<String,String>
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    maintenance UnitMaintenance
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    managementMode String
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tenant String
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    unitKind String
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    unitId string
    The ID value for the new unit.
    annotations {[key: string]: string}
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    labels {[key: string]: string}
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    maintenance UnitMaintenance
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    managementMode string
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tenant string
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    unitKind string
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    unit_id str
    The ID value for the new unit.
    annotations Mapping[str, str]
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    labels Mapping[str, str]
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    maintenance UnitMaintenanceArgs
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    management_mode str
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tenant str
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    unit_kind str
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    unitId String
    The ID value for the new unit.
    annotations Map<String>
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    labels Map<String>
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    maintenance Property Map
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    managementMode String
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    tenant String
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    unitKind String
    Reference to the UnitKind this Unit belongs to. Immutable once set.

    Outputs

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

    Conditions List<UnitCondition>
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    CreateTime string
    The timestamp when the resource was created.
    Dependencies List<UnitDependency>
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    Dependents List<UnitDependent>
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    EffectiveAnnotations Dictionary<string, string>
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    InputVariables List<UnitInputVariable>
    Indicates the current input variables deployed by the unit Structure is documented below.
    Name string
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    OngoingOperations List<string>
    List of concurrent UnitOperations that are operating on this Unit.
    OutputVariables List<UnitOutputVariable>
    PendingOperations List<string>
    List of pending (wait to be executed) UnitOperations for this unit.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Release string
    The current Release object for this Unit.
    ScheduledOperations List<string>
    List of scheduled UnitOperations for this unit.
    State string
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    SystemCleanupAt string
    If set, indicates the time when the system will start removing the unit.
    SystemManagedState string
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    Uid string
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    UpdateTime string
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    Conditions []UnitCondition
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    CreateTime string
    The timestamp when the resource was created.
    Dependencies []UnitDependency
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    Dependents []UnitDependent
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    EffectiveAnnotations map[string]string
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    InputVariables []UnitInputVariable
    Indicates the current input variables deployed by the unit Structure is documented below.
    Name string
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    OngoingOperations []string
    List of concurrent UnitOperations that are operating on this Unit.
    OutputVariables []UnitOutputVariable
    PendingOperations []string
    List of pending (wait to be executed) UnitOperations for this unit.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    Release string
    The current Release object for this Unit.
    ScheduledOperations []string
    List of scheduled UnitOperations for this unit.
    State string
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    SystemCleanupAt string
    If set, indicates the time when the system will start removing the unit.
    SystemManagedState string
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    Uid string
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    UpdateTime string
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    conditions List<UnitCondition>
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    createTime String
    The timestamp when the resource was created.
    dependencies List<UnitDependency>
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents List<UnitDependent>
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effectiveAnnotations Map<String,String>
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    inputVariables List<UnitInputVariable>
    Indicates the current input variables deployed by the unit Structure is documented below.
    name String
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoingOperations List<String>
    List of concurrent UnitOperations that are operating on this Unit.
    outputVariables List<UnitOutputVariable>
    pendingOperations List<String>
    List of pending (wait to be executed) UnitOperations for this unit.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    release String
    The current Release object for this Unit.
    scheduledOperations List<String>
    List of scheduled UnitOperations for this unit.
    state String
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    systemCleanupAt String
    If set, indicates the time when the system will start removing the unit.
    systemManagedState String
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    uid String
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    updateTime String
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    conditions UnitCondition[]
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    createTime string
    The timestamp when the resource was created.
    dependencies UnitDependency[]
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents UnitDependent[]
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effectiveAnnotations {[key: string]: string}
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    inputVariables UnitInputVariable[]
    Indicates the current input variables deployed by the unit Structure is documented below.
    name string
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoingOperations string[]
    List of concurrent UnitOperations that are operating on this Unit.
    outputVariables UnitOutputVariable[]
    pendingOperations string[]
    List of pending (wait to be executed) UnitOperations for this unit.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    release string
    The current Release object for this Unit.
    scheduledOperations string[]
    List of scheduled UnitOperations for this unit.
    state string
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    systemCleanupAt string
    If set, indicates the time when the system will start removing the unit.
    systemManagedState string
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    uid string
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    updateTime string
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    conditions Sequence[UnitCondition]
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    create_time str
    The timestamp when the resource was created.
    dependencies Sequence[UnitDependency]
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents Sequence[UnitDependent]
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effective_annotations Mapping[str, str]
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    input_variables Sequence[UnitInputVariable]
    Indicates the current input variables deployed by the unit Structure is documented below.
    name str
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoing_operations Sequence[str]
    List of concurrent UnitOperations that are operating on this Unit.
    output_variables Sequence[UnitOutputVariable]
    pending_operations Sequence[str]
    List of pending (wait to be executed) UnitOperations for this unit.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    release str
    The current Release object for this Unit.
    scheduled_operations Sequence[str]
    List of scheduled UnitOperations for this unit.
    state str
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    system_cleanup_at str
    If set, indicates the time when the system will start removing the unit.
    system_managed_state str
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    uid str
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    update_time str
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    conditions List<Property Map>
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    createTime String
    The timestamp when the resource was created.
    dependencies List<Property Map>
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents List<Property Map>
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effectiveAnnotations Map<String>
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    inputVariables List<Property Map>
    Indicates the current input variables deployed by the unit Structure is documented below.
    name String
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoingOperations List<String>
    List of concurrent UnitOperations that are operating on this Unit.
    outputVariables List<Property Map>
    pendingOperations List<String>
    List of pending (wait to be executed) UnitOperations for this unit.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    release String
    The current Release object for this Unit.
    scheduledOperations List<String>
    List of scheduled UnitOperations for this unit.
    state String
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    systemCleanupAt String
    If set, indicates the time when the system will start removing the unit.
    systemManagedState String
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    uid String
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    updateTime String
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.

    Look up Existing Unit Resource

    Get an existing Unit 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?: UnitState, opts?: CustomResourceOptions): Unit
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            annotations: Optional[Mapping[str, str]] = None,
            conditions: Optional[Sequence[UnitConditionArgs]] = None,
            create_time: Optional[str] = None,
            dependencies: Optional[Sequence[UnitDependencyArgs]] = None,
            dependents: Optional[Sequence[UnitDependentArgs]] = None,
            effective_annotations: Optional[Mapping[str, str]] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            input_variables: Optional[Sequence[UnitInputVariableArgs]] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            maintenance: Optional[UnitMaintenanceArgs] = None,
            management_mode: Optional[str] = None,
            name: Optional[str] = None,
            ongoing_operations: Optional[Sequence[str]] = None,
            output_variables: Optional[Sequence[UnitOutputVariableArgs]] = None,
            pending_operations: Optional[Sequence[str]] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            release: Optional[str] = None,
            scheduled_operations: Optional[Sequence[str]] = None,
            state: Optional[str] = None,
            system_cleanup_at: Optional[str] = None,
            system_managed_state: Optional[str] = None,
            tenant: Optional[str] = None,
            uid: Optional[str] = None,
            unit_id: Optional[str] = None,
            unit_kind: Optional[str] = None,
            update_time: Optional[str] = None) -> Unit
    func GetUnit(ctx *Context, name string, id IDInput, state *UnitState, opts ...ResourceOption) (*Unit, error)
    public static Unit Get(string name, Input<string> id, UnitState? state, CustomResourceOptions? opts = null)
    public static Unit get(String name, Output<String> id, UnitState state, CustomResourceOptions options)
    resources:  _:    type: gcp:saasruntime:Unit    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.
    The following state arguments are supported:
    Annotations Dictionary<string, string>
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    Conditions List<UnitCondition>
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    CreateTime string
    The timestamp when the resource was created.
    Dependencies List<UnitDependency>
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    Dependents List<UnitDependent>
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    EffectiveAnnotations Dictionary<string, string>
    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.
    InputVariables List<UnitInputVariable>
    Indicates the current input variables deployed by the unit Structure is documented below.
    Labels Dictionary<string, string>
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Maintenance UnitMaintenance
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    ManagementMode string
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    Name string
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    OngoingOperations List<string>
    List of concurrent UnitOperations that are operating on this Unit.
    OutputVariables List<UnitOutputVariable>
    PendingOperations List<string>
    List of pending (wait to be executed) UnitOperations for this unit.
    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.
    Release string
    The current Release object for this Unit.
    ScheduledOperations List<string>
    List of scheduled UnitOperations for this unit.
    State string
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    SystemCleanupAt string
    If set, indicates the time when the system will start removing the unit.
    SystemManagedState string
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    Tenant string
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    Uid string
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    UnitId string
    The ID value for the new unit.
    UnitKind string
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    UpdateTime string
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    Annotations map[string]string
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    Conditions []UnitConditionArgs
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    CreateTime string
    The timestamp when the resource was created.
    Dependencies []UnitDependencyArgs
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    Dependents []UnitDependentArgs
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    EffectiveAnnotations map[string]string
    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.
    InputVariables []UnitInputVariableArgs
    Indicates the current input variables deployed by the unit Structure is documented below.
    Labels map[string]string
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    Maintenance UnitMaintenanceArgs
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    ManagementMode string
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    Name string
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    OngoingOperations []string
    List of concurrent UnitOperations that are operating on this Unit.
    OutputVariables []UnitOutputVariableArgs
    PendingOperations []string
    List of pending (wait to be executed) UnitOperations for this unit.
    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.
    Release string
    The current Release object for this Unit.
    ScheduledOperations []string
    List of scheduled UnitOperations for this unit.
    State string
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    SystemCleanupAt string
    If set, indicates the time when the system will start removing the unit.
    SystemManagedState string
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    Tenant string
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    Uid string
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    UnitId string
    The ID value for the new unit.
    UnitKind string
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    UpdateTime string
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    annotations Map<String,String>
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    conditions List<UnitCondition>
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    createTime String
    The timestamp when the resource was created.
    dependencies List<UnitDependency>
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents List<UnitDependent>
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effectiveAnnotations Map<String,String>
    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.
    inputVariables List<UnitInputVariable>
    Indicates the current input variables deployed by the unit Structure is documented below.
    labels Map<String,String>
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    maintenance UnitMaintenance
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    managementMode String
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    name String
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoingOperations List<String>
    List of concurrent UnitOperations that are operating on this Unit.
    outputVariables List<UnitOutputVariable>
    pendingOperations List<String>
    List of pending (wait to be executed) UnitOperations for this unit.
    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.
    release String
    The current Release object for this Unit.
    scheduledOperations List<String>
    List of scheduled UnitOperations for this unit.
    state String
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    systemCleanupAt String
    If set, indicates the time when the system will start removing the unit.
    systemManagedState String
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    tenant String
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    uid String
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    unitId String
    The ID value for the new unit.
    unitKind String
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    updateTime String
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    annotations {[key: string]: string}
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    conditions UnitCondition[]
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    createTime string
    The timestamp when the resource was created.
    dependencies UnitDependency[]
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents UnitDependent[]
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effectiveAnnotations {[key: string]: string}
    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.
    inputVariables UnitInputVariable[]
    Indicates the current input variables deployed by the unit Structure is documented below.
    labels {[key: string]: string}
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location string
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    maintenance UnitMaintenance
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    managementMode string
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    name string
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoingOperations string[]
    List of concurrent UnitOperations that are operating on this Unit.
    outputVariables UnitOutputVariable[]
    pendingOperations string[]
    List of pending (wait to be executed) UnitOperations for this unit.
    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.
    release string
    The current Release object for this Unit.
    scheduledOperations string[]
    List of scheduled UnitOperations for this unit.
    state string
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    systemCleanupAt string
    If set, indicates the time when the system will start removing the unit.
    systemManagedState string
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    tenant string
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    uid string
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    unitId string
    The ID value for the new unit.
    unitKind string
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    updateTime string
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    annotations Mapping[str, str]
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    conditions Sequence[UnitConditionArgs]
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    create_time str
    The timestamp when the resource was created.
    dependencies Sequence[UnitDependencyArgs]
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents Sequence[UnitDependentArgs]
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effective_annotations Mapping[str, str]
    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.
    input_variables Sequence[UnitInputVariableArgs]
    Indicates the current input variables deployed by the unit Structure is documented below.
    labels Mapping[str, str]
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location str
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    maintenance UnitMaintenanceArgs
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    management_mode str
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    name str
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoing_operations Sequence[str]
    List of concurrent UnitOperations that are operating on this Unit.
    output_variables Sequence[UnitOutputVariableArgs]
    pending_operations Sequence[str]
    List of pending (wait to be executed) UnitOperations for this unit.
    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.
    release str
    The current Release object for this Unit.
    scheduled_operations Sequence[str]
    List of scheduled UnitOperations for this unit.
    state str
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    system_cleanup_at str
    If set, indicates the time when the system will start removing the unit.
    system_managed_state str
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    tenant str
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    uid str
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    unit_id str
    The ID value for the new unit.
    unit_kind str
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    update_time str
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.
    annotations Map<String>
    Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations Note: This field is non-authoritative, and will only manage the annotations present in your configuration. Please refer to the field effective_annotations for all of the annotations present on the resource.
    conditions List<Property Map>
    A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
    createTime String
    The timestamp when the resource was created.
    dependencies List<Property Map>
    Set of dependencies for this unit. Maximum 10. Structure is documented below.
    dependents List<Property Map>
    List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000. Structure is documented below.
    effectiveAnnotations Map<String>
    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.
    inputVariables List<Property Map>
    Indicates the current input variables deployed by the unit Structure is documented below.
    labels Map<String>
    The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    Resource ID segment making up resource name. It identifies the resource within its parent collection as described in https://google.aip.dev/122.
    maintenance Property Map
    Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future. Structure is documented below.
    managementMode String
    Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created. Possible values: MANAGEMENT_MODE_USER MANAGEMENT_MODE_SYSTEM
    name String
    Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"
    ongoingOperations List<String>
    List of concurrent UnitOperations that are operating on this Unit.
    outputVariables List<Property Map>
    pendingOperations List<String>
    List of pending (wait to be executed) UnitOperations for this unit.
    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.
    release String
    The current Release object for this Unit.
    scheduledOperations List<String>
    List of scheduled UnitOperations for this unit.
    state String
    Current lifecycle state of the resource (e.g. if it's being created or ready to use). Possible values: UNIT_STATE_NOT_PROVISIONED UNIT_STATE_PROVISIONING UNIT_STATE_UPDATING UNIT_STATE_DEPROVISIONING UNIT_STATE_READY UNIT_STATE_ERROR
    systemCleanupAt String
    If set, indicates the time when the system will start removing the unit.
    systemManagedState String
    Indicates the system managed state of the unit. Possible values: SYSTEM_MANAGED_STATE_ACTIVE SYSTEM_MANAGED_STATE_INACTIVE SYSTEM_MANAGED_STATE_DECOMMISSIONED
    tenant String
    Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)
    uid String
    The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.
    unitId String
    The ID value for the new unit.
    unitKind String
    Reference to the UnitKind this Unit belongs to. Immutable once set.
    updateTime String
    The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.

    Supporting Types

    UnitCondition, UnitConditionArgs

    LastTransitionTime string
    Last time the condition transited from one status to another.
    Message string
    Human readable message indicating details about the last transition.
    Reason string
    Brief reason for the condition's last transition.
    Status string
    Status of the condition. Possible values: STATUS_UNKNOWN STATUS_TRUE STATUS_FALSE
    Type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    LastTransitionTime string
    Last time the condition transited from one status to another.
    Message string
    Human readable message indicating details about the last transition.
    Reason string
    Brief reason for the condition's last transition.
    Status string
    Status of the condition. Possible values: STATUS_UNKNOWN STATUS_TRUE STATUS_FALSE
    Type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    lastTransitionTime String
    Last time the condition transited from one status to another.
    message String
    Human readable message indicating details about the last transition.
    reason String
    Brief reason for the condition's last transition.
    status String
    Status of the condition. Possible values: STATUS_UNKNOWN STATUS_TRUE STATUS_FALSE
    type String
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    lastTransitionTime string
    Last time the condition transited from one status to another.
    message string
    Human readable message indicating details about the last transition.
    reason string
    Brief reason for the condition's last transition.
    status string
    Status of the condition. Possible values: STATUS_UNKNOWN STATUS_TRUE STATUS_FALSE
    type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    last_transition_time str
    Last time the condition transited from one status to another.
    message str
    Human readable message indicating details about the last transition.
    reason str
    Brief reason for the condition's last transition.
    status str
    Status of the condition. Possible values: STATUS_UNKNOWN STATUS_TRUE STATUS_FALSE
    type str
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    lastTransitionTime String
    Last time the condition transited from one status to another.
    message String
    Human readable message indicating details about the last transition.
    reason String
    Brief reason for the condition's last transition.
    status String
    Status of the condition. Possible values: STATUS_UNKNOWN STATUS_TRUE STATUS_FALSE
    type String
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL

    UnitDependency, UnitDependencyArgs

    Alias string
    (Output) Alias for the name of the dependency.
    Unit string
    (Output) A reference to the Unit object.
    Alias string
    (Output) Alias for the name of the dependency.
    Unit string
    (Output) A reference to the Unit object.
    alias String
    (Output) Alias for the name of the dependency.
    unit String
    (Output) A reference to the Unit object.
    alias string
    (Output) Alias for the name of the dependency.
    unit string
    (Output) A reference to the Unit object.
    alias str
    (Output) Alias for the name of the dependency.
    unit str
    (Output) A reference to the Unit object.
    alias String
    (Output) Alias for the name of the dependency.
    unit String
    (Output) A reference to the Unit object.

    UnitDependent, UnitDependentArgs

    Alias string
    (Output) Alias for the name of the dependency.
    Unit string
    (Output) A reference to the Unit object.
    Alias string
    (Output) Alias for the name of the dependency.
    Unit string
    (Output) A reference to the Unit object.
    alias String
    (Output) Alias for the name of the dependency.
    unit String
    (Output) A reference to the Unit object.
    alias string
    (Output) Alias for the name of the dependency.
    unit string
    (Output) A reference to the Unit object.
    alias str
    (Output) Alias for the name of the dependency.
    unit str
    (Output) A reference to the Unit object.
    alias String
    (Output) Alias for the name of the dependency.
    unit String
    (Output) A reference to the Unit object.

    UnitInputVariable, UnitInputVariableArgs

    Variable string
    Name of the variable from actuation configs.
    Type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    Value string
    String encoded value for the variable.
    Variable string
    Name of the variable from actuation configs.
    Type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    Value string
    String encoded value for the variable.
    variable String
    Name of the variable from actuation configs.
    type String
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value String
    String encoded value for the variable.
    variable string
    Name of the variable from actuation configs.
    type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value string
    String encoded value for the variable.
    variable str
    Name of the variable from actuation configs.
    type str
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value str
    String encoded value for the variable.
    variable String
    Name of the variable from actuation configs.
    type String
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value String
    String encoded value for the variable.

    UnitMaintenance, UnitMaintenanceArgs

    PinnedUntilTime string
    If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.
    PinnedUntilTime string
    If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.
    pinnedUntilTime String
    If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.
    pinnedUntilTime string
    If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.
    pinned_until_time str
    If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.
    pinnedUntilTime String
    If present, it fixes the release on the unit until the given time; i.e. changes to the release field will be rejected. Rollouts should and will also respect this by not requesting an upgrade in the first place.

    UnitOutputVariable, UnitOutputVariableArgs

    Variable string
    Name of the variable from actuation configs.
    Type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    Value string
    String encoded value for the variable.
    Variable string
    Name of the variable from actuation configs.
    Type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    Value string
    String encoded value for the variable.
    variable String
    Name of the variable from actuation configs.
    type String
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value String
    String encoded value for the variable.
    variable string
    Name of the variable from actuation configs.
    type string
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value string
    String encoded value for the variable.
    variable str
    Name of the variable from actuation configs.
    type str
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value str
    String encoded value for the variable.
    variable String
    Name of the variable from actuation configs.
    type String
    Name of a supported variable type. Supported types are string, int, bool. Possible values: STRING INT BOOL
    value String
    String encoded value for the variable.

    Import

    Unit can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/units/{{unit_id}}

    • {{project}}/{{location}}/{{unit_id}}

    • {{location}}/{{unit_id}}

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

    $ pulumi import gcp:saasruntime/unit:Unit default projects/{{project}}/locations/{{location}}/units/{{unit_id}}
    
    $ pulumi import gcp:saasruntime/unit:Unit default {{project}}/{{location}}/{{unit_id}}
    
    $ pulumi import gcp:saasruntime/unit:Unit default {{location}}/{{unit_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 v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate