libZSservicesZSamazonka-mgnZSamazonka-mgn
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.MGN.MarkAsArchived

Description

Archives specific Source Servers by setting the SourceServer.isArchived property to true for specified SourceServers by ID. This command only works for SourceServers with a lifecycle.state which equals DISCONNECTED or CUTOVER.

Synopsis

Creating a Request

data MarkAsArchived Source #

See: newMarkAsArchived smart constructor.

Constructors

MarkAsArchived' 

Fields

Instances

Instances details
Eq MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

Read MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

Show MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

Generic MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

Associated Types

type Rep MarkAsArchived :: Type -> Type #

NFData MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

Methods

rnf :: MarkAsArchived -> () #

Hashable MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

ToJSON MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

AWSRequest MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

Associated Types

type AWSResponse MarkAsArchived #

ToHeaders MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

ToPath MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

ToQuery MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

type Rep MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

type Rep MarkAsArchived = D1 ('MetaData "MarkAsArchived" "Amazonka.MGN.MarkAsArchived" "libZSservicesZSamazonka-mgnZSamazonka-mgn" 'False) (C1 ('MetaCons "MarkAsArchived'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceServerID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse MarkAsArchived Source # 
Instance details

Defined in Amazonka.MGN.MarkAsArchived

newMarkAsArchived Source #

Create a value of MarkAsArchived 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:sourceServerID:MarkAsArchived', markAsArchived_sourceServerID - Mark as archived by Source Server ID.

Request Lenses

markAsArchived_sourceServerID :: Lens' MarkAsArchived Text Source #

Mark as archived by Source Server ID.

Destructuring the Response

data SourceServer Source #

See: newSourceServer smart constructor.

Constructors

SourceServer' 

Fields

Instances

Instances details
Eq SourceServer Source # 
Instance details

Defined in Amazonka.MGN.Types.SourceServer

Show SourceServer Source # 
Instance details

Defined in Amazonka.MGN.Types.SourceServer

Generic SourceServer Source # 
Instance details

Defined in Amazonka.MGN.Types.SourceServer

Associated Types

type Rep SourceServer :: Type -> Type #

NFData SourceServer Source # 
Instance details

Defined in Amazonka.MGN.Types.SourceServer

Methods

rnf :: SourceServer -> () #

Hashable SourceServer Source # 
Instance details

Defined in Amazonka.MGN.Types.SourceServer

FromJSON SourceServer Source # 
Instance details

Defined in Amazonka.MGN.Types.SourceServer

type Rep SourceServer Source # 
Instance details

Defined in Amazonka.MGN.Types.SourceServer

newSourceServer :: SourceServer Source #

Create a value of SourceServer 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:sourceProperties:SourceServer', sourceServer_sourceProperties - Source server properties.

$sel:arn:SourceServer', sourceServer_arn - Source server ARN.

$sel:launchedInstance:SourceServer', sourceServer_launchedInstance - Source server launched instance.

$sel:lifeCycle:SourceServer', sourceServer_lifeCycle - Source server lifecycle state.

$sel:isArchived:SourceServer', sourceServer_isArchived - Source server archived status.

$sel:dataReplicationInfo:SourceServer', sourceServer_dataReplicationInfo - Source server data replication info.

$sel:sourceServerID:SourceServer', sourceServer_sourceServerID - Source server ID.

$sel:tags:SourceServer', sourceServer_tags - Source server Tags.

Response Lenses

sourceServer_lifeCycle :: Lens' SourceServer (Maybe LifeCycle) Source #

Source server lifecycle state.

sourceServer_isArchived :: Lens' SourceServer (Maybe Bool) Source #

Source server archived status.