# RollingUpdatePolicyProperty

Struct · External

Specifies a rolling deployment strategy for updating a SageMaker endpoint.

- Source: Generated at build time
- Type last changed: v2.214.0 · 2 Sep 2025

## Example

TypeScript:

```ts
// 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 rollingUpdatePolicyProperty: sagemaker.CfnCluster.RollingUpdatePolicyProperty = {
  maximumBatchSize: {
    type: 'type',
    value: 123,
  },

  // the properties below are optional
  rollbackMaximumBatchSize: {
    type: 'type',
    value: 123,
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

rolling_update_policy_property = sagemaker.CfnCluster.RollingUpdatePolicyProperty(
    maximum_batch_size=sagemaker.CfnCluster.CapacitySizeConfigProperty(
        type="type",
        value=123
    ),

    # the properties below are optional
    rollback_maximum_batch_size=sagemaker.CfnCluster.CapacitySizeConfigProperty(
        type="type",
        value=123
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

RollingUpdatePolicyProperty rollingUpdatePolicyProperty = RollingUpdatePolicyProperty.builder()
        .maximumBatchSize(CapacitySizeConfigProperty.builder()
                .type("type")
                .value(123)
                .build())

        // the properties below are optional
        .rollbackMaximumBatchSize(CapacitySizeConfigProperty.builder()
                .type("type")
                .value(123)
                .build())
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var rollingUpdatePolicyProperty = new RollingUpdatePolicyProperty {
    MaximumBatchSize = new CapacitySizeConfigProperty {
        Type = "type",
        Value = 123
    },

    // the properties below are optional
    RollbackMaximumBatchSize = new CapacitySizeConfigProperty {
        Type = "type",
        Value = 123
    }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rollingUpdatePolicyProperty := &RollingUpdatePolicyProperty{
	MaximumBatchSize: &CapacitySizeConfigProperty{
		Type: jsii.String("type"),
		Value: jsii.Number(123),
	},

	// the properties below are optional
	RollbackMaximumBatchSize: &CapacitySizeConfigProperty{
		Type: jsii.String("type"),
		Value: jsii.Number(123),
	},
}
```

## Properties

- `maximumBatchSize`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.CapacitySizeConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnCluster.CapacitySizeConfigProperty.html) (required) — Batch size for each rolling step to provision capacity and turn on traffic on the new endpoint fleet, and terminate capacity on the old endpoint fleet.

  Value must be between 5% to 50% of the variant's total instance count.

- `rollbackMaximumBatchSize`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnCluster.CapacitySizeConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnCluster.CapacitySizeConfigProperty.html) — Batch size for rollback to the old endpoint fleet.

  Each rolling step to provision capacity and turn on traffic on the old endpoint fleet, and terminate capacity on the new endpoint fleet. If this field is absent, the default value will be set to 100% of total capacity which means to bring up the whole capacity of the old fleet at once during rollback.
