libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Description

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

Creating a Request

data ExportLambdaFunctionRecommendations Source #

Constructors

ExportLambdaFunctionRecommendations' 

Fields

  • accountIds :: Maybe [Text]

    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.

  • fileFormat :: Maybe FileFormat

    The format of the export file.

    The only export file format currently supported is Csv.

  • filters :: Maybe [LambdaFunctionRecommendationFilter]

    An array of objects to specify a filter that exports a more specific set of Lambda function recommendations.

  • fieldsToExport :: Maybe [ExportableLambdaFunctionField]

    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.

  • includeMemberAccounts :: Maybe Bool

    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.

  • s3DestinationConfig :: S3DestinationConfig
     

Instances

Instances details
Eq ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Read ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Show ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Generic ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

NFData ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Hashable ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

ToJSON ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

AWSRequest ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

ToHeaders ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

ToPath ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

ToQuery ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

type Rep ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

type Rep ExportLambdaFunctionRecommendations = D1 ('MetaData "ExportLambdaFunctionRecommendations" "Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "ExportLambdaFunctionRecommendations'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "fileFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FileFormat)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LambdaFunctionRecommendationFilter])))) :*: (S1 ('MetaSel ('Just "fieldsToExport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExportableLambdaFunctionField])) :*: (S1 ('MetaSel ('Just "includeMemberAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "s3DestinationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 S3DestinationConfig)))))
type AWSResponse ExportLambdaFunctionRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

newExportLambdaFunctionRecommendations Source #

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.

Destructuring the Response

data ExportLambdaFunctionRecommendationsResponse Source #

Constructors

ExportLambdaFunctionRecommendationsResponse' 

Fields

Instances

Instances details
Eq ExportLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Read ExportLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Show ExportLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

Generic ExportLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

NFData ExportLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

type Rep ExportLambdaFunctionRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations

type Rep ExportLambdaFunctionRecommendationsResponse = D1 ('MetaData "ExportLambdaFunctionRecommendationsResponse" "Amazonka.ComputeOptimizer.ExportLambdaFunctionRecommendations" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "ExportLambdaFunctionRecommendationsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "s3Destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe S3Destination)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newExportLambdaFunctionRecommendationsResponse Source #

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.