Class CfnEnvironment
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.workspacesthinclient.CfnEnvironment
- All Implemented Interfaces:
IInspectable,ITaggableV2,IEnvironmentRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.082Z")
@Stability(Stable)
public class CfnEnvironment
extends CfnResource
implements IInspectable, IEnvironmentRef, ITaggableV2
Describes an environment.
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.workspacesthinclient.*;
CfnEnvironment cfnEnvironment = CfnEnvironment.Builder.create(this, "MyCfnEnvironment")
.desktopArn("desktopArn")
// the properties below are optional
.desiredSoftwareSetId("desiredSoftwareSetId")
.desktopEndpoint("desktopEndpoint")
.deviceCreationTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.kmsKeyArn("kmsKeyArn")
.maintenanceWindow(MaintenanceWindowProperty.builder()
.type("type")
// the properties below are optional
.applyTimeOf("applyTimeOf")
.daysOfTheWeek(List.of("daysOfTheWeek"))
.endTimeHour(123)
.endTimeMinute(123)
.startTimeHour(123)
.startTimeMinute(123)
.build())
.name("name")
.softwareSetUpdateMode("softwareSetUpdateMode")
.softwareSetUpdateSchedule("softwareSetUpdateSchedule")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEnvironment.static interfaceDescribes the maintenance window for a thin client device.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.services.workspacesthinclient.IEnvironmentRef
IEnvironmentRef.Jsii$Default, IEnvironmentRef.Jsii$ProxyNested 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$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) CfnEnvironment(software.constructs.Construct scope, String id, CfnEnvironmentProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IEnvironmentReffromEnvironmentArn(software.constructs.Construct scope, String id, String arn) Creates a new IEnvironmentRef from an ARN.static IEnvironmentReffromEnvironmentId(software.constructs.Construct scope, String id, String environmentId) Creates a new IEnvironmentRef from a environmentId.The activation code to register a device to the environment.The Amazon Resource Name (ARN) of the environment.The timestamp of when the environment was created.The type of streaming desktop for the environment.Unique identifier of the environment.The ID of the software set that is pending to be installed.The version of the software set that is pending to be installed.The number of devices registered to the environment.Describes if the software currently installed on all devices in the environment is a supported version.The timestamp of when the device was updated.Tag Manager which manages the tags for this resource.The ID of the software set to apply.The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Secure Browser, or AppStream 2.0.The URL for the identity provider login (only for environments that use AppStream 2.0).An array of key-value pairs to apply to the newly created devices for this environment.A reference to a Environment resource.The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment.A specification for a time window to apply software updates.getName()The name of the environment.An option to define which software updates to apply.An option to define if software updates should be applied within a maintenance window.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDesiredSoftwareSetId(String value) The ID of the software set to apply.voidsetDesktopArn(String value) The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Secure Browser, or AppStream 2.0.voidsetDesktopEndpoint(String value) The URL for the identity provider login (only for environments that use AppStream 2.0).voidsetDeviceCreationTags(List<Object> value) An array of key-value pairs to apply to the newly created devices for this environment.voidsetDeviceCreationTags(IResolvable value) An array of key-value pairs to apply to the newly created devices for this environment.voidsetKmsKeyArn(String value) The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment.voidsetMaintenanceWindow(IResolvable value) A specification for a time window to apply software updates.voidA specification for a time window to apply software updates.voidThe name of the environment.voidsetSoftwareSetUpdateMode(String value) An option to define which software updates to apply.voidAn option to define if software updates should be applied within a maintenance window.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEnvironment
protected CfnEnvironment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEnvironment
@Stability(Stable) public CfnEnvironment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEnvironmentProps 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
-
fromEnvironmentArn
@Stability(Stable) @NotNull public static IEnvironmentRef fromEnvironmentArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IEnvironmentRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromEnvironmentId
@Stability(Stable) @NotNull public static IEnvironmentRef fromEnvironmentId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String environmentId) Creates a new IEnvironmentRef from a environmentId.- Parameters:
scope- This parameter is required.id- This parameter is required.environmentId- 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.
-
getAttrActivationCode
The activation code to register a device to the environment. -
getAttrArn
The Amazon Resource Name (ARN) of the environment. -
getAttrCreatedAt
The timestamp of when the environment was created. -
getAttrDesktopType
The type of streaming desktop for the environment. -
getAttrId
Unique identifier of the environment. -
getAttrPendingSoftwareSetId
The ID of the software set that is pending to be installed. -
getAttrPendingSoftwareSetVersion
The version of the software set that is pending to be installed. -
getAttrRegisteredDevicesCount
The number of devices registered to the environment. -
getAttrSoftwareSetComplianceStatus
Describes if the software currently installed on all devices in the environment is a supported version. -
getAttrUpdatedAt
The timestamp of when the device was updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEnvironmentRef
A reference to a Environment resource.- Specified by:
getEnvironmentRefin interfaceIEnvironmentRef
-
getDesktopArn
The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Secure Browser, or AppStream 2.0. -
setDesktopArn
The Amazon Resource Name (ARN) of the desktop to stream from Amazon WorkSpaces, WorkSpaces Secure Browser, or AppStream 2.0. -
getDesiredSoftwareSetId
The ID of the software set to apply. -
setDesiredSoftwareSetId
The ID of the software set to apply. -
getDesktopEndpoint
The URL for the identity provider login (only for environments that use AppStream 2.0). -
setDesktopEndpoint
The URL for the identity provider login (only for environments that use AppStream 2.0). -
getDeviceCreationTags
An array of key-value pairs to apply to the newly created devices for this environment.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTag> -
setDeviceCreationTags
An array of key-value pairs to apply to the newly created devices for this environment. -
setDeviceCreationTags
An array of key-value pairs to apply to the newly created devices for this environment. -
getKmsKeyArn
The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment. -
setKmsKeyArn
The Amazon Resource Name (ARN) of the AWS Key Management Service key used to encrypt the environment. -
getMaintenanceWindow
A specification for a time window to apply software updates.Returns union: either
IResolvableorCfnEnvironment.MaintenanceWindowProperty -
setMaintenanceWindow
A specification for a time window to apply software updates. -
setMaintenanceWindow
@Stability(Stable) public void setMaintenanceWindow(@Nullable CfnEnvironment.MaintenanceWindowProperty value) A specification for a time window to apply software updates. -
getName
The name of the environment. -
setName
The name of the environment. -
getSoftwareSetUpdateMode
An option to define which software updates to apply. -
setSoftwareSetUpdateMode
An option to define which software updates to apply. -
getSoftwareSetUpdateSchedule
An option to define if software updates should be applied within a maintenance window. -
setSoftwareSetUpdateSchedule
An option to define if software updates should be applied within a maintenance window. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-