Skip to content

Create Spot Datafeed Subscription

ec2_create_spot_datafeed_subscription R Documentation

Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs

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.

Usage

ec2_create_spot_datafeed_subscription(Bucket, DryRun, Prefix)

Arguments

Bucket

[required] 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.

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.

Prefix

The prefix for the data feed file names.

Value

A list with the following syntax:

list(
  SpotDatafeedSubscription = list(
    Bucket = "string",
    Fault = list(
      Code = "string",
      Message = "string"
    ),
    OwnerId = "string",
    Prefix = "string",
    State = "Active"|"Inactive"
  )
)

Request syntax

svc$create_spot_datafeed_subscription(
  Bucket = "string",
  DryRun = TRUE|FALSE,
  Prefix = "string"
)

Examples

## Not run: 
# This example creates a Spot Instance data feed for your AWS account.
svc$create_spot_datafeed_subscription(
  Bucket = "my-s3-bucket",
  Prefix = "spotdata"
)

## End(Not run)