Endpoint
Provides a SageMaker Endpoint resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var endpoint = new Aws.Sagemaker.Endpoint("endpoint", new Aws.Sagemaker.EndpointArgs
{
EndpointConfigName = aws_sagemaker_endpoint_configuration.Ec.Name,
Tags =
{
{ "Name", "foo" },
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/sagemaker"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sagemaker.NewEndpoint(ctx, "endpoint", &sagemaker.EndpointArgs{
EndpointConfigName: pulumi.String(aws_sagemaker_endpoint_configuration.Ec.Name),
Tags: pulumi.StringMap{
"Name": pulumi.String("foo"),
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
endpoint = aws.sagemaker.Endpoint("endpoint",
endpoint_config_name=aws_sagemaker_endpoint_configuration["ec"]["name"],
tags={
"Name": "foo",
})import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const endpoint = new aws.sagemaker.Endpoint("e", {
endpointConfigName: aws_sagemaker_endpoint_configuration_ec.name,
tags: {
Name: "foo",
},
});Create a Endpoint Resource
new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);def Endpoint(resource_name, opts=None, endpoint_config_name=None, name=None, tags=None, __props__=None);func NewEndpoint(ctx *Context, name string, args EndpointArgs, opts ...ResourceOption) (*Endpoint, error)public Endpoint(string name, EndpointArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Endpoint Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Endpoint resource accepts the following input properties:
- Endpoint
Config stringName The name of the endpoint configuration to use.
- Name string
The name of the endpoint. If omitted, this provider will assign a random, unique name.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Endpoint
Config stringName The name of the endpoint configuration to use.
- Name string
The name of the endpoint. If omitted, this provider will assign a random, unique name.
- map[string]string
A mapping of tags to assign to the resource.
- endpoint
Config stringName The name of the endpoint configuration to use.
- name string
The name of the endpoint. If omitted, this provider will assign a random, unique name.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- endpoint_
config_ strname The name of the endpoint configuration to use.
- name str
The name of the endpoint. If omitted, this provider will assign a random, unique name.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Endpoint resource produces the following output properties:
Look up an Existing Endpoint Resource
Get an existing Endpoint resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EndpointState, opts?: CustomResourceOptions): Endpointstatic get(resource_name, id, opts=None, arn=None, endpoint_config_name=None, name=None, tags=None, __props__=None);func GetEndpoint(ctx *Context, name string, id IDInput, state *EndpointState, opts ...ResourceOption) (*Endpoint, error)public static Endpoint Get(string name, Input<string> id, EndpointState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
The Amazon Resource Name (ARN) assigned by AWS to this endpoint.
- Endpoint
Config stringName The name of the endpoint configuration to use.
- Name string
The name of the endpoint. If omitted, this provider will assign a random, unique name.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Arn string
The Amazon Resource Name (ARN) assigned by AWS to this endpoint.
- Endpoint
Config stringName The name of the endpoint configuration to use.
- Name string
The name of the endpoint. If omitted, this provider will assign a random, unique name.
- map[string]string
A mapping of tags to assign to the resource.
- arn string
The Amazon Resource Name (ARN) assigned by AWS to this endpoint.
- endpoint
Config stringName The name of the endpoint configuration to use.
- name string
The name of the endpoint. If omitted, this provider will assign a random, unique name.
- {[key: string]: string}
A mapping of tags to assign to the resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.