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

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

Viewing docs for AWS Cloud Control v1.62.0
published on Monday, Apr 20, 2026 by Pulumi
aws-native logo

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

Viewing docs for AWS Cloud Control v1.62.0
published on Monday, Apr 20, 2026 by Pulumi

    Resource type definition for AWS::SageMaker::Model

    Using getModel

    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 getModel(args: GetModelArgs, opts?: InvokeOptions): Promise<GetModelResult>
    function getModelOutput(args: GetModelOutputArgs, opts?: InvokeOptions): Output<GetModelResult>
    def get_model(model_arn: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetModelResult
    def get_model_output(model_arn: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetModelResult]
    func LookupModel(ctx *Context, args *LookupModelArgs, opts ...InvokeOption) (*LookupModelResult, error)
    func LookupModelOutput(ctx *Context, args *LookupModelOutputArgs, opts ...InvokeOption) LookupModelResultOutput

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

    public static class GetModel 
    {
        public static Task<GetModelResult> InvokeAsync(GetModelArgs args, InvokeOptions? opts = null)
        public static Output<GetModelResult> Invoke(GetModelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
    public static Output<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:sagemaker:getModel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ModelArn string
    The Amazon Resource Name (ARN) of the model.
    ModelArn string
    The Amazon Resource Name (ARN) of the model.
    modelArn String
    The Amazon Resource Name (ARN) of the model.
    modelArn string
    The Amazon Resource Name (ARN) of the model.
    model_arn str
    The Amazon Resource Name (ARN) of the model.
    modelArn String
    The Amazon Resource Name (ARN) of the model.

    getModel Result

    The following output properties are available:

    ModelArn string
    The Amazon Resource Name (ARN) of the model.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
    ModelArn string
    The Amazon Resource Name (ARN) of the model.
    Tags Tag
    An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
    modelArn String
    The Amazon Resource Name (ARN) of the model.
    tags List<Tag>
    An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
    modelArn string
    The Amazon Resource Name (ARN) of the model.
    tags Tag[]
    An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
    model_arn str
    The Amazon Resource Name (ARN) of the model.
    tags Sequence[root_Tag]
    An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.
    modelArn String
    The Amazon Resource Name (ARN) of the model.
    tags List<Property Map>
    An array of key-value pairs. You can use tags to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging AWS Resources.

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

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

    Viewing docs for AWS Cloud Control v1.62.0
    published on Monday, Apr 20, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.