java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IHubRef, ITaggableV2, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-07-22T17:37:34.168Z") @Stability(Stable) public class CfnHub extends CfnResource implements IInspectable, IHubRef, ITaggableV2
Resource type definition for AWS::SageMaker::Hub.

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.sagemaker.*;
 CfnHub cfnHub = CfnHub.Builder.create(this, "MyCfnHub")
         .hubDescription("hubDescription")
         .hubName("hubName")
         // the properties below are optional
         .hubDisplayName("hubDisplayName")
         .hubSearchKeywords(List.of("hubSearchKeywords"))
         .s3StorageConfig(S3StorageConfigProperty.builder()
                 .s3OutputPath("s3OutputPath")
                 .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

    • CfnHub

      protected CfnHub(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnHub

      protected CfnHub(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnHub

      @Stability(Stable) public CfnHub(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnHubProps props)
      Create a new AWS::SageMaker::Hub.

      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

    • arnForHub

      @Stability(Stable) @NotNull public static String arnForHub(@NotNull IHubRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnHub

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

      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.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The date and time that the hub was created.
    • getAttrHubArn

      @Stability(Stable) @NotNull public String getAttrHubArn()
      The Amazon Resource Name (ARN) of the hub.
    • getAttrHubStatus

      @Stability(Stable) @NotNull public String getAttrHubStatus()
      The status of the hub.
    • getAttrLastModifiedTime

      @Stability(Stable) @NotNull public String getAttrLastModifiedTime()
      The date and time that the hub was last modified.
    • 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
    • getHubRef

      @Stability(Stable) @NotNull public HubReference getHubRef()
      A reference to a Hub resource.
      Specified by:
      getHubRef in interface IHubRef
    • getHubDescription

      @Stability(Stable) @NotNull public String getHubDescription()
      A description of the hub.
    • setHubDescription

      @Stability(Stable) public void setHubDescription(@NotNull String value)
      A description of the hub.
    • getHubName

      @Stability(Stable) @NotNull public String getHubName()
      The name of the hub.
    • setHubName

      @Stability(Stable) public void setHubName(@NotNull String value)
      The name of the hub.
    • getHubDisplayName

      @Stability(Stable) @Nullable public String getHubDisplayName()
      The display name of the hub.
    • setHubDisplayName

      @Stability(Stable) public void setHubDisplayName(@Nullable String value)
      The display name of the hub.
    • getHubSearchKeywords

      @Stability(Stable) @Nullable public List<String> getHubSearchKeywords()
      The searchable keywords for the hub.
    • setHubSearchKeywords

      @Stability(Stable) public void setHubSearchKeywords(@Nullable List<String> value)
      The searchable keywords for the hub.
    • getS3StorageConfig

      @Stability(Stable) @Nullable public Object getS3StorageConfig()
      The Amazon S3 storage configuration for the hub.

      Returns union: either IResolvable or CfnHub.S3StorageConfigProperty

    • setS3StorageConfig

      @Stability(Stable) public void setS3StorageConfig(@Nullable IResolvable value)
      The Amazon S3 storage configuration for the hub.
    • setS3StorageConfig

      @Stability(Stable) public void setS3StorageConfig(@Nullable CfnHub.S3StorageConfigProperty value)
      The Amazon S3 storage configuration for the hub.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      Tags to associate with the hub.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      Tags to associate with the hub.