amazonka-compute-optimizer-2.0: Amazon Compute Optimizer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Description

Exports optimization recommendations for Amazon ECS services on Fargate.

Recommendations are exported in a CSV file, and its metadata in a 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 only have one Amazon ECS service export job in progress per Amazon Web Services Region.

Synopsis

Creating a Request

data ExportECSServiceRecommendations Source #

See: newExportECSServiceRecommendations smart constructor.

Constructors

ExportECSServiceRecommendations' 

Fields

  • accountIds :: Maybe [Text]

    The Amazon Web Services account IDs for the export ECS service 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.

  • fieldsToExport :: Maybe [ExportableECSServiceField]

    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.

  • fileFormat :: Maybe FileFormat

    The format of the export file.

    The CSV file is the only export file format currently supported.

  • filters :: Maybe [ECSServiceRecommendationFilter]

    An array of objects to specify a filter that exports a more specific set of ECS service recommendations.

  • includeMemberAccounts :: Maybe Bool

    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.

  • s3DestinationConfig :: S3DestinationConfig
     

Instances

Instances details
ToJSON ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

ToHeaders ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

ToPath ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

ToQuery ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

AWSRequest ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Generic ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Associated Types

type Rep ExportECSServiceRecommendations :: Type -> Type #

Read ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Show ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

NFData ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Eq ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Hashable ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

type AWSResponse ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

type Rep ExportECSServiceRecommendations Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

type Rep ExportECSServiceRecommendations = D1 ('MetaData "ExportECSServiceRecommendations" "Amazonka.ComputeOptimizer.ExportECSServiceRecommendations" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "ExportECSServiceRecommendations'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "accountIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "fieldsToExport") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExportableECSServiceField])) :*: S1 ('MetaSel ('Just "fileFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FileFormat)))) :*: (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ECSServiceRecommendationFilter])) :*: (S1 ('MetaSel ('Just "includeMemberAccounts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "s3DestinationConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 S3DestinationConfig)))))

newExportECSServiceRecommendations Source #

Create a value of ExportECSServiceRecommendations 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:ExportECSServiceRecommendations', exportECSServiceRecommendations_accountIds - The Amazon Web Services account IDs for the export ECS service 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.

$sel:fieldsToExport:ExportECSServiceRecommendations', exportECSServiceRecommendations_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:fileFormat:ExportECSServiceRecommendations', exportECSServiceRecommendations_fileFormat - The format of the export file.

The CSV file is the only export file format currently supported.

$sel:filters:ExportECSServiceRecommendations', exportECSServiceRecommendations_filters - An array of objects to specify a filter that exports a more specific set of ECS service recommendations.

$sel:includeMemberAccounts:ExportECSServiceRecommendations', exportECSServiceRecommendations_includeMemberAccounts - 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.

$sel:s3DestinationConfig:ExportECSServiceRecommendations', exportECSServiceRecommendations_s3DestinationConfig - Undocumented member.

Request Lenses

exportECSServiceRecommendations_accountIds :: Lens' ExportECSServiceRecommendations (Maybe [Text]) Source #

The Amazon Web Services account IDs for the export ECS service 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.

exportECSServiceRecommendations_fieldsToExport :: Lens' ExportECSServiceRecommendations (Maybe [ExportableECSServiceField]) 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.

exportECSServiceRecommendations_fileFormat :: Lens' ExportECSServiceRecommendations (Maybe FileFormat) Source #

The format of the export file.

The CSV file is the only export file format currently supported.

exportECSServiceRecommendations_filters :: Lens' ExportECSServiceRecommendations (Maybe [ECSServiceRecommendationFilter]) Source #

An array of objects to specify a filter that exports a more specific set of ECS service recommendations.

exportECSServiceRecommendations_includeMemberAccounts :: Lens' ExportECSServiceRecommendations (Maybe Bool) Source #

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.

Destructuring the Response

data ExportECSServiceRecommendationsResponse Source #

Constructors

ExportECSServiceRecommendationsResponse' 

Fields

Instances

Instances details
Generic ExportECSServiceRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Read ExportECSServiceRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Show ExportECSServiceRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

NFData ExportECSServiceRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

Eq ExportECSServiceRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

type Rep ExportECSServiceRecommendationsResponse Source # 
Instance details

Defined in Amazonka.ComputeOptimizer.ExportECSServiceRecommendations

type Rep ExportECSServiceRecommendationsResponse = D1 ('MetaData "ExportECSServiceRecommendationsResponse" "Amazonka.ComputeOptimizer.ExportECSServiceRecommendations" "amazonka-compute-optimizer-2.0-5JAMFRZoNrnJ0UCJqIgHbk" 'False) (C1 ('MetaCons "ExportECSServiceRecommendationsResponse'" '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))))

newExportECSServiceRecommendationsResponse Source #

Create a value of ExportECSServiceRecommendationsResponse 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:

ExportECSServiceRecommendationsResponse, exportECSServiceRecommendationsResponse_jobId - The identification number of the export job.

To view the status of an export job, use the DescribeRecommendationExportJobs action and specify the job ID.

$sel:s3Destination:ExportECSServiceRecommendationsResponse', exportECSServiceRecommendationsResponse_s3Destination - Undocumented member.

$sel:httpStatus:ExportECSServiceRecommendationsResponse', exportECSServiceRecommendationsResponse_httpStatus - The response's http status code.

Response Lenses

exportECSServiceRecommendationsResponse_jobId :: Lens' ExportECSServiceRecommendationsResponse (Maybe Text) Source #

The identification number of the export job.

To view the status of an export job, use the DescribeRecommendationExportJobs action and specify the job ID.