# AutoDisablePolicyProperty

Defines the rules by which an image pipeline is automatically disabled when it fails.

- Source: Generated at build time
- Type last changed: v2.220.0 · 14 Oct 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_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const autoDisablePolicyProperty: imagebuilder.CfnImagePipeline.AutoDisablePolicyProperty = {
  failureCount: 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_imagebuilder as imagebuilder

auto_disable_policy_property = imagebuilder.CfnImagePipeline.AutoDisablePolicyProperty(
    failure_count=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.imagebuilder.*;

AutoDisablePolicyProperty autoDisablePolicyProperty = AutoDisablePolicyProperty.builder()
        .failureCount(123)
        .build();
```

C# / .NET:

```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.ImageBuilder;

var autoDisablePolicyProperty = new AutoDisablePolicyProperty {
    FailureCount = 123
};
```

Golang:

```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"

autoDisablePolicyProperty := &AutoDisablePolicyProperty{
	FailureCount: jsii.Number(123),
}
```

## Properties

- `failureCount`: number (required) — The number of consecutive scheduled image pipeline executions that must fail before Image Builder automatically disables the pipeline.
