{-# 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.RDS.RestoreDBInstanceFromDBSnapshot
(
RestoreDBInstanceFromDBSnapshot (..),
newRestoreDBInstanceFromDBSnapshot,
restoreDBInstanceFromDBSnapshot_deletionProtection,
restoreDBInstanceFromDBSnapshot_publiclyAccessible,
restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade,
restoreDBInstanceFromDBSnapshot_dbSubnetGroupName,
restoreDBInstanceFromDBSnapshot_iops,
restoreDBInstanceFromDBSnapshot_domain,
restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp,
restoreDBInstanceFromDBSnapshot_engine,
restoreDBInstanceFromDBSnapshot_tdeCredentialPassword,
restoreDBInstanceFromDBSnapshot_processorFeatures,
restoreDBInstanceFromDBSnapshot_dbInstanceClass,
restoreDBInstanceFromDBSnapshot_licenseModel,
restoreDBInstanceFromDBSnapshot_dbParameterGroupName,
restoreDBInstanceFromDBSnapshot_availabilityZone,
restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds,
restoreDBInstanceFromDBSnapshot_multiAZ,
restoreDBInstanceFromDBSnapshot_optionGroupName,
restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot,
restoreDBInstanceFromDBSnapshot_tdeCredentialArn,
restoreDBInstanceFromDBSnapshot_domainIAMRoleName,
restoreDBInstanceFromDBSnapshot_tags,
restoreDBInstanceFromDBSnapshot_port,
restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication,
restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures,
restoreDBInstanceFromDBSnapshot_storageType,
restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports,
restoreDBInstanceFromDBSnapshot_dbName,
restoreDBInstanceFromDBSnapshot_dbInstanceIdentifier,
restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier,
RestoreDBInstanceFromDBSnapshotResponse (..),
newRestoreDBInstanceFromDBSnapshotResponse,
restoreDBInstanceFromDBSnapshotResponse_dbInstance,
restoreDBInstanceFromDBSnapshotResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data RestoreDBInstanceFromDBSnapshot = RestoreDBInstanceFromDBSnapshot'
{
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
deletionProtection :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
publiclyAccessible :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
autoMinorVersionUpgrade :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbSubnetGroupName :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Int
iops :: Prelude.Maybe Prelude.Int,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
domain :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableCustomerOwnedIp :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
engine :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialPassword :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature]
processorFeatures :: Prelude.Maybe [ProcessorFeature],
RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbInstanceClass :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
licenseModel :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbParameterGroupName :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
vpcSecurityGroupIds :: Prelude.Maybe [Prelude.Text],
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
multiAZ :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
optionGroupName :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
copyTagsToSnapshot :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialArn :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
domainIAMRoleName :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
RestoreDBInstanceFromDBSnapshot -> Maybe Int
port :: Prelude.Maybe Prelude.Int,
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableIAMDatabaseAuthentication :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Bool
useDefaultProcessorFeatures :: Prelude.Maybe Prelude.Bool,
RestoreDBInstanceFromDBSnapshot -> Maybe Text
storageType :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
enableCloudwatchLogsExports :: Prelude.Maybe [Prelude.Text],
RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbName :: Prelude.Maybe Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Text
dbInstanceIdentifier :: Prelude.Text,
RestoreDBInstanceFromDBSnapshot -> Text
dbSnapshotIdentifier :: Prelude.Text
}
deriving (RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
(RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool)
-> Eq RestoreDBInstanceFromDBSnapshot
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
$c/= :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
== :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
$c== :: RestoreDBInstanceFromDBSnapshot
-> RestoreDBInstanceFromDBSnapshot -> Bool
Prelude.Eq, ReadPrec [RestoreDBInstanceFromDBSnapshot]
ReadPrec RestoreDBInstanceFromDBSnapshot
Int -> ReadS RestoreDBInstanceFromDBSnapshot
ReadS [RestoreDBInstanceFromDBSnapshot]
(Int -> ReadS RestoreDBInstanceFromDBSnapshot)
-> ReadS [RestoreDBInstanceFromDBSnapshot]
-> ReadPrec RestoreDBInstanceFromDBSnapshot
-> ReadPrec [RestoreDBInstanceFromDBSnapshot]
-> Read RestoreDBInstanceFromDBSnapshot
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RestoreDBInstanceFromDBSnapshot]
$creadListPrec :: ReadPrec [RestoreDBInstanceFromDBSnapshot]
readPrec :: ReadPrec RestoreDBInstanceFromDBSnapshot
$creadPrec :: ReadPrec RestoreDBInstanceFromDBSnapshot
readList :: ReadS [RestoreDBInstanceFromDBSnapshot]
$creadList :: ReadS [RestoreDBInstanceFromDBSnapshot]
readsPrec :: Int -> ReadS RestoreDBInstanceFromDBSnapshot
$creadsPrec :: Int -> ReadS RestoreDBInstanceFromDBSnapshot
Prelude.Read, Int -> RestoreDBInstanceFromDBSnapshot -> ShowS
[RestoreDBInstanceFromDBSnapshot] -> ShowS
RestoreDBInstanceFromDBSnapshot -> String
(Int -> RestoreDBInstanceFromDBSnapshot -> ShowS)
-> (RestoreDBInstanceFromDBSnapshot -> String)
-> ([RestoreDBInstanceFromDBSnapshot] -> ShowS)
-> Show RestoreDBInstanceFromDBSnapshot
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RestoreDBInstanceFromDBSnapshot] -> ShowS
$cshowList :: [RestoreDBInstanceFromDBSnapshot] -> ShowS
show :: RestoreDBInstanceFromDBSnapshot -> String
$cshow :: RestoreDBInstanceFromDBSnapshot -> String
showsPrec :: Int -> RestoreDBInstanceFromDBSnapshot -> ShowS
$cshowsPrec :: Int -> RestoreDBInstanceFromDBSnapshot -> ShowS
Prelude.Show, (forall x.
RestoreDBInstanceFromDBSnapshot
-> Rep RestoreDBInstanceFromDBSnapshot x)
-> (forall x.
Rep RestoreDBInstanceFromDBSnapshot x
-> RestoreDBInstanceFromDBSnapshot)
-> Generic RestoreDBInstanceFromDBSnapshot
forall x.
Rep RestoreDBInstanceFromDBSnapshot x
-> RestoreDBInstanceFromDBSnapshot
forall x.
RestoreDBInstanceFromDBSnapshot
-> Rep RestoreDBInstanceFromDBSnapshot x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RestoreDBInstanceFromDBSnapshot x
-> RestoreDBInstanceFromDBSnapshot
$cfrom :: forall x.
RestoreDBInstanceFromDBSnapshot
-> Rep RestoreDBInstanceFromDBSnapshot x
Prelude.Generic)
newRestoreDBInstanceFromDBSnapshot ::
Prelude.Text ->
Prelude.Text ->
RestoreDBInstanceFromDBSnapshot
newRestoreDBInstanceFromDBSnapshot :: Text -> Text -> RestoreDBInstanceFromDBSnapshot
newRestoreDBInstanceFromDBSnapshot
Text
pDBInstanceIdentifier_
Text
pDBSnapshotIdentifier_ =
RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [ProcessorFeature]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> Maybe Int
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Text
-> Text
-> RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot'
{ $sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
deletionProtection =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
publiclyAccessible = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:dbSubnetGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbSubnetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:iops:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
iops = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:domain:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
domain = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableCustomerOwnedIp = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:engine:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
engine = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialPassword = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe [ProcessorFeature]
processorFeatures = Maybe [ProcessorFeature]
forall a. Maybe a
Prelude.Nothing,
$sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbInstanceClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
licenseModel = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbParameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
multiAZ = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
optionGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:domainIAMRoleName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
domainIAMRoleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:RestoreDBInstanceFromDBSnapshot' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:port:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
port = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableIAMDatabaseAuthentication =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
useDefaultProcessorFeatures =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:storageType:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
storageType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
enableCloudwatchLogsExports =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:dbName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbInstanceIdentifier:RestoreDBInstanceFromDBSnapshot' :: Text
dbInstanceIdentifier =
Text
pDBInstanceIdentifier_,
$sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: Text
dbSnapshotIdentifier =
Text
pDBSnapshotIdentifier_
}
restoreDBInstanceFromDBSnapshot_deletionProtection :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_deletionProtection :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_deletionProtection = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
deletionProtection :: Maybe Bool
$sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
deletionProtection} -> Maybe Bool
deletionProtection) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
deletionProtection = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_publiclyAccessible :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_publiclyAccessible :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_publiclyAccessible = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
publiclyAccessible :: Maybe Bool
$sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
publiclyAccessible} -> Maybe Bool
publiclyAccessible) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
publiclyAccessible = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_autoMinorVersionUpgrade = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
autoMinorVersionUpgrade :: Maybe Bool
$sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
autoMinorVersionUpgrade} -> Maybe Bool
autoMinorVersionUpgrade) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
autoMinorVersionUpgrade = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_dbSubnetGroupName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_dbSubnetGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbSubnetGroupName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
dbSubnetGroupName :: Maybe Text
$sel:dbSubnetGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbSubnetGroupName} -> Maybe Text
dbSubnetGroupName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbSubnetGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbSubnetGroupName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_iops :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Int)
restoreDBInstanceFromDBSnapshot_iops :: (Maybe Int -> f (Maybe Int))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_iops = (RestoreDBInstanceFromDBSnapshot -> Maybe Int)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Int -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Int
iops :: Maybe Int
$sel:iops:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
iops} -> Maybe Int
iops) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Int
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:iops:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
iops = Maybe Int
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_domain :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_domain :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_domain = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
domain :: Maybe Text
$sel:domain:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
domain} -> Maybe Text
domain) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:domain:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
domain = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_enableCustomerOwnedIp = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
enableCustomerOwnedIp :: Maybe Bool
$sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableCustomerOwnedIp} -> Maybe Bool
enableCustomerOwnedIp) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableCustomerOwnedIp = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_engine :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_engine :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_engine = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
engine :: Maybe Text
$sel:engine:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
engine} -> Maybe Text
engine) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:engine:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
engine = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_tdeCredentialPassword :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_tdeCredentialPassword :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_tdeCredentialPassword = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
tdeCredentialPassword :: Maybe Text
$sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialPassword} -> Maybe Text
tdeCredentialPassword) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialPassword = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_processorFeatures :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [ProcessorFeature])
restoreDBInstanceFromDBSnapshot_processorFeatures :: (Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_processorFeatures = (RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature])
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe [ProcessorFeature] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe [ProcessorFeature])
(Maybe [ProcessorFeature])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [ProcessorFeature]
processorFeatures :: Maybe [ProcessorFeature]
$sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature]
processorFeatures} -> Maybe [ProcessorFeature]
processorFeatures) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [ProcessorFeature]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe [ProcessorFeature]
processorFeatures = Maybe [ProcessorFeature]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> (Maybe [ProcessorFeature] -> f (Maybe [ProcessorFeature]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ProcessorFeature]
[ProcessorFeature]
[ProcessorFeature]
[ProcessorFeature]
-> Iso
(Maybe [ProcessorFeature])
(Maybe [ProcessorFeature])
(Maybe [ProcessorFeature])
(Maybe [ProcessorFeature])
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
[ProcessorFeature]
[ProcessorFeature]
[ProcessorFeature]
[ProcessorFeature]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
restoreDBInstanceFromDBSnapshot_dbInstanceClass :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_dbInstanceClass :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbInstanceClass = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
dbInstanceClass :: Maybe Text
$sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbInstanceClass} -> Maybe Text
dbInstanceClass) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbInstanceClass = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_licenseModel :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_licenseModel :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_licenseModel = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
licenseModel :: Maybe Text
$sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
licenseModel} -> Maybe Text
licenseModel) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
licenseModel = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_dbParameterGroupName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_dbParameterGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbParameterGroupName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
dbParameterGroupName :: Maybe Text
$sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbParameterGroupName} -> Maybe Text
dbParameterGroupName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbParameterGroupName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_availabilityZone :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_availabilityZone :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_availabilityZone = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
availabilityZone = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [Prelude.Text])
restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_vpcSecurityGroupIds = (RestoreDBInstanceFromDBSnapshot -> Maybe [Text])
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe [Text] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [Text]
vpcSecurityGroupIds :: Maybe [Text]
$sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
vpcSecurityGroupIds} -> Maybe [Text]
vpcSecurityGroupIds) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [Text]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
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
restoreDBInstanceFromDBSnapshot_multiAZ :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_multiAZ :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_multiAZ = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
multiAZ :: Maybe Bool
$sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
multiAZ} -> Maybe Bool
multiAZ) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
multiAZ = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_optionGroupName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_optionGroupName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_optionGroupName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
optionGroupName :: Maybe Text
$sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
optionGroupName} -> Maybe Text
optionGroupName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
optionGroupName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_copyTagsToSnapshot = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
copyTagsToSnapshot :: Maybe Bool
$sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
copyTagsToSnapshot} -> Maybe Bool
copyTagsToSnapshot) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
copyTagsToSnapshot = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_tdeCredentialArn :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_tdeCredentialArn :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_tdeCredentialArn = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
tdeCredentialArn :: Maybe Text
$sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
tdeCredentialArn} -> Maybe Text
tdeCredentialArn) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
tdeCredentialArn = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_domainIAMRoleName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_domainIAMRoleName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_domainIAMRoleName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
domainIAMRoleName :: Maybe Text
$sel:domainIAMRoleName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
domainIAMRoleName} -> Maybe Text
domainIAMRoleName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:domainIAMRoleName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
domainIAMRoleName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_tags :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [Tag])
restoreDBInstanceFromDBSnapshot_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_tags = (RestoreDBInstanceFromDBSnapshot -> Maybe [Tag])
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe [Tag] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [Tag]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:tags:RestoreDBInstanceFromDBSnapshot' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
restoreDBInstanceFromDBSnapshot_port :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Int)
restoreDBInstanceFromDBSnapshot_port :: (Maybe Int -> f (Maybe Int))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_port = (RestoreDBInstanceFromDBSnapshot -> Maybe Int)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Int -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Int
port :: Maybe Int
$sel:port:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
port} -> Maybe Int
port) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Int
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:port:RestoreDBInstanceFromDBSnapshot' :: Maybe Int
port = Maybe Int
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_enableIAMDatabaseAuthentication = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
enableIAMDatabaseAuthentication :: Maybe Bool
$sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
enableIAMDatabaseAuthentication} -> Maybe Bool
enableIAMDatabaseAuthentication) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
enableIAMDatabaseAuthentication = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Bool)
restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures :: (Maybe Bool -> f (Maybe Bool))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_useDefaultProcessorFeatures = (RestoreDBInstanceFromDBSnapshot -> Maybe Bool)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Bool -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Bool
useDefaultProcessorFeatures :: Maybe Bool
$sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
useDefaultProcessorFeatures} -> Maybe Bool
useDefaultProcessorFeatures) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Bool
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: Maybe Bool
useDefaultProcessorFeatures = Maybe Bool
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_storageType :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_storageType :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_storageType = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
storageType :: Maybe Text
$sel:storageType:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
storageType} -> Maybe Text
storageType) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:storageType:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
storageType = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe [Prelude.Text])
restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports :: (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_enableCloudwatchLogsExports = (RestoreDBInstanceFromDBSnapshot -> Maybe [Text])
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe [Text] -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe [Text]
enableCloudwatchLogsExports :: Maybe [Text]
$sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
enableCloudwatchLogsExports} -> Maybe [Text]
enableCloudwatchLogsExports) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe [Text]
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: Maybe [Text]
enableCloudwatchLogsExports = Maybe [Text]
a} :: RestoreDBInstanceFromDBSnapshot) ((Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
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
restoreDBInstanceFromDBSnapshot_dbName :: Lens.Lens' RestoreDBInstanceFromDBSnapshot (Prelude.Maybe Prelude.Text)
restoreDBInstanceFromDBSnapshot_dbName :: (Maybe Text -> f (Maybe Text))
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbName = (RestoreDBInstanceFromDBSnapshot -> Maybe Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Maybe Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Maybe Text
dbName :: Maybe Text
$sel:dbName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
dbName} -> Maybe Text
dbName) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Maybe Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbName:RestoreDBInstanceFromDBSnapshot' :: Maybe Text
dbName = Maybe Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_dbInstanceIdentifier :: Lens.Lens' RestoreDBInstanceFromDBSnapshot Prelude.Text
restoreDBInstanceFromDBSnapshot_dbInstanceIdentifier :: (Text -> f Text)
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbInstanceIdentifier = (RestoreDBInstanceFromDBSnapshot -> Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Text
dbInstanceIdentifier :: Text
$sel:dbInstanceIdentifier:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Text
dbInstanceIdentifier} -> Text
dbInstanceIdentifier) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbInstanceIdentifier:RestoreDBInstanceFromDBSnapshot' :: Text
dbInstanceIdentifier = Text
a} :: RestoreDBInstanceFromDBSnapshot)
restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier :: Lens.Lens' RestoreDBInstanceFromDBSnapshot Prelude.Text
restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier :: (Text -> f Text)
-> RestoreDBInstanceFromDBSnapshot
-> f RestoreDBInstanceFromDBSnapshot
restoreDBInstanceFromDBSnapshot_dbSnapshotIdentifier = (RestoreDBInstanceFromDBSnapshot -> Text)
-> (RestoreDBInstanceFromDBSnapshot
-> Text -> RestoreDBInstanceFromDBSnapshot)
-> Lens
RestoreDBInstanceFromDBSnapshot
RestoreDBInstanceFromDBSnapshot
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshot' {Text
dbSnapshotIdentifier :: Text
$sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Text
dbSnapshotIdentifier} -> Text
dbSnapshotIdentifier) (\s :: RestoreDBInstanceFromDBSnapshot
s@RestoreDBInstanceFromDBSnapshot' {} Text
a -> RestoreDBInstanceFromDBSnapshot
s {$sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: Text
dbSnapshotIdentifier = Text
a} :: RestoreDBInstanceFromDBSnapshot)
instance
Core.AWSRequest
RestoreDBInstanceFromDBSnapshot
where
type
AWSResponse RestoreDBInstanceFromDBSnapshot =
RestoreDBInstanceFromDBSnapshotResponse
request :: RestoreDBInstanceFromDBSnapshot
-> Request RestoreDBInstanceFromDBSnapshot
request = Service
-> RestoreDBInstanceFromDBSnapshot
-> Request RestoreDBInstanceFromDBSnapshot
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy RestoreDBInstanceFromDBSnapshot
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse RestoreDBInstanceFromDBSnapshot)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse RestoreDBInstanceFromDBSnapshot))
-> Logger
-> Service
-> Proxy RestoreDBInstanceFromDBSnapshot
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse RestoreDBInstanceFromDBSnapshot)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"RestoreDBInstanceFromDBSnapshotResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe DBInstance -> Int -> RestoreDBInstanceFromDBSnapshotResponse
RestoreDBInstanceFromDBSnapshotResponse'
(Maybe DBInstance
-> Int -> RestoreDBInstanceFromDBSnapshotResponse)
-> Either String (Maybe DBInstance)
-> Either String (Int -> RestoreDBInstanceFromDBSnapshotResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBInstance)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBInstance")
Either String (Int -> RestoreDBInstanceFromDBSnapshotResponse)
-> Either String Int
-> Either String RestoreDBInstanceFromDBSnapshotResponse
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
RestoreDBInstanceFromDBSnapshot
instance
Prelude.NFData
RestoreDBInstanceFromDBSnapshot
instance
Core.ToHeaders
RestoreDBInstanceFromDBSnapshot
where
toHeaders :: RestoreDBInstanceFromDBSnapshot -> ResponseHeaders
toHeaders = ResponseHeaders
-> RestoreDBInstanceFromDBSnapshot -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath RestoreDBInstanceFromDBSnapshot where
toPath :: RestoreDBInstanceFromDBSnapshot -> ByteString
toPath = ByteString -> RestoreDBInstanceFromDBSnapshot -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery RestoreDBInstanceFromDBSnapshot where
toQuery :: RestoreDBInstanceFromDBSnapshot -> QueryString
toQuery RestoreDBInstanceFromDBSnapshot' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [ProcessorFeature]
Maybe [Tag]
Maybe Text
Text
dbSnapshotIdentifier :: Text
dbInstanceIdentifier :: Text
dbName :: Maybe Text
enableCloudwatchLogsExports :: Maybe [Text]
storageType :: Maybe Text
useDefaultProcessorFeatures :: Maybe Bool
enableIAMDatabaseAuthentication :: Maybe Bool
port :: Maybe Int
tags :: Maybe [Tag]
domainIAMRoleName :: Maybe Text
tdeCredentialArn :: Maybe Text
copyTagsToSnapshot :: Maybe Bool
optionGroupName :: Maybe Text
multiAZ :: Maybe Bool
vpcSecurityGroupIds :: Maybe [Text]
availabilityZone :: Maybe Text
dbParameterGroupName :: Maybe Text
licenseModel :: Maybe Text
dbInstanceClass :: Maybe Text
processorFeatures :: Maybe [ProcessorFeature]
tdeCredentialPassword :: Maybe Text
engine :: Maybe Text
enableCustomerOwnedIp :: Maybe Bool
domain :: Maybe Text
iops :: Maybe Int
dbSubnetGroupName :: Maybe Text
autoMinorVersionUpgrade :: Maybe Bool
publiclyAccessible :: Maybe Bool
deletionProtection :: Maybe Bool
$sel:dbSnapshotIdentifier:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Text
$sel:dbInstanceIdentifier:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Text
$sel:dbName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:enableCloudwatchLogsExports:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
$sel:storageType:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:useDefaultProcessorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:enableIAMDatabaseAuthentication:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:port:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
$sel:tags:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Tag]
$sel:domainIAMRoleName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:tdeCredentialArn:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:copyTagsToSnapshot:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:optionGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:multiAZ:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:vpcSecurityGroupIds:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [Text]
$sel:availabilityZone:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:dbParameterGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:licenseModel:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:dbInstanceClass:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:processorFeatures:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe [ProcessorFeature]
$sel:tdeCredentialPassword:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:engine:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:enableCustomerOwnedIp:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:domain:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:iops:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Int
$sel:dbSubnetGroupName:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Text
$sel:autoMinorVersionUpgrade:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:publiclyAccessible:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
$sel:deletionProtection:RestoreDBInstanceFromDBSnapshot' :: RestoreDBInstanceFromDBSnapshot -> Maybe Bool
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"RestoreDBInstanceFromDBSnapshot" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"DeletionProtection" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
deletionProtection,
ByteString
"PubliclyAccessible" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
publiclyAccessible,
ByteString
"AutoMinorVersionUpgrade"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
autoMinorVersionUpgrade,
ByteString
"DBSubnetGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbSubnetGroupName,
ByteString
"Iops" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
iops,
ByteString
"Domain" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
domain,
ByteString
"EnableCustomerOwnedIp"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
enableCustomerOwnedIp,
ByteString
"Engine" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
engine,
ByteString
"TdeCredentialPassword"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
tdeCredentialPassword,
ByteString
"ProcessorFeatures"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [ProcessorFeature] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"ProcessorFeature"
([ProcessorFeature] -> QueryString)
-> Maybe [ProcessorFeature] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ProcessorFeature]
processorFeatures
),
ByteString
"DBInstanceClass" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbInstanceClass,
ByteString
"LicenseModel" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
licenseModel,
ByteString
"DBParameterGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbParameterGroupName,
ByteString
"AvailabilityZone" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
availabilityZone,
ByteString
"VpcSecurityGroupIds"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"VpcSecurityGroupId"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
vpcSecurityGroupIds
),
ByteString
"MultiAZ" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
multiAZ,
ByteString
"OptionGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
optionGroupName,
ByteString
"CopyTagsToSnapshot" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
copyTagsToSnapshot,
ByteString
"TdeCredentialArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
tdeCredentialArn,
ByteString
"DomainIAMRoleName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
domainIAMRoleName,
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Tag" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"Port" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
port,
ByteString
"EnableIAMDatabaseAuthentication"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
enableIAMDatabaseAuthentication,
ByteString
"UseDefaultProcessorFeatures"
ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
useDefaultProcessorFeatures,
ByteString
"StorageType" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
storageType,
ByteString
"EnableCloudwatchLogsExports"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
enableCloudwatchLogsExports
),
ByteString
"DBName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbName,
ByteString
"DBInstanceIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbInstanceIdentifier,
ByteString
"DBSnapshotIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbSnapshotIdentifier
]
data RestoreDBInstanceFromDBSnapshotResponse = RestoreDBInstanceFromDBSnapshotResponse'
{ RestoreDBInstanceFromDBSnapshotResponse -> Maybe DBInstance
dbInstance :: Prelude.Maybe DBInstance,
RestoreDBInstanceFromDBSnapshotResponse -> Int
httpStatus :: Prelude.Int
}
deriving (RestoreDBInstanceFromDBSnapshotResponse
-> RestoreDBInstanceFromDBSnapshotResponse -> Bool
(RestoreDBInstanceFromDBSnapshotResponse
-> RestoreDBInstanceFromDBSnapshotResponse -> Bool)
-> (RestoreDBInstanceFromDBSnapshotResponse
-> RestoreDBInstanceFromDBSnapshotResponse -> Bool)
-> Eq RestoreDBInstanceFromDBSnapshotResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RestoreDBInstanceFromDBSnapshotResponse
-> RestoreDBInstanceFromDBSnapshotResponse -> Bool
$c/= :: RestoreDBInstanceFromDBSnapshotResponse
-> RestoreDBInstanceFromDBSnapshotResponse -> Bool
== :: RestoreDBInstanceFromDBSnapshotResponse
-> RestoreDBInstanceFromDBSnapshotResponse -> Bool
$c== :: RestoreDBInstanceFromDBSnapshotResponse
-> RestoreDBInstanceFromDBSnapshotResponse -> Bool
Prelude.Eq, ReadPrec [RestoreDBInstanceFromDBSnapshotResponse]
ReadPrec RestoreDBInstanceFromDBSnapshotResponse
Int -> ReadS RestoreDBInstanceFromDBSnapshotResponse
ReadS [RestoreDBInstanceFromDBSnapshotResponse]
(Int -> ReadS RestoreDBInstanceFromDBSnapshotResponse)
-> ReadS [RestoreDBInstanceFromDBSnapshotResponse]
-> ReadPrec RestoreDBInstanceFromDBSnapshotResponse
-> ReadPrec [RestoreDBInstanceFromDBSnapshotResponse]
-> Read RestoreDBInstanceFromDBSnapshotResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RestoreDBInstanceFromDBSnapshotResponse]
$creadListPrec :: ReadPrec [RestoreDBInstanceFromDBSnapshotResponse]
readPrec :: ReadPrec RestoreDBInstanceFromDBSnapshotResponse
$creadPrec :: ReadPrec RestoreDBInstanceFromDBSnapshotResponse
readList :: ReadS [RestoreDBInstanceFromDBSnapshotResponse]
$creadList :: ReadS [RestoreDBInstanceFromDBSnapshotResponse]
readsPrec :: Int -> ReadS RestoreDBInstanceFromDBSnapshotResponse
$creadsPrec :: Int -> ReadS RestoreDBInstanceFromDBSnapshotResponse
Prelude.Read, Int -> RestoreDBInstanceFromDBSnapshotResponse -> ShowS
[RestoreDBInstanceFromDBSnapshotResponse] -> ShowS
RestoreDBInstanceFromDBSnapshotResponse -> String
(Int -> RestoreDBInstanceFromDBSnapshotResponse -> ShowS)
-> (RestoreDBInstanceFromDBSnapshotResponse -> String)
-> ([RestoreDBInstanceFromDBSnapshotResponse] -> ShowS)
-> Show RestoreDBInstanceFromDBSnapshotResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RestoreDBInstanceFromDBSnapshotResponse] -> ShowS
$cshowList :: [RestoreDBInstanceFromDBSnapshotResponse] -> ShowS
show :: RestoreDBInstanceFromDBSnapshotResponse -> String
$cshow :: RestoreDBInstanceFromDBSnapshotResponse -> String
showsPrec :: Int -> RestoreDBInstanceFromDBSnapshotResponse -> ShowS
$cshowsPrec :: Int -> RestoreDBInstanceFromDBSnapshotResponse -> ShowS
Prelude.Show, (forall x.
RestoreDBInstanceFromDBSnapshotResponse
-> Rep RestoreDBInstanceFromDBSnapshotResponse x)
-> (forall x.
Rep RestoreDBInstanceFromDBSnapshotResponse x
-> RestoreDBInstanceFromDBSnapshotResponse)
-> Generic RestoreDBInstanceFromDBSnapshotResponse
forall x.
Rep RestoreDBInstanceFromDBSnapshotResponse x
-> RestoreDBInstanceFromDBSnapshotResponse
forall x.
RestoreDBInstanceFromDBSnapshotResponse
-> Rep RestoreDBInstanceFromDBSnapshotResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RestoreDBInstanceFromDBSnapshotResponse x
-> RestoreDBInstanceFromDBSnapshotResponse
$cfrom :: forall x.
RestoreDBInstanceFromDBSnapshotResponse
-> Rep RestoreDBInstanceFromDBSnapshotResponse x
Prelude.Generic)
newRestoreDBInstanceFromDBSnapshotResponse ::
Prelude.Int ->
RestoreDBInstanceFromDBSnapshotResponse
newRestoreDBInstanceFromDBSnapshotResponse :: Int -> RestoreDBInstanceFromDBSnapshotResponse
newRestoreDBInstanceFromDBSnapshotResponse
Int
pHttpStatus_ =
RestoreDBInstanceFromDBSnapshotResponse' :: Maybe DBInstance -> Int -> RestoreDBInstanceFromDBSnapshotResponse
RestoreDBInstanceFromDBSnapshotResponse'
{ $sel:dbInstance:RestoreDBInstanceFromDBSnapshotResponse' :: Maybe DBInstance
dbInstance =
Maybe DBInstance
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:RestoreDBInstanceFromDBSnapshotResponse' :: Int
httpStatus = Int
pHttpStatus_
}
restoreDBInstanceFromDBSnapshotResponse_dbInstance :: Lens.Lens' RestoreDBInstanceFromDBSnapshotResponse (Prelude.Maybe DBInstance)
restoreDBInstanceFromDBSnapshotResponse_dbInstance :: (Maybe DBInstance -> f (Maybe DBInstance))
-> RestoreDBInstanceFromDBSnapshotResponse
-> f RestoreDBInstanceFromDBSnapshotResponse
restoreDBInstanceFromDBSnapshotResponse_dbInstance = (RestoreDBInstanceFromDBSnapshotResponse -> Maybe DBInstance)
-> (RestoreDBInstanceFromDBSnapshotResponse
-> Maybe DBInstance -> RestoreDBInstanceFromDBSnapshotResponse)
-> Lens
RestoreDBInstanceFromDBSnapshotResponse
RestoreDBInstanceFromDBSnapshotResponse
(Maybe DBInstance)
(Maybe DBInstance)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshotResponse' {Maybe DBInstance
dbInstance :: Maybe DBInstance
$sel:dbInstance:RestoreDBInstanceFromDBSnapshotResponse' :: RestoreDBInstanceFromDBSnapshotResponse -> Maybe DBInstance
dbInstance} -> Maybe DBInstance
dbInstance) (\s :: RestoreDBInstanceFromDBSnapshotResponse
s@RestoreDBInstanceFromDBSnapshotResponse' {} Maybe DBInstance
a -> RestoreDBInstanceFromDBSnapshotResponse
s {$sel:dbInstance:RestoreDBInstanceFromDBSnapshotResponse' :: Maybe DBInstance
dbInstance = Maybe DBInstance
a} :: RestoreDBInstanceFromDBSnapshotResponse)
restoreDBInstanceFromDBSnapshotResponse_httpStatus :: Lens.Lens' RestoreDBInstanceFromDBSnapshotResponse Prelude.Int
restoreDBInstanceFromDBSnapshotResponse_httpStatus :: (Int -> f Int)
-> RestoreDBInstanceFromDBSnapshotResponse
-> f RestoreDBInstanceFromDBSnapshotResponse
restoreDBInstanceFromDBSnapshotResponse_httpStatus = (RestoreDBInstanceFromDBSnapshotResponse -> Int)
-> (RestoreDBInstanceFromDBSnapshotResponse
-> Int -> RestoreDBInstanceFromDBSnapshotResponse)
-> Lens
RestoreDBInstanceFromDBSnapshotResponse
RestoreDBInstanceFromDBSnapshotResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RestoreDBInstanceFromDBSnapshotResponse' {Int
httpStatus :: Int
$sel:httpStatus:RestoreDBInstanceFromDBSnapshotResponse' :: RestoreDBInstanceFromDBSnapshotResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RestoreDBInstanceFromDBSnapshotResponse
s@RestoreDBInstanceFromDBSnapshotResponse' {} Int
a -> RestoreDBInstanceFromDBSnapshotResponse
s {$sel:httpStatus:RestoreDBInstanceFromDBSnapshotResponse' :: Int
httpStatus = Int
a} :: RestoreDBInstanceFromDBSnapshotResponse)
instance
Prelude.NFData
RestoreDBInstanceFromDBSnapshotResponse