@Generated(value="software.amazon.awssdk:codegen") public final class EcsParameters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EcsParameters.Builder,EcsParameters>
The custom parameters to be used when the target is an Amazon ECS task.
Modifier and Type | Class and Description |
---|---|
static interface |
EcsParameters.Builder |
Modifier and Type | Method and Description |
---|---|
static EcsParameters.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
group()
Specifies an ECS task group for the task.
|
int |
hashCode() |
LaunchType |
launchType()
Specifies the launch type on which your task is running.
|
String |
launchTypeAsString()
Specifies the launch type on which your task is running.
|
NetworkConfiguration |
networkConfiguration()
Use this structure if the ECS task uses the
awsvpc network mode. |
String |
platformVersion()
Specifies the platform version for the task.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EcsParameters.Builder> |
serializableBuilderClass() |
Integer |
taskCount()
The number of tasks to create based on
TaskDefinition . |
String |
taskDefinitionArn()
The ARN of the task definition to use if the event target is an Amazon ECS task.
|
EcsParameters.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String taskDefinitionArn()
The ARN of the task definition to use if the event target is an Amazon ECS task.
public Integer taskCount()
The number of tasks to create based on TaskDefinition
. The default is 1.
TaskDefinition
. The default is 1.public LaunchType launchType()
Specifies the launch type on which your task is running. The launch type that you specify here must match one of
the launch type (compatibilities) of the target task. The FARGATE
value is supported only in the
Regions where AWS Fargate with Amazon ECS is supported. For more information, see AWS Fargate on Amazon ECS
in the Amazon Elastic Container Service Developer Guide.
If the service returns an enum value that is not available in the current SDK version, launchType
will
return LaunchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
launchTypeAsString()
.
FARGATE
value is supported
only in the Regions where AWS Fargate with Amazon ECS is supported. For more information, see AWS Fargate on Amazon
ECS in the Amazon Elastic Container Service Developer Guide.LaunchType
public String launchTypeAsString()
Specifies the launch type on which your task is running. The launch type that you specify here must match one of
the launch type (compatibilities) of the target task. The FARGATE
value is supported only in the
Regions where AWS Fargate with Amazon ECS is supported. For more information, see AWS Fargate on Amazon ECS
in the Amazon Elastic Container Service Developer Guide.
If the service returns an enum value that is not available in the current SDK version, launchType
will
return LaunchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
launchTypeAsString()
.
FARGATE
value is supported
only in the Regions where AWS Fargate with Amazon ECS is supported. For more information, see AWS Fargate on Amazon
ECS in the Amazon Elastic Container Service Developer Guide.LaunchType
public NetworkConfiguration networkConfiguration()
Use this structure if the ECS task uses the awsvpc
network mode. This structure specifies the VPC
subnets and security groups associated with the task and whether a public IP address is to be used. This
structure is required if LaunchType
is FARGATE
because the awsvpc
mode is
required for Fargate tasks.
If you specify NetworkConfiguration
when the target ECS task doesn't use the awsvpc
network mode, the task fails.
awsvpc
network mode. This structure specifies
the VPC subnets and security groups associated with the task and whether a public IP address is to be
used. This structure is required if LaunchType
is FARGATE
because the
awsvpc
mode is required for Fargate tasks.
If you specify NetworkConfiguration
when the target ECS task doesn't use the
awsvpc
network mode, the task fails.
public String platformVersion()
Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as
1.1.0
.
This structure is used only if LaunchType
is FARGATE
. For more information about valid
platform versions, see AWS Fargate Platform
Versions in the Amazon Elastic Container Service Developer Guide.
1.1.0
.
This structure is used only if LaunchType
is FARGATE
. For more information
about valid platform versions, see AWS Fargate
Platform Versions in the Amazon Elastic Container Service Developer Guide.
public String group()
Specifies an ECS task group for the task. The maximum length is 255 characters.
public EcsParameters.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<EcsParameters.Builder,EcsParameters>
public static EcsParameters.Builder builder()
public static Class<? extends EcsParameters.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
Copyright © 2019. All rights reserved.