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

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.

    Using getContext

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getContext(args: GetContextArgs, opts?: InvokeOptions): Promise<GetContextResult>
    function getContextOutput(args: GetContextOutputArgs, opts?: InvokeOutputOptions): Output<GetContextResult>
    def get_context(arn: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetContextResult
    def get_context_output(arn: pulumi.Input[Optional[str]] = None,
                    opts: Optional[InvokeOutputOptions] = None) -> Output[GetContextResult]
    func LookupContext(ctx *Context, args *LookupContextArgs, opts ...InvokeOption) (*LookupContextResult, error)
    func LookupContextOutput(ctx *Context, args *LookupContextOutputArgs, opts ...InvokeOption) LookupContextResultOutput

    > Note: This function is named LookupContext in the Go SDK.

    public static class GetContext 
    {
        public static Task<GetContextResult> InvokeAsync(GetContextArgs args, InvokeOptions? opts = null)
        public static Output<GetContextResult> Invoke(GetContextInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetContextResult> Invoke(GetContextInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetContextResult> getContext(GetContextArgs args, InvokeOptions options)
    public static Output<GetContextResult> getContext(GetContextArgs args, InvokeOptions options)
    public static Output<GetContextResult> getContext(GetContextArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:sagemaker:getContext
      arguments:
        # arguments dictionary
    data "aws-native_sagemaker_get_context" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the context.
    Arn string
    The Amazon Resource Name (ARN) of the context.
    arn string
    The Amazon Resource Name (ARN) of the context.
    arn String
    The Amazon Resource Name (ARN) of the context.
    arn string
    The Amazon Resource Name (ARN) of the context.
    arn str
    The Amazon Resource Name (ARN) of the context.
    arn String
    The Amazon Resource Name (ARN) of the context.

    getContext Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the context.
    CreationTime string
    When the context was created.
    Description string
    The description of the context.
    LastModifiedTime string
    When the context was last modified.
    Properties Dictionary<string, string>
    A list of properties to add to the context.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    A list of tags to apply to the context.
    Arn string
    The Amazon Resource Name (ARN) of the context.
    CreationTime string
    When the context was created.
    Description string
    The description of the context.
    LastModifiedTime string
    When the context was last modified.
    Properties map[string]string
    A list of properties to add to the context.
    Tags Tag
    A list of tags to apply to the context.
    arn string
    The Amazon Resource Name (ARN) of the context.
    creation_time string
    When the context was created.
    description string
    The description of the context.
    last_modified_time string
    When the context was last modified.
    properties map(string)
    A list of properties to add to the context.
    tags list(object)
    A list of tags to apply to the context.
    arn String
    The Amazon Resource Name (ARN) of the context.
    creationTime String
    When the context was created.
    description String
    The description of the context.
    lastModifiedTime String
    When the context was last modified.
    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.
    arn string
    The Amazon Resource Name (ARN) of the context.
    creationTime string
    When the context was created.
    description string
    The description of the context.
    lastModifiedTime string
    When the context was last modified.
    properties {[key: string]: string}
    A list of properties to add to the context.
    tags Tag[]
    A list of tags to apply to the context.
    arn str
    The Amazon Resource Name (ARN) of the context.
    creation_time str
    When the context was created.
    description str
    The description of the context.
    last_modified_time str
    When the context was last modified.
    properties Mapping[str, str]
    A list of properties to add to the context.
    tags Sequence[root_Tag]
    A list of tags to apply to the context.
    arn String
    The Amazon Resource Name (ARN) of the context.
    creationTime String
    When the context was created.
    description String
    The description of the context.
    lastModifiedTime String
    When the context was last modified.
    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.

    Supporting Types

    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 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