# CfnHubProps

Struct · External

Properties for defining a `CfnHub`.

Used as props by: [CfnHub](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnHub.html)

- Source: Generated at build time
- Type last changed: v2.262.0 · 22 Jul 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `hubDescription`: string (required) — A description of the hub.

- `hubDisplayName`: string — The display name of the hub.

- `hubName`: string (required) — The name of the hub.

- `hubSearchKeywords`: string[] — The searchable keywords for the hub.

- `s3StorageConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnHub.S3StorageConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnHub.S3StorageConfigProperty.html) — The Amazon S3 storage configuration for the hub.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Tags to associate with the hub.
