Workspace
Provides a workspace in AWS Workspaces Service
NOTE: During deletion of an
aws.workspaces.Workspaceresource, the service roleworkspaces_DefaultRolemust be attached to the policyarn:aws:iam::aws:policy/AmazonWorkSpacesServiceAccess, or it will leak the ENI that the Workspaces service creates for the Workspace.
Create a Workspace Resource
new Workspace(name: string, args: WorkspaceArgs, opts?: CustomResourceOptions);def Workspace(resource_name, opts=None, bundle_id=None, directory_id=None, root_volume_encryption_enabled=None, tags=None, user_name=None, user_volume_encryption_enabled=None, volume_encryption_key=None, workspace_properties=None, __props__=None);func NewWorkspace(ctx *Context, name string, args WorkspaceArgs, opts ...ResourceOption) (*Workspace, error)public Workspace(string name, WorkspaceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Workspace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Workspace resource accepts the following input properties:
- Bundle
Id string The ID of the bundle for the WorkSpace.
- Directory
Id string The ID of the directory for the WorkSpace.
- User
Name string The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- Root
Volume boolEncryption Enabled Indicates whether the data stored on the root volume is encrypted.
- Dictionary<string, string>
The tags for the WorkSpace.
- User
Volume boolEncryption Enabled Indicates whether the data stored on the user volume is encrypted.
- Volume
Encryption stringKey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- Workspace
Properties WorkspaceWorkspace Properties Args The WorkSpace properties.
- Bundle
Id string The ID of the bundle for the WorkSpace.
- Directory
Id string The ID of the directory for the WorkSpace.
- User
Name string The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- Root
Volume boolEncryption Enabled Indicates whether the data stored on the root volume is encrypted.
- map[string]string
The tags for the WorkSpace.
- User
Volume boolEncryption Enabled Indicates whether the data stored on the user volume is encrypted.
- Volume
Encryption stringKey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- Workspace
Properties WorkspaceWorkspace Properties The WorkSpace properties.
- bundle
Id string The ID of the bundle for the WorkSpace.
- directory
Id string The ID of the directory for the WorkSpace.
- user
Name string The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- root
Volume booleanEncryption Enabled Indicates whether the data stored on the root volume is encrypted.
- {[key: string]: string}
The tags for the WorkSpace.
- user
Volume booleanEncryption Enabled Indicates whether the data stored on the user volume is encrypted.
- volume
Encryption stringKey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- workspace
Properties WorkspaceWorkspace Properties The WorkSpace properties.
- bundle_
id str The ID of the bundle for the WorkSpace.
- directory_
id str The ID of the directory for the WorkSpace.
- user_
name str The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- root_
volume_ boolencryption_ enabled Indicates whether the data stored on the root volume is encrypted.
- Dict[str, str]
The tags for the WorkSpace.
- user_
volume_ boolencryption_ enabled Indicates whether the data stored on the user volume is encrypted.
- volume_
encryption_ strkey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- workspace_
properties Dict[WorkspaceWorkspace Properties] The WorkSpace properties.
Outputs
All input properties are implicitly available as output properties. Additionally, the Workspace resource produces the following output properties:
- computer_
name str The name of the WorkSpace, as seen by the operating system.
- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str The IP address of the WorkSpace.
- state str
The operational state of the WorkSpace.
Look up an Existing Workspace Resource
Get an existing Workspace 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?: WorkspaceState, opts?: CustomResourceOptions): Workspacestatic get(resource_name, id, opts=None, bundle_id=None, computer_name=None, directory_id=None, ip_address=None, root_volume_encryption_enabled=None, state=None, tags=None, user_name=None, user_volume_encryption_enabled=None, volume_encryption_key=None, workspace_properties=None, __props__=None);func GetWorkspace(ctx *Context, name string, id IDInput, state *WorkspaceState, opts ...ResourceOption) (*Workspace, error)public static Workspace Get(string name, Input<string> id, WorkspaceState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Bundle
Id string The ID of the bundle for the WorkSpace.
- Computer
Name string The name of the WorkSpace, as seen by the operating system.
- Directory
Id string The ID of the directory for the WorkSpace.
- Ip
Address string The IP address of the WorkSpace.
- Root
Volume boolEncryption Enabled Indicates whether the data stored on the root volume is encrypted.
- State string
The operational state of the WorkSpace.
- Dictionary<string, string>
The tags for the WorkSpace.
- User
Name string The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- User
Volume boolEncryption Enabled Indicates whether the data stored on the user volume is encrypted.
- Volume
Encryption stringKey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- Workspace
Properties WorkspaceWorkspace Properties Args The WorkSpace properties.
- Bundle
Id string The ID of the bundle for the WorkSpace.
- Computer
Name string The name of the WorkSpace, as seen by the operating system.
- Directory
Id string The ID of the directory for the WorkSpace.
- Ip
Address string The IP address of the WorkSpace.
- Root
Volume boolEncryption Enabled Indicates whether the data stored on the root volume is encrypted.
- State string
The operational state of the WorkSpace.
- map[string]string
The tags for the WorkSpace.
- User
Name string The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- User
Volume boolEncryption Enabled Indicates whether the data stored on the user volume is encrypted.
- Volume
Encryption stringKey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- Workspace
Properties WorkspaceWorkspace Properties The WorkSpace properties.
- bundle
Id string The ID of the bundle for the WorkSpace.
- computer
Name string The name of the WorkSpace, as seen by the operating system.
- directory
Id string The ID of the directory for the WorkSpace.
- ip
Address string The IP address of the WorkSpace.
- root
Volume booleanEncryption Enabled Indicates whether the data stored on the root volume is encrypted.
- state string
The operational state of the WorkSpace.
- {[key: string]: string}
The tags for the WorkSpace.
- user
Name string The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- user
Volume booleanEncryption Enabled Indicates whether the data stored on the user volume is encrypted.
- volume
Encryption stringKey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- workspace
Properties WorkspaceWorkspace Properties The WorkSpace properties.
- bundle_
id str The ID of the bundle for the WorkSpace.
- computer_
name str The name of the WorkSpace, as seen by the operating system.
- directory_
id str The ID of the directory for the WorkSpace.
- ip_
address str The IP address of the WorkSpace.
- root_
volume_ boolencryption_ enabled Indicates whether the data stored on the root volume is encrypted.
- state str
The operational state of the WorkSpace.
- Dict[str, str]
The tags for the WorkSpace.
- user_
name str The user name of the user for the WorkSpace. This user name must exist in the directory for the WorkSpace.
- user_
volume_ boolencryption_ enabled Indicates whether the data stored on the user volume is encrypted.
- volume_
encryption_ strkey The symmetric AWS KMS customer master key (CMK) used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric CMKs.
- workspace_
properties Dict[WorkspaceWorkspace Properties] The WorkSpace properties.
Supporting Types
WorkspaceWorkspaceProperties
- Compute
Type stringName The compute type. For more information, see Amazon WorkSpaces Bundles. Valid values are
VALUE,STANDARD,PERFORMANCE,POWER,GRAPHICS,POWERPROandGRAPHICSPRO.- Root
Volume intSize Gib The size of the root volume.
- Running
Mode string The running mode. For more information, see Manage the WorkSpace Running Mode. Valid values are
AUTO_STOPandALWAYS_ON.- Running
Mode intAuto Stop Timeout In Minutes The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
- User
Volume intSize Gib The size of the user storage.
- Compute
Type stringName The compute type. For more information, see Amazon WorkSpaces Bundles. Valid values are
VALUE,STANDARD,PERFORMANCE,POWER,GRAPHICS,POWERPROandGRAPHICSPRO.- Root
Volume intSize Gib The size of the root volume.
- Running
Mode string The running mode. For more information, see Manage the WorkSpace Running Mode. Valid values are
AUTO_STOPandALWAYS_ON.- Running
Mode intAuto Stop Timeout In Minutes The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
- User
Volume intSize Gib The size of the user storage.
- compute
Type stringName The compute type. For more information, see Amazon WorkSpaces Bundles. Valid values are
VALUE,STANDARD,PERFORMANCE,POWER,GRAPHICS,POWERPROandGRAPHICSPRO.- root
Volume numberSize Gib The size of the root volume.
- running
Mode string The running mode. For more information, see Manage the WorkSpace Running Mode. Valid values are
AUTO_STOPandALWAYS_ON.- running
Mode numberAuto Stop Timeout In Minutes The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
- user
Volume numberSize Gib The size of the user storage.
- compute
Type strName The compute type. For more information, see Amazon WorkSpaces Bundles. Valid values are
VALUE,STANDARD,PERFORMANCE,POWER,GRAPHICS,POWERPROandGRAPHICSPRO.- root
Volume floatSize Gib The size of the root volume.
- running
Mode str The running mode. For more information, see Manage the WorkSpace Running Mode. Valid values are
AUTO_STOPandALWAYS_ON.- running
Mode floatAuto Stop Timeout In Minutes The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
- user
Volume floatSize Gib The size of the user storage.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.