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.awsexternalanthropic.CfnWorkspace
All Implemented Interfaces:
IInspectable, IWorkspaceRef, IEnvironmentAware, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-21T17:27:30.631Z") @Stability(Stable) public class CfnWorkspace extends CfnResource implements IInspectable, IWorkspaceRef, ITaggableV2
Resource type definition for AWS::AWSExternalAnthropic::Workspace.

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.awsexternalanthropic.*;
 CfnWorkspace cfnWorkspace = CfnWorkspace.Builder.create(this, "MyCfnWorkspace")
         .name("name")
         // the properties below are optional
         .dataResidency(DataResidencyProperty.builder()
                 .allowedInferenceGeos(List.of("allowedInferenceGeos"))
                 .defaultInferenceGeo("defaultInferenceGeo")
                 .workspaceGeo("workspaceGeo")
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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::AWSExternalAnthropic::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 ARN of the workspace.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the workspace was created.
    • 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
    • getCfnPropertyNames

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

      @Stability(Stable) @NotNull public WorkspaceReference getWorkspaceRef()
      A reference to a Workspace resource.
      Specified by:
      getWorkspaceRef in interface IWorkspaceRef
    • 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.
    • getDataResidency

      @Stability(Stable) @Nullable public Object getDataResidency()
      Data residency configuration for the workspace.

      Returns union: either IResolvable or CfnWorkspace.DataResidencyProperty

    • setDataResidency

      @Stability(Stable) public void setDataResidency(@Nullable IResolvable value)
      Data residency configuration for the workspace.
    • setDataResidency

      @Stability(Stable) public void setDataResidency(@Nullable CfnWorkspace.DataResidencyProperty value)
      Data residency configuration for the workspace.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      An array of key-value pairs to apply to this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.