public static final class CfnEndpointConfig.Builder
extends java.lang.Object
CfnEndpointConfig
.Modifier and Type | Method and Description |
---|---|
CfnEndpointConfig.Builder |
asyncInferenceConfig(CfnEndpointConfig.AsyncInferenceConfigProperty asyncInferenceConfig)
Specifies configuration for how an endpoint performs asynchronous inference.
|
CfnEndpointConfig.Builder |
asyncInferenceConfig(IResolvable asyncInferenceConfig)
Specifies configuration for how an endpoint performs asynchronous inference.
|
CfnEndpointConfig |
build() |
static CfnEndpointConfig.Builder |
create(Construct scope,
java.lang.String id) |
CfnEndpointConfig.Builder |
dataCaptureConfig(CfnEndpointConfig.DataCaptureConfigProperty dataCaptureConfig)
Specifies how to capture endpoint data for model monitor.
|
CfnEndpointConfig.Builder |
dataCaptureConfig(IResolvable dataCaptureConfig)
Specifies how to capture endpoint data for model monitor.
|
CfnEndpointConfig.Builder |
endpointConfigName(java.lang.String endpointConfigName)
The name of the endpoint configuration.
|
CfnEndpointConfig.Builder |
explainerConfig(CfnEndpointConfig.ExplainerConfigProperty explainerConfig)
`AWS::SageMaker::EndpointConfig.ExplainerConfig`.
|
CfnEndpointConfig.Builder |
explainerConfig(IResolvable explainerConfig)
`AWS::SageMaker::EndpointConfig.ExplainerConfig`.
|
CfnEndpointConfig.Builder |
kmsKeyId(java.lang.String kmsKeyId)
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.
|
CfnEndpointConfig.Builder |
productionVariants(IResolvable productionVariants)
A list of `ProductionVariant` objects, one for each model that you want to host at this endpoint.
|
CfnEndpointConfig.Builder |
productionVariants(java.util.List<? extends java.lang.Object> productionVariants)
A list of `ProductionVariant` objects, one for each model that you want to host at this endpoint.
|
CfnEndpointConfig.Builder |
shadowProductionVariants(IResolvable shadowProductionVariants)
Array of `ProductionVariant` objects.
|
CfnEndpointConfig.Builder |
shadowProductionVariants(java.util.List<? extends java.lang.Object> shadowProductionVariants)
Array of `ProductionVariant` objects.
|
CfnEndpointConfig.Builder |
tags(java.util.List<? extends CfnTag> tags)
A list of key-value pairs to apply to this resource.
|
public static CfnEndpointConfig.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnEndpointConfig.AsyncInferenceClientConfigProperty.Builder
.public CfnEndpointConfig.Builder productionVariants(IResolvable productionVariants)
productionVariants
- A list of `ProductionVariant` objects, one for each model that you want to host at this endpoint. This parameter is required.this
public CfnEndpointConfig.Builder productionVariants(java.util.List<? extends java.lang.Object> productionVariants)
productionVariants
- A list of `ProductionVariant` objects, one for each model that you want to host at this endpoint. This parameter is required.this
public CfnEndpointConfig.Builder asyncInferenceConfig(IResolvable asyncInferenceConfig)
asyncInferenceConfig
- Specifies configuration for how an endpoint performs asynchronous inference. This parameter is required.this
public CfnEndpointConfig.Builder asyncInferenceConfig(CfnEndpointConfig.AsyncInferenceConfigProperty asyncInferenceConfig)
asyncInferenceConfig
- Specifies configuration for how an endpoint performs asynchronous inference. This parameter is required.this
public CfnEndpointConfig.Builder dataCaptureConfig(IResolvable dataCaptureConfig)
The data capture configuration applies to all production variants hosted at the endpoint.
dataCaptureConfig
- Specifies how to capture endpoint data for model monitor. This parameter is required.this
public CfnEndpointConfig.Builder dataCaptureConfig(CfnEndpointConfig.DataCaptureConfigProperty dataCaptureConfig)
The data capture configuration applies to all production variants hosted at the endpoint.
dataCaptureConfig
- Specifies how to capture endpoint data for model monitor. This parameter is required.this
public CfnEndpointConfig.Builder endpointConfigName(java.lang.String endpointConfigName)
endpointConfigName
- The name of the endpoint configuration. This parameter is required.this
public CfnEndpointConfig.Builder explainerConfig(IResolvable explainerConfig)
explainerConfig
- `AWS::SageMaker::EndpointConfig.ExplainerConfig`. This parameter is required.this
public CfnEndpointConfig.Builder explainerConfig(CfnEndpointConfig.ExplainerConfigProperty explainerConfig)
explainerConfig
- `AWS::SageMaker::EndpointConfig.ExplainerConfig`. This parameter is required.this
public CfnEndpointConfig.Builder kmsKeyId(java.lang.String kmsKeyId)
1234abcd-12ab-34cd-56ef-1234567890ab
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
alias/ExampleAlias
arn: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
KmsKeyId
when using an instance type with local storage. If any of the models that you specify in theProductionVariants
parameter use nitro-based instances with local storage, do not specify a value for theKmsKeyId
parameter. If you specify a value forKmsKeyId
when using any nitro-based instances with local storage, the call toCreateEndpointConfig
fails.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 .
kmsKeyId
- 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. This parameter is required.this
public CfnEndpointConfig.Builder shadowProductionVariants(IResolvable shadowProductionVariants)
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
.
shadowProductionVariants
- Array of `ProductionVariant` objects. This parameter is required.this
public CfnEndpointConfig.Builder shadowProductionVariants(java.util.List<? extends java.lang.Object> shadowProductionVariants)
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
.
shadowProductionVariants
- Array of `ProductionVariant` objects. This parameter is required.this
public CfnEndpointConfig.Builder tags(java.util.List<? extends CfnTag> tags)
For more information, see Resource Tag and Using Cost Allocation Tags .
tags
- A list of key-value pairs to apply to this resource. This parameter is required.this
public CfnEndpointConfig build()