{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DeviceFarm.CreateInstanceProfile
(
CreateInstanceProfile (..),
newCreateInstanceProfile,
createInstanceProfile_rebootAfterUse,
createInstanceProfile_packageCleanup,
createInstanceProfile_excludeAppPackagesFromCleanup,
createInstanceProfile_description,
createInstanceProfile_name,
CreateInstanceProfileResponse (..),
newCreateInstanceProfileResponse,
createInstanceProfileResponse_instanceProfile,
createInstanceProfileResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DeviceFarm.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateInstanceProfile = CreateInstanceProfile'
{
CreateInstanceProfile -> Maybe Bool
rebootAfterUse :: Prelude.Maybe Prelude.Bool,
CreateInstanceProfile -> Maybe Bool
packageCleanup :: Prelude.Maybe Prelude.Bool,
CreateInstanceProfile -> Maybe [Text]
excludeAppPackagesFromCleanup :: Prelude.Maybe [Prelude.Text],
CreateInstanceProfile -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateInstanceProfile -> Text
name :: Prelude.Text
}
deriving (CreateInstanceProfile -> CreateInstanceProfile -> Bool
(CreateInstanceProfile -> CreateInstanceProfile -> Bool)
-> (CreateInstanceProfile -> CreateInstanceProfile -> Bool)
-> Eq CreateInstanceProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateInstanceProfile -> CreateInstanceProfile -> Bool
$c/= :: CreateInstanceProfile -> CreateInstanceProfile -> Bool
== :: CreateInstanceProfile -> CreateInstanceProfile -> Bool
$c== :: CreateInstanceProfile -> CreateInstanceProfile -> Bool
Prelude.Eq, ReadPrec [CreateInstanceProfile]
ReadPrec CreateInstanceProfile
Int -> ReadS CreateInstanceProfile
ReadS [CreateInstanceProfile]
(Int -> ReadS CreateInstanceProfile)
-> ReadS [CreateInstanceProfile]
-> ReadPrec CreateInstanceProfile
-> ReadPrec [CreateInstanceProfile]
-> Read CreateInstanceProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateInstanceProfile]
$creadListPrec :: ReadPrec [CreateInstanceProfile]
readPrec :: ReadPrec CreateInstanceProfile
$creadPrec :: ReadPrec CreateInstanceProfile
readList :: ReadS [CreateInstanceProfile]
$creadList :: ReadS [CreateInstanceProfile]
readsPrec :: Int -> ReadS CreateInstanceProfile
$creadsPrec :: Int -> ReadS CreateInstanceProfile
Prelude.Read, Int -> CreateInstanceProfile -> ShowS
[CreateInstanceProfile] -> ShowS
CreateInstanceProfile -> String
(Int -> CreateInstanceProfile -> ShowS)
-> (CreateInstanceProfile -> String)
-> ([CreateInstanceProfile] -> ShowS)
-> Show CreateInstanceProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateInstanceProfile] -> ShowS
$cshowList :: [CreateInstanceProfile] -> ShowS
show :: CreateInstanceProfile -> String
$cshow :: CreateInstanceProfile -> String
showsPrec :: Int -> CreateInstanceProfile -> ShowS
$cshowsPrec :: Int -> CreateInstanceProfile -> ShowS
Prelude.Show, (forall x. CreateInstanceProfile -> Rep CreateInstanceProfile x)
-> (forall x. Rep CreateInstanceProfile x -> CreateInstanceProfile)
-> Generic CreateInstanceProfile
forall x. Rep CreateInstanceProfile x -> CreateInstanceProfile
forall x. CreateInstanceProfile -> Rep CreateInstanceProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateInstanceProfile x -> CreateInstanceProfile
$cfrom :: forall x. CreateInstanceProfile -> Rep CreateInstanceProfile x
Prelude.Generic)
newCreateInstanceProfile ::
Prelude.Text ->
CreateInstanceProfile
newCreateInstanceProfile :: Text -> CreateInstanceProfile
newCreateInstanceProfile Text
pName_ =
CreateInstanceProfile' :: Maybe Bool
-> Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Text
-> CreateInstanceProfile
CreateInstanceProfile'
{ $sel:rebootAfterUse:CreateInstanceProfile' :: Maybe Bool
rebootAfterUse =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:packageCleanup:CreateInstanceProfile' :: Maybe Bool
packageCleanup = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:excludeAppPackagesFromCleanup:CreateInstanceProfile' :: Maybe [Text]
excludeAppPackagesFromCleanup = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateInstanceProfile' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateInstanceProfile' :: Text
name = Text
pName_
}
createInstanceProfile_rebootAfterUse :: Lens.Lens' CreateInstanceProfile (Prelude.Maybe Prelude.Bool)
createInstanceProfile_rebootAfterUse :: (Maybe Bool -> f (Maybe Bool))
-> CreateInstanceProfile -> f CreateInstanceProfile
createInstanceProfile_rebootAfterUse = (CreateInstanceProfile -> Maybe Bool)
-> (CreateInstanceProfile -> Maybe Bool -> CreateInstanceProfile)
-> Lens
CreateInstanceProfile
CreateInstanceProfile
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceProfile' {Maybe Bool
rebootAfterUse :: Maybe Bool
$sel:rebootAfterUse:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe Bool
rebootAfterUse} -> Maybe Bool
rebootAfterUse) (\s :: CreateInstanceProfile
s@CreateInstanceProfile' {} Maybe Bool
a -> CreateInstanceProfile
s {$sel:rebootAfterUse:CreateInstanceProfile' :: Maybe Bool
rebootAfterUse = Maybe Bool
a} :: CreateInstanceProfile)
createInstanceProfile_packageCleanup :: Lens.Lens' CreateInstanceProfile (Prelude.Maybe Prelude.Bool)
createInstanceProfile_packageCleanup :: (Maybe Bool -> f (Maybe Bool))
-> CreateInstanceProfile -> f CreateInstanceProfile
createInstanceProfile_packageCleanup = (CreateInstanceProfile -> Maybe Bool)
-> (CreateInstanceProfile -> Maybe Bool -> CreateInstanceProfile)
-> Lens
CreateInstanceProfile
CreateInstanceProfile
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceProfile' {Maybe Bool
packageCleanup :: Maybe Bool
$sel:packageCleanup:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe Bool
packageCleanup} -> Maybe Bool
packageCleanup) (\s :: CreateInstanceProfile
s@CreateInstanceProfile' {} Maybe Bool
a -> CreateInstanceProfile
s {$sel:packageCleanup:CreateInstanceProfile' :: Maybe Bool
packageCleanup = Maybe Bool
a} :: CreateInstanceProfile)
createInstanceProfile_excludeAppPackagesFromCleanup :: Lens.Lens' CreateInstanceProfile (Prelude.Maybe [Prelude.Text])
createInstanceProfile_excludeAppPackagesFromCleanup :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateInstanceProfile -> f CreateInstanceProfile
createInstanceProfile_excludeAppPackagesFromCleanup = (CreateInstanceProfile -> Maybe [Text])
-> (CreateInstanceProfile -> Maybe [Text] -> CreateInstanceProfile)
-> Lens
CreateInstanceProfile
CreateInstanceProfile
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceProfile' {Maybe [Text]
excludeAppPackagesFromCleanup :: Maybe [Text]
$sel:excludeAppPackagesFromCleanup:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe [Text]
excludeAppPackagesFromCleanup} -> Maybe [Text]
excludeAppPackagesFromCleanup) (\s :: CreateInstanceProfile
s@CreateInstanceProfile' {} Maybe [Text]
a -> CreateInstanceProfile
s {$sel:excludeAppPackagesFromCleanup:CreateInstanceProfile' :: Maybe [Text]
excludeAppPackagesFromCleanup = Maybe [Text]
a} :: CreateInstanceProfile) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateInstanceProfile -> f CreateInstanceProfile)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateInstanceProfile
-> f CreateInstanceProfile
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createInstanceProfile_description :: Lens.Lens' CreateInstanceProfile (Prelude.Maybe Prelude.Text)
createInstanceProfile_description :: (Maybe Text -> f (Maybe Text))
-> CreateInstanceProfile -> f CreateInstanceProfile
createInstanceProfile_description = (CreateInstanceProfile -> Maybe Text)
-> (CreateInstanceProfile -> Maybe Text -> CreateInstanceProfile)
-> Lens
CreateInstanceProfile
CreateInstanceProfile
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceProfile' {Maybe Text
description :: Maybe Text
$sel:description:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateInstanceProfile
s@CreateInstanceProfile' {} Maybe Text
a -> CreateInstanceProfile
s {$sel:description:CreateInstanceProfile' :: Maybe Text
description = Maybe Text
a} :: CreateInstanceProfile)
createInstanceProfile_name :: Lens.Lens' CreateInstanceProfile Prelude.Text
createInstanceProfile_name :: (Text -> f Text)
-> CreateInstanceProfile -> f CreateInstanceProfile
createInstanceProfile_name = (CreateInstanceProfile -> Text)
-> (CreateInstanceProfile -> Text -> CreateInstanceProfile)
-> Lens CreateInstanceProfile CreateInstanceProfile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceProfile' {Text
name :: Text
$sel:name:CreateInstanceProfile' :: CreateInstanceProfile -> Text
name} -> Text
name) (\s :: CreateInstanceProfile
s@CreateInstanceProfile' {} Text
a -> CreateInstanceProfile
s {$sel:name:CreateInstanceProfile' :: Text
name = Text
a} :: CreateInstanceProfile)
instance Core.AWSRequest CreateInstanceProfile where
type
AWSResponse CreateInstanceProfile =
CreateInstanceProfileResponse
request :: CreateInstanceProfile -> Request CreateInstanceProfile
request = Service -> CreateInstanceProfile -> Request CreateInstanceProfile
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateInstanceProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateInstanceProfile)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateInstanceProfile))
-> Logger
-> Service
-> Proxy CreateInstanceProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateInstanceProfile)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe InstanceProfile -> Int -> CreateInstanceProfileResponse
CreateInstanceProfileResponse'
(Maybe InstanceProfile -> Int -> CreateInstanceProfileResponse)
-> Either String (Maybe InstanceProfile)
-> Either String (Int -> CreateInstanceProfileResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe InstanceProfile)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"instanceProfile")
Either String (Int -> CreateInstanceProfileResponse)
-> Either String Int -> Either String CreateInstanceProfileResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateInstanceProfile
instance Prelude.NFData CreateInstanceProfile
instance Core.ToHeaders CreateInstanceProfile where
toHeaders :: CreateInstanceProfile -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateInstanceProfile -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"DeviceFarm_20150623.CreateInstanceProfile" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateInstanceProfile where
toJSON :: CreateInstanceProfile -> Value
toJSON CreateInstanceProfile' {Maybe Bool
Maybe [Text]
Maybe Text
Text
name :: Text
description :: Maybe Text
excludeAppPackagesFromCleanup :: Maybe [Text]
packageCleanup :: Maybe Bool
rebootAfterUse :: Maybe Bool
$sel:name:CreateInstanceProfile' :: CreateInstanceProfile -> Text
$sel:description:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe Text
$sel:excludeAppPackagesFromCleanup:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe [Text]
$sel:packageCleanup:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe Bool
$sel:rebootAfterUse:CreateInstanceProfile' :: CreateInstanceProfile -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"rebootAfterUse" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
rebootAfterUse,
(Text
"packageCleanup" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
packageCleanup,
(Text
"excludeAppPackagesFromCleanup" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
excludeAppPackagesFromCleanup,
(Text
"description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
]
)
instance Core.ToPath CreateInstanceProfile where
toPath :: CreateInstanceProfile -> ByteString
toPath = ByteString -> CreateInstanceProfile -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateInstanceProfile where
toQuery :: CreateInstanceProfile -> QueryString
toQuery = QueryString -> CreateInstanceProfile -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateInstanceProfileResponse = CreateInstanceProfileResponse'
{
CreateInstanceProfileResponse -> Maybe InstanceProfile
instanceProfile :: Prelude.Maybe InstanceProfile,
CreateInstanceProfileResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateInstanceProfileResponse
-> CreateInstanceProfileResponse -> Bool
(CreateInstanceProfileResponse
-> CreateInstanceProfileResponse -> Bool)
-> (CreateInstanceProfileResponse
-> CreateInstanceProfileResponse -> Bool)
-> Eq CreateInstanceProfileResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateInstanceProfileResponse
-> CreateInstanceProfileResponse -> Bool
$c/= :: CreateInstanceProfileResponse
-> CreateInstanceProfileResponse -> Bool
== :: CreateInstanceProfileResponse
-> CreateInstanceProfileResponse -> Bool
$c== :: CreateInstanceProfileResponse
-> CreateInstanceProfileResponse -> Bool
Prelude.Eq, ReadPrec [CreateInstanceProfileResponse]
ReadPrec CreateInstanceProfileResponse
Int -> ReadS CreateInstanceProfileResponse
ReadS [CreateInstanceProfileResponse]
(Int -> ReadS CreateInstanceProfileResponse)
-> ReadS [CreateInstanceProfileResponse]
-> ReadPrec CreateInstanceProfileResponse
-> ReadPrec [CreateInstanceProfileResponse]
-> Read CreateInstanceProfileResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateInstanceProfileResponse]
$creadListPrec :: ReadPrec [CreateInstanceProfileResponse]
readPrec :: ReadPrec CreateInstanceProfileResponse
$creadPrec :: ReadPrec CreateInstanceProfileResponse
readList :: ReadS [CreateInstanceProfileResponse]
$creadList :: ReadS [CreateInstanceProfileResponse]
readsPrec :: Int -> ReadS CreateInstanceProfileResponse
$creadsPrec :: Int -> ReadS CreateInstanceProfileResponse
Prelude.Read, Int -> CreateInstanceProfileResponse -> ShowS
[CreateInstanceProfileResponse] -> ShowS
CreateInstanceProfileResponse -> String
(Int -> CreateInstanceProfileResponse -> ShowS)
-> (CreateInstanceProfileResponse -> String)
-> ([CreateInstanceProfileResponse] -> ShowS)
-> Show CreateInstanceProfileResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateInstanceProfileResponse] -> ShowS
$cshowList :: [CreateInstanceProfileResponse] -> ShowS
show :: CreateInstanceProfileResponse -> String
$cshow :: CreateInstanceProfileResponse -> String
showsPrec :: Int -> CreateInstanceProfileResponse -> ShowS
$cshowsPrec :: Int -> CreateInstanceProfileResponse -> ShowS
Prelude.Show, (forall x.
CreateInstanceProfileResponse
-> Rep CreateInstanceProfileResponse x)
-> (forall x.
Rep CreateInstanceProfileResponse x
-> CreateInstanceProfileResponse)
-> Generic CreateInstanceProfileResponse
forall x.
Rep CreateInstanceProfileResponse x
-> CreateInstanceProfileResponse
forall x.
CreateInstanceProfileResponse
-> Rep CreateInstanceProfileResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateInstanceProfileResponse x
-> CreateInstanceProfileResponse
$cfrom :: forall x.
CreateInstanceProfileResponse
-> Rep CreateInstanceProfileResponse x
Prelude.Generic)
newCreateInstanceProfileResponse ::
Prelude.Int ->
CreateInstanceProfileResponse
newCreateInstanceProfileResponse :: Int -> CreateInstanceProfileResponse
newCreateInstanceProfileResponse Int
pHttpStatus_ =
CreateInstanceProfileResponse' :: Maybe InstanceProfile -> Int -> CreateInstanceProfileResponse
CreateInstanceProfileResponse'
{ $sel:instanceProfile:CreateInstanceProfileResponse' :: Maybe InstanceProfile
instanceProfile =
Maybe InstanceProfile
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateInstanceProfileResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createInstanceProfileResponse_instanceProfile :: Lens.Lens' CreateInstanceProfileResponse (Prelude.Maybe InstanceProfile)
createInstanceProfileResponse_instanceProfile :: (Maybe InstanceProfile -> f (Maybe InstanceProfile))
-> CreateInstanceProfileResponse -> f CreateInstanceProfileResponse
createInstanceProfileResponse_instanceProfile = (CreateInstanceProfileResponse -> Maybe InstanceProfile)
-> (CreateInstanceProfileResponse
-> Maybe InstanceProfile -> CreateInstanceProfileResponse)
-> Lens
CreateInstanceProfileResponse
CreateInstanceProfileResponse
(Maybe InstanceProfile)
(Maybe InstanceProfile)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceProfileResponse' {Maybe InstanceProfile
instanceProfile :: Maybe InstanceProfile
$sel:instanceProfile:CreateInstanceProfileResponse' :: CreateInstanceProfileResponse -> Maybe InstanceProfile
instanceProfile} -> Maybe InstanceProfile
instanceProfile) (\s :: CreateInstanceProfileResponse
s@CreateInstanceProfileResponse' {} Maybe InstanceProfile
a -> CreateInstanceProfileResponse
s {$sel:instanceProfile:CreateInstanceProfileResponse' :: Maybe InstanceProfile
instanceProfile = Maybe InstanceProfile
a} :: CreateInstanceProfileResponse)
createInstanceProfileResponse_httpStatus :: Lens.Lens' CreateInstanceProfileResponse Prelude.Int
createInstanceProfileResponse_httpStatus :: (Int -> f Int)
-> CreateInstanceProfileResponse -> f CreateInstanceProfileResponse
createInstanceProfileResponse_httpStatus = (CreateInstanceProfileResponse -> Int)
-> (CreateInstanceProfileResponse
-> Int -> CreateInstanceProfileResponse)
-> Lens
CreateInstanceProfileResponse CreateInstanceProfileResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateInstanceProfileResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateInstanceProfileResponse' :: CreateInstanceProfileResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateInstanceProfileResponse
s@CreateInstanceProfileResponse' {} Int
a -> CreateInstanceProfileResponse
s {$sel:httpStatus:CreateInstanceProfileResponse' :: Int
httpStatus = Int
a} :: CreateInstanceProfileResponse)
instance Prelude.NFData CreateInstanceProfileResponse