Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Exports optimization recommendations for Lambda functions.
Recommendations are exported in a comma-separated values (.csv) file, and its metadata in a JavaScript Object Notation (JSON) (.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 Lambda function export job in progress per Amazon Web Services Region.
Synopsis
- data ExportLambdaFunctionRecommendations = ExportLambdaFunctionRecommendations' {}
- newExportLambdaFunctionRecommendations :: S3DestinationConfig -> ExportLambdaFunctionRecommendations
- exportLambdaFunctionRecommendations_accountIds :: Lens' ExportLambdaFunctionRecommendations (Maybe [Text])
- exportLambdaFunctionRecommendations_fileFormat :: Lens' ExportLambdaFunctionRecommendations (Maybe FileFormat)
- exportLambdaFunctionRecommendations_filters :: Lens' ExportLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter])
- exportLambdaFunctionRecommendations_fieldsToExport :: Lens' ExportLambdaFunctionRecommendations (Maybe [ExportableLambdaFunctionField])
- exportLambdaFunctionRecommendations_includeMemberAccounts :: Lens' ExportLambdaFunctionRecommendations (Maybe Bool)
- exportLambdaFunctionRecommendations_s3DestinationConfig :: Lens' ExportLambdaFunctionRecommendations S3DestinationConfig
- data ExportLambdaFunctionRecommendationsResponse = ExportLambdaFunctionRecommendationsResponse' {}
- newExportLambdaFunctionRecommendationsResponse :: Int -> ExportLambdaFunctionRecommendationsResponse
- exportLambdaFunctionRecommendationsResponse_jobId :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe Text)
- exportLambdaFunctionRecommendationsResponse_s3Destination :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe S3Destination)
- exportLambdaFunctionRecommendationsResponse_httpStatus :: Lens' ExportLambdaFunctionRecommendationsResponse Int
Creating a Request
data ExportLambdaFunctionRecommendations Source #
See: newExportLambdaFunctionRecommendations
smart constructor.
ExportLambdaFunctionRecommendations' | |
|
Instances
newExportLambdaFunctionRecommendations Source #
:: S3DestinationConfig |
|
-> ExportLambdaFunctionRecommendations |
Create a value of ExportLambdaFunctionRecommendations
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountIds:ExportLambdaFunctionRecommendations'
, exportLambdaFunctionRecommendations_accountIds
- The IDs of the Amazon Web Services accounts for which to export Lambda
function recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
$sel:fileFormat:ExportLambdaFunctionRecommendations'
, exportLambdaFunctionRecommendations_fileFormat
- The format of the export file.
The only export file format currently supported is Csv
.
$sel:filters:ExportLambdaFunctionRecommendations'
, exportLambdaFunctionRecommendations_filters
- An array of objects to specify a filter that exports a more specific set
of Lambda function recommendations.
$sel:fieldsToExport:ExportLambdaFunctionRecommendations'
, exportLambdaFunctionRecommendations_fieldsToExport
- 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.
$sel:includeMemberAccounts:ExportLambdaFunctionRecommendations'
, exportLambdaFunctionRecommendations_includeMemberAccounts
- Indicates whether to include recommendations for resources in all member
accounts of the organization if your account is the management account
of an 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.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
$sel:s3DestinationConfig:ExportLambdaFunctionRecommendations'
, exportLambdaFunctionRecommendations_s3DestinationConfig
- Undocumented member.
Request Lenses
exportLambdaFunctionRecommendations_accountIds :: Lens' ExportLambdaFunctionRecommendations (Maybe [Text]) Source #
The IDs of the Amazon Web Services accounts for which to export Lambda function recommendations.
If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations.
This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted.
You can specify multiple account IDs per request.
exportLambdaFunctionRecommendations_fileFormat :: Lens' ExportLambdaFunctionRecommendations (Maybe FileFormat) Source #
The format of the export file.
The only export file format currently supported is Csv
.
exportLambdaFunctionRecommendations_filters :: Lens' ExportLambdaFunctionRecommendations (Maybe [LambdaFunctionRecommendationFilter]) Source #
An array of objects to specify a filter that exports a more specific set of Lambda function recommendations.
exportLambdaFunctionRecommendations_fieldsToExport :: Lens' ExportLambdaFunctionRecommendations (Maybe [ExportableLambdaFunctionField]) Source #
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.
exportLambdaFunctionRecommendations_includeMemberAccounts :: Lens' ExportLambdaFunctionRecommendations (Maybe Bool) Source #
Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an 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.
Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted.
This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive.
Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
exportLambdaFunctionRecommendations_s3DestinationConfig :: Lens' ExportLambdaFunctionRecommendations S3DestinationConfig Source #
Undocumented member.
Destructuring the Response
data ExportLambdaFunctionRecommendationsResponse Source #
See: newExportLambdaFunctionRecommendationsResponse
smart constructor.
ExportLambdaFunctionRecommendationsResponse' | |
|
Instances
newExportLambdaFunctionRecommendationsResponse Source #
:: Int |
|
-> ExportLambdaFunctionRecommendationsResponse |
Create a value of ExportLambdaFunctionRecommendationsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:jobId:ExportLambdaFunctionRecommendationsResponse'
, exportLambdaFunctionRecommendationsResponse_jobId
- The identification number of the export job.
Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.
$sel:s3Destination:ExportLambdaFunctionRecommendationsResponse'
, exportLambdaFunctionRecommendationsResponse_s3Destination
- Undocumented member.
$sel:httpStatus:ExportLambdaFunctionRecommendationsResponse'
, exportLambdaFunctionRecommendationsResponse_httpStatus
- The response's http status code.
Response Lenses
exportLambdaFunctionRecommendationsResponse_jobId :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe Text) Source #
The identification number of the export job.
Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.
exportLambdaFunctionRecommendationsResponse_s3Destination :: Lens' ExportLambdaFunctionRecommendationsResponse (Maybe S3Destination) Source #
Undocumented member.
exportLambdaFunctionRecommendationsResponse_httpStatus :: Lens' ExportLambdaFunctionRecommendationsResponse Int Source #
The response's http status code.