{-# 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.EC2.Types.LaunchTemplateElasticInferenceAcceleratorResponse -- 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.EC2.Types.LaunchTemplateElasticInferenceAcceleratorResponse where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.EC2.Internal import qualified Amazonka.Prelude as Prelude -- | Describes an elastic inference accelerator. -- -- /See:/ 'newLaunchTemplateElasticInferenceAcceleratorResponse' smart constructor. data LaunchTemplateElasticInferenceAcceleratorResponse = LaunchTemplateElasticInferenceAcceleratorResponse' { -- | The number of elastic inference accelerators to attach to the instance. -- -- Default: 1 count :: Prelude.Maybe Prelude.Int, -- | The type of elastic inference accelerator. The possible values are -- eia1.medium, eia1.large, and eia1.xlarge. type' :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'LaunchTemplateElasticInferenceAcceleratorResponse' 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: -- -- 'count', 'launchTemplateElasticInferenceAcceleratorResponse_count' - The number of elastic inference accelerators to attach to the instance. -- -- Default: 1 -- -- 'type'', 'launchTemplateElasticInferenceAcceleratorResponse_type' - The type of elastic inference accelerator. The possible values are -- eia1.medium, eia1.large, and eia1.xlarge. newLaunchTemplateElasticInferenceAcceleratorResponse :: LaunchTemplateElasticInferenceAcceleratorResponse newLaunchTemplateElasticInferenceAcceleratorResponse = LaunchTemplateElasticInferenceAcceleratorResponse' { count = Prelude.Nothing, type' = Prelude.Nothing } -- | The number of elastic inference accelerators to attach to the instance. -- -- Default: 1 launchTemplateElasticInferenceAcceleratorResponse_count :: Lens.Lens' LaunchTemplateElasticInferenceAcceleratorResponse (Prelude.Maybe Prelude.Int) launchTemplateElasticInferenceAcceleratorResponse_count = Lens.lens (\LaunchTemplateElasticInferenceAcceleratorResponse' {count} -> count) (\s@LaunchTemplateElasticInferenceAcceleratorResponse' {} a -> s {count = a} :: LaunchTemplateElasticInferenceAcceleratorResponse) -- | The type of elastic inference accelerator. The possible values are -- eia1.medium, eia1.large, and eia1.xlarge. launchTemplateElasticInferenceAcceleratorResponse_type :: Lens.Lens' LaunchTemplateElasticInferenceAcceleratorResponse (Prelude.Maybe Prelude.Text) launchTemplateElasticInferenceAcceleratorResponse_type = Lens.lens (\LaunchTemplateElasticInferenceAcceleratorResponse' {type'} -> type') (\s@LaunchTemplateElasticInferenceAcceleratorResponse' {} a -> s {type' = a} :: LaunchTemplateElasticInferenceAcceleratorResponse) instance Data.FromXML LaunchTemplateElasticInferenceAcceleratorResponse where parseXML x = LaunchTemplateElasticInferenceAcceleratorResponse' Prelude.<$> (x Data..@? "count") Prelude.<*> (x Data..@? "type") instance Prelude.Hashable LaunchTemplateElasticInferenceAcceleratorResponse where hashWithSalt _salt LaunchTemplateElasticInferenceAcceleratorResponse' {..} = _salt `Prelude.hashWithSalt` count `Prelude.hashWithSalt` type' instance Prelude.NFData LaunchTemplateElasticInferenceAcceleratorResponse where rnf LaunchTemplateElasticInferenceAcceleratorResponse' {..} = Prelude.rnf count `Prelude.seq` Prelude.rnf type'