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

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

Network.AWS.EC2.CreateSpotDatafeedSubscription

Contents

Description

Creates a data feed for Spot instances, enabling you to view Spot instance usage logs. You can create one data feed per AWS account. For more information, see Spot Instance Data Feed in the Amazon Elastic Compute Cloud User Guide .

Synopsis

Creating a Request

createSpotDatafeedSubscription #

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

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

  • csdsPrefix - A prefix for the data feed file names.
  • csdsDryRun - 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 .
  • csdsBucket - The Amazon S3 bucket in which to store the Spot instance data feed.

data CreateSpotDatafeedSubscription #

Contains the parameters for CreateSpotDatafeedSubscription.

See: createSpotDatafeedSubscription smart constructor.

Instances

Eq CreateSpotDatafeedSubscription # 
Data CreateSpotDatafeedSubscription # 

Methods

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

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

toConstr :: CreateSpotDatafeedSubscription -> Constr #

dataTypeOf :: CreateSpotDatafeedSubscription -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSpotDatafeedSubscription # 
Show CreateSpotDatafeedSubscription # 
Generic CreateSpotDatafeedSubscription # 
Hashable CreateSpotDatafeedSubscription # 
NFData CreateSpotDatafeedSubscription # 
AWSRequest CreateSpotDatafeedSubscription # 
ToQuery CreateSpotDatafeedSubscription # 
ToPath CreateSpotDatafeedSubscription # 
ToHeaders CreateSpotDatafeedSubscription # 
type Rep CreateSpotDatafeedSubscription # 
type Rep CreateSpotDatafeedSubscription = D1 (MetaData "CreateSpotDatafeedSubscription" "Network.AWS.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateSpotDatafeedSubscription'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csdsPrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_csdsDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_csdsBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs CreateSpotDatafeedSubscription # 

Request Lenses

csdsPrefix :: Lens' CreateSpotDatafeedSubscription (Maybe Text) #

A prefix for the data feed file names.

csdsDryRun :: Lens' CreateSpotDatafeedSubscription (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 .

csdsBucket :: Lens' CreateSpotDatafeedSubscription Text #

The Amazon S3 bucket in which to store the Spot instance data feed.

Destructuring the Response

createSpotDatafeedSubscriptionResponse #

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

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

data CreateSpotDatafeedSubscriptionResponse #

Contains the output of CreateSpotDatafeedSubscription.

See: createSpotDatafeedSubscriptionResponse smart constructor.

Instances

Eq CreateSpotDatafeedSubscriptionResponse # 
Data CreateSpotDatafeedSubscriptionResponse # 

Methods

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

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

toConstr :: CreateSpotDatafeedSubscriptionResponse -> Constr #

dataTypeOf :: CreateSpotDatafeedSubscriptionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateSpotDatafeedSubscriptionResponse # 
Show CreateSpotDatafeedSubscriptionResponse # 
Generic CreateSpotDatafeedSubscriptionResponse # 
NFData CreateSpotDatafeedSubscriptionResponse # 
type Rep CreateSpotDatafeedSubscriptionResponse # 
type Rep CreateSpotDatafeedSubscriptionResponse = D1 (MetaData "CreateSpotDatafeedSubscriptionResponse" "Network.AWS.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-1.4.5-C4CR35JggG2GhWFrIiKGhu" False) (C1 (MetaCons "CreateSpotDatafeedSubscriptionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csdsrsSpotDatafeedSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SpotDatafeedSubscription))) (S1 (MetaSel (Just Symbol "_csdsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses