{-# 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 #-}
module Amazonka.EC2.Types.ScheduledInstancesIamInstanceProfile 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
data ScheduledInstancesIamInstanceProfile = ScheduledInstancesIamInstanceProfile'
{
ScheduledInstancesIamInstanceProfile -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
ScheduledInstancesIamInstanceProfile -> Maybe Text
name :: Prelude.Maybe Prelude.Text
}
deriving (ScheduledInstancesIamInstanceProfile
-> ScheduledInstancesIamInstanceProfile -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScheduledInstancesIamInstanceProfile
-> ScheduledInstancesIamInstanceProfile -> Bool
$c/= :: ScheduledInstancesIamInstanceProfile
-> ScheduledInstancesIamInstanceProfile -> Bool
== :: ScheduledInstancesIamInstanceProfile
-> ScheduledInstancesIamInstanceProfile -> Bool
$c== :: ScheduledInstancesIamInstanceProfile
-> ScheduledInstancesIamInstanceProfile -> Bool
Prelude.Eq, ReadPrec [ScheduledInstancesIamInstanceProfile]
ReadPrec ScheduledInstancesIamInstanceProfile
Int -> ReadS ScheduledInstancesIamInstanceProfile
ReadS [ScheduledInstancesIamInstanceProfile]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ScheduledInstancesIamInstanceProfile]
$creadListPrec :: ReadPrec [ScheduledInstancesIamInstanceProfile]
readPrec :: ReadPrec ScheduledInstancesIamInstanceProfile
$creadPrec :: ReadPrec ScheduledInstancesIamInstanceProfile
readList :: ReadS [ScheduledInstancesIamInstanceProfile]
$creadList :: ReadS [ScheduledInstancesIamInstanceProfile]
readsPrec :: Int -> ReadS ScheduledInstancesIamInstanceProfile
$creadsPrec :: Int -> ReadS ScheduledInstancesIamInstanceProfile
Prelude.Read, Int -> ScheduledInstancesIamInstanceProfile -> ShowS
[ScheduledInstancesIamInstanceProfile] -> ShowS
ScheduledInstancesIamInstanceProfile -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ScheduledInstancesIamInstanceProfile] -> ShowS
$cshowList :: [ScheduledInstancesIamInstanceProfile] -> ShowS
show :: ScheduledInstancesIamInstanceProfile -> String
$cshow :: ScheduledInstancesIamInstanceProfile -> String
showsPrec :: Int -> ScheduledInstancesIamInstanceProfile -> ShowS
$cshowsPrec :: Int -> ScheduledInstancesIamInstanceProfile -> ShowS
Prelude.Show, forall x.
Rep ScheduledInstancesIamInstanceProfile x
-> ScheduledInstancesIamInstanceProfile
forall x.
ScheduledInstancesIamInstanceProfile
-> Rep ScheduledInstancesIamInstanceProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ScheduledInstancesIamInstanceProfile x
-> ScheduledInstancesIamInstanceProfile
$cfrom :: forall x.
ScheduledInstancesIamInstanceProfile
-> Rep ScheduledInstancesIamInstanceProfile x
Prelude.Generic)
newScheduledInstancesIamInstanceProfile ::
ScheduledInstancesIamInstanceProfile
newScheduledInstancesIamInstanceProfile :: ScheduledInstancesIamInstanceProfile
newScheduledInstancesIamInstanceProfile =
ScheduledInstancesIamInstanceProfile'
{ $sel:arn:ScheduledInstancesIamInstanceProfile' :: Maybe Text
arn =
forall a. Maybe a
Prelude.Nothing,
$sel:name:ScheduledInstancesIamInstanceProfile' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing
}
scheduledInstancesIamInstanceProfile_arn :: Lens.Lens' ScheduledInstancesIamInstanceProfile (Prelude.Maybe Prelude.Text)
scheduledInstancesIamInstanceProfile_arn :: Lens' ScheduledInstancesIamInstanceProfile (Maybe Text)
scheduledInstancesIamInstanceProfile_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledInstancesIamInstanceProfile' {Maybe Text
arn :: Maybe Text
$sel:arn:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ScheduledInstancesIamInstanceProfile
s@ScheduledInstancesIamInstanceProfile' {} Maybe Text
a -> ScheduledInstancesIamInstanceProfile
s {$sel:arn:ScheduledInstancesIamInstanceProfile' :: Maybe Text
arn = Maybe Text
a} :: ScheduledInstancesIamInstanceProfile)
scheduledInstancesIamInstanceProfile_name :: Lens.Lens' ScheduledInstancesIamInstanceProfile (Prelude.Maybe Prelude.Text)
scheduledInstancesIamInstanceProfile_name :: Lens' ScheduledInstancesIamInstanceProfile (Maybe Text)
scheduledInstancesIamInstanceProfile_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ScheduledInstancesIamInstanceProfile' {Maybe Text
name :: Maybe Text
$sel:name:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
name} -> Maybe Text
name) (\s :: ScheduledInstancesIamInstanceProfile
s@ScheduledInstancesIamInstanceProfile' {} Maybe Text
a -> ScheduledInstancesIamInstanceProfile
s {$sel:name:ScheduledInstancesIamInstanceProfile' :: Maybe Text
name = Maybe Text
a} :: ScheduledInstancesIamInstanceProfile)
instance
Prelude.Hashable
ScheduledInstancesIamInstanceProfile
where
hashWithSalt :: Int -> ScheduledInstancesIamInstanceProfile -> Int
hashWithSalt
Int
_salt
ScheduledInstancesIamInstanceProfile' {Maybe Text
name :: Maybe Text
arn :: Maybe Text
$sel:name:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
$sel:arn:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
instance
Prelude.NFData
ScheduledInstancesIamInstanceProfile
where
rnf :: ScheduledInstancesIamInstanceProfile -> ()
rnf ScheduledInstancesIamInstanceProfile' {Maybe Text
name :: Maybe Text
arn :: Maybe Text
$sel:name:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
$sel:arn:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
instance
Data.ToQuery
ScheduledInstancesIamInstanceProfile
where
toQuery :: ScheduledInstancesIamInstanceProfile -> QueryString
toQuery ScheduledInstancesIamInstanceProfile' {Maybe Text
name :: Maybe Text
arn :: Maybe Text
$sel:name:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
$sel:arn:ScheduledInstancesIamInstanceProfile' :: ScheduledInstancesIamInstanceProfile -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"Arn" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
arn, ByteString
"Name" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
name]