{-# 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.DescribeLocationS3
(
DescribeLocationS3 (..),
newDescribeLocationS3,
describeLocationS3_locationArn,
DescribeLocationS3Response (..),
newDescribeLocationS3Response,
describeLocationS3Response_creationTime,
describeLocationS3Response_agentArns,
describeLocationS3Response_s3StorageClass,
describeLocationS3Response_locationUri,
describeLocationS3Response_s3Config,
describeLocationS3Response_locationArn,
describeLocationS3Response_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataSync.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeLocationS3 = DescribeLocationS3'
{
DescribeLocationS3 -> Text
locationArn :: Prelude.Text
}
deriving (DescribeLocationS3 -> DescribeLocationS3 -> Bool
(DescribeLocationS3 -> DescribeLocationS3 -> Bool)
-> (DescribeLocationS3 -> DescribeLocationS3 -> Bool)
-> Eq DescribeLocationS3
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationS3 -> DescribeLocationS3 -> Bool
$c/= :: DescribeLocationS3 -> DescribeLocationS3 -> Bool
== :: DescribeLocationS3 -> DescribeLocationS3 -> Bool
$c== :: DescribeLocationS3 -> DescribeLocationS3 -> Bool
Prelude.Eq, ReadPrec [DescribeLocationS3]
ReadPrec DescribeLocationS3
Int -> ReadS DescribeLocationS3
ReadS [DescribeLocationS3]
(Int -> ReadS DescribeLocationS3)
-> ReadS [DescribeLocationS3]
-> ReadPrec DescribeLocationS3
-> ReadPrec [DescribeLocationS3]
-> Read DescribeLocationS3
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationS3]
$creadListPrec :: ReadPrec [DescribeLocationS3]
readPrec :: ReadPrec DescribeLocationS3
$creadPrec :: ReadPrec DescribeLocationS3
readList :: ReadS [DescribeLocationS3]
$creadList :: ReadS [DescribeLocationS3]
readsPrec :: Int -> ReadS DescribeLocationS3
$creadsPrec :: Int -> ReadS DescribeLocationS3
Prelude.Read, Int -> DescribeLocationS3 -> ShowS
[DescribeLocationS3] -> ShowS
DescribeLocationS3 -> String
(Int -> DescribeLocationS3 -> ShowS)
-> (DescribeLocationS3 -> String)
-> ([DescribeLocationS3] -> ShowS)
-> Show DescribeLocationS3
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationS3] -> ShowS
$cshowList :: [DescribeLocationS3] -> ShowS
show :: DescribeLocationS3 -> String
$cshow :: DescribeLocationS3 -> String
showsPrec :: Int -> DescribeLocationS3 -> ShowS
$cshowsPrec :: Int -> DescribeLocationS3 -> ShowS
Prelude.Show, (forall x. DescribeLocationS3 -> Rep DescribeLocationS3 x)
-> (forall x. Rep DescribeLocationS3 x -> DescribeLocationS3)
-> Generic DescribeLocationS3
forall x. Rep DescribeLocationS3 x -> DescribeLocationS3
forall x. DescribeLocationS3 -> Rep DescribeLocationS3 x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLocationS3 x -> DescribeLocationS3
$cfrom :: forall x. DescribeLocationS3 -> Rep DescribeLocationS3 x
Prelude.Generic)
newDescribeLocationS3 ::
Prelude.Text ->
DescribeLocationS3
newDescribeLocationS3 :: Text -> DescribeLocationS3
newDescribeLocationS3 Text
pLocationArn_ =
DescribeLocationS3' :: Text -> DescribeLocationS3
DescribeLocationS3' {$sel:locationArn:DescribeLocationS3' :: Text
locationArn = Text
pLocationArn_}
describeLocationS3_locationArn :: Lens.Lens' DescribeLocationS3 Prelude.Text
describeLocationS3_locationArn :: (Text -> f Text) -> DescribeLocationS3 -> f DescribeLocationS3
describeLocationS3_locationArn = (DescribeLocationS3 -> Text)
-> (DescribeLocationS3 -> Text -> DescribeLocationS3)
-> Lens DescribeLocationS3 DescribeLocationS3 Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationS3' :: DescribeLocationS3 -> Text
locationArn} -> Text
locationArn) (\s :: DescribeLocationS3
s@DescribeLocationS3' {} Text
a -> DescribeLocationS3
s {$sel:locationArn:DescribeLocationS3' :: Text
locationArn = Text
a} :: DescribeLocationS3)
instance Core.AWSRequest DescribeLocationS3 where
type
AWSResponse DescribeLocationS3 =
DescribeLocationS3Response
request :: DescribeLocationS3 -> Request DescribeLocationS3
request = Service -> DescribeLocationS3 -> Request DescribeLocationS3
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeLocationS3
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLocationS3)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeLocationS3))
-> Logger
-> Service
-> Proxy DescribeLocationS3
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeLocationS3)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe (NonEmpty Text)
-> Maybe S3StorageClass
-> Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response
DescribeLocationS3Response'
(Maybe POSIX
-> Maybe (NonEmpty Text)
-> Maybe S3StorageClass
-> Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe (NonEmpty Text)
-> Maybe S3StorageClass
-> Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
Either
String
(Maybe (NonEmpty Text)
-> Maybe S3StorageClass
-> Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response)
-> Either String (Maybe (NonEmpty Text))
-> Either
String
(Maybe S3StorageClass
-> Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AgentArns")
Either
String
(Maybe S3StorageClass
-> Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response)
-> Either String (Maybe S3StorageClass)
-> Either
String
(Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe S3StorageClass)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"S3StorageClass")
Either
String
(Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response)
-> Either String (Maybe Text)
-> Either
String
(Maybe S3Config -> Maybe Text -> Int -> DescribeLocationS3Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LocationUri")
Either
String
(Maybe S3Config -> Maybe Text -> Int -> DescribeLocationS3Response)
-> Either String (Maybe S3Config)
-> Either String (Maybe Text -> Int -> DescribeLocationS3Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe S3Config)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"S3Config")
Either String (Maybe Text -> Int -> DescribeLocationS3Response)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeLocationS3Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LocationArn")
Either String (Int -> DescribeLocationS3Response)
-> Either String Int -> Either String DescribeLocationS3Response
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 DescribeLocationS3
instance Prelude.NFData DescribeLocationS3
instance Core.ToHeaders DescribeLocationS3 where
toHeaders :: DescribeLocationS3 -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeLocationS3 -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"FmrsService.DescribeLocationS3" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeLocationS3 where
toJSON :: DescribeLocationS3 -> Value
toJSON DescribeLocationS3' {Text
locationArn :: Text
$sel:locationArn:DescribeLocationS3' :: DescribeLocationS3 -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"LocationArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
locationArn)]
)
instance Core.ToPath DescribeLocationS3 where
toPath :: DescribeLocationS3 -> ByteString
toPath = ByteString -> DescribeLocationS3 -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeLocationS3 where
toQuery :: DescribeLocationS3 -> QueryString
toQuery = QueryString -> DescribeLocationS3 -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeLocationS3Response = DescribeLocationS3Response'
{
DescribeLocationS3Response -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeLocationS3Response -> Maybe (NonEmpty Text)
agentArns :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
DescribeLocationS3Response -> Maybe S3StorageClass
s3StorageClass :: Prelude.Maybe S3StorageClass,
DescribeLocationS3Response -> Maybe Text
locationUri :: Prelude.Maybe Prelude.Text,
DescribeLocationS3Response -> Maybe S3Config
s3Config :: Prelude.Maybe S3Config,
DescribeLocationS3Response -> Maybe Text
locationArn :: Prelude.Maybe Prelude.Text,
DescribeLocationS3Response -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeLocationS3Response -> DescribeLocationS3Response -> Bool
(DescribeLocationS3Response -> DescribeLocationS3Response -> Bool)
-> (DescribeLocationS3Response
-> DescribeLocationS3Response -> Bool)
-> Eq DescribeLocationS3Response
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLocationS3Response -> DescribeLocationS3Response -> Bool
$c/= :: DescribeLocationS3Response -> DescribeLocationS3Response -> Bool
== :: DescribeLocationS3Response -> DescribeLocationS3Response -> Bool
$c== :: DescribeLocationS3Response -> DescribeLocationS3Response -> Bool
Prelude.Eq, ReadPrec [DescribeLocationS3Response]
ReadPrec DescribeLocationS3Response
Int -> ReadS DescribeLocationS3Response
ReadS [DescribeLocationS3Response]
(Int -> ReadS DescribeLocationS3Response)
-> ReadS [DescribeLocationS3Response]
-> ReadPrec DescribeLocationS3Response
-> ReadPrec [DescribeLocationS3Response]
-> Read DescribeLocationS3Response
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLocationS3Response]
$creadListPrec :: ReadPrec [DescribeLocationS3Response]
readPrec :: ReadPrec DescribeLocationS3Response
$creadPrec :: ReadPrec DescribeLocationS3Response
readList :: ReadS [DescribeLocationS3Response]
$creadList :: ReadS [DescribeLocationS3Response]
readsPrec :: Int -> ReadS DescribeLocationS3Response
$creadsPrec :: Int -> ReadS DescribeLocationS3Response
Prelude.Read, Int -> DescribeLocationS3Response -> ShowS
[DescribeLocationS3Response] -> ShowS
DescribeLocationS3Response -> String
(Int -> DescribeLocationS3Response -> ShowS)
-> (DescribeLocationS3Response -> String)
-> ([DescribeLocationS3Response] -> ShowS)
-> Show DescribeLocationS3Response
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLocationS3Response] -> ShowS
$cshowList :: [DescribeLocationS3Response] -> ShowS
show :: DescribeLocationS3Response -> String
$cshow :: DescribeLocationS3Response -> String
showsPrec :: Int -> DescribeLocationS3Response -> ShowS
$cshowsPrec :: Int -> DescribeLocationS3Response -> ShowS
Prelude.Show, (forall x.
DescribeLocationS3Response -> Rep DescribeLocationS3Response x)
-> (forall x.
Rep DescribeLocationS3Response x -> DescribeLocationS3Response)
-> Generic DescribeLocationS3Response
forall x.
Rep DescribeLocationS3Response x -> DescribeLocationS3Response
forall x.
DescribeLocationS3Response -> Rep DescribeLocationS3Response x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLocationS3Response x -> DescribeLocationS3Response
$cfrom :: forall x.
DescribeLocationS3Response -> Rep DescribeLocationS3Response x
Prelude.Generic)
newDescribeLocationS3Response ::
Prelude.Int ->
DescribeLocationS3Response
newDescribeLocationS3Response :: Int -> DescribeLocationS3Response
newDescribeLocationS3Response Int
pHttpStatus_ =
DescribeLocationS3Response' :: Maybe POSIX
-> Maybe (NonEmpty Text)
-> Maybe S3StorageClass
-> Maybe Text
-> Maybe S3Config
-> Maybe Text
-> Int
-> DescribeLocationS3Response
DescribeLocationS3Response'
{ $sel:creationTime:DescribeLocationS3Response' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:agentArns:DescribeLocationS3Response' :: Maybe (NonEmpty Text)
agentArns = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:s3StorageClass:DescribeLocationS3Response' :: Maybe S3StorageClass
s3StorageClass = Maybe S3StorageClass
forall a. Maybe a
Prelude.Nothing,
$sel:locationUri:DescribeLocationS3Response' :: Maybe Text
locationUri = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:s3Config:DescribeLocationS3Response' :: Maybe S3Config
s3Config = Maybe S3Config
forall a. Maybe a
Prelude.Nothing,
$sel:locationArn:DescribeLocationS3Response' :: Maybe Text
locationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeLocationS3Response' :: Int
httpStatus = Int
pHttpStatus_
}
describeLocationS3Response_creationTime :: Lens.Lens' DescribeLocationS3Response (Prelude.Maybe Prelude.UTCTime)
describeLocationS3Response_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationS3Response -> f DescribeLocationS3Response
describeLocationS3Response_creationTime = (DescribeLocationS3Response -> Maybe POSIX)
-> (DescribeLocationS3Response
-> Maybe POSIX -> DescribeLocationS3Response)
-> Lens
DescribeLocationS3Response
DescribeLocationS3Response
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3Response' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeLocationS3Response' :: DescribeLocationS3Response -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeLocationS3Response
s@DescribeLocationS3Response' {} Maybe POSIX
a -> DescribeLocationS3Response
s {$sel:creationTime:DescribeLocationS3Response' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeLocationS3Response) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeLocationS3Response -> f DescribeLocationS3Response)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeLocationS3Response
-> f DescribeLocationS3Response
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeLocationS3Response_agentArns :: Lens.Lens' DescribeLocationS3Response (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
describeLocationS3Response_agentArns :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeLocationS3Response -> f DescribeLocationS3Response
describeLocationS3Response_agentArns = (DescribeLocationS3Response -> Maybe (NonEmpty Text))
-> (DescribeLocationS3Response
-> Maybe (NonEmpty Text) -> DescribeLocationS3Response)
-> Lens
DescribeLocationS3Response
DescribeLocationS3Response
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3Response' {Maybe (NonEmpty Text)
agentArns :: Maybe (NonEmpty Text)
$sel:agentArns:DescribeLocationS3Response' :: DescribeLocationS3Response -> Maybe (NonEmpty Text)
agentArns} -> Maybe (NonEmpty Text)
agentArns) (\s :: DescribeLocationS3Response
s@DescribeLocationS3Response' {} Maybe (NonEmpty Text)
a -> DescribeLocationS3Response
s {$sel:agentArns:DescribeLocationS3Response' :: Maybe (NonEmpty Text)
agentArns = Maybe (NonEmpty Text)
a} :: DescribeLocationS3Response) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeLocationS3Response -> f DescribeLocationS3Response)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> DescribeLocationS3Response
-> f DescribeLocationS3Response
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeLocationS3Response_s3StorageClass :: Lens.Lens' DescribeLocationS3Response (Prelude.Maybe S3StorageClass)
describeLocationS3Response_s3StorageClass :: (Maybe S3StorageClass -> f (Maybe S3StorageClass))
-> DescribeLocationS3Response -> f DescribeLocationS3Response
describeLocationS3Response_s3StorageClass = (DescribeLocationS3Response -> Maybe S3StorageClass)
-> (DescribeLocationS3Response
-> Maybe S3StorageClass -> DescribeLocationS3Response)
-> Lens
DescribeLocationS3Response
DescribeLocationS3Response
(Maybe S3StorageClass)
(Maybe S3StorageClass)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3Response' {Maybe S3StorageClass
s3StorageClass :: Maybe S3StorageClass
$sel:s3StorageClass:DescribeLocationS3Response' :: DescribeLocationS3Response -> Maybe S3StorageClass
s3StorageClass} -> Maybe S3StorageClass
s3StorageClass) (\s :: DescribeLocationS3Response
s@DescribeLocationS3Response' {} Maybe S3StorageClass
a -> DescribeLocationS3Response
s {$sel:s3StorageClass:DescribeLocationS3Response' :: Maybe S3StorageClass
s3StorageClass = Maybe S3StorageClass
a} :: DescribeLocationS3Response)
describeLocationS3Response_locationUri :: Lens.Lens' DescribeLocationS3Response (Prelude.Maybe Prelude.Text)
describeLocationS3Response_locationUri :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationS3Response -> f DescribeLocationS3Response
describeLocationS3Response_locationUri = (DescribeLocationS3Response -> Maybe Text)
-> (DescribeLocationS3Response
-> Maybe Text -> DescribeLocationS3Response)
-> Lens
DescribeLocationS3Response
DescribeLocationS3Response
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3Response' {Maybe Text
locationUri :: Maybe Text
$sel:locationUri:DescribeLocationS3Response' :: DescribeLocationS3Response -> Maybe Text
locationUri} -> Maybe Text
locationUri) (\s :: DescribeLocationS3Response
s@DescribeLocationS3Response' {} Maybe Text
a -> DescribeLocationS3Response
s {$sel:locationUri:DescribeLocationS3Response' :: Maybe Text
locationUri = Maybe Text
a} :: DescribeLocationS3Response)
describeLocationS3Response_s3Config :: Lens.Lens' DescribeLocationS3Response (Prelude.Maybe S3Config)
describeLocationS3Response_s3Config :: (Maybe S3Config -> f (Maybe S3Config))
-> DescribeLocationS3Response -> f DescribeLocationS3Response
describeLocationS3Response_s3Config = (DescribeLocationS3Response -> Maybe S3Config)
-> (DescribeLocationS3Response
-> Maybe S3Config -> DescribeLocationS3Response)
-> Lens
DescribeLocationS3Response
DescribeLocationS3Response
(Maybe S3Config)
(Maybe S3Config)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3Response' {Maybe S3Config
s3Config :: Maybe S3Config
$sel:s3Config:DescribeLocationS3Response' :: DescribeLocationS3Response -> Maybe S3Config
s3Config} -> Maybe S3Config
s3Config) (\s :: DescribeLocationS3Response
s@DescribeLocationS3Response' {} Maybe S3Config
a -> DescribeLocationS3Response
s {$sel:s3Config:DescribeLocationS3Response' :: Maybe S3Config
s3Config = Maybe S3Config
a} :: DescribeLocationS3Response)
describeLocationS3Response_locationArn :: Lens.Lens' DescribeLocationS3Response (Prelude.Maybe Prelude.Text)
describeLocationS3Response_locationArn :: (Maybe Text -> f (Maybe Text))
-> DescribeLocationS3Response -> f DescribeLocationS3Response
describeLocationS3Response_locationArn = (DescribeLocationS3Response -> Maybe Text)
-> (DescribeLocationS3Response
-> Maybe Text -> DescribeLocationS3Response)
-> Lens
DescribeLocationS3Response
DescribeLocationS3Response
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3Response' {Maybe Text
locationArn :: Maybe Text
$sel:locationArn:DescribeLocationS3Response' :: DescribeLocationS3Response -> Maybe Text
locationArn} -> Maybe Text
locationArn) (\s :: DescribeLocationS3Response
s@DescribeLocationS3Response' {} Maybe Text
a -> DescribeLocationS3Response
s {$sel:locationArn:DescribeLocationS3Response' :: Maybe Text
locationArn = Maybe Text
a} :: DescribeLocationS3Response)
describeLocationS3Response_httpStatus :: Lens.Lens' DescribeLocationS3Response Prelude.Int
describeLocationS3Response_httpStatus :: (Int -> f Int)
-> DescribeLocationS3Response -> f DescribeLocationS3Response
describeLocationS3Response_httpStatus = (DescribeLocationS3Response -> Int)
-> (DescribeLocationS3Response
-> Int -> DescribeLocationS3Response)
-> Lens
DescribeLocationS3Response DescribeLocationS3Response Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLocationS3Response' {Int
httpStatus :: Int
$sel:httpStatus:DescribeLocationS3Response' :: DescribeLocationS3Response -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeLocationS3Response
s@DescribeLocationS3Response' {} Int
a -> DescribeLocationS3Response
s {$sel:httpStatus:DescribeLocationS3Response' :: Int
httpStatus = Int
a} :: DescribeLocationS3Response)
instance Prelude.NFData DescribeLocationS3Response