{-# 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.CloneStack
(
CloneStack (..),
newCloneStack,
cloneStack_defaultInstanceProfileArn,
cloneStack_cloneAppIds,
cloneStack_defaultRootDeviceType,
cloneStack_vpcId,
cloneStack_chefConfiguration,
cloneStack_agentVersion,
cloneStack_defaultSshKeyName,
cloneStack_customJson,
cloneStack_clonePermissions,
cloneStack_customCookbooksSource,
cloneStack_defaultAvailabilityZone,
cloneStack_attributes,
cloneStack_name,
cloneStack_defaultOs,
cloneStack_useOpsworksSecurityGroups,
cloneStack_useCustomCookbooks,
cloneStack_defaultSubnetId,
cloneStack_region,
cloneStack_configurationManager,
cloneStack_hostnameTheme,
cloneStack_sourceStackId,
cloneStack_serviceRoleArn,
CloneStackResponse (..),
newCloneStackResponse,
cloneStackResponse_stackId,
cloneStackResponse_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 CloneStack = CloneStack'
{
CloneStack -> Maybe Text
defaultInstanceProfileArn :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe [Text]
cloneAppIds :: Prelude.Maybe [Prelude.Text],
CloneStack -> Maybe RootDeviceType
defaultRootDeviceType :: Prelude.Maybe RootDeviceType,
CloneStack -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe ChefConfiguration
chefConfiguration :: Prelude.Maybe ChefConfiguration,
CloneStack -> Maybe Text
agentVersion :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe Text
defaultSshKeyName :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe Text
customJson :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe Bool
clonePermissions :: Prelude.Maybe Prelude.Bool,
CloneStack -> Maybe Source
customCookbooksSource :: Prelude.Maybe Source,
CloneStack -> Maybe Text
defaultAvailabilityZone :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes :: Prelude.Maybe (Prelude.HashMap StackAttributesKeys (Prelude.Maybe Prelude.Text)),
CloneStack -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe Text
defaultOs :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe Bool
useOpsworksSecurityGroups :: Prelude.Maybe Prelude.Bool,
CloneStack -> Maybe Bool
useCustomCookbooks :: Prelude.Maybe Prelude.Bool,
CloneStack -> Maybe Text
defaultSubnetId :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe Text
region :: Prelude.Maybe Prelude.Text,
CloneStack -> Maybe StackConfigurationManager
configurationManager :: Prelude.Maybe StackConfigurationManager,
CloneStack -> Maybe Text
hostnameTheme :: Prelude.Maybe Prelude.Text,
CloneStack -> Text
sourceStackId :: Prelude.Text,
CloneStack -> Text
serviceRoleArn :: Prelude.Text
}
deriving (CloneStack -> CloneStack -> Bool
(CloneStack -> CloneStack -> Bool)
-> (CloneStack -> CloneStack -> Bool) -> Eq CloneStack
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CloneStack -> CloneStack -> Bool
$c/= :: CloneStack -> CloneStack -> Bool
== :: CloneStack -> CloneStack -> Bool
$c== :: CloneStack -> CloneStack -> Bool
Prelude.Eq, ReadPrec [CloneStack]
ReadPrec CloneStack
Int -> ReadS CloneStack
ReadS [CloneStack]
(Int -> ReadS CloneStack)
-> ReadS [CloneStack]
-> ReadPrec CloneStack
-> ReadPrec [CloneStack]
-> Read CloneStack
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CloneStack]
$creadListPrec :: ReadPrec [CloneStack]
readPrec :: ReadPrec CloneStack
$creadPrec :: ReadPrec CloneStack
readList :: ReadS [CloneStack]
$creadList :: ReadS [CloneStack]
readsPrec :: Int -> ReadS CloneStack
$creadsPrec :: Int -> ReadS CloneStack
Prelude.Read, Int -> CloneStack -> ShowS
[CloneStack] -> ShowS
CloneStack -> String
(Int -> CloneStack -> ShowS)
-> (CloneStack -> String)
-> ([CloneStack] -> ShowS)
-> Show CloneStack
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CloneStack] -> ShowS
$cshowList :: [CloneStack] -> ShowS
show :: CloneStack -> String
$cshow :: CloneStack -> String
showsPrec :: Int -> CloneStack -> ShowS
$cshowsPrec :: Int -> CloneStack -> ShowS
Prelude.Show, (forall x. CloneStack -> Rep CloneStack x)
-> (forall x. Rep CloneStack x -> CloneStack) -> Generic CloneStack
forall x. Rep CloneStack x -> CloneStack
forall x. CloneStack -> Rep CloneStack x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CloneStack x -> CloneStack
$cfrom :: forall x. CloneStack -> Rep CloneStack x
Prelude.Generic)
newCloneStack ::
Prelude.Text ->
Prelude.Text ->
CloneStack
newCloneStack :: Text -> Text -> CloneStack
newCloneStack Text
pSourceStackId_ Text
pServiceRoleArn_ =
CloneStack' :: Maybe Text
-> Maybe [Text]
-> Maybe RootDeviceType
-> Maybe Text
-> Maybe ChefConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Source
-> Maybe Text
-> Maybe (HashMap StackAttributesKeys (Maybe Text))
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe StackConfigurationManager
-> Maybe Text
-> Text
-> Text
-> CloneStack
CloneStack'
{ $sel:defaultInstanceProfileArn:CloneStack' :: Maybe Text
defaultInstanceProfileArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloneAppIds:CloneStack' :: Maybe [Text]
cloneAppIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:defaultRootDeviceType:CloneStack' :: Maybe RootDeviceType
defaultRootDeviceType = Maybe RootDeviceType
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:CloneStack' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:chefConfiguration:CloneStack' :: Maybe ChefConfiguration
chefConfiguration = Maybe ChefConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:agentVersion:CloneStack' :: Maybe Text
agentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSshKeyName:CloneStack' :: Maybe Text
defaultSshKeyName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:customJson:CloneStack' :: Maybe Text
customJson = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clonePermissions:CloneStack' :: Maybe Bool
clonePermissions = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:customCookbooksSource:CloneStack' :: Maybe Source
customCookbooksSource = Maybe Source
forall a. Maybe a
Prelude.Nothing,
$sel:defaultAvailabilityZone:CloneStack' :: Maybe Text
defaultAvailabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attributes:CloneStack' :: Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes = Maybe (HashMap StackAttributesKeys (Maybe Text))
forall a. Maybe a
Prelude.Nothing,
$sel:name:CloneStack' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultOs:CloneStack' :: Maybe Text
defaultOs = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:useOpsworksSecurityGroups:CloneStack' :: Maybe Bool
useOpsworksSecurityGroups = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:useCustomCookbooks:CloneStack' :: Maybe Bool
useCustomCookbooks = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSubnetId:CloneStack' :: Maybe Text
defaultSubnetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:region:CloneStack' :: Maybe Text
region = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:configurationManager:CloneStack' :: Maybe StackConfigurationManager
configurationManager = Maybe StackConfigurationManager
forall a. Maybe a
Prelude.Nothing,
$sel:hostnameTheme:CloneStack' :: Maybe Text
hostnameTheme = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceStackId:CloneStack' :: Text
sourceStackId = Text
pSourceStackId_,
$sel:serviceRoleArn:CloneStack' :: Text
serviceRoleArn = Text
pServiceRoleArn_
}
cloneStack_defaultInstanceProfileArn :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_defaultInstanceProfileArn :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_defaultInstanceProfileArn = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
defaultInstanceProfileArn :: Maybe Text
$sel:defaultInstanceProfileArn:CloneStack' :: CloneStack -> Maybe Text
defaultInstanceProfileArn} -> Maybe Text
defaultInstanceProfileArn) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:defaultInstanceProfileArn:CloneStack' :: Maybe Text
defaultInstanceProfileArn = Maybe Text
a} :: CloneStack)
cloneStack_cloneAppIds :: Lens.Lens' CloneStack (Prelude.Maybe [Prelude.Text])
cloneStack_cloneAppIds :: (Maybe [Text] -> f (Maybe [Text])) -> CloneStack -> f CloneStack
cloneStack_cloneAppIds = (CloneStack -> Maybe [Text])
-> (CloneStack -> Maybe [Text] -> CloneStack)
-> Lens CloneStack CloneStack (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe [Text]
cloneAppIds :: Maybe [Text]
$sel:cloneAppIds:CloneStack' :: CloneStack -> Maybe [Text]
cloneAppIds} -> Maybe [Text]
cloneAppIds) (\s :: CloneStack
s@CloneStack' {} Maybe [Text]
a -> CloneStack
s {$sel:cloneAppIds:CloneStack' :: Maybe [Text]
cloneAppIds = Maybe [Text]
a} :: CloneStack) ((Maybe [Text] -> f (Maybe [Text])) -> CloneStack -> f CloneStack)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CloneStack
-> f CloneStack
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
cloneStack_defaultRootDeviceType :: Lens.Lens' CloneStack (Prelude.Maybe RootDeviceType)
cloneStack_defaultRootDeviceType :: (Maybe RootDeviceType -> f (Maybe RootDeviceType))
-> CloneStack -> f CloneStack
cloneStack_defaultRootDeviceType = (CloneStack -> Maybe RootDeviceType)
-> (CloneStack -> Maybe RootDeviceType -> CloneStack)
-> Lens
CloneStack CloneStack (Maybe RootDeviceType) (Maybe RootDeviceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe RootDeviceType
defaultRootDeviceType :: Maybe RootDeviceType
$sel:defaultRootDeviceType:CloneStack' :: CloneStack -> Maybe RootDeviceType
defaultRootDeviceType} -> Maybe RootDeviceType
defaultRootDeviceType) (\s :: CloneStack
s@CloneStack' {} Maybe RootDeviceType
a -> CloneStack
s {$sel:defaultRootDeviceType:CloneStack' :: Maybe RootDeviceType
defaultRootDeviceType = Maybe RootDeviceType
a} :: CloneStack)
cloneStack_vpcId :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_vpcId :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_vpcId = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:CloneStack' :: CloneStack -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:vpcId:CloneStack' :: Maybe Text
vpcId = Maybe Text
a} :: CloneStack)
cloneStack_chefConfiguration :: Lens.Lens' CloneStack (Prelude.Maybe ChefConfiguration)
cloneStack_chefConfiguration :: (Maybe ChefConfiguration -> f (Maybe ChefConfiguration))
-> CloneStack -> f CloneStack
cloneStack_chefConfiguration = (CloneStack -> Maybe ChefConfiguration)
-> (CloneStack -> Maybe ChefConfiguration -> CloneStack)
-> Lens
CloneStack
CloneStack
(Maybe ChefConfiguration)
(Maybe ChefConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe ChefConfiguration
chefConfiguration :: Maybe ChefConfiguration
$sel:chefConfiguration:CloneStack' :: CloneStack -> Maybe ChefConfiguration
chefConfiguration} -> Maybe ChefConfiguration
chefConfiguration) (\s :: CloneStack
s@CloneStack' {} Maybe ChefConfiguration
a -> CloneStack
s {$sel:chefConfiguration:CloneStack' :: Maybe ChefConfiguration
chefConfiguration = Maybe ChefConfiguration
a} :: CloneStack)
cloneStack_agentVersion :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_agentVersion :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_agentVersion = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
agentVersion :: Maybe Text
$sel:agentVersion:CloneStack' :: CloneStack -> Maybe Text
agentVersion} -> Maybe Text
agentVersion) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:agentVersion:CloneStack' :: Maybe Text
agentVersion = Maybe Text
a} :: CloneStack)
cloneStack_defaultSshKeyName :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_defaultSshKeyName :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_defaultSshKeyName = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
defaultSshKeyName :: Maybe Text
$sel:defaultSshKeyName:CloneStack' :: CloneStack -> Maybe Text
defaultSshKeyName} -> Maybe Text
defaultSshKeyName) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:defaultSshKeyName:CloneStack' :: Maybe Text
defaultSshKeyName = Maybe Text
a} :: CloneStack)
cloneStack_customJson :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_customJson :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_customJson = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
customJson :: Maybe Text
$sel:customJson:CloneStack' :: CloneStack -> Maybe Text
customJson} -> Maybe Text
customJson) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:customJson:CloneStack' :: Maybe Text
customJson = Maybe Text
a} :: CloneStack)
cloneStack_clonePermissions :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Bool)
cloneStack_clonePermissions :: (Maybe Bool -> f (Maybe Bool)) -> CloneStack -> f CloneStack
cloneStack_clonePermissions = (CloneStack -> Maybe Bool)
-> (CloneStack -> Maybe Bool -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Bool
clonePermissions :: Maybe Bool
$sel:clonePermissions:CloneStack' :: CloneStack -> Maybe Bool
clonePermissions} -> Maybe Bool
clonePermissions) (\s :: CloneStack
s@CloneStack' {} Maybe Bool
a -> CloneStack
s {$sel:clonePermissions:CloneStack' :: Maybe Bool
clonePermissions = Maybe Bool
a} :: CloneStack)
cloneStack_customCookbooksSource :: Lens.Lens' CloneStack (Prelude.Maybe Source)
cloneStack_customCookbooksSource :: (Maybe Source -> f (Maybe Source)) -> CloneStack -> f CloneStack
cloneStack_customCookbooksSource = (CloneStack -> Maybe Source)
-> (CloneStack -> Maybe Source -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Source) (Maybe Source)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Source
customCookbooksSource :: Maybe Source
$sel:customCookbooksSource:CloneStack' :: CloneStack -> Maybe Source
customCookbooksSource} -> Maybe Source
customCookbooksSource) (\s :: CloneStack
s@CloneStack' {} Maybe Source
a -> CloneStack
s {$sel:customCookbooksSource:CloneStack' :: Maybe Source
customCookbooksSource = Maybe Source
a} :: CloneStack)
cloneStack_defaultAvailabilityZone :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_defaultAvailabilityZone :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_defaultAvailabilityZone = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
defaultAvailabilityZone :: Maybe Text
$sel:defaultAvailabilityZone:CloneStack' :: CloneStack -> Maybe Text
defaultAvailabilityZone} -> Maybe Text
defaultAvailabilityZone) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:defaultAvailabilityZone:CloneStack' :: Maybe Text
defaultAvailabilityZone = Maybe Text
a} :: CloneStack)
cloneStack_attributes :: Lens.Lens' CloneStack (Prelude.Maybe (Prelude.HashMap StackAttributesKeys (Prelude.Maybe Prelude.Text)))
cloneStack_attributes :: (Maybe (HashMap StackAttributesKeys (Maybe Text))
-> f (Maybe (HashMap StackAttributesKeys (Maybe Text))))
-> CloneStack -> f CloneStack
cloneStack_attributes = (CloneStack -> Maybe (HashMap StackAttributesKeys (Maybe Text)))
-> (CloneStack
-> Maybe (HashMap StackAttributesKeys (Maybe Text)) -> CloneStack)
-> Lens
CloneStack
CloneStack
(Maybe (HashMap StackAttributesKeys (Maybe Text)))
(Maybe (HashMap StackAttributesKeys (Maybe Text)))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes :: Maybe (HashMap StackAttributesKeys (Maybe Text))
$sel:attributes:CloneStack' :: CloneStack -> Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes} -> Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes) (\s :: CloneStack
s@CloneStack' {} Maybe (HashMap StackAttributesKeys (Maybe Text))
a -> CloneStack
s {$sel:attributes:CloneStack' :: Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes = Maybe (HashMap StackAttributesKeys (Maybe Text))
a} :: CloneStack) ((Maybe (HashMap StackAttributesKeys (Maybe Text))
-> f (Maybe (HashMap StackAttributesKeys (Maybe Text))))
-> CloneStack -> f CloneStack)
-> ((Maybe (HashMap StackAttributesKeys (Maybe Text))
-> f (Maybe (HashMap StackAttributesKeys (Maybe Text))))
-> Maybe (HashMap StackAttributesKeys (Maybe Text))
-> f (Maybe (HashMap StackAttributesKeys (Maybe Text))))
-> (Maybe (HashMap StackAttributesKeys (Maybe Text))
-> f (Maybe (HashMap StackAttributesKeys (Maybe Text))))
-> CloneStack
-> f CloneStack
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap StackAttributesKeys (Maybe Text))
(HashMap StackAttributesKeys (Maybe Text))
(HashMap StackAttributesKeys (Maybe Text))
(HashMap StackAttributesKeys (Maybe Text))
-> Iso
(Maybe (HashMap StackAttributesKeys (Maybe Text)))
(Maybe (HashMap StackAttributesKeys (Maybe Text)))
(Maybe (HashMap StackAttributesKeys (Maybe Text)))
(Maybe (HashMap StackAttributesKeys (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 StackAttributesKeys (Maybe Text))
(HashMap StackAttributesKeys (Maybe Text))
(HashMap StackAttributesKeys (Maybe Text))
(HashMap StackAttributesKeys (Maybe Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
cloneStack_name :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_name :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_name = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
name :: Maybe Text
$sel:name:CloneStack' :: CloneStack -> Maybe Text
name} -> Maybe Text
name) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:name:CloneStack' :: Maybe Text
name = Maybe Text
a} :: CloneStack)
cloneStack_defaultOs :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_defaultOs :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_defaultOs = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
defaultOs :: Maybe Text
$sel:defaultOs:CloneStack' :: CloneStack -> Maybe Text
defaultOs} -> Maybe Text
defaultOs) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:defaultOs:CloneStack' :: Maybe Text
defaultOs = Maybe Text
a} :: CloneStack)
cloneStack_useOpsworksSecurityGroups :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Bool)
cloneStack_useOpsworksSecurityGroups :: (Maybe Bool -> f (Maybe Bool)) -> CloneStack -> f CloneStack
cloneStack_useOpsworksSecurityGroups = (CloneStack -> Maybe Bool)
-> (CloneStack -> Maybe Bool -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Bool
useOpsworksSecurityGroups :: Maybe Bool
$sel:useOpsworksSecurityGroups:CloneStack' :: CloneStack -> Maybe Bool
useOpsworksSecurityGroups} -> Maybe Bool
useOpsworksSecurityGroups) (\s :: CloneStack
s@CloneStack' {} Maybe Bool
a -> CloneStack
s {$sel:useOpsworksSecurityGroups:CloneStack' :: Maybe Bool
useOpsworksSecurityGroups = Maybe Bool
a} :: CloneStack)
cloneStack_useCustomCookbooks :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Bool)
cloneStack_useCustomCookbooks :: (Maybe Bool -> f (Maybe Bool)) -> CloneStack -> f CloneStack
cloneStack_useCustomCookbooks = (CloneStack -> Maybe Bool)
-> (CloneStack -> Maybe Bool -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Bool
useCustomCookbooks :: Maybe Bool
$sel:useCustomCookbooks:CloneStack' :: CloneStack -> Maybe Bool
useCustomCookbooks} -> Maybe Bool
useCustomCookbooks) (\s :: CloneStack
s@CloneStack' {} Maybe Bool
a -> CloneStack
s {$sel:useCustomCookbooks:CloneStack' :: Maybe Bool
useCustomCookbooks = Maybe Bool
a} :: CloneStack)
cloneStack_defaultSubnetId :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_defaultSubnetId :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_defaultSubnetId = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
defaultSubnetId :: Maybe Text
$sel:defaultSubnetId:CloneStack' :: CloneStack -> Maybe Text
defaultSubnetId} -> Maybe Text
defaultSubnetId) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:defaultSubnetId:CloneStack' :: Maybe Text
defaultSubnetId = Maybe Text
a} :: CloneStack)
cloneStack_region :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_region :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_region = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
region :: Maybe Text
$sel:region:CloneStack' :: CloneStack -> Maybe Text
region} -> Maybe Text
region) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:region:CloneStack' :: Maybe Text
region = Maybe Text
a} :: CloneStack)
cloneStack_configurationManager :: Lens.Lens' CloneStack (Prelude.Maybe StackConfigurationManager)
cloneStack_configurationManager :: (Maybe StackConfigurationManager
-> f (Maybe StackConfigurationManager))
-> CloneStack -> f CloneStack
cloneStack_configurationManager = (CloneStack -> Maybe StackConfigurationManager)
-> (CloneStack -> Maybe StackConfigurationManager -> CloneStack)
-> Lens
CloneStack
CloneStack
(Maybe StackConfigurationManager)
(Maybe StackConfigurationManager)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe StackConfigurationManager
configurationManager :: Maybe StackConfigurationManager
$sel:configurationManager:CloneStack' :: CloneStack -> Maybe StackConfigurationManager
configurationManager} -> Maybe StackConfigurationManager
configurationManager) (\s :: CloneStack
s@CloneStack' {} Maybe StackConfigurationManager
a -> CloneStack
s {$sel:configurationManager:CloneStack' :: Maybe StackConfigurationManager
configurationManager = Maybe StackConfigurationManager
a} :: CloneStack)
cloneStack_hostnameTheme :: Lens.Lens' CloneStack (Prelude.Maybe Prelude.Text)
cloneStack_hostnameTheme :: (Maybe Text -> f (Maybe Text)) -> CloneStack -> f CloneStack
cloneStack_hostnameTheme = (CloneStack -> Maybe Text)
-> (CloneStack -> Maybe Text -> CloneStack)
-> Lens CloneStack CloneStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Maybe Text
hostnameTheme :: Maybe Text
$sel:hostnameTheme:CloneStack' :: CloneStack -> Maybe Text
hostnameTheme} -> Maybe Text
hostnameTheme) (\s :: CloneStack
s@CloneStack' {} Maybe Text
a -> CloneStack
s {$sel:hostnameTheme:CloneStack' :: Maybe Text
hostnameTheme = Maybe Text
a} :: CloneStack)
cloneStack_sourceStackId :: Lens.Lens' CloneStack Prelude.Text
cloneStack_sourceStackId :: (Text -> f Text) -> CloneStack -> f CloneStack
cloneStack_sourceStackId = (CloneStack -> Text)
-> (CloneStack -> Text -> CloneStack)
-> Lens CloneStack CloneStack Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Text
sourceStackId :: Text
$sel:sourceStackId:CloneStack' :: CloneStack -> Text
sourceStackId} -> Text
sourceStackId) (\s :: CloneStack
s@CloneStack' {} Text
a -> CloneStack
s {$sel:sourceStackId:CloneStack' :: Text
sourceStackId = Text
a} :: CloneStack)
cloneStack_serviceRoleArn :: Lens.Lens' CloneStack Prelude.Text
cloneStack_serviceRoleArn :: (Text -> f Text) -> CloneStack -> f CloneStack
cloneStack_serviceRoleArn = (CloneStack -> Text)
-> (CloneStack -> Text -> CloneStack)
-> Lens CloneStack CloneStack Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStack' {Text
serviceRoleArn :: Text
$sel:serviceRoleArn:CloneStack' :: CloneStack -> Text
serviceRoleArn} -> Text
serviceRoleArn) (\s :: CloneStack
s@CloneStack' {} Text
a -> CloneStack
s {$sel:serviceRoleArn:CloneStack' :: Text
serviceRoleArn = Text
a} :: CloneStack)
instance Core.AWSRequest CloneStack where
type AWSResponse CloneStack = CloneStackResponse
request :: CloneStack -> Request CloneStack
request = Service -> CloneStack -> Request CloneStack
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CloneStack
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CloneStack)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CloneStack))
-> Logger
-> Service
-> Proxy CloneStack
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CloneStack)))
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 -> CloneStackResponse
CloneStackResponse'
(Maybe Text -> Int -> CloneStackResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CloneStackResponse)
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
"StackId")
Either String (Int -> CloneStackResponse)
-> Either String Int -> Either String CloneStackResponse
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 CloneStack
instance Prelude.NFData CloneStack
instance Core.ToHeaders CloneStack where
toHeaders :: CloneStack -> ResponseHeaders
toHeaders =
ResponseHeaders -> CloneStack -> 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.CloneStack" ::
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 CloneStack where
toJSON :: CloneStack -> Value
toJSON CloneStack' {Maybe Bool
Maybe [Text]
Maybe Text
Maybe (HashMap StackAttributesKeys (Maybe Text))
Maybe ChefConfiguration
Maybe RootDeviceType
Maybe Source
Maybe StackConfigurationManager
Text
serviceRoleArn :: Text
sourceStackId :: Text
hostnameTheme :: Maybe Text
configurationManager :: Maybe StackConfigurationManager
region :: Maybe Text
defaultSubnetId :: Maybe Text
useCustomCookbooks :: Maybe Bool
useOpsworksSecurityGroups :: Maybe Bool
defaultOs :: Maybe Text
name :: Maybe Text
attributes :: Maybe (HashMap StackAttributesKeys (Maybe Text))
defaultAvailabilityZone :: Maybe Text
customCookbooksSource :: Maybe Source
clonePermissions :: Maybe Bool
customJson :: Maybe Text
defaultSshKeyName :: Maybe Text
agentVersion :: Maybe Text
chefConfiguration :: Maybe ChefConfiguration
vpcId :: Maybe Text
defaultRootDeviceType :: Maybe RootDeviceType
cloneAppIds :: Maybe [Text]
defaultInstanceProfileArn :: Maybe Text
$sel:serviceRoleArn:CloneStack' :: CloneStack -> Text
$sel:sourceStackId:CloneStack' :: CloneStack -> Text
$sel:hostnameTheme:CloneStack' :: CloneStack -> Maybe Text
$sel:configurationManager:CloneStack' :: CloneStack -> Maybe StackConfigurationManager
$sel:region:CloneStack' :: CloneStack -> Maybe Text
$sel:defaultSubnetId:CloneStack' :: CloneStack -> Maybe Text
$sel:useCustomCookbooks:CloneStack' :: CloneStack -> Maybe Bool
$sel:useOpsworksSecurityGroups:CloneStack' :: CloneStack -> Maybe Bool
$sel:defaultOs:CloneStack' :: CloneStack -> Maybe Text
$sel:name:CloneStack' :: CloneStack -> Maybe Text
$sel:attributes:CloneStack' :: CloneStack -> Maybe (HashMap StackAttributesKeys (Maybe Text))
$sel:defaultAvailabilityZone:CloneStack' :: CloneStack -> Maybe Text
$sel:customCookbooksSource:CloneStack' :: CloneStack -> Maybe Source
$sel:clonePermissions:CloneStack' :: CloneStack -> Maybe Bool
$sel:customJson:CloneStack' :: CloneStack -> Maybe Text
$sel:defaultSshKeyName:CloneStack' :: CloneStack -> Maybe Text
$sel:agentVersion:CloneStack' :: CloneStack -> Maybe Text
$sel:chefConfiguration:CloneStack' :: CloneStack -> Maybe ChefConfiguration
$sel:vpcId:CloneStack' :: CloneStack -> Maybe Text
$sel:defaultRootDeviceType:CloneStack' :: CloneStack -> Maybe RootDeviceType
$sel:cloneAppIds:CloneStack' :: CloneStack -> Maybe [Text]
$sel:defaultInstanceProfileArn:CloneStack' :: CloneStack -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"DefaultInstanceProfileArn" 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
defaultInstanceProfileArn,
(Text
"CloneAppIds" 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]
cloneAppIds,
(Text
"DefaultRootDeviceType" Text -> RootDeviceType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(RootDeviceType -> Pair) -> Maybe RootDeviceType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RootDeviceType
defaultRootDeviceType,
(Text
"VpcId" 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
vpcId,
(Text
"ChefConfiguration" Text -> ChefConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ChefConfiguration -> Pair)
-> Maybe ChefConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ChefConfiguration
chefConfiguration,
(Text
"AgentVersion" 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
agentVersion,
(Text
"DefaultSshKeyName" 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
defaultSshKeyName,
(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
"ClonePermissions" 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
clonePermissions,
(Text
"CustomCookbooksSource" Text -> Source -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Source -> Pair) -> Maybe Source -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Source
customCookbooksSource,
(Text
"DefaultAvailabilityZone" 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
defaultAvailabilityZone,
(Text
"Attributes" Text -> HashMap StackAttributesKeys (Maybe Text) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap StackAttributesKeys (Maybe Text) -> Pair)
-> Maybe (HashMap StackAttributesKeys (Maybe Text)) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes,
(Text
"Name" 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
name,
(Text
"DefaultOs" 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
defaultOs,
(Text
"UseOpsworksSecurityGroups" 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
useOpsworksSecurityGroups,
(Text
"UseCustomCookbooks" 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
useCustomCookbooks,
(Text
"DefaultSubnetId" 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
defaultSubnetId,
(Text
"Region" 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
region,
(Text
"ConfigurationManager" Text -> StackConfigurationManager -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(StackConfigurationManager -> Pair)
-> Maybe StackConfigurationManager -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StackConfigurationManager
configurationManager,
(Text
"HostnameTheme" 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
hostnameTheme,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"SourceStackId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
sourceStackId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ServiceRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
serviceRoleArn)
]
)
instance Core.ToPath CloneStack where
toPath :: CloneStack -> ByteString
toPath = ByteString -> CloneStack -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CloneStack where
toQuery :: CloneStack -> QueryString
toQuery = QueryString -> CloneStack -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CloneStackResponse = CloneStackResponse'
{
CloneStackResponse -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text,
CloneStackResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CloneStackResponse -> CloneStackResponse -> Bool
(CloneStackResponse -> CloneStackResponse -> Bool)
-> (CloneStackResponse -> CloneStackResponse -> Bool)
-> Eq CloneStackResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CloneStackResponse -> CloneStackResponse -> Bool
$c/= :: CloneStackResponse -> CloneStackResponse -> Bool
== :: CloneStackResponse -> CloneStackResponse -> Bool
$c== :: CloneStackResponse -> CloneStackResponse -> Bool
Prelude.Eq, ReadPrec [CloneStackResponse]
ReadPrec CloneStackResponse
Int -> ReadS CloneStackResponse
ReadS [CloneStackResponse]
(Int -> ReadS CloneStackResponse)
-> ReadS [CloneStackResponse]
-> ReadPrec CloneStackResponse
-> ReadPrec [CloneStackResponse]
-> Read CloneStackResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CloneStackResponse]
$creadListPrec :: ReadPrec [CloneStackResponse]
readPrec :: ReadPrec CloneStackResponse
$creadPrec :: ReadPrec CloneStackResponse
readList :: ReadS [CloneStackResponse]
$creadList :: ReadS [CloneStackResponse]
readsPrec :: Int -> ReadS CloneStackResponse
$creadsPrec :: Int -> ReadS CloneStackResponse
Prelude.Read, Int -> CloneStackResponse -> ShowS
[CloneStackResponse] -> ShowS
CloneStackResponse -> String
(Int -> CloneStackResponse -> ShowS)
-> (CloneStackResponse -> String)
-> ([CloneStackResponse] -> ShowS)
-> Show CloneStackResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CloneStackResponse] -> ShowS
$cshowList :: [CloneStackResponse] -> ShowS
show :: CloneStackResponse -> String
$cshow :: CloneStackResponse -> String
showsPrec :: Int -> CloneStackResponse -> ShowS
$cshowsPrec :: Int -> CloneStackResponse -> ShowS
Prelude.Show, (forall x. CloneStackResponse -> Rep CloneStackResponse x)
-> (forall x. Rep CloneStackResponse x -> CloneStackResponse)
-> Generic CloneStackResponse
forall x. Rep CloneStackResponse x -> CloneStackResponse
forall x. CloneStackResponse -> Rep CloneStackResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CloneStackResponse x -> CloneStackResponse
$cfrom :: forall x. CloneStackResponse -> Rep CloneStackResponse x
Prelude.Generic)
newCloneStackResponse ::
Prelude.Int ->
CloneStackResponse
newCloneStackResponse :: Int -> CloneStackResponse
newCloneStackResponse Int
pHttpStatus_ =
CloneStackResponse' :: Maybe Text -> Int -> CloneStackResponse
CloneStackResponse'
{ $sel:stackId:CloneStackResponse' :: Maybe Text
stackId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CloneStackResponse' :: Int
httpStatus = Int
pHttpStatus_
}
cloneStackResponse_stackId :: Lens.Lens' CloneStackResponse (Prelude.Maybe Prelude.Text)
cloneStackResponse_stackId :: (Maybe Text -> f (Maybe Text))
-> CloneStackResponse -> f CloneStackResponse
cloneStackResponse_stackId = (CloneStackResponse -> Maybe Text)
-> (CloneStackResponse -> Maybe Text -> CloneStackResponse)
-> Lens
CloneStackResponse CloneStackResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStackResponse' {Maybe Text
stackId :: Maybe Text
$sel:stackId:CloneStackResponse' :: CloneStackResponse -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: CloneStackResponse
s@CloneStackResponse' {} Maybe Text
a -> CloneStackResponse
s {$sel:stackId:CloneStackResponse' :: Maybe Text
stackId = Maybe Text
a} :: CloneStackResponse)
cloneStackResponse_httpStatus :: Lens.Lens' CloneStackResponse Prelude.Int
cloneStackResponse_httpStatus :: (Int -> f Int) -> CloneStackResponse -> f CloneStackResponse
cloneStackResponse_httpStatus = (CloneStackResponse -> Int)
-> (CloneStackResponse -> Int -> CloneStackResponse)
-> Lens CloneStackResponse CloneStackResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CloneStackResponse' {Int
httpStatus :: Int
$sel:httpStatus:CloneStackResponse' :: CloneStackResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CloneStackResponse
s@CloneStackResponse' {} Int
a -> CloneStackResponse
s {$sel:httpStatus:CloneStackResponse' :: Int
httpStatus = Int
a} :: CloneStackResponse)
instance Prelude.NFData CloneStackResponse