@Generated(value="software.amazon.awssdk:codegen") public final class AwsEcsServiceDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEcsServiceDetails.Builder,AwsEcsServiceDetails>
Provides details about a service within an ECS cluster.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEcsServiceDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsEcsServiceDetails.Builder |
builder() |
List<AwsEcsServiceCapacityProviderStrategyDetails> |
capacityProviderStrategy()
The capacity provider strategy that the service uses.
|
String |
cluster()
The ARN of the cluster that hosts the service.
|
AwsEcsServiceDeploymentConfigurationDetails |
deploymentConfiguration()
Deployment parameters for the service.
|
AwsEcsServiceDeploymentControllerDetails |
deploymentController()
Contains the deployment controller type that the service uses.
|
Integer |
desiredCount()
The number of instantiations of the task definition to run on the service.
|
Boolean |
enableEcsManagedTags()
Whether to enable Amazon ECS managed tags for the tasks in the service.
|
Boolean |
enableExecuteCommand()
Whether the execute command functionality is enabled for the service.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCapacityProviderStrategy()
For responses, this returns true if the service returned a value for the CapacityProviderStrategy property.
|
int |
hashCode() |
boolean |
hasLoadBalancers()
For responses, this returns true if the service returned a value for the LoadBalancers property.
|
boolean |
hasPlacementConstraints()
For responses, this returns true if the service returned a value for the PlacementConstraints property.
|
boolean |
hasPlacementStrategies()
For responses, this returns true if the service returned a value for the PlacementStrategies property.
|
boolean |
hasServiceRegistries()
For responses, this returns true if the service returned a value for the ServiceRegistries property.
|
Integer |
healthCheckGracePeriodSeconds()
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy
Elastic Load Balancing target health checks.
|
String |
launchType()
The launch type that the service uses.
|
List<AwsEcsServiceLoadBalancersDetails> |
loadBalancers()
Information about the load balancers that the service uses.
|
String |
name()
The name of the service.
|
AwsEcsServiceNetworkConfigurationDetails |
networkConfiguration()
For tasks that use the
awsvpc networking mode, the VPC subnet and security group configuration. |
List<AwsEcsServicePlacementConstraintsDetails> |
placementConstraints()
The placement constraints for the tasks in the service.
|
List<AwsEcsServicePlacementStrategiesDetails> |
placementStrategies()
Information about how tasks for the service are placed.
|
String |
platformVersion()
The platform version on which to run the service.
|
String |
propagateTags()
Indicates whether to propagate the tags from the task definition to the task or from the service to the task.
|
String |
role()
The ARN of the IAM role that is associated with the service.
|
String |
schedulingStrategy()
The scheduling strategy to use for the service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEcsServiceDetails.Builder> |
serializableBuilderClass() |
String |
serviceArn()
The ARN of the service.
|
String |
serviceName()
The name of the service.
|
List<AwsEcsServiceServiceRegistriesDetails> |
serviceRegistries()
Information about the service discovery registries to assign to the service.
|
String |
taskDefinition()
The task definition to use for tasks in the service.
|
AwsEcsServiceDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasCapacityProviderStrategy()
isEmpty() 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.public final List<AwsEcsServiceCapacityProviderStrategyDetails> capacityProviderStrategy()
The capacity provider strategy that the service uses.
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.
public final String cluster()
The ARN of the cluster that hosts the service.
public final AwsEcsServiceDeploymentConfigurationDetails deploymentConfiguration()
Deployment parameters for the service. Includes the number of tasks that run and the order in which to start and stop tasks.
public final AwsEcsServiceDeploymentControllerDetails deploymentController()
Contains the deployment controller type that the service uses.
public final Integer desiredCount()
The number of instantiations of the task definition to run on the service.
public final Boolean enableEcsManagedTags()
Whether to enable Amazon ECS managed tags for the tasks in the service.
public final Boolean enableExecuteCommand()
Whether the execute command functionality is enabled for the service.
public final Integer healthCheckGracePeriodSeconds()
After a task starts, the amount of time in seconds that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks.
public final String launchType()
The launch type that the service uses.
Valid values: EC2 | FARGATE | EXTERNAL
Valid values: EC2 | FARGATE | EXTERNAL
public final boolean hasLoadBalancers()
isEmpty() 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.public final List<AwsEcsServiceLoadBalancersDetails> loadBalancers()
Information about the load balancers that the service uses.
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 hasLoadBalancers() method.
public final String name()
The name of the service.
public final AwsEcsServiceNetworkConfigurationDetails networkConfiguration()
For tasks that use the awsvpc networking mode, the VPC subnet and security group configuration.
awsvpc networking mode, the VPC subnet and security group
configuration.public final boolean hasPlacementConstraints()
isEmpty() 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.public final List<AwsEcsServicePlacementConstraintsDetails> placementConstraints()
The placement constraints for the tasks in the service.
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.
public final boolean hasPlacementStrategies()
isEmpty() 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.public final List<AwsEcsServicePlacementStrategiesDetails> placementStrategies()
Information about how tasks for the service are placed.
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 hasPlacementStrategies() method.
public final String platformVersion()
The platform version on which to run the service. Only specified for tasks that are hosted on Fargate. If a
platform version is not specified, the LATEST platform version is used by default.
LATEST platform version is used by default.public final String propagateTags()
Indicates whether to propagate the tags from the task definition to the task or from the service to the task. If no value is provided, then tags are not propagated.
Valid values: TASK_DEFINITION | SERVICE
Valid values: TASK_DEFINITION | SERVICE
public final String role()
The ARN of the IAM role that is associated with the service. The role allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
public final String schedulingStrategy()
The scheduling strategy to use for the service.
The REPLICA scheduling strategy places and maintains the desired number of tasks across the cluster.
By default, the service scheduler spreads tasks across Availability Zones. Task placement strategies and
constraints are used to customize task placement decisions.
The DAEMON scheduling strategy deploys exactly one task on each active container instance that meets
all of the task placement constraints that are specified in the cluster. The service scheduler also evaluates the
task placement constraints for running tasks and stops tasks that do not meet the placement constraints.
Valid values: REPLICA | DAEMON
The REPLICA scheduling strategy places and maintains the desired number of tasks across the
cluster. By default, the service scheduler spreads tasks across Availability Zones. Task placement
strategies and constraints are used to customize task placement decisions.
The DAEMON scheduling strategy deploys exactly one task on each active container instance
that meets all of the task placement constraints that are specified in the cluster. The service scheduler
also evaluates the task placement constraints for running tasks and stops tasks that do not meet the
placement constraints.
Valid values: REPLICA | DAEMON
public final String serviceArn()
The ARN of the service.
public final String serviceName()
The name of the service.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
The name can contain up to 255 characters. It can use letters, numbers, underscores, and hyphens.
public final boolean hasServiceRegistries()
isEmpty() 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.public final List<AwsEcsServiceServiceRegistriesDetails> serviceRegistries()
Information about the service discovery registries to assign to the service.
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 hasServiceRegistries() method.
public final String taskDefinition()
The task definition to use for tasks in the service.
public AwsEcsServiceDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEcsServiceDetails.Builder,AwsEcsServiceDetails>public static AwsEcsServiceDetails.Builder builder()
public static Class<? extends AwsEcsServiceDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.