interface DeploymentConfigProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Sagemaker.CfnEndpoint.DeploymentConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssagemaker#CfnEndpoint_DeploymentConfigProperty |
Java | software.amazon.awscdk.services.sagemaker.CfnEndpoint.DeploymentConfigProperty |
Python | aws_cdk.aws_sagemaker.CfnEndpoint.DeploymentConfigProperty |
TypeScript | aws-cdk-lib » aws_sagemaker » CfnEndpoint » DeploymentConfigProperty |
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
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 deploymentConfigProperty: sagemaker.CfnEndpoint.DeploymentConfigProperty = {
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,
},
},
};
Properties
Name | Type | Description |
---|---|---|
auto | IResolvable | Auto | Automatic rollback configuration for handling endpoint deployment failures and recovery. |
blue | IResolvable | Blue | Update policy for a blue/green deployment. |
rolling | IResolvable | Rolling | Specifies a rolling deployment strategy for updating a SageMaker endpoint. |
autoRollbackConfiguration?
Type:
IResolvable
|
Auto
(optional)
Automatic rollback configuration for handling endpoint deployment failures and recovery.
blueGreenUpdatePolicy?
Type:
IResolvable
|
Blue
(optional)
Update policy for a blue/green deployment.
If this update policy is specified, SageMaker creates a new fleet during the deployment while maintaining the old fleet. SageMaker flips traffic to the new fleet according to the specified traffic routing configuration. Only one update policy should be used in the deployment configuration. If no update policy is specified, SageMaker uses a blue/green deployment strategy with all at once traffic shifting by default.
rollingUpdatePolicy?
Type:
IResolvable
|
Rolling
(optional)
Specifies a rolling deployment strategy for updating a SageMaker endpoint.