# SharingSettingsProperty

Struct · External

Specifies options when sharing an Amazon SageMaker Studio notebook.

These settings are specified as part of `DefaultUserSettings` when the [CreateDomain](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateDomain.html) API is called, and as part of `UserSettings` when the [CreateUserProfile](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateUserProfile.html) API is called.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 sharingSettingsProperty: sagemaker.CfnUserProfile.SharingSettingsProperty = {
  notebookOutputOption: 'notebookOutputOption',
  s3KmsKeyId: 's3KmsKeyId',
  s3OutputPath: 's3OutputPath',
};
```

Python:

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

sharing_settings_property = sagemaker.CfnUserProfile.SharingSettingsProperty(
    notebook_output_option="notebookOutputOption",
    s3_kms_key_id="s3KmsKeyId",
    s3_output_path="s3OutputPath"
)
```

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.*;

SharingSettingsProperty sharingSettingsProperty = SharingSettingsProperty.builder()
        .notebookOutputOption("notebookOutputOption")
        .s3KmsKeyId("s3KmsKeyId")
        .s3OutputPath("s3OutputPath")
        .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 sharingSettingsProperty = new SharingSettingsProperty {
    NotebookOutputOption = "notebookOutputOption",
    S3KmsKeyId = "s3KmsKeyId",
    S3OutputPath = "s3OutputPath"
};
```

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"

sharingSettingsProperty := &SharingSettingsProperty{
	NotebookOutputOption: jsii.String("notebookOutputOption"),
	S3KmsKeyId: jsii.String("s3KmsKeyId"),
	S3OutputPath: jsii.String("s3OutputPath"),
}
```

## Properties

- `notebookOutputOption`: string — Whether to include the notebook cell output when sharing the notebook.

  The default is `Disabled` .

- `s3KmsKeyId`: string — When `NotebookOutputOption` is `Allowed` , the AWS Key Management Service (KMS) encryption key ID used to encrypt the notebook cell output in the Amazon S3 bucket.

- `s3OutputPath`: string — When `NotebookOutputOption` is `Allowed` , the Amazon S3 bucket used to store the shared notebook snapshots.
