Interface CreateEndpointConfigRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<CreateEndpointConfigRequest.Builder,,- CreateEndpointConfigRequest> - SageMakerRequest.Builder,- SdkBuilder<CreateEndpointConfigRequest.Builder,,- CreateEndpointConfigRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- CreateEndpointConfigRequest
- 
Method SummaryModifier and TypeMethodDescriptionasyncInferenceConfig(Consumer<AsyncInferenceConfig.Builder> asyncInferenceConfig) Specifies configuration for how an endpoint performs asynchronous inference.asyncInferenceConfig(AsyncInferenceConfig asyncInferenceConfig) Specifies configuration for how an endpoint performs asynchronous inference.dataCaptureConfig(Consumer<DataCaptureConfig.Builder> dataCaptureConfig) Sets the value of the DataCaptureConfig property for this object.dataCaptureConfig(DataCaptureConfig dataCaptureConfig) Sets the value of the DataCaptureConfig property for this object.enableNetworkIsolation(Boolean enableNetworkIsolation) Sets whether all model containers deployed to the endpoint are isolated.endpointConfigName(String endpointConfigName) The name of the endpoint configuration.executionRoleArn(String executionRoleArn) The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform actions on your behalf.explainerConfig(Consumer<ExplainerConfig.Builder> explainerConfig) A member ofCreateEndpointConfigthat enables explainers.explainerConfig(ExplainerConfig explainerConfig) A member ofCreateEndpointConfigthat enables explainers.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.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.productionVariants(Collection<ProductionVariant> productionVariants) An array ofProductionVariantobjects, one for each model that you want to host at this endpoint.productionVariants(Consumer<ProductionVariant.Builder>... productionVariants) An array ofProductionVariantobjects, one for each model that you want to host at this endpoint.productionVariants(ProductionVariant... productionVariants) An array ofProductionVariantobjects, one for each model that you want to host at this endpoint.shadowProductionVariants(Collection<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.shadowProductionVariants(Consumer<ProductionVariant.Builder>... 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.shadowProductionVariants(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.tags(Collection<Tag> tags) An array of key-value pairs.tags(Consumer<Tag.Builder>... tags) An array of key-value pairs.An array of key-value pairs.vpcConfig(Consumer<VpcConfig.Builder> vpcConfig) Sets the value of the VpcConfig property for this object.Sets the value of the VpcConfig property for this object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
endpointConfigNameThe name of the endpoint configuration. You specify this name in a CreateEndpoint request. - Parameters:
- endpointConfigName- The name of the endpoint configuration. You specify this name in a CreateEndpoint request.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
productionVariantsCreateEndpointConfigRequest.Builder productionVariants(Collection<ProductionVariant> productionVariants) An array of ProductionVariantobjects, one for each model that you want to host at this endpoint.- Parameters:
- productionVariants- An array of- ProductionVariantobjects, one for each model that you want to host at this endpoint.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
productionVariantsAn array of ProductionVariantobjects, one for each model that you want to host at this endpoint.- Parameters:
- productionVariants- An array of- ProductionVariantobjects, one for each model that you want to host at this endpoint.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
productionVariantsCreateEndpointConfigRequest.Builder productionVariants(Consumer<ProductionVariant.Builder>... productionVariants) An array of This is a convenience method that creates an instance of theProductionVariantobjects, one for each model that you want to host at this endpoint.ProductionVariant.Builderavoiding the need to create one manually viaProductionVariant.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproductionVariants(List<ProductionVariant>).- Parameters:
- productionVariants- a consumer that will call methods on- ProductionVariant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
dataCaptureConfigSets the value of the DataCaptureConfig property for this object.- Parameters:
- dataCaptureConfig- The new value for the DataCaptureConfig property for this object.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
dataCaptureConfigdefault CreateEndpointConfigRequest.Builder dataCaptureConfig(Consumer<DataCaptureConfig.Builder> dataCaptureConfig) Sets the value of the DataCaptureConfig property for this object. This is a convenience method that creates an instance of theDataCaptureConfig.Builderavoiding the need to create one manually viaDataCaptureConfig.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataCaptureConfig(DataCaptureConfig).- Parameters:
- dataCaptureConfig- a consumer that will call methods on- DataCaptureConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
tagsAn 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsAn 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. - Parameters:
- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
tagsAn 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. This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
- tags- a consumer that will call methods on- Tag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
kmsKeyIdThe 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. - Parameters:
- 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 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 the- ProductionVariantsparameter use nitro-based instances with local storage, do not specify a value for the- KmsKeyIdparameter. If you specify a value for- KmsKeyIdwhen using any nitro-based instances with local storage, the call to- CreateEndpointConfigfails.- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
 
- 
asyncInferenceConfigSpecifies configuration for how an endpoint performs asynchronous inference. This is a required field in order for your Endpoint to be invoked using InvokeEndpointAsync. - Parameters:
- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
asyncInferenceConfigdefault CreateEndpointConfigRequest.Builder asyncInferenceConfig(Consumer<AsyncInferenceConfig.Builder> 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. This is a convenience method that creates an instance of theAsyncInferenceConfig.Builderavoiding the need to create one manually viaAsyncInferenceConfig.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toasyncInferenceConfig(AsyncInferenceConfig).- Parameters:
- asyncInferenceConfig- a consumer that will call methods on- AsyncInferenceConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
explainerConfigA member of CreateEndpointConfigthat enables explainers.- Parameters:
- explainerConfig- A member of- CreateEndpointConfigthat enables explainers.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
explainerConfigdefault CreateEndpointConfigRequest.Builder explainerConfig(Consumer<ExplainerConfig.Builder> explainerConfig) A member of This is a convenience method that creates an instance of theCreateEndpointConfigthat enables explainers.ExplainerConfig.Builderavoiding the need to create one manually viaExplainerConfig.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexplainerConfig(ExplainerConfig).- Parameters:
- explainerConfig- a consumer that will call methods on- ExplainerConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
shadowProductionVariantsCreateEndpointConfigRequest.Builder shadowProductionVariants(Collection<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.- Parameters:
- 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 on- ProductionVariants. If you use this field, you can only specify one variant for- ProductionVariantsand one variant for- ShadowProductionVariants.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
shadowProductionVariantsCreateEndpointConfigRequest.Builder shadowProductionVariants(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.- Parameters:
- 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 on- ProductionVariants. If you use this field, you can only specify one variant for- ProductionVariantsand one variant for- ShadowProductionVariants.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
shadowProductionVariantsCreateEndpointConfigRequest.Builder shadowProductionVariants(Consumer<ProductionVariant.Builder>... shadowProductionVariants) An array of This is a convenience method that creates an instance of theProductionVariantobjects, 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.ProductionVariant.Builderavoiding the need to create one manually viaProductionVariant.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toshadowProductionVariants(List<ProductionVariant>).- Parameters:
- shadowProductionVariants- a consumer that will call methods on- ProductionVariant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
executionRoleArnThe Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform actions on your behalf. For more information, see SageMaker AI Roles. To be able to pass this role to Amazon SageMaker AI, the caller of this action must have the iam:PassRolepermission.- Parameters:
- executionRoleArn- The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker AI can assume to perform actions on your behalf. For more information, see SageMaker AI Roles.- To be able to pass this role to Amazon SageMaker AI, the caller of this action must have the - iam:PassRolepermission.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
vpcConfigSets the value of the VpcConfig property for this object.- Parameters:
- vpcConfig- The new value for the VpcConfig property for this object.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
vpcConfigSets the value of the VpcConfig property for this object. This is a convenience method that creates an instance of theVpcConfig.Builderavoiding the need to create one manually viaVpcConfig.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovpcConfig(VpcConfig).- Parameters:
- vpcConfig- a consumer that will call methods on- VpcConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
enableNetworkIsolationSets 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. - Parameters:
- 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:
- Returns a reference to this object so that method calls can be chained together.
 
- 
overrideConfigurationCreateEndpointConfigRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationCreateEndpointConfigRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-