interface CfnEndpointProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnEndpointProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnEndpointProps |
Java | software.amazon.awscdk.services.sagemaker.CfnEndpointProps |
Python | aws_cdk.aws_sagemaker.CfnEndpointProps |
TypeScript | aws-cdk-lib » aws_sagemaker » CfnEndpointProps |
Properties for defining a CfnEndpoint
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnEndpointProps: sagemaker.CfnEndpointProps = {
endpointConfigName: 'endpointConfigName',
// the properties below are optional
deploymentConfig: {
autoRollbackConfiguration: {
alarms: [{
alarmName: 'alarmName',
}],
},
blueGreenUpdatePolicy: {
trafficRoutingConfiguration: {
type: 'type',
// the properties below are optional
canarySize: {
type: 'type',
value: 123,
},
linearStepSize: {
type: 'type',
value: 123,
},
waitIntervalInSeconds: 123,
},
// the properties below are optional
maximumExecutionTimeoutInSeconds: 123,
terminationWaitInSeconds: 123,
},
rollingUpdatePolicy: {
maximumBatchSize: {
type: 'type',
value: 123,
},
waitIntervalInSeconds: 123,
// the properties below are optional
maximumExecutionTimeoutInSeconds: 123,
rollbackMaximumBatchSize: {
type: 'type',
value: 123,
},
},
},
endpointName: 'endpointName',
excludeRetainedVariantProperties: [{
variantPropertyType: 'variantPropertyType',
}],
retainAllVariantProperties: false,
retainDeploymentConfig: false,
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
endpoint | string | The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig . |
deployment | IResolvable | Deployment | The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations. |
endpoint | string | 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 . |
exclude | IResolvable | IResolvable | Variant [] | When you are updating endpoint resources with RetainAllVariantProperties whose value is set to true , ExcludeRetainedVariantProperties specifies the list of type VariantProperty 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 . |
retain | boolean | IResolvable | When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. |
retain | boolean | IResolvable | Specifies whether to reuse the last deployment configuration. |
tags? | Cfn [] | A list of key-value pairs to apply to this resource. |
endpointConfigName
Type:
string
The name of the AWS::SageMaker::EndpointConfig resource that specifies the configuration for the endpoint. For more information, see CreateEndpointConfig .
deploymentConfig?
Type:
IResolvable
|
Deployment
(optional)
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
endpointName?
Type:
string
(optional)
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 .
excludeRetainedVariantProperties?
Type:
IResolvable
|
IResolvable
|
Variant
[]
(optional)
When you are updating endpoint resources with RetainAllVariantProperties whose value is set to true
, ExcludeRetainedVariantProperties
specifies the list of type VariantProperty 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
.
retainAllVariantProperties?
Type:
boolean |
IResolvable
(optional)
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.
retainDeploymentConfig?
Type:
boolean |
IResolvable
(optional)
Specifies whether to reuse the last deployment configuration.
The default value is false (the configuration is not reused).
tags?
Type:
Cfn
[]
(optional)
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 .