Endpoint
Provides a SageMaker AI Endpoint resource.
Example Usage
Basic usage:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const e = new aws.sagemaker.Endpoint("e", {
name: "my-endpoint",
endpointConfigName: ec.name,
tags: {
Name: "foo",
},
});
Content copied to clipboard
import pulumi
import pulumi_aws as aws
e = aws.sagemaker.Endpoint("e",
name="my-endpoint",
endpoint_config_name=ec["name"],
tags={
"Name": "foo",
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var e = new Aws.Sagemaker.Endpoint("e", new()
{
Name = "my-endpoint",
EndpointConfigName = ec.Name,
Tags =
{
{ "Name", "foo" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewEndpoint(ctx, "e", &sagemaker.EndpointArgs{
Name: pulumi.String("my-endpoint"),
EndpointConfigName: pulumi.Any(ec.Name),
Tags: pulumi.StringMap{
"Name": pulumi.String("foo"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.Endpoint;
import com.pulumi.aws.sagemaker.EndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var e = new Endpoint("e", EndpointArgs.builder()
.name("my-endpoint")
.endpointConfigName(ec.name())
.tags(Map.of("Name", "foo"))
.build());
}
}
Content copied to clipboard
resources:
e:
type: aws:sagemaker:Endpoint
properties:
name: my-endpoint
endpointConfigName: ${ec.name}
tags:
Name: foo
Content copied to clipboard
Import
Using pulumi import
, import endpoints using the name
. For example:
$ pulumi import aws:sagemaker/endpoint:Endpoint test_endpoint my-endpoint
Content copied to clipboard
Properties
Link copied to clipboard
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations. See Deployment Config.
Link copied to clipboard
The name of the endpoint configuration to use.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard