@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.881Z") @Stability(value=Stable) public interface CfnEndpointConfigProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
CfnEndpointConfigProps cfnEndpointConfigProps = CfnEndpointConfigProps.builder()
.productionVariants(List.of(ProductionVariantProperty.builder()
.initialVariantWeight(123)
.modelName("modelName")
.variantName("variantName")
// the properties below are optional
.acceleratorType("acceleratorType")
.initialInstanceCount(123)
.instanceType("instanceType")
.serverlessConfig(ServerlessConfigProperty.builder()
.maxConcurrency(123)
.memorySizeInMb(123)
.build())
.build()))
// the properties below are optional
.asyncInferenceConfig(AsyncInferenceConfigProperty.builder()
.outputConfig(AsyncInferenceOutputConfigProperty.builder()
.s3OutputPath("s3OutputPath")
// the properties below are optional
.kmsKeyId("kmsKeyId")
.notificationConfig(AsyncInferenceNotificationConfigProperty.builder()
.errorTopic("errorTopic")
.successTopic("successTopic")
.build())
.build())
// the properties below are optional
.clientConfig(AsyncInferenceClientConfigProperty.builder()
.maxConcurrentInvocationsPerInstance(123)
.build())
.build())
.dataCaptureConfig(DataCaptureConfigProperty.builder()
.captureOptions(List.of(CaptureOptionProperty.builder()
.captureMode("captureMode")
.build()))
.destinationS3Uri("destinationS3Uri")
.initialSamplingPercentage(123)
// the properties below are optional
.captureContentTypeHeader(CaptureContentTypeHeaderProperty.builder()
.csvContentTypes(List.of("csvContentTypes"))
.jsonContentTypes(List.of("jsonContentTypes"))
.build())
.enableCapture(false)
.kmsKeyId("kmsKeyId")
.build())
.endpointConfigName("endpointConfigName")
.kmsKeyId("kmsKeyId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEndpointConfigProps.Builder
A builder for
CfnEndpointConfigProps |
static class |
CfnEndpointConfigProps.Jsii$Proxy
An implementation for
CfnEndpointConfigProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnEndpointConfigProps.Builder |
builder() |
default Object |
getAsyncInferenceConfig()
Specifies configuration for how an endpoint performs asynchronous inference.
|
default Object |
getDataCaptureConfig()
Specifies how to capture endpoint data for model monitor.
|
default String |
getEndpointConfigName()
The name of the endpoint configuration.
|
default String |
getKmsKeyId()
The Amazon Resource Name (ARN) of an 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.
|
Object |
getProductionVariants()
A list of `ProductionVariant` objects, one for each model that you want to host at this endpoint.
|
default List<CfnTag> |
getTags()
A list of key-value pairs to apply to this resource.
|
@Stability(value=Stable) @NotNull Object getProductionVariants()
@Stability(value=Stable) @Nullable default Object getAsyncInferenceConfig()
@Stability(value=Stable) @Nullable default Object getDataCaptureConfig()
The data capture configuration applies to all production variants hosted at the endpoint.
@Stability(value=Stable) @Nullable default String getEndpointConfigName()
@Stability(value=Stable) @Nullable default String getKmsKeyId()
1234abcd-12ab-34cd-56ef-1234567890abarn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890abalias/ExampleAliasarn:aws:kms:us-west-2:111122223333:alias/ExampleAlias
The KMS key policy must grant permission to the IAM role that you specify in your CreateEndpoint , UpdateEndpoint requests. For more information, refer to the AWS Key Management Service section Using Key Policies in AWS KMS
Certain Nitro-based instances include local storage, dependent on the instance type. Local storage volumes are encrypted using a hardware module on the instance. You can't request a
KmsKeyIdwhen using an instance type with local storage. If any of the models that you specify in theProductionVariantsparameter use nitro-based instances with local storage, do not specify a value for theKmsKeyIdparameter. If you specify a value forKmsKeyIdwhen using any nitro-based instances with local storage, the call toCreateEndpointConfigfails.For a list of instance types that support local instance storage, see Instance Store Volumes .
For more information about local instance storage encryption, see SSD Instance Store Volumes .
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
For more information, see Resource Tag and Using Cost Allocation Tags .
@Stability(value=Stable) static CfnEndpointConfigProps.Builder builder()
CfnEndpointConfigProps.Builder of CfnEndpointConfigPropsCopyright © 2022. All rights reserved.