amazonka-ecs 1.4.3 → 1.4.4
raw patch · 20 files changed
+322/−86 lines, 20 filesdep ~amazonka-coredep ~amazonka-ecsdep ~amazonka-testPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: amazonka-core, amazonka-ecs, amazonka-test
API changes (from Hackage documentation)
- Network.AWS.ECS.CreateCluster: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.CreateCluster.CreateCluster
- Network.AWS.ECS.CreateService: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.CreateService.CreateService
- Network.AWS.ECS.DeleteCluster: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DeleteCluster.DeleteCluster
- Network.AWS.ECS.DeleteService: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DeleteService.DeleteService
- Network.AWS.ECS.DeregisterContainerInstance: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DeregisterContainerInstance.DeregisterContainerInstance
- Network.AWS.ECS.DeregisterTaskDefinition: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DeregisterTaskDefinition.DeregisterTaskDefinition
- Network.AWS.ECS.DescribeClusters: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DescribeClusters.DescribeClusters
- Network.AWS.ECS.DescribeContainerInstances: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DescribeContainerInstances.DescribeContainerInstances
- Network.AWS.ECS.DescribeServices: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DescribeServices.DescribeServices
- Network.AWS.ECS.DescribeTaskDefinition: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DescribeTaskDefinition.DescribeTaskDefinition
- Network.AWS.ECS.DescribeTasks: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DescribeTasks.DescribeTasks
- Network.AWS.ECS.DiscoverPollEndpoint: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.DiscoverPollEndpoint.DiscoverPollEndpoint
- Network.AWS.ECS.ListClusters: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.ListClusters.ListClusters
- Network.AWS.ECS.ListContainerInstances: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.ListContainerInstances.ListContainerInstances
- Network.AWS.ECS.ListServices: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.ListServices.ListServices
- Network.AWS.ECS.ListTaskDefinitionFamilies: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.ListTaskDefinitionFamilies.ListTaskDefinitionFamilies
- Network.AWS.ECS.ListTaskDefinitions: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.ListTaskDefinitions.ListTaskDefinitions
- Network.AWS.ECS.ListTasks: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.ListTasks.ListTasks
- Network.AWS.ECS.RegisterContainerInstance: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.RegisterContainerInstance.RegisterContainerInstance
- Network.AWS.ECS.RegisterTaskDefinition: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.RegisterTaskDefinition.RegisterTaskDefinition
- Network.AWS.ECS.RunTask: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.RunTask.RunTask
- Network.AWS.ECS.StartTask: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.StartTask.StartTask
- Network.AWS.ECS.StopTask: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.StopTask.StopTask
- Network.AWS.ECS.SubmitContainerStateChange: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.SubmitContainerStateChange.SubmitContainerStateChange
- Network.AWS.ECS.SubmitTaskStateChange: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.SubmitTaskStateChange.SubmitTaskStateChange
- Network.AWS.ECS.UpdateContainerAgent: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.UpdateContainerAgent.UpdateContainerAgent
- Network.AWS.ECS.UpdateService: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.ECS.UpdateService.UpdateService
+ Network.AWS.ECS: AWSlogs :: LogDriver
+ Network.AWS.ECS: All :: TaskDefinitionFamilyStatus
+ Network.AWS.ECS: Bridge :: NetworkMode
+ Network.AWS.ECS: Host :: NetworkMode
+ Network.AWS.ECS: None :: NetworkMode
+ Network.AWS.ECS: Splunk :: LogDriver
+ Network.AWS.ECS: TDSActive :: TaskDefinitionStatus
+ Network.AWS.ECS: TDSInactive :: TaskDefinitionStatus
+ Network.AWS.ECS: cdMemoryReservation :: Lens' ContainerDefinition (Maybe Int)
+ Network.AWS.ECS: csCreatedAt :: Lens' ContainerService (Maybe UTCTime)
+ Network.AWS.ECS: data NetworkMode
+ Network.AWS.ECS: data TaskDefinitionFamilyStatus
+ Network.AWS.ECS: lbTargetGroupARN :: Lens' LoadBalancer (Maybe Text)
+ Network.AWS.ECS: tdNetworkMode :: Lens' TaskDefinition (Maybe NetworkMode)
+ Network.AWS.ECS: tdTaskRoleARN :: Lens' TaskDefinition (Maybe Text)
+ Network.AWS.ECS: toTaskRoleARN :: Lens' TaskOverride (Maybe Text)
+ Network.AWS.ECS.CreateCluster: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.CreateCluster.CreateCluster
+ Network.AWS.ECS.CreateService: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.CreateService.CreateService
+ Network.AWS.ECS.DeleteCluster: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DeleteCluster.DeleteCluster
+ Network.AWS.ECS.DeleteService: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DeleteService.DeleteService
+ Network.AWS.ECS.DeregisterContainerInstance: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DeregisterContainerInstance.DeregisterContainerInstance
+ Network.AWS.ECS.DeregisterTaskDefinition: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DeregisterTaskDefinition.DeregisterTaskDefinition
+ Network.AWS.ECS.DescribeClusters: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DescribeClusters.DescribeClusters
+ Network.AWS.ECS.DescribeContainerInstances: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DescribeContainerInstances.DescribeContainerInstances
+ Network.AWS.ECS.DescribeServices: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DescribeServices.DescribeServices
+ Network.AWS.ECS.DescribeTaskDefinition: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DescribeTaskDefinition.DescribeTaskDefinition
+ Network.AWS.ECS.DescribeTasks: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DescribeTasks.DescribeTasks
+ Network.AWS.ECS.DiscoverPollEndpoint: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.DiscoverPollEndpoint.DiscoverPollEndpoint
+ Network.AWS.ECS.ListClusters: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.ListClusters.ListClusters
+ Network.AWS.ECS.ListContainerInstances: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.ListContainerInstances.ListContainerInstances
+ Network.AWS.ECS.ListServices: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.ListServices.ListServices
+ Network.AWS.ECS.ListTaskDefinitionFamilies: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.ListTaskDefinitionFamilies.ListTaskDefinitionFamilies
+ Network.AWS.ECS.ListTaskDefinitionFamilies: ltdfStatus :: Lens' ListTaskDefinitionFamilies (Maybe TaskDefinitionFamilyStatus)
+ Network.AWS.ECS.ListTaskDefinitions: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.ListTaskDefinitions.ListTaskDefinitions
+ Network.AWS.ECS.ListTasks: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.ListTasks.ListTasks
+ Network.AWS.ECS.RegisterContainerInstance: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.RegisterContainerInstance.RegisterContainerInstance
+ Network.AWS.ECS.RegisterTaskDefinition: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.RegisterTaskDefinition.RegisterTaskDefinition
+ Network.AWS.ECS.RegisterTaskDefinition: rtdNetworkMode :: Lens' RegisterTaskDefinition (Maybe NetworkMode)
+ Network.AWS.ECS.RegisterTaskDefinition: rtdTaskRoleARN :: Lens' RegisterTaskDefinition (Maybe Text)
+ Network.AWS.ECS.RunTask: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.RunTask.RunTask
+ Network.AWS.ECS.StartTask: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.StartTask.StartTask
+ Network.AWS.ECS.StopTask: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.StopTask.StopTask
+ Network.AWS.ECS.SubmitContainerStateChange: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.SubmitContainerStateChange.SubmitContainerStateChange
+ Network.AWS.ECS.SubmitTaskStateChange: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.SubmitTaskStateChange.SubmitTaskStateChange
+ Network.AWS.ECS.Types: AWSlogs :: LogDriver
+ Network.AWS.ECS.Types: All :: TaskDefinitionFamilyStatus
+ Network.AWS.ECS.Types: Bridge :: NetworkMode
+ Network.AWS.ECS.Types: Host :: NetworkMode
+ Network.AWS.ECS.Types: None :: NetworkMode
+ Network.AWS.ECS.Types: Splunk :: LogDriver
+ Network.AWS.ECS.Types: TDSActive :: TaskDefinitionStatus
+ Network.AWS.ECS.Types: TDSInactive :: TaskDefinitionStatus
+ Network.AWS.ECS.Types: cdMemoryReservation :: Lens' ContainerDefinition (Maybe Int)
+ Network.AWS.ECS.Types: csCreatedAt :: Lens' ContainerService (Maybe UTCTime)
+ Network.AWS.ECS.Types: data NetworkMode
+ Network.AWS.ECS.Types: data TaskDefinitionFamilyStatus
+ Network.AWS.ECS.Types: lbTargetGroupARN :: Lens' LoadBalancer (Maybe Text)
+ Network.AWS.ECS.Types: tdNetworkMode :: Lens' TaskDefinition (Maybe NetworkMode)
+ Network.AWS.ECS.Types: tdTaskRoleARN :: Lens' TaskDefinition (Maybe Text)
+ Network.AWS.ECS.Types: toTaskRoleARN :: Lens' TaskOverride (Maybe Text)
+ Network.AWS.ECS.UpdateContainerAgent: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.UpdateContainerAgent.UpdateContainerAgent
+ Network.AWS.ECS.UpdateService: instance Data.Aeson.Types.Class.ToJSON Network.AWS.ECS.UpdateService.UpdateService
- Network.AWS.ECS: Active :: TaskDefinitionStatus
+ Network.AWS.ECS: Active :: TaskDefinitionFamilyStatus
- Network.AWS.ECS: Inactive :: TaskDefinitionStatus
+ Network.AWS.ECS: Inactive :: TaskDefinitionFamilyStatus
- Network.AWS.ECS.Types: Active :: TaskDefinitionStatus
+ Network.AWS.ECS.Types: Active :: TaskDefinitionFamilyStatus
- Network.AWS.ECS.Types: Inactive :: TaskDefinitionStatus
+ Network.AWS.ECS.Types: Inactive :: TaskDefinitionFamilyStatus
Files
- README.md +1/−1
- amazonka-ecs.cabal +6/−6
- gen/Network/AWS/ECS.hs +12/−0
- gen/Network/AWS/ECS/CreateService.hs +10/−2
- gen/Network/AWS/ECS/DeregisterContainerInstance.hs +2/−2
- gen/Network/AWS/ECS/DescribeClusters.hs +1/−1
- gen/Network/AWS/ECS/DiscoverPollEndpoint.hs +1/−1
- gen/Network/AWS/ECS/ListClusters.hs +2/−0
- gen/Network/AWS/ECS/ListContainerInstances.hs +2/−0
- gen/Network/AWS/ECS/ListServices.hs +2/−0
- gen/Network/AWS/ECS/ListTaskDefinitionFamilies.hs +18/−4
- gen/Network/AWS/ECS/ListTaskDefinitions.hs +2/−0
- gen/Network/AWS/ECS/ListTasks.hs +7/−1
- gen/Network/AWS/ECS/RegisterTaskDefinition.hs +31/−3
- gen/Network/AWS/ECS/RunTask.hs +1/−1
- gen/Network/AWS/ECS/StartTask.hs +1/−1
- gen/Network/AWS/ECS/Types.hs +12/−0
- gen/Network/AWS/ECS/Types/Product.hs +134/−53
- gen/Network/AWS/ECS/Types/Sum.hs +77/−10
- src/.gitkeep +0/−0
README.md view
@@ -8,7 +8,7 @@ ## Version -`1.4.3`+`1.4.4` ## Description
amazonka-ecs.cabal view
@@ -1,5 +1,5 @@ name: amazonka-ecs-version: 1.4.3+version: 1.4.4 synopsis: Amazon EC2 Container Service SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -11,7 +11,7 @@ category: Network, AWS, Cloud, Distributed Computing build-type: Simple cabal-version: >= 1.10-extra-source-files: README.md fixture/*.yaml fixture/*.proto+extra-source-files: README.md fixture/*.yaml fixture/*.proto src/.gitkeep description: Amazon EC2 Container Service (Amazon ECS) is a highly scalable, fast, container management service that makes it easy to run, stop, and manage Docker containers on a cluster of EC2 instances. Amazon ECS lets you launch and stop container-enabled applications with simple API calls, allows you to get the state of your cluster from a centralized service, and gives you access to many familiar Amazon EC2 features like security groups, Amazon EBS volumes, and IAM roles. @@ -78,7 +78,7 @@ , Network.AWS.ECS.Types.Sum build-depends:- amazonka-core == 1.4.3.*+ amazonka-core == 1.4.4.* , base >= 4.7 && < 5 test-suite amazonka-ecs-test@@ -98,9 +98,9 @@ , Test.AWS.ECS.Internal build-depends:- amazonka-core == 1.4.3.*- , amazonka-test == 1.4.3.*- , amazonka-ecs == 1.4.3.*+ amazonka-core == 1.4.4.*+ , amazonka-test == 1.4.4.*+ , amazonka-ecs == 1.4.4.* , base , bytestring , tasty
gen/Network/AWS/ECS.hs view
@@ -162,9 +162,15 @@ -- ** LogDriver , LogDriver (..) + -- ** NetworkMode+ , NetworkMode (..)+ -- ** SortOrder , SortOrder (..) + -- ** TaskDefinitionFamilyStatus+ , TaskDefinitionFamilyStatus (..)+ -- ** TaskDefinitionStatus , TaskDefinitionStatus (..) @@ -230,6 +236,7 @@ , cdReadonlyRootFilesystem , cdEssential , cdCpu+ , cdMemoryReservation -- ** ContainerInstance , ContainerInstance@@ -259,6 +266,7 @@ , csRunningCount , csStatus , csClusterARN+ , csCreatedAt , csDesiredCount , csLoadBalancers , csPendingCount@@ -316,6 +324,7 @@ , loadBalancer , lbLoadBalancerName , lbContainerName+ , lbTargetGroupARN , lbContainerPort -- ** LogConfiguration@@ -386,6 +395,8 @@ , tdStatus , tdFamily , tdContainerDefinitions+ , tdTaskRoleARN+ , tdNetworkMode , tdTaskDefinitionARN , tdRevision , tdVolumes@@ -395,6 +406,7 @@ , TaskOverride , taskOverride , toContainerOverrides+ , toTaskRoleARN -- ** Ulimit , Ulimit
gen/Network/AWS/ECS/CreateService.hs view
@@ -20,6 +20,8 @@ -- -- Runs and maintains a desired number of tasks from a specified task definition. If the number of tasks running in a service drops below 'desiredCount', Amazon ECS spawns another instantiation of the task in the specified cluster. To update an existing service, see < UpdateService>. --+-- In addition to maintaining the desired count of tasks in your service, you can optionally run your service behind a load balancer. The load balancer distributes traffic across the tasks that are associated with the service. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html Service Load Balancing> in the /Amazon EC2 Container Service Developer Guide/.+-- -- You can optionally specify a deployment configuration for your service. During a deployment (which is triggered by changing the task definition of a service with an < UpdateService> operation), the service scheduler uses the 'minimumHealthyPercent' and 'maximumPercent' parameters to determine the deployment strategy. -- -- If the 'minimumHealthyPercent' is below 100%, the scheduler can ignore the 'desiredCount' temporarily during a deployment. For example, if your service has a 'desiredCount' of four tasks, a 'minimumHealthyPercent' of 50% allows the scheduler to stop two existing tasks before starting two new tasks. Tasks for services that /do not/ use a load balancer are considered healthy if they are in the 'RUNNING' state; tasks for services that /do/ use a load balancer are considered healthy if they are in the 'RUNNING' state and the container instance it is hosted on is reported as healthy by the load balancer. The default value for 'minimumHealthyPercent' is 50% in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs.@@ -120,11 +122,17 @@ cClientToken :: Lens' CreateService (Maybe Text) cClientToken = lens _cClientToken (\ s a -> s{_cClientToken = a}); --- | A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.+-- | A load balancer object representing the load balancer to use with your service. Currently, you are limited to one load balancer per service. After you create a service, the load balancer name, container name, and container port specified in the service definition are immutable.+--+-- For Elastic Load Balancing Classic load balancers, this object must contain the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer. When a task from this service is placed on a container instance, the container instance is registered with the load balancer specified here.+--+-- For Elastic Load Balancing Application load balancers, this object must contain the load balancer target group ARN, the container name (as it appears in a container definition), and the container port to access from the load balancer. When a task from this service is placed on a container instance, the container instance and port combination is registered as a target in the target group specified here. cLoadBalancers :: Lens' CreateService [LoadBalancer] cLoadBalancers = lens _cLoadBalancers (\ s a -> s{_cLoadBalancers = a}) . _Default . _Coerce; --- | The name or full Amazon Resource Name (ARN) of the IAM role that allows your Amazon ECS container agent to make calls to your load balancer on your behalf. This parameter is only required if you are using a load balancer with your service.+-- | 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 required if you are using a load balancer with your service. If you specify the 'role' parameter, you must also specify a load balancer object with the 'loadBalancers' parameter.+--+-- 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 <http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-friendly-names Friendly Names and Paths> in the /IAM User Guide/. cRole :: Lens' CreateService (Maybe Text) cRole = lens _cRole (\ s a -> s{_cRole = a});
gen/Network/AWS/ECS/DeregisterContainerInstance.hs view
@@ -24,7 +24,7 @@ -- -- Deregistering a container instance removes the instance from a cluster, but it does not terminate the EC2 instance; if you are finished using the instance, be sure to terminate it in the Amazon EC2 console to stop billing. ----- When you terminate a container instance, it is automatically deregistered from your cluster.+-- If you terminate a running container instance with a connected Amazon ECS container agent, the agent automatically deregisters the instance from your cluster (stopped container instances or instances with disconnected agents are not automatically deregistered when terminated). module Network.AWS.ECS.DeregisterContainerInstance ( -- * Creating a Request@@ -84,7 +84,7 @@ derForce :: Lens' DeregisterContainerInstance (Maybe Bool) derForce = lens _derForce (\ s a -> s{_derForce = a}); --- | The container instance ID or full Amazon Resource Name (ARN) of the container instance to deregister. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the 'container-instance' namespace, and then the container instance ID. For example, arn:aws:ecs:/region/:/aws_account_id/:container-instance\//container_instance_ID/.+-- | The container instance ID or full Amazon Resource Name (ARN) of the container instance to deregister. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the 'container-instance' namespace, and then the container instance ID. For example, 'arn:aws:ecs:region:aws_account_id:container-instance\/container_instance_ID '. derContainerInstance :: Lens' DeregisterContainerInstance Text derContainerInstance = lens _derContainerInstance (\ s a -> s{_derContainerInstance = a});
gen/Network/AWS/ECS/DescribeClusters.hs view
@@ -60,7 +60,7 @@ { _dcClusters = Nothing } --- | A space-separated list of cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a cluster, the default cluster is assumed.+-- | A space-separated list of up to 100 cluster names or full cluster Amazon Resource Name (ARN) entries. If you do not specify a cluster, the default cluster is assumed. dcClusters :: Lens' DescribeClusters [Text] dcClusters = lens _dcClusters (\ s a -> s{_dcClusters = a}) . _Default . _Coerce;
gen/Network/AWS/ECS/DiscoverPollEndpoint.hs view
@@ -71,7 +71,7 @@ dpeCluster :: Lens' DiscoverPollEndpoint (Maybe Text) dpeCluster = lens _dpeCluster (\ s a -> s{_dpeCluster = a}); --- | The container instance ID or full Amazon Resource Name (ARN) of the container instance. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the 'container-instance' namespace, and then the container instance ID. For example, arn:aws:ecs:/region/:/aws_account_id/:container-instance\//container_instance_ID/.+-- | The container instance ID or full Amazon Resource Name (ARN) of the container instance. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the 'container-instance' namespace, and then the container instance ID. For example, 'arn:aws:ecs:region:aws_account_id:container-instance\/container_instance_ID '. dpeContainerInstance :: Lens' DiscoverPollEndpoint (Maybe Text) dpeContainerInstance = lens _dpeContainerInstance (\ s a -> s{_dpeContainerInstance = a});
gen/Network/AWS/ECS/ListClusters.hs view
@@ -69,6 +69,8 @@ } -- | The 'nextToken' value returned from a previous paginated 'ListClusters' request where 'maxResults' was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the 'nextToken' value. This value is 'null' when there are no more results to return.+--+-- This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. lcNextToken :: Lens' ListClusters (Maybe Text) lcNextToken = lens _lcNextToken (\ s a -> s{_lcNextToken = a});
gen/Network/AWS/ECS/ListContainerInstances.hs view
@@ -78,6 +78,8 @@ lciCluster = lens _lciCluster (\ s a -> s{_lciCluster = a}); -- | The 'nextToken' value returned from a previous paginated 'ListContainerInstances' request where 'maxResults' was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the 'nextToken' value. This value is 'null' when there are no more results to return.+--+-- This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. lciNextToken :: Lens' ListContainerInstances (Maybe Text) lciNextToken = lens _lciNextToken (\ s a -> s{_lciNextToken = a});
gen/Network/AWS/ECS/ListServices.hs view
@@ -78,6 +78,8 @@ lsCluster = lens _lsCluster (\ s a -> s{_lsCluster = a}); -- | The 'nextToken' value returned from a previous paginated 'ListServices' request where 'maxResults' was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the 'nextToken' value. This value is 'null' when there are no more results to return.+--+-- This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. lsNextToken :: Lens' ListServices (Maybe Text) lsNextToken = lens _lsNextToken (\ s a -> s{_lsNextToken = a});
gen/Network/AWS/ECS/ListTaskDefinitionFamilies.hs view
@@ -18,8 +18,10 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of task definition families that are registered to your account (which may include task definition families that no longer have any 'ACTIVE' task definitions). You can filter the results with the 'familyPrefix' parameter.+-- Returns a list of task definition families that are registered to your account (which may include task definition families that no longer have any 'ACTIVE' task definition revisions). --+-- You can filter out task definition families that do not contain any 'ACTIVE' task definition revisions by setting the 'status' parameter to 'ACTIVE'. You can also filter the results with the 'familyPrefix' parameter.+-- -- This operation returns paginated results. module Network.AWS.ECS.ListTaskDefinitionFamilies (@@ -27,6 +29,7 @@ listTaskDefinitionFamilies , ListTaskDefinitionFamilies -- * Request Lenses+ , ltdfStatus , ltdfFamilyPrefix , ltdfNextToken , ltdfMaxResults@@ -50,7 +53,8 @@ -- | /See:/ 'listTaskDefinitionFamilies' smart constructor. data ListTaskDefinitionFamilies = ListTaskDefinitionFamilies'- { _ltdfFamilyPrefix :: !(Maybe Text)+ { _ltdfStatus :: !(Maybe TaskDefinitionFamilyStatus)+ , _ltdfFamilyPrefix :: !(Maybe Text) , _ltdfNextToken :: !(Maybe Text) , _ltdfMaxResults :: !(Maybe Int) } deriving (Eq,Read,Show,Data,Typeable,Generic)@@ -59,6 +63,8 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'ltdfStatus'+-- -- * 'ltdfFamilyPrefix' -- -- * 'ltdfNextToken'@@ -68,16 +74,23 @@ :: ListTaskDefinitionFamilies listTaskDefinitionFamilies = ListTaskDefinitionFamilies'- { _ltdfFamilyPrefix = Nothing+ { _ltdfStatus = Nothing+ , _ltdfFamilyPrefix = Nothing , _ltdfNextToken = Nothing , _ltdfMaxResults = Nothing } +-- | The task definition family status with which to filter the 'ListTaskDefinitionFamilies' results. By default, both 'ACTIVE' and 'INACTIVE' task definition families are listed. If this parameter is set to 'ACTIVE', only task definition families that have an 'ACTIVE' task definition revision are returned. If this parameter is set to 'INACTIVE', only task definition families that do not have any 'ACTIVE' task definition revisions are returned. If you paginate the resulting output, be sure to keep the 'status' value constant in each subsequent request.+ltdfStatus :: Lens' ListTaskDefinitionFamilies (Maybe TaskDefinitionFamilyStatus)+ltdfStatus = lens _ltdfStatus (\ s a -> s{_ltdfStatus = a});+ -- | The 'familyPrefix' is a string that is used to filter the results of 'ListTaskDefinitionFamilies'. If you specify a 'familyPrefix', only task definition family names that begin with the 'familyPrefix' string are returned. ltdfFamilyPrefix :: Lens' ListTaskDefinitionFamilies (Maybe Text) ltdfFamilyPrefix = lens _ltdfFamilyPrefix (\ s a -> s{_ltdfFamilyPrefix = a}); -- | The 'nextToken' value returned from a previous paginated 'ListTaskDefinitionFamilies' request where 'maxResults' was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the 'nextToken' value. This value is 'null' when there are no more results to return.+--+-- This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. ltdfNextToken :: Lens' ListTaskDefinitionFamilies (Maybe Text) ltdfNextToken = lens _ltdfNextToken (\ s a -> s{_ltdfNextToken = a}); @@ -121,7 +134,8 @@ toJSON ListTaskDefinitionFamilies'{..} = object (catMaybes- [("familyPrefix" .=) <$> _ltdfFamilyPrefix,+ [("status" .=) <$> _ltdfStatus,+ ("familyPrefix" .=) <$> _ltdfFamilyPrefix, ("nextToken" .=) <$> _ltdfNextToken, ("maxResults" .=) <$> _ltdfMaxResults])
gen/Network/AWS/ECS/ListTaskDefinitions.hs view
@@ -92,6 +92,8 @@ ltdFamilyPrefix = lens _ltdFamilyPrefix (\ s a -> s{_ltdFamilyPrefix = a}); -- | The 'nextToken' value returned from a previous paginated 'ListTaskDefinitions' request where 'maxResults' was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the 'nextToken' value. This value is 'null' when there are no more results to return.+--+-- This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. ltdNextToken :: Lens' ListTaskDefinitions (Maybe Text) ltdNextToken = lens _ltdNextToken (\ s a -> s{_ltdNextToken = a});
gen/Network/AWS/ECS/ListTasks.hs view
@@ -20,6 +20,8 @@ -- -- Returns a list of tasks for a specified cluster. You can filter the results by family name, by a particular container instance, or by the desired status of the task with the 'family', 'containerInstance', and 'desiredStatus' parameters. --+-- Recently-stopped tasks might appear in the returned results. Currently, stopped tasks appear in the returned results for at least one hour.+-- -- This operation returns paginated results. module Network.AWS.ECS.ListTasks (@@ -98,7 +100,9 @@ , _ltMaxResults = Nothing } --- | The task status with which to filter the 'ListTasks' results. Specifying a 'desiredStatus' of 'STOPPED' limits the results to tasks that are in the 'STOPPED' status, which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter is 'RUNNING'.+-- | The task desired status with which to filter the 'ListTasks' results. Specifying a 'desiredStatus' of 'STOPPED' limits the results to tasks that ECS has set the desired status to 'STOPPED', which can be useful for debugging tasks that are not starting properly or have died or finished. The default status filter is 'RUNNING', which shows tasks that ECS has set the desired status to 'RUNNING'.+--+-- Although you can filter results based on a desired status of 'PENDING', this will not return any results because ECS never sets the desired status of a task to that value (only a task\'s 'lastStatus' may have a value of 'PENDING'). ltDesiredStatus :: Lens' ListTasks (Maybe DesiredStatus) ltDesiredStatus = lens _ltDesiredStatus (\ s a -> s{_ltDesiredStatus = a}); @@ -111,6 +115,8 @@ ltFamily = lens _ltFamily (\ s a -> s{_ltFamily = a}); -- | The 'nextToken' value returned from a previous paginated 'ListTasks' request where 'maxResults' was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the 'nextToken' value. This value is 'null' when there are no more results to return.+--+-- This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes. ltNextToken :: Lens' ListTasks (Maybe Text) ltNextToken = lens _ltNextToken (\ s a -> s{_ltNextToken = a});
gen/Network/AWS/ECS/RegisterTaskDefinition.hs view
@@ -19,12 +19,18 @@ -- Portability : non-portable (GHC extensions) -- -- Registers a new task definition from the supplied 'family' and 'containerDefinitions'. Optionally, you can add data volumes to your containers with the 'volumes' parameter. For more information about task definition parameters and defaults, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_defintions.html Amazon ECS Task Definitions> in the /Amazon EC2 Container Service Developer Guide/.+--+-- You can specify an IAM role for your task with the 'taskRoleArn' parameter. When you specify an IAM role for a task, its containers can then use the latest versions of the AWS CLI or SDKs to make API requests to the AWS services that are specified in the IAM policy associated with the role. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html IAM Roles for Tasks> in the /Amazon EC2 Container Service Developer Guide/.+--+-- You can specify a Docker networking mode for the containers in your task definition with the 'networkMode' parameter. The available network modes correspond to those described in <https://docs.docker.com/engine/reference/run/#/network-settings Network settings> in the Docker run reference. module Network.AWS.ECS.RegisterTaskDefinition ( -- * Creating a Request registerTaskDefinition , RegisterTaskDefinition -- * Request Lenses+ , rtdTaskRoleARN+ , rtdNetworkMode , rtdVolumes , rtdFamily , rtdContainerDefinitions@@ -46,7 +52,9 @@ -- | /See:/ 'registerTaskDefinition' smart constructor. data RegisterTaskDefinition = RegisterTaskDefinition'- { _rtdVolumes :: !(Maybe [Volume])+ { _rtdTaskRoleARN :: !(Maybe Text)+ , _rtdNetworkMode :: !(Maybe NetworkMode)+ , _rtdVolumes :: !(Maybe [Volume]) , _rtdFamily :: !Text , _rtdContainerDefinitions :: ![ContainerDefinition] } deriving (Eq,Read,Show,Data,Typeable,Generic)@@ -55,6 +63,10 @@ -- -- Use one of the following lenses to modify other fields as desired: --+-- * 'rtdTaskRoleARN'+--+-- * 'rtdNetworkMode'+-- -- * 'rtdVolumes' -- -- * 'rtdFamily'@@ -65,11 +77,25 @@ -> RegisterTaskDefinition registerTaskDefinition pFamily_ = RegisterTaskDefinition'- { _rtdVolumes = Nothing+ { _rtdTaskRoleARN = Nothing+ , _rtdNetworkMode = Nothing+ , _rtdVolumes = Nothing , _rtdFamily = pFamily_ , _rtdContainerDefinitions = mempty } +-- | The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role.+rtdTaskRoleARN :: Lens' RegisterTaskDefinition (Maybe Text)+rtdTaskRoleARN = lens _rtdTaskRoleARN (\ s a -> s{_rtdTaskRoleARN = a});++-- | The Docker networking mode to use for the containers in the task. The valid values are 'none', 'bridge', and 'host'.+--+-- The default Docker network mode is 'bridge'. If the network mode is set to 'none', you cannot specify port mappings in your container definitions, and the task\'s containers do not have external connectivity. The 'host' network mode offers the highest networking performance for containers because they use the host network stack instead of the virtualized network stack provided by the 'bridge' mode; however, exposed container ports are mapped directly to the corresponding host port, so you cannot take advantage of dynamic host port mappings or run multiple instantiations of the same task on a single container instance if port mappings are used.+--+-- For more information, see <https://docs.docker.com/engine/reference/run/#network-settings Network settings> in the /Docker run reference/.+rtdNetworkMode :: Lens' RegisterTaskDefinition (Maybe NetworkMode)+rtdNetworkMode = lens _rtdNetworkMode (\ s a -> s{_rtdNetworkMode = a});+ -- | A list of volume definitions in JSON format that containers in your task may use. rtdVolumes :: Lens' RegisterTaskDefinition [Volume] rtdVolumes = lens _rtdVolumes (\ s a -> s{_rtdVolumes = a}) . _Default . _Coerce;@@ -110,7 +136,9 @@ toJSON RegisterTaskDefinition'{..} = object (catMaybes- [("volumes" .=) <$> _rtdVolumes,+ [("taskRoleArn" .=) <$> _rtdTaskRoleARN,+ ("networkMode" .=) <$> _rtdNetworkMode,+ ("volumes" .=) <$> _rtdVolumes, Just ("family" .= _rtdFamily), Just ("containerDefinitions" .=
gen/Network/AWS/ECS/RunTask.hs view
@@ -99,7 +99,7 @@ rtCount :: Lens' RunTask (Maybe Int) rtCount = lens _rtCount (\ s a -> s{_rtCount = a}); --- | An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the 'startedBy' parameter. You can then identify which tasks belong to that job by filtering the results of a < ListTasks> call with the 'startedBy' value.+-- | An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the 'startedBy' parameter. You can then identify which tasks belong to that job by filtering the results of a < ListTasks> call with the 'startedBy' value. Up to 36 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. -- -- If a task is started by an Amazon ECS service, then the 'startedBy' parameter contains the deployment ID of the service that starts it. rtStartedBy :: Lens' RunTask (Maybe Text)
gen/Network/AWS/ECS/StartTask.hs view
@@ -93,7 +93,7 @@ sCluster :: Lens' StartTask (Maybe Text) sCluster = lens _sCluster (\ s a -> s{_sCluster = a}); --- | An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the 'startedBy' parameter. You can then identify which tasks belong to that job by filtering the results of a < ListTasks> call with the 'startedBy' value.+-- | An optional tag specified when a task is started. For example if you automatically trigger a task to run a batch process job, you could apply a unique identifier for that job to your task with the 'startedBy' parameter. You can then identify which tasks belong to that job by filtering the results of a < ListTasks> call with the 'startedBy' value. Up to 36 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. -- -- If a task is started by an Amazon ECS service, then the 'startedBy' parameter contains the deployment ID of the service that starts it. sStartedBy :: Lens' StartTask (Maybe Text)
gen/Network/AWS/ECS/Types.hs view
@@ -37,9 +37,15 @@ -- * LogDriver , LogDriver (..) + -- * NetworkMode+ , NetworkMode (..)+ -- * SortOrder , SortOrder (..) + -- * TaskDefinitionFamilyStatus+ , TaskDefinitionFamilyStatus (..)+ -- * TaskDefinitionStatus , TaskDefinitionStatus (..) @@ -105,6 +111,7 @@ , cdReadonlyRootFilesystem , cdEssential , cdCpu+ , cdMemoryReservation -- * ContainerInstance , ContainerInstance@@ -134,6 +141,7 @@ , csRunningCount , csStatus , csClusterARN+ , csCreatedAt , csDesiredCount , csLoadBalancers , csPendingCount@@ -191,6 +199,7 @@ , loadBalancer , lbLoadBalancerName , lbContainerName+ , lbTargetGroupARN , lbContainerPort -- * LogConfiguration@@ -261,6 +270,8 @@ , tdStatus , tdFamily , tdContainerDefinitions+ , tdTaskRoleARN+ , tdNetworkMode , tdTaskDefinitionARN , tdRevision , tdVolumes@@ -270,6 +281,7 @@ , TaskOverride , taskOverride , toContainerOverrides+ , toTaskRoleARN -- * Ulimit , Ulimit
gen/Network/AWS/ECS/Types/Product.hs view
@@ -116,7 +116,7 @@ cStatus :: Lens' Cluster (Maybe Text) cStatus = lens _cStatus (\ s a -> s{_cStatus = a}); --- | The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the 'cluster' namespace, and then the cluster name. For example, arn:aws:ecs:/region/:/012345678910/:cluster\//test/.+-- | The Amazon Resource Name (ARN) that identifies the cluster. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the cluster, the AWS account ID of the cluster owner, the 'cluster' namespace, and then the cluster name. For example, 'arn:aws:ecs:region:012345678910:cluster\/test '.. cClusterARN :: Lens' Cluster (Maybe Text) cClusterARN = lens _cClusterARN (\ s a -> s{_cClusterARN = a}); @@ -273,6 +273,7 @@ , _cdReadonlyRootFilesystem :: !(Maybe Bool) , _cdEssential :: !(Maybe Bool) , _cdCpu :: !(Maybe Int)+ , _cdMemoryReservation :: !(Maybe Int) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ContainerDefinition' with the minimum fields required to make a request.@@ -328,6 +329,8 @@ -- * 'cdEssential' -- -- * 'cdCpu'+--+-- * 'cdMemoryReservation' containerDefinition :: ContainerDefinition containerDefinition =@@ -357,39 +360,43 @@ , _cdReadonlyRootFilesystem = Nothing , _cdEssential = Nothing , _cdCpu = Nothing+ , _cdMemoryReservation = Nothing } --- | The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with 'repository-url\/image:tag'. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to 'Image' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the 'IMAGE' parameter of <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The image used to start a container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with ' repository-url\/image:tag '. Up to 255 letters (uppercase and lowercase), numbers, hyphens, underscores, colons, periods, forward slashes, and number signs are allowed. This parameter maps to 'Image' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the 'IMAGE' parameter of <https://docs.docker.com/reference/commandline/run/ docker run>. -- -- - Images in official repositories on Docker Hub use a single name (for example, 'ubuntu' or 'mongo').+-- -- - Images in other repositories on Docker Hub are qualified with an organization name (for example, 'amazon\/amazon-ecs-agent').+-- -- - Images in other online repositories are qualified further by a domain name (for example, 'quay.io\/assemblyline\/ubuntu').+-- cdImage :: Lens' ContainerDefinition (Maybe Text) cdImage = lens _cdImage (\ s a -> s{_cdImage = a}); --- | The command that is passed to the container. This parameter maps to 'Cmd' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the 'COMMAND' parameter to <https://docs.docker.com/reference/commandline/run/ docker run>. For more information, see <https://docs.docker.com/reference/builder/#cmd>.+-- | The command that is passed to the container. This parameter maps to 'Cmd' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the 'COMMAND' parameter to <https://docs.docker.com/reference/commandline/run/ docker run>. For more information, see <https://docs.docker.com/reference/builder/#cmd>. cdCommand :: Lens' ContainerDefinition [Text] cdCommand = lens _cdCommand (\ s a -> s{_cdCommand = a}) . _Default . _Coerce; --- | The hostname to use for your container. This parameter maps to 'Hostname' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--hostname' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The hostname to use for your container. This parameter maps to 'Hostname' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--hostname' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdHostname :: Lens' ContainerDefinition (Maybe Text) cdHostname = lens _cdHostname (\ s a -> s{_cdHostname = a}); --- | A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This parameter maps to 'SecurityOpt' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--security-opt' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. This parameter maps to 'SecurityOpt' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--security-opt' option to <https://docs.docker.com/reference/commandline/run/ docker run>. ----- The Amazon ECS container agent running on a container instance must register with the 'ECS_SELINUX_CAPABLE=true' or 'ECS_APPARMOR_CAPABLE=true' environment variables before containers placed on that instance can use these security options. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration> in the /Amazon EC2 Container Service Developer Guide/.+-- The Amazon ECS container agent running on a container instance must register with the 'ECS_SELINUX_CAPABLE=true' or 'ECS_APPARMOR_CAPABLE=true' environment variables before containers placed on that instance can use these security options. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration> in the /Amazon EC2 Container Service Developer Guide/. cdDockerSecurityOptions :: Lens' ContainerDefinition [Text] cdDockerSecurityOptions = lens _cdDockerSecurityOptions (\ s a -> s{_cdDockerSecurityOptions = a}) . _Default . _Coerce; --- | When this parameter is true, networking is disabled within the container. This parameter maps to 'NetworkDisabled' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API>.+-- | When this parameter is true, networking is disabled within the container. This parameter maps to 'NetworkDisabled' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API>. cdDisableNetworking :: Lens' ContainerDefinition (Maybe Bool) cdDisableNetworking = lens _cdDisableNetworking (\ s a -> s{_cdDisableNetworking = a}); --- | Data volumes to mount from another container. This parameter maps to 'VolumesFrom' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--volumes-from' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | Data volumes to mount from another container. This parameter maps to 'VolumesFrom' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--volumes-from' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdVolumesFrom :: Lens' ContainerDefinition [VolumeFrom] cdVolumesFrom = lens _cdVolumesFrom (\ s a -> s{_cdVolumesFrom = a}) . _Default . _Coerce; --- | The environment variables to pass to a container. This parameter maps to 'Env' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--env' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The environment variables to pass to a container. This parameter maps to 'Env' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--env' option to <https://docs.docker.com/reference/commandline/run/ docker run>. -- -- We do not recommend using plain text environment variables for sensitive information, such as credential data. cdEnvironment :: Lens' ContainerDefinition [KeyValuePair]@@ -397,83 +404,91 @@ -- | Early versions of the Amazon ECS container agent do not properly handle 'entryPoint' parameters. If you have problems using 'entryPoint', update your container agent or enter your commands and arguments as 'command' array items instead. ----- The entry point that is passed to the container. This parameter maps to 'Entrypoint' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--entrypoint' option to <https://docs.docker.com/reference/commandline/run/ docker run>. For more information, see <https://docs.docker.com/reference/builder/#entrypoint>.+-- The entry point that is passed to the container. This parameter maps to 'Entrypoint' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--entrypoint' option to <https://docs.docker.com/reference/commandline/run/ docker run>. For more information, see <https://docs.docker.com/reference/builder/#entrypoint>. cdEntryPoint :: Lens' ContainerDefinition [Text] cdEntryPoint = lens _cdEntryPoint (\ s a -> s{_cdEntryPoint = a}) . _Default . _Coerce; --- | The working directory in which to run commands inside the container. This parameter maps to 'WorkingDir' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--workdir' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The working directory in which to run commands inside the container. This parameter maps to 'WorkingDir' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--workdir' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdWorkingDirectory :: Lens' ContainerDefinition (Maybe Text) cdWorkingDirectory = lens _cdWorkingDirectory (\ s a -> s{_cdWorkingDirectory = a}); --- | A list of 'ulimits' to set in the container. This parameter maps to 'Ulimits' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--ulimit' option to <https://docs.docker.com/reference/commandline/run/ docker run>. Valid naming values are displayed in the < Ulimit> data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"'+-- | A list of 'ulimits' to set in the container. This parameter maps to 'Ulimits' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--ulimit' option to <https://docs.docker.com/reference/commandline/run/ docker run>. Valid naming values are displayed in the < Ulimit> data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"' cdUlimits :: Lens' ContainerDefinition [Ulimit] cdUlimits = lens _cdUlimits (\ s a -> s{_cdUlimits = a}) . _Default . _Coerce; --- | When this parameter is true, the container is given elevated privileges on the host container instance (similar to the 'root' user). This parameter maps to 'Privileged' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--privileged' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | When this parameter is true, the container is given elevated privileges on the host container instance (similar to the 'root' user). This parameter maps to 'Privileged' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--privileged' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdPrivileged :: Lens' ContainerDefinition (Maybe Bool) cdPrivileged = lens _cdPrivileged (\ s a -> s{_cdPrivileged = a}); --- | The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic. This parameter maps to 'PortBindings' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--publish' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The list of port mappings for the container. Port mappings allow containers to access ports on the host container instance to send or receive traffic. This parameter maps to 'PortBindings' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--publish' option to <https://docs.docker.com/reference/commandline/run/ docker run>. If the network mode of a task definition is set to 'none', then you cannot specify port mappings. If the network mode of a task definition is set to 'host', then host ports must either be undefined or they must match the container port in the port mapping. -- -- After a task reaches the 'RUNNING' status, manual and automatic host and container port assignments are visible in the __Network Bindings__ section of a container description of a selected task in the Amazon ECS console, or the 'networkBindings' section < DescribeTasks> responses. cdPortMappings :: Lens' ContainerDefinition [PortMapping] cdPortMappings = lens _cdPortMappings (\ s a -> s{_cdPortMappings = a}) . _Default . _Coerce; --- | A key\/value map of labels to add to the container. This parameter maps to 'Labels' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--label' option to <https://docs.docker.com/reference/commandline/run/ docker run>. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"'+-- | A key\/value map of labels to add to the container. This parameter maps to 'Labels' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--label' option to <https://docs.docker.com/reference/commandline/run/ docker run>. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"' cdDockerLabels :: Lens' ContainerDefinition (HashMap Text Text) cdDockerLabels = lens _cdDockerLabels (\ s a -> s{_cdDockerLabels = a}) . _Default . _Map; --- | A list of hostnames and IP address mappings to append to the '\/etc\/hosts' file on the container. This parameter maps to 'ExtraHosts' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--add-host' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | A list of hostnames and IP address mappings to append to the '\/etc\/hosts' file on the container. This parameter maps to 'ExtraHosts' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--add-host' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdExtraHosts :: Lens' ContainerDefinition [HostEntry] cdExtraHosts = lens _cdExtraHosts (\ s a -> s{_cdExtraHosts = a}) . _Default . _Coerce; --- | The number of MiB of memory to reserve for the container. You must specify a non-zero integer for this parameter; the Docker daemon reserves a minimum of 4 MiB of memory for a container, so you should not specify fewer than 4 MiB of memory for your containers. If your container attempts to exceed the memory allocated here, the container is killed. This parameter maps to 'Memory' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--memory' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The hard limit (in MiB) of memory to present to the container. If your container attempts to exceed the memory specified here, the container is killed. This parameter maps to 'Memory' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--memory' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+--+-- You must specify a non-zero integer for one or both of 'memory' or 'memoryReservation' in container definitions. If you specify both, 'memory' must be greater than 'memoryReservation'. If you specify 'memoryReservation', then that value is subtracted from the available memory resources for the container instance on which the container is placed; otherwise, the value of 'memory' is used.+--+-- The Docker daemon reserves a minimum of 4 MiB of memory for a container, so you should not specify fewer than 4 MiB of memory for your containers. cdMemory :: Lens' ContainerDefinition (Maybe Int) cdMemory = lens _cdMemory (\ s a -> s{_cdMemory = a}); --- | The user name to use inside the container. This parameter maps to 'User' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--user' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The user name to use inside the container. This parameter maps to 'User' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--user' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdUser :: Lens' ContainerDefinition (Maybe Text) cdUser = lens _cdUser (\ s a -> s{_cdUser = a}); --- | A list of DNS search domains that are presented to the container. This parameter maps to 'DnsSearch' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--dns-search' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | A list of DNS search domains that are presented to the container. This parameter maps to 'DnsSearch' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--dns-search' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdDnsSearchDomains :: Lens' ContainerDefinition [Text] cdDnsSearchDomains = lens _cdDnsSearchDomains (\ s a -> s{_cdDnsSearchDomains = a}) . _Default . _Coerce; --- | The log configuration specification for the container. This parameter maps to 'LogConfig' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--log-driver' option to <https://docs.docker.com/reference/commandline/run/ docker run>. Valid log drivers are displayed in the < LogConfiguration> data type. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"'+-- | The log configuration specification for the container. This parameter maps to 'LogConfig' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--log-driver' option to <https://docs.docker.com/reference/commandline/run/ docker run>. By default, containers use the same logging driver that the Docker daemon uses; however the container may use a different logging driver than the Docker daemon by specifying a log driver with this parameter in the container definition. To use a different logging driver for a container, the log system must be configured properly on the container instance (or on a different log server for remote logging options). For more information on the options for different supported log drivers, see <https://docs.docker.com/engine/admin/logging/overview/ Configure logging drivers> in the Docker documentation. ----- The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the 'ECS_AVAILABLE_LOGGING_DRIVERS' environment variable before containers placed on that instance can use these log configuration options. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration> in the /Amazon EC2 Container Service Developer Guide/.+-- Amazon ECS currently supports a subset of the logging drivers available to the Docker daemon (shown in the < LogConfiguration> data type). Currently unsupported log drivers may be available in future releases of the Amazon ECS container agent.+--+-- This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"'+--+-- The Amazon ECS container agent running on a container instance must register the logging drivers available on that instance with the 'ECS_AVAILABLE_LOGGING_DRIVERS' environment variable before containers placed on that instance can use these log configuration options. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration> in the /Amazon EC2 Container Service Developer Guide/. cdLogConfiguration :: Lens' ContainerDefinition (Maybe LogConfiguration) cdLogConfiguration = lens _cdLogConfiguration (\ s a -> s{_cdLogConfiguration = a}); --- | The name of a container. If you are linking multiple containers together in a task definition, the 'name' of one container can be entered in the 'links' of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This parameter maps to 'name' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--name' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The name of a container. If you are linking multiple containers together in a task definition, the 'name' of one container can be entered in the 'links' of another container to connect the containers. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed. This parameter maps to 'name' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--name' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdName :: Lens' ContainerDefinition (Maybe Text) cdName = lens _cdName (\ s a -> s{_cdName = a}); --- | A list of DNS servers that are presented to the container. This parameter maps to 'Dns' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--dns' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | A list of DNS servers that are presented to the container. This parameter maps to 'Dns' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--dns' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdDnsServers :: Lens' ContainerDefinition [Text] cdDnsServers = lens _cdDnsServers (\ s a -> s{_cdDnsServers = a}) . _Default . _Coerce; --- | The mount points for data volumes in your container. This parameter maps to 'Volumes' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--volume' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The mount points for data volumes in your container. This parameter maps to 'Volumes' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--volume' option to <https://docs.docker.com/reference/commandline/run/ docker run>. cdMountPoints :: Lens' ContainerDefinition [MountPoint] cdMountPoints = lens _cdMountPoints (\ s a -> s{_cdMountPoints = a}) . _Default . _Coerce; --- | The 'link' parameter allows containers to communicate with each other without the need for port mappings, using the 'name' parameter and optionally, an 'alias' for the link. This construct is analogous to 'name:alias' in Docker links. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed for each 'name' and 'alias'. For more information on linking Docker containers, see <https://docs.docker.com/userguide/dockerlinks/>. This parameter maps to 'Links' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--link' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The 'link' parameter allows containers to communicate with each other without the need for port mappings, using the 'name' parameter and optionally, an 'alias' for the link. This construct is analogous to 'name:alias' in Docker links. Up to 255 letters (uppercase and lowercase), numbers, hyphens, and underscores are allowed for each 'name' and 'alias'. For more information on linking Docker containers, see <https://docs.docker.com/userguide/dockerlinks/>. This parameter maps to 'Links' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--link' option to <https://docs.docker.com/reference/commandline/run/ docker run>. -- -- Containers that are collocated on a single container instance may be able to communicate with each other without requiring links or host port mappings. Network isolation is achieved on the container instance using security groups and VPC settings. cdLinks :: Lens' ContainerDefinition [Text] cdLinks = lens _cdLinks (\ s a -> s{_cdLinks = a}) . _Default . _Coerce; --- | When this parameter is true, the container is given read-only access to its root file system. This parameter maps to 'ReadonlyRootfs' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--read-only' option to 'docker run'.+-- | When this parameter is true, the container is given read-only access to its root file system. This parameter maps to 'ReadonlyRootfs' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--read-only' option to 'docker run'. cdReadonlyRootFilesystem :: Lens' ContainerDefinition (Maybe Bool) cdReadonlyRootFilesystem = lens _cdReadonlyRootFilesystem (\ s a -> s{_cdReadonlyRootFilesystem = a}); --- | If the 'essential' parameter of a container is marked as 'true', the failure of that container stops the task. If the 'essential' parameter of a container is marked as 'false', then its failure does not affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential.+-- | If the 'essential' parameter of a container is marked as 'true', and that container fails or stops for any reason, all other containers that are part of the task are stopped. If the 'essential' parameter of a container is marked as 'false', then its failure does not affect the rest of the containers in a task. If this parameter is omitted, a container is assumed to be essential. ----- All tasks must have at least one essential container.+-- All tasks must have at least one essential container. If you have an application that is composed of multiple containers, you should group containers that are used for a common purpose into components, and separate the different components into multiple task definitions. For more information, see <http://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html Application Architecture> in the /Amazon EC2 Container Service Developer Guide/. cdEssential :: Lens' ContainerDefinition (Maybe Bool) cdEssential = lens _cdEssential (\ s a -> s{_cdEssential = a}); --- | The number of 'cpu' units reserved for the container. A container instance has 1,024 'cpu' units for every CPU core. This parameter specifies the minimum amount of CPU to reserve for a container, and containers share unallocated CPU units with other containers on the instance with the same ratio as their allocated amount. This parameter maps to 'CpuShares' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.19/ Docker Remote API> and the '--cpu-shares' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+-- | The number of 'cpu' units reserved for the container. A container instance has 1,024 'cpu' units for every CPU core. This parameter specifies the minimum amount of CPU to reserve for a container, and containers share unallocated CPU units with other containers on the instance with the same ratio as their allocated amount. This parameter maps to 'CpuShares' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--cpu-shares' option to <https://docs.docker.com/reference/commandline/run/ docker run>. -- -- You can determine the number of CPU units that are available per EC2 instance type by multiplying the vCPUs listed for that instance type on the <http://aws.amazon.com/ec2/instance-types/ Amazon EC2 Instances> detail page by 1,024. --@@ -482,10 +497,20 @@ -- The Docker daemon on the container instance uses the CPU value to calculate the relative CPU share ratios for running containers. For more information, see <https://docs.docker.com/reference/run/#cpu-share-constraint CPU share constraint> in the Docker documentation. The minimum valid CPU share value that the Linux kernel allows is 2; however, the CPU parameter is not required, and you can use CPU values below 2 in your container definitions. For CPU values below 2 (including null), the behavior varies based on your Amazon ECS container agent version: -- -- - __Agent versions less than or equal to 1.1.0:__ Null and zero CPU values are passed to Docker as 0, which Docker then converts to 1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which the Linux kernel converts to 2 CPU shares.+-- -- - __Agent versions greater than or equal to 1.2.0:__ Null, zero, and CPU values of 1 are passed to Docker as 2.+-- cdCpu :: Lens' ContainerDefinition (Maybe Int) cdCpu = lens _cdCpu (\ s a -> s{_cdCpu = a}); +-- | The soft limit (in MiB) of memory to reserve for the container. When system memory is under heavy contention, Docker attempts to keep the container memory to this soft limit; however, your container can consume more memory when it needs to, up to either the hard limit specified with the 'memory' parameter (if applicable), or all of the available memory on the container instance, whichever comes first. This parameter maps to 'MemoryReservation' in the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/#create-a-container Create a container> section of the <https://docs.docker.com/reference/api/docker_remote_api_v1.23/ Docker Remote API> and the '--memory-reservation' option to <https://docs.docker.com/reference/commandline/run/ docker run>.+--+-- You must specify a non-zero integer for one or both of 'memory' or 'memoryReservation' in container definitions. If you specify both, 'memory' must be greater than 'memoryReservation'. If you specify 'memoryReservation', then that value is subtracted from the available memory resources for the container instance on which the container is placed; otherwise, the value of 'memory' is used.+--+-- For example, if your container normally uses 128 MiB of memory, but occasionally bursts to 256 MiB of memory for short periods of time, you can set a 'memoryReservation' of 128 MiB, and a 'memory' hard limit of 300 MiB. This configuration would allow the container to only reserve 128 MiB of memory from the remaining resources on the container instance, but also allow the container to consume more memory resources when needed.+cdMemoryReservation :: Lens' ContainerDefinition (Maybe Int)+cdMemoryReservation = lens _cdMemoryReservation (\ s a -> s{_cdMemoryReservation = a});+ instance FromJSON ContainerDefinition where parseJSON = withObject "ContainerDefinition"@@ -514,7 +539,8 @@ <*> (x .:? "links" .!= mempty) <*> (x .:? "readonlyRootFilesystem") <*> (x .:? "essential")- <*> (x .:? "cpu"))+ <*> (x .:? "cpu")+ <*> (x .:? "memoryReservation")) instance Hashable ContainerDefinition @@ -549,7 +575,8 @@ ("readonlyRootFilesystem" .=) <$> _cdReadonlyRootFilesystem, ("essential" .=) <$> _cdEssential,- ("cpu" .=) <$> _cdCpu])+ ("cpu" .=) <$> _cdCpu,+ ("memoryReservation" .=) <$> _cdMemoryReservation]) -- | An EC2 instance that is running the Amazon ECS agent and has been registered with a cluster. --@@ -626,7 +653,7 @@ ciEc2InstanceId :: Lens' ContainerInstance (Maybe Text) ciEc2InstanceId = lens _ciEc2InstanceId (\ s a -> s{_ciEc2InstanceId = a}); --- | The Amazon Resource Name (ARN) of the container instance. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the 'container-instance' namespace, and then the container instance ID. For example, arn:aws:ecs:/region/:/aws_account_id/:container-instance\//container_instance_ID/.+-- | The Amazon Resource Name (ARN) of the container instance. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the container instance, the AWS account ID of the container instance owner, the 'container-instance' namespace, and then the container instance ID. For example, 'arn:aws:ecs:region:aws_account_id:container-instance\/container_instance_ID '. ciContainerInstanceARN :: Lens' ContainerInstance (Maybe Text) ciContainerInstanceARN = lens _ciContainerInstanceARN (\ s a -> s{_ciContainerInstanceARN = a}); @@ -741,6 +768,7 @@ { _csRunningCount :: !(Maybe Int) , _csStatus :: !(Maybe Text) , _csClusterARN :: !(Maybe Text)+ , _csCreatedAt :: !(Maybe POSIX) , _csDesiredCount :: !(Maybe Int) , _csLoadBalancers :: !(Maybe [LoadBalancer]) , _csPendingCount :: !(Maybe Int)@@ -763,6 +791,8 @@ -- -- * 'csClusterARN' --+-- * 'csCreatedAt'+-- -- * 'csDesiredCount' -- -- * 'csLoadBalancers'@@ -789,6 +819,7 @@ { _csRunningCount = Nothing , _csStatus = Nothing , _csClusterARN = Nothing+ , _csCreatedAt = Nothing , _csDesiredCount = Nothing , _csLoadBalancers = Nothing , _csPendingCount = Nothing@@ -809,15 +840,19 @@ csStatus :: Lens' ContainerService (Maybe Text) csStatus = lens _csStatus (\ s a -> s{_csStatus = a}); --- | The Amazon Resource Name (ARN) of the of the cluster that hosts the service.+-- | The Amazon Resource Name (ARN) of the cluster that hosts the service. csClusterARN :: Lens' ContainerService (Maybe Text) csClusterARN = lens _csClusterARN (\ s a -> s{_csClusterARN = a}); +-- | The Unix timestamp for when the service was created.+csCreatedAt :: Lens' ContainerService (Maybe UTCTime)+csCreatedAt = lens _csCreatedAt (\ s a -> s{_csCreatedAt = a}) . mapping _Time;+ -- | The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with < CreateService>, and it can be modified with < UpdateService>. csDesiredCount :: Lens' ContainerService (Maybe Int) csDesiredCount = lens _csDesiredCount (\ s a -> s{_csDesiredCount = a}); --- | A list of load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.+-- | A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer. csLoadBalancers :: Lens' ContainerService [LoadBalancer] csLoadBalancers = lens _csLoadBalancers (\ s a -> s{_csLoadBalancers = a}) . _Default . _Coerce; @@ -837,7 +872,7 @@ csServiceName :: Lens' ContainerService (Maybe Text) csServiceName = lens _csServiceName (\ s a -> s{_csServiceName = a}); --- | The Amazon Resource Name (ARN) that identifies the service. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the service, the AWS account ID of the service owner, the 'service' namespace, and then the service name. For example, arn:aws:ecs:/region/:/012345678910/:service\//my-service/.+-- | The Amazon Resource Name (ARN) that identifies the service. The ARN contains the 'arn:aws:ecs' namespace, followed by the region of the service, the AWS account ID of the service owner, the 'service' namespace, and then the service name. For example, 'arn:aws:ecs:region:012345678910:service\/my-service '. csServiceARN :: Lens' ContainerService (Maybe Text) csServiceARN = lens _csServiceARN (\ s a -> s{_csServiceARN = a}); @@ -845,7 +880,7 @@ csTaskDefinition :: Lens' ContainerService (Maybe Text) csTaskDefinition = lens _csTaskDefinition (\ s a -> s{_csTaskDefinition = a}); --- | The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with a load balancer.+-- | The Amazon Resource Name (ARN) of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer. csRoleARN :: Lens' ContainerService (Maybe Text) csRoleARN = lens _csRoleARN (\ s a -> s{_csRoleARN = a}); @@ -860,6 +895,7 @@ ContainerService' <$> (x .:? "runningCount") <*> (x .:? "status") <*> (x .:? "clusterArn")+ <*> (x .:? "createdAt") <*> (x .:? "desiredCount") <*> (x .:? "loadBalancers" .!= mempty) <*> (x .:? "pendingCount")@@ -930,7 +966,7 @@ dStatus :: Lens' Deployment (Maybe Text) dStatus = lens _dStatus (\ s a -> s{_dStatus = a}); --- | The Unix time in seconds and milliseconds when the service was created.+-- | The Unix timestamp for when the service was created. dCreatedAt :: Lens' Deployment (Maybe UTCTime) dCreatedAt = lens _dCreatedAt (\ s a -> s{_dCreatedAt = a}) . mapping _Time; @@ -946,7 +982,7 @@ dId :: Lens' Deployment (Maybe Text) dId = lens _dId (\ s a -> s{_dId = a}); --- | The Unix time in seconds and milliseconds when the service was last updated.+-- | The Unix timestamp for when the service was last updated. dUpdatedAt :: Lens' Deployment (Maybe UTCTime) dUpdatedAt = lens _dUpdatedAt (\ s a -> s{_dUpdatedAt = a}) . mapping _Time; @@ -1206,6 +1242,7 @@ data LoadBalancer = LoadBalancer' { _lbLoadBalancerName :: !(Maybe Text) , _lbContainerName :: !(Maybe Text)+ , _lbTargetGroupARN :: !(Maybe Text) , _lbContainerPort :: !(Maybe Int) } deriving (Eq,Read,Show,Data,Typeable,Generic) @@ -1217,6 +1254,8 @@ -- -- * 'lbContainerName' --+-- * 'lbTargetGroupARN'+-- -- * 'lbContainerPort' loadBalancer :: LoadBalancer@@ -1224,6 +1263,7 @@ LoadBalancer' { _lbLoadBalancerName = Nothing , _lbContainerName = Nothing+ , _lbTargetGroupARN = Nothing , _lbContainerPort = Nothing } @@ -1235,6 +1275,10 @@ lbContainerName :: Lens' LoadBalancer (Maybe Text) lbContainerName = lens _lbContainerName (\ s a -> s{_lbContainerName = a}); +-- | The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.+lbTargetGroupARN :: Lens' LoadBalancer (Maybe Text)+lbTargetGroupARN = lens _lbTargetGroupARN (\ s a -> s{_lbTargetGroupARN = a});+ -- | The port on the container to associate with the load balancer. This port must correspond to a 'containerPort' in the service\'s task definition. Your container instances must allow ingress traffic on the 'hostPort' of the port mapping. lbContainerPort :: Lens' LoadBalancer (Maybe Int) lbContainerPort = lens _lbContainerPort (\ s a -> s{_lbContainerPort = a});@@ -1246,6 +1290,7 @@ LoadBalancer' <$> (x .:? "loadBalancerName") <*> (x .:? "containerName")+ <*> (x .:? "targetGroupArn") <*> (x .:? "containerPort")) instance Hashable LoadBalancer@@ -1258,6 +1303,7 @@ (catMaybes [("loadBalancerName" .=) <$> _lbLoadBalancerName, ("containerName" .=) <$> _lbContainerName,+ ("targetGroupArn" .=) <$> _lbTargetGroupARN, ("containerPort" .=) <$> _lbContainerPort]) -- | Log configuration options to send to a custom log driver for the container.@@ -1288,7 +1334,11 @@ lcOptions :: Lens' LogConfiguration (HashMap Text Text) lcOptions = lens _lcOptions (\ s a -> s{_lcOptions = a}) . _Default . _Map; --- | The log driver to use for the container. This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"'+-- | The log driver to use for the container. The valid values listed for this parameter are log drivers that the Amazon ECS container agent can communicate with by default.+--+-- If you have a custom driver that is not listed above that you would like to work with the Amazon ECS container agent, you can fork the Amazon ECS container agent project that is <https://github.com/aws/amazon-ecs-agent available on GitHub> and customize it to work with that driver. We encourage you to submit pull requests for changes that you would like to have included. However, Amazon Web Services does not currently provide support for running modified copies of this software.+--+-- This parameter requires version 1.18 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log into your container instance and run the following command: 'sudo docker version | grep \"Server API version\"' lcLogDriver :: Lens' LogConfiguration LogDriver lcLogDriver = lens _lcLogDriver (\ s a -> s{_lcLogDriver = a}); @@ -1473,11 +1523,11 @@ -- -- The default ephemeral port range is 49153 to 65535, and this range is used for Docker versions prior to 1.6.0. For Docker version 1.6.0 and later, the Docker daemon tries to read the ephemeral port range from '\/proc\/sys\/net\/ipv4\/ip_local_port_range'; if this kernel parameter is unavailable, the default ephemeral port range is used. You should not attempt to specify a host port in the ephemeral port range, because these are reserved for automatic assignment. In general, ports below 32768 are outside of the ephemeral port range. ----- The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS container agent port 51678. Any host port that was previously specified in a running task is also reserved while the task is running (after a task stops, the host port is released).The current reserved ports are displayed in the 'remainingResources' of < DescribeContainerInstances> output, and a container instance may have up to 50 reserved ports at a time, including the default reserved ports (automatically assigned ports do not count toward this limit).+-- The default reserved ports are 22 for SSH, the Docker ports 2375 and 2376, and the Amazon ECS container agent port 51678. Any host port that was previously specified in a running task is also reserved while the task is running (after a task stops, the host port is released).The current reserved ports are displayed in the 'remainingResources' of < DescribeContainerInstances> output, and a container instance may have up to 100 reserved ports at a time, including the default reserved ports (automatically assigned ports do not count toward the 100 reserved ports limit). pmHostPort :: Lens' PortMapping (Maybe Int) pmHostPort = lens _pmHostPort (\ s a -> s{_pmHostPort = a}); --- | The port number on the container that is bound to the user-specified or automatically assigned host port. If you specify a container port and not a host port, your container automatically receives a host port in the ephemeral port range (for more information, see 'hostPort').+-- | The port number on the container that is bound to the user-specified or automatically assigned host port. If you specify a container port and not a host port, your container automatically receives a host port in the ephemeral port range (for more information, see 'hostPort'). Port mappings that are automatically assigned in this way do not count toward the 100 reserved ports limit of a container instance. pmContainerPort :: Lens' PortMapping (Maybe Int) pmContainerPort = lens _pmContainerPort (\ s a -> s{_pmContainerPort = a}); @@ -1617,7 +1667,7 @@ , _seMessage = Nothing } --- | The Unix time in seconds and milliseconds when the event was triggered.+-- | The Unix timestamp for when the event was triggered. seCreatedAt :: Lens' ServiceEvent (Maybe UTCTime) seCreatedAt = lens _seCreatedAt (\ s a -> s{_seCreatedAt = a}) . mapping _Time; @@ -1708,7 +1758,7 @@ , _tTaskDefinitionARN = Nothing } --- | The Unix time in seconds and milliseconds when the task was stopped (the task transitioned from the 'RUNNING' state to the 'STOPPED' state).+-- | The Unix timestamp for when the task was stopped (the task transitioned from the 'RUNNING' state to the 'STOPPED' state). tStoppedAt :: Lens' Task (Maybe UTCTime) tStoppedAt = lens _tStoppedAt (\ s a -> s{_tStoppedAt = a}) . mapping _Time; @@ -1720,11 +1770,11 @@ tOverrides :: Lens' Task (Maybe TaskOverride) tOverrides = lens _tOverrides (\ s a -> s{_tOverrides = a}); --- | The Amazon Resource Name (ARN) of the of the cluster that hosts the task.+-- | The Amazon Resource Name (ARN) of the cluster that hosts the task. tClusterARN :: Lens' Task (Maybe Text) tClusterARN = lens _tClusterARN (\ s a -> s{_tClusterARN = a}); --- | The Unix time in seconds and milliseconds when the task was created (the task entered the 'PENDING' state).+-- | The Unix timestamp for when the task was created (the task entered the 'PENDING' state). tCreatedAt :: Lens' Task (Maybe UTCTime) tCreatedAt = lens _tCreatedAt (\ s a -> s{_tCreatedAt = a}) . mapping _Time; @@ -1744,7 +1794,7 @@ tContainers :: Lens' Task [Container] tContainers = lens _tContainers (\ s a -> s{_tContainers = a}) . _Default . _Coerce; --- | The Unix time in seconds and milliseconds when the task was started (the task transitioned from the 'PENDING' state to the 'RUNNING' state).+-- | The Unix timestamp for when the task was started (the task transitioned from the 'PENDING' state to the 'RUNNING' state). tStartedAt :: Lens' Task (Maybe UTCTime) tStartedAt = lens _tStartedAt (\ s a -> s{_tStartedAt = a}) . mapping _Time; @@ -1756,7 +1806,7 @@ tStoppedReason :: Lens' Task (Maybe Text) tStoppedReason = lens _tStoppedReason (\ s a -> s{_tStoppedReason = a}); --- | The Amazon Resource Name (ARN) of the of the task definition that creates the task.+-- | The Amazon Resource Name (ARN) of the task definition that creates the task. tTaskDefinitionARN :: Lens' Task (Maybe Text) tTaskDefinitionARN = lens _tTaskDefinitionARN (\ s a -> s{_tTaskDefinitionARN = a}); @@ -1789,6 +1839,8 @@ { _tdStatus :: !(Maybe TaskDefinitionStatus) , _tdFamily :: !(Maybe Text) , _tdContainerDefinitions :: !(Maybe [ContainerDefinition])+ , _tdTaskRoleARN :: !(Maybe Text)+ , _tdNetworkMode :: !(Maybe NetworkMode) , _tdTaskDefinitionARN :: !(Maybe Text) , _tdRevision :: !(Maybe Int) , _tdVolumes :: !(Maybe [Volume])@@ -1805,6 +1857,10 @@ -- -- * 'tdContainerDefinitions' --+-- * 'tdTaskRoleARN'+--+-- * 'tdNetworkMode'+-- -- * 'tdTaskDefinitionARN' -- -- * 'tdRevision'@@ -1819,6 +1875,8 @@ { _tdStatus = Nothing , _tdFamily = Nothing , _tdContainerDefinitions = Nothing+ , _tdTaskRoleARN = Nothing+ , _tdNetworkMode = Nothing , _tdTaskDefinitionARN = Nothing , _tdRevision = Nothing , _tdVolumes = Nothing@@ -1837,7 +1895,19 @@ tdContainerDefinitions :: Lens' TaskDefinition [ContainerDefinition] tdContainerDefinitions = lens _tdContainerDefinitions (\ s a -> s{_tdContainerDefinitions = a}) . _Default . _Coerce; --- | The full Amazon Resource Name (ARN) of the of the task definition.+-- | The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role.+tdTaskRoleARN :: Lens' TaskDefinition (Maybe Text)+tdTaskRoleARN = lens _tdTaskRoleARN (\ s a -> s{_tdTaskRoleARN = a});++-- | The Docker networking mode to use for the containers in the task. The valid values are 'none', 'bridge', and 'host'.+--+-- If the network mode is 'none', the containers do not have external connectivity. The default Docker network mode is 'bridge'. The 'host' network mode offers the highest networking performance for containers because it uses the host network stack instead of the virtualized network stack provided by the 'bridge' mode.+--+-- For more information, see <https://docs.docker.com/engine/reference/run/#network-settings Network settings> in the /Docker run reference/.+tdNetworkMode :: Lens' TaskDefinition (Maybe NetworkMode)+tdNetworkMode = lens _tdNetworkMode (\ s a -> s{_tdNetworkMode = a});++-- | The full Amazon Resource Name (ARN) of the task definition. tdTaskDefinitionARN :: Lens' TaskDefinition (Maybe Text) tdTaskDefinitionARN = lens _tdTaskDefinitionARN (\ s a -> s{_tdTaskDefinitionARN = a}); @@ -1860,6 +1930,8 @@ TaskDefinition' <$> (x .:? "status") <*> (x .:? "family") <*> (x .:? "containerDefinitions" .!= mempty)+ <*> (x .:? "taskRoleArn")+ <*> (x .:? "networkMode") <*> (x .:? "taskDefinitionArn") <*> (x .:? "revision") <*> (x .:? "volumes" .!= mempty)@@ -1872,8 +1944,9 @@ -- | The overrides associated with a task. -- -- /See:/ 'taskOverride' smart constructor.-newtype TaskOverride = TaskOverride'- { _toContainerOverrides :: Maybe [ContainerOverride]+data TaskOverride = TaskOverride'+ { _toContainerOverrides :: !(Maybe [ContainerOverride])+ , _toTaskRoleARN :: !(Maybe Text) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'TaskOverride' with the minimum fields required to make a request.@@ -1881,23 +1954,31 @@ -- Use one of the following lenses to modify other fields as desired: -- -- * 'toContainerOverrides'+--+-- * 'toTaskRoleARN' taskOverride :: TaskOverride taskOverride = TaskOverride' { _toContainerOverrides = Nothing+ , _toTaskRoleARN = Nothing } -- | One or more container overrides sent to a task. toContainerOverrides :: Lens' TaskOverride [ContainerOverride] toContainerOverrides = lens _toContainerOverrides (\ s a -> s{_toContainerOverrides = a}) . _Default . _Coerce; +-- | The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role.+toTaskRoleARN :: Lens' TaskOverride (Maybe Text)+toTaskRoleARN = lens _toTaskRoleARN (\ s a -> s{_toTaskRoleARN = a});+ instance FromJSON TaskOverride where parseJSON = withObject "TaskOverride" (\ x -> TaskOverride' <$>- (x .:? "containerOverrides" .!= mempty))+ (x .:? "containerOverrides" .!= mempty) <*>+ (x .:? "taskRoleArn")) instance Hashable TaskOverride @@ -1907,8 +1988,8 @@ toJSON TaskOverride'{..} = object (catMaybes- [("containerOverrides" .=) <$>- _toContainerOverrides])+ [("containerOverrides" .=) <$> _toContainerOverrides,+ ("taskRoleArn" .=) <$> _toTaskRoleARN]) -- | The 'ulimit' settings to pass to the container. --
gen/Network/AWS/ECS/Types/Sum.hs view
@@ -37,7 +37,7 @@ "updated" -> pure AUSUpdated "updating" -> pure AUSUpdating e -> fromTextError $ "Failure parsing AgentUpdateStatus from value: '" <> e- <> "'. Accepted values: FAILED, PENDING, STAGED, STAGING, UPDATED, UPDATING"+ <> "'. Accepted values: failed, pending, staged, staging, updated, updating" instance ToText AgentUpdateStatus where toText = \case@@ -69,7 +69,7 @@ "running" -> pure Running "stopped" -> pure Stopped e -> fromTextError $ "Failure parsing DesiredStatus from value: '" <> e- <> "'. Accepted values: PENDING, RUNNING, STOPPED"+ <> "'. Accepted values: pending, running, stopped" instance ToText DesiredStatus where toText = \case@@ -87,29 +87,35 @@ toJSON = toJSONText data LogDriver- = Fluentd+ = AWSlogs+ | Fluentd | Gelf | JSONFile | Journald+ | Splunk | Syslog deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic) instance FromText LogDriver where parser = takeLowerText >>= \case+ "awslogs" -> pure AWSlogs "fluentd" -> pure Fluentd "gelf" -> pure Gelf "json-file" -> pure JSONFile "journald" -> pure Journald+ "splunk" -> pure Splunk "syslog" -> pure Syslog e -> fromTextError $ "Failure parsing LogDriver from value: '" <> e- <> "'. Accepted values: fluentd, gelf, json-file, journald, syslog"+ <> "'. Accepted values: awslogs, fluentd, gelf, json-file, journald, splunk, syslog" instance ToText LogDriver where toText = \case+ AWSlogs -> "awslogs" Fluentd -> "fluentd" Gelf -> "gelf" JSONFile -> "json-file" Journald -> "journald"+ Splunk -> "splunk" Syslog -> "syslog" instance Hashable LogDriver@@ -124,6 +130,38 @@ instance FromJSON LogDriver where parseJSON = parseJSONText "LogDriver" +data NetworkMode+ = Bridge+ | Host+ | None+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText NetworkMode where+ parser = takeLowerText >>= \case+ "bridge" -> pure Bridge+ "host" -> pure Host+ "none" -> pure None+ e -> fromTextError $ "Failure parsing NetworkMode from value: '" <> e+ <> "'. Accepted values: bridge, host, none"++instance ToText NetworkMode where+ toText = \case+ Bridge -> "bridge"+ Host -> "host"+ None -> "none"++instance Hashable NetworkMode+instance NFData NetworkMode+instance ToByteString NetworkMode+instance ToQuery NetworkMode+instance ToHeader NetworkMode++instance ToJSON NetworkMode where+ toJSON = toJSONText++instance FromJSON NetworkMode where+ parseJSON = parseJSONText "NetworkMode"+ data SortOrder = Asc | Desc@@ -134,7 +172,7 @@ "asc" -> pure Asc "desc" -> pure Desc e -> fromTextError $ "Failure parsing SortOrder from value: '" <> e- <> "'. Accepted values: ASC, DESC"+ <> "'. Accepted values: asc, desc" instance ToText SortOrder where toText = \case@@ -150,22 +188,51 @@ instance ToJSON SortOrder where toJSON = toJSONText -data TaskDefinitionStatus+data TaskDefinitionFamilyStatus = Active+ | All | Inactive deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic) -instance FromText TaskDefinitionStatus where+instance FromText TaskDefinitionFamilyStatus where parser = takeLowerText >>= \case "active" -> pure Active+ "all" -> pure All "inactive" -> pure Inactive- e -> fromTextError $ "Failure parsing TaskDefinitionStatus from value: '" <> e- <> "'. Accepted values: ACTIVE, INACTIVE"+ e -> fromTextError $ "Failure parsing TaskDefinitionFamilyStatus from value: '" <> e+ <> "'. Accepted values: active, all, inactive" -instance ToText TaskDefinitionStatus where+instance ToText TaskDefinitionFamilyStatus where toText = \case Active -> "ACTIVE"+ All -> "ALL" Inactive -> "INACTIVE"++instance Hashable TaskDefinitionFamilyStatus+instance NFData TaskDefinitionFamilyStatus+instance ToByteString TaskDefinitionFamilyStatus+instance ToQuery TaskDefinitionFamilyStatus+instance ToHeader TaskDefinitionFamilyStatus++instance ToJSON TaskDefinitionFamilyStatus where+ toJSON = toJSONText++data TaskDefinitionStatus+ = TDSActive+ | TDSInactive+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText TaskDefinitionStatus where+ parser = takeLowerText >>= \case+ "active" -> pure TDSActive+ "inactive" -> pure TDSInactive+ e -> fromTextError $ "Failure parsing TaskDefinitionStatus from value: '" <> e+ <> "'. Accepted values: active, inactive"++instance ToText TaskDefinitionStatus where+ toText = \case+ TDSActive -> "ACTIVE"+ TDSInactive -> "INACTIVE" instance Hashable TaskDefinitionStatus instance NFData TaskDefinitionStatus
+ src/.gitkeep view