import { Value } from '../../../cloudformation/Value';
import { PlacementConstraintProps } from './PlacementConstraintProps';
import { PlacementStrategyProps } from './PlacementStrategyProps';
import { CapacityProviderStrategyItemProps } from './CapacityProviderStrategyItemProps';
import { Tag } from '../../Tag';
import { NetworkConfigurationProps } from './NetworkConfigurationProps';
/**
  The custom parameters to be used when the target is an Amazon ECS task.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-events-rule-ecsparameters.html">the AWS Docs</a>
*/
export interface EcsParametersProps {
    /** <code>PlatformVersion</code>  <a name="cfn-events-rule-ecsparameters-platformversion"></a>
  Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as <code>1.1.0</code>.<br />
  This structure is used only if <code>LaunchType</code> is <code>FARGATE</code>. For more information about valid platform versions, 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>Group</code>  <a name="cfn-events-rule-ecsparameters-group"></a>
  Specifies an ECS task group for the task. The maximum length is 255 characters.<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> */
    group?: Value<string>;
    /** <code>EnableECSManagedTags</code>  <a name="cfn-events-rule-ecsparameters-enableecsmanagedtags"></a>
  Specifies whether to enable Amazon ECS managed tags for the task. 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 />
  
  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-events-rule-ecsparameters-enableexecutecommand"></a>
  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.<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-events-rule-ecsparameters-placementconstraints"></a>
  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).<br />
  
  Required: No<br />
  
  Maximum: <code>10</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> */
    placementConstraints?: PlacementConstraintProps[];
    /** <code>PropagateTags</code>  <a name="cfn-events-rule-ecsparameters-propagatetags"></a>
  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 TagResource API action.<br />
  
  Required: No<br />
  
  Allowed values: <code>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<'TASK_DEFINITION'>;
    /** <code>TaskCount</code>  <a name="cfn-events-rule-ecsparameters-taskcount"></a>
  The number of tasks to create based on <code>TaskDefinition</code>. The default is 1.<br />
  
  Required: No<br />
  
  Minimum: <code>1</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> */
    taskCount?: Value<number>;
    /** <code>PlacementStrategies</code>  <a name="cfn-events-rule-ecsparameters-placementstrategies"></a>
  The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.<br />
  
  Required: No<br />
  
  Maximum: <code>5</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> */
    placementStrategies?: PlacementStrategyProps[];
    /** <code>CapacityProviderStrategy</code>  <a name="cfn-events-rule-ecsparameters-capacityproviderstrategy"></a>
  The capacity provider strategy to use for the task.<br />
  If a <code>capacityProviderStrategy</code> is specified, the <code>launchType</code> parameter must be omitted. If no <code>capacityProviderStrategy</code> or launchType is specified, the <code>defaultCapacityProviderStrategy</code> for the cluster is used.<br />
  
  Required: No<br />
  
  Maximum: <code>6</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> */
    capacityProviderStrategy?: CapacityProviderStrategyItemProps[];
    /** <code>LaunchType</code>  <a name="cfn-events-rule-ecsparameters-launchtype"></a>
  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 <code>FARGATE</code> value is supported only in the Regions where AWS Fargate with Amazon ECS is supported. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS-Fargate.html">AWS Fargate on Amazon ECS</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-no-interrupt">No interruption</a> */
    launchType?: Value<'EC2' | 'EXTERNAL' | 'FARGATE'>;
    /** <code>ReferenceId</code>  <a name="cfn-events-rule-ecsparameters-referenceid"></a>
  The reference ID to use for the task.<br />
  
  Required: No<br />
  
  Maximum: <code>1024</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> */
    referenceId?: Value<string>;
    /** <code>TagList</code>  <a name="cfn-events-rule-ecsparameters-taglist"></a>
  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 <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html#ECS-RunTask-request-tags">RunTask</a> in the Amazon ECS API Reference.<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> */
    tagList?: Tag[];
    /** <code>NetworkConfiguration</code>  <a name="cfn-events-rule-ecsparameters-networkconfiguration"></a>
  Use this structure if the Amazon ECS task uses the <code>awsvpc</code> network mode. This structure specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This structure is required if <code>LaunchType</code> is <code>FARGATE</code> because the <code>awsvpc</code> mode is required for Fargate tasks.<br />
  If you specify <code>NetworkConfiguration</code> when the target ECS task does not use the <code>awsvpc</code> network mode, the task fails.<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> */
    networkConfiguration?: NetworkConfigurationProps;
    /** <code>TaskDefinitionArn</code>  <a name="cfn-events-rule-ecsparameters-taskdefinitionarn"></a>
  The ARN of the task definition to use if the event target is an Amazon ECS task.<br />
  
  Required: Yes<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>1600</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> */
    taskDefinitionArn: Value<string>;
}
