DomainSettingsProperty Struct
A collection of settings that apply to the SageMaker Domain .
These settings are specified through the CreateDomain API call.
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 domainSettingsProperty: sagemaker.CfnDomain.DomainSettingsProperty = {
dockerSettings: {
enableDockerAccess: 'enableDockerAccess',
vpcOnlyTrustedAccounts: ['vpcOnlyTrustedAccounts'],
},
executionRoleIdentityConfig: 'executionRoleIdentityConfig',
ipAddressType: 'ipAddressType',
rStudioServerProDomainSettings: {
domainExecutionRoleArn: 'domainExecutionRoleArn',
// the properties below are optional
defaultResourceSpec: {
instanceType: 'instanceType',
lifecycleConfigArn: 'lifecycleConfigArn',
sageMakerImageArn: 'sageMakerImageArn',
sageMakerImageVersionArn: 'sageMakerImageVersionArn',
trainingPlanArn: 'trainingPlanArn',
},
rStudioConnectUrl: 'rStudioConnectUrl',
rStudioPackageManagerUrl: 'rStudioPackageManagerUrl',
},
securityGroupIds: ['securityGroupIds'],
unifiedStudioSettings: {
domainAccountId: 'domainAccountId',
domainId: 'domainId',
domainRegion: 'domainRegion',
environmentId: 'environmentId',
projectId: 'projectId',
projectS3Path: 'projectS3Path',
studioWebPortalAccess: 'studioWebPortalAccess',
},
};
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
domain_settings_property = sagemaker.CfnDomain.DomainSettingsProperty(
docker_settings=sagemaker.CfnDomain.DockerSettingsProperty(
enable_docker_access="enableDockerAccess",
vpc_only_trusted_accounts=["vpcOnlyTrustedAccounts"]
),
execution_role_identity_config="executionRoleIdentityConfig",
ip_address_type="ipAddressType",
r_studio_server_pro_domain_settings=sagemaker.CfnDomain.RStudioServerProDomainSettingsProperty(
domain_execution_role_arn="domainExecutionRoleArn",
# the properties below are optional
default_resource_spec=sagemaker.CfnDomain.ResourceSpecProperty(
instance_type="instanceType",
lifecycle_config_arn="lifecycleConfigArn",
sage_maker_image_arn="sageMakerImageArn",
sage_maker_image_version_arn="sageMakerImageVersionArn",
training_plan_arn="trainingPlanArn"
),
r_studio_connect_url="rStudioConnectUrl",
r_studio_package_manager_url="rStudioPackageManagerUrl"
),
security_group_ids=["securityGroupIds"],
unified_studio_settings=sagemaker.CfnDomain.UnifiedStudioSettingsProperty(
domain_account_id="domainAccountId",
domain_id="domainId",
domain_region="domainRegion",
environment_id="environmentId",
project_id="projectId",
project_s3_path="projectS3Path",
studio_web_portal_access="studioWebPortalAccess"
)
)
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.*;
DomainSettingsProperty domainSettingsProperty = DomainSettingsProperty.builder()
.dockerSettings(DockerSettingsProperty.builder()
.enableDockerAccess("enableDockerAccess")
.vpcOnlyTrustedAccounts(List.of("vpcOnlyTrustedAccounts"))
.build())
.executionRoleIdentityConfig("executionRoleIdentityConfig")
.ipAddressType("ipAddressType")
.rStudioServerProDomainSettings(RStudioServerProDomainSettingsProperty.builder()
.domainExecutionRoleArn("domainExecutionRoleArn")
// the properties below are optional
.defaultResourceSpec(ResourceSpecProperty.builder()
.instanceType("instanceType")
.lifecycleConfigArn("lifecycleConfigArn")
.sageMakerImageArn("sageMakerImageArn")
.sageMakerImageVersionArn("sageMakerImageVersionArn")
.trainingPlanArn("trainingPlanArn")
.build())
.rStudioConnectUrl("rStudioConnectUrl")
.rStudioPackageManagerUrl("rStudioPackageManagerUrl")
.build())
.securityGroupIds(List.of("securityGroupIds"))
.unifiedStudioSettings(UnifiedStudioSettingsProperty.builder()
.domainAccountId("domainAccountId")
.domainId("domainId")
.domainRegion("domainRegion")
.environmentId("environmentId")
.projectId("projectId")
.projectS3Path("projectS3Path")
.studioWebPortalAccess("studioWebPortalAccess")
.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 domainSettingsProperty = new DomainSettingsProperty {
DockerSettings = new DockerSettingsProperty {
EnableDockerAccess = "enableDockerAccess",
VpcOnlyTrustedAccounts = new [] { "vpcOnlyTrustedAccounts" }
},
ExecutionRoleIdentityConfig = "executionRoleIdentityConfig",
IpAddressType = "ipAddressType",
RStudioServerProDomainSettings = new RStudioServerProDomainSettingsProperty {
DomainExecutionRoleArn = "domainExecutionRoleArn",
// the properties below are optional
DefaultResourceSpec = new ResourceSpecProperty {
InstanceType = "instanceType",
LifecycleConfigArn = "lifecycleConfigArn",
SageMakerImageArn = "sageMakerImageArn",
SageMakerImageVersionArn = "sageMakerImageVersionArn",
TrainingPlanArn = "trainingPlanArn"
},
RStudioConnectUrl = "rStudioConnectUrl",
RStudioPackageManagerUrl = "rStudioPackageManagerUrl"
},
SecurityGroupIds = new [] { "securityGroupIds" },
UnifiedStudioSettings = new UnifiedStudioSettingsProperty {
DomainAccountId = "domainAccountId",
DomainId = "domainId",
DomainRegion = "domainRegion",
EnvironmentId = "environmentId",
ProjectId = "projectId",
ProjectS3Path = "projectS3Path",
StudioWebPortalAccess = "studioWebPortalAccess"
}
};
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"
domainSettingsProperty := &DomainSettingsProperty{
DockerSettings: &DockerSettingsProperty{
EnableDockerAccess: jsii.String("enableDockerAccess"),
VpcOnlyTrustedAccounts: []*string{
jsii.String("vpcOnlyTrustedAccounts"),
},
},
ExecutionRoleIdentityConfig: jsii.String("executionRoleIdentityConfig"),
IpAddressType: jsii.String("ipAddressType"),
RStudioServerProDomainSettings: &RStudioServerProDomainSettingsProperty{
DomainExecutionRoleArn: jsii.String("domainExecutionRoleArn"),
// the properties below are optional
DefaultResourceSpec: &ResourceSpecProperty{
InstanceType: jsii.String("instanceType"),
LifecycleConfigArn: jsii.String("lifecycleConfigArn"),
SageMakerImageArn: jsii.String("sageMakerImageArn"),
SageMakerImageVersionArn: jsii.String("sageMakerImageVersionArn"),
TrainingPlanArn: jsii.String("trainingPlanArn"),
},
RStudioConnectUrl: jsii.String("rStudioConnectUrl"),
RStudioPackageManagerUrl: jsii.String("rStudioPackageManagerUrl"),
},
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
UnifiedStudioSettings: &UnifiedStudioSettingsProperty{
DomainAccountId: jsii.String("domainAccountId"),
DomainId: jsii.String("domainId"),
DomainRegion: jsii.String("domainRegion"),
EnvironmentId: jsii.String("environmentId"),
ProjectId: jsii.String("projectId"),
ProjectS3Path: jsii.String("projectS3Path"),
StudioWebPortalAccess: jsii.String("studioWebPortalAccess"),
},
}
Properties
dockerSettingsoptionalIResolvable | CfnDomain.DockerSettingsPropertydocker_settingsoptionaltyping.Union[IResolvable, DockerSettingsProperty]dockerSettingsoptionalIResolvableDockerSettingsoptionalIResolvableDockerSettingsoptionalinterface{}#A collection of settings that configure the domain's Docker interaction.
executionRoleIdentityConfigoptionalstringexecution_role_identity_configoptionalstrexecutionRoleIdentityConfigoptionalStringExecutionRoleIdentityConfigoptionalstringExecutionRoleIdentityConfigoptional*string#The configuration for attaching a SageMaker AI user profile name to the execution role as a [sts:SourceIdentity key](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html) .
ipAddressTypeoptionalstringip_address_typeoptionalstripAddressTypeoptionalStringIpAddressTypeoptionalstringIpAddressTypeoptional*string#The IP address type for the domain.
Specify ipv4 for IPv4-only connectivity or dualstack for both IPv4 and IPv6 connectivity. When you specify dualstack , the subnet must support IPv6 CIDR blocks. If not specified, defaults to ipv4 .
rStudioServerProDomainSettingsoptionalIResolvable | CfnDomain.RStudioServerProDomainSettingsPropertyr_studio_server_pro_domain_settingsoptionaltyping.Union[IResolvable, RStudioServerProDomainSettingsProperty]rStudioServerProDomainSettingsoptionalIResolvableRStudioServerProDomainSettingsoptionalIResolvableRStudioServerProDomainSettingsoptionalinterface{}#A collection of settings that configure the `RStudioServerPro` Domain-level app.
securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string#The security groups for the Amazon Virtual Private Cloud that the `Domain` uses for communication between Domain-level apps and user apps.
unifiedStudioSettingsoptionalIResolvable | CfnDomain.UnifiedStudioSettingsPropertyunified_studio_settingsoptionaltyping.Union[IResolvable, UnifiedStudioSettingsProperty]unifiedStudioSettingsoptionalIResolvableUnifiedStudioSettingsoptionalIResolvableUnifiedStudioSettingsoptionalinterface{}#The settings that apply to an SageMaker AI domain when you use it in Amazon SageMaker Unified Studio.