{-# 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.Greengrass.GetSubscriptionDefinition
(
GetSubscriptionDefinition (..),
newGetSubscriptionDefinition,
getSubscriptionDefinition_subscriptionDefinitionId,
GetSubscriptionDefinitionResponse (..),
newGetSubscriptionDefinitionResponse,
getSubscriptionDefinitionResponse_arn,
getSubscriptionDefinitionResponse_creationTimestamp,
getSubscriptionDefinitionResponse_id,
getSubscriptionDefinitionResponse_lastUpdatedTimestamp,
getSubscriptionDefinitionResponse_latestVersion,
getSubscriptionDefinitionResponse_latestVersionArn,
getSubscriptionDefinitionResponse_name,
getSubscriptionDefinitionResponse_tags,
getSubscriptionDefinitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Greengrass.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetSubscriptionDefinition = GetSubscriptionDefinition'
{
GetSubscriptionDefinition -> Text
subscriptionDefinitionId :: Prelude.Text
}
deriving (GetSubscriptionDefinition -> GetSubscriptionDefinition -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSubscriptionDefinition -> GetSubscriptionDefinition -> Bool
$c/= :: GetSubscriptionDefinition -> GetSubscriptionDefinition -> Bool
== :: GetSubscriptionDefinition -> GetSubscriptionDefinition -> Bool
$c== :: GetSubscriptionDefinition -> GetSubscriptionDefinition -> Bool
Prelude.Eq, ReadPrec [GetSubscriptionDefinition]
ReadPrec GetSubscriptionDefinition
Int -> ReadS GetSubscriptionDefinition
ReadS [GetSubscriptionDefinition]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSubscriptionDefinition]
$creadListPrec :: ReadPrec [GetSubscriptionDefinition]
readPrec :: ReadPrec GetSubscriptionDefinition
$creadPrec :: ReadPrec GetSubscriptionDefinition
readList :: ReadS [GetSubscriptionDefinition]
$creadList :: ReadS [GetSubscriptionDefinition]
readsPrec :: Int -> ReadS GetSubscriptionDefinition
$creadsPrec :: Int -> ReadS GetSubscriptionDefinition
Prelude.Read, Int -> GetSubscriptionDefinition -> ShowS
[GetSubscriptionDefinition] -> ShowS
GetSubscriptionDefinition -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSubscriptionDefinition] -> ShowS
$cshowList :: [GetSubscriptionDefinition] -> ShowS
show :: GetSubscriptionDefinition -> String
$cshow :: GetSubscriptionDefinition -> String
showsPrec :: Int -> GetSubscriptionDefinition -> ShowS
$cshowsPrec :: Int -> GetSubscriptionDefinition -> ShowS
Prelude.Show, forall x.
Rep GetSubscriptionDefinition x -> GetSubscriptionDefinition
forall x.
GetSubscriptionDefinition -> Rep GetSubscriptionDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetSubscriptionDefinition x -> GetSubscriptionDefinition
$cfrom :: forall x.
GetSubscriptionDefinition -> Rep GetSubscriptionDefinition x
Prelude.Generic)
newGetSubscriptionDefinition ::
Prelude.Text ->
GetSubscriptionDefinition
newGetSubscriptionDefinition :: Text -> GetSubscriptionDefinition
newGetSubscriptionDefinition
Text
pSubscriptionDefinitionId_ =
GetSubscriptionDefinition'
{ $sel:subscriptionDefinitionId:GetSubscriptionDefinition' :: Text
subscriptionDefinitionId =
Text
pSubscriptionDefinitionId_
}
getSubscriptionDefinition_subscriptionDefinitionId :: Lens.Lens' GetSubscriptionDefinition Prelude.Text
getSubscriptionDefinition_subscriptionDefinitionId :: Lens' GetSubscriptionDefinition Text
getSubscriptionDefinition_subscriptionDefinitionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinition' {Text
subscriptionDefinitionId :: Text
$sel:subscriptionDefinitionId:GetSubscriptionDefinition' :: GetSubscriptionDefinition -> Text
subscriptionDefinitionId} -> Text
subscriptionDefinitionId) (\s :: GetSubscriptionDefinition
s@GetSubscriptionDefinition' {} Text
a -> GetSubscriptionDefinition
s {$sel:subscriptionDefinitionId:GetSubscriptionDefinition' :: Text
subscriptionDefinitionId = Text
a} :: GetSubscriptionDefinition)
instance Core.AWSRequest GetSubscriptionDefinition where
type
AWSResponse GetSubscriptionDefinition =
GetSubscriptionDefinitionResponse
request :: (Service -> Service)
-> GetSubscriptionDefinition -> Request GetSubscriptionDefinition
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetSubscriptionDefinition
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetSubscriptionDefinition)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetSubscriptionDefinitionResponse
GetSubscriptionDefinitionResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreationTimestamp")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastUpdatedTimestamp")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LatestVersion")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LatestVersionArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => 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 GetSubscriptionDefinition where
hashWithSalt :: Int -> GetSubscriptionDefinition -> Int
hashWithSalt Int
_salt GetSubscriptionDefinition' {Text
subscriptionDefinitionId :: Text
$sel:subscriptionDefinitionId:GetSubscriptionDefinition' :: GetSubscriptionDefinition -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
subscriptionDefinitionId
instance Prelude.NFData GetSubscriptionDefinition where
rnf :: GetSubscriptionDefinition -> ()
rnf GetSubscriptionDefinition' {Text
subscriptionDefinitionId :: Text
$sel:subscriptionDefinitionId:GetSubscriptionDefinition' :: GetSubscriptionDefinition -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
subscriptionDefinitionId
instance Data.ToHeaders GetSubscriptionDefinition where
toHeaders :: GetSubscriptionDefinition -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath GetSubscriptionDefinition where
toPath :: GetSubscriptionDefinition -> ByteString
toPath GetSubscriptionDefinition' {Text
subscriptionDefinitionId :: Text
$sel:subscriptionDefinitionId:GetSubscriptionDefinition' :: GetSubscriptionDefinition -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/definition/subscriptions/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
subscriptionDefinitionId
]
instance Data.ToQuery GetSubscriptionDefinition where
toQuery :: GetSubscriptionDefinition -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data GetSubscriptionDefinitionResponse = GetSubscriptionDefinitionResponse'
{
GetSubscriptionDefinitionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetSubscriptionDefinitionResponse -> Maybe Text
creationTimestamp :: Prelude.Maybe Prelude.Text,
GetSubscriptionDefinitionResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetSubscriptionDefinitionResponse -> Maybe Text
lastUpdatedTimestamp :: Prelude.Maybe Prelude.Text,
GetSubscriptionDefinitionResponse -> Maybe Text
latestVersion :: Prelude.Maybe Prelude.Text,
GetSubscriptionDefinitionResponse -> Maybe Text
latestVersionArn :: Prelude.Maybe Prelude.Text,
GetSubscriptionDefinitionResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetSubscriptionDefinitionResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetSubscriptionDefinitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetSubscriptionDefinitionResponse
-> GetSubscriptionDefinitionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSubscriptionDefinitionResponse
-> GetSubscriptionDefinitionResponse -> Bool
$c/= :: GetSubscriptionDefinitionResponse
-> GetSubscriptionDefinitionResponse -> Bool
== :: GetSubscriptionDefinitionResponse
-> GetSubscriptionDefinitionResponse -> Bool
$c== :: GetSubscriptionDefinitionResponse
-> GetSubscriptionDefinitionResponse -> Bool
Prelude.Eq, ReadPrec [GetSubscriptionDefinitionResponse]
ReadPrec GetSubscriptionDefinitionResponse
Int -> ReadS GetSubscriptionDefinitionResponse
ReadS [GetSubscriptionDefinitionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSubscriptionDefinitionResponse]
$creadListPrec :: ReadPrec [GetSubscriptionDefinitionResponse]
readPrec :: ReadPrec GetSubscriptionDefinitionResponse
$creadPrec :: ReadPrec GetSubscriptionDefinitionResponse
readList :: ReadS [GetSubscriptionDefinitionResponse]
$creadList :: ReadS [GetSubscriptionDefinitionResponse]
readsPrec :: Int -> ReadS GetSubscriptionDefinitionResponse
$creadsPrec :: Int -> ReadS GetSubscriptionDefinitionResponse
Prelude.Read, Int -> GetSubscriptionDefinitionResponse -> ShowS
[GetSubscriptionDefinitionResponse] -> ShowS
GetSubscriptionDefinitionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSubscriptionDefinitionResponse] -> ShowS
$cshowList :: [GetSubscriptionDefinitionResponse] -> ShowS
show :: GetSubscriptionDefinitionResponse -> String
$cshow :: GetSubscriptionDefinitionResponse -> String
showsPrec :: Int -> GetSubscriptionDefinitionResponse -> ShowS
$cshowsPrec :: Int -> GetSubscriptionDefinitionResponse -> ShowS
Prelude.Show, forall x.
Rep GetSubscriptionDefinitionResponse x
-> GetSubscriptionDefinitionResponse
forall x.
GetSubscriptionDefinitionResponse
-> Rep GetSubscriptionDefinitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetSubscriptionDefinitionResponse x
-> GetSubscriptionDefinitionResponse
$cfrom :: forall x.
GetSubscriptionDefinitionResponse
-> Rep GetSubscriptionDefinitionResponse x
Prelude.Generic)
newGetSubscriptionDefinitionResponse ::
Prelude.Int ->
GetSubscriptionDefinitionResponse
newGetSubscriptionDefinitionResponse :: Int -> GetSubscriptionDefinitionResponse
newGetSubscriptionDefinitionResponse Int
pHttpStatus_ =
GetSubscriptionDefinitionResponse'
{ $sel:arn:GetSubscriptionDefinitionResponse' :: Maybe Text
arn =
forall a. Maybe a
Prelude.Nothing,
$sel:creationTimestamp:GetSubscriptionDefinitionResponse' :: Maybe Text
creationTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:id:GetSubscriptionDefinitionResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedTimestamp:GetSubscriptionDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:latestVersion:GetSubscriptionDefinitionResponse' :: Maybe Text
latestVersion = forall a. Maybe a
Prelude.Nothing,
$sel:latestVersionArn:GetSubscriptionDefinitionResponse' :: Maybe Text
latestVersionArn = forall a. Maybe a
Prelude.Nothing,
$sel:name:GetSubscriptionDefinitionResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetSubscriptionDefinitionResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetSubscriptionDefinitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getSubscriptionDefinitionResponse_arn :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe Prelude.Text)
getSubscriptionDefinitionResponse_arn :: Lens' GetSubscriptionDefinitionResponse (Maybe Text)
getSubscriptionDefinitionResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe Text
a -> GetSubscriptionDefinitionResponse
s {$sel:arn:GetSubscriptionDefinitionResponse' :: Maybe Text
arn = Maybe Text
a} :: GetSubscriptionDefinitionResponse)
getSubscriptionDefinitionResponse_creationTimestamp :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe Prelude.Text)
getSubscriptionDefinitionResponse_creationTimestamp :: Lens' GetSubscriptionDefinitionResponse (Maybe Text)
getSubscriptionDefinitionResponse_creationTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe Text
creationTimestamp :: Maybe Text
$sel:creationTimestamp:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
creationTimestamp} -> Maybe Text
creationTimestamp) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe Text
a -> GetSubscriptionDefinitionResponse
s {$sel:creationTimestamp:GetSubscriptionDefinitionResponse' :: Maybe Text
creationTimestamp = Maybe Text
a} :: GetSubscriptionDefinitionResponse)
getSubscriptionDefinitionResponse_id :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe Prelude.Text)
getSubscriptionDefinitionResponse_id :: Lens' GetSubscriptionDefinitionResponse (Maybe Text)
getSubscriptionDefinitionResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe Text
a -> GetSubscriptionDefinitionResponse
s {$sel:id:GetSubscriptionDefinitionResponse' :: Maybe Text
id = Maybe Text
a} :: GetSubscriptionDefinitionResponse)
getSubscriptionDefinitionResponse_lastUpdatedTimestamp :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe Prelude.Text)
getSubscriptionDefinitionResponse_lastUpdatedTimestamp :: Lens' GetSubscriptionDefinitionResponse (Maybe Text)
getSubscriptionDefinitionResponse_lastUpdatedTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe Text
lastUpdatedTimestamp :: Maybe Text
$sel:lastUpdatedTimestamp:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
lastUpdatedTimestamp} -> Maybe Text
lastUpdatedTimestamp) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe Text
a -> GetSubscriptionDefinitionResponse
s {$sel:lastUpdatedTimestamp:GetSubscriptionDefinitionResponse' :: Maybe Text
lastUpdatedTimestamp = Maybe Text
a} :: GetSubscriptionDefinitionResponse)
getSubscriptionDefinitionResponse_latestVersion :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe Prelude.Text)
getSubscriptionDefinitionResponse_latestVersion :: Lens' GetSubscriptionDefinitionResponse (Maybe Text)
getSubscriptionDefinitionResponse_latestVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe Text
latestVersion :: Maybe Text
$sel:latestVersion:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
latestVersion} -> Maybe Text
latestVersion) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe Text
a -> GetSubscriptionDefinitionResponse
s {$sel:latestVersion:GetSubscriptionDefinitionResponse' :: Maybe Text
latestVersion = Maybe Text
a} :: GetSubscriptionDefinitionResponse)
getSubscriptionDefinitionResponse_latestVersionArn :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe Prelude.Text)
getSubscriptionDefinitionResponse_latestVersionArn :: Lens' GetSubscriptionDefinitionResponse (Maybe Text)
getSubscriptionDefinitionResponse_latestVersionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe Text
latestVersionArn :: Maybe Text
$sel:latestVersionArn:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
latestVersionArn} -> Maybe Text
latestVersionArn) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe Text
a -> GetSubscriptionDefinitionResponse
s {$sel:latestVersionArn:GetSubscriptionDefinitionResponse' :: Maybe Text
latestVersionArn = Maybe Text
a} :: GetSubscriptionDefinitionResponse)
getSubscriptionDefinitionResponse_name :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe Prelude.Text)
getSubscriptionDefinitionResponse_name :: Lens' GetSubscriptionDefinitionResponse (Maybe Text)
getSubscriptionDefinitionResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe Text
a -> GetSubscriptionDefinitionResponse
s {$sel:name:GetSubscriptionDefinitionResponse' :: Maybe Text
name = Maybe Text
a} :: GetSubscriptionDefinitionResponse)
getSubscriptionDefinitionResponse_tags :: Lens.Lens' GetSubscriptionDefinitionResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getSubscriptionDefinitionResponse_tags :: Lens' GetSubscriptionDefinitionResponse (Maybe (HashMap Text Text))
getSubscriptionDefinitionResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Maybe (HashMap Text Text)
a -> GetSubscriptionDefinitionResponse
s {$sel:tags:GetSubscriptionDefinitionResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetSubscriptionDefinitionResponse) 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
getSubscriptionDefinitionResponse_httpStatus :: Lens.Lens' GetSubscriptionDefinitionResponse Prelude.Int
getSubscriptionDefinitionResponse_httpStatus :: Lens' GetSubscriptionDefinitionResponse Int
getSubscriptionDefinitionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSubscriptionDefinitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetSubscriptionDefinitionResponse
s@GetSubscriptionDefinitionResponse' {} Int
a -> GetSubscriptionDefinitionResponse
s {$sel:httpStatus:GetSubscriptionDefinitionResponse' :: Int
httpStatus = Int
a} :: GetSubscriptionDefinitionResponse)
instance
Prelude.NFData
GetSubscriptionDefinitionResponse
where
rnf :: GetSubscriptionDefinitionResponse -> ()
rnf GetSubscriptionDefinitionResponse' {Int
Maybe Text
Maybe (HashMap Text Text)
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
name :: Maybe Text
latestVersionArn :: Maybe Text
latestVersion :: Maybe Text
lastUpdatedTimestamp :: Maybe Text
id :: Maybe Text
creationTimestamp :: Maybe Text
arn :: Maybe Text
$sel:httpStatus:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Int
$sel:tags:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe (HashMap Text Text)
$sel:name:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
$sel:latestVersionArn:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
$sel:latestVersion:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
$sel:lastUpdatedTimestamp:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
$sel:id:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
$sel:creationTimestamp:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
$sel:arn:GetSubscriptionDefinitionResponse' :: GetSubscriptionDefinitionResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creationTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lastUpdatedTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
latestVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
latestVersionArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus