{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.ECS.Types.ContainerInstance -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.ECS.Types.ContainerInstance where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.ECS.Types.AgentUpdateStatus import Amazonka.ECS.Types.Attachment import Amazonka.ECS.Types.Attribute import Amazonka.ECS.Types.ContainerInstanceHealthStatus import Amazonka.ECS.Types.Resource import Amazonka.ECS.Types.Tag import Amazonka.ECS.Types.VersionInfo import qualified Amazonka.Prelude as Prelude -- | An Amazon EC2 or External instance that\'s running the Amazon ECS agent -- and has been registered with a cluster. -- -- /See:/ 'newContainerInstance' smart constructor. data ContainerInstance = ContainerInstance' { -- | This parameter returns @true@ if the agent is connected to Amazon ECS. -- An instance with an agent that may be unhealthy or stopped return -- @false@. Only instances connected to an agent can accept task placement -- requests. agentConnected :: Prelude.Maybe Prelude.Bool, -- | The status of the most recent agent update. If an update wasn\'t ever -- requested, this value is @NULL@. agentUpdateStatus :: Prelude.Maybe AgentUpdateStatus, -- | The resources attached to a container instance, such as an elastic -- network interface. attachments :: Prelude.Maybe [Attachment], -- | The attributes set for the container instance, either by the Amazon ECS -- container agent at instance registration or manually with the -- PutAttributes operation. attributes :: Prelude.Maybe [Attribute], -- | The capacity provider that\'s associated with the container instance. capacityProviderName :: Prelude.Maybe Prelude.Text, -- | The Amazon Resource Name (ARN) of the container instance. For more -- information about the ARN format, see -- -- in the /Amazon ECS Developer Guide/. containerInstanceArn :: Prelude.Maybe Prelude.Text, -- | The ID of the container instance. For Amazon EC2 instances, this value -- is the Amazon EC2 instance ID. For external instances, this value is the -- Amazon Web Services Systems Manager managed instance ID. ec2InstanceId :: Prelude.Maybe Prelude.Text, -- | An object representing the health status of the container instance. healthStatus :: Prelude.Maybe ContainerInstanceHealthStatus, -- | The number of tasks on the container instance that are in the @PENDING@ -- status. pendingTasksCount :: Prelude.Maybe Prelude.Int, -- | The Unix timestamp for the time when the container instance was -- registered. registeredAt :: Prelude.Maybe Data.POSIX, -- | For CPU and memory resource types, this parameter describes the amount -- of each resource that was available on the container instance when the -- container agent registered it with Amazon ECS. This value represents the -- total amount of CPU and memory that can be allocated on this container -- instance to tasks. For port resource types, this parameter describes the -- ports that were reserved by the Amazon ECS container agent when it -- registered the container instance with Amazon ECS. registeredResources :: Prelude.Maybe [Resource], -- | For CPU and memory resource types, this parameter describes the -- remaining CPU and memory that wasn\'t already allocated to tasks and is -- therefore available for new tasks. For port resource types, this -- parameter describes the ports that were reserved by the Amazon ECS -- container agent (at instance registration time) and any task containers -- that have reserved port mappings on the host (with the @host@ or -- @bridge@ network mode). Any port that\'s not specified here is available -- for new tasks. remainingResources :: Prelude.Maybe [Resource], -- | The number of tasks on the container instance that are in the @RUNNING@ -- status. runningTasksCount :: Prelude.Maybe Prelude.Int, -- | The status of the container instance. The valid values are -- @REGISTERING@, @REGISTRATION_FAILED@, @ACTIVE@, @INACTIVE@, -- @DEREGISTERING@, or @DRAINING@. -- -- If your account has opted in to the @awsvpcTrunking@ account setting, -- then any newly registered container instance will transition to a -- @REGISTERING@ status while the trunk elastic network interface is -- provisioned for the instance. If the registration fails, the instance -- will transition to a @REGISTRATION_FAILED@ status. You can describe the -- container instance and see the reason for failure in the @statusReason@ -- parameter. Once the container instance is terminated, the instance -- transitions to a @DEREGISTERING@ status while the trunk elastic network -- interface is deprovisioned. The instance then transitions to an -- @INACTIVE@ status. -- -- The @ACTIVE@ status indicates that the container instance can accept -- tasks. The @DRAINING@ indicates that new tasks aren\'t placed on the -- container instance and any service tasks running on the container -- instance are removed if possible. For more information, see -- -- in the /Amazon Elastic Container Service Developer Guide/. status :: Prelude.Maybe Prelude.Text, -- | The reason that the container instance reached its current status. statusReason :: Prelude.Maybe Prelude.Text, -- | The metadata that you apply to the container instance to help you -- categorize and organize them. Each tag consists of a key and an optional -- value. You define both. -- -- 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. tags :: Prelude.Maybe [Tag], -- | The version counter for the container instance. Every time a container -- instance experiences a change that triggers a CloudWatch event, the -- version counter is incremented. If you\'re replicating your Amazon ECS -- container instance state with CloudWatch Events, you can compare the -- version of a container instance reported by the Amazon ECS APIs with the -- version reported in CloudWatch Events for the container instance (inside -- the @detail@ object) to verify that the version in your event stream is -- current. version :: Prelude.Maybe Prelude.Integer, -- | The version information for the Amazon ECS container agent and Docker -- daemon running on the container instance. versionInfo :: Prelude.Maybe VersionInfo } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ContainerInstance' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'agentConnected', 'containerInstance_agentConnected' - This parameter returns @true@ if the agent is connected to Amazon ECS. -- An instance with an agent that may be unhealthy or stopped return -- @false@. Only instances connected to an agent can accept task placement -- requests. -- -- 'agentUpdateStatus', 'containerInstance_agentUpdateStatus' - The status of the most recent agent update. If an update wasn\'t ever -- requested, this value is @NULL@. -- -- 'attachments', 'containerInstance_attachments' - The resources attached to a container instance, such as an elastic -- network interface. -- -- 'attributes', 'containerInstance_attributes' - The attributes set for the container instance, either by the Amazon ECS -- container agent at instance registration or manually with the -- PutAttributes operation. -- -- 'capacityProviderName', 'containerInstance_capacityProviderName' - The capacity provider that\'s associated with the container instance. -- -- 'containerInstanceArn', 'containerInstance_containerInstanceArn' - The Amazon Resource Name (ARN) of the container instance. For more -- information about the ARN format, see -- -- in the /Amazon ECS Developer Guide/. -- -- 'ec2InstanceId', 'containerInstance_ec2InstanceId' - The ID of the container instance. For Amazon EC2 instances, this value -- is the Amazon EC2 instance ID. For external instances, this value is the -- Amazon Web Services Systems Manager managed instance ID. -- -- 'healthStatus', 'containerInstance_healthStatus' - An object representing the health status of the container instance. -- -- 'pendingTasksCount', 'containerInstance_pendingTasksCount' - The number of tasks on the container instance that are in the @PENDING@ -- status. -- -- 'registeredAt', 'containerInstance_registeredAt' - The Unix timestamp for the time when the container instance was -- registered. -- -- 'registeredResources', 'containerInstance_registeredResources' - For CPU and memory resource types, this parameter describes the amount -- of each resource that was available on the container instance when the -- container agent registered it with Amazon ECS. This value represents the -- total amount of CPU and memory that can be allocated on this container -- instance to tasks. For port resource types, this parameter describes the -- ports that were reserved by the Amazon ECS container agent when it -- registered the container instance with Amazon ECS. -- -- 'remainingResources', 'containerInstance_remainingResources' - For CPU and memory resource types, this parameter describes the -- remaining CPU and memory that wasn\'t already allocated to tasks and is -- therefore available for new tasks. For port resource types, this -- parameter describes the ports that were reserved by the Amazon ECS -- container agent (at instance registration time) and any task containers -- that have reserved port mappings on the host (with the @host@ or -- @bridge@ network mode). Any port that\'s not specified here is available -- for new tasks. -- -- 'runningTasksCount', 'containerInstance_runningTasksCount' - The number of tasks on the container instance that are in the @RUNNING@ -- status. -- -- 'status', 'containerInstance_status' - The status of the container instance. The valid values are -- @REGISTERING@, @REGISTRATION_FAILED@, @ACTIVE@, @INACTIVE@, -- @DEREGISTERING@, or @DRAINING@. -- -- If your account has opted in to the @awsvpcTrunking@ account setting, -- then any newly registered container instance will transition to a -- @REGISTERING@ status while the trunk elastic network interface is -- provisioned for the instance. If the registration fails, the instance -- will transition to a @REGISTRATION_FAILED@ status. You can describe the -- container instance and see the reason for failure in the @statusReason@ -- parameter. Once the container instance is terminated, the instance -- transitions to a @DEREGISTERING@ status while the trunk elastic network -- interface is deprovisioned. The instance then transitions to an -- @INACTIVE@ status. -- -- The @ACTIVE@ status indicates that the container instance can accept -- tasks. The @DRAINING@ indicates that new tasks aren\'t placed on the -- container instance and any service tasks running on the container -- instance are removed if possible. For more information, see -- -- in the /Amazon Elastic Container Service Developer Guide/. -- -- 'statusReason', 'containerInstance_statusReason' - The reason that the container instance reached its current status. -- -- 'tags', 'containerInstance_tags' - The metadata that you apply to the container instance to help you -- categorize and organize them. Each tag consists of a key and an optional -- value. You define both. -- -- 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. -- -- 'version', 'containerInstance_version' - The version counter for the container instance. Every time a container -- instance experiences a change that triggers a CloudWatch event, the -- version counter is incremented. If you\'re replicating your Amazon ECS -- container instance state with CloudWatch Events, you can compare the -- version of a container instance reported by the Amazon ECS APIs with the -- version reported in CloudWatch Events for the container instance (inside -- the @detail@ object) to verify that the version in your event stream is -- current. -- -- 'versionInfo', 'containerInstance_versionInfo' - The version information for the Amazon ECS container agent and Docker -- daemon running on the container instance. newContainerInstance :: ContainerInstance newContainerInstance = ContainerInstance' { agentConnected = Prelude.Nothing, agentUpdateStatus = Prelude.Nothing, attachments = Prelude.Nothing, attributes = Prelude.Nothing, capacityProviderName = Prelude.Nothing, containerInstanceArn = Prelude.Nothing, ec2InstanceId = Prelude.Nothing, healthStatus = Prelude.Nothing, pendingTasksCount = Prelude.Nothing, registeredAt = Prelude.Nothing, registeredResources = Prelude.Nothing, remainingResources = Prelude.Nothing, runningTasksCount = Prelude.Nothing, status = Prelude.Nothing, statusReason = Prelude.Nothing, tags = Prelude.Nothing, version = Prelude.Nothing, versionInfo = Prelude.Nothing } -- | This parameter returns @true@ if the agent is connected to Amazon ECS. -- An instance with an agent that may be unhealthy or stopped return -- @false@. Only instances connected to an agent can accept task placement -- requests. containerInstance_agentConnected :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Bool) containerInstance_agentConnected = Lens.lens (\ContainerInstance' {agentConnected} -> agentConnected) (\s@ContainerInstance' {} a -> s {agentConnected = a} :: ContainerInstance) -- | The status of the most recent agent update. If an update wasn\'t ever -- requested, this value is @NULL@. containerInstance_agentUpdateStatus :: Lens.Lens' ContainerInstance (Prelude.Maybe AgentUpdateStatus) containerInstance_agentUpdateStatus = Lens.lens (\ContainerInstance' {agentUpdateStatus} -> agentUpdateStatus) (\s@ContainerInstance' {} a -> s {agentUpdateStatus = a} :: ContainerInstance) -- | The resources attached to a container instance, such as an elastic -- network interface. containerInstance_attachments :: Lens.Lens' ContainerInstance (Prelude.Maybe [Attachment]) containerInstance_attachments = Lens.lens (\ContainerInstance' {attachments} -> attachments) (\s@ContainerInstance' {} a -> s {attachments = a} :: ContainerInstance) Prelude.. Lens.mapping Lens.coerced -- | The attributes set for the container instance, either by the Amazon ECS -- container agent at instance registration or manually with the -- PutAttributes operation. containerInstance_attributes :: Lens.Lens' ContainerInstance (Prelude.Maybe [Attribute]) containerInstance_attributes = Lens.lens (\ContainerInstance' {attributes} -> attributes) (\s@ContainerInstance' {} a -> s {attributes = a} :: ContainerInstance) Prelude.. Lens.mapping Lens.coerced -- | The capacity provider that\'s associated with the container instance. containerInstance_capacityProviderName :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Text) containerInstance_capacityProviderName = Lens.lens (\ContainerInstance' {capacityProviderName} -> capacityProviderName) (\s@ContainerInstance' {} a -> s {capacityProviderName = a} :: ContainerInstance) -- | The Amazon Resource Name (ARN) of the container instance. For more -- information about the ARN format, see -- -- in the /Amazon ECS Developer Guide/. containerInstance_containerInstanceArn :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Text) containerInstance_containerInstanceArn = Lens.lens (\ContainerInstance' {containerInstanceArn} -> containerInstanceArn) (\s@ContainerInstance' {} a -> s {containerInstanceArn = a} :: ContainerInstance) -- | The ID of the container instance. For Amazon EC2 instances, this value -- is the Amazon EC2 instance ID. For external instances, this value is the -- Amazon Web Services Systems Manager managed instance ID. containerInstance_ec2InstanceId :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Text) containerInstance_ec2InstanceId = Lens.lens (\ContainerInstance' {ec2InstanceId} -> ec2InstanceId) (\s@ContainerInstance' {} a -> s {ec2InstanceId = a} :: ContainerInstance) -- | An object representing the health status of the container instance. containerInstance_healthStatus :: Lens.Lens' ContainerInstance (Prelude.Maybe ContainerInstanceHealthStatus) containerInstance_healthStatus = Lens.lens (\ContainerInstance' {healthStatus} -> healthStatus) (\s@ContainerInstance' {} a -> s {healthStatus = a} :: ContainerInstance) -- | The number of tasks on the container instance that are in the @PENDING@ -- status. containerInstance_pendingTasksCount :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Int) containerInstance_pendingTasksCount = Lens.lens (\ContainerInstance' {pendingTasksCount} -> pendingTasksCount) (\s@ContainerInstance' {} a -> s {pendingTasksCount = a} :: ContainerInstance) -- | The Unix timestamp for the time when the container instance was -- registered. containerInstance_registeredAt :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.UTCTime) containerInstance_registeredAt = Lens.lens (\ContainerInstance' {registeredAt} -> registeredAt) (\s@ContainerInstance' {} a -> s {registeredAt = a} :: ContainerInstance) Prelude.. Lens.mapping Data._Time -- | For CPU and memory resource types, this parameter describes the amount -- of each resource that was available on the container instance when the -- container agent registered it with Amazon ECS. This value represents the -- total amount of CPU and memory that can be allocated on this container -- instance to tasks. For port resource types, this parameter describes the -- ports that were reserved by the Amazon ECS container agent when it -- registered the container instance with Amazon ECS. containerInstance_registeredResources :: Lens.Lens' ContainerInstance (Prelude.Maybe [Resource]) containerInstance_registeredResources = Lens.lens (\ContainerInstance' {registeredResources} -> registeredResources) (\s@ContainerInstance' {} a -> s {registeredResources = a} :: ContainerInstance) Prelude.. Lens.mapping Lens.coerced -- | For CPU and memory resource types, this parameter describes the -- remaining CPU and memory that wasn\'t already allocated to tasks and is -- therefore available for new tasks. For port resource types, this -- parameter describes the ports that were reserved by the Amazon ECS -- container agent (at instance registration time) and any task containers -- that have reserved port mappings on the host (with the @host@ or -- @bridge@ network mode). Any port that\'s not specified here is available -- for new tasks. containerInstance_remainingResources :: Lens.Lens' ContainerInstance (Prelude.Maybe [Resource]) containerInstance_remainingResources = Lens.lens (\ContainerInstance' {remainingResources} -> remainingResources) (\s@ContainerInstance' {} a -> s {remainingResources = a} :: ContainerInstance) Prelude.. Lens.mapping Lens.coerced -- | The number of tasks on the container instance that are in the @RUNNING@ -- status. containerInstance_runningTasksCount :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Int) containerInstance_runningTasksCount = Lens.lens (\ContainerInstance' {runningTasksCount} -> runningTasksCount) (\s@ContainerInstance' {} a -> s {runningTasksCount = a} :: ContainerInstance) -- | The status of the container instance. The valid values are -- @REGISTERING@, @REGISTRATION_FAILED@, @ACTIVE@, @INACTIVE@, -- @DEREGISTERING@, or @DRAINING@. -- -- If your account has opted in to the @awsvpcTrunking@ account setting, -- then any newly registered container instance will transition to a -- @REGISTERING@ status while the trunk elastic network interface is -- provisioned for the instance. If the registration fails, the instance -- will transition to a @REGISTRATION_FAILED@ status. You can describe the -- container instance and see the reason for failure in the @statusReason@ -- parameter. Once the container instance is terminated, the instance -- transitions to a @DEREGISTERING@ status while the trunk elastic network -- interface is deprovisioned. The instance then transitions to an -- @INACTIVE@ status. -- -- The @ACTIVE@ status indicates that the container instance can accept -- tasks. The @DRAINING@ indicates that new tasks aren\'t placed on the -- container instance and any service tasks running on the container -- instance are removed if possible. For more information, see -- -- in the /Amazon Elastic Container Service Developer Guide/. containerInstance_status :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Text) containerInstance_status = Lens.lens (\ContainerInstance' {status} -> status) (\s@ContainerInstance' {} a -> s {status = a} :: ContainerInstance) -- | The reason that the container instance reached its current status. containerInstance_statusReason :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Text) containerInstance_statusReason = Lens.lens (\ContainerInstance' {statusReason} -> statusReason) (\s@ContainerInstance' {} a -> s {statusReason = a} :: ContainerInstance) -- | The metadata that you apply to the container instance to help you -- categorize and organize them. Each tag consists of a key and an optional -- value. You define both. -- -- 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. containerInstance_tags :: Lens.Lens' ContainerInstance (Prelude.Maybe [Tag]) containerInstance_tags = Lens.lens (\ContainerInstance' {tags} -> tags) (\s@ContainerInstance' {} a -> s {tags = a} :: ContainerInstance) Prelude.. Lens.mapping Lens.coerced -- | The version counter for the container instance. Every time a container -- instance experiences a change that triggers a CloudWatch event, the -- version counter is incremented. If you\'re replicating your Amazon ECS -- container instance state with CloudWatch Events, you can compare the -- version of a container instance reported by the Amazon ECS APIs with the -- version reported in CloudWatch Events for the container instance (inside -- the @detail@ object) to verify that the version in your event stream is -- current. containerInstance_version :: Lens.Lens' ContainerInstance (Prelude.Maybe Prelude.Integer) containerInstance_version = Lens.lens (\ContainerInstance' {version} -> version) (\s@ContainerInstance' {} a -> s {version = a} :: ContainerInstance) -- | The version information for the Amazon ECS container agent and Docker -- daemon running on the container instance. containerInstance_versionInfo :: Lens.Lens' ContainerInstance (Prelude.Maybe VersionInfo) containerInstance_versionInfo = Lens.lens (\ContainerInstance' {versionInfo} -> versionInfo) (\s@ContainerInstance' {} a -> s {versionInfo = a} :: ContainerInstance) instance Data.FromJSON ContainerInstance where parseJSON = Data.withObject "ContainerInstance" ( \x -> ContainerInstance' Prelude.<$> (x Data..:? "agentConnected") Prelude.<*> (x Data..:? "agentUpdateStatus") Prelude.<*> (x Data..:? "attachments" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "attributes" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "capacityProviderName") Prelude.<*> (x Data..:? "containerInstanceArn") Prelude.<*> (x Data..:? "ec2InstanceId") Prelude.<*> (x Data..:? "healthStatus") Prelude.<*> (x Data..:? "pendingTasksCount") Prelude.<*> (x Data..:? "registeredAt") Prelude.<*> ( x Data..:? "registeredResources" Data..!= Prelude.mempty ) Prelude.<*> ( x Data..:? "remainingResources" Data..!= Prelude.mempty ) Prelude.<*> (x Data..:? "runningTasksCount") Prelude.<*> (x Data..:? "status") Prelude.<*> (x Data..:? "statusReason") Prelude.<*> (x Data..:? "tags" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "version") Prelude.<*> (x Data..:? "versionInfo") ) instance Prelude.Hashable ContainerInstance where hashWithSalt _salt ContainerInstance' {..} = _salt `Prelude.hashWithSalt` agentConnected `Prelude.hashWithSalt` agentUpdateStatus `Prelude.hashWithSalt` attachments `Prelude.hashWithSalt` attributes `Prelude.hashWithSalt` capacityProviderName `Prelude.hashWithSalt` containerInstanceArn `Prelude.hashWithSalt` ec2InstanceId `Prelude.hashWithSalt` healthStatus `Prelude.hashWithSalt` pendingTasksCount `Prelude.hashWithSalt` registeredAt `Prelude.hashWithSalt` registeredResources `Prelude.hashWithSalt` remainingResources `Prelude.hashWithSalt` runningTasksCount `Prelude.hashWithSalt` status `Prelude.hashWithSalt` statusReason `Prelude.hashWithSalt` tags `Prelude.hashWithSalt` version `Prelude.hashWithSalt` versionInfo instance Prelude.NFData ContainerInstance where rnf ContainerInstance' {..} = Prelude.rnf agentConnected `Prelude.seq` Prelude.rnf agentUpdateStatus `Prelude.seq` Prelude.rnf attachments `Prelude.seq` Prelude.rnf attributes `Prelude.seq` Prelude.rnf capacityProviderName `Prelude.seq` Prelude.rnf containerInstanceArn `Prelude.seq` Prelude.rnf ec2InstanceId `Prelude.seq` Prelude.rnf healthStatus `Prelude.seq` Prelude.rnf pendingTasksCount `Prelude.seq` Prelude.rnf registeredAt `Prelude.seq` Prelude.rnf registeredResources `Prelude.seq` Prelude.rnf remainingResources `Prelude.seq` Prelude.rnf runningTasksCount `Prelude.seq` Prelude.rnf status `Prelude.seq` Prelude.rnf statusReason `Prelude.seq` Prelude.rnf tags `Prelude.seq` Prelude.rnf version `Prelude.seq` Prelude.rnf versionInfo