AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the CreateSpotDatafeedSubscription operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.EC2.AmazonEC2Request
      Amazon.EC2.Model.CreateSpotDatafeedSubscriptionRequest

Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public class CreateSpotDatafeedSubscriptionRequest : AmazonEC2Request
         IAmazonWebServiceRequest

The CreateSpotDatafeedSubscriptionRequest type exposes the following members

Constructors

NameDescription
Public Method CreateSpotDatafeedSubscriptionRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method CreateSpotDatafeedSubscriptionRequest(string)

Instantiates CreateSpotDatafeedSubscriptionRequest with the parameterized properties

Properties

NameTypeDescription
Public Property Bucket System.String

Gets and sets the property 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.

Public Property Prefix System.String

Gets and sets the property Prefix.

The prefix for the data feed file names.

Examples

This example creates a Spot Instance data feed for your AWS account.

To create a Spot Instance datafeed


var client = new AmazonEC2Client();
var response = client.CreateSpotDatafeedSubscription(new CreateSpotDatafeedSubscriptionRequest 
{
    Bucket = "my-s3-bucket",
    Prefix = "spotdata"
});

SpotDatafeedSubscription spotDatafeedSubscription = response.SpotDatafeedSubscription;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5