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.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z
public class CreateSpotDatafeedSubscriptionRequest : AmazonEC2Request IAmazonWebServiceRequest
The CreateSpotDatafeedSubscriptionRequest type exposes the following members
Name | Description | |
---|---|---|
CreateSpotDatafeedSubscriptionRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
CreateSpotDatafeedSubscriptionRequest(string) |
Instantiates CreateSpotDatafeedSubscriptionRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
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 Bucket naming rules in the Amazon S3 User Guide. |
|
Prefix | System.String |
Gets and sets the property Prefix. The prefix for the data feed file names. |
This example creates a Spot Instance data feed for your AWS account.
var client = new AmazonEC2Client(); var response = client.CreateSpotDatafeedSubscription(new CreateSpotDatafeedSubscriptionRequest { Bucket = "my-s3-bucket", Prefix = "spotdata" }); SpotDatafeedSubscription spotDatafeedSubscription = response.SpotDatafeedSubscription;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5