1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. sagemaker
  6. Context

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.75.0
published on Monday, Aug 17, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.75.0
published on Monday, Aug 17, 2026 by Pulumi

    Resource type definition for AWS::SageMaker::Context. A context is a lineage tracking entity that represents a logical grouping of other tracking or experiment entities.

    Create Context Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Context(name: string, args: ContextArgs, opts?: CustomResourceOptions);
    @overload
    def Context(resource_name: str,
                args: ContextArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Context(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                context_type: Optional[str] = None,
                source: Optional[SourcePropertiesArgs] = None,
                context_name: Optional[str] = None,
                description: Optional[str] = None,
                properties: Optional[Mapping[str, str]] = None,
                tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewContext(ctx *Context, name string, args ContextArgs, opts ...ResourceOption) (*Context, error)
    public Context(string name, ContextArgs args, CustomResourceOptions? opts = null)
    public Context(String name, ContextArgs args)
    public Context(String name, ContextArgs args, CustomResourceOptions options)
    
    type: aws-native:sagemaker:Context
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_sagemaker_context" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ContextArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ContextArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ContextArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContextArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContextArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Context Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Context resource accepts the following input properties:

    ContextType string
    The context type.
    Source Pulumi.AwsNative.SageMaker.Inputs.SourceProperties
    The source type, ID, and URI.
    ContextName string
    The name of the context. Must be unique to your account in an AWS Region.
    Description string
    The description of the context.
    Properties Dictionary<string, string>
    A list of properties to add to the context.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    A list of tags to apply to the context.
    ContextType string
    The context type.
    Source SourcePropertiesArgs
    The source type, ID, and URI.
    ContextName string
    The name of the context. Must be unique to your account in an AWS Region.
    Description string
    The description of the context.
    Properties map[string]string
    A list of properties to add to the context.
    Tags TagArgs
    A list of tags to apply to the context.
    context_type string
    The context type.
    source object
    The source type, ID, and URI.
    context_name string
    The name of the context. Must be unique to your account in an AWS Region.
    description string
    The description of the context.
    properties map(string)
    A list of properties to add to the context.
    tags list(object)
    A list of tags to apply to the context.
    contextType String
    The context type.
    source SourceProperties
    The source type, ID, and URI.
    contextName String
    The name of the context. Must be unique to your account in an AWS Region.
    description String
    The description of the context.
    properties Map<String,String>
    A list of properties to add to the context.
    tags List<Tag>
    A list of tags to apply to the context.
    contextType string
    The context type.
    source SourceProperties
    The source type, ID, and URI.
    contextName string
    The name of the context. Must be unique to your account in an AWS Region.
    description string
    The description of the context.
    properties {[key: string]: string}
    A list of properties to add to the context.
    tags Tag[]
    A list of tags to apply to the context.
    context_type str
    The context type.
    source SourcePropertiesArgs
    The source type, ID, and URI.
    context_name str
    The name of the context. Must be unique to your account in an AWS Region.
    description str
    The description of the context.
    properties Mapping[str, str]
    A list of properties to add to the context.
    tags Sequence[TagArgs]
    A list of tags to apply to the context.
    contextType String
    The context type.
    source Property Map
    The source type, ID, and URI.
    contextName String
    The name of the context. Must be unique to your account in an AWS Region.
    description String
    The description of the context.
    properties Map<String>
    A list of properties to add to the context.
    tags List<Property Map>
    A list of tags to apply to the context.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Context resource produces the following output properties:

    Arn string
    The Amazon Resource Name (ARN) of the context.
    CreationTime string
    When the context was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    When the context was last modified.
    Arn string
    The Amazon Resource Name (ARN) of the context.
    CreationTime string
    When the context was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    When the context was last modified.
    arn string
    The Amazon Resource Name (ARN) of the context.
    creation_time string
    When the context was created.
    id string
    The provider-assigned unique ID for this managed resource.
    last_modified_time string
    When the context was last modified.
    arn String
    The Amazon Resource Name (ARN) of the context.
    creationTime String
    When the context was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    When the context was last modified.
    arn string
    The Amazon Resource Name (ARN) of the context.
    creationTime string
    When the context was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime string
    When the context was last modified.
    arn str
    The Amazon Resource Name (ARN) of the context.
    creation_time str
    When the context was created.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time str
    When the context was last modified.
    arn String
    The Amazon Resource Name (ARN) of the context.
    creationTime String
    When the context was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    When the context was last modified.

    Supporting Types

    SourceProperties, SourcePropertiesArgs

    The source type, ID, and URI.
    SourceUri string
    The URI of the source.
    SourceId string
    The ID of the source.
    SourceType string
    The type of the source.
    SourceUri string
    The URI of the source.
    SourceId string
    The ID of the source.
    SourceType string
    The type of the source.
    source_uri string
    The URI of the source.
    source_id string
    The ID of the source.
    source_type string
    The type of the source.
    sourceUri String
    The URI of the source.
    sourceId String
    The ID of the source.
    sourceType String
    The type of the source.
    sourceUri string
    The URI of the source.
    sourceId string
    The ID of the source.
    sourceType string
    The type of the source.
    source_uri str
    The URI of the source.
    source_id str
    The ID of the source.
    source_type str
    The type of the source.
    sourceUri String
    The URI of the source.
    sourceId String
    The ID of the source.
    sourceType String
    The type of the source.

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.75.0
    published on Monday, Aug 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial