Class CfnWorkspacesPool
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.workspaces.CfnWorkspacesPool
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IWorkspacesPoolRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:52.365Z")
@Stability(Stable)
public class CfnWorkspacesPool
extends CfnResource
implements IInspectable, IWorkspacesPoolRef, ITaggableV2
Describes a pool of WorkSpaces.
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.*;
CfnWorkspacesPool cfnWorkspacesPool = CfnWorkspacesPool.Builder.create(this, "MyCfnWorkspacesPool")
.bundleId("bundleId")
.capacity(CapacityProperty.builder()
.desiredUserSessions(123)
.build())
.directoryId("directoryId")
.poolName("poolName")
// the properties below are optional
.applicationSettings(ApplicationSettingsProperty.builder()
.status("status")
// the properties below are optional
.settingsGroup("settingsGroup")
.build())
.description("description")
.runningMode("runningMode")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.timeoutSettings(TimeoutSettingsProperty.builder()
.disconnectTimeoutInSeconds(123)
.idleDisconnectTimeoutInSeconds(123)
.maxUserDurationInSeconds(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe persistent application settings for users in the pool.static final classA fluent builder forCfnWorkspacesPool.static interfaceDescribes the user capacity for the pool.static interfaceDescribes the timeout settings for the pool.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.workspaces.IWorkspacesPoolRef
IWorkspacesPoolRef.Jsii$Default, IWorkspacesPoolRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkspacesPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkspacesPool(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkspacesPool(software.constructs.Construct scope, String id, CfnWorkspacesPoolProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IWorkspacesPoolReffromPoolId(software.constructs.Construct scope, String id, String poolId) Creates a new IWorkspacesPoolRef from a poolId.The persistent application settings for users of the pool.The time the pool was created.The Amazon Resource Name (ARN) for the pool.The identifier of the pool.The identifier of the bundle used by the pool.Describes the user capacity for the pool.Tag Manager which manages the tags for this resource.The description of the pool.The identifier of the directory used by the pool.The name of the pool.The running mode of the pool.getTags()Deprecated.this property has been deprecatedThe amount of time that a pool session remains active after users disconnect.A reference to a WorkspacesPool resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe persistent application settings for users of the pool.voidThe persistent application settings for users of the pool.voidsetBundleId(String value) The identifier of the bundle used by the pool.voidsetCapacity(IResolvable value) Describes the user capacity for the pool.voidDescribes the user capacity for the pool.voidsetDescription(String value) The description of the pool.voidsetDirectoryId(String value) The identifier of the directory used by the pool.voidsetPoolName(String value) The name of the pool.voidsetRunningMode(String value) The running mode of the pool.voidDeprecated.this property has been deprecatedvoidsetTimeoutSettings(IResolvable value) The amount of time that a pool session remains active after users disconnect.voidThe amount of time that a pool session remains active after users disconnect.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnWorkspacesPool
protected CfnWorkspacesPool(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkspacesPool
protected CfnWorkspacesPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkspacesPool
@Stability(Stable) public CfnWorkspacesPool(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkspacesPoolProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromPoolId
@Stability(Stable) @NotNull public static IWorkspacesPoolRef fromPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String poolId) Creates a new IWorkspacesPoolRef from a poolId.- Parameters:
scope- This parameter is required.id- This parameter is required.poolId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The time the pool was created. -
getAttrPoolArn
The Amazon Resource Name (ARN) for the pool. -
getAttrPoolId
The identifier of the pool. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getWorkspacesPoolRef
A reference to a WorkspacesPool resource.- Specified by:
getWorkspacesPoolRefin interfaceIWorkspacesPoolRef
-
getBundleId
The identifier of the bundle used by the pool. -
setBundleId
The identifier of the bundle used by the pool. -
getCapacity
Describes the user capacity for the pool.Returns union: either
IResolvableorCfnWorkspacesPool.CapacityProperty -
setCapacity
Describes the user capacity for the pool. -
setCapacity
Describes the user capacity for the pool. -
getDirectoryId
The identifier of the directory used by the pool. -
setDirectoryId
The identifier of the directory used by the pool. -
getPoolName
The name of the pool. -
setPoolName
The name of the pool. -
getApplicationSettings
The persistent application settings for users of the pool.Returns union: either
IResolvableorCfnWorkspacesPool.ApplicationSettingsProperty -
setApplicationSettings
The persistent application settings for users of the pool. -
setApplicationSettings
@Stability(Stable) public void setApplicationSettings(@Nullable CfnWorkspacesPool.ApplicationSettingsProperty value) The persistent application settings for users of the pool. -
getDescription
The description of the pool. -
setDescription
The description of the pool. -
getRunningMode
The running mode of the pool. -
setRunningMode
The running mode of the pool. -
getTags
Deprecated.this property has been deprecated -
setTags
Deprecated.this property has been deprecated -
getTimeoutSettings
The amount of time that a pool session remains active after users disconnect.Returns union: either
IResolvableorCfnWorkspacesPool.TimeoutSettingsProperty -
setTimeoutSettings
The amount of time that a pool session remains active after users disconnect. -
setTimeoutSettings
@Stability(Stable) public void setTimeoutSettings(@Nullable CfnWorkspacesPool.TimeoutSettingsProperty value) The amount of time that a pool session remains active after users disconnect.
-