EndpointConfiguration

class EndpointConfiguration : KotlinCustomResource

Provides a SageMaker endpoint configuration resource.

Example Usage

Basic usage:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.sagemaker.EndpointConfiguration;
import com.pulumi.aws.sagemaker.EndpointConfigurationArgs;
import com.pulumi.aws.sagemaker.inputs.EndpointConfigurationProductionVariantArgs;
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 ec = new EndpointConfiguration("ec", EndpointConfigurationArgs.builder()
.productionVariants(EndpointConfigurationProductionVariantArgs.builder()
.variantName("variant-1")
.modelName(aws_sagemaker_model.m().name())
.initialInstanceCount(1)
.instanceType("ml.t2.medium")
.build())
.tags(Map.of("Name", "foo"))
.build());
}
}

Import

Endpoint configurations can be imported using the name, e.g.,

$ pulumi import aws:sagemaker/endpointConfiguration:EndpointConfiguration test_endpoint_config endpoint-config-foo

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) assigned by AWS to this endpoint configuration.

Link copied to clipboard

Specifies configuration for how an endpoint performs asynchronous inference.

Link copied to clipboard

Specifies the parameters to capture input/output of SageMaker models endpoints. Fields are documented below.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kmsKeyArn: Output<String>?

Amazon Resource Name (ARN) of a AWS Key Management Service key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.

Link copied to clipboard
val name: Output<String>

The name of the endpoint configuration. If omitted, this provider will assign a random, unique name. Conflicts with name_prefix.

Link copied to clipboard
val namePrefix: Output<String>

Creates a unique endpoint configuration name beginning with the specified prefix. Conflicts with name.

Link copied to clipboard

An list of ProductionVariant objects, one for each model that you want to host at this endpoint. Fields are documented below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Array of ProductionVariant objects. There is one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified on ProductionVariants.If you use this field, you can only specify one variant for ProductionVariants and one variant for ShadowProductionVariants. Fields are documented below.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>