AutoDisablePolicyProperty Struct
Defines the rules by which an image pipeline is automatically disabled when it fails.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
};
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
failureCountnumberfailure_countint | floatfailureCountNumberFailureCountdoubleFailureCount*float64 required #The number of consecutive scheduled image pipeline executions that must fail before Image Builder automatically disables the pipeline.