amazonka-ec2-1.6.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CreateVPCEndpointConnectionNotification

Contents

Description

Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide .

You can create a connection notification for interface endpoints only.

Synopsis

Creating a Request

createVPCEndpointConnectionNotification #

Creates a value of CreateVPCEndpointConnectionNotification with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cvecnClientToken - Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency .
  • cvecnServiceId - The ID of the endpoint service.
  • cvecnVPCEndpointId - The ID of the endpoint.
  • cvecnDryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .
  • cvecnConnectionNotificationARN - The ARN of the SNS topic for the notifications.
  • cvecnConnectionEvents - One or more endpoint events for which to receive notifications. Valid values are Accept , Connect , Delete , and Reject .

data CreateVPCEndpointConnectionNotification #

Instances

Eq CreateVPCEndpointConnectionNotification # 
Data CreateVPCEndpointConnectionNotification # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateVPCEndpointConnectionNotification -> c CreateVPCEndpointConnectionNotification #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateVPCEndpointConnectionNotification #

toConstr :: CreateVPCEndpointConnectionNotification -> Constr #

dataTypeOf :: CreateVPCEndpointConnectionNotification -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateVPCEndpointConnectionNotification) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateVPCEndpointConnectionNotification) #

gmapT :: (forall b. Data b => b -> b) -> CreateVPCEndpointConnectionNotification -> CreateVPCEndpointConnectionNotification #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCEndpointConnectionNotification -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCEndpointConnectionNotification -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateVPCEndpointConnectionNotification -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateVPCEndpointConnectionNotification -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateVPCEndpointConnectionNotification -> m CreateVPCEndpointConnectionNotification #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCEndpointConnectionNotification -> m CreateVPCEndpointConnectionNotification #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCEndpointConnectionNotification -> m CreateVPCEndpointConnectionNotification #

Read CreateVPCEndpointConnectionNotification # 
Show CreateVPCEndpointConnectionNotification # 
Generic CreateVPCEndpointConnectionNotification # 
Hashable CreateVPCEndpointConnectionNotification # 
NFData CreateVPCEndpointConnectionNotification # 
AWSRequest CreateVPCEndpointConnectionNotification # 
ToHeaders CreateVPCEndpointConnectionNotification # 
ToPath CreateVPCEndpointConnectionNotification # 
ToQuery CreateVPCEndpointConnectionNotification # 
type Rep CreateVPCEndpointConnectionNotification # 
type Rep CreateVPCEndpointConnectionNotification = D1 * (MetaData "CreateVPCEndpointConnectionNotification" "Network.AWS.EC2.CreateVPCEndpointConnectionNotification" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "CreateVPCEndpointConnectionNotification'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cvecnClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvecnServiceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cvecnVPCEndpointId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvecnDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvecnConnectionNotificationARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cvecnConnectionEvents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Text]))))))
type Rs CreateVPCEndpointConnectionNotification # 

Request Lenses

cvecnClientToken :: Lens' CreateVPCEndpointConnectionNotification (Maybe Text) #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see How to Ensure Idempotency .

cvecnDryRun :: Lens' CreateVPCEndpointConnectionNotification (Maybe Bool) #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation . Otherwise, it is UnauthorizedOperation .

cvecnConnectionNotificationARN :: Lens' CreateVPCEndpointConnectionNotification Text #

The ARN of the SNS topic for the notifications.

cvecnConnectionEvents :: Lens' CreateVPCEndpointConnectionNotification [Text] #

One or more endpoint events for which to receive notifications. Valid values are Accept , Connect , Delete , and Reject .

Destructuring the Response

createVPCEndpointConnectionNotificationResponse #

Creates a value of CreateVPCEndpointConnectionNotificationResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateVPCEndpointConnectionNotificationResponse #

Instances

Eq CreateVPCEndpointConnectionNotificationResponse # 
Data CreateVPCEndpointConnectionNotificationResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateVPCEndpointConnectionNotificationResponse -> c CreateVPCEndpointConnectionNotificationResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateVPCEndpointConnectionNotificationResponse #

toConstr :: CreateVPCEndpointConnectionNotificationResponse -> Constr #

dataTypeOf :: CreateVPCEndpointConnectionNotificationResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateVPCEndpointConnectionNotificationResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateVPCEndpointConnectionNotificationResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateVPCEndpointConnectionNotificationResponse -> CreateVPCEndpointConnectionNotificationResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCEndpointConnectionNotificationResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateVPCEndpointConnectionNotificationResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateVPCEndpointConnectionNotificationResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateVPCEndpointConnectionNotificationResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateVPCEndpointConnectionNotificationResponse -> m CreateVPCEndpointConnectionNotificationResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCEndpointConnectionNotificationResponse -> m CreateVPCEndpointConnectionNotificationResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateVPCEndpointConnectionNotificationResponse -> m CreateVPCEndpointConnectionNotificationResponse #

Read CreateVPCEndpointConnectionNotificationResponse # 
Show CreateVPCEndpointConnectionNotificationResponse # 
Generic CreateVPCEndpointConnectionNotificationResponse # 
NFData CreateVPCEndpointConnectionNotificationResponse # 
type Rep CreateVPCEndpointConnectionNotificationResponse # 
type Rep CreateVPCEndpointConnectionNotificationResponse = D1 * (MetaData "CreateVPCEndpointConnectionNotificationResponse" "Network.AWS.EC2.CreateVPCEndpointConnectionNotification" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "CreateVPCEndpointConnectionNotificationResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvecnrsClientToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cvecnrsConnectionNotification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ConnectionNotification))) (S1 * (MetaSel (Just Symbol "_cvecnrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

cvecnrsClientToken :: Lens' CreateVPCEndpointConnectionNotificationResponse (Maybe Text) #

Unique, case-sensitive identifier you provide to ensure the idempotency of the request.