public static final class CfnEndpointProps.Builder
extends java.lang.Object
CfnEndpointProps
Constructor and Description |
---|
Builder() |
public CfnEndpointProps.Builder endpointConfigName(java.lang.String endpointConfigName)
CfnEndpointProps.getEndpointConfigName()
endpointConfigName
- The name of the [AWS::SageMaker::EndpointConfig](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html) resource that specifies the configuration for the endpoint. For more information, see [CreateEndpointConfig](https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html) . This parameter is required.this
public CfnEndpointProps.Builder deploymentConfig(IResolvable deploymentConfig)
CfnEndpointProps.getDeploymentConfig()
deploymentConfig
- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.this
public CfnEndpointProps.Builder deploymentConfig(CfnEndpoint.DeploymentConfigProperty deploymentConfig)
CfnEndpointProps.getDeploymentConfig()
deploymentConfig
- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.this
public CfnEndpointProps.Builder endpointName(java.lang.String endpointName)
CfnEndpointProps.getEndpointName()
endpointName
- The name of the endpoint.The name must be unique within an AWS Region in your AWS account. The name is case-insensitive in `CreateEndpoint` , but the case is preserved and must be matched in [](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_runtime_InvokeEndpoint.html) .this
public CfnEndpointProps.Builder excludeRetainedVariantProperties(IResolvable excludeRetainedVariantProperties)
CfnEndpointProps.getExcludeRetainedVariantProperties()
excludeRetainedVariantProperties
- When you are updating endpoint resources with [RetainAllVariantProperties](https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-RetainAllVariantProperties) whose value is set to `true` , `ExcludeRetainedVariantProperties` specifies the list of type [VariantProperty](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpoint-variantproperty.html) to override with the values provided by `EndpointConfig` . If you don't specify a value for `ExcludeAllVariantProperties` , no variant properties are overridden. Don't use this property when creating new endpoint resources or when `RetainAllVariantProperties` is set to `false` .this
public CfnEndpointProps.Builder excludeRetainedVariantProperties(java.util.List<? extends java.lang.Object> excludeRetainedVariantProperties)
CfnEndpointProps.getExcludeRetainedVariantProperties()
excludeRetainedVariantProperties
- When you are updating endpoint resources with [RetainAllVariantProperties](https://docs.aws.amazon.com/sagemaker/latest/dg/API_UpdateEndpoint.html#SageMaker-UpdateEndpoint-request-RetainAllVariantProperties) whose value is set to `true` , `ExcludeRetainedVariantProperties` specifies the list of type [VariantProperty](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-endpoint-variantproperty.html) to override with the values provided by `EndpointConfig` . If you don't specify a value for `ExcludeAllVariantProperties` , no variant properties are overridden. Don't use this property when creating new endpoint resources or when `RetainAllVariantProperties` is set to `false` .this
public CfnEndpointProps.Builder retainAllVariantProperties(java.lang.Boolean retainAllVariantProperties)
CfnEndpointProps.getRetainAllVariantProperties()
retainAllVariantProperties
- When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.
To retain the variant properties of an endpoint when updating it, set RetainAllVariantProperties
to true
. To use the variant properties specified in a new EndpointConfig
call when updating an endpoint, set RetainAllVariantProperties
to false
. Use this property only when updating endpoint resources, not when creating new endpoint resources.this
public CfnEndpointProps.Builder retainAllVariantProperties(IResolvable retainAllVariantProperties)
CfnEndpointProps.getRetainAllVariantProperties()
retainAllVariantProperties
- When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.
To retain the variant properties of an endpoint when updating it, set RetainAllVariantProperties
to true
. To use the variant properties specified in a new EndpointConfig
call when updating an endpoint, set RetainAllVariantProperties
to false
. Use this property only when updating endpoint resources, not when creating new endpoint resources.this
public CfnEndpointProps.Builder retainDeploymentConfig(java.lang.Boolean retainDeploymentConfig)
CfnEndpointProps.getRetainDeploymentConfig()
retainDeploymentConfig
- Specifies whether to reuse the last deployment configuration.
The default value is false (the configuration is not reused).this
public CfnEndpointProps.Builder retainDeploymentConfig(IResolvable retainDeploymentConfig)
CfnEndpointProps.getRetainDeploymentConfig()
retainDeploymentConfig
- Specifies whether to reuse the last deployment configuration.
The default value is false (the configuration is not reused).this
public CfnEndpointProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnEndpointProps.getTags()
tags
- A list of key-value pairs to apply to this resource.
For more information, see Resource Tag and Using Cost Allocation Tags in the AWS Billing and Cost Management User Guide .this
public CfnEndpointProps build()
CfnEndpointProps
java.lang.NullPointerException
- if any required attribute was not provided