Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a world export job.
Synopsis
- data CreateWorldExportJob = CreateWorldExportJob' {
- clientRequestToken :: Maybe Text
- tags :: Maybe (HashMap Text Text)
- worlds :: NonEmpty Text
- outputLocation :: OutputLocation
- iamRole :: Text
- newCreateWorldExportJob :: NonEmpty Text -> OutputLocation -> Text -> CreateWorldExportJob
- createWorldExportJob_clientRequestToken :: Lens' CreateWorldExportJob (Maybe Text)
- createWorldExportJob_tags :: Lens' CreateWorldExportJob (Maybe (HashMap Text Text))
- createWorldExportJob_worlds :: Lens' CreateWorldExportJob (NonEmpty Text)
- createWorldExportJob_outputLocation :: Lens' CreateWorldExportJob OutputLocation
- createWorldExportJob_iamRole :: Lens' CreateWorldExportJob Text
- data CreateWorldExportJobResponse = CreateWorldExportJobResponse' {}
- newCreateWorldExportJobResponse :: Int -> CreateWorldExportJobResponse
- createWorldExportJobResponse_status :: Lens' CreateWorldExportJobResponse (Maybe WorldExportJobStatus)
- createWorldExportJobResponse_arn :: Lens' CreateWorldExportJobResponse (Maybe Text)
- createWorldExportJobResponse_createdAt :: Lens' CreateWorldExportJobResponse (Maybe UTCTime)
- createWorldExportJobResponse_failureCode :: Lens' CreateWorldExportJobResponse (Maybe WorldExportJobErrorCode)
- createWorldExportJobResponse_outputLocation :: Lens' CreateWorldExportJobResponse (Maybe OutputLocation)
- createWorldExportJobResponse_clientRequestToken :: Lens' CreateWorldExportJobResponse (Maybe Text)
- createWorldExportJobResponse_iamRole :: Lens' CreateWorldExportJobResponse (Maybe Text)
- createWorldExportJobResponse_tags :: Lens' CreateWorldExportJobResponse (Maybe (HashMap Text Text))
- createWorldExportJobResponse_httpStatus :: Lens' CreateWorldExportJobResponse Int
Creating a Request
data CreateWorldExportJob Source #
See: newCreateWorldExportJob
smart constructor.
CreateWorldExportJob' | |
|
Instances
newCreateWorldExportJob Source #
:: NonEmpty Text | |
-> OutputLocation | |
-> Text | |
-> CreateWorldExportJob |
Create a value of CreateWorldExportJob
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:clientRequestToken:CreateWorldExportJob'
, createWorldExportJob_clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:tags:CreateWorldExportJob'
, createWorldExportJob_tags
- A map that contains tag keys and tag values that are attached to the
world export job.
$sel:worlds:CreateWorldExportJob'
, createWorldExportJob_worlds
- A list of Amazon Resource Names (arns) that correspond to worlds to
export.
$sel:outputLocation:CreateWorldExportJob'
, createWorldExportJob_outputLocation
- Undocumented member.
$sel:iamRole:CreateWorldExportJob'
, createWorldExportJob_iamRole
- The IAM role that the world export process uses to access the Amazon S3
bucket and put the export.
Request Lenses
createWorldExportJob_clientRequestToken :: Lens' CreateWorldExportJob (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createWorldExportJob_tags :: Lens' CreateWorldExportJob (Maybe (HashMap Text Text)) Source #
A map that contains tag keys and tag values that are attached to the world export job.
createWorldExportJob_worlds :: Lens' CreateWorldExportJob (NonEmpty Text) Source #
A list of Amazon Resource Names (arns) that correspond to worlds to export.
createWorldExportJob_outputLocation :: Lens' CreateWorldExportJob OutputLocation Source #
Undocumented member.
createWorldExportJob_iamRole :: Lens' CreateWorldExportJob Text Source #
The IAM role that the world export process uses to access the Amazon S3 bucket and put the export.
Destructuring the Response
data CreateWorldExportJobResponse Source #
See: newCreateWorldExportJobResponse
smart constructor.
CreateWorldExportJobResponse' | |
|
Instances
newCreateWorldExportJobResponse Source #
Create a value of CreateWorldExportJobResponse
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:status:CreateWorldExportJobResponse'
, createWorldExportJobResponse_status
- The status of the world export job.
- Pending
- The world export job request is pending.
- Running
- The world export job is running.
- Completed
- The world export job completed.
- Failed
- The world export job failed. See
failureCode
for more information. - Canceled
- The world export job was cancelled.
- Canceling
- The world export job is being cancelled.
$sel:arn:CreateWorldExportJobResponse'
, createWorldExportJobResponse_arn
- The Amazon Resource Name (ARN) of the world export job.
$sel:createdAt:CreateWorldExportJobResponse'
, createWorldExportJobResponse_createdAt
- The time, in milliseconds since the epoch, when the world export job was
created.
$sel:failureCode:CreateWorldExportJobResponse'
, createWorldExportJobResponse_failureCode
- The failure code of the world export job if it failed:
- InternalServiceError
- Internal service error.
- LimitExceeded
- The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
- ResourceNotFound
- The specified resource could not be found.
- RequestThrottled
- The request was throttled.
- InvalidInput
- An input parameter in the request is not valid.
- AllWorldGenerationFailed
- All of the worlds in the world generation job failed. This can
happen if your
worldCount
is greater than 50 or less than 1.
For more information about troubleshooting WorldForge, see Troubleshooting Simulation WorldForge.
$sel:outputLocation:CreateWorldExportJob'
, createWorldExportJobResponse_outputLocation
- Undocumented member.
$sel:clientRequestToken:CreateWorldExportJob'
, createWorldExportJobResponse_clientRequestToken
- Unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
$sel:iamRole:CreateWorldExportJob'
, createWorldExportJobResponse_iamRole
- The IAM role that the world export process uses to access the Amazon S3
bucket and put the export.
$sel:tags:CreateWorldExportJob'
, createWorldExportJobResponse_tags
- A map that contains tag keys and tag values that are attached to the
world export job.
$sel:httpStatus:CreateWorldExportJobResponse'
, createWorldExportJobResponse_httpStatus
- The response's http status code.
Response Lenses
createWorldExportJobResponse_status :: Lens' CreateWorldExportJobResponse (Maybe WorldExportJobStatus) Source #
The status of the world export job.
- Pending
- The world export job request is pending.
- Running
- The world export job is running.
- Completed
- The world export job completed.
- Failed
- The world export job failed. See
failureCode
for more information. - Canceled
- The world export job was cancelled.
- Canceling
- The world export job is being cancelled.
createWorldExportJobResponse_arn :: Lens' CreateWorldExportJobResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the world export job.
createWorldExportJobResponse_createdAt :: Lens' CreateWorldExportJobResponse (Maybe UTCTime) Source #
The time, in milliseconds since the epoch, when the world export job was created.
createWorldExportJobResponse_failureCode :: Lens' CreateWorldExportJobResponse (Maybe WorldExportJobErrorCode) Source #
The failure code of the world export job if it failed:
- InternalServiceError
- Internal service error.
- LimitExceeded
- The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
- ResourceNotFound
- The specified resource could not be found.
- RequestThrottled
- The request was throttled.
- InvalidInput
- An input parameter in the request is not valid.
- AllWorldGenerationFailed
- All of the worlds in the world generation job failed. This can
happen if your
worldCount
is greater than 50 or less than 1.
For more information about troubleshooting WorldForge, see Troubleshooting Simulation WorldForge.
createWorldExportJobResponse_outputLocation :: Lens' CreateWorldExportJobResponse (Maybe OutputLocation) Source #
Undocumented member.
createWorldExportJobResponse_clientRequestToken :: Lens' CreateWorldExportJobResponse (Maybe Text) Source #
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
createWorldExportJobResponse_iamRole :: Lens' CreateWorldExportJobResponse (Maybe Text) Source #
The IAM role that the world export process uses to access the Amazon S3 bucket and put the export.
createWorldExportJobResponse_tags :: Lens' CreateWorldExportJobResponse (Maybe (HashMap Text Text)) Source #
A map that contains tag keys and tag values that are attached to the world export job.
createWorldExportJobResponse_httpStatus :: Lens' CreateWorldExportJobResponse Int Source #
The response's http status code.