Class PipeTargetEcsTaskParameters
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<PipeTargetEcsTaskParameters.Builder,- PipeTargetEcsTaskParameters> 
The parameters for using an Amazon ECS task as a target.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()final List<CapacityProviderStrategyItem> The capacity provider strategy to use for the task.final BooleanSpecifies whether to enable Amazon ECS managed tags for the task.final BooleanWhether or not to enable the execute command functionality for the containers in this task.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final Stringgroup()Specifies an Amazon ECS task group for the task.final booleanFor responses, this returns true if the service returned a value for the CapacityProviderStrategy property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the PlacementConstraints property.final booleanFor responses, this returns true if the service returned a value for the PlacementStrategy property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final LaunchTypeSpecifies the launch type on which your task is running.final StringSpecifies the launch type on which your task is running.final NetworkConfigurationUse this structure if the Amazon ECS task uses theawsvpcnetwork mode.final EcsTaskOverrideThe overrides that are associated with a task.final List<PlacementConstraint> An array of placement constraint objects to use for the task.final List<PlacementStrategy> The placement strategy objects to use for the task.final StringSpecifies the platform version for the task.final PropagateTagsSpecifies whether to propagate the tags from the task definition to the task.final StringSpecifies whether to propagate the tags from the task definition to the task.final StringThe reference ID to use for the task.static Class<? extends PipeTargetEcsTaskParameters.Builder> tags()The metadata that you apply to the task to help you categorize and organize them.final IntegerThe number of tasks to create based onTaskDefinition.final StringThe ARN of the task definition to use if the event target is an Amazon ECS task.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
taskDefinitionArnThe ARN of the task definition to use if the event target is an Amazon ECS task. - Returns:
- The ARN of the task definition to use if the event target is an Amazon ECS task.
 
- 
taskCountThe number of tasks to create based on TaskDefinition. The default is 1.- Returns:
- The number of tasks to create based on TaskDefinition. The default is 1.
 
- 
launchTypeSpecifies 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 FARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see 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, launchTypewill returnLaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlaunchTypeAsString().- Returns:
- 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 FARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in the Amazon Elastic Container Service Developer Guide.
- See Also:
 
- 
launchTypeAsStringSpecifies 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 FARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see 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, launchTypewill returnLaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlaunchTypeAsString().- Returns:
- 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 FARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in the Amazon Elastic Container Service Developer Guide.
- See Also:
 
- 
networkConfigurationUse this structure if the Amazon ECS task uses the awsvpcnetwork 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 ifLaunchTypeisFARGATEbecause theawsvpcmode is required for Fargate tasks.If you specify NetworkConfigurationwhen the target ECS task does not use theawsvpcnetwork mode, the task fails.- Returns:
- Use this structure if the Amazon ECS task uses the awsvpcnetwork 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 ifLaunchTypeisFARGATEbecause theawsvpcmode is required for Fargate tasks.If you specify NetworkConfigurationwhen the target ECS task does not use theawsvpcnetwork mode, the task fails.
 
- 
platformVersionSpecifies 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 LaunchTypeisFARGATE. For more information about valid platform versions, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.- Returns:
- 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 LaunchTypeisFARGATE. For more information about valid platform versions, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.
 
- 
groupSpecifies an Amazon ECS task group for the task. The maximum length is 255 characters. - Returns:
- Specifies an Amazon ECS task group for the task. The maximum length is 255 characters.
 
- 
hasCapacityProviderStrategypublic final boolean hasCapacityProviderStrategy()For responses, this returns true if the service returned a value for the CapacityProviderStrategy property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
capacityProviderStrategyThe capacity provider strategy to use for the task. If a capacityProviderStrategyis specified, thelaunchTypeparameter must be omitted. If nocapacityProviderStrategyor launchType is specified, thedefaultCapacityProviderStrategyfor the cluster is used.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasCapacityProviderStrategy()method.- Returns:
- The capacity provider strategy to use for the task.
         If a capacityProviderStrategyis specified, thelaunchTypeparameter must be omitted. If nocapacityProviderStrategyor launchType is specified, thedefaultCapacityProviderStrategyfor the cluster is used.
 
- 
enableECSManagedTagsSpecifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide. - Returns:
- Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.
 
- 
enableExecuteCommandWhether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task. - Returns:
- Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task.
 
- 
hasPlacementConstraintspublic final boolean hasPlacementConstraints()For responses, this returns true if the service returned a value for the PlacementConstraints property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
placementConstraintsAn array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasPlacementConstraints()method.- Returns:
- An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime).
 
- 
hasPlacementStrategypublic final boolean hasPlacementStrategy()For responses, this returns true if the service returned a value for the PlacementStrategy property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
placementStrategyThe placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasPlacementStrategy()method.- Returns:
- The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
 
- 
propagateTagsSpecifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after task creation, use the TagResourceAPI action.If the service returns an enum value that is not available in the current SDK version, propagateTagswill returnPropagateTags.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompropagateTagsAsString().- Returns:
- Specifies whether to propagate the tags from the task definition to the task. If no value is specified,
         the tags are not propagated. Tags can only be propagated to the task during task creation. To add tags to
         a task after task creation, use the TagResourceAPI action.
- See Also:
 
- 
propagateTagsAsStringSpecifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. To add tags to a task after task creation, use the TagResourceAPI action.If the service returns an enum value that is not available in the current SDK version, propagateTagswill returnPropagateTags.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompropagateTagsAsString().- Returns:
- Specifies whether to propagate the tags from the task definition to the task. If no value is specified,
         the tags are not propagated. Tags can only be propagated to the task during task creation. To add tags to
         a task after task creation, use the TagResourceAPI action.
- See Also:
 
- 
referenceIdThe reference ID to use for the task. - Returns:
- The reference ID to use for the task.
 
- 
overridesThe overrides that are associated with a task. - Returns:
- The overrides that are associated with a task.
 
- 
hasTagspublic final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
tagsThe metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTags()method.- Returns:
- The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<PipeTargetEcsTaskParameters.Builder,- PipeTargetEcsTaskParameters> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-