Class CfnWorkspace
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.connect.CfnWorkspace
- All Implemented Interfaces:
IInspectable,IWorkspaceRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:07.798Z")
@Stability(Stable)
public class CfnWorkspace
extends CfnResource
implements IInspectable, IWorkspaceRef, ITaggableV2
Contains information about a workspace, which defines the user experience by mapping views to pages.
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.connect.*;
CfnWorkspace cfnWorkspace = CfnWorkspace.Builder.create(this, "MyCfnWorkspace")
.instanceArn("instanceArn")
.name("name")
// the properties below are optional
.associations(List.of("associations"))
.description("description")
.media(List.of(MediaItemProperty.builder()
.type("type")
// the properties below are optional
.source("source")
.build()))
.pages(List.of(WorkspacePageProperty.builder()
.page("page")
.resourceArn("resourceArn")
// the properties below are optional
.inputData("inputData")
.slug("slug")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.theme(WorkspaceThemeProperty.builder()
.dark(WorkspaceThemeConfigProperty.builder()
.palette(WorkspaceThemePaletteProperty.builder()
.canvas(PaletteCanvasProperty.builder()
.activeBackground("activeBackground")
.containerBackground("containerBackground")
.pageBackground("pageBackground")
.build())
.header(PaletteHeaderProperty.builder()
.background("background")
.invertActionsColors(false)
.text("text")
.textHover("textHover")
.build())
.navigation(PaletteNavigationProperty.builder()
.background("background")
.invertActionsColors(false)
.text("text")
.textActive("textActive")
.textBackgroundActive("textBackgroundActive")
.textBackgroundHover("textBackgroundHover")
.textHover("textHover")
.build())
.primary(PalettePrimaryProperty.builder()
.active("active")
.contrastText("contrastText")
.default("default")
.build())
.build())
.typography(WorkspaceThemeTypographyProperty.builder()
.fontFamily(FontFamilyProperty.builder()
.default("default")
.build())
.build())
.build())
.light(WorkspaceThemeConfigProperty.builder()
.palette(WorkspaceThemePaletteProperty.builder()
.canvas(PaletteCanvasProperty.builder()
.activeBackground("activeBackground")
.containerBackground("containerBackground")
.pageBackground("pageBackground")
.build())
.header(PaletteHeaderProperty.builder()
.background("background")
.invertActionsColors(false)
.text("text")
.textHover("textHover")
.build())
.navigation(PaletteNavigationProperty.builder()
.background("background")
.invertActionsColors(false)
.text("text")
.textActive("textActive")
.textBackgroundActive("textBackgroundActive")
.textBackgroundHover("textBackgroundHover")
.textHover("textHover")
.build())
.primary(PalettePrimaryProperty.builder()
.active("active")
.contrastText("contrastText")
.default("default")
.build())
.build())
.typography(WorkspaceThemeTypographyProperty.builder()
.fontFamily(FontFamilyProperty.builder()
.default("default")
.build())
.build())
.build())
.build())
.title("title")
.visibility("visibility")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWorkspace.static interfaceContains font family configuration for workspace themes.static interfaceContains information about a media asset used in a workspace.static interfaceContains color configuration for canvas elements in a workspace theme.static interfaceContains color configuration for header elements in a workspace theme.static interfaceContains color configuration for navigation elements in a workspace theme.static interfaceContains primary color configuration for a workspace theme.static interfaceContains information about a page configuration in a workspace, including the view assigned to the page.static interfaceContains detailed theme configuration for a workspace, including colors, images, and typography.static interfaceContains color palette configuration for different areas of a workspace.static interfaceContains theme configuration for a workspace, supporting both light and dark modes.static interfaceContains typography configuration for a workspace theme.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.interfaces.connect.IWorkspaceRef
IWorkspaceRef.Jsii$Default, IWorkspaceRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkspace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkspace(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkspace(software.constructs.Construct scope, String id, CfnWorkspaceProps props) Create a newAWS::Connect::Workspace. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForWorkspace(IWorkspaceRef resource) The resource ARNs associated with the workspace.The Amazon Resource Name (ARN) of the workspace.The unique identifier of the workspace.Tag Manager which manages the tags for this resource.The description of the workspace.The Amazon Resource Name (ARN) of the instance.getMedia()The media items for the workspace.getName()The name of the workspace.getPages()The pages associated with the workspace.getTags()The tags used to organize, track, or control access for the workspace.getTheme()The theme configuration for the workspace, including colors and styling.getTitle()The title displayed for the workspace.Controls who can access the workspace.A reference to a Workspace resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnWorkspace.renderProperties(Map<String, Object> props) voidsetAssociations(List<String> value) The resource ARNs associated with the workspace.voidsetDescription(String value) The description of the workspace.voidsetInstanceArn(String value) The Amazon Resource Name (ARN) of the instance.voidThe media items for the workspace.voidsetMedia(IResolvable value) The media items for the workspace.voidThe name of the workspace.voidThe pages associated with the workspace.voidsetPages(IResolvable value) The pages associated with the workspace.voidThe tags used to organize, track, or control access for the workspace.voidsetTheme(IResolvable value) The theme configuration for the workspace, including colors and styling.voidThe theme configuration for the workspace, including colors and styling.voidThe title displayed for the workspace.voidsetVisibility(String value) Controls who can access the workspace.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.interfaces.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
-
CfnWorkspace
protected CfnWorkspace(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkspace
protected CfnWorkspace(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkspace
@Stability(Stable) public CfnWorkspace(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnWorkspaceProps props) Create a newAWS::Connect::Workspace.- 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
-
arnForWorkspace
- Parameters:
resource- This parameter is required.
-
isCfnWorkspace
Checks whether the given object is a CfnWorkspace.- Parameters:
x- 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.
-
getAttrArn
The Amazon Resource Name (ARN) of the workspace. -
getAttrId
The unique identifier of the workspace. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getWorkspaceRef
A reference to a Workspace resource.- Specified by:
getWorkspaceRefin interfaceIWorkspaceRef
-
getInstanceArn
The Amazon Resource Name (ARN) of the instance. -
setInstanceArn
The Amazon Resource Name (ARN) of the instance. -
getName
The name of the workspace. -
setName
The name of the workspace. -
getAssociations
The resource ARNs associated with the workspace. -
setAssociations
The resource ARNs associated with the workspace. -
getDescription
The description of the workspace. -
setDescription
The description of the workspace. -
getMedia
The media items for the workspace.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnWorkspace.MediaItemProperty> -
setMedia
The media items for the workspace. -
setMedia
The media items for the workspace. -
getPages
The pages associated with the workspace.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnWorkspace.WorkspacePageProperty> -
setPages
The pages associated with the workspace. -
setPages
The pages associated with the workspace. -
getTags
The tags used to organize, track, or control access for the workspace. -
setTags
The tags used to organize, track, or control access for the workspace. -
getTheme
The theme configuration for the workspace, including colors and styling.Returns union: either
IResolvableorCfnWorkspace.WorkspaceThemeProperty -
setTheme
The theme configuration for the workspace, including colors and styling. -
setTheme
The theme configuration for the workspace, including colors and styling. -
getTitle
The title displayed for the workspace. -
setTitle
The title displayed for the workspace. -
getVisibility
Controls who can access the workspace. -
setVisibility
Controls who can access the workspace.
-