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.ExportAutoScalingGroupRecommendations

Description

Exports optimization recommendations for Auto Scaling groups.

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 Auto Scaling group export job in progress per Amazon Web Services Region.

Synopsis

Creating a Request

data ExportAutoScalingGroupRecommendations Source #

Constructors

ExportAutoScalingGroupRecommendations' 

Fields

  • accountIds :: Maybe [Text]

    The IDs of the Amazon Web Services accounts for which to export Auto Scaling group 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 [Filter]

    An array of objects to specify a filter that exports a more specific set of Auto Scaling group recommendations.

  • fieldsToExport :: Maybe [ExportableAutoScalingGroupField]

    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.

  • recommendationPreferences :: Maybe RecommendationPreferences

    An object to specify the preferences for the Auto Scaling group recommendations to export.

  • s3DestinationConfig :: S3DestinationConfig

    An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.

    You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.

Instances

Instances details
Eq ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

Read ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

Show ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

Generic ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

NFData ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

Hashable ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

ToJSON ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

AWSRequest ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

ToHeaders ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

ToPath ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

ToQuery ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

type Rep ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

type Rep ExportAutoScalingGroupRecommendations = D1 ('MetaData "ExportAutoScalingGroupRecommendations" "Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "ExportAutoScalingGroupRecommendations'" '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 [Filter])))) :*: ((S1 ('MetaSel ('Just "fieldsToExport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExportableAutoScalingGroupField])) :*: S1 ('MetaSel ('Just "includeMemberAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "recommendationPreferences") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RecommendationPreferences)) :*: S1 ('MetaSel ('Just "s3DestinationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 S3DestinationConfig)))))
type AWSResponse ExportAutoScalingGroupRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

newExportAutoScalingGroupRecommendations Source #

Create a value of ExportAutoScalingGroupRecommendations 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:ExportAutoScalingGroupRecommendations', exportAutoScalingGroupRecommendations_accountIds - The IDs of the Amazon Web Services accounts for which to export Auto Scaling group 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:ExportAutoScalingGroupRecommendations', exportAutoScalingGroupRecommendations_fileFormat - The format of the export file.

The only export file format currently supported is Csv.

$sel:filters:ExportAutoScalingGroupRecommendations', exportAutoScalingGroupRecommendations_filters - An array of objects to specify a filter that exports a more specific set of Auto Scaling group recommendations.

$sel:fieldsToExport:ExportAutoScalingGroupRecommendations', exportAutoScalingGroupRecommendations_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:ExportAutoScalingGroupRecommendations', exportAutoScalingGroupRecommendations_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:recommendationPreferences:ExportAutoScalingGroupRecommendations', exportAutoScalingGroupRecommendations_recommendationPreferences - An object to specify the preferences for the Auto Scaling group recommendations to export.

$sel:s3DestinationConfig:ExportAutoScalingGroupRecommendations', exportAutoScalingGroupRecommendations_s3DestinationConfig - An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.

You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.

Request Lenses

exportAutoScalingGroupRecommendations_accountIds :: Lens' ExportAutoScalingGroupRecommendations (Maybe [Text]) Source #

The IDs of the Amazon Web Services accounts for which to export Auto Scaling group 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.

exportAutoScalingGroupRecommendations_fileFormat :: Lens' ExportAutoScalingGroupRecommendations (Maybe FileFormat) Source #

The format of the export file.

The only export file format currently supported is Csv.

exportAutoScalingGroupRecommendations_filters :: Lens' ExportAutoScalingGroupRecommendations (Maybe [Filter]) Source #

An array of objects to specify a filter that exports a more specific set of Auto Scaling group recommendations.

exportAutoScalingGroupRecommendations_fieldsToExport :: Lens' ExportAutoScalingGroupRecommendations (Maybe [ExportableAutoScalingGroupField]) 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.

exportAutoScalingGroupRecommendations_includeMemberAccounts :: Lens' ExportAutoScalingGroupRecommendations (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.

exportAutoScalingGroupRecommendations_recommendationPreferences :: Lens' ExportAutoScalingGroupRecommendations (Maybe RecommendationPreferences) Source #

An object to specify the preferences for the Auto Scaling group recommendations to export.

exportAutoScalingGroupRecommendations_s3DestinationConfig :: Lens' ExportAutoScalingGroupRecommendations S3DestinationConfig Source #

An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job.

You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permissions policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer User Guide.

Destructuring the Response

data ExportAutoScalingGroupRecommendationsResponse Source #

Constructors

ExportAutoScalingGroupRecommendationsResponse' 

Fields

  • jobId :: Maybe Text

    The identification number of the export job.

    Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.

  • s3Destination :: Maybe S3Destination

    An object that describes the destination Amazon S3 bucket of a recommendations export file.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ExportAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

Read ExportAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

Show ExportAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

Generic ExportAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

NFData ExportAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

type Rep ExportAutoScalingGroupRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations

type Rep ExportAutoScalingGroupRecommendationsResponse = D1 ('MetaData "ExportAutoScalingGroupRecommendationsResponse" "Amazonka.ComputeOptimizer.ExportAutoScalingGroupRecommendations" "libZSservicesZSamazonka-compute-optimizerZSamazonka-compute-optimizer" 'False) (C1 ('MetaCons "ExportAutoScalingGroupRecommendationsResponse'" '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))))

newExportAutoScalingGroupRecommendationsResponse Source #

Create a value of ExportAutoScalingGroupRecommendationsResponse 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:ExportAutoScalingGroupRecommendationsResponse', exportAutoScalingGroupRecommendationsResponse_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:ExportAutoScalingGroupRecommendationsResponse', exportAutoScalingGroupRecommendationsResponse_s3Destination - An object that describes the destination Amazon S3 bucket of a recommendations export file.

$sel:httpStatus:ExportAutoScalingGroupRecommendationsResponse', exportAutoScalingGroupRecommendationsResponse_httpStatus - The response's http status code.

Response Lenses

exportAutoScalingGroupRecommendationsResponse_jobId :: Lens' ExportAutoScalingGroupRecommendationsResponse (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.

exportAutoScalingGroupRecommendationsResponse_s3Destination :: Lens' ExportAutoScalingGroupRecommendationsResponse (Maybe S3Destination) Source #

An object that describes the destination Amazon S3 bucket of a recommendations export file.