{-# 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.UpdateStack
(
UpdateStack (..),
newUpdateStack,
updateStack_defaultInstanceProfileArn,
updateStack_serviceRoleArn,
updateStack_defaultRootDeviceType,
updateStack_chefConfiguration,
updateStack_agentVersion,
updateStack_defaultSshKeyName,
updateStack_customJson,
updateStack_customCookbooksSource,
updateStack_defaultAvailabilityZone,
updateStack_attributes,
updateStack_name,
updateStack_defaultOs,
updateStack_useOpsworksSecurityGroups,
updateStack_useCustomCookbooks,
updateStack_defaultSubnetId,
updateStack_configurationManager,
updateStack_hostnameTheme,
updateStack_stackId,
UpdateStackResponse (..),
newUpdateStackResponse,
)
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 UpdateStack = UpdateStack'
{
UpdateStack -> Maybe Text
defaultInstanceProfileArn :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe Text
serviceRoleArn :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe RootDeviceType
defaultRootDeviceType :: Prelude.Maybe RootDeviceType,
UpdateStack -> Maybe ChefConfiguration
chefConfiguration :: Prelude.Maybe ChefConfiguration,
UpdateStack -> Maybe Text
agentVersion :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe Text
defaultSshKeyName :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe Text
customJson :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe Source
customCookbooksSource :: Prelude.Maybe Source,
UpdateStack -> Maybe Text
defaultAvailabilityZone :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes :: Prelude.Maybe (Prelude.HashMap StackAttributesKeys (Prelude.Maybe Prelude.Text)),
UpdateStack -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe Text
defaultOs :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe Bool
useOpsworksSecurityGroups :: Prelude.Maybe Prelude.Bool,
UpdateStack -> Maybe Bool
useCustomCookbooks :: Prelude.Maybe Prelude.Bool,
UpdateStack -> Maybe Text
defaultSubnetId :: Prelude.Maybe Prelude.Text,
UpdateStack -> Maybe StackConfigurationManager
configurationManager :: Prelude.Maybe StackConfigurationManager,
UpdateStack -> Maybe Text
hostnameTheme :: Prelude.Maybe Prelude.Text,
UpdateStack -> Text
stackId :: Prelude.Text
}
deriving (UpdateStack -> UpdateStack -> Bool
(UpdateStack -> UpdateStack -> Bool)
-> (UpdateStack -> UpdateStack -> Bool) -> Eq UpdateStack
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateStack -> UpdateStack -> Bool
$c/= :: UpdateStack -> UpdateStack -> Bool
== :: UpdateStack -> UpdateStack -> Bool
$c== :: UpdateStack -> UpdateStack -> Bool
Prelude.Eq, ReadPrec [UpdateStack]
ReadPrec UpdateStack
Int -> ReadS UpdateStack
ReadS [UpdateStack]
(Int -> ReadS UpdateStack)
-> ReadS [UpdateStack]
-> ReadPrec UpdateStack
-> ReadPrec [UpdateStack]
-> Read UpdateStack
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateStack]
$creadListPrec :: ReadPrec [UpdateStack]
readPrec :: ReadPrec UpdateStack
$creadPrec :: ReadPrec UpdateStack
readList :: ReadS [UpdateStack]
$creadList :: ReadS [UpdateStack]
readsPrec :: Int -> ReadS UpdateStack
$creadsPrec :: Int -> ReadS UpdateStack
Prelude.Read, Int -> UpdateStack -> ShowS
[UpdateStack] -> ShowS
UpdateStack -> String
(Int -> UpdateStack -> ShowS)
-> (UpdateStack -> String)
-> ([UpdateStack] -> ShowS)
-> Show UpdateStack
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateStack] -> ShowS
$cshowList :: [UpdateStack] -> ShowS
show :: UpdateStack -> String
$cshow :: UpdateStack -> String
showsPrec :: Int -> UpdateStack -> ShowS
$cshowsPrec :: Int -> UpdateStack -> ShowS
Prelude.Show, (forall x. UpdateStack -> Rep UpdateStack x)
-> (forall x. Rep UpdateStack x -> UpdateStack)
-> Generic UpdateStack
forall x. Rep UpdateStack x -> UpdateStack
forall x. UpdateStack -> Rep UpdateStack x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateStack x -> UpdateStack
$cfrom :: forall x. UpdateStack -> Rep UpdateStack x
Prelude.Generic)
newUpdateStack ::
Prelude.Text ->
UpdateStack
newUpdateStack :: Text -> UpdateStack
newUpdateStack Text
pStackId_ =
UpdateStack' :: Maybe Text
-> Maybe Text
-> Maybe RootDeviceType
-> Maybe ChefConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Source
-> Maybe Text
-> Maybe (HashMap StackAttributesKeys (Maybe Text))
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe StackConfigurationManager
-> Maybe Text
-> Text
-> UpdateStack
UpdateStack'
{ $sel:defaultInstanceProfileArn:UpdateStack' :: Maybe Text
defaultInstanceProfileArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:serviceRoleArn:UpdateStack' :: Maybe Text
serviceRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultRootDeviceType:UpdateStack' :: Maybe RootDeviceType
defaultRootDeviceType = Maybe RootDeviceType
forall a. Maybe a
Prelude.Nothing,
$sel:chefConfiguration:UpdateStack' :: Maybe ChefConfiguration
chefConfiguration = Maybe ChefConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:agentVersion:UpdateStack' :: Maybe Text
agentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSshKeyName:UpdateStack' :: Maybe Text
defaultSshKeyName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:customJson:UpdateStack' :: Maybe Text
customJson = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:customCookbooksSource:UpdateStack' :: Maybe Source
customCookbooksSource = Maybe Source
forall a. Maybe a
Prelude.Nothing,
$sel:defaultAvailabilityZone:UpdateStack' :: Maybe Text
defaultAvailabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attributes:UpdateStack' :: Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes = Maybe (HashMap StackAttributesKeys (Maybe Text))
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateStack' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:defaultOs:UpdateStack' :: Maybe Text
defaultOs = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:useOpsworksSecurityGroups:UpdateStack' :: Maybe Bool
useOpsworksSecurityGroups = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:useCustomCookbooks:UpdateStack' :: Maybe Bool
useCustomCookbooks = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSubnetId:UpdateStack' :: Maybe Text
defaultSubnetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:configurationManager:UpdateStack' :: Maybe StackConfigurationManager
configurationManager = Maybe StackConfigurationManager
forall a. Maybe a
Prelude.Nothing,
$sel:hostnameTheme:UpdateStack' :: Maybe Text
hostnameTheme = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stackId:UpdateStack' :: Text
stackId = Text
pStackId_
}
updateStack_defaultInstanceProfileArn :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_defaultInstanceProfileArn :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_defaultInstanceProfileArn = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
defaultInstanceProfileArn :: Maybe Text
$sel:defaultInstanceProfileArn:UpdateStack' :: UpdateStack -> Maybe Text
defaultInstanceProfileArn} -> Maybe Text
defaultInstanceProfileArn) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:defaultInstanceProfileArn:UpdateStack' :: Maybe Text
defaultInstanceProfileArn = Maybe Text
a} :: UpdateStack)
updateStack_serviceRoleArn :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_serviceRoleArn :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_serviceRoleArn = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
serviceRoleArn :: Maybe Text
$sel:serviceRoleArn:UpdateStack' :: UpdateStack -> Maybe Text
serviceRoleArn} -> Maybe Text
serviceRoleArn) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:serviceRoleArn:UpdateStack' :: Maybe Text
serviceRoleArn = Maybe Text
a} :: UpdateStack)
updateStack_defaultRootDeviceType :: Lens.Lens' UpdateStack (Prelude.Maybe RootDeviceType)
updateStack_defaultRootDeviceType :: (Maybe RootDeviceType -> f (Maybe RootDeviceType))
-> UpdateStack -> f UpdateStack
updateStack_defaultRootDeviceType = (UpdateStack -> Maybe RootDeviceType)
-> (UpdateStack -> Maybe RootDeviceType -> UpdateStack)
-> Lens
UpdateStack
UpdateStack
(Maybe RootDeviceType)
(Maybe RootDeviceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe RootDeviceType
defaultRootDeviceType :: Maybe RootDeviceType
$sel:defaultRootDeviceType:UpdateStack' :: UpdateStack -> Maybe RootDeviceType
defaultRootDeviceType} -> Maybe RootDeviceType
defaultRootDeviceType) (\s :: UpdateStack
s@UpdateStack' {} Maybe RootDeviceType
a -> UpdateStack
s {$sel:defaultRootDeviceType:UpdateStack' :: Maybe RootDeviceType
defaultRootDeviceType = Maybe RootDeviceType
a} :: UpdateStack)
updateStack_chefConfiguration :: Lens.Lens' UpdateStack (Prelude.Maybe ChefConfiguration)
updateStack_chefConfiguration :: (Maybe ChefConfiguration -> f (Maybe ChefConfiguration))
-> UpdateStack -> f UpdateStack
updateStack_chefConfiguration = (UpdateStack -> Maybe ChefConfiguration)
-> (UpdateStack -> Maybe ChefConfiguration -> UpdateStack)
-> Lens
UpdateStack
UpdateStack
(Maybe ChefConfiguration)
(Maybe ChefConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe ChefConfiguration
chefConfiguration :: Maybe ChefConfiguration
$sel:chefConfiguration:UpdateStack' :: UpdateStack -> Maybe ChefConfiguration
chefConfiguration} -> Maybe ChefConfiguration
chefConfiguration) (\s :: UpdateStack
s@UpdateStack' {} Maybe ChefConfiguration
a -> UpdateStack
s {$sel:chefConfiguration:UpdateStack' :: Maybe ChefConfiguration
chefConfiguration = Maybe ChefConfiguration
a} :: UpdateStack)
updateStack_agentVersion :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_agentVersion :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_agentVersion = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
agentVersion :: Maybe Text
$sel:agentVersion:UpdateStack' :: UpdateStack -> Maybe Text
agentVersion} -> Maybe Text
agentVersion) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:agentVersion:UpdateStack' :: Maybe Text
agentVersion = Maybe Text
a} :: UpdateStack)
updateStack_defaultSshKeyName :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_defaultSshKeyName :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_defaultSshKeyName = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
defaultSshKeyName :: Maybe Text
$sel:defaultSshKeyName:UpdateStack' :: UpdateStack -> Maybe Text
defaultSshKeyName} -> Maybe Text
defaultSshKeyName) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:defaultSshKeyName:UpdateStack' :: Maybe Text
defaultSshKeyName = Maybe Text
a} :: UpdateStack)
updateStack_customJson :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_customJson :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_customJson = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
customJson :: Maybe Text
$sel:customJson:UpdateStack' :: UpdateStack -> Maybe Text
customJson} -> Maybe Text
customJson) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:customJson:UpdateStack' :: Maybe Text
customJson = Maybe Text
a} :: UpdateStack)
updateStack_customCookbooksSource :: Lens.Lens' UpdateStack (Prelude.Maybe Source)
updateStack_customCookbooksSource :: (Maybe Source -> f (Maybe Source)) -> UpdateStack -> f UpdateStack
updateStack_customCookbooksSource = (UpdateStack -> Maybe Source)
-> (UpdateStack -> Maybe Source -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Source) (Maybe Source)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Source
customCookbooksSource :: Maybe Source
$sel:customCookbooksSource:UpdateStack' :: UpdateStack -> Maybe Source
customCookbooksSource} -> Maybe Source
customCookbooksSource) (\s :: UpdateStack
s@UpdateStack' {} Maybe Source
a -> UpdateStack
s {$sel:customCookbooksSource:UpdateStack' :: Maybe Source
customCookbooksSource = Maybe Source
a} :: UpdateStack)
updateStack_defaultAvailabilityZone :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_defaultAvailabilityZone :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_defaultAvailabilityZone = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
defaultAvailabilityZone :: Maybe Text
$sel:defaultAvailabilityZone:UpdateStack' :: UpdateStack -> Maybe Text
defaultAvailabilityZone} -> Maybe Text
defaultAvailabilityZone) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:defaultAvailabilityZone:UpdateStack' :: Maybe Text
defaultAvailabilityZone = Maybe Text
a} :: UpdateStack)
updateStack_attributes :: Lens.Lens' UpdateStack (Prelude.Maybe (Prelude.HashMap StackAttributesKeys (Prelude.Maybe Prelude.Text)))
updateStack_attributes :: (Maybe (HashMap StackAttributesKeys (Maybe Text))
-> f (Maybe (HashMap StackAttributesKeys (Maybe Text))))
-> UpdateStack -> f UpdateStack
updateStack_attributes = (UpdateStack -> Maybe (HashMap StackAttributesKeys (Maybe Text)))
-> (UpdateStack
-> Maybe (HashMap StackAttributesKeys (Maybe Text)) -> UpdateStack)
-> Lens
UpdateStack
UpdateStack
(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 (\UpdateStack' {Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes :: Maybe (HashMap StackAttributesKeys (Maybe Text))
$sel:attributes:UpdateStack' :: UpdateStack -> Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes} -> Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes) (\s :: UpdateStack
s@UpdateStack' {} Maybe (HashMap StackAttributesKeys (Maybe Text))
a -> UpdateStack
s {$sel:attributes:UpdateStack' :: Maybe (HashMap StackAttributesKeys (Maybe Text))
attributes = Maybe (HashMap StackAttributesKeys (Maybe Text))
a} :: UpdateStack) ((Maybe (HashMap StackAttributesKeys (Maybe Text))
-> f (Maybe (HashMap StackAttributesKeys (Maybe Text))))
-> UpdateStack -> f UpdateStack)
-> ((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))))
-> UpdateStack
-> f UpdateStack
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
updateStack_name :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_name :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_name = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
name :: Maybe Text
$sel:name:UpdateStack' :: UpdateStack -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:name:UpdateStack' :: Maybe Text
name = Maybe Text
a} :: UpdateStack)
updateStack_defaultOs :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_defaultOs :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_defaultOs = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
defaultOs :: Maybe Text
$sel:defaultOs:UpdateStack' :: UpdateStack -> Maybe Text
defaultOs} -> Maybe Text
defaultOs) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:defaultOs:UpdateStack' :: Maybe Text
defaultOs = Maybe Text
a} :: UpdateStack)
updateStack_useOpsworksSecurityGroups :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Bool)
updateStack_useOpsworksSecurityGroups :: (Maybe Bool -> f (Maybe Bool)) -> UpdateStack -> f UpdateStack
updateStack_useOpsworksSecurityGroups = (UpdateStack -> Maybe Bool)
-> (UpdateStack -> Maybe Bool -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Bool
useOpsworksSecurityGroups :: Maybe Bool
$sel:useOpsworksSecurityGroups:UpdateStack' :: UpdateStack -> Maybe Bool
useOpsworksSecurityGroups} -> Maybe Bool
useOpsworksSecurityGroups) (\s :: UpdateStack
s@UpdateStack' {} Maybe Bool
a -> UpdateStack
s {$sel:useOpsworksSecurityGroups:UpdateStack' :: Maybe Bool
useOpsworksSecurityGroups = Maybe Bool
a} :: UpdateStack)
updateStack_useCustomCookbooks :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Bool)
updateStack_useCustomCookbooks :: (Maybe Bool -> f (Maybe Bool)) -> UpdateStack -> f UpdateStack
updateStack_useCustomCookbooks = (UpdateStack -> Maybe Bool)
-> (UpdateStack -> Maybe Bool -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Bool
useCustomCookbooks :: Maybe Bool
$sel:useCustomCookbooks:UpdateStack' :: UpdateStack -> Maybe Bool
useCustomCookbooks} -> Maybe Bool
useCustomCookbooks) (\s :: UpdateStack
s@UpdateStack' {} Maybe Bool
a -> UpdateStack
s {$sel:useCustomCookbooks:UpdateStack' :: Maybe Bool
useCustomCookbooks = Maybe Bool
a} :: UpdateStack)
updateStack_defaultSubnetId :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_defaultSubnetId :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_defaultSubnetId = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
defaultSubnetId :: Maybe Text
$sel:defaultSubnetId:UpdateStack' :: UpdateStack -> Maybe Text
defaultSubnetId} -> Maybe Text
defaultSubnetId) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:defaultSubnetId:UpdateStack' :: Maybe Text
defaultSubnetId = Maybe Text
a} :: UpdateStack)
updateStack_configurationManager :: Lens.Lens' UpdateStack (Prelude.Maybe StackConfigurationManager)
updateStack_configurationManager :: (Maybe StackConfigurationManager
-> f (Maybe StackConfigurationManager))
-> UpdateStack -> f UpdateStack
updateStack_configurationManager = (UpdateStack -> Maybe StackConfigurationManager)
-> (UpdateStack -> Maybe StackConfigurationManager -> UpdateStack)
-> Lens
UpdateStack
UpdateStack
(Maybe StackConfigurationManager)
(Maybe StackConfigurationManager)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe StackConfigurationManager
configurationManager :: Maybe StackConfigurationManager
$sel:configurationManager:UpdateStack' :: UpdateStack -> Maybe StackConfigurationManager
configurationManager} -> Maybe StackConfigurationManager
configurationManager) (\s :: UpdateStack
s@UpdateStack' {} Maybe StackConfigurationManager
a -> UpdateStack
s {$sel:configurationManager:UpdateStack' :: Maybe StackConfigurationManager
configurationManager = Maybe StackConfigurationManager
a} :: UpdateStack)
updateStack_hostnameTheme :: Lens.Lens' UpdateStack (Prelude.Maybe Prelude.Text)
updateStack_hostnameTheme :: (Maybe Text -> f (Maybe Text)) -> UpdateStack -> f UpdateStack
updateStack_hostnameTheme = (UpdateStack -> Maybe Text)
-> (UpdateStack -> Maybe Text -> UpdateStack)
-> Lens UpdateStack UpdateStack (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Maybe Text
hostnameTheme :: Maybe Text
$sel:hostnameTheme:UpdateStack' :: UpdateStack -> Maybe Text
hostnameTheme} -> Maybe Text
hostnameTheme) (\s :: UpdateStack
s@UpdateStack' {} Maybe Text
a -> UpdateStack
s {$sel:hostnameTheme:UpdateStack' :: Maybe Text
hostnameTheme = Maybe Text
a} :: UpdateStack)
updateStack_stackId :: Lens.Lens' UpdateStack Prelude.Text
updateStack_stackId :: (Text -> f Text) -> UpdateStack -> f UpdateStack
updateStack_stackId = (UpdateStack -> Text)
-> (UpdateStack -> Text -> UpdateStack)
-> Lens UpdateStack UpdateStack Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateStack' {Text
stackId :: Text
$sel:stackId:UpdateStack' :: UpdateStack -> Text
stackId} -> Text
stackId) (\s :: UpdateStack
s@UpdateStack' {} Text
a -> UpdateStack
s {$sel:stackId:UpdateStack' :: Text
stackId = Text
a} :: UpdateStack)
instance Core.AWSRequest UpdateStack where
type AWSResponse UpdateStack = UpdateStackResponse
request :: UpdateStack -> Request UpdateStack
request = Service -> UpdateStack -> Request UpdateStack
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateStack
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateStack)))
response = AWSResponse UpdateStack
-> Logger
-> Service
-> Proxy UpdateStack
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateStack)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse UpdateStack
UpdateStackResponse
UpdateStackResponse'
instance Prelude.Hashable UpdateStack
instance Prelude.NFData UpdateStack
instance Core.ToHeaders UpdateStack where
toHeaders :: UpdateStack -> [Header]
toHeaders =
[Header] -> UpdateStack -> [Header]
forall a b. a -> b -> a
Prelude.const
( [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"OpsWorks_20130218.UpdateStack" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON UpdateStack where
toJSON :: UpdateStack -> Value
toJSON UpdateStack' {Maybe Bool
Maybe Text
Maybe (HashMap StackAttributesKeys (Maybe Text))
Maybe ChefConfiguration
Maybe RootDeviceType
Maybe Source
Maybe StackConfigurationManager
Text
stackId :: Text
hostnameTheme :: Maybe Text
configurationManager :: Maybe StackConfigurationManager
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
customJson :: Maybe Text
defaultSshKeyName :: Maybe Text
agentVersion :: Maybe Text
chefConfiguration :: Maybe ChefConfiguration
defaultRootDeviceType :: Maybe RootDeviceType
serviceRoleArn :: Maybe Text
defaultInstanceProfileArn :: Maybe Text
$sel:stackId:UpdateStack' :: UpdateStack -> Text
$sel:hostnameTheme:UpdateStack' :: UpdateStack -> Maybe Text
$sel:configurationManager:UpdateStack' :: UpdateStack -> Maybe StackConfigurationManager
$sel:defaultSubnetId:UpdateStack' :: UpdateStack -> Maybe Text
$sel:useCustomCookbooks:UpdateStack' :: UpdateStack -> Maybe Bool
$sel:useOpsworksSecurityGroups:UpdateStack' :: UpdateStack -> Maybe Bool
$sel:defaultOs:UpdateStack' :: UpdateStack -> Maybe Text
$sel:name:UpdateStack' :: UpdateStack -> Maybe Text
$sel:attributes:UpdateStack' :: UpdateStack -> Maybe (HashMap StackAttributesKeys (Maybe Text))
$sel:defaultAvailabilityZone:UpdateStack' :: UpdateStack -> Maybe Text
$sel:customCookbooksSource:UpdateStack' :: UpdateStack -> Maybe Source
$sel:customJson:UpdateStack' :: UpdateStack -> Maybe Text
$sel:defaultSshKeyName:UpdateStack' :: UpdateStack -> Maybe Text
$sel:agentVersion:UpdateStack' :: UpdateStack -> Maybe Text
$sel:chefConfiguration:UpdateStack' :: UpdateStack -> Maybe ChefConfiguration
$sel:defaultRootDeviceType:UpdateStack' :: UpdateStack -> Maybe RootDeviceType
$sel:serviceRoleArn:UpdateStack' :: UpdateStack -> Maybe Text
$sel:defaultInstanceProfileArn:UpdateStack' :: UpdateStack -> 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
"ServiceRoleArn" 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
serviceRoleArn,
(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
"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
"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
"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
"StackId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
stackId)
]
)
instance Core.ToPath UpdateStack where
toPath :: UpdateStack -> ByteString
toPath = ByteString -> UpdateStack -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateStack where
toQuery :: UpdateStack -> QueryString
toQuery = QueryString -> UpdateStack -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateStackResponse = UpdateStackResponse'
{
}
deriving (UpdateStackResponse -> UpdateStackResponse -> Bool
(UpdateStackResponse -> UpdateStackResponse -> Bool)
-> (UpdateStackResponse -> UpdateStackResponse -> Bool)
-> Eq UpdateStackResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateStackResponse -> UpdateStackResponse -> Bool
$c/= :: UpdateStackResponse -> UpdateStackResponse -> Bool
== :: UpdateStackResponse -> UpdateStackResponse -> Bool
$c== :: UpdateStackResponse -> UpdateStackResponse -> Bool
Prelude.Eq, ReadPrec [UpdateStackResponse]
ReadPrec UpdateStackResponse
Int -> ReadS UpdateStackResponse
ReadS [UpdateStackResponse]
(Int -> ReadS UpdateStackResponse)
-> ReadS [UpdateStackResponse]
-> ReadPrec UpdateStackResponse
-> ReadPrec [UpdateStackResponse]
-> Read UpdateStackResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateStackResponse]
$creadListPrec :: ReadPrec [UpdateStackResponse]
readPrec :: ReadPrec UpdateStackResponse
$creadPrec :: ReadPrec UpdateStackResponse
readList :: ReadS [UpdateStackResponse]
$creadList :: ReadS [UpdateStackResponse]
readsPrec :: Int -> ReadS UpdateStackResponse
$creadsPrec :: Int -> ReadS UpdateStackResponse
Prelude.Read, Int -> UpdateStackResponse -> ShowS
[UpdateStackResponse] -> ShowS
UpdateStackResponse -> String
(Int -> UpdateStackResponse -> ShowS)
-> (UpdateStackResponse -> String)
-> ([UpdateStackResponse] -> ShowS)
-> Show UpdateStackResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateStackResponse] -> ShowS
$cshowList :: [UpdateStackResponse] -> ShowS
show :: UpdateStackResponse -> String
$cshow :: UpdateStackResponse -> String
showsPrec :: Int -> UpdateStackResponse -> ShowS
$cshowsPrec :: Int -> UpdateStackResponse -> ShowS
Prelude.Show, (forall x. UpdateStackResponse -> Rep UpdateStackResponse x)
-> (forall x. Rep UpdateStackResponse x -> UpdateStackResponse)
-> Generic UpdateStackResponse
forall x. Rep UpdateStackResponse x -> UpdateStackResponse
forall x. UpdateStackResponse -> Rep UpdateStackResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateStackResponse x -> UpdateStackResponse
$cfrom :: forall x. UpdateStackResponse -> Rep UpdateStackResponse x
Prelude.Generic)
newUpdateStackResponse ::
UpdateStackResponse
newUpdateStackResponse :: UpdateStackResponse
newUpdateStackResponse = UpdateStackResponse
UpdateStackResponse'
instance Prelude.NFData UpdateStackResponse