WorkstationConfigArgs constructor

const WorkstationConfigArgs({
  1. Input<List<WorkstationConfigAllowedPort>?>? allowedPorts,
  2. Input<Map<String, String>?>? annotations,
  3. Input<WorkstationConfigContainer?>? container,
  4. Input<String?>? deletionPolicy,
  5. Input<bool?>? disableTcpConnections,
  6. Input<String?>? displayName,
  7. Input<bool?>? enableAuditAgent,
  8. Input<WorkstationConfigEncryptionKey?>? encryptionKey,
  9. Input<List<WorkstationConfigEphemeralDirectory>?>? ephemeralDirectories,
  10. Input<WorkstationConfigHost?>? host,
  11. Input<String?>? idleAction,
  12. Input<String?>? idleTimeout,
  13. Input<Map<String, String>?>? labels,
  14. required Input<String> location,
  15. Input<int?>? maxUsableWorkstations,
  16. Input<List<WorkstationConfigPersistentDirectory>?>? persistentDirectories,
  17. Input<String?>? project,
  18. Input<List<WorkstationConfigReadinessCheck>?>? readinessChecks,
  19. Input<List<String>?>? replicaZones,
  20. Input<String?>? runningTimeout,
  21. required Input<String> workstationClusterId,
  22. required Input<String> workstationConfigId,
})

Creates a new WorkstationConfigArgs. allowedPorts 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. annotations Client-specified annotations. This is distinct from labels. container Container that will be run for each workstation using this configuration when that workstation is started. deletionPolicy Whether Terraform will be prevented from destroying the resource. Defaults to DELETE. disableTcpConnections 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. displayName Human-readable name for this resource. enableAuditAgent Whether to enable Linux auditd logging on the workstation. When enabled, a service account must also be specified that has logging.buckets.write permission on the project. Operating system audit logging is distinct from Cloud Audit Logs. encryptionKey Encrypts resources of this workstation configuration using a customer-managed encryption key. ephemeralDirectories Ephemeral directories which won't persist across workstation sessions. host Runtime host for a workstation. idleAction (Optional, Beta) idleTimeout 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. labels Client-specified labels that are applied to the resource and that are also propagated to the underlying Compute Engine resources. location The location where the workstation cluster config should reside. maxUsableWorkstations 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. persistentDirectories Directories to persist across workstation sessions. project The ID of the project in which the resource belongs. readinessChecks Readiness checks to be performed on a workstation. replicaZones 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']. runningTimeout 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 encryptionKey is set. Defaults to 12 hours. workstationClusterId The ID of the parent workstation cluster. workstationConfigId The ID to be assigned to the workstation cluster config.

Implementation

const WorkstationConfigArgs({
  this.allowedPorts,
  this.annotations,
  this.container,
  this.deletionPolicy,
  this.disableTcpConnections,
  this.displayName,
  this.enableAuditAgent,
  this.encryptionKey,
  this.ephemeralDirectories,
  this.host,
  this.idleAction,
  this.idleTimeout,
  this.labels,
  required this.location,
  this.maxUsableWorkstations,
  this.persistentDirectories,
  this.project,
  this.readinessChecks,
  this.replicaZones,
  this.runningTimeout,
  required this.workstationClusterId,
  required this.workstationConfigId,
});