All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.ecs.CfnServiceProps Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.ecs;

/**
 * Properties for defining a `CfnService`.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.ecs.*;
 * CfnServiceProps cfnServiceProps = CfnServiceProps.builder()
 *         .capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()
 *                 .base(123)
 *                 .capacityProvider("capacityProvider")
 *                 .weight(123)
 *                 .build()))
 *         .cluster("cluster")
 *         .deploymentConfiguration(DeploymentConfigurationProperty.builder()
 *                 .deploymentCircuitBreaker(DeploymentCircuitBreakerProperty.builder()
 *                         .enable(false)
 *                         .rollback(false)
 *                         .build())
 *                 .maximumPercent(123)
 *                 .minimumHealthyPercent(123)
 *                 .build())
 *         .deploymentController(DeploymentControllerProperty.builder()
 *                 .type("type")
 *                 .build())
 *         .desiredCount(123)
 *         .enableEcsManagedTags(false)
 *         .enableExecuteCommand(false)
 *         .healthCheckGracePeriodSeconds(123)
 *         .launchType("launchType")
 *         .loadBalancers(List.of(LoadBalancerProperty.builder()
 *                 .containerPort(123)
 *                 // the properties below are optional
 *                 .containerName("containerName")
 *                 .loadBalancerName("loadBalancerName")
 *                 .targetGroupArn("targetGroupArn")
 *                 .build()))
 *         .networkConfiguration(NetworkConfigurationProperty.builder()
 *                 .awsvpcConfiguration(AwsVpcConfigurationProperty.builder()
 *                         .subnets(List.of("subnets"))
 *                         // the properties below are optional
 *                         .assignPublicIp("assignPublicIp")
 *                         .securityGroups(List.of("securityGroups"))
 *                         .build())
 *                 .build())
 *         .placementConstraints(List.of(PlacementConstraintProperty.builder()
 *                 .type("type")
 *                 // the properties below are optional
 *                 .expression("expression")
 *                 .build()))
 *         .placementStrategies(List.of(PlacementStrategyProperty.builder()
 *                 .type("type")
 *                 // the properties below are optional
 *                 .field("field")
 *                 .build()))
 *         .platformVersion("platformVersion")
 *         .propagateTags("propagateTags")
 *         .role("role")
 *         .schedulingStrategy("schedulingStrategy")
 *         .serviceName("serviceName")
 *         .serviceRegistries(List.of(ServiceRegistryProperty.builder()
 *                 .containerName("containerName")
 *                 .containerPort(123)
 *                 .port(123)
 *                 .registryArn("registryArn")
 *                 .build()))
 *         .tags(List.of(CfnTag.builder()
 *                 .key("key")
 *                 .value("value")
 *                 .build()))
 *         .taskDefinition("taskDefinition")
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.52.1 (build 5ccc8f6)", date = "2022-01-20T19:50:05.421Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ecs.$Module.class, fqn = "@aws-cdk/aws-ecs.CfnServiceProps") @software.amazon.jsii.Jsii.Proxy(CfnServiceProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface CfnServiceProps extends software.amazon.jsii.JsiiSerializable { /** * The capacity provider strategy to use for the service. *

* A capacity provider strategy consists of one or more capacity providers along with the base and weight to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. *

* Review the Capacity provider considerations in the Amazon Elastic Container Service Developer Guide. *

* If a capacityProviderStrategy is specified, the launchType parameter must be omitted. If no capacityProviderStrategy or launchType is specified, the defaultCapacityProviderStrategy for the cluster is used. *

* If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation. *

* To use an AWS Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used. *

* The PutClusterCapacityProviders API operation is used to update the list of available capacity providers for a cluster after the cluster is created. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getCapacityProviderStrategy() { return null; } /** * The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. *

* If you do not specify a cluster, the default cluster is assumed. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getCluster() { return null; } /** * Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getDeploymentConfiguration() { return null; } /** * The deployment controller to use for the service. *

* If no deployment controller is specified, the default value of ECS is used. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getDeploymentController() { return null; } /** * The number of instantiations of the specified task definition to place and keep running on your cluster. *

* For new services, if a desired count is not specified, a default value of 1 is used. When using the DAEMON scheduling strategy, the desired count is not required. *

* For existing services, if a desired count is not specified, it is omitted from the operation. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getDesiredCount() { return null; } /** * Specifies whether to enable Amazon ECS managed tags for the tasks within the service. *

* For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getEnableEcsManagedTags() { return null; } /** * Determines whether the execute command functionality is enabled for the service. *

* If true , the execute command functionality is enabled for all containers in tasks as part of the service. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getEnableExecuteCommand() { return null; } /** * The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. *

* This is only used when your service is configured to use a load balancer. If your service has a load balancer defined and you don't specify a health check grace period value, the default value of 0 is used. *

* If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getHealthCheckGracePeriodSeconds() { return null; } /** * The launch type on which to run your service. *

* For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getLaunchType() { return null; } /** * A list of load balancer objects to associate with the service. *

* If you specify the Role property, LoadBalancers must be specified as well. For information about the number of load balancers that you can specify per service, see Service Load Balancing in the Amazon Elastic Container Service Developer Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getLoadBalancers() { return null; } /** * The network configuration for the service. *

* This parameter is required for task definitions that use the awsvpc network mode to receive their own elastic network interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getNetworkConfiguration() { return null; } /** * An array of placement constraint objects to use for tasks in your service. *

* You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getPlacementConstraints() { return null; } /** * The placement strategy objects to use for tasks in your service. *

* You can specify a maximum of five strategy rules per service. For more information, see Task Placement Strategies in the Amazon Elastic Container Service Developer Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getPlacementStrategies() { return null; } /** * The platform version that your tasks in the service are running on. *

* A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the LATEST platform version is used. For more information, see AWS Fargate platform versions in the Amazon Elastic Container Service Developer Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getPlatformVersion() { return null; } /** * Specifies whether to propagate the tags from the task definition or the service to the tasks in the service. *

* If no value is specified, the tags are not propagated. Tags can only be propagated to the tasks within the service during service creation. To add tags to a task after service creation, use the TagResource API action. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getPropagateTags() { return null; } /** * The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. *

* This parameter is only permitted if you are using a load balancer with your service and your task definition doesn't use the awsvpc network mode. If you specify the role parameter, you must also specify a load balancer object with the loadBalancers parameter. *

*

*

* If your account has already created the Amazon ECS service-linked role, that role is used for your service unless you specify a role here. The service-linked role is required if your task definition uses the awsvpc network mode or if the service is configured to use service discovery, an external deployment controller, multiple target groups, or Elastic Inference accelerators in which case you don't specify a role here. For more information, see Using service-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide . *

*

*

* If your specified role has a path other than / , then you must either specify the full role ARN (this is recommended) or prefix the role name with the path. For example, if a role with the name bar has a path of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly names and paths in the IAM User Guide . */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getRole() { return null; } /** * The scheduling strategy to use for the service. For more information, see [Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html) . *

* There are two service scheduler strategies available: *

*

    *
  • REPLICA -The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions. This scheduler strategy is required if the service uses the CODE_DEPLOY or EXTERNAL deployment controller types.
  • *
  • DAEMON -The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks and will stop tasks that don't meet the placement constraints. When you're using this strategy, you don't need to specify a desired number of tasks, a task placement strategy, or use Service Auto Scaling policies.
  • *
*

*

*

* Tasks using the Fargate launch type or the CODE_DEPLOY or EXTERNAL deployment controller types don't support the DAEMON scheduling strategy. *

*

*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getSchedulingStrategy() { return null; } /** * The name of your service. *

* Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a Region or across multiple Regions. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getServiceName() { return null; } /** * The details of the service discovery registry to associate with this service. For more information, see [Service discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html) . *

*

*

* Each service may be associated with one service registry. Multiple service registries for each service isn't supported. *

*

*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getServiceRegistries() { return null; } /** * The metadata that you apply to the service to help you categorize and organize them. *

* Each tag consists of a key and an optional value, both of which you define. When a service is deleted, the tags are deleted as well. *

* The following basic restrictions apply to tags: *

*

    *
  • Maximum number of tags per resource - 50
  • *
  • For each resource, each tag key must be unique, and each tag key can have only one value.
  • *
  • Maximum key length - 128 Unicode characters in UTF-8
  • *
  • Maximum value length - 256 Unicode characters in UTF-8
  • *
  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
  • *
  • Tag keys and values are case-sensitive.
  • *
  • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
  • *
*/ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** * The `family` and `revision` ( `family:revision` ) or full ARN of the task definition to run in your service. *

* The revision is required in order for the resource to stabilize. *

* A task definition must be specified if the service is using either the ECS or CODE_DEPLOY deployment controllers. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getTaskDefinition() { return null; } /** * @return a {@link Builder} of {@link CfnServiceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnServiceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object capacityProviderStrategy; java.lang.String cluster; java.lang.Object deploymentConfiguration; java.lang.Object deploymentController; java.lang.Number desiredCount; java.lang.Object enableEcsManagedTags; java.lang.Object enableExecuteCommand; java.lang.Number healthCheckGracePeriodSeconds; java.lang.String launchType; java.lang.Object loadBalancers; java.lang.Object networkConfiguration; java.lang.Object placementConstraints; java.lang.Object placementStrategies; java.lang.String platformVersion; java.lang.String propagateTags; java.lang.String role; java.lang.String schedulingStrategy; java.lang.String serviceName; java.lang.Object serviceRegistries; java.util.List tags; java.lang.String taskDefinition; /** * Sets the value of {@link CfnServiceProps#getCapacityProviderStrategy} * @param capacityProviderStrategy The capacity provider strategy to use for the service. * A capacity provider strategy consists of one or more capacity providers along with the base and weight to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. *

* Review the Capacity provider considerations in the Amazon Elastic Container Service Developer Guide. *

* If a capacityProviderStrategy is specified, the launchType parameter must be omitted. If no capacityProviderStrategy or launchType is specified, the defaultCapacityProviderStrategy for the cluster is used. *

* If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation. *

* To use an AWS Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used. *

* The PutClusterCapacityProviders API operation is used to update the list of available capacity providers for a cluster after the cluster is created. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder capacityProviderStrategy(software.amazon.awscdk.core.IResolvable capacityProviderStrategy) { this.capacityProviderStrategy = capacityProviderStrategy; return this; } /** * Sets the value of {@link CfnServiceProps#getCapacityProviderStrategy} * @param capacityProviderStrategy The capacity provider strategy to use for the service. * A capacity provider strategy consists of one or more capacity providers along with the base and weight to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. *

* Review the Capacity provider considerations in the Amazon Elastic Container Service Developer Guide. *

* If a capacityProviderStrategy is specified, the launchType parameter must be omitted. If no capacityProviderStrategy or launchType is specified, the defaultCapacityProviderStrategy for the cluster is used. *

* If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the CreateCapacityProvider API operation. *

* To use an AWS Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity providers. The AWS Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used. *

* The PutClusterCapacityProviders API operation is used to update the list of available capacity providers for a cluster after the cluster is created. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder capacityProviderStrategy(java.util.List capacityProviderStrategy) { this.capacityProviderStrategy = capacityProviderStrategy; return this; } /** * Sets the value of {@link CfnServiceProps#getCluster} * @param cluster The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. * If you do not specify a cluster, the default cluster is assumed. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder cluster(java.lang.String cluster) { this.cluster = cluster; return this; } /** * Sets the value of {@link CfnServiceProps#getDeploymentConfiguration} * @param deploymentConfiguration Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder deploymentConfiguration(software.amazon.awscdk.core.IResolvable deploymentConfiguration) { this.deploymentConfiguration = deploymentConfiguration; return this; } /** * Sets the value of {@link CfnServiceProps#getDeploymentConfiguration} * @param deploymentConfiguration Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder deploymentConfiguration(software.amazon.awscdk.services.ecs.CfnService.DeploymentConfigurationProperty deploymentConfiguration) { this.deploymentConfiguration = deploymentConfiguration; return this; } /** * Sets the value of {@link CfnServiceProps#getDeploymentController} * @param deploymentController The deployment controller to use for the service. * If no deployment controller is specified, the default value of ECS is used. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder deploymentController(software.amazon.awscdk.core.IResolvable deploymentController) { this.deploymentController = deploymentController; return this; } /** * Sets the value of {@link CfnServiceProps#getDeploymentController} * @param deploymentController The deployment controller to use for the service. * If no deployment controller is specified, the default value of ECS is used. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder deploymentController(software.amazon.awscdk.services.ecs.CfnService.DeploymentControllerProperty deploymentController) { this.deploymentController = deploymentController; return this; } /** * Sets the value of {@link CfnServiceProps#getDesiredCount} * @param desiredCount The number of instantiations of the specified task definition to place and keep running on your cluster. * For new services, if a desired count is not specified, a default value of 1 is used. When using the DAEMON scheduling strategy, the desired count is not required. *

* For existing services, if a desired count is not specified, it is omitted from the operation. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder desiredCount(java.lang.Number desiredCount) { this.desiredCount = desiredCount; return this; } /** * Sets the value of {@link CfnServiceProps#getEnableEcsManagedTags} * @param enableEcsManagedTags Specifies whether to enable Amazon ECS managed tags for the tasks within the service. * For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder enableEcsManagedTags(java.lang.Boolean enableEcsManagedTags) { this.enableEcsManagedTags = enableEcsManagedTags; return this; } /** * Sets the value of {@link CfnServiceProps#getEnableEcsManagedTags} * @param enableEcsManagedTags Specifies whether to enable Amazon ECS managed tags for the tasks within the service. * For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder enableEcsManagedTags(software.amazon.awscdk.core.IResolvable enableEcsManagedTags) { this.enableEcsManagedTags = enableEcsManagedTags; return this; } /** * Sets the value of {@link CfnServiceProps#getEnableExecuteCommand} * @param enableExecuteCommand Determines whether the execute command functionality is enabled for the service. * If true , the execute command functionality is enabled for all containers in tasks as part of the service. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder enableExecuteCommand(java.lang.Boolean enableExecuteCommand) { this.enableExecuteCommand = enableExecuteCommand; return this; } /** * Sets the value of {@link CfnServiceProps#getEnableExecuteCommand} * @param enableExecuteCommand Determines whether the execute command functionality is enabled for the service. * If true , the execute command functionality is enabled for all containers in tasks as part of the service. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder enableExecuteCommand(software.amazon.awscdk.core.IResolvable enableExecuteCommand) { this.enableExecuteCommand = enableExecuteCommand; return this; } /** * Sets the value of {@link CfnServiceProps#getHealthCheckGracePeriodSeconds} * @param healthCheckGracePeriodSeconds The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started. * This is only used when your service is configured to use a load balancer. If your service has a load balancer defined and you don't specify a health check grace period value, the default value of 0 is used. *

* If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 2,147,483,647 seconds (about 69 years). During that time, the Amazon ECS service scheduler ignores health check status. This grace period can prevent the service scheduler from marking tasks as unhealthy and stopping them before they have time to come up. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder healthCheckGracePeriodSeconds(java.lang.Number healthCheckGracePeriodSeconds) { this.healthCheckGracePeriodSeconds = healthCheckGracePeriodSeconds; return this; } /** * Sets the value of {@link CfnServiceProps#getLaunchType} * @param launchType The launch type on which to run your service. * For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder launchType(java.lang.String launchType) { this.launchType = launchType; return this; } /** * Sets the value of {@link CfnServiceProps#getLoadBalancers} * @param loadBalancers A list of load balancer objects to associate with the service. * If you specify the Role property, LoadBalancers must be specified as well. For information about the number of load balancers that you can specify per service, see Service Load Balancing in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder loadBalancers(software.amazon.awscdk.core.IResolvable loadBalancers) { this.loadBalancers = loadBalancers; return this; } /** * Sets the value of {@link CfnServiceProps#getLoadBalancers} * @param loadBalancers A list of load balancer objects to associate with the service. * If you specify the Role property, LoadBalancers must be specified as well. For information about the number of load balancers that you can specify per service, see Service Load Balancing in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder loadBalancers(java.util.List loadBalancers) { this.loadBalancers = loadBalancers; return this; } /** * Sets the value of {@link CfnServiceProps#getNetworkConfiguration} * @param networkConfiguration The network configuration for the service. * This parameter is required for task definitions that use the awsvpc network mode to receive their own elastic network interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder networkConfiguration(software.amazon.awscdk.core.IResolvable networkConfiguration) { this.networkConfiguration = networkConfiguration; return this; } /** * Sets the value of {@link CfnServiceProps#getNetworkConfiguration} * @param networkConfiguration The network configuration for the service. * This parameter is required for task definitions that use the awsvpc network mode to receive their own elastic network interface, and it is not supported for other network modes. For more information, see Task Networking in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder networkConfiguration(software.amazon.awscdk.services.ecs.CfnService.NetworkConfigurationProperty networkConfiguration) { this.networkConfiguration = networkConfiguration; return this; } /** * Sets the value of {@link CfnServiceProps#getPlacementConstraints} * @param placementConstraints An array of placement constraint objects to use for tasks in your service. * You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder placementConstraints(software.amazon.awscdk.core.IResolvable placementConstraints) { this.placementConstraints = placementConstraints; return this; } /** * Sets the value of {@link CfnServiceProps#getPlacementConstraints} * @param placementConstraints An array of placement constraint objects to use for tasks in your service. * You can specify a maximum of 10 constraints for each task. This limit includes constraints in the task definition and those specified at runtime. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder placementConstraints(java.util.List placementConstraints) { this.placementConstraints = placementConstraints; return this; } /** * Sets the value of {@link CfnServiceProps#getPlacementStrategies} * @param placementStrategies The placement strategy objects to use for tasks in your service. * You can specify a maximum of five strategy rules per service. For more information, see Task Placement Strategies in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder placementStrategies(software.amazon.awscdk.core.IResolvable placementStrategies) { this.placementStrategies = placementStrategies; return this; } /** * Sets the value of {@link CfnServiceProps#getPlacementStrategies} * @param placementStrategies The placement strategy objects to use for tasks in your service. * You can specify a maximum of five strategy rules per service. For more information, see Task Placement Strategies in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder placementStrategies(java.util.List placementStrategies) { this.placementStrategies = placementStrategies; return this; } /** * Sets the value of {@link CfnServiceProps#getPlatformVersion} * @param platformVersion The platform version that your tasks in the service are running on. * A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the LATEST platform version is used. For more information, see AWS Fargate platform versions in the Amazon Elastic Container Service Developer Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder platformVersion(java.lang.String platformVersion) { this.platformVersion = platformVersion; return this; } /** * Sets the value of {@link CfnServiceProps#getPropagateTags} * @param propagateTags Specifies whether to propagate the tags from the task definition or the service to the tasks in the service. * If no value is specified, the tags are not propagated. Tags can only be propagated to the tasks within the service during service creation. To add tags to a task after service creation, use the TagResource API action. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder propagateTags(java.lang.String propagateTags) { this.propagateTags = propagateTags; return this; } /** * Sets the value of {@link CfnServiceProps#getRole} * @param role The name or full Amazon Resource Name (ARN) of the IAM role that allows Amazon ECS to make calls to your load balancer on your behalf. * This parameter is only permitted if you are using a load balancer with your service and your task definition doesn't use the awsvpc network mode. If you specify the role parameter, you must also specify a load balancer object with the loadBalancers parameter. *

*

*

* If your account has already created the Amazon ECS service-linked role, that role is used for your service unless you specify a role here. The service-linked role is required if your task definition uses the awsvpc network mode or if the service is configured to use service discovery, an external deployment controller, multiple target groups, or Elastic Inference accelerators in which case you don't specify a role here. For more information, see Using service-linked roles for Amazon ECS in the Amazon Elastic Container Service Developer Guide . *

*

*

* If your specified role has a path other than / , then you must either specify the full role ARN (this is recommended) or prefix the role name with the path. For example, if a role with the name bar has a path of /foo/ then you would specify /foo/bar as the role name. For more information, see Friendly names and paths in the IAM User Guide . * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder role(java.lang.String role) { this.role = role; return this; } /** * Sets the value of {@link CfnServiceProps#getSchedulingStrategy} * @param schedulingStrategy The scheduling strategy to use for the service. For more information, see [Services](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html) . * There are two service scheduler strategies available: *

*

    *
  • REPLICA -The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions. This scheduler strategy is required if the service uses the CODE_DEPLOY or EXTERNAL deployment controller types.
  • *
  • DAEMON -The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks and will stop tasks that don't meet the placement constraints. When you're using this strategy, you don't need to specify a desired number of tasks, a task placement strategy, or use Service Auto Scaling policies.
  • *
*

*

*

* Tasks using the Fargate launch type or the CODE_DEPLOY or EXTERNAL deployment controller types don't support the DAEMON scheduling strategy. *

*

* @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder schedulingStrategy(java.lang.String schedulingStrategy) { this.schedulingStrategy = schedulingStrategy; return this; } /** * Sets the value of {@link CfnServiceProps#getServiceName} * @param serviceName The name of your service. * Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a Region or across multiple Regions. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder serviceName(java.lang.String serviceName) { this.serviceName = serviceName; return this; } /** * Sets the value of {@link CfnServiceProps#getServiceRegistries} * @param serviceRegistries The details of the service discovery registry to associate with this service. For more information, see [Service discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html) . *
*

* Each service may be associated with one service registry. Multiple service registries for each service isn't supported. *

*

* @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder serviceRegistries(software.amazon.awscdk.core.IResolvable serviceRegistries) { this.serviceRegistries = serviceRegistries; return this; } /** * Sets the value of {@link CfnServiceProps#getServiceRegistries} * @param serviceRegistries The details of the service discovery registry to associate with this service. For more information, see [Service discovery](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html) . *
*

* Each service may be associated with one service registry. Multiple service registries for each service isn't supported. *

*

* @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder serviceRegistries(java.util.List serviceRegistries) { this.serviceRegistries = serviceRegistries; return this; } /** * Sets the value of {@link CfnServiceProps#getTags} * @param tags The metadata that you apply to the service to help you categorize and organize them. * Each tag consists of a key and an optional value, both of which you define. When a service is deleted, the tags are deleted as well. *

* The following basic restrictions apply to tags: *

*

    *
  • Maximum number of tags per resource - 50
  • *
  • For each resource, each tag key must be unique, and each tag key can have only one value.
  • *
  • Maximum key length - 128 Unicode characters in UTF-8
  • *
  • Maximum value length - 256 Unicode characters in UTF-8
  • *
  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
  • *
  • Tag keys and values are case-sensitive.
  • *
  • Do not use aws: , AWS: , or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
  • *
* @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder tags(java.util.List tags) { this.tags = (java.util.List)tags; return this; } /** * Sets the value of {@link CfnServiceProps#getTaskDefinition} * @param taskDefinition The `family` and `revision` ( `family:revision` ) or full ARN of the task definition to run in your service. * The revision is required in order for the resource to stabilize. *

* A task definition must be specified if the service is using either the ECS or CODE_DEPLOY deployment controllers. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder taskDefinition(java.lang.String taskDefinition) { this.taskDefinition = taskDefinition; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnServiceProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnServiceProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnServiceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnServiceProps { private final java.lang.Object capacityProviderStrategy; private final java.lang.String cluster; private final java.lang.Object deploymentConfiguration; private final java.lang.Object deploymentController; private final java.lang.Number desiredCount; private final java.lang.Object enableEcsManagedTags; private final java.lang.Object enableExecuteCommand; private final java.lang.Number healthCheckGracePeriodSeconds; private final java.lang.String launchType; private final java.lang.Object loadBalancers; private final java.lang.Object networkConfiguration; private final java.lang.Object placementConstraints; private final java.lang.Object placementStrategies; private final java.lang.String platformVersion; private final java.lang.String propagateTags; private final java.lang.String role; private final java.lang.String schedulingStrategy; private final java.lang.String serviceName; private final java.lang.Object serviceRegistries; private final java.util.List tags; private final java.lang.String taskDefinition; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.capacityProviderStrategy = software.amazon.jsii.Kernel.get(this, "capacityProviderStrategy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.cluster = software.amazon.jsii.Kernel.get(this, "cluster", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.deploymentConfiguration = software.amazon.jsii.Kernel.get(this, "deploymentConfiguration", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.deploymentController = software.amazon.jsii.Kernel.get(this, "deploymentController", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.desiredCount = software.amazon.jsii.Kernel.get(this, "desiredCount", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.enableEcsManagedTags = software.amazon.jsii.Kernel.get(this, "enableEcsManagedTags", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.enableExecuteCommand = software.amazon.jsii.Kernel.get(this, "enableExecuteCommand", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.healthCheckGracePeriodSeconds = software.amazon.jsii.Kernel.get(this, "healthCheckGracePeriodSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.launchType = software.amazon.jsii.Kernel.get(this, "launchType", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.loadBalancers = software.amazon.jsii.Kernel.get(this, "loadBalancers", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.networkConfiguration = software.amazon.jsii.Kernel.get(this, "networkConfiguration", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.placementConstraints = software.amazon.jsii.Kernel.get(this, "placementConstraints", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.placementStrategies = software.amazon.jsii.Kernel.get(this, "placementStrategies", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.platformVersion = software.amazon.jsii.Kernel.get(this, "platformVersion", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.propagateTags = software.amazon.jsii.Kernel.get(this, "propagateTags", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.role = software.amazon.jsii.Kernel.get(this, "role", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.schedulingStrategy = software.amazon.jsii.Kernel.get(this, "schedulingStrategy", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.serviceName = software.amazon.jsii.Kernel.get(this, "serviceName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.serviceRegistries = software.amazon.jsii.Kernel.get(this, "serviceRegistries", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.CfnTag.class))); this.taskDefinition = software.amazon.jsii.Kernel.get(this, "taskDefinition", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ @SuppressWarnings("unchecked") protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.capacityProviderStrategy = builder.capacityProviderStrategy; this.cluster = builder.cluster; this.deploymentConfiguration = builder.deploymentConfiguration; this.deploymentController = builder.deploymentController; this.desiredCount = builder.desiredCount; this.enableEcsManagedTags = builder.enableEcsManagedTags; this.enableExecuteCommand = builder.enableExecuteCommand; this.healthCheckGracePeriodSeconds = builder.healthCheckGracePeriodSeconds; this.launchType = builder.launchType; this.loadBalancers = builder.loadBalancers; this.networkConfiguration = builder.networkConfiguration; this.placementConstraints = builder.placementConstraints; this.placementStrategies = builder.placementStrategies; this.platformVersion = builder.platformVersion; this.propagateTags = builder.propagateTags; this.role = builder.role; this.schedulingStrategy = builder.schedulingStrategy; this.serviceName = builder.serviceName; this.serviceRegistries = builder.serviceRegistries; this.tags = (java.util.List)builder.tags; this.taskDefinition = builder.taskDefinition; } @Override public final java.lang.Object getCapacityProviderStrategy() { return this.capacityProviderStrategy; } @Override public final java.lang.String getCluster() { return this.cluster; } @Override public final java.lang.Object getDeploymentConfiguration() { return this.deploymentConfiguration; } @Override public final java.lang.Object getDeploymentController() { return this.deploymentController; } @Override public final java.lang.Number getDesiredCount() { return this.desiredCount; } @Override public final java.lang.Object getEnableEcsManagedTags() { return this.enableEcsManagedTags; } @Override public final java.lang.Object getEnableExecuteCommand() { return this.enableExecuteCommand; } @Override public final java.lang.Number getHealthCheckGracePeriodSeconds() { return this.healthCheckGracePeriodSeconds; } @Override public final java.lang.String getLaunchType() { return this.launchType; } @Override public final java.lang.Object getLoadBalancers() { return this.loadBalancers; } @Override public final java.lang.Object getNetworkConfiguration() { return this.networkConfiguration; } @Override public final java.lang.Object getPlacementConstraints() { return this.placementConstraints; } @Override public final java.lang.Object getPlacementStrategies() { return this.placementStrategies; } @Override public final java.lang.String getPlatformVersion() { return this.platformVersion; } @Override public final java.lang.String getPropagateTags() { return this.propagateTags; } @Override public final java.lang.String getRole() { return this.role; } @Override public final java.lang.String getSchedulingStrategy() { return this.schedulingStrategy; } @Override public final java.lang.String getServiceName() { return this.serviceName; } @Override public final java.lang.Object getServiceRegistries() { return this.serviceRegistries; } @Override public final java.util.List getTags() { return this.tags; } @Override public final java.lang.String getTaskDefinition() { return this.taskDefinition; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getCapacityProviderStrategy() != null) { data.set("capacityProviderStrategy", om.valueToTree(this.getCapacityProviderStrategy())); } if (this.getCluster() != null) { data.set("cluster", om.valueToTree(this.getCluster())); } if (this.getDeploymentConfiguration() != null) { data.set("deploymentConfiguration", om.valueToTree(this.getDeploymentConfiguration())); } if (this.getDeploymentController() != null) { data.set("deploymentController", om.valueToTree(this.getDeploymentController())); } if (this.getDesiredCount() != null) { data.set("desiredCount", om.valueToTree(this.getDesiredCount())); } if (this.getEnableEcsManagedTags() != null) { data.set("enableEcsManagedTags", om.valueToTree(this.getEnableEcsManagedTags())); } if (this.getEnableExecuteCommand() != null) { data.set("enableExecuteCommand", om.valueToTree(this.getEnableExecuteCommand())); } if (this.getHealthCheckGracePeriodSeconds() != null) { data.set("healthCheckGracePeriodSeconds", om.valueToTree(this.getHealthCheckGracePeriodSeconds())); } if (this.getLaunchType() != null) { data.set("launchType", om.valueToTree(this.getLaunchType())); } if (this.getLoadBalancers() != null) { data.set("loadBalancers", om.valueToTree(this.getLoadBalancers())); } if (this.getNetworkConfiguration() != null) { data.set("networkConfiguration", om.valueToTree(this.getNetworkConfiguration())); } if (this.getPlacementConstraints() != null) { data.set("placementConstraints", om.valueToTree(this.getPlacementConstraints())); } if (this.getPlacementStrategies() != null) { data.set("placementStrategies", om.valueToTree(this.getPlacementStrategies())); } if (this.getPlatformVersion() != null) { data.set("platformVersion", om.valueToTree(this.getPlatformVersion())); } if (this.getPropagateTags() != null) { data.set("propagateTags", om.valueToTree(this.getPropagateTags())); } if (this.getRole() != null) { data.set("role", om.valueToTree(this.getRole())); } if (this.getSchedulingStrategy() != null) { data.set("schedulingStrategy", om.valueToTree(this.getSchedulingStrategy())); } if (this.getServiceName() != null) { data.set("serviceName", om.valueToTree(this.getServiceName())); } if (this.getServiceRegistries() != null) { data.set("serviceRegistries", om.valueToTree(this.getServiceRegistries())); } if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } if (this.getTaskDefinition() != null) { data.set("taskDefinition", om.valueToTree(this.getTaskDefinition())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-ecs.CfnServiceProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CfnServiceProps.Jsii$Proxy that = (CfnServiceProps.Jsii$Proxy) o; if (this.capacityProviderStrategy != null ? !this.capacityProviderStrategy.equals(that.capacityProviderStrategy) : that.capacityProviderStrategy != null) return false; if (this.cluster != null ? !this.cluster.equals(that.cluster) : that.cluster != null) return false; if (this.deploymentConfiguration != null ? !this.deploymentConfiguration.equals(that.deploymentConfiguration) : that.deploymentConfiguration != null) return false; if (this.deploymentController != null ? !this.deploymentController.equals(that.deploymentController) : that.deploymentController != null) return false; if (this.desiredCount != null ? !this.desiredCount.equals(that.desiredCount) : that.desiredCount != null) return false; if (this.enableEcsManagedTags != null ? !this.enableEcsManagedTags.equals(that.enableEcsManagedTags) : that.enableEcsManagedTags != null) return false; if (this.enableExecuteCommand != null ? !this.enableExecuteCommand.equals(that.enableExecuteCommand) : that.enableExecuteCommand != null) return false; if (this.healthCheckGracePeriodSeconds != null ? !this.healthCheckGracePeriodSeconds.equals(that.healthCheckGracePeriodSeconds) : that.healthCheckGracePeriodSeconds != null) return false; if (this.launchType != null ? !this.launchType.equals(that.launchType) : that.launchType != null) return false; if (this.loadBalancers != null ? !this.loadBalancers.equals(that.loadBalancers) : that.loadBalancers != null) return false; if (this.networkConfiguration != null ? !this.networkConfiguration.equals(that.networkConfiguration) : that.networkConfiguration != null) return false; if (this.placementConstraints != null ? !this.placementConstraints.equals(that.placementConstraints) : that.placementConstraints != null) return false; if (this.placementStrategies != null ? !this.placementStrategies.equals(that.placementStrategies) : that.placementStrategies != null) return false; if (this.platformVersion != null ? !this.platformVersion.equals(that.platformVersion) : that.platformVersion != null) return false; if (this.propagateTags != null ? !this.propagateTags.equals(that.propagateTags) : that.propagateTags != null) return false; if (this.role != null ? !this.role.equals(that.role) : that.role != null) return false; if (this.schedulingStrategy != null ? !this.schedulingStrategy.equals(that.schedulingStrategy) : that.schedulingStrategy != null) return false; if (this.serviceName != null ? !this.serviceName.equals(that.serviceName) : that.serviceName != null) return false; if (this.serviceRegistries != null ? !this.serviceRegistries.equals(that.serviceRegistries) : that.serviceRegistries != null) return false; if (this.tags != null ? !this.tags.equals(that.tags) : that.tags != null) return false; return this.taskDefinition != null ? this.taskDefinition.equals(that.taskDefinition) : that.taskDefinition == null; } @Override public final int hashCode() { int result = this.capacityProviderStrategy != null ? this.capacityProviderStrategy.hashCode() : 0; result = 31 * result + (this.cluster != null ? this.cluster.hashCode() : 0); result = 31 * result + (this.deploymentConfiguration != null ? this.deploymentConfiguration.hashCode() : 0); result = 31 * result + (this.deploymentController != null ? this.deploymentController.hashCode() : 0); result = 31 * result + (this.desiredCount != null ? this.desiredCount.hashCode() : 0); result = 31 * result + (this.enableEcsManagedTags != null ? this.enableEcsManagedTags.hashCode() : 0); result = 31 * result + (this.enableExecuteCommand != null ? this.enableExecuteCommand.hashCode() : 0); result = 31 * result + (this.healthCheckGracePeriodSeconds != null ? this.healthCheckGracePeriodSeconds.hashCode() : 0); result = 31 * result + (this.launchType != null ? this.launchType.hashCode() : 0); result = 31 * result + (this.loadBalancers != null ? this.loadBalancers.hashCode() : 0); result = 31 * result + (this.networkConfiguration != null ? this.networkConfiguration.hashCode() : 0); result = 31 * result + (this.placementConstraints != null ? this.placementConstraints.hashCode() : 0); result = 31 * result + (this.placementStrategies != null ? this.placementStrategies.hashCode() : 0); result = 31 * result + (this.platformVersion != null ? this.platformVersion.hashCode() : 0); result = 31 * result + (this.propagateTags != null ? this.propagateTags.hashCode() : 0); result = 31 * result + (this.role != null ? this.role.hashCode() : 0); result = 31 * result + (this.schedulingStrategy != null ? this.schedulingStrategy.hashCode() : 0); result = 31 * result + (this.serviceName != null ? this.serviceName.hashCode() : 0); result = 31 * result + (this.serviceRegistries != null ? this.serviceRegistries.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); result = 31 * result + (this.taskDefinition != null ? this.taskDefinition.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy