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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.CfnTaskDefinition.RestartPolicyProperty
CfnTaskDefinition.RestartPolicyProperty.Builder, CfnTaskDefinition.RestartPolicyProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theCfnTaskDefinition.RestartPolicyProperty.Builder
.protected
Jsii$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.JsonNode
final boolean
final Object
Specifies whether a restart policy is enabled for the container.final Object
A list of exit codes that Amazon ECS will ignore and not attempt a restart on.final Number
A period of time (in seconds) that the container must run for before a restart can be attempted.final int
hashCode()
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.RestartPolicyProperty
Specifies whether a restart policy is enabled for the container.- Specified by:
getEnabled
in interfaceCfnTaskDefinition.RestartPolicyProperty
- See Also:
-
getIgnoredExitCodes
Description copied from interface:CfnTaskDefinition.RestartPolicyProperty
A 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.
- Specified by:
getIgnoredExitCodes
in interfaceCfnTaskDefinition.RestartPolicyProperty
- See Also:
-
getRestartAttemptPeriod
Description copied from interface:CfnTaskDefinition.RestartPolicyProperty
A 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
restartAttemptPeriod
seconds. If a container isn't able to run for this time period and exits early, it will not be restarted. You can set a minimumrestartAttemptPeriod
of 60 seconds and a maximumrestartAttemptPeriod
of 1800 seconds. By default, a container must run for 300 seconds before it can be restarted.- Specified by:
getRestartAttemptPeriod
in interfaceCfnTaskDefinition.RestartPolicyProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-