{-# 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.CloudFormation.ActivateType
(
ActivateType (..),
newActivateType,
activateType_typeName,
activateType_versionBump,
activateType_executionRoleArn,
activateType_autoUpdate,
activateType_typeNameAlias,
activateType_majorVersion,
activateType_publicTypeArn,
activateType_type,
activateType_publisherId,
activateType_loggingConfig,
ActivateTypeResponse (..),
newActivateTypeResponse,
activateTypeResponse_arn,
activateTypeResponse_httpStatus,
)
where
import Amazonka.CloudFormation.Types
import qualified Amazonka.Core as Core
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 ActivateType = ActivateType'
{
ActivateType -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
ActivateType -> Maybe VersionBump
versionBump :: Prelude.Maybe VersionBump,
ActivateType -> Maybe Text
executionRoleArn :: Prelude.Maybe Prelude.Text,
ActivateType -> Maybe Bool
autoUpdate :: Prelude.Maybe Prelude.Bool,
ActivateType -> Maybe Text
typeNameAlias :: Prelude.Maybe Prelude.Text,
ActivateType -> Maybe Natural
majorVersion :: Prelude.Maybe Prelude.Natural,
ActivateType -> Maybe Text
publicTypeArn :: Prelude.Maybe Prelude.Text,
ActivateType -> Maybe ThirdPartyType
type' :: Prelude.Maybe ThirdPartyType,
ActivateType -> Maybe Text
publisherId :: Prelude.Maybe Prelude.Text,
ActivateType -> Maybe LoggingConfig
loggingConfig :: Prelude.Maybe LoggingConfig
}
deriving (ActivateType -> ActivateType -> Bool
(ActivateType -> ActivateType -> Bool)
-> (ActivateType -> ActivateType -> Bool) -> Eq ActivateType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActivateType -> ActivateType -> Bool
$c/= :: ActivateType -> ActivateType -> Bool
== :: ActivateType -> ActivateType -> Bool
$c== :: ActivateType -> ActivateType -> Bool
Prelude.Eq, ReadPrec [ActivateType]
ReadPrec ActivateType
Int -> ReadS ActivateType
ReadS [ActivateType]
(Int -> ReadS ActivateType)
-> ReadS [ActivateType]
-> ReadPrec ActivateType
-> ReadPrec [ActivateType]
-> Read ActivateType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActivateType]
$creadListPrec :: ReadPrec [ActivateType]
readPrec :: ReadPrec ActivateType
$creadPrec :: ReadPrec ActivateType
readList :: ReadS [ActivateType]
$creadList :: ReadS [ActivateType]
readsPrec :: Int -> ReadS ActivateType
$creadsPrec :: Int -> ReadS ActivateType
Prelude.Read, Int -> ActivateType -> ShowS
[ActivateType] -> ShowS
ActivateType -> String
(Int -> ActivateType -> ShowS)
-> (ActivateType -> String)
-> ([ActivateType] -> ShowS)
-> Show ActivateType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActivateType] -> ShowS
$cshowList :: [ActivateType] -> ShowS
show :: ActivateType -> String
$cshow :: ActivateType -> String
showsPrec :: Int -> ActivateType -> ShowS
$cshowsPrec :: Int -> ActivateType -> ShowS
Prelude.Show, (forall x. ActivateType -> Rep ActivateType x)
-> (forall x. Rep ActivateType x -> ActivateType)
-> Generic ActivateType
forall x. Rep ActivateType x -> ActivateType
forall x. ActivateType -> Rep ActivateType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActivateType x -> ActivateType
$cfrom :: forall x. ActivateType -> Rep ActivateType x
Prelude.Generic)
newActivateType ::
ActivateType
newActivateType :: ActivateType
newActivateType =
ActivateType' :: Maybe Text
-> Maybe VersionBump
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe ThirdPartyType
-> Maybe Text
-> Maybe LoggingConfig
-> ActivateType
ActivateType'
{ $sel:typeName:ActivateType' :: Maybe Text
typeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:versionBump:ActivateType' :: Maybe VersionBump
versionBump = Maybe VersionBump
forall a. Maybe a
Prelude.Nothing,
$sel:executionRoleArn:ActivateType' :: Maybe Text
executionRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:autoUpdate:ActivateType' :: Maybe Bool
autoUpdate = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:typeNameAlias:ActivateType' :: Maybe Text
typeNameAlias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:majorVersion:ActivateType' :: Maybe Natural
majorVersion = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:publicTypeArn:ActivateType' :: Maybe Text
publicTypeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':ActivateType' :: Maybe ThirdPartyType
type' = Maybe ThirdPartyType
forall a. Maybe a
Prelude.Nothing,
$sel:publisherId:ActivateType' :: Maybe Text
publisherId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:loggingConfig:ActivateType' :: Maybe LoggingConfig
loggingConfig = Maybe LoggingConfig
forall a. Maybe a
Prelude.Nothing
}
activateType_typeName :: Lens.Lens' ActivateType (Prelude.Maybe Prelude.Text)
activateType_typeName :: (Maybe Text -> f (Maybe Text)) -> ActivateType -> f ActivateType
activateType_typeName = (ActivateType -> Maybe Text)
-> (ActivateType -> Maybe Text -> ActivateType)
-> Lens ActivateType ActivateType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe Text
typeName :: Maybe Text
$sel:typeName:ActivateType' :: ActivateType -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: ActivateType
s@ActivateType' {} Maybe Text
a -> ActivateType
s {$sel:typeName:ActivateType' :: Maybe Text
typeName = Maybe Text
a} :: ActivateType)
activateType_versionBump :: Lens.Lens' ActivateType (Prelude.Maybe VersionBump)
activateType_versionBump :: (Maybe VersionBump -> f (Maybe VersionBump))
-> ActivateType -> f ActivateType
activateType_versionBump = (ActivateType -> Maybe VersionBump)
-> (ActivateType -> Maybe VersionBump -> ActivateType)
-> Lens
ActivateType ActivateType (Maybe VersionBump) (Maybe VersionBump)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe VersionBump
versionBump :: Maybe VersionBump
$sel:versionBump:ActivateType' :: ActivateType -> Maybe VersionBump
versionBump} -> Maybe VersionBump
versionBump) (\s :: ActivateType
s@ActivateType' {} Maybe VersionBump
a -> ActivateType
s {$sel:versionBump:ActivateType' :: Maybe VersionBump
versionBump = Maybe VersionBump
a} :: ActivateType)
activateType_executionRoleArn :: Lens.Lens' ActivateType (Prelude.Maybe Prelude.Text)
activateType_executionRoleArn :: (Maybe Text -> f (Maybe Text)) -> ActivateType -> f ActivateType
activateType_executionRoleArn = (ActivateType -> Maybe Text)
-> (ActivateType -> Maybe Text -> ActivateType)
-> Lens ActivateType ActivateType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe Text
executionRoleArn :: Maybe Text
$sel:executionRoleArn:ActivateType' :: ActivateType -> Maybe Text
executionRoleArn} -> Maybe Text
executionRoleArn) (\s :: ActivateType
s@ActivateType' {} Maybe Text
a -> ActivateType
s {$sel:executionRoleArn:ActivateType' :: Maybe Text
executionRoleArn = Maybe Text
a} :: ActivateType)
activateType_autoUpdate :: Lens.Lens' ActivateType (Prelude.Maybe Prelude.Bool)
activateType_autoUpdate :: (Maybe Bool -> f (Maybe Bool)) -> ActivateType -> f ActivateType
activateType_autoUpdate = (ActivateType -> Maybe Bool)
-> (ActivateType -> Maybe Bool -> ActivateType)
-> Lens ActivateType ActivateType (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe Bool
autoUpdate :: Maybe Bool
$sel:autoUpdate:ActivateType' :: ActivateType -> Maybe Bool
autoUpdate} -> Maybe Bool
autoUpdate) (\s :: ActivateType
s@ActivateType' {} Maybe Bool
a -> ActivateType
s {$sel:autoUpdate:ActivateType' :: Maybe Bool
autoUpdate = Maybe Bool
a} :: ActivateType)
activateType_typeNameAlias :: Lens.Lens' ActivateType (Prelude.Maybe Prelude.Text)
activateType_typeNameAlias :: (Maybe Text -> f (Maybe Text)) -> ActivateType -> f ActivateType
activateType_typeNameAlias = (ActivateType -> Maybe Text)
-> (ActivateType -> Maybe Text -> ActivateType)
-> Lens ActivateType ActivateType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe Text
typeNameAlias :: Maybe Text
$sel:typeNameAlias:ActivateType' :: ActivateType -> Maybe Text
typeNameAlias} -> Maybe Text
typeNameAlias) (\s :: ActivateType
s@ActivateType' {} Maybe Text
a -> ActivateType
s {$sel:typeNameAlias:ActivateType' :: Maybe Text
typeNameAlias = Maybe Text
a} :: ActivateType)
activateType_majorVersion :: Lens.Lens' ActivateType (Prelude.Maybe Prelude.Natural)
activateType_majorVersion :: (Maybe Natural -> f (Maybe Natural))
-> ActivateType -> f ActivateType
activateType_majorVersion = (ActivateType -> Maybe Natural)
-> (ActivateType -> Maybe Natural -> ActivateType)
-> Lens ActivateType ActivateType (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe Natural
majorVersion :: Maybe Natural
$sel:majorVersion:ActivateType' :: ActivateType -> Maybe Natural
majorVersion} -> Maybe Natural
majorVersion) (\s :: ActivateType
s@ActivateType' {} Maybe Natural
a -> ActivateType
s {$sel:majorVersion:ActivateType' :: Maybe Natural
majorVersion = Maybe Natural
a} :: ActivateType)
activateType_publicTypeArn :: Lens.Lens' ActivateType (Prelude.Maybe Prelude.Text)
activateType_publicTypeArn :: (Maybe Text -> f (Maybe Text)) -> ActivateType -> f ActivateType
activateType_publicTypeArn = (ActivateType -> Maybe Text)
-> (ActivateType -> Maybe Text -> ActivateType)
-> Lens ActivateType ActivateType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe Text
publicTypeArn :: Maybe Text
$sel:publicTypeArn:ActivateType' :: ActivateType -> Maybe Text
publicTypeArn} -> Maybe Text
publicTypeArn) (\s :: ActivateType
s@ActivateType' {} Maybe Text
a -> ActivateType
s {$sel:publicTypeArn:ActivateType' :: Maybe Text
publicTypeArn = Maybe Text
a} :: ActivateType)
activateType_type :: Lens.Lens' ActivateType (Prelude.Maybe ThirdPartyType)
activateType_type :: (Maybe ThirdPartyType -> f (Maybe ThirdPartyType))
-> ActivateType -> f ActivateType
activateType_type = (ActivateType -> Maybe ThirdPartyType)
-> (ActivateType -> Maybe ThirdPartyType -> ActivateType)
-> Lens
ActivateType
ActivateType
(Maybe ThirdPartyType)
(Maybe ThirdPartyType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe ThirdPartyType
type' :: Maybe ThirdPartyType
$sel:type':ActivateType' :: ActivateType -> Maybe ThirdPartyType
type'} -> Maybe ThirdPartyType
type') (\s :: ActivateType
s@ActivateType' {} Maybe ThirdPartyType
a -> ActivateType
s {$sel:type':ActivateType' :: Maybe ThirdPartyType
type' = Maybe ThirdPartyType
a} :: ActivateType)
activateType_publisherId :: Lens.Lens' ActivateType (Prelude.Maybe Prelude.Text)
activateType_publisherId :: (Maybe Text -> f (Maybe Text)) -> ActivateType -> f ActivateType
activateType_publisherId = (ActivateType -> Maybe Text)
-> (ActivateType -> Maybe Text -> ActivateType)
-> Lens ActivateType ActivateType (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe Text
publisherId :: Maybe Text
$sel:publisherId:ActivateType' :: ActivateType -> Maybe Text
publisherId} -> Maybe Text
publisherId) (\s :: ActivateType
s@ActivateType' {} Maybe Text
a -> ActivateType
s {$sel:publisherId:ActivateType' :: Maybe Text
publisherId = Maybe Text
a} :: ActivateType)
activateType_loggingConfig :: Lens.Lens' ActivateType (Prelude.Maybe LoggingConfig)
activateType_loggingConfig :: (Maybe LoggingConfig -> f (Maybe LoggingConfig))
-> ActivateType -> f ActivateType
activateType_loggingConfig = (ActivateType -> Maybe LoggingConfig)
-> (ActivateType -> Maybe LoggingConfig -> ActivateType)
-> Lens
ActivateType
ActivateType
(Maybe LoggingConfig)
(Maybe LoggingConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateType' {Maybe LoggingConfig
loggingConfig :: Maybe LoggingConfig
$sel:loggingConfig:ActivateType' :: ActivateType -> Maybe LoggingConfig
loggingConfig} -> Maybe LoggingConfig
loggingConfig) (\s :: ActivateType
s@ActivateType' {} Maybe LoggingConfig
a -> ActivateType
s {$sel:loggingConfig:ActivateType' :: Maybe LoggingConfig
loggingConfig = Maybe LoggingConfig
a} :: ActivateType)
instance Core.AWSRequest ActivateType where
type AWSResponse ActivateType = ActivateTypeResponse
request :: ActivateType -> Request ActivateType
request = Service -> ActivateType -> Request ActivateType
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ActivateType
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ActivateType)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ActivateType))
-> Logger
-> Service
-> Proxy ActivateType
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ActivateType)))
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
"ActivateTypeResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text -> Int -> ActivateTypeResponse
ActivateTypeResponse'
(Maybe Text -> Int -> ActivateTypeResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ActivateTypeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Arn")
Either String (Int -> ActivateTypeResponse)
-> Either String Int -> Either String ActivateTypeResponse
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 ActivateType
instance Prelude.NFData ActivateType
instance Core.ToHeaders ActivateType where
toHeaders :: ActivateType -> ResponseHeaders
toHeaders = ResponseHeaders -> ActivateType -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ActivateType where
toPath :: ActivateType -> ByteString
toPath = ByteString -> ActivateType -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ActivateType where
toQuery :: ActivateType -> QueryString
toQuery ActivateType' {Maybe Bool
Maybe Natural
Maybe Text
Maybe LoggingConfig
Maybe ThirdPartyType
Maybe VersionBump
loggingConfig :: Maybe LoggingConfig
publisherId :: Maybe Text
type' :: Maybe ThirdPartyType
publicTypeArn :: Maybe Text
majorVersion :: Maybe Natural
typeNameAlias :: Maybe Text
autoUpdate :: Maybe Bool
executionRoleArn :: Maybe Text
versionBump :: Maybe VersionBump
typeName :: Maybe Text
$sel:loggingConfig:ActivateType' :: ActivateType -> Maybe LoggingConfig
$sel:publisherId:ActivateType' :: ActivateType -> Maybe Text
$sel:type':ActivateType' :: ActivateType -> Maybe ThirdPartyType
$sel:publicTypeArn:ActivateType' :: ActivateType -> Maybe Text
$sel:majorVersion:ActivateType' :: ActivateType -> Maybe Natural
$sel:typeNameAlias:ActivateType' :: ActivateType -> Maybe Text
$sel:autoUpdate:ActivateType' :: ActivateType -> Maybe Bool
$sel:executionRoleArn:ActivateType' :: ActivateType -> Maybe Text
$sel:versionBump:ActivateType' :: ActivateType -> Maybe VersionBump
$sel:typeName:ActivateType' :: ActivateType -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ActivateType" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-15" :: Prelude.ByteString),
ByteString
"TypeName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
typeName,
ByteString
"VersionBump" ByteString -> Maybe VersionBump -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe VersionBump
versionBump,
ByteString
"ExecutionRoleArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
executionRoleArn,
ByteString
"AutoUpdate" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
autoUpdate,
ByteString
"TypeNameAlias" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
typeNameAlias,
ByteString
"MajorVersion" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
majorVersion,
ByteString
"PublicTypeArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
publicTypeArn,
ByteString
"Type" ByteString -> Maybe ThirdPartyType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ThirdPartyType
type',
ByteString
"PublisherId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
publisherId,
ByteString
"LoggingConfig" ByteString -> Maybe LoggingConfig -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe LoggingConfig
loggingConfig
]
data ActivateTypeResponse = ActivateTypeResponse'
{
ActivateTypeResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
ActivateTypeResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ActivateTypeResponse -> ActivateTypeResponse -> Bool
(ActivateTypeResponse -> ActivateTypeResponse -> Bool)
-> (ActivateTypeResponse -> ActivateTypeResponse -> Bool)
-> Eq ActivateTypeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActivateTypeResponse -> ActivateTypeResponse -> Bool
$c/= :: ActivateTypeResponse -> ActivateTypeResponse -> Bool
== :: ActivateTypeResponse -> ActivateTypeResponse -> Bool
$c== :: ActivateTypeResponse -> ActivateTypeResponse -> Bool
Prelude.Eq, ReadPrec [ActivateTypeResponse]
ReadPrec ActivateTypeResponse
Int -> ReadS ActivateTypeResponse
ReadS [ActivateTypeResponse]
(Int -> ReadS ActivateTypeResponse)
-> ReadS [ActivateTypeResponse]
-> ReadPrec ActivateTypeResponse
-> ReadPrec [ActivateTypeResponse]
-> Read ActivateTypeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ActivateTypeResponse]
$creadListPrec :: ReadPrec [ActivateTypeResponse]
readPrec :: ReadPrec ActivateTypeResponse
$creadPrec :: ReadPrec ActivateTypeResponse
readList :: ReadS [ActivateTypeResponse]
$creadList :: ReadS [ActivateTypeResponse]
readsPrec :: Int -> ReadS ActivateTypeResponse
$creadsPrec :: Int -> ReadS ActivateTypeResponse
Prelude.Read, Int -> ActivateTypeResponse -> ShowS
[ActivateTypeResponse] -> ShowS
ActivateTypeResponse -> String
(Int -> ActivateTypeResponse -> ShowS)
-> (ActivateTypeResponse -> String)
-> ([ActivateTypeResponse] -> ShowS)
-> Show ActivateTypeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActivateTypeResponse] -> ShowS
$cshowList :: [ActivateTypeResponse] -> ShowS
show :: ActivateTypeResponse -> String
$cshow :: ActivateTypeResponse -> String
showsPrec :: Int -> ActivateTypeResponse -> ShowS
$cshowsPrec :: Int -> ActivateTypeResponse -> ShowS
Prelude.Show, (forall x. ActivateTypeResponse -> Rep ActivateTypeResponse x)
-> (forall x. Rep ActivateTypeResponse x -> ActivateTypeResponse)
-> Generic ActivateTypeResponse
forall x. Rep ActivateTypeResponse x -> ActivateTypeResponse
forall x. ActivateTypeResponse -> Rep ActivateTypeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ActivateTypeResponse x -> ActivateTypeResponse
$cfrom :: forall x. ActivateTypeResponse -> Rep ActivateTypeResponse x
Prelude.Generic)
newActivateTypeResponse ::
Prelude.Int ->
ActivateTypeResponse
newActivateTypeResponse :: Int -> ActivateTypeResponse
newActivateTypeResponse Int
pHttpStatus_ =
ActivateTypeResponse' :: Maybe Text -> Int -> ActivateTypeResponse
ActivateTypeResponse'
{ $sel:arn:ActivateTypeResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ActivateTypeResponse' :: Int
httpStatus = Int
pHttpStatus_
}
activateTypeResponse_arn :: Lens.Lens' ActivateTypeResponse (Prelude.Maybe Prelude.Text)
activateTypeResponse_arn :: (Maybe Text -> f (Maybe Text))
-> ActivateTypeResponse -> f ActivateTypeResponse
activateTypeResponse_arn = (ActivateTypeResponse -> Maybe Text)
-> (ActivateTypeResponse -> Maybe Text -> ActivateTypeResponse)
-> Lens
ActivateTypeResponse ActivateTypeResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateTypeResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:ActivateTypeResponse' :: ActivateTypeResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ActivateTypeResponse
s@ActivateTypeResponse' {} Maybe Text
a -> ActivateTypeResponse
s {$sel:arn:ActivateTypeResponse' :: Maybe Text
arn = Maybe Text
a} :: ActivateTypeResponse)
activateTypeResponse_httpStatus :: Lens.Lens' ActivateTypeResponse Prelude.Int
activateTypeResponse_httpStatus :: (Int -> f Int) -> ActivateTypeResponse -> f ActivateTypeResponse
activateTypeResponse_httpStatus = (ActivateTypeResponse -> Int)
-> (ActivateTypeResponse -> Int -> ActivateTypeResponse)
-> Lens ActivateTypeResponse ActivateTypeResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivateTypeResponse' {Int
httpStatus :: Int
$sel:httpStatus:ActivateTypeResponse' :: ActivateTypeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ActivateTypeResponse
s@ActivateTypeResponse' {} Int
a -> ActivateTypeResponse
s {$sel:httpStatus:ActivateTypeResponse' :: Int
httpStatus = Int
a} :: ActivateTypeResponse)
instance Prelude.NFData ActivateTypeResponse