{-# 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.ElasticGpuSpecification
-- 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.ElasticGpuSpecification 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

-- | A specification for an Elastic Graphics accelerator.
--
-- /See:/ 'newElasticGpuSpecification' smart constructor.
data ElasticGpuSpecification = ElasticGpuSpecification'
  { -- | The type of Elastic Graphics accelerator. For more information about the
    -- values to specify for @Type@, see
    -- <https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics Elastic Graphics Basics>,
    -- specifically the Elastic Graphics accelerator column, in the /Amazon
    -- Elastic Compute Cloud User Guide for Windows Instances/.
    ElasticGpuSpecification -> Text
type' :: Prelude.Text
  }
  deriving (ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
$c/= :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
== :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
$c== :: ElasticGpuSpecification -> ElasticGpuSpecification -> Bool
Prelude.Eq, ReadPrec [ElasticGpuSpecification]
ReadPrec ElasticGpuSpecification
Int -> ReadS ElasticGpuSpecification
ReadS [ElasticGpuSpecification]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ElasticGpuSpecification]
$creadListPrec :: ReadPrec [ElasticGpuSpecification]
readPrec :: ReadPrec ElasticGpuSpecification
$creadPrec :: ReadPrec ElasticGpuSpecification
readList :: ReadS [ElasticGpuSpecification]
$creadList :: ReadS [ElasticGpuSpecification]
readsPrec :: Int -> ReadS ElasticGpuSpecification
$creadsPrec :: Int -> ReadS ElasticGpuSpecification
Prelude.Read, Int -> ElasticGpuSpecification -> ShowS
[ElasticGpuSpecification] -> ShowS
ElasticGpuSpecification -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ElasticGpuSpecification] -> ShowS
$cshowList :: [ElasticGpuSpecification] -> ShowS
show :: ElasticGpuSpecification -> String
$cshow :: ElasticGpuSpecification -> String
showsPrec :: Int -> ElasticGpuSpecification -> ShowS
$cshowsPrec :: Int -> ElasticGpuSpecification -> ShowS
Prelude.Show, forall x. Rep ElasticGpuSpecification x -> ElasticGpuSpecification
forall x. ElasticGpuSpecification -> Rep ElasticGpuSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ElasticGpuSpecification x -> ElasticGpuSpecification
$cfrom :: forall x. ElasticGpuSpecification -> Rep ElasticGpuSpecification x
Prelude.Generic)

-- |
-- Create a value of 'ElasticGpuSpecification' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'type'', 'elasticGpuSpecification_type' - The type of Elastic Graphics accelerator. For more information about the
-- values to specify for @Type@, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics Elastic Graphics Basics>,
-- specifically the Elastic Graphics accelerator column, in the /Amazon
-- Elastic Compute Cloud User Guide for Windows Instances/.
newElasticGpuSpecification ::
  -- | 'type''
  Prelude.Text ->
  ElasticGpuSpecification
newElasticGpuSpecification :: Text -> ElasticGpuSpecification
newElasticGpuSpecification Text
pType_ =
  ElasticGpuSpecification' {$sel:type':ElasticGpuSpecification' :: Text
type' = Text
pType_}

-- | The type of Elastic Graphics accelerator. For more information about the
-- values to specify for @Type@, see
-- <https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html#elastic-graphics-basics Elastic Graphics Basics>,
-- specifically the Elastic Graphics accelerator column, in the /Amazon
-- Elastic Compute Cloud User Guide for Windows Instances/.
elasticGpuSpecification_type :: Lens.Lens' ElasticGpuSpecification Prelude.Text
elasticGpuSpecification_type :: Lens' ElasticGpuSpecification Text
elasticGpuSpecification_type = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
type'} -> Text
type') (\s :: ElasticGpuSpecification
s@ElasticGpuSpecification' {} Text
a -> ElasticGpuSpecification
s {$sel:type':ElasticGpuSpecification' :: Text
type' = Text
a} :: ElasticGpuSpecification)

instance Prelude.Hashable ElasticGpuSpecification where
  hashWithSalt :: Int -> ElasticGpuSpecification -> Int
hashWithSalt Int
_salt ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
type'

instance Prelude.NFData ElasticGpuSpecification where
  rnf :: ElasticGpuSpecification -> ()
rnf ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
type'

instance Data.ToQuery ElasticGpuSpecification where
  toQuery :: ElasticGpuSpecification -> QueryString
toQuery ElasticGpuSpecification' {Text
type' :: Text
$sel:type':ElasticGpuSpecification' :: ElasticGpuSpecification -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"Type" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
type']