Show / Hide Table of Contents

Namespace Pulumi.Aws.Sagemaker

Classes

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" },
        },
    });
}

}

EndpointArgs

EndpointConfiguration

Provides a SageMaker endpoint configuration resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var ec = new Aws.Sagemaker.EndpointConfiguration("ec", new Aws.Sagemaker.EndpointConfigurationArgs
    {
        ProductionVariants = 
        {
            new Aws.Sagemaker.Inputs.EndpointConfigurationProductionVariantArgs
            {
                InitialInstanceCount = 1,
                InstanceType = "ml.t2.medium",
                ModelName = aws_sagemaker_model.M.Name,
                VariantName = "variant-1",
            },
        },
        Tags = 
        {
            { "Name", "foo" },
        },
    });
}

}

EndpointConfigurationArgs

EndpointConfigurationState

EndpointState

Model

Provides a SageMaker model resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var model = new Aws.Sagemaker.Model("model", new Aws.Sagemaker.ModelArgs
    {
        ExecutionRoleArn = aws_iam_role.Foo.Arn,
        PrimaryContainer = new Aws.Sagemaker.Inputs.ModelPrimaryContainerArgs
        {
            Image = "174872318107.dkr.ecr.us-west-2.amazonaws.com/kmeans:1",
        },
    });
    var assumeRole = Output.Create(Aws.Iam.GetPolicyDocument.InvokeAsync(new Aws.Iam.GetPolicyDocumentArgs
    {
        Statements = 
        {
            new Aws.Iam.Inputs.GetPolicyDocumentStatementArgs
            {
                Actions = 
                {
                    "sts:AssumeRole",
                },
                Principals = 
                {
                    new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalArgs
                    {
                        Identifiers = 
                        {
                            "sagemaker.amazonaws.com",
                        },
                        Type = "Service",
                    },
                },
            },
        },
    }));
    var role = new Aws.Iam.Role("role", new Aws.Iam.RoleArgs
    {
        AssumeRolePolicy = assumeRole.Apply(assumeRole => assumeRole.Json),
    });
}

}

ModelArgs

ModelState

NotebookInstance

Provides a Sagemaker Notebook Instance resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var ni = new Aws.Sagemaker.NotebookInstance("ni", new Aws.Sagemaker.NotebookInstanceArgs
    {
        InstanceType = "ml.t2.medium",
        RoleArn = aws_iam_role.Role.Arn,
        Tags = 
        {
            { "Name", "foo" },
        },
    });
}

}

NotebookInstanceArgs

NotebookInstanceLifecycleConfiguration

Provides a lifecycle configuration for SageMaker Notebook Instances.

NotebookInstanceLifecycleConfigurationArgs

NotebookInstanceLifecycleConfigurationState

NotebookInstanceState

Back to top Copyright 2016-2020, Pulumi Corporation.