Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This action creates a SyncJob.
Synopsis
- data CreateSyncJob = CreateSyncJob' {}
- newCreateSyncJob :: Text -> Text -> Text -> CreateSyncJob
- createSyncJob_tags :: Lens' CreateSyncJob (Maybe (HashMap Text Text))
- createSyncJob_workspaceId :: Lens' CreateSyncJob Text
- createSyncJob_syncSource :: Lens' CreateSyncJob Text
- createSyncJob_syncRole :: Lens' CreateSyncJob Text
- data CreateSyncJobResponse = CreateSyncJobResponse' {
- httpStatus :: Int
- arn :: Text
- creationDateTime :: POSIX
- state :: SyncJobState
- newCreateSyncJobResponse :: Int -> Text -> UTCTime -> SyncJobState -> CreateSyncJobResponse
- createSyncJobResponse_httpStatus :: Lens' CreateSyncJobResponse Int
- createSyncJobResponse_arn :: Lens' CreateSyncJobResponse Text
- createSyncJobResponse_creationDateTime :: Lens' CreateSyncJobResponse UTCTime
- createSyncJobResponse_state :: Lens' CreateSyncJobResponse SyncJobState
Creating a Request
data CreateSyncJob Source #
See: newCreateSyncJob
smart constructor.
CreateSyncJob' | |
|
Instances
Create a value of CreateSyncJob
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:CreateSyncJob'
, createSyncJob_tags
- The SyncJob tags.
CreateSyncJob
, createSyncJob_workspaceId
- The workspace Id.
CreateSyncJob
, createSyncJob_syncSource
- The sync source.
Currently the only supported syncSoucre is SITEWISE
.
$sel:syncRole:CreateSyncJob'
, createSyncJob_syncRole
- The SyncJob IAM role. This IAM role is used by the sync job to read from
the syncSource, and create, update or delete the corresponding
resources.
Request Lenses
createSyncJob_tags :: Lens' CreateSyncJob (Maybe (HashMap Text Text)) Source #
The SyncJob tags.
createSyncJob_workspaceId :: Lens' CreateSyncJob Text Source #
The workspace Id.
createSyncJob_syncSource :: Lens' CreateSyncJob Text Source #
The sync source.
Currently the only supported syncSoucre is SITEWISE
.
createSyncJob_syncRole :: Lens' CreateSyncJob Text Source #
The SyncJob IAM role. This IAM role is used by the sync job to read from the syncSource, and create, update or delete the corresponding resources.
Destructuring the Response
data CreateSyncJobResponse Source #
See: newCreateSyncJobResponse
smart constructor.
CreateSyncJobResponse' | |
|
Instances
newCreateSyncJobResponse Source #
:: Int | |
-> Text | |
-> UTCTime | |
-> SyncJobState | |
-> CreateSyncJobResponse |
Create a value of CreateSyncJobResponse
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:httpStatus:CreateSyncJobResponse'
, createSyncJobResponse_httpStatus
- The response's http status code.
CreateSyncJobResponse
, createSyncJobResponse_arn
- The SyncJob ARN.
CreateSyncJobResponse
, createSyncJobResponse_creationDateTime
- The date and time for the SyncJob creation.
CreateSyncJobResponse
, createSyncJobResponse_state
- The SyncJob response state.
Response Lenses
createSyncJobResponse_httpStatus :: Lens' CreateSyncJobResponse Int Source #
The response's http status code.
createSyncJobResponse_arn :: Lens' CreateSyncJobResponse Text Source #
The SyncJob ARN.
createSyncJobResponse_creationDateTime :: Lens' CreateSyncJobResponse UTCTime Source #
The date and time for the SyncJob creation.
createSyncJobResponse_state :: Lens' CreateSyncJobResponse SyncJobState Source #
The SyncJob response state.