Skip to content
v2.278.0

CfnHubProps ​

Struct External

Properties for defining a CfnHub.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnHubProps: sagemaker.CfnHubProps = {
  hubDescription: 'hubDescription',
  hubName: 'hubName',

  // the properties below are optional
  hubDisplayName: 'hubDisplayName',
  hubSearchKeywords: ['hubSearchKeywords'],
  s3StorageConfig: {
    s3OutputPath: 's3OutputPath',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

cfn_hub_props = sagemaker.CfnHubProps(
    hub_description="hubDescription",
    hub_name="hubName",

    # the properties below are optional
    hub_display_name="hubDisplayName",
    hub_search_keywords=["hubSearchKeywords"],
    s3_storage_config=sagemaker.CfnHub.S3StorageConfigProperty(
        s3_output_path="s3OutputPath"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// 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.*;

CfnHubProps cfnHubProps = CfnHubProps.builder()
        .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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var cfnHubProps = new CfnHubProps {
    HubDescription = "hubDescription",
    HubName = "hubName",

    // the properties below are optional
    HubDisplayName = "hubDisplayName",
    HubSearchKeywords = new [] { "hubSearchKeywords" },
    S3StorageConfig = new S3StorageConfigProperty {
        S3OutputPath = "s3OutputPath"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnHubProps := &CfnHubProps{
	HubDescription: jsii.String("hubDescription"),
	HubName: jsii.String("hubName"),

	// the properties below are optional
	HubDisplayName: jsii.String("hubDisplayName"),
	HubSearchKeywords: []*string{
		jsii.String("hubSearchKeywords"),
	},
	S3StorageConfig: &S3StorageConfigProperty{
		S3OutputPath: jsii.String("s3OutputPath"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

hubDescriptionstringhub_descriptionstrhubDescriptionStringHubDescriptionstringHubDescription*string required #
A description of the hub.
hubDisplayNameoptionalstringhub_display_nameoptionalstrhubDisplayNameoptionalStringHubDisplayNameoptionalstringHubDisplayNameoptional*string #
The display name of the hub.
hubNamestringhub_namestrhubNameStringHubNamestringHubName*string required #
The name of the hub.
hubSearchKeywordsoptionalstring[]hub_search_keywordsoptionaltyping.List[str]hubSearchKeywordsoptionalList<String>HubSearchKeywordsoptionalstring[]HubSearchKeywordsoptional*[]*string #
The searchable keywords for the hub.
s3StorageConfigoptionalIResolvable | CfnHub.S3StorageConfigPropertys3_storage_configoptionaltyping.Union[IResolvable, S3StorageConfigProperty]s3StorageConfigoptionalIResolvableS3StorageConfigoptionalIResolvableS3StorageConfigoptionalinterface{} #
The Amazon S3 storage configuration for the hub.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Tags to associate with the hub.