RestartPolicyProperty Struct
| 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_ecs as ecs } from 'aws-cdk-lib';
const restartPolicyProperty: ecs.CfnDaemonTaskDefinition.RestartPolicyProperty = {
enabled: false,
ignoredExitCodes: [123],
restartAttemptPeriod: 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_ecs as ecs
restart_policy_property = ecs.CfnDaemonTaskDefinition.RestartPolicyProperty(
enabled=False,
ignored_exit_codes=[123],
restart_attempt_period=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.ecs.*;
RestartPolicyProperty restartPolicyProperty = RestartPolicyProperty.builder()
.enabled(false)
.ignoredExitCodes(List.of(123))
.restartAttemptPeriod(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.ECS;
var restartPolicyProperty = new RestartPolicyProperty {
Enabled = false,
IgnoredExitCodes = new [] { 123 },
RestartAttemptPeriod = 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"
restartPolicyProperty := &RestartPolicyProperty{
Enabled: jsii.Boolean(false),
IgnoredExitCodes: []interface{}{
jsii.Number(123),
},
RestartAttemptPeriod: jsii.Number(123),
}
Properties
enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #ignoredExitCodesoptionalnumber[] | IResolvableignored_exit_codesoptionaltyping.Union[typing.List[int | float], IResolvable]ignoredExitCodesoptionalList<Number>IgnoredExitCodesoptionaldouble[]IgnoredExitCodesoptionalinterface{} #restartAttemptPeriodoptionalnumberrestart_attempt_periodoptionalint | floatrestartAttemptPeriodoptionalNumberRestartAttemptPeriodoptionaldoubleRestartAttemptPeriodoptional*float64 #