{-# 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.DataSync.UpdateLocationObjectStorage
(
UpdateLocationObjectStorage (..),
newUpdateLocationObjectStorage,
updateLocationObjectStorage_accessKey,
updateLocationObjectStorage_agentArns,
updateLocationObjectStorage_secretKey,
updateLocationObjectStorage_serverCertificate,
updateLocationObjectStorage_serverPort,
updateLocationObjectStorage_serverProtocol,
updateLocationObjectStorage_subdirectory,
updateLocationObjectStorage_locationArn,
UpdateLocationObjectStorageResponse (..),
newUpdateLocationObjectStorageResponse,
updateLocationObjectStorageResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.DataSync.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateLocationObjectStorage = UpdateLocationObjectStorage'
{
UpdateLocationObjectStorage -> Maybe Text
accessKey :: Prelude.Maybe Prelude.Text,
UpdateLocationObjectStorage -> Maybe (NonEmpty Text)
agentArns :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateLocationObjectStorage -> Maybe (Sensitive Text)
secretKey :: Prelude.Maybe (Data.Sensitive Prelude.Text),
UpdateLocationObjectStorage -> Maybe Base64
serverCertificate :: Prelude.Maybe Data.Base64,
UpdateLocationObjectStorage -> Maybe Natural
serverPort :: Prelude.Maybe Prelude.Natural,
UpdateLocationObjectStorage -> Maybe ObjectStorageServerProtocol
serverProtocol :: Prelude.Maybe ObjectStorageServerProtocol,
UpdateLocationObjectStorage -> Maybe Text
subdirectory :: Prelude.Maybe Prelude.Text,
UpdateLocationObjectStorage -> Text
locationArn :: Prelude.Text
}
deriving (UpdateLocationObjectStorage -> UpdateLocationObjectStorage -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLocationObjectStorage -> UpdateLocationObjectStorage -> Bool
$c/= :: UpdateLocationObjectStorage -> UpdateLocationObjectStorage -> Bool
== :: UpdateLocationObjectStorage -> UpdateLocationObjectStorage -> Bool
$c== :: UpdateLocationObjectStorage -> UpdateLocationObjectStorage -> Bool
Prelude.Eq, Int -> UpdateLocationObjectStorage -> ShowS
[UpdateLocationObjectStorage] -> ShowS
UpdateLocationObjectStorage -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLocationObjectStorage] -> ShowS
$cshowList :: [UpdateLocationObjectStorage] -> ShowS
show :: UpdateLocationObjectStorage -> String
$cshow :: UpdateLocationObjectStorage -> String
showsPrec :: Int -> UpdateLocationObjectStorage -> ShowS
$cshowsPrec :: Int -> UpdateLocationObjectStorage -> ShowS
Prelude.Show, forall x.
Rep UpdateLocationObjectStorage x -> UpdateLocationObjectStorage
forall x.
UpdateLocationObjectStorage -> Rep UpdateLocationObjectStorage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateLocationObjectStorage x -> UpdateLocationObjectStorage
$cfrom :: forall x.
UpdateLocationObjectStorage -> Rep UpdateLocationObjectStorage x
Prelude.Generic)
newUpdateLocationObjectStorage ::
Prelude.Text ->
UpdateLocationObjectStorage
newUpdateLocationObjectStorage :: Text -> UpdateLocationObjectStorage
newUpdateLocationObjectStorage Text
pLocationArn_ =
UpdateLocationObjectStorage'
{ $sel:accessKey:UpdateLocationObjectStorage' :: Maybe Text
accessKey =
forall a. Maybe a
Prelude.Nothing,
$sel:agentArns:UpdateLocationObjectStorage' :: Maybe (NonEmpty Text)
agentArns = forall a. Maybe a
Prelude.Nothing,
$sel:secretKey:UpdateLocationObjectStorage' :: Maybe (Sensitive Text)
secretKey = forall a. Maybe a
Prelude.Nothing,
$sel:serverCertificate:UpdateLocationObjectStorage' :: Maybe Base64
serverCertificate = forall a. Maybe a
Prelude.Nothing,
$sel:serverPort:UpdateLocationObjectStorage' :: Maybe Natural
serverPort = forall a. Maybe a
Prelude.Nothing,
$sel:serverProtocol:UpdateLocationObjectStorage' :: Maybe ObjectStorageServerProtocol
serverProtocol = forall a. Maybe a
Prelude.Nothing,
$sel:subdirectory:UpdateLocationObjectStorage' :: Maybe Text
subdirectory = forall a. Maybe a
Prelude.Nothing,
$sel:locationArn:UpdateLocationObjectStorage' :: Text
locationArn = Text
pLocationArn_
}
updateLocationObjectStorage_accessKey :: Lens.Lens' UpdateLocationObjectStorage (Prelude.Maybe Prelude.Text)
updateLocationObjectStorage_accessKey :: Lens' UpdateLocationObjectStorage (Maybe Text)
updateLocationObjectStorage_accessKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Maybe Text
accessKey :: Maybe Text
$sel:accessKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
accessKey} -> Maybe Text
accessKey) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Maybe Text
a -> UpdateLocationObjectStorage
s {$sel:accessKey:UpdateLocationObjectStorage' :: Maybe Text
accessKey = Maybe Text
a} :: UpdateLocationObjectStorage)
updateLocationObjectStorage_agentArns :: Lens.Lens' UpdateLocationObjectStorage (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateLocationObjectStorage_agentArns :: Lens' UpdateLocationObjectStorage (Maybe (NonEmpty Text))
updateLocationObjectStorage_agentArns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Maybe (NonEmpty Text)
agentArns :: Maybe (NonEmpty Text)
$sel:agentArns:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (NonEmpty Text)
agentArns} -> Maybe (NonEmpty Text)
agentArns) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Maybe (NonEmpty Text)
a -> UpdateLocationObjectStorage
s {$sel:agentArns:UpdateLocationObjectStorage' :: Maybe (NonEmpty Text)
agentArns = Maybe (NonEmpty Text)
a} :: UpdateLocationObjectStorage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateLocationObjectStorage_secretKey :: Lens.Lens' UpdateLocationObjectStorage (Prelude.Maybe Prelude.Text)
updateLocationObjectStorage_secretKey :: Lens' UpdateLocationObjectStorage (Maybe Text)
updateLocationObjectStorage_secretKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Maybe (Sensitive Text)
secretKey :: Maybe (Sensitive Text)
$sel:secretKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (Sensitive Text)
secretKey} -> Maybe (Sensitive Text)
secretKey) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Maybe (Sensitive Text)
a -> UpdateLocationObjectStorage
s {$sel:secretKey:UpdateLocationObjectStorage' :: Maybe (Sensitive Text)
secretKey = Maybe (Sensitive Text)
a} :: UpdateLocationObjectStorage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall a. Iso' (Sensitive a) a
Data._Sensitive
updateLocationObjectStorage_serverCertificate :: Lens.Lens' UpdateLocationObjectStorage (Prelude.Maybe Prelude.ByteString)
updateLocationObjectStorage_serverCertificate :: Lens' UpdateLocationObjectStorage (Maybe ByteString)
updateLocationObjectStorage_serverCertificate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Maybe Base64
serverCertificate :: Maybe Base64
$sel:serverCertificate:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Base64
serverCertificate} -> Maybe Base64
serverCertificate) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Maybe Base64
a -> UpdateLocationObjectStorage
s {$sel:serverCertificate:UpdateLocationObjectStorage' :: Maybe Base64
serverCertificate = Maybe Base64
a} :: UpdateLocationObjectStorage) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 Iso' Base64 ByteString
Data._Base64
updateLocationObjectStorage_serverPort :: Lens.Lens' UpdateLocationObjectStorage (Prelude.Maybe Prelude.Natural)
updateLocationObjectStorage_serverPort :: Lens' UpdateLocationObjectStorage (Maybe Natural)
updateLocationObjectStorage_serverPort = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Maybe Natural
serverPort :: Maybe Natural
$sel:serverPort:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Natural
serverPort} -> Maybe Natural
serverPort) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Maybe Natural
a -> UpdateLocationObjectStorage
s {$sel:serverPort:UpdateLocationObjectStorage' :: Maybe Natural
serverPort = Maybe Natural
a} :: UpdateLocationObjectStorage)
updateLocationObjectStorage_serverProtocol :: Lens.Lens' UpdateLocationObjectStorage (Prelude.Maybe ObjectStorageServerProtocol)
updateLocationObjectStorage_serverProtocol :: Lens'
UpdateLocationObjectStorage (Maybe ObjectStorageServerProtocol)
updateLocationObjectStorage_serverProtocol = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Maybe ObjectStorageServerProtocol
serverProtocol :: Maybe ObjectStorageServerProtocol
$sel:serverProtocol:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe ObjectStorageServerProtocol
serverProtocol} -> Maybe ObjectStorageServerProtocol
serverProtocol) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Maybe ObjectStorageServerProtocol
a -> UpdateLocationObjectStorage
s {$sel:serverProtocol:UpdateLocationObjectStorage' :: Maybe ObjectStorageServerProtocol
serverProtocol = Maybe ObjectStorageServerProtocol
a} :: UpdateLocationObjectStorage)
updateLocationObjectStorage_subdirectory :: Lens.Lens' UpdateLocationObjectStorage (Prelude.Maybe Prelude.Text)
updateLocationObjectStorage_subdirectory :: Lens' UpdateLocationObjectStorage (Maybe Text)
updateLocationObjectStorage_subdirectory = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Maybe Text
subdirectory :: Maybe Text
$sel:subdirectory:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
subdirectory} -> Maybe Text
subdirectory) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Maybe Text
a -> UpdateLocationObjectStorage
s {$sel:subdirectory:UpdateLocationObjectStorage' :: Maybe Text
subdirectory = Maybe Text
a} :: UpdateLocationObjectStorage)
updateLocationObjectStorage_locationArn :: Lens.Lens' UpdateLocationObjectStorage Prelude.Text
updateLocationObjectStorage_locationArn :: Lens' UpdateLocationObjectStorage Text
updateLocationObjectStorage_locationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorage' {Text
locationArn :: Text
$sel:locationArn:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Text
locationArn} -> Text
locationArn) (\s :: UpdateLocationObjectStorage
s@UpdateLocationObjectStorage' {} Text
a -> UpdateLocationObjectStorage
s {$sel:locationArn:UpdateLocationObjectStorage' :: Text
locationArn = Text
a} :: UpdateLocationObjectStorage)
instance Core.AWSRequest UpdateLocationObjectStorage where
type
AWSResponse UpdateLocationObjectStorage =
UpdateLocationObjectStorageResponse
request :: (Service -> Service)
-> UpdateLocationObjectStorage
-> Request UpdateLocationObjectStorage
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateLocationObjectStorage
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateLocationObjectStorage)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> UpdateLocationObjectStorageResponse
UpdateLocationObjectStorageResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateLocationObjectStorage where
hashWithSalt :: Int -> UpdateLocationObjectStorage -> Int
hashWithSalt Int
_salt UpdateLocationObjectStorage' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe Base64
Maybe (Sensitive Text)
Maybe ObjectStorageServerProtocol
Text
locationArn :: Text
subdirectory :: Maybe Text
serverProtocol :: Maybe ObjectStorageServerProtocol
serverPort :: Maybe Natural
serverCertificate :: Maybe Base64
secretKey :: Maybe (Sensitive Text)
agentArns :: Maybe (NonEmpty Text)
accessKey :: Maybe Text
$sel:locationArn:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Text
$sel:subdirectory:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
$sel:serverProtocol:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe ObjectStorageServerProtocol
$sel:serverPort:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Natural
$sel:serverCertificate:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Base64
$sel:secretKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (Sensitive Text)
$sel:agentArns:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (NonEmpty Text)
$sel:accessKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
accessKey
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
agentArns
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
secretKey
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Base64
serverCertificate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
serverPort
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ObjectStorageServerProtocol
serverProtocol
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
subdirectory
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
locationArn
instance Prelude.NFData UpdateLocationObjectStorage where
rnf :: UpdateLocationObjectStorage -> ()
rnf UpdateLocationObjectStorage' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe Base64
Maybe (Sensitive Text)
Maybe ObjectStorageServerProtocol
Text
locationArn :: Text
subdirectory :: Maybe Text
serverProtocol :: Maybe ObjectStorageServerProtocol
serverPort :: Maybe Natural
serverCertificate :: Maybe Base64
secretKey :: Maybe (Sensitive Text)
agentArns :: Maybe (NonEmpty Text)
accessKey :: Maybe Text
$sel:locationArn:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Text
$sel:subdirectory:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
$sel:serverProtocol:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe ObjectStorageServerProtocol
$sel:serverPort:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Natural
$sel:serverCertificate:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Base64
$sel:secretKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (Sensitive Text)
$sel:agentArns:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (NonEmpty Text)
$sel:accessKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
accessKey
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
agentArns
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
secretKey
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Base64
serverCertificate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
serverPort
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ObjectStorageServerProtocol
serverProtocol
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
subdirectory
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
locationArn
instance Data.ToHeaders UpdateLocationObjectStorage where
toHeaders :: UpdateLocationObjectStorage -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"FmrsService.UpdateLocationObjectStorage" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateLocationObjectStorage where
toJSON :: UpdateLocationObjectStorage -> Value
toJSON UpdateLocationObjectStorage' {Maybe Natural
Maybe (NonEmpty Text)
Maybe Text
Maybe Base64
Maybe (Sensitive Text)
Maybe ObjectStorageServerProtocol
Text
locationArn :: Text
subdirectory :: Maybe Text
serverProtocol :: Maybe ObjectStorageServerProtocol
serverPort :: Maybe Natural
serverCertificate :: Maybe Base64
secretKey :: Maybe (Sensitive Text)
agentArns :: Maybe (NonEmpty Text)
accessKey :: Maybe Text
$sel:locationArn:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Text
$sel:subdirectory:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
$sel:serverProtocol:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe ObjectStorageServerProtocol
$sel:serverPort:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Natural
$sel:serverCertificate:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Base64
$sel:secretKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (Sensitive Text)
$sel:agentArns:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe (NonEmpty Text)
$sel:accessKey:UpdateLocationObjectStorage' :: UpdateLocationObjectStorage -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AccessKey" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
accessKey,
(Key
"AgentArns" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
agentArns,
(Key
"SecretKey" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
secretKey,
(Key
"ServerCertificate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Base64
serverCertificate,
(Key
"ServerPort" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
serverPort,
(Key
"ServerProtocol" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObjectStorageServerProtocol
serverProtocol,
(Key
"Subdirectory" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
subdirectory,
forall a. a -> Maybe a
Prelude.Just (Key
"LocationArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
locationArn)
]
)
instance Data.ToPath UpdateLocationObjectStorage where
toPath :: UpdateLocationObjectStorage -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UpdateLocationObjectStorage where
toQuery :: UpdateLocationObjectStorage -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateLocationObjectStorageResponse = UpdateLocationObjectStorageResponse'
{
UpdateLocationObjectStorageResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateLocationObjectStorageResponse
-> UpdateLocationObjectStorageResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLocationObjectStorageResponse
-> UpdateLocationObjectStorageResponse -> Bool
$c/= :: UpdateLocationObjectStorageResponse
-> UpdateLocationObjectStorageResponse -> Bool
== :: UpdateLocationObjectStorageResponse
-> UpdateLocationObjectStorageResponse -> Bool
$c== :: UpdateLocationObjectStorageResponse
-> UpdateLocationObjectStorageResponse -> Bool
Prelude.Eq, ReadPrec [UpdateLocationObjectStorageResponse]
ReadPrec UpdateLocationObjectStorageResponse
Int -> ReadS UpdateLocationObjectStorageResponse
ReadS [UpdateLocationObjectStorageResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLocationObjectStorageResponse]
$creadListPrec :: ReadPrec [UpdateLocationObjectStorageResponse]
readPrec :: ReadPrec UpdateLocationObjectStorageResponse
$creadPrec :: ReadPrec UpdateLocationObjectStorageResponse
readList :: ReadS [UpdateLocationObjectStorageResponse]
$creadList :: ReadS [UpdateLocationObjectStorageResponse]
readsPrec :: Int -> ReadS UpdateLocationObjectStorageResponse
$creadsPrec :: Int -> ReadS UpdateLocationObjectStorageResponse
Prelude.Read, Int -> UpdateLocationObjectStorageResponse -> ShowS
[UpdateLocationObjectStorageResponse] -> ShowS
UpdateLocationObjectStorageResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLocationObjectStorageResponse] -> ShowS
$cshowList :: [UpdateLocationObjectStorageResponse] -> ShowS
show :: UpdateLocationObjectStorageResponse -> String
$cshow :: UpdateLocationObjectStorageResponse -> String
showsPrec :: Int -> UpdateLocationObjectStorageResponse -> ShowS
$cshowsPrec :: Int -> UpdateLocationObjectStorageResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateLocationObjectStorageResponse x
-> UpdateLocationObjectStorageResponse
forall x.
UpdateLocationObjectStorageResponse
-> Rep UpdateLocationObjectStorageResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateLocationObjectStorageResponse x
-> UpdateLocationObjectStorageResponse
$cfrom :: forall x.
UpdateLocationObjectStorageResponse
-> Rep UpdateLocationObjectStorageResponse x
Prelude.Generic)
newUpdateLocationObjectStorageResponse ::
Prelude.Int ->
UpdateLocationObjectStorageResponse
newUpdateLocationObjectStorageResponse :: Int -> UpdateLocationObjectStorageResponse
newUpdateLocationObjectStorageResponse Int
pHttpStatus_ =
UpdateLocationObjectStorageResponse'
{ $sel:httpStatus:UpdateLocationObjectStorageResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
updateLocationObjectStorageResponse_httpStatus :: Lens.Lens' UpdateLocationObjectStorageResponse Prelude.Int
updateLocationObjectStorageResponse_httpStatus :: Lens' UpdateLocationObjectStorageResponse Int
updateLocationObjectStorageResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLocationObjectStorageResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateLocationObjectStorageResponse' :: UpdateLocationObjectStorageResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateLocationObjectStorageResponse
s@UpdateLocationObjectStorageResponse' {} Int
a -> UpdateLocationObjectStorageResponse
s {$sel:httpStatus:UpdateLocationObjectStorageResponse' :: Int
httpStatus = Int
a} :: UpdateLocationObjectStorageResponse)
instance
Prelude.NFData
UpdateLocationObjectStorageResponse
where
rnf :: UpdateLocationObjectStorageResponse -> ()
rnf UpdateLocationObjectStorageResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateLocationObjectStorageResponse' :: UpdateLocationObjectStorageResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus