libZSservicesZSamazonka-smsZSamazonka-sms
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.SMS.CreateReplicationJob

Description

Creates a replication job. The replication job schedules periodic replication runs to replicate your server to AWS. Each replication run creates an Amazon Machine Image (AMI).

Synopsis

Creating a Request

data CreateReplicationJob Source #

See: newCreateReplicationJob smart constructor.

Constructors

CreateReplicationJob' 

Fields

  • frequency :: Maybe Int

    The time between consecutive replication runs, in hours.

  • numberOfRecentAmisToKeep :: Maybe Int

    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.

  • licenseType :: Maybe LicenseType

    The license type to be used for the AMI created by a successful replication run.

  • roleName :: Maybe Text

    The name of the IAM role to be used by the AWS SMS.

  • encrypted :: Maybe Bool

    Indicates whether the replication job produces encrypted AMIs.

  • kmsKeyId :: Maybe Text

    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.

  • runOnce :: Maybe Bool

    Indicates whether to run the replication job one time.

  • description :: Maybe Text

    The description of the replication job.

  • serverId :: Text

    The ID of the server.

  • seedReplicationTime :: POSIX

    The seed replication time.

Instances

Instances details
Eq CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Read CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Show CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Generic CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Associated Types

type Rep CreateReplicationJob :: Type -> Type #

NFData CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Methods

rnf :: CreateReplicationJob -> () #

Hashable CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

ToJSON CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

AWSRequest CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Associated Types

type AWSResponse CreateReplicationJob #

ToHeaders CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

ToPath CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

ToQuery CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

type Rep CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

type AWSResponse CreateReplicationJob Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

newCreateReplicationJob Source #

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:

$sel:frequency:CreateReplicationJob', createReplicationJob_frequency - The time between consecutive replication runs, in hours.

$sel:numberOfRecentAmisToKeep: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.

$sel:licenseType:CreateReplicationJob', createReplicationJob_licenseType - The license type to be used for the AMI created by a successful replication run.

$sel:roleName:CreateReplicationJob', createReplicationJob_roleName - The name of the IAM role to be used by the AWS SMS.

$sel:encrypted:CreateReplicationJob', createReplicationJob_encrypted - Indicates whether the replication job produces encrypted AMIs.

$sel:kmsKeyId: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.

$sel:runOnce:CreateReplicationJob', createReplicationJob_runOnce - Indicates whether to run the replication job one time.

$sel:description:CreateReplicationJob', createReplicationJob_description - The description of the replication job.

$sel:serverId:CreateReplicationJob', createReplicationJob_serverId - The ID of the server.

$sel:seedReplicationTime:CreateReplicationJob', createReplicationJob_seedReplicationTime - The seed replication time.

Request Lenses

createReplicationJob_frequency :: Lens' CreateReplicationJob (Maybe Int) Source #

The time between consecutive replication runs, in hours.

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_licenseType :: Lens' CreateReplicationJob (Maybe LicenseType) Source #

The license type to be used for the AMI created by a successful replication run.

createReplicationJob_roleName :: Lens' CreateReplicationJob (Maybe Text) Source #

The name of the IAM role to be used by the AWS SMS.

createReplicationJob_encrypted :: Lens' CreateReplicationJob (Maybe Bool) Source #

Indicates whether the replication job produces encrypted AMIs.

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_runOnce :: Lens' CreateReplicationJob (Maybe Bool) Source #

Indicates whether to run the replication job one time.

createReplicationJob_description :: Lens' CreateReplicationJob (Maybe Text) Source #

The description of the replication job.

Destructuring the Response

data CreateReplicationJobResponse Source #

See: newCreateReplicationJobResponse smart constructor.

Constructors

CreateReplicationJobResponse' 

Fields

Instances

Instances details
Eq CreateReplicationJobResponse Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Read CreateReplicationJobResponse Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Show CreateReplicationJobResponse Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Generic CreateReplicationJobResponse Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

Associated Types

type Rep CreateReplicationJobResponse :: Type -> Type #

NFData CreateReplicationJobResponse Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

type Rep CreateReplicationJobResponse Source # 
Instance details

Defined in Amazonka.SMS.CreateReplicationJob

type Rep CreateReplicationJobResponse = D1 ('MetaData "CreateReplicationJobResponse" "Amazonka.SMS.CreateReplicationJob" "libZSservicesZSamazonka-smsZSamazonka-sms" 'False) (C1 ('MetaCons "CreateReplicationJobResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "replicationJobId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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:

$sel:replicationJobId:CreateReplicationJobResponse', createReplicationJobResponse_replicationJobId - The unique identifier of the replication job.

$sel:httpStatus:CreateReplicationJobResponse', createReplicationJobResponse_httpStatus - The response's http status code.

Response Lenses