Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data ContainerService = ContainerService' {
- taskSets :: Maybe [TaskSet]
- runningCount :: Maybe Int
- status :: Maybe Text
- clusterArn :: Maybe Text
- propagateTags :: Maybe PropagateTags
- createdAt :: Maybe POSIX
- platformVersion :: Maybe Text
- enableECSManagedTags :: Maybe Bool
- createdBy :: Maybe Text
- desiredCount :: Maybe Int
- loadBalancers :: Maybe [LoadBalancer]
- pendingCount :: Maybe Int
- placementConstraints :: Maybe [PlacementConstraint]
- events :: Maybe [ServiceEvent]
- placementStrategy :: Maybe [PlacementStrategy]
- deployments :: Maybe [Deployment]
- serviceName :: Maybe Text
- deploymentController :: Maybe DeploymentController
- launchType :: Maybe LaunchType
- serviceArn :: Maybe Text
- taskDefinition :: Maybe Text
- schedulingStrategy :: Maybe SchedulingStrategy
- healthCheckGracePeriodSeconds :: Maybe Int
- networkConfiguration :: Maybe NetworkConfiguration
- serviceRegistries :: Maybe [ServiceRegistry]
- capacityProviderStrategy :: Maybe [CapacityProviderStrategyItem]
- enableExecuteCommand :: Maybe Bool
- tags :: Maybe [Tag]
- roleArn :: Maybe Text
- deploymentConfiguration :: Maybe DeploymentConfiguration
- newContainerService :: ContainerService
- containerService_taskSets :: Lens' ContainerService (Maybe [TaskSet])
- containerService_runningCount :: Lens' ContainerService (Maybe Int)
- containerService_status :: Lens' ContainerService (Maybe Text)
- containerService_clusterArn :: Lens' ContainerService (Maybe Text)
- containerService_propagateTags :: Lens' ContainerService (Maybe PropagateTags)
- containerService_createdAt :: Lens' ContainerService (Maybe UTCTime)
- containerService_platformVersion :: Lens' ContainerService (Maybe Text)
- containerService_enableECSManagedTags :: Lens' ContainerService (Maybe Bool)
- containerService_createdBy :: Lens' ContainerService (Maybe Text)
- containerService_desiredCount :: Lens' ContainerService (Maybe Int)
- containerService_loadBalancers :: Lens' ContainerService (Maybe [LoadBalancer])
- containerService_pendingCount :: Lens' ContainerService (Maybe Int)
- containerService_placementConstraints :: Lens' ContainerService (Maybe [PlacementConstraint])
- containerService_events :: Lens' ContainerService (Maybe [ServiceEvent])
- containerService_placementStrategy :: Lens' ContainerService (Maybe [PlacementStrategy])
- containerService_deployments :: Lens' ContainerService (Maybe [Deployment])
- containerService_serviceName :: Lens' ContainerService (Maybe Text)
- containerService_deploymentController :: Lens' ContainerService (Maybe DeploymentController)
- containerService_launchType :: Lens' ContainerService (Maybe LaunchType)
- containerService_serviceArn :: Lens' ContainerService (Maybe Text)
- containerService_taskDefinition :: Lens' ContainerService (Maybe Text)
- containerService_schedulingStrategy :: Lens' ContainerService (Maybe SchedulingStrategy)
- containerService_healthCheckGracePeriodSeconds :: Lens' ContainerService (Maybe Int)
- containerService_networkConfiguration :: Lens' ContainerService (Maybe NetworkConfiguration)
- containerService_serviceRegistries :: Lens' ContainerService (Maybe [ServiceRegistry])
- containerService_capacityProviderStrategy :: Lens' ContainerService (Maybe [CapacityProviderStrategyItem])
- containerService_enableExecuteCommand :: Lens' ContainerService (Maybe Bool)
- containerService_tags :: Lens' ContainerService (Maybe [Tag])
- containerService_roleArn :: Lens' ContainerService (Maybe Text)
- containerService_deploymentConfiguration :: Lens' ContainerService (Maybe DeploymentConfiguration)
Documentation
data ContainerService Source #
Details on a service within a cluster
See: newContainerService
smart constructor.
ContainerService' | |
|
Instances
newContainerService :: ContainerService Source #
Create a value of ContainerService
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:taskSets:ContainerService'
, containerService_taskSets
- Information about a set of Amazon ECS tasks in either an CodeDeploy or
an EXTERNAL
deployment. An Amazon ECS task set includes details such
as the desired number of tasks, how many tasks are running, and whether
the task set serves production traffic.
$sel:runningCount:ContainerService'
, containerService_runningCount
- The number of tasks in the cluster that are in the RUNNING
state.
$sel:status:ContainerService'
, containerService_status
- The status of the service. The valid values are ACTIVE
, DRAINING
, or
INACTIVE
.
$sel:clusterArn:ContainerService'
, containerService_clusterArn
- The Amazon Resource Name (ARN) of the cluster that hosts the service.
$sel:propagateTags:ContainerService'
, containerService_propagateTags
- Specifies whether to propagate the tags from the task definition or the
service to the task. If no value is specified, the tags are not
propagated.
$sel:createdAt:ContainerService'
, containerService_createdAt
- The Unix timestamp for when the service was created.
$sel:platformVersion:ContainerService'
, containerService_platformVersion
- The platform version on which to run your service. A platform version is
only specified for tasks hosted on Fargate. If one is not specified, the
LATEST
platform version is used by default. For more information, see
Fargate Platform Versions
in the Amazon Elastic Container Service Developer Guide.
$sel:enableECSManagedTags:ContainerService'
, containerService_enableECSManagedTags
- Specifies whether to enable Amazon ECS managed tags for the tasks in the
service. For more information, see
Tagging Your Amazon ECS Resources
in the Amazon Elastic Container Service Developer Guide.
$sel:createdBy:ContainerService'
, containerService_createdBy
- The principal that created the service.
$sel:desiredCount:ContainerService'
, containerService_desiredCount
- 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.
$sel:loadBalancers:ContainerService'
, containerService_loadBalancers
- 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.
$sel:pendingCount:ContainerService'
, containerService_pendingCount
- The number of tasks in the cluster that are in the PENDING
state.
$sel:placementConstraints:ContainerService'
, containerService_placementConstraints
- The placement constraints for the tasks in the service.
$sel:events:ContainerService'
, containerService_events
- The event stream for your service. A maximum of 100 of the latest events
are displayed.
$sel:placementStrategy:ContainerService'
, containerService_placementStrategy
- The placement strategy that determines how tasks for the service are
placed.
$sel:deployments:ContainerService'
, containerService_deployments
- The current state of deployments for the service.
$sel:serviceName:ContainerService'
, containerService_serviceName
- The name of your service. Up to 255 letters (uppercase and lowercase),
numbers, underscores, and hyphens are allowed. Service names must be
unique within a cluster, but you can have similarly named services in
multiple clusters within a Region or across multiple Regions.
$sel:deploymentController:ContainerService'
, containerService_deploymentController
- The deployment controller type the service is using. When using the
DescribeServices API, this field is omitted if the service is using the
ECS
deployment controller type.
$sel:launchType:ContainerService'
, containerService_launchType
- The launch type the service is using. When using the DescribeServices
API, this field is omitted if the service was created using a capacity
provider strategy.
$sel:serviceArn:ContainerService'
, containerService_serviceArn
- The ARN that identifies the service. The ARN contains the arn:aws:ecs
namespace, followed by the Region of the service, the Amazon Web
Services account ID of the service owner, the service
namespace, and
then the service name. For example,
arn:aws:ecs:region:012345678910:service/my-service
.
$sel:taskDefinition:ContainerService'
, containerService_taskDefinition
- The task definition to use for tasks in the service. This value is
specified when the service is created with CreateService, and it can be
modified with UpdateService.
$sel:schedulingStrategy:ContainerService'
, containerService_schedulingStrategy
- The scheduling strategy to use for the service. For more information,
see
Services.
There are two service scheduler strategies available:
REPLICA
-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions.DAEMON
-The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks and will stop tasks that do not meet the placement constraints.Fargate tasks do not support the
DAEMON
scheduling strategy.
$sel:healthCheckGracePeriodSeconds:ContainerService'
, containerService_healthCheckGracePeriodSeconds
- The period of time, in seconds, that the Amazon ECS service scheduler
ignores unhealthy Elastic Load Balancing target health checks after a
task has first started.
$sel:networkConfiguration:ContainerService'
, containerService_networkConfiguration
- The VPC subnet and security group configuration for tasks that receive
their own elastic network interface by using the awsvpc
networking
mode.
$sel:serviceRegistries:ContainerService'
, containerService_serviceRegistries
- The details of the service discovery registries to assign to this
service. For more information, see
Service Discovery.
$sel:capacityProviderStrategy:ContainerService'
, containerService_capacityProviderStrategy
- The capacity provider strategy the service is using. When using the
DescribeServices API, this field is omitted if the service was created
using a launch type.
$sel:enableExecuteCommand:ContainerService'
, containerService_enableExecuteCommand
- Whether or not the execute command functionality is enabled for the
service. If true
, the execute command functionality is enabled for all
containers in tasks as part of the service.
$sel:tags:ContainerService'
, containerService_tags
- The metadata that you apply to the service to help you categorize and
organize them. Each tag consists of a key and an optional value, both of
which you define.
The following basic restrictions apply to tags:
- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
$sel:roleArn:ContainerService'
, containerService_roleArn
- The 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.
$sel:deploymentConfiguration:ContainerService'
, containerService_deploymentConfiguration
- Optional deployment parameters that control how many tasks run during
the deployment and the ordering of stopping and starting tasks.
containerService_taskSets :: Lens' ContainerService (Maybe [TaskSet]) Source #
Information about a set of Amazon ECS tasks in either an CodeDeploy or
an EXTERNAL
deployment. An Amazon ECS task set includes details such
as the desired number of tasks, how many tasks are running, and whether
the task set serves production traffic.
containerService_runningCount :: Lens' ContainerService (Maybe Int) Source #
The number of tasks in the cluster that are in the RUNNING
state.
containerService_status :: Lens' ContainerService (Maybe Text) Source #
The status of the service. The valid values are ACTIVE
, DRAINING
, or
INACTIVE
.
containerService_clusterArn :: Lens' ContainerService (Maybe Text) Source #
The Amazon Resource Name (ARN) of the cluster that hosts the service.
containerService_propagateTags :: Lens' ContainerService (Maybe PropagateTags) Source #
Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags are not propagated.
containerService_createdAt :: Lens' ContainerService (Maybe UTCTime) Source #
The Unix timestamp for when the service was created.
containerService_platformVersion :: Lens' ContainerService (Maybe Text) Source #
The platform version on which to run your service. A platform version is
only specified for tasks hosted on Fargate. If one is not specified, the
LATEST
platform version is used by default. For more information, see
Fargate Platform Versions
in the Amazon Elastic Container Service Developer Guide.
containerService_enableECSManagedTags :: Lens' ContainerService (Maybe Bool) Source #
Specifies whether to enable Amazon ECS managed tags for the tasks in the service. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.
containerService_createdBy :: Lens' ContainerService (Maybe Text) Source #
The principal that created the service.
containerService_desiredCount :: Lens' ContainerService (Maybe Int) Source #
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.
containerService_loadBalancers :: Lens' ContainerService (Maybe [LoadBalancer]) Source #
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.
containerService_pendingCount :: Lens' ContainerService (Maybe Int) Source #
The number of tasks in the cluster that are in the PENDING
state.
containerService_placementConstraints :: Lens' ContainerService (Maybe [PlacementConstraint]) Source #
The placement constraints for the tasks in the service.
containerService_events :: Lens' ContainerService (Maybe [ServiceEvent]) Source #
The event stream for your service. A maximum of 100 of the latest events are displayed.
containerService_placementStrategy :: Lens' ContainerService (Maybe [PlacementStrategy]) Source #
The placement strategy that determines how tasks for the service are placed.
containerService_deployments :: Lens' ContainerService (Maybe [Deployment]) Source #
The current state of deployments for the service.
containerService_serviceName :: Lens' ContainerService (Maybe Text) Source #
The name of your service. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a Region or across multiple Regions.
containerService_deploymentController :: Lens' ContainerService (Maybe DeploymentController) Source #
The deployment controller type the service is using. When using the
DescribeServices API, this field is omitted if the service is using the
ECS
deployment controller type.
containerService_launchType :: Lens' ContainerService (Maybe LaunchType) Source #
The launch type the service is using. When using the DescribeServices API, this field is omitted if the service was created using a capacity provider strategy.
containerService_serviceArn :: Lens' ContainerService (Maybe Text) Source #
The ARN that identifies the service. The ARN contains the arn:aws:ecs
namespace, followed by the Region of the service, the Amazon Web
Services account ID of the service owner, the service
namespace, and
then the service name. For example,
arn:aws:ecs:region:012345678910:service/my-service
.
containerService_taskDefinition :: Lens' ContainerService (Maybe Text) Source #
The task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.
containerService_schedulingStrategy :: Lens' ContainerService (Maybe SchedulingStrategy) Source #
The scheduling strategy to use for the service. For more information, see Services.
There are two service scheduler strategies available:
REPLICA
-The replica scheduling strategy places and maintains the desired number of tasks across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task placement strategies and constraints to customize task placement decisions.DAEMON
-The daemon scheduling strategy deploys exactly one task on each active container instance that meets all of the task placement constraints that you specify in your cluster. The service scheduler also evaluates the task placement constraints for running tasks and will stop tasks that do not meet the placement constraints.Fargate tasks do not support the
DAEMON
scheduling strategy.
containerService_healthCheckGracePeriodSeconds :: Lens' ContainerService (Maybe Int) Source #
The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.
containerService_networkConfiguration :: Lens' ContainerService (Maybe NetworkConfiguration) Source #
The VPC subnet and security group configuration for tasks that receive
their own elastic network interface by using the awsvpc
networking
mode.
containerService_serviceRegistries :: Lens' ContainerService (Maybe [ServiceRegistry]) Source #
The details of the service discovery registries to assign to this service. For more information, see Service Discovery.
containerService_capacityProviderStrategy :: Lens' ContainerService (Maybe [CapacityProviderStrategyItem]) Source #
The capacity provider strategy the service is using. When using the DescribeServices API, this field is omitted if the service was created using a launch type.
containerService_enableExecuteCommand :: Lens' ContainerService (Maybe Bool) Source #
Whether or not the execute command functionality is enabled for the
service. If true
, the execute command functionality is enabled for all
containers in tasks as part of the service.
containerService_tags :: Lens' ContainerService (Maybe [Tag]) Source #
The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
The following basic restrictions apply to tags:
- Maximum number of tags per resource - 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length - 128 Unicode characters in UTF-8
- Maximum value length - 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
- Tag keys and values are case-sensitive.
- Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
containerService_roleArn :: Lens' ContainerService (Maybe Text) Source #
The 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.
containerService_deploymentConfiguration :: Lens' ContainerService (Maybe DeploymentConfiguration) Source #
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.