gcp.saasruntime.Unit
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)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. - Unit
Id 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_annotationsfor 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_labelsfor all of the labels present on the resource. - Maintenance
Unit
Maintenance - 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 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)
- Unit
Kind 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. - Unit
Id 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_annotationsfor 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_labelsfor all of the labels present on the resource. - Maintenance
Unit
Maintenance Args - 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 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)
- Unit
Kind 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. - unit
Id 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_annotationsfor 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_labelsfor all of the labels present on the resource. - maintenance
Unit
Maintenance - 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 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)
- unit
Kind 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. - unit
Id 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_annotationsfor 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_labelsfor all of the labels present on the resource. - maintenance
Unit
Maintenance - 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 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)
- unit
Kind 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_annotationsfor 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_labelsfor all of the labels present on the resource. - maintenance
Unit
Maintenance Args - 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. - unit
Id 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_annotationsfor 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_labelsfor 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.
- management
Mode 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)
- unit
Kind 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<Unit
Condition> - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- Create
Time string - The timestamp when the resource was created.
- Dependencies
List<Unit
Dependency> - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- Dependents
List<Unit
Dependent> - 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 Dictionary<string, string> - Effective
Labels 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.
- Input
Variables List<UnitInput Variable> - 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}"
- Ongoing
Operations List<string> - List of concurrent UnitOperations that are operating on this Unit.
- Output
Variables List<UnitOutput Variable> - Pending
Operations List<string> - List of pending (wait to be executed) UnitOperations for this unit.
- Pulumi
Labels 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.
- Scheduled
Operations 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
- System
Cleanup stringAt - If set, indicates the time when the system will start removing the unit.
- System
Managed stringState - 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.
- Update
Time 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
[]Unit
Condition - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- Create
Time string - The timestamp when the resource was created.
- Dependencies
[]Unit
Dependency - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- Dependents
[]Unit
Dependent - 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 map[string]string - Effective
Labels 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.
- Input
Variables []UnitInput Variable - 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}"
- Ongoing
Operations []string - List of concurrent UnitOperations that are operating on this Unit.
- Output
Variables []UnitOutput Variable - Pending
Operations []string - List of pending (wait to be executed) UnitOperations for this unit.
- Pulumi
Labels 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.
- Scheduled
Operations []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
- System
Cleanup stringAt - If set, indicates the time when the system will start removing the unit.
- System
Managed stringState - 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.
- Update
Time 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<Unit
Condition> - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- create
Time String - The timestamp when the resource was created.
- dependencies
List<Unit
Dependency> - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- dependents
List<Unit
Dependent> - 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 Map<String,String> - effective
Labels 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.
- input
Variables List<UnitInput Variable> - 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}"
- ongoing
Operations List<String> - List of concurrent UnitOperations that are operating on this Unit.
- output
Variables List<UnitOutput Variable> - pending
Operations List<String> - List of pending (wait to be executed) UnitOperations for this unit.
- pulumi
Labels 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.
- scheduled
Operations 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
- system
Cleanup StringAt - If set, indicates the time when the system will start removing the unit.
- system
Managed StringState - 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.
- update
Time 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
Unit
Condition[] - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- create
Time string - The timestamp when the resource was created.
- dependencies
Unit
Dependency[] - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- dependents
Unit
Dependent[] - 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 {[key: string]: string} - effective
Labels {[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.
- input
Variables UnitInput Variable[] - 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}"
- ongoing
Operations string[] - List of concurrent UnitOperations that are operating on this Unit.
- output
Variables UnitOutput Variable[] - pending
Operations string[] - List of pending (wait to be executed) UnitOperations for this unit.
- pulumi
Labels {[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.
- scheduled
Operations 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
- system
Cleanup stringAt - If set, indicates the time when the system will start removing the unit.
- system
Managed stringState - 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.
- update
Time 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[Unit
Condition] - 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[Unit
Dependency] - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- dependents
Sequence[Unit
Dependent] - 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[UnitInput Variable] - 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[UnitOutput Variable] - 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_ strat - If set, indicates the time when the system will start removing the unit.
- system_
managed_ strstate - 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.
- create
Time 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.
- effective
Annotations Map<String> - effective
Labels 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.
- input
Variables 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}"
- ongoing
Operations List<String> - List of concurrent UnitOperations that are operating on this Unit.
- output
Variables List<Property Map> - pending
Operations List<String> - List of pending (wait to be executed) UnitOperations for this unit.
- pulumi
Labels 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.
- scheduled
Operations 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
- system
Cleanup StringAt - If set, indicates the time when the system will start removing the unit.
- system
Managed StringState - 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.
- update
Time 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) -> Unitfunc 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.
- 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_annotationsfor all of the annotations present on the resource. - Conditions
List<Unit
Condition> - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- Create
Time string - The timestamp when the resource was created.
- Dependencies
List<Unit
Dependency> - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- Dependents
List<Unit
Dependent> - 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 Dictionary<string, string> - Effective
Labels 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.
- Input
Variables List<UnitInput Variable> - 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_labelsfor 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
Unit
Maintenance - 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 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}"
- Ongoing
Operations List<string> - List of concurrent UnitOperations that are operating on this Unit.
- Output
Variables List<UnitOutput Variable> - Pending
Operations 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.
- Pulumi
Labels 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.
- Scheduled
Operations 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
- System
Cleanup stringAt - If set, indicates the time when the system will start removing the unit.
- System
Managed stringState - 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.
- Unit
Id string - The ID value for the new unit.
- Unit
Kind string - Reference to the UnitKind this Unit belongs to. Immutable once set.
- Update
Time 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_annotationsfor all of the annotations present on the resource. - Conditions
[]Unit
Condition Args - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- Create
Time string - The timestamp when the resource was created.
- Dependencies
[]Unit
Dependency Args - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- Dependents
[]Unit
Dependent Args - 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 map[string]string - Effective
Labels 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.
- Input
Variables []UnitInput Variable Args - 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_labelsfor 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
Unit
Maintenance Args - 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 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}"
- Ongoing
Operations []string - List of concurrent UnitOperations that are operating on this Unit.
- Output
Variables []UnitOutput Variable Args - Pending
Operations []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.
- Pulumi
Labels 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.
- Scheduled
Operations []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
- System
Cleanup stringAt - If set, indicates the time when the system will start removing the unit.
- System
Managed stringState - 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.
- Unit
Id string - The ID value for the new unit.
- Unit
Kind string - Reference to the UnitKind this Unit belongs to. Immutable once set.
- Update
Time 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_annotationsfor all of the annotations present on the resource. - conditions
List<Unit
Condition> - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- create
Time String - The timestamp when the resource was created.
- dependencies
List<Unit
Dependency> - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- dependents
List<Unit
Dependent> - 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 Map<String,String> - effective
Labels 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.
- input
Variables List<UnitInput Variable> - 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_labelsfor 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
Unit
Maintenance - 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 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}"
- ongoing
Operations List<String> - List of concurrent UnitOperations that are operating on this Unit.
- output
Variables List<UnitOutput Variable> - pending
Operations 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.
- pulumi
Labels 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.
- scheduled
Operations 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
- system
Cleanup StringAt - If set, indicates the time when the system will start removing the unit.
- system
Managed StringState - 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.
- unit
Id String - The ID value for the new unit.
- unit
Kind String - Reference to the UnitKind this Unit belongs to. Immutable once set.
- update
Time 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_annotationsfor all of the annotations present on the resource. - conditions
Unit
Condition[] - A set of conditions which indicate the various conditions this resource can have. Structure is documented below.
- create
Time string - The timestamp when the resource was created.
- dependencies
Unit
Dependency[] - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- dependents
Unit
Dependent[] - 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 {[key: string]: string} - effective
Labels {[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.
- input
Variables UnitInput Variable[] - 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_labelsfor 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
Unit
Maintenance - 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 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}"
- ongoing
Operations string[] - List of concurrent UnitOperations that are operating on this Unit.
- output
Variables UnitOutput Variable[] - pending
Operations 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.
- pulumi
Labels {[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.
- scheduled
Operations 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
- system
Cleanup stringAt - If set, indicates the time when the system will start removing the unit.
- system
Managed stringState - 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.
- unit
Id string - The ID value for the new unit.
- unit
Kind string - Reference to the UnitKind this Unit belongs to. Immutable once set.
- update
Time 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_annotationsfor all of the annotations present on the resource. - conditions
Sequence[Unit
Condition Args] - 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[Unit
Dependency Args] - Set of dependencies for this unit. Maximum 10. Structure is documented below.
- dependents
Sequence[Unit
Dependent Args] - 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[UnitInput Variable Args] - 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_labelsfor 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
Unit
Maintenance Args - 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[UnitOutput Variable Args] - 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_ strat - If set, indicates the time when the system will start removing the unit.
- system_
managed_ strstate - 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_annotationsfor 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.
- create
Time 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.
- effective
Annotations Map<String> - effective
Labels Map<String> - All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- input
Variables 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_labelsfor 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.
- management
Mode 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}"
- ongoing
Operations List<String> - List of concurrent UnitOperations that are operating on this Unit.
- output
Variables List<Property Map> - pending
Operations 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.
- pulumi
Labels 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.
- scheduled
Operations 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
- system
Cleanup StringAt - If set, indicates the time when the system will start removing the unit.
- system
Managed StringState - 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.
- unit
Id String - The ID value for the new unit.
- unit
Kind String - Reference to the UnitKind this Unit belongs to. Immutable once set.
- update
Time 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
- Last
Transition stringTime - 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 stringTime - 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 StringTime - 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 stringTime - 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_ strtime - 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
- last
Transition StringTime - 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
UnitDependent, UnitDependentArgs
UnitInputVariable, UnitInputVariableArgs
UnitMaintenance, UnitMaintenanceArgs
- Pinned
Until stringTime - 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 stringTime - 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 StringTime - 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 stringTime - 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_ strtime - 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 StringTime - 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
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-betaTerraform Provider.
