Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateSpotDatafeedSubscription = CreateSpotDatafeedSubscription' {}
- newCreateSpotDatafeedSubscription :: Text -> CreateSpotDatafeedSubscription
- createSpotDatafeedSubscription_dryRun :: Lens' CreateSpotDatafeedSubscription (Maybe Bool)
- createSpotDatafeedSubscription_prefix :: Lens' CreateSpotDatafeedSubscription (Maybe Text)
- createSpotDatafeedSubscription_bucket :: Lens' CreateSpotDatafeedSubscription Text
- data CreateSpotDatafeedSubscriptionResponse = CreateSpotDatafeedSubscriptionResponse' {}
- newCreateSpotDatafeedSubscriptionResponse :: Int -> CreateSpotDatafeedSubscriptionResponse
- createSpotDatafeedSubscriptionResponse_spotDatafeedSubscription :: Lens' CreateSpotDatafeedSubscriptionResponse (Maybe SpotDatafeedSubscription)
- createSpotDatafeedSubscriptionResponse_httpStatus :: Lens' CreateSpotDatafeedSubscriptionResponse Int
Creating a Request
data CreateSpotDatafeedSubscription Source #
Contains the parameters for CreateSpotDatafeedSubscription.
See: newCreateSpotDatafeedSubscription
smart constructor.
CreateSpotDatafeedSubscription' | |
|
Instances
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_prefix :: Lens' CreateSpotDatafeedSubscription (Maybe Text) Source #
The prefix for the data feed file names.
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.
CreateSpotDatafeedSubscriptionResponse' | |
|
Instances
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
createSpotDatafeedSubscriptionResponse_spotDatafeedSubscription :: Lens' CreateSpotDatafeedSubscriptionResponse (Maybe SpotDatafeedSubscription) Source #
The Spot Instance data feed subscription.
createSpotDatafeedSubscriptionResponse_httpStatus :: Lens' CreateSpotDatafeedSubscriptionResponse Int Source #
The response's http status code.