paws.compute (version 0.1.0)

ec2_create_spot_datafeed_subscription: 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 AWS account. For more information, see Spot Instance Data Feed in the Amazon EC2 User Guide for Linux Instances.

Usage

ec2_create_spot_datafeed_subscription(Bucket, DryRun, Prefix)

Arguments

Bucket

[required] The Amazon S3 bucket in which to store the Spot Instance data feed.

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

A prefix for the data feed file names.

Request syntax

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

Examples

Run this code
# NOT RUN {
# This example creates a Spot Instance data feed for your AWS account.
# }
# NOT RUN {
svc$create_spot_datafeed_subscription(
  Bucket = "my-s3-bucket",
  Prefix = "spotdata"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace