amazonka-ec2-1.6.1: 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.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 EC2 User Guide for Linux Instances .

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 # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Data CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Show CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Generic CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Associated Types

type Rep CreateSpotDatafeedSubscription :: Type -> Type #

Hashable CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

AWSRequest CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Associated Types

type Rs CreateSpotDatafeedSubscription :: Type #

ToHeaders CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

ToPath CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

ToQuery CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

NFData CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscription = D1 (MetaData "CreateSpotDatafeedSubscription" "Network.AWS.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "CreateSpotDatafeedSubscription'" PrefixI True) (S1 (MetaSel (Just "_csdsPrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_csdsDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_csdsBucket") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateSpotDatafeedSubscription # 
Instance details

Defined in Network.AWS.EC2.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 # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Data CreateSpotDatafeedSubscriptionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

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 # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Show CreateSpotDatafeedSubscriptionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

Generic CreateSpotDatafeedSubscriptionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

NFData CreateSpotDatafeedSubscriptionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscriptionResponse # 
Instance details

Defined in Network.AWS.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscriptionResponse = D1 (MetaData "CreateSpotDatafeedSubscriptionResponse" "Network.AWS.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-1.6.1-H98Zd65xIYr2z4e5UhW9ck" False) (C1 (MetaCons "CreateSpotDatafeedSubscriptionResponse'" PrefixI True) (S1 (MetaSel (Just "_csdsrsSpotDatafeedSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SpotDatafeedSubscription)) :*: S1 (MetaSel (Just "_csdsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses