amazonka-forecast-2.0: Amazon Forecast Service 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.Forecast.CreateWhatIfForecastExport

Description

Exports a forecast created by the CreateWhatIfForecast operation to your Amazon Simple Storage Service (Amazon S3) bucket. The forecast file name will match the following conventions:

≈<ForecastExportJobName>_<ExportTimestamp>_<PartNumber>

The <ExportTimestamp> component is in Java SimpleDateFormat (yyyy-MM-ddTHH-mm-ssZ).

You must specify a DataDestination object that includes an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see aws-forecast-iam-roles.

For more information, see howitworks-forecast.

To get a list of all your what-if forecast export jobs, use the ListWhatIfForecastExports operation.

The Status of the forecast export job must be ACTIVE before you can access the forecast in your Amazon S3 bucket. To get the status, use the DescribeWhatIfForecastExport operation.

Synopsis

Creating a Request

data CreateWhatIfForecastExport Source #

See: newCreateWhatIfForecastExport smart constructor.

Constructors

CreateWhatIfForecastExport' 

Fields

  • format :: Maybe Text

    The format of the exported data, CSV or PARQUET.

  • tags :: Maybe [Tag]

    A list of tags to apply to the what if forecast.

  • whatIfForecastExportName :: Text

    The name of the what-if forecast to export.

  • whatIfForecastArns :: NonEmpty Text

    The list of what-if forecast Amazon Resource Names (ARNs) to export.

  • destination :: DataDestination

    The location where you want to save the forecast and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the location. The forecast must be exported to an Amazon S3 bucket.

    If encryption is used, Destination must include an AWS Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key.

Instances

Instances details
ToJSON CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

ToHeaders CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

ToPath CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

ToQuery CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

AWSRequest CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

Generic CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

Associated Types

type Rep CreateWhatIfForecastExport :: Type -> Type #

Show CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

NFData CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

Eq CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

Hashable CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

type AWSResponse CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

type Rep CreateWhatIfForecastExport Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

type Rep CreateWhatIfForecastExport = D1 ('MetaData "CreateWhatIfForecastExport" "Amazonka.Forecast.CreateWhatIfForecastExport" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "CreateWhatIfForecastExport'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "format") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "whatIfForecastExportName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "whatIfForecastArns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)) :*: S1 ('MetaSel ('Just "destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DataDestination)))))

newCreateWhatIfForecastExport Source #

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

CreateWhatIfForecastExport, createWhatIfForecastExport_format - The format of the exported data, CSV or PARQUET.

$sel:tags:CreateWhatIfForecastExport', createWhatIfForecastExport_tags - A list of tags to apply to the what if forecast.

CreateWhatIfForecastExport, createWhatIfForecastExport_whatIfForecastExportName - The name of the what-if forecast to export.

CreateWhatIfForecastExport, createWhatIfForecastExport_whatIfForecastArns - The list of what-if forecast Amazon Resource Names (ARNs) to export.

CreateWhatIfForecastExport, createWhatIfForecastExport_destination - The location where you want to save the forecast and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the location. The forecast must be exported to an Amazon S3 bucket.

If encryption is used, Destination must include an AWS Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key.

Request Lenses

createWhatIfForecastExport_format :: Lens' CreateWhatIfForecastExport (Maybe Text) Source #

The format of the exported data, CSV or PARQUET.

createWhatIfForecastExport_tags :: Lens' CreateWhatIfForecastExport (Maybe [Tag]) Source #

A list of tags to apply to the what if forecast.

createWhatIfForecastExport_whatIfForecastArns :: Lens' CreateWhatIfForecastExport (NonEmpty Text) Source #

The list of what-if forecast Amazon Resource Names (ARNs) to export.

createWhatIfForecastExport_destination :: Lens' CreateWhatIfForecastExport DataDestination Source #

The location where you want to save the forecast and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the location. The forecast must be exported to an Amazon S3 bucket.

If encryption is used, Destination must include an AWS Key Management Service (KMS) key. The IAM role must allow Amazon Forecast permission to access the key.

Destructuring the Response

data CreateWhatIfForecastExportResponse Source #

Constructors

CreateWhatIfForecastExportResponse' 

Fields

Instances

Instances details
Generic CreateWhatIfForecastExportResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

Associated Types

type Rep CreateWhatIfForecastExportResponse :: Type -> Type #

Read CreateWhatIfForecastExportResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

Show CreateWhatIfForecastExportResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

NFData CreateWhatIfForecastExportResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

Eq CreateWhatIfForecastExportResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

type Rep CreateWhatIfForecastExportResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateWhatIfForecastExport

type Rep CreateWhatIfForecastExportResponse = D1 ('MetaData "CreateWhatIfForecastExportResponse" "Amazonka.Forecast.CreateWhatIfForecastExport" "amazonka-forecast-2.0-HHvJwvxGrDPBJtUcnmLBqf" 'False) (C1 ('MetaCons "CreateWhatIfForecastExportResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "whatIfForecastExportArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateWhatIfForecastExportResponse Source #

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

CreateWhatIfForecastExportResponse, createWhatIfForecastExportResponse_whatIfForecastExportArn - The Amazon Resource Name (ARN) of the what-if forecast.

$sel:httpStatus:CreateWhatIfForecastExportResponse', createWhatIfForecastExportResponse_httpStatus - The response's http status code.

Response Lenses