ComputeOptimizer.Paginator.
DescribeRecommendationExportJobs
¶paginator = client.get_paginator('describe_recommendation_export_jobs')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from ComputeOptimizer.Client.describe_recommendation_export_jobs()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
jobIds=[
'string',
],
filters=[
{
'name': 'ResourceType'|'JobStatus',
'values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
The identification numbers of the export jobs to return.
An export job ID is returned when you create an export using the ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations actions.
All export jobs created in the last seven days are returned if this parameter is omitted.
An array of objects to specify a filter that returns a more specific list of export jobs.
Describes a filter that returns a more specific list of recommendation export jobs. Use this filter with the DescribeRecommendationExportJobs action.
You can use EBSFilter
with the GetEBSVolumeRecommendations action, LambdaFunctionRecommendationFilter
with the GetLambdaFunctionRecommendations action, and Filter
with the GetAutoScalingGroupRecommendations and GetEC2InstanceRecommendations actions.
The name of the filter.
Specify ResourceType
to return export jobs of a specific resource type (for example, Ec2Instance
).
Specify JobStatus
to return export jobs with a specific status (e.g, Complete
).
The value of the filter.
The valid values for this parameter are as follows, depending on what you specify for the name
parameter:
Ec2Instance
or AutoScalingGroup
if you specify the name
parameter as ResourceType
. There is no filter for EBS volumes because volume recommendations cannot be exported at this time.Queued
, InProgress
, Complete
, or Failed
if you specify the name
parameter as JobStatus
.A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'recommendationExportJobs': [
{
'jobId': 'string',
'destination': {
's3': {
'bucket': 'string',
'key': 'string',
'metadataKey': 'string'
}
},
'resourceType': 'Ec2Instance'|'AutoScalingGroup'|'EbsVolume'|'LambdaFunction'|'NotApplicable'|'EcsService',
'status': 'Queued'|'InProgress'|'Complete'|'Failed',
'creationTimestamp': datetime(2015, 1, 1),
'lastUpdatedTimestamp': datetime(2015, 1, 1),
'failureReason': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
recommendationExportJobs (list) --
An array of objects that describe recommendation export jobs.
(dict) --
Describes a recommendation export job.
Use the DescribeRecommendationExportJobs action to view your recommendation export jobs.
Use the ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations actions to request an export of your recommendations.
jobId (string) --
The identification number of the export job.
destination (dict) --
An object that describes the destination of the export file.
s3 (dict) --
An object that describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.
bucket (string) --
The name of the Amazon S3 bucket used as the destination of an export file.
key (string) --
The Amazon S3 bucket key of an export file.
The key uniquely identifies the object, or export file, in the S3 bucket.
metadataKey (string) --
The Amazon S3 bucket key of a metadata file.
The key uniquely identifies the object, or metadata file, in the S3 bucket.
resourceType (string) --
The resource type of the exported recommendations.
status (string) --
The status of the export job.
creationTimestamp (datetime) --
The timestamp of when the export job was created.
lastUpdatedTimestamp (datetime) --
The timestamp of when the export job was last updated.
failureReason (string) --
The reason for an export job failure.
NextToken (string) --
A token to resume pagination.