export_idle_recommendations
async
¶
export_idle_recommendations(
s3_destination_config: S3DestinationConfig,
*,
config_overrides: Optional[AsyncComputeOptimizerClientConfig] = None,
account_ids: Optional[AccountIds] = None,
filters: Optional[IdleRecommendationFilters] = None,
fields_to_export: Optional[ExportableIdleFields] = None,
file_format: Optional[FileFormat] = None,
include_member_accounts: Optional[IncludeMemberAccounts] = None,
) -> ExportIdleRecommendationsResponse
Export optimization recommendations for your idle resources.
Recommendations are exported in a comma-separated values (CSV) file, and its metadata in a JavaScript Object Notation (JSON) file, to an existing Amazon Simple Storage Service (Amazon S3) bucket that you specify. For more information, see Exporting Recommendations in the Compute Optimizer User Guide.
You can have only one idle resource export job in progress per Amazon Web Services Region.
Parameters:
-
account_ids(Optional[AccountIds], default:None) –The Amazon Web Services account IDs for the export idle resource recommendations.
If your account is the management account or the delegated administrator of an organization, use this parameter to specify the member account you want to export recommendations to.
This parameter can't be specified together with the include member accounts parameter. The parameters are mutually exclusive.
If this parameter or the include member accounts parameter is omitted, the recommendations for member accounts aren't included in the export.
You can specify multiple account IDs per request.
-
filters(Optional[IdleRecommendationFilters], default:None) –An array of objects to specify a filter that exports a more specific set of idle resource recommendations.
-
fields_to_export(Optional[ExportableIdleFields], default:None) –The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
-
file_format(Optional[FileFormat], default:None) –The format of the export file. The CSV file is the only export file format currently supported.
-
include_member_accounts(Optional[IncludeMemberAccounts], default:None) –If your account is the management account or the delegated administrator of an organization, this parameter indicates whether to include recommendations for resources in all member accounts of the organization.
The member accounts must also be opted in to Compute Optimizer, and trusted access for Compute Optimizer must be enabled in the organization account. For more information, see Compute Optimizer and Amazon Web Services Organizations trusted access in the Compute Optimizer User Guide.
If this parameter is omitted, recommendations for member accounts of the organization aren't included in the export file.
If this parameter or the account ID parameter is omitted, recommendations for member accounts aren't included in the export.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–An internal error has occurred. Try your call again.
-
InvalidParameterValueException–The value supplied for the input parameter is out of range or not valid.
-
LimitExceededException–The request exceeds a limit of the service.
-
MissingAuthenticationToken–The request must contain either a valid (registered) Amazon Web Services access key ID or X.509 certificate.
-
OptInRequiredException–The account is not opted in to Compute Optimizer.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the server.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer/_services/async_compute_optimizer.py
750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 | |