{-# 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.OpsWorks.CreateLayer
(
CreateLayer (..),
newCreateLayer,
createLayer_customInstanceProfileArn,
createLayer_customSecurityGroupIds,
createLayer_installUpdatesOnBoot,
createLayer_cloudWatchLogsConfiguration,
createLayer_lifecycleEventConfiguration,
createLayer_customRecipes,
createLayer_customJson,
createLayer_volumeConfigurations,
createLayer_enableAutoHealing,
createLayer_packages,
createLayer_attributes,
createLayer_autoAssignPublicIps,
createLayer_useEbsOptimizedInstances,
createLayer_autoAssignElasticIps,
createLayer_stackId,
createLayer_type,
createLayer_name,
createLayer_shortname,
CreateLayerResponse (..),
newCreateLayerResponse,
createLayerResponse_layerId,
createLayerResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpsWorks.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateLayer = CreateLayer'
{
CreateLayer -> Maybe Text
customInstanceProfileArn :: Prelude.Maybe Prelude.Text,
CreateLayer -> Maybe [Text]
customSecurityGroupIds :: Prelude.Maybe [Prelude.Text],
CreateLayer -> Maybe Bool
installUpdatesOnBoot :: Prelude.Maybe Prelude.Bool,
CreateLayer -> Maybe CloudWatchLogsConfiguration
cloudWatchLogsConfiguration :: Prelude.Maybe CloudWatchLogsConfiguration,
CreateLayer -> Maybe LifecycleEventConfiguration
lifecycleEventConfiguration :: Prelude.Maybe LifecycleEventConfiguration,
CreateLayer -> Maybe Recipes
customRecipes :: Prelude.Maybe Recipes,
CreateLayer -> Maybe Text
customJson :: Prelude.Maybe Prelude.Text,
CreateLayer -> Maybe [VolumeConfiguration]
volumeConfigurations :: Prelude.Maybe [VolumeConfiguration],
CreateLayer -> Maybe Bool
enableAutoHealing :: Prelude.Maybe Prelude.Bool,
CreateLayer -> Maybe [Text]
packages :: Prelude.Maybe [Prelude.Text],
CreateLayer -> Maybe (HashMap LayerAttributesKeys (Maybe Text))
attributes :: Prelude.Maybe (Prelude.HashMap LayerAttributesKeys (Prelude.Maybe Prelude.Text)),
CreateLayer -> Maybe Bool
autoAssignPublicIps :: Prelude.Maybe Prelude.Bool,
CreateLayer -> Maybe Bool
useEbsOptimizedInstances :: Prelude.Maybe Prelude.Bool,
CreateLayer -> Maybe Bool
autoAssignElasticIps :: Prelude.Maybe Prelude.Bool,
CreateLayer -> Text
stackId :: Prelude.Text,
CreateLayer -> LayerType
type' :: LayerType,
CreateLayer -> Text
name :: Prelude.Text,
CreateLayer -> Text
shortname :: Prelude.Text
}
deriving (CreateLayer -> CreateLayer -> Bool
(CreateLayer -> CreateLayer -> Bool)
-> (CreateLayer -> CreateLayer -> Bool) -> Eq CreateLayer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateLayer -> CreateLayer -> Bool
$c/= :: CreateLayer -> CreateLayer -> Bool
== :: CreateLayer -> CreateLayer -> Bool
$c== :: CreateLayer -> CreateLayer -> Bool
Prelude.Eq, ReadPrec [CreateLayer]
ReadPrec CreateLayer
Int -> ReadS CreateLayer
ReadS [CreateLayer]
(Int -> ReadS CreateLayer)
-> ReadS [CreateLayer]
-> ReadPrec CreateLayer
-> ReadPrec [CreateLayer]
-> Read CreateLayer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateLayer]
$creadListPrec :: ReadPrec [CreateLayer]
readPrec :: ReadPrec CreateLayer
$creadPrec :: ReadPrec CreateLayer
readList :: ReadS [CreateLayer]
$creadList :: ReadS [CreateLayer]
readsPrec :: Int -> ReadS CreateLayer
$creadsPrec :: Int -> ReadS CreateLayer
Prelude.Read, Int -> CreateLayer -> ShowS
[CreateLayer] -> ShowS
CreateLayer -> String
(Int -> CreateLayer -> ShowS)
-> (CreateLayer -> String)
-> ([CreateLayer] -> ShowS)
-> Show CreateLayer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateLayer] -> ShowS
$cshowList :: [CreateLayer] -> ShowS
show :: CreateLayer -> String
$cshow :: CreateLayer -> String
showsPrec :: Int -> CreateLayer -> ShowS
$cshowsPrec :: Int -> CreateLayer -> ShowS
Prelude.Show, (forall x. CreateLayer -> Rep CreateLayer x)
-> (forall x. Rep CreateLayer x -> CreateLayer)
-> Generic CreateLayer
forall x. Rep CreateLayer x -> CreateLayer
forall x. CreateLayer -> Rep CreateLayer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateLayer x -> CreateLayer
$cfrom :: forall x. CreateLayer -> Rep CreateLayer x
Prelude.Generic)
newCreateLayer ::
Prelude.Text ->
LayerType ->
Prelude.Text ->
Prelude.Text ->
CreateLayer
newCreateLayer :: Text -> LayerType -> Text -> Text -> CreateLayer
newCreateLayer Text
pStackId_ LayerType
pType_ Text
pName_ Text
pShortname_ =
CreateLayer' :: Maybe Text
-> Maybe [Text]
-> Maybe Bool
-> Maybe CloudWatchLogsConfiguration
-> Maybe LifecycleEventConfiguration
-> Maybe Recipes
-> Maybe Text
-> Maybe [VolumeConfiguration]
-> Maybe Bool
-> Maybe [Text]
-> Maybe (HashMap LayerAttributesKeys (Maybe Text))
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Text
-> LayerType
-> Text
-> Text
-> CreateLayer
CreateLayer'
{ $sel:customInstanceProfileArn:CreateLayer' :: Maybe Text
customInstanceProfileArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:customSecurityGroupIds:CreateLayer' :: Maybe [Text]
customSecurityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:installUpdatesOnBoot:CreateLayer' :: Maybe Bool
installUpdatesOnBoot = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLogsConfiguration:CreateLayer' :: Maybe CloudWatchLogsConfiguration
cloudWatchLogsConfiguration = Maybe CloudWatchLogsConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:lifecycleEventConfiguration:CreateLayer' :: Maybe LifecycleEventConfiguration
lifecycleEventConfiguration = Maybe LifecycleEventConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:customRecipes:CreateLayer' :: Maybe Recipes
customRecipes = Maybe Recipes
forall a. Maybe a
Prelude.Nothing,
$sel:customJson:CreateLayer' :: Maybe Text
customJson = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:volumeConfigurations:CreateLayer' :: Maybe [VolumeConfiguration]
volumeConfigurations = Maybe [VolumeConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:enableAutoHealing:CreateLayer' :: Maybe Bool
enableAutoHealing = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:packages:CreateLayer' :: Maybe [Text]
packages = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:attributes:CreateLayer' :: Maybe (HashMap LayerAttributesKeys (Maybe Text))
attributes = Maybe (HashMap LayerAttributesKeys (Maybe Text))
forall a. Maybe a
Prelude.Nothing,
$sel:autoAssignPublicIps:CreateLayer' :: Maybe Bool
autoAssignPublicIps = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:useEbsOptimizedInstances:CreateLayer' :: Maybe Bool
useEbsOptimizedInstances = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:autoAssignElasticIps:CreateLayer' :: Maybe Bool
autoAssignElasticIps = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:stackId:CreateLayer' :: Text
stackId = Text
pStackId_,
$sel:type':CreateLayer' :: LayerType
type' = LayerType
pType_,
$sel:name:CreateLayer' :: Text
name = Text
pName_,
$sel:shortname:CreateLayer' :: Text
shortname = Text
pShortname_
}
createLayer_customInstanceProfileArn :: Lens.Lens' CreateLayer (Prelude.Maybe Prelude.Text)
createLayer_customInstanceProfileArn :: (Maybe Text -> f (Maybe Text)) -> CreateLayer -> f CreateLayer
createLayer_customInstanceProfileArn = (CreateLayer -> Maybe Text)
-> (CreateLayer -> Maybe Text -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Text
customInstanceProfileArn :: Maybe Text
$sel:customInstanceProfileArn:CreateLayer' :: CreateLayer -> Maybe Text
customInstanceProfileArn} -> Maybe Text
customInstanceProfileArn) (\s :: CreateLayer
s@CreateLayer' {} Maybe Text
a -> CreateLayer
s {$sel:customInstanceProfileArn:CreateLayer' :: Maybe Text
customInstanceProfileArn = Maybe Text
a} :: CreateLayer)
createLayer_customSecurityGroupIds :: Lens.Lens' CreateLayer (Prelude.Maybe [Prelude.Text])
createLayer_customSecurityGroupIds :: (Maybe [Text] -> f (Maybe [Text])) -> CreateLayer -> f CreateLayer
createLayer_customSecurityGroupIds = (CreateLayer -> Maybe [Text])
-> (CreateLayer -> Maybe [Text] -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe [Text]
customSecurityGroupIds :: Maybe [Text]
$sel:customSecurityGroupIds:CreateLayer' :: CreateLayer -> Maybe [Text]
customSecurityGroupIds} -> Maybe [Text]
customSecurityGroupIds) (\s :: CreateLayer
s@CreateLayer' {} Maybe [Text]
a -> CreateLayer
s {$sel:customSecurityGroupIds:CreateLayer' :: Maybe [Text]
customSecurityGroupIds = Maybe [Text]
a} :: CreateLayer) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateLayer -> f CreateLayer)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateLayer
-> f CreateLayer
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
createLayer_installUpdatesOnBoot :: Lens.Lens' CreateLayer (Prelude.Maybe Prelude.Bool)
createLayer_installUpdatesOnBoot :: (Maybe Bool -> f (Maybe Bool)) -> CreateLayer -> f CreateLayer
createLayer_installUpdatesOnBoot = (CreateLayer -> Maybe Bool)
-> (CreateLayer -> Maybe Bool -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Bool
installUpdatesOnBoot :: Maybe Bool
$sel:installUpdatesOnBoot:CreateLayer' :: CreateLayer -> Maybe Bool
installUpdatesOnBoot} -> Maybe Bool
installUpdatesOnBoot) (\s :: CreateLayer
s@CreateLayer' {} Maybe Bool
a -> CreateLayer
s {$sel:installUpdatesOnBoot:CreateLayer' :: Maybe Bool
installUpdatesOnBoot = Maybe Bool
a} :: CreateLayer)
createLayer_cloudWatchLogsConfiguration :: Lens.Lens' CreateLayer (Prelude.Maybe CloudWatchLogsConfiguration)
createLayer_cloudWatchLogsConfiguration :: (Maybe CloudWatchLogsConfiguration
-> f (Maybe CloudWatchLogsConfiguration))
-> CreateLayer -> f CreateLayer
createLayer_cloudWatchLogsConfiguration = (CreateLayer -> Maybe CloudWatchLogsConfiguration)
-> (CreateLayer
-> Maybe CloudWatchLogsConfiguration -> CreateLayer)
-> Lens
CreateLayer
CreateLayer
(Maybe CloudWatchLogsConfiguration)
(Maybe CloudWatchLogsConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe CloudWatchLogsConfiguration
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfiguration
$sel:cloudWatchLogsConfiguration:CreateLayer' :: CreateLayer -> Maybe CloudWatchLogsConfiguration
cloudWatchLogsConfiguration} -> Maybe CloudWatchLogsConfiguration
cloudWatchLogsConfiguration) (\s :: CreateLayer
s@CreateLayer' {} Maybe CloudWatchLogsConfiguration
a -> CreateLayer
s {$sel:cloudWatchLogsConfiguration:CreateLayer' :: Maybe CloudWatchLogsConfiguration
cloudWatchLogsConfiguration = Maybe CloudWatchLogsConfiguration
a} :: CreateLayer)
createLayer_lifecycleEventConfiguration :: Lens.Lens' CreateLayer (Prelude.Maybe LifecycleEventConfiguration)
createLayer_lifecycleEventConfiguration :: (Maybe LifecycleEventConfiguration
-> f (Maybe LifecycleEventConfiguration))
-> CreateLayer -> f CreateLayer
createLayer_lifecycleEventConfiguration = (CreateLayer -> Maybe LifecycleEventConfiguration)
-> (CreateLayer
-> Maybe LifecycleEventConfiguration -> CreateLayer)
-> Lens
CreateLayer
CreateLayer
(Maybe LifecycleEventConfiguration)
(Maybe LifecycleEventConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe LifecycleEventConfiguration
lifecycleEventConfiguration :: Maybe LifecycleEventConfiguration
$sel:lifecycleEventConfiguration:CreateLayer' :: CreateLayer -> Maybe LifecycleEventConfiguration
lifecycleEventConfiguration} -> Maybe LifecycleEventConfiguration
lifecycleEventConfiguration) (\s :: CreateLayer
s@CreateLayer' {} Maybe LifecycleEventConfiguration
a -> CreateLayer
s {$sel:lifecycleEventConfiguration:CreateLayer' :: Maybe LifecycleEventConfiguration
lifecycleEventConfiguration = Maybe LifecycleEventConfiguration
a} :: CreateLayer)
createLayer_customRecipes :: Lens.Lens' CreateLayer (Prelude.Maybe Recipes)
createLayer_customRecipes :: (Maybe Recipes -> f (Maybe Recipes))
-> CreateLayer -> f CreateLayer
createLayer_customRecipes = (CreateLayer -> Maybe Recipes)
-> (CreateLayer -> Maybe Recipes -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Recipes) (Maybe Recipes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Recipes
customRecipes :: Maybe Recipes
$sel:customRecipes:CreateLayer' :: CreateLayer -> Maybe Recipes
customRecipes} -> Maybe Recipes
customRecipes) (\s :: CreateLayer
s@CreateLayer' {} Maybe Recipes
a -> CreateLayer
s {$sel:customRecipes:CreateLayer' :: Maybe Recipes
customRecipes = Maybe Recipes
a} :: CreateLayer)
createLayer_customJson :: Lens.Lens' CreateLayer (Prelude.Maybe Prelude.Text)
createLayer_customJson :: (Maybe Text -> f (Maybe Text)) -> CreateLayer -> f CreateLayer
createLayer_customJson = (CreateLayer -> Maybe Text)
-> (CreateLayer -> Maybe Text -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Text
customJson :: Maybe Text
$sel:customJson:CreateLayer' :: CreateLayer -> Maybe Text
customJson} -> Maybe Text
customJson) (\s :: CreateLayer
s@CreateLayer' {} Maybe Text
a -> CreateLayer
s {$sel:customJson:CreateLayer' :: Maybe Text
customJson = Maybe Text
a} :: CreateLayer)
createLayer_volumeConfigurations :: Lens.Lens' CreateLayer (Prelude.Maybe [VolumeConfiguration])
createLayer_volumeConfigurations :: (Maybe [VolumeConfiguration] -> f (Maybe [VolumeConfiguration]))
-> CreateLayer -> f CreateLayer
createLayer_volumeConfigurations = (CreateLayer -> Maybe [VolumeConfiguration])
-> (CreateLayer -> Maybe [VolumeConfiguration] -> CreateLayer)
-> Lens
CreateLayer
CreateLayer
(Maybe [VolumeConfiguration])
(Maybe [VolumeConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe [VolumeConfiguration]
volumeConfigurations :: Maybe [VolumeConfiguration]
$sel:volumeConfigurations:CreateLayer' :: CreateLayer -> Maybe [VolumeConfiguration]
volumeConfigurations} -> Maybe [VolumeConfiguration]
volumeConfigurations) (\s :: CreateLayer
s@CreateLayer' {} Maybe [VolumeConfiguration]
a -> CreateLayer
s {$sel:volumeConfigurations:CreateLayer' :: Maybe [VolumeConfiguration]
volumeConfigurations = Maybe [VolumeConfiguration]
a} :: CreateLayer) ((Maybe [VolumeConfiguration] -> f (Maybe [VolumeConfiguration]))
-> CreateLayer -> f CreateLayer)
-> ((Maybe [VolumeConfiguration]
-> f (Maybe [VolumeConfiguration]))
-> Maybe [VolumeConfiguration] -> f (Maybe [VolumeConfiguration]))
-> (Maybe [VolumeConfiguration] -> f (Maybe [VolumeConfiguration]))
-> CreateLayer
-> f CreateLayer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[VolumeConfiguration]
[VolumeConfiguration]
[VolumeConfiguration]
[VolumeConfiguration]
-> Iso
(Maybe [VolumeConfiguration])
(Maybe [VolumeConfiguration])
(Maybe [VolumeConfiguration])
(Maybe [VolumeConfiguration])
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
[VolumeConfiguration]
[VolumeConfiguration]
[VolumeConfiguration]
[VolumeConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createLayer_enableAutoHealing :: Lens.Lens' CreateLayer (Prelude.Maybe Prelude.Bool)
createLayer_enableAutoHealing :: (Maybe Bool -> f (Maybe Bool)) -> CreateLayer -> f CreateLayer
createLayer_enableAutoHealing = (CreateLayer -> Maybe Bool)
-> (CreateLayer -> Maybe Bool -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Bool
enableAutoHealing :: Maybe Bool
$sel:enableAutoHealing:CreateLayer' :: CreateLayer -> Maybe Bool
enableAutoHealing} -> Maybe Bool
enableAutoHealing) (\s :: CreateLayer
s@CreateLayer' {} Maybe Bool
a -> CreateLayer
s {$sel:enableAutoHealing:CreateLayer' :: Maybe Bool
enableAutoHealing = Maybe Bool
a} :: CreateLayer)
createLayer_packages :: Lens.Lens' CreateLayer (Prelude.Maybe [Prelude.Text])
createLayer_packages :: (Maybe [Text] -> f (Maybe [Text])) -> CreateLayer -> f CreateLayer
createLayer_packages = (CreateLayer -> Maybe [Text])
-> (CreateLayer -> Maybe [Text] -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe [Text]
packages :: Maybe [Text]
$sel:packages:CreateLayer' :: CreateLayer -> Maybe [Text]
packages} -> Maybe [Text]
packages) (\s :: CreateLayer
s@CreateLayer' {} Maybe [Text]
a -> CreateLayer
s {$sel:packages:CreateLayer' :: Maybe [Text]
packages = Maybe [Text]
a} :: CreateLayer) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateLayer -> f CreateLayer)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateLayer
-> f CreateLayer
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
createLayer_attributes :: Lens.Lens' CreateLayer (Prelude.Maybe (Prelude.HashMap LayerAttributesKeys (Prelude.Maybe Prelude.Text)))
createLayer_attributes :: (Maybe (HashMap LayerAttributesKeys (Maybe Text))
-> f (Maybe (HashMap LayerAttributesKeys (Maybe Text))))
-> CreateLayer -> f CreateLayer
createLayer_attributes = (CreateLayer -> Maybe (HashMap LayerAttributesKeys (Maybe Text)))
-> (CreateLayer
-> Maybe (HashMap LayerAttributesKeys (Maybe Text)) -> CreateLayer)
-> Lens
CreateLayer
CreateLayer
(Maybe (HashMap LayerAttributesKeys (Maybe Text)))
(Maybe (HashMap LayerAttributesKeys (Maybe Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe (HashMap LayerAttributesKeys (Maybe Text))
attributes :: Maybe (HashMap LayerAttributesKeys (Maybe Text))
$sel:attributes:CreateLayer' :: CreateLayer -> Maybe (HashMap LayerAttributesKeys (Maybe Text))
attributes} -> Maybe (HashMap LayerAttributesKeys (Maybe Text))
attributes) (\s :: CreateLayer
s@CreateLayer' {} Maybe (HashMap LayerAttributesKeys (Maybe Text))
a -> CreateLayer
s {$sel:attributes:CreateLayer' :: Maybe (HashMap LayerAttributesKeys (Maybe Text))
attributes = Maybe (HashMap LayerAttributesKeys (Maybe Text))
a} :: CreateLayer) ((Maybe (HashMap LayerAttributesKeys (Maybe Text))
-> f (Maybe (HashMap LayerAttributesKeys (Maybe Text))))
-> CreateLayer -> f CreateLayer)
-> ((Maybe (HashMap LayerAttributesKeys (Maybe Text))
-> f (Maybe (HashMap LayerAttributesKeys (Maybe Text))))
-> Maybe (HashMap LayerAttributesKeys (Maybe Text))
-> f (Maybe (HashMap LayerAttributesKeys (Maybe Text))))
-> (Maybe (HashMap LayerAttributesKeys (Maybe Text))
-> f (Maybe (HashMap LayerAttributesKeys (Maybe Text))))
-> CreateLayer
-> f CreateLayer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap LayerAttributesKeys (Maybe Text))
(HashMap LayerAttributesKeys (Maybe Text))
(HashMap LayerAttributesKeys (Maybe Text))
(HashMap LayerAttributesKeys (Maybe Text))
-> Iso
(Maybe (HashMap LayerAttributesKeys (Maybe Text)))
(Maybe (HashMap LayerAttributesKeys (Maybe Text)))
(Maybe (HashMap LayerAttributesKeys (Maybe Text)))
(Maybe (HashMap LayerAttributesKeys (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
(HashMap LayerAttributesKeys (Maybe Text))
(HashMap LayerAttributesKeys (Maybe Text))
(HashMap LayerAttributesKeys (Maybe Text))
(HashMap LayerAttributesKeys (Maybe Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createLayer_autoAssignPublicIps :: Lens.Lens' CreateLayer (Prelude.Maybe Prelude.Bool)
createLayer_autoAssignPublicIps :: (Maybe Bool -> f (Maybe Bool)) -> CreateLayer -> f CreateLayer
createLayer_autoAssignPublicIps = (CreateLayer -> Maybe Bool)
-> (CreateLayer -> Maybe Bool -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Bool
autoAssignPublicIps :: Maybe Bool
$sel:autoAssignPublicIps:CreateLayer' :: CreateLayer -> Maybe Bool
autoAssignPublicIps} -> Maybe Bool
autoAssignPublicIps) (\s :: CreateLayer
s@CreateLayer' {} Maybe Bool
a -> CreateLayer
s {$sel:autoAssignPublicIps:CreateLayer' :: Maybe Bool
autoAssignPublicIps = Maybe Bool
a} :: CreateLayer)
createLayer_useEbsOptimizedInstances :: Lens.Lens' CreateLayer (Prelude.Maybe Prelude.Bool)
createLayer_useEbsOptimizedInstances :: (Maybe Bool -> f (Maybe Bool)) -> CreateLayer -> f CreateLayer
createLayer_useEbsOptimizedInstances = (CreateLayer -> Maybe Bool)
-> (CreateLayer -> Maybe Bool -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Bool
useEbsOptimizedInstances :: Maybe Bool
$sel:useEbsOptimizedInstances:CreateLayer' :: CreateLayer -> Maybe Bool
useEbsOptimizedInstances} -> Maybe Bool
useEbsOptimizedInstances) (\s :: CreateLayer
s@CreateLayer' {} Maybe Bool
a -> CreateLayer
s {$sel:useEbsOptimizedInstances:CreateLayer' :: Maybe Bool
useEbsOptimizedInstances = Maybe Bool
a} :: CreateLayer)
createLayer_autoAssignElasticIps :: Lens.Lens' CreateLayer (Prelude.Maybe Prelude.Bool)
createLayer_autoAssignElasticIps :: (Maybe Bool -> f (Maybe Bool)) -> CreateLayer -> f CreateLayer
createLayer_autoAssignElasticIps = (CreateLayer -> Maybe Bool)
-> (CreateLayer -> Maybe Bool -> CreateLayer)
-> Lens CreateLayer CreateLayer (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Maybe Bool
autoAssignElasticIps :: Maybe Bool
$sel:autoAssignElasticIps:CreateLayer' :: CreateLayer -> Maybe Bool
autoAssignElasticIps} -> Maybe Bool
autoAssignElasticIps) (\s :: CreateLayer
s@CreateLayer' {} Maybe Bool
a -> CreateLayer
s {$sel:autoAssignElasticIps:CreateLayer' :: Maybe Bool
autoAssignElasticIps = Maybe Bool
a} :: CreateLayer)
createLayer_stackId :: Lens.Lens' CreateLayer Prelude.Text
createLayer_stackId :: (Text -> f Text) -> CreateLayer -> f CreateLayer
createLayer_stackId = (CreateLayer -> Text)
-> (CreateLayer -> Text -> CreateLayer)
-> Lens CreateLayer CreateLayer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Text
stackId :: Text
$sel:stackId:CreateLayer' :: CreateLayer -> Text
stackId} -> Text
stackId) (\s :: CreateLayer
s@CreateLayer' {} Text
a -> CreateLayer
s {$sel:stackId:CreateLayer' :: Text
stackId = Text
a} :: CreateLayer)
createLayer_type :: Lens.Lens' CreateLayer LayerType
createLayer_type :: (LayerType -> f LayerType) -> CreateLayer -> f CreateLayer
createLayer_type = (CreateLayer -> LayerType)
-> (CreateLayer -> LayerType -> CreateLayer)
-> Lens CreateLayer CreateLayer LayerType LayerType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {LayerType
type' :: LayerType
$sel:type':CreateLayer' :: CreateLayer -> LayerType
type'} -> LayerType
type') (\s :: CreateLayer
s@CreateLayer' {} LayerType
a -> CreateLayer
s {$sel:type':CreateLayer' :: LayerType
type' = LayerType
a} :: CreateLayer)
createLayer_name :: Lens.Lens' CreateLayer Prelude.Text
createLayer_name :: (Text -> f Text) -> CreateLayer -> f CreateLayer
createLayer_name = (CreateLayer -> Text)
-> (CreateLayer -> Text -> CreateLayer)
-> Lens CreateLayer CreateLayer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Text
name :: Text
$sel:name:CreateLayer' :: CreateLayer -> Text
name} -> Text
name) (\s :: CreateLayer
s@CreateLayer' {} Text
a -> CreateLayer
s {$sel:name:CreateLayer' :: Text
name = Text
a} :: CreateLayer)
createLayer_shortname :: Lens.Lens' CreateLayer Prelude.Text
createLayer_shortname :: (Text -> f Text) -> CreateLayer -> f CreateLayer
createLayer_shortname = (CreateLayer -> Text)
-> (CreateLayer -> Text -> CreateLayer)
-> Lens CreateLayer CreateLayer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayer' {Text
shortname :: Text
$sel:shortname:CreateLayer' :: CreateLayer -> Text
shortname} -> Text
shortname) (\s :: CreateLayer
s@CreateLayer' {} Text
a -> CreateLayer
s {$sel:shortname:CreateLayer' :: Text
shortname = Text
a} :: CreateLayer)
instance Core.AWSRequest CreateLayer where
type AWSResponse CreateLayer = CreateLayerResponse
request :: CreateLayer -> Request CreateLayer
request = Service -> CreateLayer -> Request CreateLayer
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateLayer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateLayer)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateLayer))
-> Logger
-> Service
-> Proxy CreateLayer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateLayer)))
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 Text -> Int -> CreateLayerResponse
CreateLayerResponse'
(Maybe Text -> Int -> CreateLayerResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateLayerResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LayerId")
Either String (Int -> CreateLayerResponse)
-> Either String Int -> Either String CreateLayerResponse
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 CreateLayer
instance Prelude.NFData CreateLayer
instance Core.ToHeaders CreateLayer where
toHeaders :: CreateLayer -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateLayer -> 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
"OpsWorks_20130218.CreateLayer" ::
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 CreateLayer where
toJSON :: CreateLayer -> Value
toJSON CreateLayer' {Maybe Bool
Maybe [Text]
Maybe [VolumeConfiguration]
Maybe Text
Maybe (HashMap LayerAttributesKeys (Maybe Text))
Maybe CloudWatchLogsConfiguration
Maybe Recipes
Maybe LifecycleEventConfiguration
Text
LayerType
shortname :: Text
name :: Text
type' :: LayerType
stackId :: Text
autoAssignElasticIps :: Maybe Bool
useEbsOptimizedInstances :: Maybe Bool
autoAssignPublicIps :: Maybe Bool
attributes :: Maybe (HashMap LayerAttributesKeys (Maybe Text))
packages :: Maybe [Text]
enableAutoHealing :: Maybe Bool
volumeConfigurations :: Maybe [VolumeConfiguration]
customJson :: Maybe Text
customRecipes :: Maybe Recipes
lifecycleEventConfiguration :: Maybe LifecycleEventConfiguration
cloudWatchLogsConfiguration :: Maybe CloudWatchLogsConfiguration
installUpdatesOnBoot :: Maybe Bool
customSecurityGroupIds :: Maybe [Text]
customInstanceProfileArn :: Maybe Text
$sel:shortname:CreateLayer' :: CreateLayer -> Text
$sel:name:CreateLayer' :: CreateLayer -> Text
$sel:type':CreateLayer' :: CreateLayer -> LayerType
$sel:stackId:CreateLayer' :: CreateLayer -> Text
$sel:autoAssignElasticIps:CreateLayer' :: CreateLayer -> Maybe Bool
$sel:useEbsOptimizedInstances:CreateLayer' :: CreateLayer -> Maybe Bool
$sel:autoAssignPublicIps:CreateLayer' :: CreateLayer -> Maybe Bool
$sel:attributes:CreateLayer' :: CreateLayer -> Maybe (HashMap LayerAttributesKeys (Maybe Text))
$sel:packages:CreateLayer' :: CreateLayer -> Maybe [Text]
$sel:enableAutoHealing:CreateLayer' :: CreateLayer -> Maybe Bool
$sel:volumeConfigurations:CreateLayer' :: CreateLayer -> Maybe [VolumeConfiguration]
$sel:customJson:CreateLayer' :: CreateLayer -> Maybe Text
$sel:customRecipes:CreateLayer' :: CreateLayer -> Maybe Recipes
$sel:lifecycleEventConfiguration:CreateLayer' :: CreateLayer -> Maybe LifecycleEventConfiguration
$sel:cloudWatchLogsConfiguration:CreateLayer' :: CreateLayer -> Maybe CloudWatchLogsConfiguration
$sel:installUpdatesOnBoot:CreateLayer' :: CreateLayer -> Maybe Bool
$sel:customSecurityGroupIds:CreateLayer' :: CreateLayer -> Maybe [Text]
$sel:customInstanceProfileArn:CreateLayer' :: CreateLayer -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CustomInstanceProfileArn" 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
customInstanceProfileArn,
(Text
"CustomSecurityGroupIds" 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]
customSecurityGroupIds,
(Text
"InstallUpdatesOnBoot" 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
installUpdatesOnBoot,
(Text
"CloudWatchLogsConfiguration" Text -> CloudWatchLogsConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CloudWatchLogsConfiguration -> Pair)
-> Maybe CloudWatchLogsConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudWatchLogsConfiguration
cloudWatchLogsConfiguration,
(Text
"LifecycleEventConfiguration" Text -> LifecycleEventConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(LifecycleEventConfiguration -> Pair)
-> Maybe LifecycleEventConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LifecycleEventConfiguration
lifecycleEventConfiguration,
(Text
"CustomRecipes" Text -> Recipes -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Recipes -> Pair) -> Maybe Recipes -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Recipes
customRecipes,
(Text
"CustomJson" 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
customJson,
(Text
"VolumeConfigurations" Text -> [VolumeConfiguration] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([VolumeConfiguration] -> Pair)
-> Maybe [VolumeConfiguration] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VolumeConfiguration]
volumeConfigurations,
(Text
"EnableAutoHealing" 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
enableAutoHealing,
(Text
"Packages" 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]
packages,
(Text
"Attributes" Text -> HashMap LayerAttributesKeys (Maybe Text) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap LayerAttributesKeys (Maybe Text) -> Pair)
-> Maybe (HashMap LayerAttributesKeys (Maybe Text)) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap LayerAttributesKeys (Maybe Text))
attributes,
(Text
"AutoAssignPublicIps" 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
autoAssignPublicIps,
(Text
"UseEbsOptimizedInstances" 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
useEbsOptimizedInstances,
(Text
"AutoAssignElasticIps" 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
autoAssignElasticIps,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"StackId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
stackId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Type" Text -> LayerType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= LayerType
type'),
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),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Shortname" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
shortname)
]
)
instance Core.ToPath CreateLayer where
toPath :: CreateLayer -> ByteString
toPath = ByteString -> CreateLayer -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateLayer where
toQuery :: CreateLayer -> QueryString
toQuery = QueryString -> CreateLayer -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateLayerResponse = CreateLayerResponse'
{
CreateLayerResponse -> Maybe Text
layerId :: Prelude.Maybe Prelude.Text,
CreateLayerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateLayerResponse -> CreateLayerResponse -> Bool
(CreateLayerResponse -> CreateLayerResponse -> Bool)
-> (CreateLayerResponse -> CreateLayerResponse -> Bool)
-> Eq CreateLayerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateLayerResponse -> CreateLayerResponse -> Bool
$c/= :: CreateLayerResponse -> CreateLayerResponse -> Bool
== :: CreateLayerResponse -> CreateLayerResponse -> Bool
$c== :: CreateLayerResponse -> CreateLayerResponse -> Bool
Prelude.Eq, ReadPrec [CreateLayerResponse]
ReadPrec CreateLayerResponse
Int -> ReadS CreateLayerResponse
ReadS [CreateLayerResponse]
(Int -> ReadS CreateLayerResponse)
-> ReadS [CreateLayerResponse]
-> ReadPrec CreateLayerResponse
-> ReadPrec [CreateLayerResponse]
-> Read CreateLayerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateLayerResponse]
$creadListPrec :: ReadPrec [CreateLayerResponse]
readPrec :: ReadPrec CreateLayerResponse
$creadPrec :: ReadPrec CreateLayerResponse
readList :: ReadS [CreateLayerResponse]
$creadList :: ReadS [CreateLayerResponse]
readsPrec :: Int -> ReadS CreateLayerResponse
$creadsPrec :: Int -> ReadS CreateLayerResponse
Prelude.Read, Int -> CreateLayerResponse -> ShowS
[CreateLayerResponse] -> ShowS
CreateLayerResponse -> String
(Int -> CreateLayerResponse -> ShowS)
-> (CreateLayerResponse -> String)
-> ([CreateLayerResponse] -> ShowS)
-> Show CreateLayerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateLayerResponse] -> ShowS
$cshowList :: [CreateLayerResponse] -> ShowS
show :: CreateLayerResponse -> String
$cshow :: CreateLayerResponse -> String
showsPrec :: Int -> CreateLayerResponse -> ShowS
$cshowsPrec :: Int -> CreateLayerResponse -> ShowS
Prelude.Show, (forall x. CreateLayerResponse -> Rep CreateLayerResponse x)
-> (forall x. Rep CreateLayerResponse x -> CreateLayerResponse)
-> Generic CreateLayerResponse
forall x. Rep CreateLayerResponse x -> CreateLayerResponse
forall x. CreateLayerResponse -> Rep CreateLayerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateLayerResponse x -> CreateLayerResponse
$cfrom :: forall x. CreateLayerResponse -> Rep CreateLayerResponse x
Prelude.Generic)
newCreateLayerResponse ::
Prelude.Int ->
CreateLayerResponse
newCreateLayerResponse :: Int -> CreateLayerResponse
newCreateLayerResponse Int
pHttpStatus_ =
CreateLayerResponse' :: Maybe Text -> Int -> CreateLayerResponse
CreateLayerResponse'
{ $sel:layerId:CreateLayerResponse' :: Maybe Text
layerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateLayerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createLayerResponse_layerId :: Lens.Lens' CreateLayerResponse (Prelude.Maybe Prelude.Text)
createLayerResponse_layerId :: (Maybe Text -> f (Maybe Text))
-> CreateLayerResponse -> f CreateLayerResponse
createLayerResponse_layerId = (CreateLayerResponse -> Maybe Text)
-> (CreateLayerResponse -> Maybe Text -> CreateLayerResponse)
-> Lens
CreateLayerResponse CreateLayerResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayerResponse' {Maybe Text
layerId :: Maybe Text
$sel:layerId:CreateLayerResponse' :: CreateLayerResponse -> Maybe Text
layerId} -> Maybe Text
layerId) (\s :: CreateLayerResponse
s@CreateLayerResponse' {} Maybe Text
a -> CreateLayerResponse
s {$sel:layerId:CreateLayerResponse' :: Maybe Text
layerId = Maybe Text
a} :: CreateLayerResponse)
createLayerResponse_httpStatus :: Lens.Lens' CreateLayerResponse Prelude.Int
createLayerResponse_httpStatus :: (Int -> f Int) -> CreateLayerResponse -> f CreateLayerResponse
createLayerResponse_httpStatus = (CreateLayerResponse -> Int)
-> (CreateLayerResponse -> Int -> CreateLayerResponse)
-> Lens CreateLayerResponse CreateLayerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateLayerResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateLayerResponse' :: CreateLayerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateLayerResponse
s@CreateLayerResponse' {} Int
a -> CreateLayerResponse
s {$sel:httpStatus:CreateLayerResponse' :: Int
httpStatus = Int
a} :: CreateLayerResponse)
instance Prelude.NFData CreateLayerResponse