@Generated(value="software.amazon.awssdk:codegen") public final class CreateEndpointConfigRequest extends SageMakerRequest implements ToCopyableBuilder<CreateEndpointConfigRequest.Builder,CreateEndpointConfigRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateEndpointConfigRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AsyncInferenceConfig |
asyncInferenceConfig()
Specifies configuration for how an endpoint performs asynchronous inference.
|
static CreateEndpointConfigRequest.Builder |
builder() |
DataCaptureConfig |
dataCaptureConfig()
Returns the value of the DataCaptureConfig property for this object.
|
String |
endpointConfigName()
The name of the endpoint configuration.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ExplainerConfig |
explainerConfig()
A member of
CreateEndpointConfig that enables explainers. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProductionVariants()
For responses, this returns true if the service returned a value for the ProductionVariants property.
|
boolean |
hasShadowProductionVariants()
For responses, this returns true if the service returned a value for the ShadowProductionVariants property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
kmsKeyId()
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that SageMaker uses to encrypt
data on the storage volume attached to the ML compute instance that hosts the endpoint.
|
List<ProductionVariant> |
productionVariants()
An array of
ProductionVariant objects, one for each model that you want to host at this endpoint. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateEndpointConfigRequest.Builder> |
serializableBuilderClass() |
List<ProductionVariant> |
shadowProductionVariants()
An array of
ProductionVariant objects, 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. |
List<Tag> |
tags()
An array of key-value pairs.
|
CreateEndpointConfigRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String endpointConfigName()
The name of the endpoint configuration. You specify this name in a CreateEndpoint request.
public final boolean hasProductionVariants()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ProductionVariant> productionVariants()
An array of ProductionVariant objects, one for each model that you want to host at this endpoint.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasProductionVariants() method.
ProductionVariant objects, one for each model that you want to host at this
endpoint.public final DataCaptureConfig dataCaptureConfig()
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final String kmsKeyId()
The Amazon Resource Name (ARN) of a Amazon Web Services Key Management Service key that SageMaker uses to encrypt data on the storage volume attached to the ML compute instance that hosts the endpoint.
The KmsKeyId can be any of the following formats:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias name ARN: 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 Amazon Web Services Key Management
Service section Using Key
Policies in Amazon Web Services 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 the ProductionVariants
parameter use nitro-based instances with local storage, do not specify a value for the KmsKeyId
parameter. If you specify a value for KmsKeyId when using any nitro-based instances with local
storage, the call to CreateEndpointConfig 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.
The KmsKeyId can be any of the following formats:
Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
Alias name: alias/ExampleAlias
Alias name ARN: 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
Amazon Web Services Key Management Service section Using Key Policies in
Amazon Web Services 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 the
ProductionVariants parameter use nitro-based instances with local storage, do not specify a
value for the KmsKeyId parameter. If you specify a value for KmsKeyId when
using any nitro-based instances with local storage, the call to CreateEndpointConfig 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.
public final AsyncInferenceConfig asyncInferenceConfig()
Specifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync.
public final ExplainerConfig explainerConfig()
A member of CreateEndpointConfig that enables explainers.
CreateEndpointConfig that enables explainers.public final boolean hasShadowProductionVariants()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<ProductionVariant> shadowProductionVariants()
An array of ProductionVariant objects, 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasShadowProductionVariants() method.
ProductionVariant objects, 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.public CreateEndpointConfigRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateEndpointConfigRequest.Builder,CreateEndpointConfigRequest>toBuilder in class SageMakerRequestpublic static CreateEndpointConfigRequest.Builder builder()
public static Class<? extends CreateEndpointConfigRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.