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 |
Updates the specified settings for the specified replication job.
Synopsis
- data UpdateReplicationJob = UpdateReplicationJob' {}
- newUpdateReplicationJob :: Text -> UpdateReplicationJob
- updateReplicationJob_frequency :: Lens' UpdateReplicationJob (Maybe Int)
- updateReplicationJob_numberOfRecentAmisToKeep :: Lens' UpdateReplicationJob (Maybe Int)
- updateReplicationJob_licenseType :: Lens' UpdateReplicationJob (Maybe LicenseType)
- updateReplicationJob_roleName :: Lens' UpdateReplicationJob (Maybe Text)
- updateReplicationJob_encrypted :: Lens' UpdateReplicationJob (Maybe Bool)
- updateReplicationJob_nextReplicationRunStartTime :: Lens' UpdateReplicationJob (Maybe UTCTime)
- updateReplicationJob_kmsKeyId :: Lens' UpdateReplicationJob (Maybe Text)
- updateReplicationJob_description :: Lens' UpdateReplicationJob (Maybe Text)
- updateReplicationJob_replicationJobId :: Lens' UpdateReplicationJob Text
- data UpdateReplicationJobResponse = UpdateReplicationJobResponse' {
- httpStatus :: Int
- newUpdateReplicationJobResponse :: Int -> UpdateReplicationJobResponse
- updateReplicationJobResponse_httpStatus :: Lens' UpdateReplicationJobResponse Int
Creating a Request
data UpdateReplicationJob Source #
See: newUpdateReplicationJob
smart constructor.
UpdateReplicationJob' | |
|
Instances
newUpdateReplicationJob Source #
Create a value of UpdateReplicationJob
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:frequency:UpdateReplicationJob'
, updateReplicationJob_frequency
- The time between consecutive replication runs, in hours.
$sel:numberOfRecentAmisToKeep:UpdateReplicationJob'
, updateReplicationJob_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.
$sel:licenseType:UpdateReplicationJob'
, updateReplicationJob_licenseType
- The license type to be used for the AMI created by a successful
replication run.
$sel:roleName:UpdateReplicationJob'
, updateReplicationJob_roleName
- The name of the IAM role to be used by AWS SMS.
$sel:encrypted:UpdateReplicationJob'
, updateReplicationJob_encrypted
- When true, the replication job produces encrypted AMIs. For more
information, KmsKeyId
.
$sel:nextReplicationRunStartTime:UpdateReplicationJob'
, updateReplicationJob_nextReplicationRunStartTime
- The start time of the next replication run.
$sel:kmsKeyId:UpdateReplicationJob'
, updateReplicationJob_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 enabled but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
$sel:description:UpdateReplicationJob'
, updateReplicationJob_description
- The description of the replication job.
$sel:replicationJobId:UpdateReplicationJob'
, updateReplicationJob_replicationJobId
- The ID of the replication job.
Request Lenses
updateReplicationJob_frequency :: Lens' UpdateReplicationJob (Maybe Int) Source #
The time between consecutive replication runs, in hours.
updateReplicationJob_numberOfRecentAmisToKeep :: Lens' UpdateReplicationJob (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.
updateReplicationJob_licenseType :: Lens' UpdateReplicationJob (Maybe LicenseType) Source #
The license type to be used for the AMI created by a successful replication run.
updateReplicationJob_roleName :: Lens' UpdateReplicationJob (Maybe Text) Source #
The name of the IAM role to be used by AWS SMS.
updateReplicationJob_encrypted :: Lens' UpdateReplicationJob (Maybe Bool) Source #
When true, the replication job produces encrypted AMIs. For more
information, KmsKeyId
.
updateReplicationJob_nextReplicationRunStartTime :: Lens' UpdateReplicationJob (Maybe UTCTime) Source #
The start time of the next replication run.
updateReplicationJob_kmsKeyId :: Lens' UpdateReplicationJob (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 enabled but a KMS key ID is not specified, the customer's default KMS key for Amazon EBS is used.
updateReplicationJob_description :: Lens' UpdateReplicationJob (Maybe Text) Source #
The description of the replication job.
updateReplicationJob_replicationJobId :: Lens' UpdateReplicationJob Text Source #
The ID of the replication job.
Destructuring the Response
data UpdateReplicationJobResponse Source #
See: newUpdateReplicationJobResponse
smart constructor.
UpdateReplicationJobResponse' | |
|
Instances
newUpdateReplicationJobResponse Source #
Create a value of UpdateReplicationJobResponse
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:UpdateReplicationJobResponse'
, updateReplicationJobResponse_httpStatus
- The response's http status code.
Response Lenses
updateReplicationJobResponse_httpStatus :: Lens' UpdateReplicationJobResponse Int Source #
The response's http status code.