| 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 |
Amazonka.SMS.CreateReplicationJob
Description
Creates a replication job. The replication job schedules periodic replication runs to replicate your server to Amazon Web Services. Each replication run creates an Amazon Machine Image (AMI).
Synopsis
- data CreateReplicationJob = CreateReplicationJob' {}
- newCreateReplicationJob :: Text -> UTCTime -> CreateReplicationJob
- createReplicationJob_description :: Lens' CreateReplicationJob (Maybe Text)
- createReplicationJob_encrypted :: Lens' CreateReplicationJob (Maybe Bool)
- createReplicationJob_frequency :: Lens' CreateReplicationJob (Maybe Int)
- createReplicationJob_kmsKeyId :: Lens' CreateReplicationJob (Maybe Text)
- createReplicationJob_licenseType :: Lens' CreateReplicationJob (Maybe LicenseType)
- createReplicationJob_numberOfRecentAmisToKeep :: Lens' CreateReplicationJob (Maybe Int)
- createReplicationJob_roleName :: Lens' CreateReplicationJob (Maybe Text)
- createReplicationJob_runOnce :: Lens' CreateReplicationJob (Maybe Bool)
- createReplicationJob_serverId :: Lens' CreateReplicationJob Text
- createReplicationJob_seedReplicationTime :: Lens' CreateReplicationJob UTCTime
- data CreateReplicationJobResponse = CreateReplicationJobResponse' {}
- newCreateReplicationJobResponse :: Int -> CreateReplicationJobResponse
- createReplicationJobResponse_replicationJobId :: Lens' CreateReplicationJobResponse (Maybe Text)
- createReplicationJobResponse_httpStatus :: Lens' CreateReplicationJobResponse Int
Creating a Request
data CreateReplicationJob Source #
See: newCreateReplicationJob smart constructor.
Constructors
| CreateReplicationJob' | |
Fields
| |
Instances
newCreateReplicationJob Source #
Arguments
| :: Text | |
| -> UTCTime | |
| -> CreateReplicationJob |
Create a value of CreateReplicationJob 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:
CreateReplicationJob, createReplicationJob_description - The description of the replication job.
CreateReplicationJob, createReplicationJob_encrypted - Indicates whether the replication job produces encrypted AMIs.
CreateReplicationJob, createReplicationJob_frequency - The time between consecutive replication runs, in hours.
CreateReplicationJob, createReplicationJob_kmsKeyId - The ID of the KMS key for replication jobs that produce encrypted AMIs.
This value can be any of the following:
- KMS key ID
- KMS key alias
- ARN referring to the KMS key ID
- ARN referring to the KMS key alias
If encrypted is true but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
CreateReplicationJob, createReplicationJob_licenseType - The license type to be used for the AMI created by a successful
replication run.
CreateReplicationJob, createReplicationJob_numberOfRecentAmisToKeep - The maximum number of SMS-created AMIs to retain. The oldest is deleted
after the maximum number is reached and a new AMI is created.
CreateReplicationJob, createReplicationJob_roleName - The name of the IAM role to be used by the Server Migration Service.
CreateReplicationJob, createReplicationJob_runOnce - Indicates whether to run the replication job one time.
CreateReplicationJob, createReplicationJob_serverId - The ID of the server.
CreateReplicationJob, createReplicationJob_seedReplicationTime - The seed replication time.
Request Lenses
createReplicationJob_description :: Lens' CreateReplicationJob (Maybe Text) Source #
The description of the replication job.
createReplicationJob_encrypted :: Lens' CreateReplicationJob (Maybe Bool) Source #
Indicates whether the replication job produces encrypted AMIs.
createReplicationJob_frequency :: Lens' CreateReplicationJob (Maybe Int) Source #
The time between consecutive replication runs, in hours.
createReplicationJob_kmsKeyId :: Lens' CreateReplicationJob (Maybe Text) Source #
The ID of the KMS key for replication jobs that produce encrypted AMIs. This value can be any of the following:
- KMS key ID
- KMS key alias
- ARN referring to the KMS key ID
- ARN referring to the KMS key alias
If encrypted is true but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
createReplicationJob_licenseType :: Lens' CreateReplicationJob (Maybe LicenseType) Source #
The license type to be used for the AMI created by a successful replication run.
createReplicationJob_numberOfRecentAmisToKeep :: Lens' CreateReplicationJob (Maybe Int) Source #
The maximum number of SMS-created AMIs to retain. The oldest is deleted after the maximum number is reached and a new AMI is created.
createReplicationJob_roleName :: Lens' CreateReplicationJob (Maybe Text) Source #
The name of the IAM role to be used by the Server Migration Service.
createReplicationJob_runOnce :: Lens' CreateReplicationJob (Maybe Bool) Source #
Indicates whether to run the replication job one time.
createReplicationJob_serverId :: Lens' CreateReplicationJob Text Source #
The ID of the server.
createReplicationJob_seedReplicationTime :: Lens' CreateReplicationJob UTCTime Source #
The seed replication time.
Destructuring the Response
data CreateReplicationJobResponse Source #
See: newCreateReplicationJobResponse smart constructor.
Constructors
| CreateReplicationJobResponse' | |
Fields
| |
Instances
newCreateReplicationJobResponse Source #
Create a value of CreateReplicationJobResponse 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:
CreateReplicationJobResponse, createReplicationJobResponse_replicationJobId - The unique identifier of the replication job.
$sel:httpStatus:CreateReplicationJobResponse', createReplicationJobResponse_httpStatus - The response's http status code.
Response Lenses
createReplicationJobResponse_replicationJobId :: Lens' CreateReplicationJobResponse (Maybe Text) Source #
The unique identifier of the replication job.
createReplicationJobResponse_httpStatus :: Lens' CreateReplicationJobResponse Int Source #
The response's http status code.