amazonka-ec2-1.4.1: 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 Source #

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:

data CreateSpotDatafeedSubscription Source #

Contains the parameters for CreateSpotDatafeedSubscription.

See: createSpotDatafeedSubscription smart constructor.

Instances

Eq CreateSpotDatafeedSubscription Source # 
Data CreateSpotDatafeedSubscription Source # 

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 Source # 
Show CreateSpotDatafeedSubscription Source # 
Generic CreateSpotDatafeedSubscription Source # 
Hashable CreateSpotDatafeedSubscription Source # 
NFData CreateSpotDatafeedSubscription Source # 
AWSRequest CreateSpotDatafeedSubscription Source # 
ToQuery CreateSpotDatafeedSubscription Source # 
ToPath CreateSpotDatafeedSubscription Source # 
ToHeaders CreateSpotDatafeedSubscription Source # 
type Rep CreateSpotDatafeedSubscription Source # 
type Rep CreateSpotDatafeedSubscription = D1 (MetaData "CreateSpotDatafeedSubscription" "Network.AWS.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-1.4.1-5DlWz6no0BoLQhxZVyzMyd" 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 Source # 

Request Lenses

csdsPrefix :: Lens' CreateSpotDatafeedSubscription (Maybe Text) Source #

A prefix for the data feed file names.

csdsDryRun :: Lens' CreateSpotDatafeedSubscription (Maybe Bool) Source #

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 Source #

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

Destructuring the Response

createSpotDatafeedSubscriptionResponse Source #

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 Source #

Contains the output of CreateSpotDatafeedSubscription.

See: createSpotDatafeedSubscriptionResponse smart constructor.

Instances

Eq CreateSpotDatafeedSubscriptionResponse Source # 
Data CreateSpotDatafeedSubscriptionResponse Source # 

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 Source # 
Show CreateSpotDatafeedSubscriptionResponse Source # 
Generic CreateSpotDatafeedSubscriptionResponse Source # 
NFData CreateSpotDatafeedSubscriptionResponse Source # 
type Rep CreateSpotDatafeedSubscriptionResponse Source # 
type Rep CreateSpotDatafeedSubscriptionResponse = D1 (MetaData "CreateSpotDatafeedSubscriptionResponse" "Network.AWS.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-1.4.1-5DlWz6no0BoLQhxZVyzMyd" False) (C1 (MetaCons "CreateSpotDatafeedSubscriptionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csdsrsSpotDatafeedSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SpotDatafeedSubscription))) (S1 (MetaSel (Just Symbol "_csdsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses