{-# 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.DirectConnect.DeleteDirectConnectGatewayAssociation
(
DeleteDirectConnectGatewayAssociation (..),
newDeleteDirectConnectGatewayAssociation,
deleteDirectConnectGatewayAssociation_virtualGatewayId,
deleteDirectConnectGatewayAssociation_associationId,
deleteDirectConnectGatewayAssociation_directConnectGatewayId,
DeleteDirectConnectGatewayAssociationResponse (..),
newDeleteDirectConnectGatewayAssociationResponse,
deleteDirectConnectGatewayAssociationResponse_directConnectGatewayAssociation,
deleteDirectConnectGatewayAssociationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DirectConnect.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 DeleteDirectConnectGatewayAssociation = DeleteDirectConnectGatewayAssociation'
{
DeleteDirectConnectGatewayAssociation -> Maybe Text
virtualGatewayId :: Prelude.Maybe Prelude.Text,
DeleteDirectConnectGatewayAssociation -> Maybe Text
associationId :: Prelude.Maybe Prelude.Text,
DeleteDirectConnectGatewayAssociation -> Maybe Text
directConnectGatewayId :: Prelude.Maybe Prelude.Text
}
deriving (DeleteDirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociation -> Bool
(DeleteDirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociation -> Bool)
-> (DeleteDirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociation -> Bool)
-> Eq DeleteDirectConnectGatewayAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociation -> Bool
$c/= :: DeleteDirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociation -> Bool
== :: DeleteDirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociation -> Bool
$c== :: DeleteDirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociation -> Bool
Prelude.Eq, ReadPrec [DeleteDirectConnectGatewayAssociation]
ReadPrec DeleteDirectConnectGatewayAssociation
Int -> ReadS DeleteDirectConnectGatewayAssociation
ReadS [DeleteDirectConnectGatewayAssociation]
(Int -> ReadS DeleteDirectConnectGatewayAssociation)
-> ReadS [DeleteDirectConnectGatewayAssociation]
-> ReadPrec DeleteDirectConnectGatewayAssociation
-> ReadPrec [DeleteDirectConnectGatewayAssociation]
-> Read DeleteDirectConnectGatewayAssociation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDirectConnectGatewayAssociation]
$creadListPrec :: ReadPrec [DeleteDirectConnectGatewayAssociation]
readPrec :: ReadPrec DeleteDirectConnectGatewayAssociation
$creadPrec :: ReadPrec DeleteDirectConnectGatewayAssociation
readList :: ReadS [DeleteDirectConnectGatewayAssociation]
$creadList :: ReadS [DeleteDirectConnectGatewayAssociation]
readsPrec :: Int -> ReadS DeleteDirectConnectGatewayAssociation
$creadsPrec :: Int -> ReadS DeleteDirectConnectGatewayAssociation
Prelude.Read, Int -> DeleteDirectConnectGatewayAssociation -> ShowS
[DeleteDirectConnectGatewayAssociation] -> ShowS
DeleteDirectConnectGatewayAssociation -> String
(Int -> DeleteDirectConnectGatewayAssociation -> ShowS)
-> (DeleteDirectConnectGatewayAssociation -> String)
-> ([DeleteDirectConnectGatewayAssociation] -> ShowS)
-> Show DeleteDirectConnectGatewayAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDirectConnectGatewayAssociation] -> ShowS
$cshowList :: [DeleteDirectConnectGatewayAssociation] -> ShowS
show :: DeleteDirectConnectGatewayAssociation -> String
$cshow :: DeleteDirectConnectGatewayAssociation -> String
showsPrec :: Int -> DeleteDirectConnectGatewayAssociation -> ShowS
$cshowsPrec :: Int -> DeleteDirectConnectGatewayAssociation -> ShowS
Prelude.Show, (forall x.
DeleteDirectConnectGatewayAssociation
-> Rep DeleteDirectConnectGatewayAssociation x)
-> (forall x.
Rep DeleteDirectConnectGatewayAssociation x
-> DeleteDirectConnectGatewayAssociation)
-> Generic DeleteDirectConnectGatewayAssociation
forall x.
Rep DeleteDirectConnectGatewayAssociation x
-> DeleteDirectConnectGatewayAssociation
forall x.
DeleteDirectConnectGatewayAssociation
-> Rep DeleteDirectConnectGatewayAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteDirectConnectGatewayAssociation x
-> DeleteDirectConnectGatewayAssociation
$cfrom :: forall x.
DeleteDirectConnectGatewayAssociation
-> Rep DeleteDirectConnectGatewayAssociation x
Prelude.Generic)
newDeleteDirectConnectGatewayAssociation ::
DeleteDirectConnectGatewayAssociation
newDeleteDirectConnectGatewayAssociation :: DeleteDirectConnectGatewayAssociation
newDeleteDirectConnectGatewayAssociation =
DeleteDirectConnectGatewayAssociation' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> DeleteDirectConnectGatewayAssociation
DeleteDirectConnectGatewayAssociation'
{ $sel:virtualGatewayId:DeleteDirectConnectGatewayAssociation' :: Maybe Text
virtualGatewayId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:associationId:DeleteDirectConnectGatewayAssociation' :: Maybe Text
associationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:directConnectGatewayId:DeleteDirectConnectGatewayAssociation' :: Maybe Text
directConnectGatewayId =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
deleteDirectConnectGatewayAssociation_virtualGatewayId :: Lens.Lens' DeleteDirectConnectGatewayAssociation (Prelude.Maybe Prelude.Text)
deleteDirectConnectGatewayAssociation_virtualGatewayId :: (Maybe Text -> f (Maybe Text))
-> DeleteDirectConnectGatewayAssociation
-> f DeleteDirectConnectGatewayAssociation
deleteDirectConnectGatewayAssociation_virtualGatewayId = (DeleteDirectConnectGatewayAssociation -> Maybe Text)
-> (DeleteDirectConnectGatewayAssociation
-> Maybe Text -> DeleteDirectConnectGatewayAssociation)
-> Lens
DeleteDirectConnectGatewayAssociation
DeleteDirectConnectGatewayAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDirectConnectGatewayAssociation' {Maybe Text
virtualGatewayId :: Maybe Text
$sel:virtualGatewayId:DeleteDirectConnectGatewayAssociation' :: DeleteDirectConnectGatewayAssociation -> Maybe Text
virtualGatewayId} -> Maybe Text
virtualGatewayId) (\s :: DeleteDirectConnectGatewayAssociation
s@DeleteDirectConnectGatewayAssociation' {} Maybe Text
a -> DeleteDirectConnectGatewayAssociation
s {$sel:virtualGatewayId:DeleteDirectConnectGatewayAssociation' :: Maybe Text
virtualGatewayId = Maybe Text
a} :: DeleteDirectConnectGatewayAssociation)
deleteDirectConnectGatewayAssociation_associationId :: Lens.Lens' DeleteDirectConnectGatewayAssociation (Prelude.Maybe Prelude.Text)
deleteDirectConnectGatewayAssociation_associationId :: (Maybe Text -> f (Maybe Text))
-> DeleteDirectConnectGatewayAssociation
-> f DeleteDirectConnectGatewayAssociation
deleteDirectConnectGatewayAssociation_associationId = (DeleteDirectConnectGatewayAssociation -> Maybe Text)
-> (DeleteDirectConnectGatewayAssociation
-> Maybe Text -> DeleteDirectConnectGatewayAssociation)
-> Lens
DeleteDirectConnectGatewayAssociation
DeleteDirectConnectGatewayAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDirectConnectGatewayAssociation' {Maybe Text
associationId :: Maybe Text
$sel:associationId:DeleteDirectConnectGatewayAssociation' :: DeleteDirectConnectGatewayAssociation -> Maybe Text
associationId} -> Maybe Text
associationId) (\s :: DeleteDirectConnectGatewayAssociation
s@DeleteDirectConnectGatewayAssociation' {} Maybe Text
a -> DeleteDirectConnectGatewayAssociation
s {$sel:associationId:DeleteDirectConnectGatewayAssociation' :: Maybe Text
associationId = Maybe Text
a} :: DeleteDirectConnectGatewayAssociation)
deleteDirectConnectGatewayAssociation_directConnectGatewayId :: Lens.Lens' DeleteDirectConnectGatewayAssociation (Prelude.Maybe Prelude.Text)
deleteDirectConnectGatewayAssociation_directConnectGatewayId :: (Maybe Text -> f (Maybe Text))
-> DeleteDirectConnectGatewayAssociation
-> f DeleteDirectConnectGatewayAssociation
deleteDirectConnectGatewayAssociation_directConnectGatewayId = (DeleteDirectConnectGatewayAssociation -> Maybe Text)
-> (DeleteDirectConnectGatewayAssociation
-> Maybe Text -> DeleteDirectConnectGatewayAssociation)
-> Lens
DeleteDirectConnectGatewayAssociation
DeleteDirectConnectGatewayAssociation
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDirectConnectGatewayAssociation' {Maybe Text
directConnectGatewayId :: Maybe Text
$sel:directConnectGatewayId:DeleteDirectConnectGatewayAssociation' :: DeleteDirectConnectGatewayAssociation -> Maybe Text
directConnectGatewayId} -> Maybe Text
directConnectGatewayId) (\s :: DeleteDirectConnectGatewayAssociation
s@DeleteDirectConnectGatewayAssociation' {} Maybe Text
a -> DeleteDirectConnectGatewayAssociation
s {$sel:directConnectGatewayId:DeleteDirectConnectGatewayAssociation' :: Maybe Text
directConnectGatewayId = Maybe Text
a} :: DeleteDirectConnectGatewayAssociation)
instance
Core.AWSRequest
DeleteDirectConnectGatewayAssociation
where
type
AWSResponse
DeleteDirectConnectGatewayAssociation =
DeleteDirectConnectGatewayAssociationResponse
request :: DeleteDirectConnectGatewayAssociation
-> Request DeleteDirectConnectGatewayAssociation
request = Service
-> DeleteDirectConnectGatewayAssociation
-> Request DeleteDirectConnectGatewayAssociation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteDirectConnectGatewayAssociation
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteDirectConnectGatewayAssociation)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse DeleteDirectConnectGatewayAssociation))
-> Logger
-> Service
-> Proxy DeleteDirectConnectGatewayAssociation
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DeleteDirectConnectGatewayAssociation)))
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 DirectConnectGatewayAssociation
-> Int -> DeleteDirectConnectGatewayAssociationResponse
DeleteDirectConnectGatewayAssociationResponse'
(Maybe DirectConnectGatewayAssociation
-> Int -> DeleteDirectConnectGatewayAssociationResponse)
-> Either String (Maybe DirectConnectGatewayAssociation)
-> Either
String (Int -> DeleteDirectConnectGatewayAssociationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe DirectConnectGatewayAssociation)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"directConnectGatewayAssociation")
Either
String (Int -> DeleteDirectConnectGatewayAssociationResponse)
-> Either String Int
-> Either String DeleteDirectConnectGatewayAssociationResponse
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
DeleteDirectConnectGatewayAssociation
instance
Prelude.NFData
DeleteDirectConnectGatewayAssociation
instance
Core.ToHeaders
DeleteDirectConnectGatewayAssociation
where
toHeaders :: DeleteDirectConnectGatewayAssociation -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DeleteDirectConnectGatewayAssociation -> 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
"OvertureService.DeleteDirectConnectGatewayAssociation" ::
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
DeleteDirectConnectGatewayAssociation
where
toJSON :: DeleteDirectConnectGatewayAssociation -> Value
toJSON DeleteDirectConnectGatewayAssociation' {Maybe Text
directConnectGatewayId :: Maybe Text
associationId :: Maybe Text
virtualGatewayId :: Maybe Text
$sel:directConnectGatewayId:DeleteDirectConnectGatewayAssociation' :: DeleteDirectConnectGatewayAssociation -> Maybe Text
$sel:associationId:DeleteDirectConnectGatewayAssociation' :: DeleteDirectConnectGatewayAssociation -> Maybe Text
$sel:virtualGatewayId:DeleteDirectConnectGatewayAssociation' :: DeleteDirectConnectGatewayAssociation -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"virtualGatewayId" 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
virtualGatewayId,
(Text
"associationId" 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
associationId,
(Text
"directConnectGatewayId" 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
directConnectGatewayId
]
)
instance
Core.ToPath
DeleteDirectConnectGatewayAssociation
where
toPath :: DeleteDirectConnectGatewayAssociation -> ByteString
toPath = ByteString -> DeleteDirectConnectGatewayAssociation -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DeleteDirectConnectGatewayAssociation
where
toQuery :: DeleteDirectConnectGatewayAssociation -> QueryString
toQuery = QueryString -> DeleteDirectConnectGatewayAssociation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DeleteDirectConnectGatewayAssociationResponse = DeleteDirectConnectGatewayAssociationResponse'
{
DeleteDirectConnectGatewayAssociationResponse
-> Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation :: Prelude.Maybe DirectConnectGatewayAssociation,
DeleteDirectConnectGatewayAssociationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DeleteDirectConnectGatewayAssociationResponse
-> DeleteDirectConnectGatewayAssociationResponse -> Bool
(DeleteDirectConnectGatewayAssociationResponse
-> DeleteDirectConnectGatewayAssociationResponse -> Bool)
-> (DeleteDirectConnectGatewayAssociationResponse
-> DeleteDirectConnectGatewayAssociationResponse -> Bool)
-> Eq DeleteDirectConnectGatewayAssociationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteDirectConnectGatewayAssociationResponse
-> DeleteDirectConnectGatewayAssociationResponse -> Bool
$c/= :: DeleteDirectConnectGatewayAssociationResponse
-> DeleteDirectConnectGatewayAssociationResponse -> Bool
== :: DeleteDirectConnectGatewayAssociationResponse
-> DeleteDirectConnectGatewayAssociationResponse -> Bool
$c== :: DeleteDirectConnectGatewayAssociationResponse
-> DeleteDirectConnectGatewayAssociationResponse -> Bool
Prelude.Eq, ReadPrec [DeleteDirectConnectGatewayAssociationResponse]
ReadPrec DeleteDirectConnectGatewayAssociationResponse
Int -> ReadS DeleteDirectConnectGatewayAssociationResponse
ReadS [DeleteDirectConnectGatewayAssociationResponse]
(Int -> ReadS DeleteDirectConnectGatewayAssociationResponse)
-> ReadS [DeleteDirectConnectGatewayAssociationResponse]
-> ReadPrec DeleteDirectConnectGatewayAssociationResponse
-> ReadPrec [DeleteDirectConnectGatewayAssociationResponse]
-> Read DeleteDirectConnectGatewayAssociationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteDirectConnectGatewayAssociationResponse]
$creadListPrec :: ReadPrec [DeleteDirectConnectGatewayAssociationResponse]
readPrec :: ReadPrec DeleteDirectConnectGatewayAssociationResponse
$creadPrec :: ReadPrec DeleteDirectConnectGatewayAssociationResponse
readList :: ReadS [DeleteDirectConnectGatewayAssociationResponse]
$creadList :: ReadS [DeleteDirectConnectGatewayAssociationResponse]
readsPrec :: Int -> ReadS DeleteDirectConnectGatewayAssociationResponse
$creadsPrec :: Int -> ReadS DeleteDirectConnectGatewayAssociationResponse
Prelude.Read, Int -> DeleteDirectConnectGatewayAssociationResponse -> ShowS
[DeleteDirectConnectGatewayAssociationResponse] -> ShowS
DeleteDirectConnectGatewayAssociationResponse -> String
(Int -> DeleteDirectConnectGatewayAssociationResponse -> ShowS)
-> (DeleteDirectConnectGatewayAssociationResponse -> String)
-> ([DeleteDirectConnectGatewayAssociationResponse] -> ShowS)
-> Show DeleteDirectConnectGatewayAssociationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteDirectConnectGatewayAssociationResponse] -> ShowS
$cshowList :: [DeleteDirectConnectGatewayAssociationResponse] -> ShowS
show :: DeleteDirectConnectGatewayAssociationResponse -> String
$cshow :: DeleteDirectConnectGatewayAssociationResponse -> String
showsPrec :: Int -> DeleteDirectConnectGatewayAssociationResponse -> ShowS
$cshowsPrec :: Int -> DeleteDirectConnectGatewayAssociationResponse -> ShowS
Prelude.Show, (forall x.
DeleteDirectConnectGatewayAssociationResponse
-> Rep DeleteDirectConnectGatewayAssociationResponse x)
-> (forall x.
Rep DeleteDirectConnectGatewayAssociationResponse x
-> DeleteDirectConnectGatewayAssociationResponse)
-> Generic DeleteDirectConnectGatewayAssociationResponse
forall x.
Rep DeleteDirectConnectGatewayAssociationResponse x
-> DeleteDirectConnectGatewayAssociationResponse
forall x.
DeleteDirectConnectGatewayAssociationResponse
-> Rep DeleteDirectConnectGatewayAssociationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteDirectConnectGatewayAssociationResponse x
-> DeleteDirectConnectGatewayAssociationResponse
$cfrom :: forall x.
DeleteDirectConnectGatewayAssociationResponse
-> Rep DeleteDirectConnectGatewayAssociationResponse x
Prelude.Generic)
newDeleteDirectConnectGatewayAssociationResponse ::
Prelude.Int ->
DeleteDirectConnectGatewayAssociationResponse
newDeleteDirectConnectGatewayAssociationResponse :: Int -> DeleteDirectConnectGatewayAssociationResponse
newDeleteDirectConnectGatewayAssociationResponse
Int
pHttpStatus_ =
DeleteDirectConnectGatewayAssociationResponse' :: Maybe DirectConnectGatewayAssociation
-> Int -> DeleteDirectConnectGatewayAssociationResponse
DeleteDirectConnectGatewayAssociationResponse'
{ $sel:directConnectGatewayAssociation:DeleteDirectConnectGatewayAssociationResponse' :: Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation =
Maybe DirectConnectGatewayAssociation
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DeleteDirectConnectGatewayAssociationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
deleteDirectConnectGatewayAssociationResponse_directConnectGatewayAssociation :: Lens.Lens' DeleteDirectConnectGatewayAssociationResponse (Prelude.Maybe DirectConnectGatewayAssociation)
deleteDirectConnectGatewayAssociationResponse_directConnectGatewayAssociation :: (Maybe DirectConnectGatewayAssociation
-> f (Maybe DirectConnectGatewayAssociation))
-> DeleteDirectConnectGatewayAssociationResponse
-> f DeleteDirectConnectGatewayAssociationResponse
deleteDirectConnectGatewayAssociationResponse_directConnectGatewayAssociation = (DeleteDirectConnectGatewayAssociationResponse
-> Maybe DirectConnectGatewayAssociation)
-> (DeleteDirectConnectGatewayAssociationResponse
-> Maybe DirectConnectGatewayAssociation
-> DeleteDirectConnectGatewayAssociationResponse)
-> Lens
DeleteDirectConnectGatewayAssociationResponse
DeleteDirectConnectGatewayAssociationResponse
(Maybe DirectConnectGatewayAssociation)
(Maybe DirectConnectGatewayAssociation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDirectConnectGatewayAssociationResponse' {Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation :: Maybe DirectConnectGatewayAssociation
$sel:directConnectGatewayAssociation:DeleteDirectConnectGatewayAssociationResponse' :: DeleteDirectConnectGatewayAssociationResponse
-> Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation} -> Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation) (\s :: DeleteDirectConnectGatewayAssociationResponse
s@DeleteDirectConnectGatewayAssociationResponse' {} Maybe DirectConnectGatewayAssociation
a -> DeleteDirectConnectGatewayAssociationResponse
s {$sel:directConnectGatewayAssociation:DeleteDirectConnectGatewayAssociationResponse' :: Maybe DirectConnectGatewayAssociation
directConnectGatewayAssociation = Maybe DirectConnectGatewayAssociation
a} :: DeleteDirectConnectGatewayAssociationResponse)
deleteDirectConnectGatewayAssociationResponse_httpStatus :: Lens.Lens' DeleteDirectConnectGatewayAssociationResponse Prelude.Int
deleteDirectConnectGatewayAssociationResponse_httpStatus :: (Int -> f Int)
-> DeleteDirectConnectGatewayAssociationResponse
-> f DeleteDirectConnectGatewayAssociationResponse
deleteDirectConnectGatewayAssociationResponse_httpStatus = (DeleteDirectConnectGatewayAssociationResponse -> Int)
-> (DeleteDirectConnectGatewayAssociationResponse
-> Int -> DeleteDirectConnectGatewayAssociationResponse)
-> Lens
DeleteDirectConnectGatewayAssociationResponse
DeleteDirectConnectGatewayAssociationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteDirectConnectGatewayAssociationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteDirectConnectGatewayAssociationResponse' :: DeleteDirectConnectGatewayAssociationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteDirectConnectGatewayAssociationResponse
s@DeleteDirectConnectGatewayAssociationResponse' {} Int
a -> DeleteDirectConnectGatewayAssociationResponse
s {$sel:httpStatus:DeleteDirectConnectGatewayAssociationResponse' :: Int
httpStatus = Int
a} :: DeleteDirectConnectGatewayAssociationResponse)
instance
Prelude.NFData
DeleteDirectConnectGatewayAssociationResponse