libZSservicesZSamazonka-forecastZSamazonka-forecast
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.Forecast.CreateForecastExportJob

Description

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

<ForecastExportJobName>_<ExportTimestamp>_<PartNumber>

where 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 forecast export jobs, use the ListForecastExportJobs 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 DescribeForecastExportJob operation.

Synopsis

Creating a Request

data CreateForecastExportJob Source #

See: newCreateForecastExportJob smart constructor.

Constructors

CreateForecastExportJob' 

Fields

  • tags :: Maybe [Tag]

    The optional metadata that you apply to the forecast export job to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

    The following basic restrictions apply to tags:

    • Maximum number of tags per resource - 50.
    • For each resource, each tag key must be unique, and each tag key can have only one value.
    • Maximum key length - 128 Unicode characters in UTF-8.
    • Maximum value length - 256 Unicode characters in UTF-8.
    • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
    • Tag keys and values are case sensitive.
    • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.
  • forecastExportJobName :: Text

    The name for the forecast export job.

  • forecastArn :: Text

    The Amazon Resource Name (ARN) of the forecast that you want 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
Eq CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Show CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Generic CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Associated Types

type Rep CreateForecastExportJob :: Type -> Type #

NFData CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Methods

rnf :: CreateForecastExportJob -> () #

Hashable CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

ToJSON CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

AWSRequest CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

ToHeaders CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

ToPath CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

ToQuery CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

type Rep CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

type Rep CreateForecastExportJob = D1 ('MetaData "CreateForecastExportJob" "Amazonka.Forecast.CreateForecastExportJob" "libZSservicesZSamazonka-forecastZSamazonka-forecast" 'False) (C1 ('MetaCons "CreateForecastExportJob'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "forecastExportJobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "forecastArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DataDestination))))
type AWSResponse CreateForecastExportJob Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

newCreateForecastExportJob Source #

Create a value of CreateForecastExportJob 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:tags:CreateForecastExportJob', createForecastExportJob_tags - The optional metadata that you apply to the forecast export job to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50.
  • For each resource, each tag key must be unique, and each tag key can have only one value.
  • Maximum key length - 128 Unicode characters in UTF-8.
  • Maximum value length - 256 Unicode characters in UTF-8.
  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
  • Tag keys and values are case sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

$sel:forecastExportJobName:CreateForecastExportJob', createForecastExportJob_forecastExportJobName - The name for the forecast export job.

$sel:forecastArn:CreateForecastExportJob', createForecastExportJob_forecastArn - The Amazon Resource Name (ARN) of the forecast that you want to export.

$sel:destination:CreateForecastExportJob', createForecastExportJob_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

createForecastExportJob_tags :: Lens' CreateForecastExportJob (Maybe [Tag]) Source #

The optional metadata that you apply to the forecast export job to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.

The following basic restrictions apply to tags:

  • Maximum number of tags per resource - 50.
  • For each resource, each tag key must be unique, and each tag key can have only one value.
  • Maximum key length - 128 Unicode characters in UTF-8.
  • Maximum value length - 256 Unicode characters in UTF-8.
  • If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
  • Tag keys and values are case sensitive.
  • Do not use aws:, AWS:, or any upper or lowercase combination of such as a prefix for keys as it is reserved for AWS use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has aws as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of aws do not count against your tags per resource limit.

createForecastExportJob_forecastArn :: Lens' CreateForecastExportJob Text Source #

The Amazon Resource Name (ARN) of the forecast that you want to export.

createForecastExportJob_destination :: Lens' CreateForecastExportJob 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 CreateForecastExportJobResponse Source #

See: newCreateForecastExportJobResponse smart constructor.

Constructors

CreateForecastExportJobResponse' 

Fields

Instances

Instances details
Eq CreateForecastExportJobResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Read CreateForecastExportJobResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Show CreateForecastExportJobResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Generic CreateForecastExportJobResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

Associated Types

type Rep CreateForecastExportJobResponse :: Type -> Type #

NFData CreateForecastExportJobResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

type Rep CreateForecastExportJobResponse Source # 
Instance details

Defined in Amazonka.Forecast.CreateForecastExportJob

type Rep CreateForecastExportJobResponse = D1 ('MetaData "CreateForecastExportJobResponse" "Amazonka.Forecast.CreateForecastExportJob" "libZSservicesZSamazonka-forecastZSamazonka-forecast" 'False) (C1 ('MetaCons "CreateForecastExportJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forecastExportJobArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateForecastExportJobResponse Source #

Create a value of CreateForecastExportJobResponse 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:forecastExportJobArn:CreateForecastExportJobResponse', createForecastExportJobResponse_forecastExportJobArn - The Amazon Resource Name (ARN) of the export job.

$sel:httpStatus:CreateForecastExportJobResponse', createForecastExportJobResponse_httpStatus - The response's http status code.

Response Lenses