Class CfnWorkspace

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::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

      @Stability(Stable) @NotNull public static String arnForWorkspace(@NotNull IWorkspaceRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnWorkspace

      @Stability(Stable) @NotNull public static Boolean isCfnWorkspace(@NotNull Object x)
      Checks whether the given object is a CfnWorkspace.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the workspace.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The unique identifier of the workspace.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getWorkspaceRef

      @Stability(Stable) @NotNull public WorkspaceReference getWorkspaceRef()
      A reference to a Workspace resource.
      Specified by:
      getWorkspaceRef in interface IWorkspaceRef
    • getInstanceArn

      @Stability(Stable) @NotNull public String getInstanceArn()
      The Amazon Resource Name (ARN) of the instance.
    • setInstanceArn

      @Stability(Stable) public void setInstanceArn(@NotNull String value)
      The Amazon Resource Name (ARN) of the instance.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the workspace.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the workspace.
    • getAssociations

      @Stability(Stable) @Nullable public List<String> getAssociations()
      The resource ARNs associated with the workspace.
    • setAssociations

      @Stability(Stable) public void setAssociations(@Nullable List<String> value)
      The resource ARNs associated with the workspace.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the workspace.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the workspace.
    • getMedia

      @Stability(Stable) @Nullable public Object getMedia()
      The media items for the workspace.

      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnWorkspace.MediaItemProperty>

    • setMedia

      @Stability(Stable) public void setMedia(@Nullable IResolvable value)
      The media items for the workspace.
    • setMedia

      @Stability(Stable) public void setMedia(@Nullable List<Object> value)
      The media items for the workspace.
    • getPages

      @Stability(Stable) @Nullable public Object getPages()
      The pages associated with the workspace.

      Returns union: either IResolvable or Listinvalid input: '<'either IResolvable or CfnWorkspace.WorkspacePageProperty>

    • setPages

      @Stability(Stable) public void setPages(@Nullable IResolvable value)
      The pages associated with the workspace.
    • setPages

      @Stability(Stable) public void setPages(@Nullable List<Object> value)
      The pages associated with the workspace.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags used to organize, track, or control access for the workspace.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for the workspace.
    • getTheme

      @Stability(Stable) @Nullable public Object getTheme()
      The theme configuration for the workspace, including colors and styling.

      Returns union: either IResolvable or CfnWorkspace.WorkspaceThemeProperty

    • setTheme

      @Stability(Stable) public void setTheme(@Nullable IResolvable value)
      The theme configuration for the workspace, including colors and styling.
    • setTheme

      @Stability(Stable) public void setTheme(@Nullable CfnWorkspace.WorkspaceThemeProperty value)
      The theme configuration for the workspace, including colors and styling.
    • getTitle

      @Stability(Stable) @Nullable public String getTitle()
      The title displayed for the workspace.
    • setTitle

      @Stability(Stable) public void setTitle(@Nullable String value)
      The title displayed for the workspace.
    • getVisibility

      @Stability(Stable) @Nullable public String getVisibility()
      Controls who can access the workspace.
    • setVisibility

      @Stability(Stable) public void setVisibility(@Nullable String value)
      Controls who can access the workspace.