Skip to content
v2.273.0

CfnContextProps Struct ​

Properties for defining a CfnContext.

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 cfnContextProps: sagemaker.CfnContextProps = {
  contextName: 'contextName',
  contextType: 'contextType',
  source: {
    sourceUri: 'sourceUri',

    // the properties below are optional
    sourceId: 'sourceId',
    sourceType: 'sourceType',
  },

  // the properties below are optional
  description: 'description',
  properties: {
    propertiesKey: 'properties',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

contextNamestringcontext_namestrcontextNameStringContextNamestringContextName*stringrequired#
The name of the context.

Must be unique to your account in an AWS Region.

contextTypestringcontext_typestrcontextTypeStringContextTypestringContextType*stringrequired#
The context type.
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string#
The description of the context.
propertiesIResolvable | { [key: string]: string }propertiestyping.Union[IResolvable, typing.Mapping[str, str]]propertiesIResolvablePropertiesIResolvablePropertiesinterface{}#
A list of properties to add to the context.
sourceIResolvable | CfnContext.SourcePropertysourcetyping.Union[IResolvable, SourceProperty]sourceIResolvableSourceIResolvableSourceinterface{}required#
The source type, ID, and URI.
A list of tags to apply to the context.

Used as props by ​