amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.CreateSpotDatafeedSubscription

Description

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide for Linux Instances.

Synopsis

Creating a Request

data CreateSpotDatafeedSubscription Source #

Contains the parameters for CreateSpotDatafeedSubscription.

See: newCreateSpotDatafeedSubscription smart constructor.

Constructors

CreateSpotDatafeedSubscription' 

Fields

  • dryRun :: 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.

  • prefix :: Maybe Text

    The prefix for the data feed file names.

  • bucket :: Text

    The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see Rules for bucket naming in the Amazon S3 Developer Guide.

Instances

Instances details
ToHeaders CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

ToPath CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

ToQuery CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

AWSRequest CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Generic CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Associated Types

type Rep CreateSpotDatafeedSubscription :: Type -> Type #

Read CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Show CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

NFData CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Eq CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Hashable CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

type AWSResponse CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscription Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscription = D1 ('MetaData "CreateSpotDatafeedSubscription" "Amazonka.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateSpotDatafeedSubscription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "prefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateSpotDatafeedSubscription Source #

Create a value of CreateSpotDatafeedSubscription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dryRun:CreateSpotDatafeedSubscription', createSpotDatafeedSubscription_dryRun - 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.

CreateSpotDatafeedSubscription, createSpotDatafeedSubscription_prefix - The prefix for the data feed file names.

CreateSpotDatafeedSubscription, createSpotDatafeedSubscription_bucket - The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see Rules for bucket naming in the Amazon S3 Developer Guide.

Request Lenses

createSpotDatafeedSubscription_dryRun :: 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.

createSpotDatafeedSubscription_bucket :: Lens' CreateSpotDatafeedSubscription Text Source #

The name of the Amazon S3 bucket in which to store the Spot Instance data feed. For more information about bucket names, see Rules for bucket naming in the Amazon S3 Developer Guide.

Destructuring the Response

data CreateSpotDatafeedSubscriptionResponse Source #

Contains the output of CreateSpotDatafeedSubscription.

See: newCreateSpotDatafeedSubscriptionResponse smart constructor.

Constructors

CreateSpotDatafeedSubscriptionResponse' 

Fields

Instances

Instances details
Generic CreateSpotDatafeedSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Read CreateSpotDatafeedSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Show CreateSpotDatafeedSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

NFData CreateSpotDatafeedSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

Eq CreateSpotDatafeedSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscriptionResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateSpotDatafeedSubscription

type Rep CreateSpotDatafeedSubscriptionResponse = D1 ('MetaData "CreateSpotDatafeedSubscriptionResponse" "Amazonka.EC2.CreateSpotDatafeedSubscription" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateSpotDatafeedSubscriptionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "spotDatafeedSubscription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SpotDatafeedSubscription)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateSpotDatafeedSubscriptionResponse Source #

Create a value of CreateSpotDatafeedSubscriptionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:spotDatafeedSubscription:CreateSpotDatafeedSubscriptionResponse', createSpotDatafeedSubscriptionResponse_spotDatafeedSubscription - The Spot Instance data feed subscription.

$sel:httpStatus:CreateSpotDatafeedSubscriptionResponse', createSpotDatafeedSubscriptionResponse_httpStatus - The response's http status code.

Response Lenses