Skip to content
v2.278.0

UserContextProperty Struct ​

Information about the user who created or modified a SageMaker resource.

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 userContextProperty: sagemaker.CfnModelCard.UserContextProperty = {
  domainId: 'domainId',
  userProfileArn: 'userProfileArn',
  userProfileName: 'userProfileName',
};
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

user_context_property = sagemaker.CfnModelCard.UserContextProperty(
    domain_id="domainId",
    user_profile_arn="userProfileArn",
    user_profile_name="userProfileName"
)
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.*;

UserContextProperty userContextProperty = UserContextProperty.builder()
        .domainId("domainId")
        .userProfileArn("userProfileArn")
        .userProfileName("userProfileName")
        .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 userContextProperty = new UserContextProperty {
    DomainId = "domainId",
    UserProfileArn = "userProfileArn",
    UserProfileName = "userProfileName"
};
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"

userContextProperty := &UserContextProperty{
	DomainId: jsii.String("domainId"),
	UserProfileArn: jsii.String("userProfileArn"),
	UserProfileName: jsii.String("userProfileName"),
}

Properties ​

domainIdoptionalstringdomain_idoptionalstrdomainIdoptionalStringDomainIdoptionalstringDomainIdoptional*string = "UnsetValue" #
The domain associated with the user.
userProfileArnoptionalstringuser_profile_arnoptionalstruserProfileArnoptionalStringUserProfileArnoptionalstringUserProfileArnoptional*string = "UnsetValue" #
The Amazon Resource Name (ARN) of the user's profile.
userProfileNameoptionalstringuser_profile_nameoptionalstruserProfileNameoptionalStringUserProfileNameoptionalstringUserProfileNameoptional*string = "UnsetValue" #
The name of the user's profile.