Class CreateEndpointConfigRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.sagemaker.model.SageMakerRequest
-
- software.amazon.awssdk.services.sagemaker.model.CreateEndpointConfigRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateEndpointConfigRequest.Builder,CreateEndpointConfigRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateEndpointConfigRequest extends SageMakerRequest implements ToCopyableBuilder<CreateEndpointConfigRequest.Builder,CreateEndpointConfigRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateEndpointConfigRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncInferenceConfigasyncInferenceConfig()Specifies configuration for how an endpoint performs asynchronous inference.static CreateEndpointConfigRequest.Builderbuilder()DataCaptureConfigdataCaptureConfig()Returns the value of the DataCaptureConfig property for this object.BooleanenableNetworkIsolation()Sets whether all model containers deployed to the endpoint are isolated.StringendpointConfigName()The name of the endpoint configuration.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringexecutionRoleArn()The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform actions on your behalf.ExplainerConfigexplainerConfig()A member ofCreateEndpointConfigthat enables explainers.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasProductionVariants()For responses, this returns true if the service returned a value for the ProductionVariants property.booleanhasShadowProductionVariants()For responses, this returns true if the service returned a value for the ShadowProductionVariants property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.StringkmsKeyId()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 ofProductionVariantobjects, one for each model that you want to host at this endpoint.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends CreateEndpointConfigRequest.Builder>serializableBuilderClass()List<ProductionVariant>shadowProductionVariants()An array ofProductionVariantobjects, one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified onProductionVariants.List<Tag>tags()An array of key-value pairs.CreateEndpointConfigRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.VpcConfigvpcConfig()Returns the value of the VpcConfig property for this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
endpointConfigName
public final String endpointConfigName()
The name of the endpoint configuration. You specify this name in a CreateEndpoint request.
- Returns:
- The name of the endpoint configuration. You specify this name in a CreateEndpoint request.
-
hasProductionVariants
public final boolean hasProductionVariants()
For responses, this returns true if the service returned a value for the ProductionVariants property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
productionVariants
public final List<ProductionVariant> productionVariants()
An array of
ProductionVariantobjects, 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.- Returns:
- An array of
ProductionVariantobjects, one for each model that you want to host at this endpoint.
-
dataCaptureConfig
public final DataCaptureConfig dataCaptureConfig()
Returns the value of the DataCaptureConfig property for this object.- Returns:
- The value of the DataCaptureConfig property for this object.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
tags
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.- Returns:
- 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.
-
kmsKeyId
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,UpdateEndpointrequests. For more information, refer to the Amazon Web Services Key Management Service section Using Key Policies in Amazon Web Services KMSCertain 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.
- Returns:
- 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,UpdateEndpointrequests. For more information, refer to the Amazon Web Services Key Management Service section Using Key Policies in Amazon Web Services KMSCertain 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.
-
-
-
asyncInferenceConfig
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.
- Returns:
- Specifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync.
-
explainerConfig
public final ExplainerConfig explainerConfig()
A member of
CreateEndpointConfigthat enables explainers.- Returns:
- A member of
CreateEndpointConfigthat enables explainers.
-
hasShadowProductionVariants
public final boolean hasShadowProductionVariants()
For responses, this returns true if the service returned a value for the ShadowProductionVariants property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
shadowProductionVariants
public final List<ProductionVariant> shadowProductionVariants()
An array of
ProductionVariantobjects, one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified onProductionVariants. If you use this field, you can only specify one variant forProductionVariantsand one variant forShadowProductionVariants.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.- Returns:
- An array of
ProductionVariantobjects, one for each model that you want to host at this endpoint in shadow mode with production traffic replicated from the model specified onProductionVariants. If you use this field, you can only specify one variant forProductionVariantsand one variant forShadowProductionVariants.
-
executionRoleArn
public final String executionRoleArn()
The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform actions on your behalf. For more information, see SageMaker Roles.
To be able to pass this role to Amazon SageMaker, the caller of this action must have the
iam:PassRolepermission.- Returns:
- The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform actions on your
behalf. For more information, see SageMaker Roles.
To be able to pass this role to Amazon SageMaker, the caller of this action must have the
iam:PassRolepermission.
-
vpcConfig
public final VpcConfig vpcConfig()
Returns the value of the VpcConfig property for this object.- Returns:
- The value of the VpcConfig property for this object.
-
enableNetworkIsolation
public final Boolean enableNetworkIsolation()
Sets whether all model containers deployed to the endpoint are isolated. If they are, no inbound or outbound network calls can be made to or from the model containers.
- Returns:
- Sets whether all model containers deployed to the endpoint are isolated. If they are, no inbound or outbound network calls can be made to or from the model containers.
-
toBuilder
public CreateEndpointConfigRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateEndpointConfigRequest.Builder,CreateEndpointConfigRequest>- Specified by:
toBuilderin classSageMakerRequest
-
builder
public static CreateEndpointConfigRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateEndpointConfigRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-