Class CfnTaskDefinition.RestartPolicyProperty.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnTaskDefinition.RestartPolicyProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnTaskDefinition.RestartPolicyProperty
@Stability(Stable)
@Internal
public static final class CfnTaskDefinition.RestartPolicyProperty.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements CfnTaskDefinition.RestartPolicyProperty
An implementation for
CfnTaskDefinition.RestartPolicyProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty
CfnTaskDefinition.RestartPolicyProperty.Builder, CfnTaskDefinition.RestartPolicyProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnTaskDefinition.RestartPolicyProperty.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal ObjectSpecifies whether a restart policy is enabled for the container.final ObjectA list of exit codes that Amazon ECS will ignore and not attempt a restart on.final NumberA period of time (in seconds) that the container must run for before a restart can be attempted.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnTaskDefinition.RestartPolicyProperty.Builder.
-
-
Method Details
-
getEnabled
Description copied from interface:CfnTaskDefinition.RestartPolicyPropertySpecifies whether a restart policy is enabled for the container.Returns union: either
BooleanorIResolvable- Specified by:
getEnabledin interfaceCfnTaskDefinition.RestartPolicyProperty- See Also:
-
getIgnoredExitCodes
Description copied from interface:CfnTaskDefinition.RestartPolicyPropertyA list of exit codes that Amazon ECS will ignore and not attempt a restart on.You can specify a maximum of 50 container exit codes. By default, Amazon ECS does not ignore any exit codes.
Returns union: either Listinvalid input: '<'
Number> orIResolvable- Specified by:
getIgnoredExitCodesin interfaceCfnTaskDefinition.RestartPolicyProperty- See Also:
-
getRestartAttemptPeriod
Description copied from interface:CfnTaskDefinition.RestartPolicyPropertyA period of time (in seconds) that the container must run for before a restart can be attempted.A container can be restarted only once every
restartAttemptPeriodseconds. If a container isn't able to run for this time period and exits early, it will not be restarted. You can set a minimumrestartAttemptPeriodof 60 seconds and a maximumrestartAttemptPeriodof 1800 seconds. By default, a container must run for 300 seconds before it can be restarted.- Specified by:
getRestartAttemptPeriodin interfaceCfnTaskDefinition.RestartPolicyProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-