describe_spot_datafeed_subscription
(**kwargs)¶Describes the data feed for Spot Instances. For more information, see Spot Instance data feed in the Amazon EC2 User Guide for Linux Instances .
See also: AWS API Documentation
Request Syntax
response = client.describe_spot_datafeed_subscription(
DryRun=True|False
)
DryRunOperation
. Otherwise, it is UnauthorizedOperation
.{
'SpotDatafeedSubscription': {
'Bucket': 'string',
'Fault': {
'Code': 'string',
'Message': 'string'
},
'OwnerId': 'string',
'Prefix': 'string',
'State': 'Active'|'Inactive'
}
}
Response Structure
Contains the output of DescribeSpotDatafeedSubscription.
The Spot Instance data feed subscription.
The name of the Amazon S3 bucket where the Spot Instance data feed is located.
The fault codes for the Spot Instance request, if any.
The reason code for the Spot Instance state change.
The message for the Spot Instance state change.
The Amazon Web Services account ID of the account.
The prefix for the data feed files.
The state of the Spot Instance data feed subscription.
Examples
This example describes the Spot Instance datafeed subscription for your AWS account.
response = client.describe_spot_datafeed_subscription(
)
print(response)
Expected Output:
{
'SpotDatafeedSubscription': {
'Bucket': 'my-s3-bucket',
'OwnerId': '123456789012',
'Prefix': 'spotdata',
'State': 'Active',
},
'ResponseMetadata': {
'...': '...',
},
}