WorkstationConfigState class
Input properties used for looking up and filtering WorkstationConfig resources.
Constructors
-
WorkstationConfigState({Input<
List< ? allowedPorts, Input<WorkstationConfigAllowedPort> ?>Map< ? annotations, Input<String, String> ?>List< ? conditions, Input<WorkstationConfigCondition> ?>WorkstationConfigContainer?> ? container, Input<String?> ? createTime, Input<bool?> ? degraded, Input<String?> ? deletionPolicy, Input<bool?> ? disableTcpConnections, Input<String?> ? displayName, Input<Map< ? effectiveAnnotations, Input<String, String> ?>Map< ? effectiveLabels, Input<String, String> ?>bool?> ? enableAuditAgent, Input<WorkstationConfigEncryptionKey?> ? encryptionKey, Input<List< ? ephemeralDirectories, Input<WorkstationConfigEphemeralDirectory> ?>String?> ? etag, Input<WorkstationConfigHost?> ? host, Input<String?> ? idleAction, Input<String?> ? idleTimeout, Input<Map< ? labels, Input<String, String> ?>String?> ? location, Input<int?> ? maxUsableWorkstations, Input<String?> ? name, Input<List< ? persistentDirectories, Input<WorkstationConfigPersistentDirectory> ?>String?> ? project, Input<Map< ? pulumiLabels, Input<String, String> ?>List< ? readinessChecks, Input<WorkstationConfigReadinessCheck> ?>List< ? replicaZones, Input<String> ?>String?> ? runningTimeout, Input<String?> ? uid, Input<String?> ? workstationClusterId, Input<String?> ? workstationConfigId}) -
Creates a new WorkstationConfigState.
allowedPortsA list of port ranges specifying single ports or ranges of ports that are externally accessible in the workstation. Allowed ports must be one of 22, 80, or within range 1024-65535. If not specified defaults to ports 22, 80, and ports 1024-65535.annotationsClient-specified annotations. This is distinct from labels.conditionsStatus conditions describing the current resource state.containerContainer that will be run for each workstation using this configuration when that workstation is started.createTimeTime when this resource was created.degradedWhether this resource is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in the conditions field.deletionPolicyWhether Terraform will be prevented from destroying the resource. Defaults to DELETE.disableTcpConnectionsDisables support for plain TCP connections in the workstation. By default the service supports TCP connections via a websocket relay. Setting this option to true disables that relay, which prevents the usage of services that require plain tcp connections, such as ssh. When enabled, all communication must occur over https or wss.displayNameHuman-readable name for this resource.effectiveAnnotationsAll of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.effectiveLabelsAll of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.enableAuditAgentWhether to enable Linuxauditdlogging on the workstation. When enabled, a service account must also be specified that haslogging.buckets.writepermission on the project. Operating system audit logging is distinct from Cloud Audit Logs.encryptionKeyEncrypts resources of this workstation configuration using a customer-managed encryption key.ephemeralDirectoriesEphemeral directories which won't persist across workstation sessions.etagChecksum computed by the server.hostRuntime host for a workstation.idleAction(Optional, Beta)idleTimeoutHow long to wait before automatically stopping an instance that hasn't recently received any user traffic. A value of 0 indicates that this instance should never time out from idleness. Defaults to 20 minutes.labelsClient-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.locationThe location where the workstation cluster config should reside.maxUsableWorkstationsMaximum number of workstations under this configuration a user can have workstations.workstation.use permission on. Only enforced on CreateWorkstation API calls on the user issuing the API request.nameFull name of this resource.persistentDirectoriesDirectories to persist across workstation sessions.projectThe ID of the project in which the resource belongs.pulumiLabelsThe combination of labels configured directly on the resourcereadinessChecksReadiness checks to be performed on a workstation.replicaZonesSpecifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example,['us-central1-a', 'us-central1-f'].runningTimeoutHow long to wait before automatically stopping a workstation after it was started. A value of 0 indicates that workstations using this configuration should never time out from running duration. Must be greater than 0 and less than 24 hours ifencryptionKeyis set. Defaults to 12 hours.uidThe system-generated UID of the resource.workstationClusterIdThe ID of the parent workstation cluster.workstationConfigIdThe ID to be assigned to the workstation cluster config.const -
WorkstationConfigState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
allowedPorts
→ Input<
List< ?WorkstationConfigAllowedPort> ?> -
A list of port ranges specifying single ports or ranges of ports that are externally accessible in the workstation. Allowed ports must be one of 22, 80, or within range 1024-65535. If not specified defaults to ports 22, 80, and ports 1024-65535.
Structure is documented below.
final
-
annotations
→ Input<
Map< ?String, String> ?> -
Client-specified annotations. This is distinct from labels.
Note: This field is non-authoritative, and will only manage the annotations present in your configuration.
Please refer to the field
effectiveAnnotationsfor all of the annotations present on the resource.final -
conditions
→ Input<
List< ?WorkstationConfigCondition> ?> -
Status conditions describing the current resource state.
Structure is documented below.
final
-
container
→ Input<
WorkstationConfigContainer?> ? -
Container that will be run for each workstation using this configuration when that workstation is started.
Structure is documented below.
final
-
createTime
→ Input<
String?> ? -
Time when this resource was created.
final
-
degraded
→ Input<
bool?> ? -
Whether this resource is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in the conditions field.
final
-
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
disableTcpConnections
→ Input<
bool?> ? -
Disables support for plain TCP connections in the workstation. By default the service supports TCP connections via a websocket relay. Setting this option to true disables that relay, which prevents the usage of services that require plain tcp connections, such as ssh. When enabled, all communication must occur over https or wss.
final
-
displayName
→ Input<
String?> ? -
Human-readable name for this resource.
final
-
effectiveAnnotations
→ Input<
Map< ?String, String> ?> -
All of annotations (key/value pairs) present on the resource in GCP, including the annotations configured through Terraform, other clients and services.
final
-
effectiveLabels
→ Input<
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.
final
-
enableAuditAgent
→ Input<
bool?> ? -
Whether to enable Linux
auditdlogging on the workstation. When enabled, a service account must also be specified that haslogging.buckets.writepermission on the project. Operating system audit logging is distinct from Cloud Audit Logs.final -
encryptionKey
→ Input<
WorkstationConfigEncryptionKey?> ? -
Encrypts resources of this workstation configuration using a customer-managed encryption key.
If specified, the boot disk of the Compute Engine instance and the persistent disk are encrypted using this encryption key. If this field is not set, the disks are encrypted using a generated key. Customer-managed encryption keys do not protect disk metadata.
If the customer-managed encryption key is rotated, when the workstation instance is stopped, the system attempts to recreate the persistent disk with the new version of the key. Be sure to keep older versions of the key until the persistent disk is recreated. Otherwise, data on the persistent disk will be lost.
If the encryption key is revoked, the workstation session will automatically be stopped within 7 hours.
Structure is documented below.
final
-
ephemeralDirectories
→ Input<
List< ?WorkstationConfigEphemeralDirectory> ?> -
Ephemeral directories which won't persist across workstation sessions.
Structure is documented below.
final
-
etag
→ Input<
String?> ? -
Checksum computed by the server.
May be sent on update and delete requests to ensure that the client has an up-to-date value before proceeding.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
host
→ Input<
WorkstationConfigHost?> ? -
Runtime host for a workstation.
Structure is documented below.
final
-
idleAction
→ Input<
String?> ? -
(Optional, Beta)
The action to take when the workstation has been idle for the duration specified in idle_timeout.
Defaults to STOP.
Default value is
STOP. Possible values are:STOP,SUSPEND.final -
idleTimeout
→ Input<
String?> ? -
How long to wait before automatically stopping an instance that hasn't recently received any user traffic. A value of 0 indicates that this instance should never time out from idleness. Defaults to 20 minutes.
A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
final
-
labels
→ Input<
Map< ?String, String> ?> -
Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field
effectiveLabelsfor all of the labels present on the resource.final -
location
→ Input<
String?> ? -
The location where the workstation cluster config should reside.
final
-
maxUsableWorkstations
→ Input<
int?> ? -
Maximum number of workstations under this configuration a user can have workstations.workstation.use permission on. Only enforced on CreateWorkstation API calls on the user issuing the API request.
final
-
name
→ Input<
String?> ? -
Full name of this resource.
final
-
persistentDirectories
→ Input<
List< ?WorkstationConfigPersistentDirectory> ?> -
Directories to persist across workstation sessions.
Structure is documented below.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
final
-
pulumiLabels
→ Input<
Map< ?String, String> ?> -
The combination of labels configured directly on the resource
and default labels configured on the provider.
final
-
readinessChecks
→ Input<
List< ?WorkstationConfigReadinessCheck> ?> -
Readiness checks to be performed on a workstation.
Structure is documented below.
final
-
replicaZones
→ Input<
List< ?String> ?> -
Specifies the zones used to replicate the VM and disk resources within the region. If set, exactly two zones within the workstation cluster's region must be specified—for example,
['us-central1-a', 'us-central1-f']. If this field is empty, two default zones within the region are used. Immutable after the workstation configuration is created.final -
runningTimeout
→ Input<
String?> ? -
How long to wait before automatically stopping a workstation after it was started. A value of 0 indicates that workstations using this configuration should never time out from running duration. Must be greater than 0 and less than 24 hours if
encryptionKeyis set. Defaults to 12 hours. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
uid
→ Input<
String?> ? -
The system-generated UID of the resource.
final
-
workstationClusterId
→ Input<
String?> ? -
The ID of the parent workstation cluster.
final
-
workstationConfigId
→ Input<
String?> ? -
The ID to be assigned to the workstation cluster config.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited