import { Value } from '../../cloudformation/Value';
import { PlacementConstraintProps } from './service/PlacementConstraintProps';
import { LoadBalancerProps } from './service/LoadBalancerProps';
import { ServiceConnectConfigurationProps } from './service/ServiceConnectConfigurationProps';
import { PlacementStrategyProps } from './service/PlacementStrategyProps';
import { DeploymentControllerProps } from './service/DeploymentControllerProps';
import { ServiceRegistryProps } from './service/ServiceRegistryProps';
import { CapacityProviderStrategyItemProps } from './service/CapacityProviderStrategyItemProps';
import { NetworkConfigurationProps } from './service/NetworkConfigurationProps';
import { DeploymentConfigurationProps } from './service/DeploymentConfigurationProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type ServiceAttributes = {
    ServiceArn: Attribute<string>;
    Name: Attribute<string>;
};
export type Service = AwsResource<'AWS::ECS::Service', ServiceProperties, ServiceAttributes>;
/**
  The <code>AWS::ECS::Service</code> resource creates an Amazon Elastic Container Service (Amazon ECS) service that runs and maintains the requested number of tasks and associated load balancers.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html">the AWS Docs</a>
*/
export declare function service(serviceProps?: ServiceProperties): Service;
/**
  The <code>AWS::ECS::Service</code> resource creates an Amazon Elastic Container Service (Amazon ECS) service that runs and maintains the requested number of tasks and associated load balancers.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-service.html">the AWS Docs</a>
*/
export interface ServiceProperties {
    /** <code>PlatformVersion</code>  <a name="cfn-ecs-service-platformversion"></a>
  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 <code>LATEST</code> platform version is used. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html">AWS Fargate platform versions</a> in the
  Amazon Elastic Container Service Developer Guide: br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    platformVersion?: Value<string>;
    /** <code>HealthCheckGracePeriodSeconds</code>  <a name="cfn-ecs-service-healthcheckgraceperiodseconds"></a>
  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 <code>0</code> is used.<br />
  If you do not use an Elastic Load Balancing, we recommend that you use the <code>startPeriod</code> in the task definition health check parameters. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html">Health check</a>.<br />
  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.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    healthCheckGracePeriodSeconds?: Value<number>;
    /** <code>EnableECSManagedTags</code>  <a name="cfn-ecs-service-enableecsmanagedtags"></a>
  Specifies whether to turn on Amazon ECS managed tags for the tasks within the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html">Tagging your Amazon ECS resources</a> in the
  Amazon Elastic Container Service Developer Guide: br />
  When you use Amazon ECS managed tags, you need to set the <code>propagateTags</code> request parameter.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    enableECSManagedTags?: Value<boolean>;
    /** <code>EnableExecuteCommand</code>  <a name="cfn-ecs-service-enableexecutecommand"></a>
  Determines whether the execute command functionality is turned on for the service. If <code>true</code>, the execute command functionality is turned on for all containers in tasks as part of the service.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    enableExecuteCommand?: Value<boolean>;
    /** <code>PlacementConstraints</code>  <a name="cfn-ecs-service-placementconstraints"></a>
  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.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    placementConstraints?: PlacementConstraintProps[];
    /** <code>PropagateTags</code>  <a name="cfn-ecs-service-propagatetags"></a>
  Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags aren’t propagated. Tags can only be propagated to the task during task creation. To add tags to a task after task creation, use the <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html">TagResource</a> API action.<br />
  The default is <code>NONE</code>.<br />
  
  Required: No<br />
  
  Allowed values: <code>NONE | SERVICE | TASK_DEFINITION</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    propagateTags?: Value<'NONE' | 'SERVICE' | 'TASK_DEFINITION'>;
    /** <code>Cluster</code>  <a name="cfn-ecs-service-cluster"></a>
  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.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    cluster?: Value<string>;
    /** <code>LoadBalancers</code>  <a name="cfn-ecs-service-loadbalancers"></a>
  A list of load balancer objects to associate with the service. If you specify the <code>Role</code> property, <code>LoadBalancers</code> must be specified as well. For information about the number of load balancers that you can specify per service, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html">Service Load Balancing</a> in the
  Amazon Elastic Container Service Developer Guide: br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    loadBalancers?: LoadBalancerProps[];
    /** <code>ServiceConnectConfiguration</code>  <a name="cfn-ecs-service-serviceconnectconfiguration"></a>
  The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.<br />
  Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html">Service Connect</a> in the
  Amazon Elastic Container Service Developer Guide: br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    serviceConnectConfiguration?: ServiceConnectConfigurationProps;
    /** <code>DesiredCount</code>  <a name="cfn-ecs-service-desiredcount"></a>
  The number of instantiations of the specified task definition to place and keep running in your service.<br />
  For new services, if a desired count is not specified, a default value of <code>1</code> is used. When using the <code>DAEMON</code> scheduling strategy, the desired count is not required.<br />
  For existing services, if a desired count is not specified, it is omitted from the operation.<br />
  
  Required: Conditional<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    desiredCount?: Value<number>;
    /** <code>PlacementStrategies</code>  <a name="cfn-ecs-service-placementstrategies"></a>
  The placement strategy objects to use for tasks in your service. You can specify a maximum of 5 strategy rules for each service.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    placementStrategies?: PlacementStrategyProps[];
    /** <code>DeploymentController</code>  <a name="cfn-ecs-service-deploymentcontroller"></a>
  The deployment controller to use for the service. If no deployment controller is specified, the default value of <code>ECS</code> is used.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    deploymentController?: DeploymentControllerProps;
    /** <code>ServiceRegistries</code>  <a name="cfn-ecs-service-serviceregistries"></a>
  The details of the service discovery registry to associate with this service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html">Service discovery</a>.<br />
  Each service may be associated with one service registry. Multiple service registries for each service isn’t supported.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    serviceRegistries?: ServiceRegistryProps[];
    /** <code>CapacityProviderStrategy</code>  <a name="cfn-ecs-service-capacityproviderstrategy"></a>
  The capacity provider strategy to use for the service.<br />
  If a <code>capacityProviderStrategy</code> is specified, the <code>launchType</code> parameter must be omitted. If no <code>capacityProviderStrategy</code> or <code>launchType</code> is specified, the <code>defaultCapacityProviderStrategy</code> for the cluster is used.<br />
  A capacity provider strategy may contain a maximum of 6 capacity providers.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    capacityProviderStrategy?: CapacityProviderStrategyItemProps[];
    /** <code>LaunchType</code>  <a name="cfn-ecs-service-launchtype"></a>
  The launch type on which to run your service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html">Amazon ECS Launch Types</a> in the
  Amazon Elastic Container Service Developer Guide: br />
  
  Required: No<br />
  
  Allowed values: <code>EC2 | EXTERNAL | FARGATE</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    launchType?: Value<'EC2' | 'EXTERNAL' | 'FARGATE'>;
    /** <code>Role</code>  <a name="cfn-ecs-service-role"></a>
  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 <code>awsvpc</code> network mode. If you specify the <code>role</code> parameter, you must also specify a load balancer object with the <code>loadBalancers</code> parameter.<br />
  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 <code>awsvpc</code> 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 <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using-service-linked-roles.html">Using service-linked roles for Amazon ECS</a> in the
  Amazon Elastic Container Service Developer Guide: If your specified role has a path other than <code>/</code>, 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 <code>bar</code> has a path of <code>/foo/</code> then you would specify <code>/foo/bar</code> as the role name. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names">Friendly names and paths</a> in the
  IAM User Guide: br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    role?: Value<string>;
    /** <p> */
    schedulingStrategy?: Value<string>;
    /** <code>TaskDefinition</code>  <a name="cfn-ecs-service-taskdefinition"></a>
  The <code>family</code> and <code>revision</code> (<code>family:revision</code>) or full ARN of the task definition to run in your service. If a <code>revision</code> isn’t specified, the latest <code>ACTIVE</code> revision is used.<br />
  A task definition must be specified if the service uses either the <code>ECS</code> or <code>CODE_DEPLOY</code> deployment controllers.<br />
  For more information about deployment types, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html">Amazon ECS deployment types</a>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    taskDefinition?: Value<string>;
    /** <code>ServiceName</code>  <a name="cfn-ecs-service-servicename"></a>
  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.<br />
  The stack update fails if you change any properties that require replacement and the <code>ServiceName</code> is configured. This is because AWS CloudFormation creates the replacement service first, but each <code>ServiceName</code> must be unique in the cluster.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    serviceName?: Value<string>;
    /** <code>NetworkConfiguration</code>  <a name="cfn-ecs-service-networkconfiguration"></a>
  The network configuration for the service. This parameter is required for task definitions that use the <code>awsvpc</code> network mode to receive their own elastic network interface, and it is not supported for other network modes. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html">Task Networking</a> in the
  Amazon Elastic Container Service Developer Guide: br />
  
  Required: Conditional<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    networkConfiguration?: NetworkConfigurationProps;
    /** <code>DeploymentConfiguration</code>  <a name="cfn-ecs-service-deploymentconfiguration"></a>
  Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    deploymentConfiguration?: DeploymentConfigurationProps;
    /** <p> */
    tags?: Tag[];
}
