@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.831Z") @Stability(value=Stable) public class CfnWorkspace extends CfnResource implements IInspectable
The AWS::WorkSpaces::Workspace resource specifies a WorkSpace.
Updates are not supported for the BundleId , RootVolumeEncryptionEnabled , UserVolumeEncryptionEnabled , or VolumeEncryptionKey properties. To update these properties, you must also update a property that triggers a replacement, such as the UserName property.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.workspaces.*;
CfnWorkspace cfnWorkspace = CfnWorkspace.Builder.create(this, "MyCfnWorkspace")
.bundleId("bundleId")
.directoryId("directoryId")
.userName("userName")
// the properties below are optional
.rootVolumeEncryptionEnabled(false)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userVolumeEncryptionEnabled(false)
.volumeEncryptionKey("volumeEncryptionKey")
.workspaceProperties(WorkspacePropertiesProperty.builder()
.computeTypeName("computeTypeName")
.rootVolumeSizeGib(123)
.runningMode("runningMode")
.runningModeAutoStopTimeoutInMinutes(123)
.userVolumeSizeGib(123)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnWorkspace.Builder
A fluent builder for
CfnWorkspace. |
static interface |
CfnWorkspace.WorkspacePropertiesProperty
Information about a WorkSpace.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnWorkspace(software.constructs.Construct scope,
String id,
CfnWorkspaceProps props)
Create a new `AWS::WorkSpaces::Workspace`.
|
protected |
CfnWorkspace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnWorkspace(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBundleId()
The identifier of the bundle for the WorkSpace.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDirectoryId()
The identifier of the AWS Directory Service directory for the WorkSpace.
|
Object |
getRootVolumeEncryptionEnabled()
Indicates whether the data stored on the root volume is encrypted.
|
TagManager |
getTags()
The tags for the WorkSpace.
|
String |
getUserName()
The user name of the user for the WorkSpace.
|
Object |
getUserVolumeEncryptionEnabled()
Indicates whether the data stored on the user volume is encrypted.
|
String |
getVolumeEncryptionKey()
The symmetric AWS KMS key used to encrypt data stored on your WorkSpace.
|
Object |
getWorkspaceProperties()
The WorkSpace properties.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBundleId(String value)
The identifier of the bundle for the WorkSpace.
|
void |
setDirectoryId(String value)
The identifier of the AWS Directory Service directory for the WorkSpace.
|
void |
setRootVolumeEncryptionEnabled(Boolean value)
Indicates whether the data stored on the root volume is encrypted.
|
void |
setRootVolumeEncryptionEnabled(IResolvable value)
Indicates whether the data stored on the root volume is encrypted.
|
void |
setUserName(String value)
The user name of the user for the WorkSpace.
|
void |
setUserVolumeEncryptionEnabled(Boolean value)
Indicates whether the data stored on the user volume is encrypted.
|
void |
setUserVolumeEncryptionEnabled(IResolvable value)
Indicates whether the data stored on the user volume is encrypted.
|
void |
setVolumeEncryptionKey(String value)
The symmetric AWS KMS key used to encrypt data stored on your WorkSpace.
|
void |
setWorkspaceProperties(CfnWorkspace.WorkspacePropertiesProperty value)
The WorkSpace properties.
|
void |
setWorkspaceProperties(IResolvable value)
The WorkSpace properties.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnWorkspace(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnWorkspace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnWorkspace(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnWorkspaceProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getBundleId()
@Stability(value=Stable)
public void setBundleId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getDirectoryId()
@Stability(value=Stable)
public void setDirectoryId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getUserName()
This user name must exist in the AWS Directory Service directory for the WorkSpace.
@Stability(value=Stable)
public void setUserName(@NotNull
String value)
This user name must exist in the AWS Directory Service directory for the WorkSpace.
@Stability(value=Stable) @Nullable public Object getRootVolumeEncryptionEnabled()
@Stability(value=Stable)
public void setRootVolumeEncryptionEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setRootVolumeEncryptionEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getUserVolumeEncryptionEnabled()
@Stability(value=Stable)
public void setUserVolumeEncryptionEnabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setUserVolumeEncryptionEnabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getVolumeEncryptionKey()
Amazon WorkSpaces does not support asymmetric KMS keys.
@Stability(value=Stable)
public void setVolumeEncryptionKey(@Nullable
String value)
Amazon WorkSpaces does not support asymmetric KMS keys.
@Stability(value=Stable) @Nullable public Object getWorkspaceProperties()
@Stability(value=Stable)
public void setWorkspaceProperties(@Nullable
CfnWorkspace.WorkspacePropertiesProperty value)
@Stability(value=Stable)
public void setWorkspaceProperties(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.