{-# 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.Shield.CreateProtectionGroup
(
CreateProtectionGroup (..),
newCreateProtectionGroup,
createProtectionGroup_resourceType,
createProtectionGroup_members,
createProtectionGroup_tags,
createProtectionGroup_protectionGroupId,
createProtectionGroup_aggregation,
createProtectionGroup_pattern,
CreateProtectionGroupResponse (..),
newCreateProtectionGroupResponse,
createProtectionGroupResponse_httpStatus,
)
where
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
import Amazonka.Shield.Types
data CreateProtectionGroup = CreateProtectionGroup'
{
CreateProtectionGroup -> Maybe ProtectedResourceType
resourceType :: Prelude.Maybe ProtectedResourceType,
CreateProtectionGroup -> Maybe [Text]
members :: Prelude.Maybe [Prelude.Text],
CreateProtectionGroup -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateProtectionGroup -> Text
protectionGroupId :: Prelude.Text,
CreateProtectionGroup -> ProtectionGroupAggregation
aggregation :: ProtectionGroupAggregation,
CreateProtectionGroup -> ProtectionGroupPattern
pattern' :: ProtectionGroupPattern
}
deriving (CreateProtectionGroup -> CreateProtectionGroup -> Bool
(CreateProtectionGroup -> CreateProtectionGroup -> Bool)
-> (CreateProtectionGroup -> CreateProtectionGroup -> Bool)
-> Eq CreateProtectionGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateProtectionGroup -> CreateProtectionGroup -> Bool
$c/= :: CreateProtectionGroup -> CreateProtectionGroup -> Bool
== :: CreateProtectionGroup -> CreateProtectionGroup -> Bool
$c== :: CreateProtectionGroup -> CreateProtectionGroup -> Bool
Prelude.Eq, ReadPrec [CreateProtectionGroup]
ReadPrec CreateProtectionGroup
Int -> ReadS CreateProtectionGroup
ReadS [CreateProtectionGroup]
(Int -> ReadS CreateProtectionGroup)
-> ReadS [CreateProtectionGroup]
-> ReadPrec CreateProtectionGroup
-> ReadPrec [CreateProtectionGroup]
-> Read CreateProtectionGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateProtectionGroup]
$creadListPrec :: ReadPrec [CreateProtectionGroup]
readPrec :: ReadPrec CreateProtectionGroup
$creadPrec :: ReadPrec CreateProtectionGroup
readList :: ReadS [CreateProtectionGroup]
$creadList :: ReadS [CreateProtectionGroup]
readsPrec :: Int -> ReadS CreateProtectionGroup
$creadsPrec :: Int -> ReadS CreateProtectionGroup
Prelude.Read, Int -> CreateProtectionGroup -> ShowS
[CreateProtectionGroup] -> ShowS
CreateProtectionGroup -> String
(Int -> CreateProtectionGroup -> ShowS)
-> (CreateProtectionGroup -> String)
-> ([CreateProtectionGroup] -> ShowS)
-> Show CreateProtectionGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateProtectionGroup] -> ShowS
$cshowList :: [CreateProtectionGroup] -> ShowS
show :: CreateProtectionGroup -> String
$cshow :: CreateProtectionGroup -> String
showsPrec :: Int -> CreateProtectionGroup -> ShowS
$cshowsPrec :: Int -> CreateProtectionGroup -> ShowS
Prelude.Show, (forall x. CreateProtectionGroup -> Rep CreateProtectionGroup x)
-> (forall x. Rep CreateProtectionGroup x -> CreateProtectionGroup)
-> Generic CreateProtectionGroup
forall x. Rep CreateProtectionGroup x -> CreateProtectionGroup
forall x. CreateProtectionGroup -> Rep CreateProtectionGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateProtectionGroup x -> CreateProtectionGroup
$cfrom :: forall x. CreateProtectionGroup -> Rep CreateProtectionGroup x
Prelude.Generic)
newCreateProtectionGroup ::
Prelude.Text ->
ProtectionGroupAggregation ->
ProtectionGroupPattern ->
CreateProtectionGroup
newCreateProtectionGroup :: Text
-> ProtectionGroupAggregation
-> ProtectionGroupPattern
-> CreateProtectionGroup
newCreateProtectionGroup
Text
pProtectionGroupId_
ProtectionGroupAggregation
pAggregation_
ProtectionGroupPattern
pPattern_ =
CreateProtectionGroup' :: Maybe ProtectedResourceType
-> Maybe [Text]
-> Maybe [Tag]
-> Text
-> ProtectionGroupAggregation
-> ProtectionGroupPattern
-> CreateProtectionGroup
CreateProtectionGroup'
{ $sel:resourceType:CreateProtectionGroup' :: Maybe ProtectedResourceType
resourceType =
Maybe ProtectedResourceType
forall a. Maybe a
Prelude.Nothing,
$sel:members:CreateProtectionGroup' :: Maybe [Text]
members = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateProtectionGroup' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:protectionGroupId:CreateProtectionGroup' :: Text
protectionGroupId = Text
pProtectionGroupId_,
$sel:aggregation:CreateProtectionGroup' :: ProtectionGroupAggregation
aggregation = ProtectionGroupAggregation
pAggregation_,
$sel:pattern':CreateProtectionGroup' :: ProtectionGroupPattern
pattern' = ProtectionGroupPattern
pPattern_
}
createProtectionGroup_resourceType :: Lens.Lens' CreateProtectionGroup (Prelude.Maybe ProtectedResourceType)
createProtectionGroup_resourceType :: (Maybe ProtectedResourceType -> f (Maybe ProtectedResourceType))
-> CreateProtectionGroup -> f CreateProtectionGroup
createProtectionGroup_resourceType = (CreateProtectionGroup -> Maybe ProtectedResourceType)
-> (CreateProtectionGroup
-> Maybe ProtectedResourceType -> CreateProtectionGroup)
-> Lens
CreateProtectionGroup
CreateProtectionGroup
(Maybe ProtectedResourceType)
(Maybe ProtectedResourceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProtectionGroup' {Maybe ProtectedResourceType
resourceType :: Maybe ProtectedResourceType
$sel:resourceType:CreateProtectionGroup' :: CreateProtectionGroup -> Maybe ProtectedResourceType
resourceType} -> Maybe ProtectedResourceType
resourceType) (\s :: CreateProtectionGroup
s@CreateProtectionGroup' {} Maybe ProtectedResourceType
a -> CreateProtectionGroup
s {$sel:resourceType:CreateProtectionGroup' :: Maybe ProtectedResourceType
resourceType = Maybe ProtectedResourceType
a} :: CreateProtectionGroup)
createProtectionGroup_members :: Lens.Lens' CreateProtectionGroup (Prelude.Maybe [Prelude.Text])
createProtectionGroup_members :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateProtectionGroup -> f CreateProtectionGroup
createProtectionGroup_members = (CreateProtectionGroup -> Maybe [Text])
-> (CreateProtectionGroup -> Maybe [Text] -> CreateProtectionGroup)
-> Lens
CreateProtectionGroup
CreateProtectionGroup
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProtectionGroup' {Maybe [Text]
members :: Maybe [Text]
$sel:members:CreateProtectionGroup' :: CreateProtectionGroup -> Maybe [Text]
members} -> Maybe [Text]
members) (\s :: CreateProtectionGroup
s@CreateProtectionGroup' {} Maybe [Text]
a -> CreateProtectionGroup
s {$sel:members:CreateProtectionGroup' :: Maybe [Text]
members = Maybe [Text]
a} :: CreateProtectionGroup) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateProtectionGroup -> f CreateProtectionGroup)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateProtectionGroup
-> f CreateProtectionGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createProtectionGroup_tags :: Lens.Lens' CreateProtectionGroup (Prelude.Maybe [Tag])
createProtectionGroup_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateProtectionGroup -> f CreateProtectionGroup
createProtectionGroup_tags = (CreateProtectionGroup -> Maybe [Tag])
-> (CreateProtectionGroup -> Maybe [Tag] -> CreateProtectionGroup)
-> Lens
CreateProtectionGroup
CreateProtectionGroup
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProtectionGroup' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateProtectionGroup' :: CreateProtectionGroup -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateProtectionGroup
s@CreateProtectionGroup' {} Maybe [Tag]
a -> CreateProtectionGroup
s {$sel:tags:CreateProtectionGroup' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateProtectionGroup) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateProtectionGroup -> f CreateProtectionGroup)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateProtectionGroup
-> f CreateProtectionGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createProtectionGroup_protectionGroupId :: Lens.Lens' CreateProtectionGroup Prelude.Text
createProtectionGroup_protectionGroupId :: (Text -> f Text)
-> CreateProtectionGroup -> f CreateProtectionGroup
createProtectionGroup_protectionGroupId = (CreateProtectionGroup -> Text)
-> (CreateProtectionGroup -> Text -> CreateProtectionGroup)
-> Lens CreateProtectionGroup CreateProtectionGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProtectionGroup' {Text
protectionGroupId :: Text
$sel:protectionGroupId:CreateProtectionGroup' :: CreateProtectionGroup -> Text
protectionGroupId} -> Text
protectionGroupId) (\s :: CreateProtectionGroup
s@CreateProtectionGroup' {} Text
a -> CreateProtectionGroup
s {$sel:protectionGroupId:CreateProtectionGroup' :: Text
protectionGroupId = Text
a} :: CreateProtectionGroup)
createProtectionGroup_aggregation :: Lens.Lens' CreateProtectionGroup ProtectionGroupAggregation
createProtectionGroup_aggregation :: (ProtectionGroupAggregation -> f ProtectionGroupAggregation)
-> CreateProtectionGroup -> f CreateProtectionGroup
createProtectionGroup_aggregation = (CreateProtectionGroup -> ProtectionGroupAggregation)
-> (CreateProtectionGroup
-> ProtectionGroupAggregation -> CreateProtectionGroup)
-> Lens
CreateProtectionGroup
CreateProtectionGroup
ProtectionGroupAggregation
ProtectionGroupAggregation
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProtectionGroup' {ProtectionGroupAggregation
aggregation :: ProtectionGroupAggregation
$sel:aggregation:CreateProtectionGroup' :: CreateProtectionGroup -> ProtectionGroupAggregation
aggregation} -> ProtectionGroupAggregation
aggregation) (\s :: CreateProtectionGroup
s@CreateProtectionGroup' {} ProtectionGroupAggregation
a -> CreateProtectionGroup
s {$sel:aggregation:CreateProtectionGroup' :: ProtectionGroupAggregation
aggregation = ProtectionGroupAggregation
a} :: CreateProtectionGroup)
createProtectionGroup_pattern :: Lens.Lens' CreateProtectionGroup ProtectionGroupPattern
createProtectionGroup_pattern :: (ProtectionGroupPattern -> f ProtectionGroupPattern)
-> CreateProtectionGroup -> f CreateProtectionGroup
createProtectionGroup_pattern = (CreateProtectionGroup -> ProtectionGroupPattern)
-> (CreateProtectionGroup
-> ProtectionGroupPattern -> CreateProtectionGroup)
-> Lens
CreateProtectionGroup
CreateProtectionGroup
ProtectionGroupPattern
ProtectionGroupPattern
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProtectionGroup' {ProtectionGroupPattern
pattern' :: ProtectionGroupPattern
$sel:pattern':CreateProtectionGroup' :: CreateProtectionGroup -> ProtectionGroupPattern
pattern'} -> ProtectionGroupPattern
pattern') (\s :: CreateProtectionGroup
s@CreateProtectionGroup' {} ProtectionGroupPattern
a -> CreateProtectionGroup
s {$sel:pattern':CreateProtectionGroup' :: ProtectionGroupPattern
pattern' = ProtectionGroupPattern
a} :: CreateProtectionGroup)
instance Core.AWSRequest CreateProtectionGroup where
type
AWSResponse CreateProtectionGroup =
CreateProtectionGroupResponse
request :: CreateProtectionGroup -> Request CreateProtectionGroup
request = Service -> CreateProtectionGroup -> Request CreateProtectionGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateProtectionGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateProtectionGroup)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse CreateProtectionGroup))
-> Logger
-> Service
-> Proxy CreateProtectionGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateProtectionGroup)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> CreateProtectionGroupResponse
CreateProtectionGroupResponse'
(Int -> CreateProtectionGroupResponse)
-> Either String Int -> Either String CreateProtectionGroupResponse
forall (f :: * -> *) a b. Functor 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 CreateProtectionGroup
instance Prelude.NFData CreateProtectionGroup
instance Core.ToHeaders CreateProtectionGroup where
toHeaders :: CreateProtectionGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateProtectionGroup -> 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
"AWSShield_20160616.CreateProtectionGroup" ::
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 CreateProtectionGroup where
toJSON :: CreateProtectionGroup -> Value
toJSON CreateProtectionGroup' {Maybe [Text]
Maybe [Tag]
Maybe ProtectedResourceType
Text
ProtectionGroupAggregation
ProtectionGroupPattern
pattern' :: ProtectionGroupPattern
aggregation :: ProtectionGroupAggregation
protectionGroupId :: Text
tags :: Maybe [Tag]
members :: Maybe [Text]
resourceType :: Maybe ProtectedResourceType
$sel:pattern':CreateProtectionGroup' :: CreateProtectionGroup -> ProtectionGroupPattern
$sel:aggregation:CreateProtectionGroup' :: CreateProtectionGroup -> ProtectionGroupAggregation
$sel:protectionGroupId:CreateProtectionGroup' :: CreateProtectionGroup -> Text
$sel:tags:CreateProtectionGroup' :: CreateProtectionGroup -> Maybe [Tag]
$sel:members:CreateProtectionGroup' :: CreateProtectionGroup -> Maybe [Text]
$sel:resourceType:CreateProtectionGroup' :: CreateProtectionGroup -> Maybe ProtectedResourceType
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ResourceType" Text -> ProtectedResourceType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ProtectedResourceType -> Pair)
-> Maybe ProtectedResourceType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProtectedResourceType
resourceType,
(Text
"Members" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
members,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ProtectionGroupId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
protectionGroupId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Aggregation" Text -> ProtectionGroupAggregation -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ProtectionGroupAggregation
aggregation),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Pattern" Text -> ProtectionGroupPattern -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ProtectionGroupPattern
pattern')
]
)
instance Core.ToPath CreateProtectionGroup where
toPath :: CreateProtectionGroup -> ByteString
toPath = ByteString -> CreateProtectionGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateProtectionGroup where
toQuery :: CreateProtectionGroup -> QueryString
toQuery = QueryString -> CreateProtectionGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateProtectionGroupResponse = CreateProtectionGroupResponse'
{
CreateProtectionGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateProtectionGroupResponse
-> CreateProtectionGroupResponse -> Bool
(CreateProtectionGroupResponse
-> CreateProtectionGroupResponse -> Bool)
-> (CreateProtectionGroupResponse
-> CreateProtectionGroupResponse -> Bool)
-> Eq CreateProtectionGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateProtectionGroupResponse
-> CreateProtectionGroupResponse -> Bool
$c/= :: CreateProtectionGroupResponse
-> CreateProtectionGroupResponse -> Bool
== :: CreateProtectionGroupResponse
-> CreateProtectionGroupResponse -> Bool
$c== :: CreateProtectionGroupResponse
-> CreateProtectionGroupResponse -> Bool
Prelude.Eq, ReadPrec [CreateProtectionGroupResponse]
ReadPrec CreateProtectionGroupResponse
Int -> ReadS CreateProtectionGroupResponse
ReadS [CreateProtectionGroupResponse]
(Int -> ReadS CreateProtectionGroupResponse)
-> ReadS [CreateProtectionGroupResponse]
-> ReadPrec CreateProtectionGroupResponse
-> ReadPrec [CreateProtectionGroupResponse]
-> Read CreateProtectionGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateProtectionGroupResponse]
$creadListPrec :: ReadPrec [CreateProtectionGroupResponse]
readPrec :: ReadPrec CreateProtectionGroupResponse
$creadPrec :: ReadPrec CreateProtectionGroupResponse
readList :: ReadS [CreateProtectionGroupResponse]
$creadList :: ReadS [CreateProtectionGroupResponse]
readsPrec :: Int -> ReadS CreateProtectionGroupResponse
$creadsPrec :: Int -> ReadS CreateProtectionGroupResponse
Prelude.Read, Int -> CreateProtectionGroupResponse -> ShowS
[CreateProtectionGroupResponse] -> ShowS
CreateProtectionGroupResponse -> String
(Int -> CreateProtectionGroupResponse -> ShowS)
-> (CreateProtectionGroupResponse -> String)
-> ([CreateProtectionGroupResponse] -> ShowS)
-> Show CreateProtectionGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateProtectionGroupResponse] -> ShowS
$cshowList :: [CreateProtectionGroupResponse] -> ShowS
show :: CreateProtectionGroupResponse -> String
$cshow :: CreateProtectionGroupResponse -> String
showsPrec :: Int -> CreateProtectionGroupResponse -> ShowS
$cshowsPrec :: Int -> CreateProtectionGroupResponse -> ShowS
Prelude.Show, (forall x.
CreateProtectionGroupResponse
-> Rep CreateProtectionGroupResponse x)
-> (forall x.
Rep CreateProtectionGroupResponse x
-> CreateProtectionGroupResponse)
-> Generic CreateProtectionGroupResponse
forall x.
Rep CreateProtectionGroupResponse x
-> CreateProtectionGroupResponse
forall x.
CreateProtectionGroupResponse
-> Rep CreateProtectionGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateProtectionGroupResponse x
-> CreateProtectionGroupResponse
$cfrom :: forall x.
CreateProtectionGroupResponse
-> Rep CreateProtectionGroupResponse x
Prelude.Generic)
newCreateProtectionGroupResponse ::
Prelude.Int ->
CreateProtectionGroupResponse
newCreateProtectionGroupResponse :: Int -> CreateProtectionGroupResponse
newCreateProtectionGroupResponse Int
pHttpStatus_ =
CreateProtectionGroupResponse' :: Int -> CreateProtectionGroupResponse
CreateProtectionGroupResponse'
{ $sel:httpStatus:CreateProtectionGroupResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
createProtectionGroupResponse_httpStatus :: Lens.Lens' CreateProtectionGroupResponse Prelude.Int
createProtectionGroupResponse_httpStatus :: (Int -> f Int)
-> CreateProtectionGroupResponse -> f CreateProtectionGroupResponse
createProtectionGroupResponse_httpStatus = (CreateProtectionGroupResponse -> Int)
-> (CreateProtectionGroupResponse
-> Int -> CreateProtectionGroupResponse)
-> Lens
CreateProtectionGroupResponse CreateProtectionGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProtectionGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateProtectionGroupResponse' :: CreateProtectionGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateProtectionGroupResponse
s@CreateProtectionGroupResponse' {} Int
a -> CreateProtectionGroupResponse
s {$sel:httpStatus:CreateProtectionGroupResponse' :: Int
httpStatus = Int
a} :: CreateProtectionGroupResponse)
instance Prelude.NFData CreateProtectionGroupResponse