@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.228Z") @Stability(value=Experimental) public class FargateTaskDefinition extends TaskDefinition implements IFargateTaskDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
FargateTaskDefinition.Builder
(experimental) A fluent builder for
FargateTaskDefinition. |
software.amazon.jsii.JsiiObject.InitializationModeIFargateTaskDefinition.Jsii$Default, IFargateTaskDefinition.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
FargateTaskDefinition(software.constructs.Construct scope,
String id)
(experimental) Constructs a new instance of the FargateTaskDefinition class.
|
|
FargateTaskDefinition(software.constructs.Construct scope,
String id,
FargateTaskDefinitionProps props)
(experimental) Constructs a new instance of the FargateTaskDefinition class.
|
protected |
FargateTaskDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FargateTaskDefinition(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IFargateTaskDefinition |
fromFargateTaskDefinitionArn(software.constructs.Construct scope,
String id,
String fargateTaskDefinitionArn)
(experimental) Imports a task definition from the specified task definition ARN.
|
static IFargateTaskDefinition |
fromFargateTaskDefinitionAttributes(software.constructs.Construct scope,
String id,
FargateTaskDefinitionAttributes attrs)
(experimental) Import an existing Fargate task definition from its attributes.
|
NetworkMode |
getNetworkMode()
(experimental) The Docker networking mode to use for the containers in the task.
|
addContainer, addExtension, addFirelensLogRouter, addInferenceAccelerator, addPlacementConstraint, addToExecutionRolePolicy, addToTaskRolePolicy, addVolume, fromTaskDefinitionArn, fromTaskDefinitionAttributes, getCompatibility, getContainers, getDefaultContainer, getExecutionRole, getFamily, getInferenceAccelerators, getIsEc2Compatible, getIsExternalCompatible, getIsFargateCompatible, getReferencesSecretJsonField, getTaskDefinitionArn, getTaskRole, obtainExecutionRole, setDefaultContainerapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCompatibility, getExecutionRole, getIsEc2Compatible, getIsExternalCompatible, getIsFargateCompatible, getTaskDefinitionArn, getTaskRoleprotected FargateTaskDefinition(software.amazon.jsii.JsiiObjectRef objRef)
protected FargateTaskDefinition(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public FargateTaskDefinition(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
FargateTaskDefinitionProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public FargateTaskDefinition(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IFargateTaskDefinition fromFargateTaskDefinitionArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String fargateTaskDefinitionArn)
scope - This parameter is required.id - This parameter is required.fargateTaskDefinitionArn - This parameter is required.@Stability(value=Experimental) @NotNull public static IFargateTaskDefinition fromFargateTaskDefinitionAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull FargateTaskDefinitionAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public NetworkMode getNetworkMode()
Fargate tasks require the awsvpc network mode.
getNetworkMode in interface ITaskDefinitiongetNetworkMode in class TaskDefinitionCopyright © 2021. All rights reserved.