{-# 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.Redshift.AuthorizeClusterSecurityGroupIngress
(
AuthorizeClusterSecurityGroupIngress (..),
newAuthorizeClusterSecurityGroupIngress,
authorizeClusterSecurityGroupIngress_eC2SecurityGroupOwnerId,
authorizeClusterSecurityGroupIngress_eC2SecurityGroupName,
authorizeClusterSecurityGroupIngress_cidrip,
authorizeClusterSecurityGroupIngress_clusterSecurityGroupName,
AuthorizeClusterSecurityGroupIngressResponse (..),
newAuthorizeClusterSecurityGroupIngressResponse,
authorizeClusterSecurityGroupIngressResponse_clusterSecurityGroup,
authorizeClusterSecurityGroupIngressResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data AuthorizeClusterSecurityGroupIngress = AuthorizeClusterSecurityGroupIngress'
{
AuthorizeClusterSecurityGroupIngress -> Maybe Text
eC2SecurityGroupOwnerId :: Prelude.Maybe Prelude.Text,
AuthorizeClusterSecurityGroupIngress -> Maybe Text
eC2SecurityGroupName :: Prelude.Maybe Prelude.Text,
AuthorizeClusterSecurityGroupIngress -> Maybe Text
cidrip :: Prelude.Maybe Prelude.Text,
AuthorizeClusterSecurityGroupIngress -> Text
clusterSecurityGroupName :: Prelude.Text
}
deriving (AuthorizeClusterSecurityGroupIngress
-> AuthorizeClusterSecurityGroupIngress -> Bool
(AuthorizeClusterSecurityGroupIngress
-> AuthorizeClusterSecurityGroupIngress -> Bool)
-> (AuthorizeClusterSecurityGroupIngress
-> AuthorizeClusterSecurityGroupIngress -> Bool)
-> Eq AuthorizeClusterSecurityGroupIngress
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthorizeClusterSecurityGroupIngress
-> AuthorizeClusterSecurityGroupIngress -> Bool
$c/= :: AuthorizeClusterSecurityGroupIngress
-> AuthorizeClusterSecurityGroupIngress -> Bool
== :: AuthorizeClusterSecurityGroupIngress
-> AuthorizeClusterSecurityGroupIngress -> Bool
$c== :: AuthorizeClusterSecurityGroupIngress
-> AuthorizeClusterSecurityGroupIngress -> Bool
Prelude.Eq, ReadPrec [AuthorizeClusterSecurityGroupIngress]
ReadPrec AuthorizeClusterSecurityGroupIngress
Int -> ReadS AuthorizeClusterSecurityGroupIngress
ReadS [AuthorizeClusterSecurityGroupIngress]
(Int -> ReadS AuthorizeClusterSecurityGroupIngress)
-> ReadS [AuthorizeClusterSecurityGroupIngress]
-> ReadPrec AuthorizeClusterSecurityGroupIngress
-> ReadPrec [AuthorizeClusterSecurityGroupIngress]
-> Read AuthorizeClusterSecurityGroupIngress
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthorizeClusterSecurityGroupIngress]
$creadListPrec :: ReadPrec [AuthorizeClusterSecurityGroupIngress]
readPrec :: ReadPrec AuthorizeClusterSecurityGroupIngress
$creadPrec :: ReadPrec AuthorizeClusterSecurityGroupIngress
readList :: ReadS [AuthorizeClusterSecurityGroupIngress]
$creadList :: ReadS [AuthorizeClusterSecurityGroupIngress]
readsPrec :: Int -> ReadS AuthorizeClusterSecurityGroupIngress
$creadsPrec :: Int -> ReadS AuthorizeClusterSecurityGroupIngress
Prelude.Read, Int -> AuthorizeClusterSecurityGroupIngress -> ShowS
[AuthorizeClusterSecurityGroupIngress] -> ShowS
AuthorizeClusterSecurityGroupIngress -> String
(Int -> AuthorizeClusterSecurityGroupIngress -> ShowS)
-> (AuthorizeClusterSecurityGroupIngress -> String)
-> ([AuthorizeClusterSecurityGroupIngress] -> ShowS)
-> Show AuthorizeClusterSecurityGroupIngress
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthorizeClusterSecurityGroupIngress] -> ShowS
$cshowList :: [AuthorizeClusterSecurityGroupIngress] -> ShowS
show :: AuthorizeClusterSecurityGroupIngress -> String
$cshow :: AuthorizeClusterSecurityGroupIngress -> String
showsPrec :: Int -> AuthorizeClusterSecurityGroupIngress -> ShowS
$cshowsPrec :: Int -> AuthorizeClusterSecurityGroupIngress -> ShowS
Prelude.Show, (forall x.
AuthorizeClusterSecurityGroupIngress
-> Rep AuthorizeClusterSecurityGroupIngress x)
-> (forall x.
Rep AuthorizeClusterSecurityGroupIngress x
-> AuthorizeClusterSecurityGroupIngress)
-> Generic AuthorizeClusterSecurityGroupIngress
forall x.
Rep AuthorizeClusterSecurityGroupIngress x
-> AuthorizeClusterSecurityGroupIngress
forall x.
AuthorizeClusterSecurityGroupIngress
-> Rep AuthorizeClusterSecurityGroupIngress x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AuthorizeClusterSecurityGroupIngress x
-> AuthorizeClusterSecurityGroupIngress
$cfrom :: forall x.
AuthorizeClusterSecurityGroupIngress
-> Rep AuthorizeClusterSecurityGroupIngress x
Prelude.Generic)
newAuthorizeClusterSecurityGroupIngress ::
Prelude.Text ->
AuthorizeClusterSecurityGroupIngress
newAuthorizeClusterSecurityGroupIngress :: Text -> AuthorizeClusterSecurityGroupIngress
newAuthorizeClusterSecurityGroupIngress
Text
pClusterSecurityGroupName_ =
AuthorizeClusterSecurityGroupIngress' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> AuthorizeClusterSecurityGroupIngress
AuthorizeClusterSecurityGroupIngress'
{ $sel:eC2SecurityGroupOwnerId:AuthorizeClusterSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupOwnerId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eC2SecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cidrip:AuthorizeClusterSecurityGroupIngress' :: Maybe Text
cidrip = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clusterSecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: Text
clusterSecurityGroupName =
Text
pClusterSecurityGroupName_
}
authorizeClusterSecurityGroupIngress_eC2SecurityGroupOwnerId :: Lens.Lens' AuthorizeClusterSecurityGroupIngress (Prelude.Maybe Prelude.Text)
authorizeClusterSecurityGroupIngress_eC2SecurityGroupOwnerId :: (Maybe Text -> f (Maybe Text))
-> AuthorizeClusterSecurityGroupIngress
-> f AuthorizeClusterSecurityGroupIngress
authorizeClusterSecurityGroupIngress_eC2SecurityGroupOwnerId = (AuthorizeClusterSecurityGroupIngress -> Maybe Text)
-> (AuthorizeClusterSecurityGroupIngress
-> Maybe Text -> AuthorizeClusterSecurityGroupIngress)
-> Lens
AuthorizeClusterSecurityGroupIngress
AuthorizeClusterSecurityGroupIngress
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeClusterSecurityGroupIngress' {Maybe Text
eC2SecurityGroupOwnerId :: Maybe Text
$sel:eC2SecurityGroupOwnerId:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> Maybe Text
eC2SecurityGroupOwnerId} -> Maybe Text
eC2SecurityGroupOwnerId) (\s :: AuthorizeClusterSecurityGroupIngress
s@AuthorizeClusterSecurityGroupIngress' {} Maybe Text
a -> AuthorizeClusterSecurityGroupIngress
s {$sel:eC2SecurityGroupOwnerId:AuthorizeClusterSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupOwnerId = Maybe Text
a} :: AuthorizeClusterSecurityGroupIngress)
authorizeClusterSecurityGroupIngress_eC2SecurityGroupName :: Lens.Lens' AuthorizeClusterSecurityGroupIngress (Prelude.Maybe Prelude.Text)
authorizeClusterSecurityGroupIngress_eC2SecurityGroupName :: (Maybe Text -> f (Maybe Text))
-> AuthorizeClusterSecurityGroupIngress
-> f AuthorizeClusterSecurityGroupIngress
authorizeClusterSecurityGroupIngress_eC2SecurityGroupName = (AuthorizeClusterSecurityGroupIngress -> Maybe Text)
-> (AuthorizeClusterSecurityGroupIngress
-> Maybe Text -> AuthorizeClusterSecurityGroupIngress)
-> Lens
AuthorizeClusterSecurityGroupIngress
AuthorizeClusterSecurityGroupIngress
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeClusterSecurityGroupIngress' {Maybe Text
eC2SecurityGroupName :: Maybe Text
$sel:eC2SecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> Maybe Text
eC2SecurityGroupName} -> Maybe Text
eC2SecurityGroupName) (\s :: AuthorizeClusterSecurityGroupIngress
s@AuthorizeClusterSecurityGroupIngress' {} Maybe Text
a -> AuthorizeClusterSecurityGroupIngress
s {$sel:eC2SecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: Maybe Text
eC2SecurityGroupName = Maybe Text
a} :: AuthorizeClusterSecurityGroupIngress)
authorizeClusterSecurityGroupIngress_cidrip :: Lens.Lens' AuthorizeClusterSecurityGroupIngress (Prelude.Maybe Prelude.Text)
authorizeClusterSecurityGroupIngress_cidrip :: (Maybe Text -> f (Maybe Text))
-> AuthorizeClusterSecurityGroupIngress
-> f AuthorizeClusterSecurityGroupIngress
authorizeClusterSecurityGroupIngress_cidrip = (AuthorizeClusterSecurityGroupIngress -> Maybe Text)
-> (AuthorizeClusterSecurityGroupIngress
-> Maybe Text -> AuthorizeClusterSecurityGroupIngress)
-> Lens
AuthorizeClusterSecurityGroupIngress
AuthorizeClusterSecurityGroupIngress
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeClusterSecurityGroupIngress' {Maybe Text
cidrip :: Maybe Text
$sel:cidrip:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> Maybe Text
cidrip} -> Maybe Text
cidrip) (\s :: AuthorizeClusterSecurityGroupIngress
s@AuthorizeClusterSecurityGroupIngress' {} Maybe Text
a -> AuthorizeClusterSecurityGroupIngress
s {$sel:cidrip:AuthorizeClusterSecurityGroupIngress' :: Maybe Text
cidrip = Maybe Text
a} :: AuthorizeClusterSecurityGroupIngress)
authorizeClusterSecurityGroupIngress_clusterSecurityGroupName :: Lens.Lens' AuthorizeClusterSecurityGroupIngress Prelude.Text
authorizeClusterSecurityGroupIngress_clusterSecurityGroupName :: (Text -> f Text)
-> AuthorizeClusterSecurityGroupIngress
-> f AuthorizeClusterSecurityGroupIngress
authorizeClusterSecurityGroupIngress_clusterSecurityGroupName = (AuthorizeClusterSecurityGroupIngress -> Text)
-> (AuthorizeClusterSecurityGroupIngress
-> Text -> AuthorizeClusterSecurityGroupIngress)
-> Lens
AuthorizeClusterSecurityGroupIngress
AuthorizeClusterSecurityGroupIngress
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeClusterSecurityGroupIngress' {Text
clusterSecurityGroupName :: Text
$sel:clusterSecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> Text
clusterSecurityGroupName} -> Text
clusterSecurityGroupName) (\s :: AuthorizeClusterSecurityGroupIngress
s@AuthorizeClusterSecurityGroupIngress' {} Text
a -> AuthorizeClusterSecurityGroupIngress
s {$sel:clusterSecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: Text
clusterSecurityGroupName = Text
a} :: AuthorizeClusterSecurityGroupIngress)
instance
Core.AWSRequest
AuthorizeClusterSecurityGroupIngress
where
type
AWSResponse AuthorizeClusterSecurityGroupIngress =
AuthorizeClusterSecurityGroupIngressResponse
request :: AuthorizeClusterSecurityGroupIngress
-> Request AuthorizeClusterSecurityGroupIngress
request = Service
-> AuthorizeClusterSecurityGroupIngress
-> Request AuthorizeClusterSecurityGroupIngress
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy AuthorizeClusterSecurityGroupIngress
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse AuthorizeClusterSecurityGroupIngress)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either
String (AWSResponse AuthorizeClusterSecurityGroupIngress))
-> Logger
-> Service
-> Proxy AuthorizeClusterSecurityGroupIngress
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse AuthorizeClusterSecurityGroupIngress)))
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
"AuthorizeClusterSecurityGroupIngressResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe ClusterSecurityGroup
-> Int -> AuthorizeClusterSecurityGroupIngressResponse
AuthorizeClusterSecurityGroupIngressResponse'
(Maybe ClusterSecurityGroup
-> Int -> AuthorizeClusterSecurityGroupIngressResponse)
-> Either String (Maybe ClusterSecurityGroup)
-> Either
String (Int -> AuthorizeClusterSecurityGroupIngressResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ClusterSecurityGroup)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ClusterSecurityGroup")
Either String (Int -> AuthorizeClusterSecurityGroupIngressResponse)
-> Either String Int
-> Either String AuthorizeClusterSecurityGroupIngressResponse
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
AuthorizeClusterSecurityGroupIngress
instance
Prelude.NFData
AuthorizeClusterSecurityGroupIngress
instance
Core.ToHeaders
AuthorizeClusterSecurityGroupIngress
where
toHeaders :: AuthorizeClusterSecurityGroupIngress -> ResponseHeaders
toHeaders = ResponseHeaders
-> AuthorizeClusterSecurityGroupIngress -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
AuthorizeClusterSecurityGroupIngress
where
toPath :: AuthorizeClusterSecurityGroupIngress -> ByteString
toPath = ByteString -> AuthorizeClusterSecurityGroupIngress -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
AuthorizeClusterSecurityGroupIngress
where
toQuery :: AuthorizeClusterSecurityGroupIngress -> QueryString
toQuery AuthorizeClusterSecurityGroupIngress' {Maybe Text
Text
clusterSecurityGroupName :: Text
cidrip :: Maybe Text
eC2SecurityGroupName :: Maybe Text
eC2SecurityGroupOwnerId :: Maybe Text
$sel:clusterSecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> Text
$sel:cidrip:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> Maybe Text
$sel:eC2SecurityGroupName:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> Maybe Text
$sel:eC2SecurityGroupOwnerId:AuthorizeClusterSecurityGroupIngress' :: AuthorizeClusterSecurityGroupIngress -> 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
"AuthorizeClusterSecurityGroupIngress" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
ByteString
"EC2SecurityGroupOwnerId"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
eC2SecurityGroupOwnerId,
ByteString
"EC2SecurityGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
eC2SecurityGroupName,
ByteString
"CIDRIP" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
cidrip,
ByteString
"ClusterSecurityGroupName"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
clusterSecurityGroupName
]
data AuthorizeClusterSecurityGroupIngressResponse = AuthorizeClusterSecurityGroupIngressResponse'
{ AuthorizeClusterSecurityGroupIngressResponse
-> Maybe ClusterSecurityGroup
clusterSecurityGroup :: Prelude.Maybe ClusterSecurityGroup,
AuthorizeClusterSecurityGroupIngressResponse -> Int
httpStatus :: Prelude.Int
}
deriving (AuthorizeClusterSecurityGroupIngressResponse
-> AuthorizeClusterSecurityGroupIngressResponse -> Bool
(AuthorizeClusterSecurityGroupIngressResponse
-> AuthorizeClusterSecurityGroupIngressResponse -> Bool)
-> (AuthorizeClusterSecurityGroupIngressResponse
-> AuthorizeClusterSecurityGroupIngressResponse -> Bool)
-> Eq AuthorizeClusterSecurityGroupIngressResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AuthorizeClusterSecurityGroupIngressResponse
-> AuthorizeClusterSecurityGroupIngressResponse -> Bool
$c/= :: AuthorizeClusterSecurityGroupIngressResponse
-> AuthorizeClusterSecurityGroupIngressResponse -> Bool
== :: AuthorizeClusterSecurityGroupIngressResponse
-> AuthorizeClusterSecurityGroupIngressResponse -> Bool
$c== :: AuthorizeClusterSecurityGroupIngressResponse
-> AuthorizeClusterSecurityGroupIngressResponse -> Bool
Prelude.Eq, ReadPrec [AuthorizeClusterSecurityGroupIngressResponse]
ReadPrec AuthorizeClusterSecurityGroupIngressResponse
Int -> ReadS AuthorizeClusterSecurityGroupIngressResponse
ReadS [AuthorizeClusterSecurityGroupIngressResponse]
(Int -> ReadS AuthorizeClusterSecurityGroupIngressResponse)
-> ReadS [AuthorizeClusterSecurityGroupIngressResponse]
-> ReadPrec AuthorizeClusterSecurityGroupIngressResponse
-> ReadPrec [AuthorizeClusterSecurityGroupIngressResponse]
-> Read AuthorizeClusterSecurityGroupIngressResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AuthorizeClusterSecurityGroupIngressResponse]
$creadListPrec :: ReadPrec [AuthorizeClusterSecurityGroupIngressResponse]
readPrec :: ReadPrec AuthorizeClusterSecurityGroupIngressResponse
$creadPrec :: ReadPrec AuthorizeClusterSecurityGroupIngressResponse
readList :: ReadS [AuthorizeClusterSecurityGroupIngressResponse]
$creadList :: ReadS [AuthorizeClusterSecurityGroupIngressResponse]
readsPrec :: Int -> ReadS AuthorizeClusterSecurityGroupIngressResponse
$creadsPrec :: Int -> ReadS AuthorizeClusterSecurityGroupIngressResponse
Prelude.Read, Int -> AuthorizeClusterSecurityGroupIngressResponse -> ShowS
[AuthorizeClusterSecurityGroupIngressResponse] -> ShowS
AuthorizeClusterSecurityGroupIngressResponse -> String
(Int -> AuthorizeClusterSecurityGroupIngressResponse -> ShowS)
-> (AuthorizeClusterSecurityGroupIngressResponse -> String)
-> ([AuthorizeClusterSecurityGroupIngressResponse] -> ShowS)
-> Show AuthorizeClusterSecurityGroupIngressResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AuthorizeClusterSecurityGroupIngressResponse] -> ShowS
$cshowList :: [AuthorizeClusterSecurityGroupIngressResponse] -> ShowS
show :: AuthorizeClusterSecurityGroupIngressResponse -> String
$cshow :: AuthorizeClusterSecurityGroupIngressResponse -> String
showsPrec :: Int -> AuthorizeClusterSecurityGroupIngressResponse -> ShowS
$cshowsPrec :: Int -> AuthorizeClusterSecurityGroupIngressResponse -> ShowS
Prelude.Show, (forall x.
AuthorizeClusterSecurityGroupIngressResponse
-> Rep AuthorizeClusterSecurityGroupIngressResponse x)
-> (forall x.
Rep AuthorizeClusterSecurityGroupIngressResponse x
-> AuthorizeClusterSecurityGroupIngressResponse)
-> Generic AuthorizeClusterSecurityGroupIngressResponse
forall x.
Rep AuthorizeClusterSecurityGroupIngressResponse x
-> AuthorizeClusterSecurityGroupIngressResponse
forall x.
AuthorizeClusterSecurityGroupIngressResponse
-> Rep AuthorizeClusterSecurityGroupIngressResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AuthorizeClusterSecurityGroupIngressResponse x
-> AuthorizeClusterSecurityGroupIngressResponse
$cfrom :: forall x.
AuthorizeClusterSecurityGroupIngressResponse
-> Rep AuthorizeClusterSecurityGroupIngressResponse x
Prelude.Generic)
newAuthorizeClusterSecurityGroupIngressResponse ::
Prelude.Int ->
AuthorizeClusterSecurityGroupIngressResponse
newAuthorizeClusterSecurityGroupIngressResponse :: Int -> AuthorizeClusterSecurityGroupIngressResponse
newAuthorizeClusterSecurityGroupIngressResponse
Int
pHttpStatus_ =
AuthorizeClusterSecurityGroupIngressResponse' :: Maybe ClusterSecurityGroup
-> Int -> AuthorizeClusterSecurityGroupIngressResponse
AuthorizeClusterSecurityGroupIngressResponse'
{ $sel:clusterSecurityGroup:AuthorizeClusterSecurityGroupIngressResponse' :: Maybe ClusterSecurityGroup
clusterSecurityGroup =
Maybe ClusterSecurityGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AuthorizeClusterSecurityGroupIngressResponse' :: Int
httpStatus = Int
pHttpStatus_
}
authorizeClusterSecurityGroupIngressResponse_clusterSecurityGroup :: Lens.Lens' AuthorizeClusterSecurityGroupIngressResponse (Prelude.Maybe ClusterSecurityGroup)
authorizeClusterSecurityGroupIngressResponse_clusterSecurityGroup :: (Maybe ClusterSecurityGroup -> f (Maybe ClusterSecurityGroup))
-> AuthorizeClusterSecurityGroupIngressResponse
-> f AuthorizeClusterSecurityGroupIngressResponse
authorizeClusterSecurityGroupIngressResponse_clusterSecurityGroup = (AuthorizeClusterSecurityGroupIngressResponse
-> Maybe ClusterSecurityGroup)
-> (AuthorizeClusterSecurityGroupIngressResponse
-> Maybe ClusterSecurityGroup
-> AuthorizeClusterSecurityGroupIngressResponse)
-> Lens
AuthorizeClusterSecurityGroupIngressResponse
AuthorizeClusterSecurityGroupIngressResponse
(Maybe ClusterSecurityGroup)
(Maybe ClusterSecurityGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeClusterSecurityGroupIngressResponse' {Maybe ClusterSecurityGroup
clusterSecurityGroup :: Maybe ClusterSecurityGroup
$sel:clusterSecurityGroup:AuthorizeClusterSecurityGroupIngressResponse' :: AuthorizeClusterSecurityGroupIngressResponse
-> Maybe ClusterSecurityGroup
clusterSecurityGroup} -> Maybe ClusterSecurityGroup
clusterSecurityGroup) (\s :: AuthorizeClusterSecurityGroupIngressResponse
s@AuthorizeClusterSecurityGroupIngressResponse' {} Maybe ClusterSecurityGroup
a -> AuthorizeClusterSecurityGroupIngressResponse
s {$sel:clusterSecurityGroup:AuthorizeClusterSecurityGroupIngressResponse' :: Maybe ClusterSecurityGroup
clusterSecurityGroup = Maybe ClusterSecurityGroup
a} :: AuthorizeClusterSecurityGroupIngressResponse)
authorizeClusterSecurityGroupIngressResponse_httpStatus :: Lens.Lens' AuthorizeClusterSecurityGroupIngressResponse Prelude.Int
authorizeClusterSecurityGroupIngressResponse_httpStatus :: (Int -> f Int)
-> AuthorizeClusterSecurityGroupIngressResponse
-> f AuthorizeClusterSecurityGroupIngressResponse
authorizeClusterSecurityGroupIngressResponse_httpStatus = (AuthorizeClusterSecurityGroupIngressResponse -> Int)
-> (AuthorizeClusterSecurityGroupIngressResponse
-> Int -> AuthorizeClusterSecurityGroupIngressResponse)
-> Lens
AuthorizeClusterSecurityGroupIngressResponse
AuthorizeClusterSecurityGroupIngressResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AuthorizeClusterSecurityGroupIngressResponse' {Int
httpStatus :: Int
$sel:httpStatus:AuthorizeClusterSecurityGroupIngressResponse' :: AuthorizeClusterSecurityGroupIngressResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AuthorizeClusterSecurityGroupIngressResponse
s@AuthorizeClusterSecurityGroupIngressResponse' {} Int
a -> AuthorizeClusterSecurityGroupIngressResponse
s {$sel:httpStatus:AuthorizeClusterSecurityGroupIngressResponse' :: Int
httpStatus = Int
a} :: AuthorizeClusterSecurityGroupIngressResponse)
instance
Prelude.NFData
AuthorizeClusterSecurityGroupIngressResponse