amazonka-drs-2.0: Amazon Elastic Disaster Recovery Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DrS.DisconnectSourceServer

Description

Disconnects a specific Source Server from Elastic Disaster Recovery. Data replication is stopped immediately. All AWS resources created by Elastic Disaster Recovery for enabling the replication of the Source Server will be terminated / deleted within 90 minutes. You cannot disconnect a Source Server if it has a Recovery Instance. If the agent on the Source Server has not been prevented from communicating with the Elastic Disaster Recovery service, then it will receive a command to uninstall itself (within approximately 10 minutes). The following properties of the SourceServer will be changed immediately: dataReplicationInfo.dataReplicationState will be set to DISCONNECTED; The totalStorageBytes property for each of dataReplicationInfo.replicatedDisks will be set to zero; dataReplicationInfo.lagDuration and dataReplicationInfo.lagDuration will be nullified.

Synopsis

Creating a Request

data DisconnectSourceServer Source #

See: newDisconnectSourceServer smart constructor.

Constructors

DisconnectSourceServer' 

Fields

Instances

Instances details
ToJSON DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

ToHeaders DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

ToPath DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

ToQuery DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

AWSRequest DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

Associated Types

type AWSResponse DisconnectSourceServer #

Generic DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

Associated Types

type Rep DisconnectSourceServer :: Type -> Type #

Read DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

Show DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

NFData DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

Methods

rnf :: DisconnectSourceServer -> () #

Eq DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

Hashable DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

type AWSResponse DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

type Rep DisconnectSourceServer Source # 
Instance details

Defined in Amazonka.DrS.DisconnectSourceServer

type Rep DisconnectSourceServer = D1 ('MetaData "DisconnectSourceServer" "Amazonka.DrS.DisconnectSourceServer" "amazonka-drs-2.0-Jcy074h2jPgFhWHQx96blx" 'False) (C1 ('MetaCons "DisconnectSourceServer'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceServerID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDisconnectSourceServer Source #

Create a value of DisconnectSourceServer 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:

DisconnectSourceServer, disconnectSourceServer_sourceServerID - The ID of the Source Server to disconnect.

Request Lenses

disconnectSourceServer_sourceServerID :: Lens' DisconnectSourceServer Text Source #

The ID of the Source Server to disconnect.

Destructuring the Response

data SourceServer Source #

See: newSourceServer smart constructor.

Constructors

SourceServer' 

Fields

Instances

Instances details
FromJSON SourceServer Source # 
Instance details

Defined in Amazonka.DrS.Types.SourceServer

Generic SourceServer Source # 
Instance details

Defined in Amazonka.DrS.Types.SourceServer

Associated Types

type Rep SourceServer :: Type -> Type #

Show SourceServer Source # 
Instance details

Defined in Amazonka.DrS.Types.SourceServer

NFData SourceServer Source # 
Instance details

Defined in Amazonka.DrS.Types.SourceServer

Methods

rnf :: SourceServer -> () #

Eq SourceServer Source # 
Instance details

Defined in Amazonka.DrS.Types.SourceServer

Hashable SourceServer Source # 
Instance details

Defined in Amazonka.DrS.Types.SourceServer

type Rep SourceServer Source # 
Instance details

Defined in Amazonka.DrS.Types.SourceServer

type Rep SourceServer = D1 ('MetaData "SourceServer" "Amazonka.DrS.Types.SourceServer" "amazonka-drs-2.0-Jcy074h2jPgFhWHQx96blx" 'False) (C1 ('MetaCons "SourceServer'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dataReplicationInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataReplicationInfo)) :*: S1 ('MetaSel ('Just "lastLaunchResult") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LastLaunchResult)))) :*: (S1 ('MetaSel ('Just "lifeCycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LifeCycle)) :*: (S1 ('MetaSel ('Just "recoveryInstanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "replicationDirection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReplicationDirection))))) :*: ((S1 ('MetaSel ('Just "reversedDirectionSourceServerArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sourceCloudProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceCloudProperties)) :*: S1 ('MetaSel ('Just "sourceProperties") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceProperties)))) :*: (S1 ('MetaSel ('Just "sourceServerID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "stagingArea") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StagingArea)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text)))))))))

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:arn:SourceServer', sourceServer_arn - The ARN of the Source Server.

$sel:dataReplicationInfo:SourceServer', sourceServer_dataReplicationInfo - The Data Replication Info of the Source Server.

$sel:lastLaunchResult:SourceServer', sourceServer_lastLaunchResult - The status of the last recovery launch of this Source Server.

$sel:lifeCycle:SourceServer', sourceServer_lifeCycle - The lifecycle information of this Source Server.

$sel:recoveryInstanceId:SourceServer', sourceServer_recoveryInstanceId - The ID of the Recovery Instance associated with this Source Server.

$sel:replicationDirection:SourceServer', sourceServer_replicationDirection - Replication direction of the Source Server.

$sel:reversedDirectionSourceServerArn:SourceServer', sourceServer_reversedDirectionSourceServerArn - For EC2-originated Source Servers which have been failed over and then failed back, this value will mean the ARN of the Source Server on the opposite replication direction.

$sel:sourceCloudProperties:SourceServer', sourceServer_sourceCloudProperties - Source cloud properties of the Source Server.

$sel:sourceProperties:SourceServer', sourceServer_sourceProperties - The source properties of the Source Server.

$sel:sourceServerID:SourceServer', sourceServer_sourceServerID - The ID of the Source Server.

$sel:stagingArea:SourceServer', sourceServer_stagingArea - The staging area of the source server.

$sel:tags:SourceServer', sourceServer_tags - The tags associated with the Source Server.

Response Lenses

sourceServer_arn :: Lens' SourceServer (Maybe Text) Source #

The ARN of the Source Server.

sourceServer_dataReplicationInfo :: Lens' SourceServer (Maybe DataReplicationInfo) Source #

The Data Replication Info of the Source Server.

sourceServer_lastLaunchResult :: Lens' SourceServer (Maybe LastLaunchResult) Source #

The status of the last recovery launch of this Source Server.

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

The lifecycle information of this Source Server.

sourceServer_recoveryInstanceId :: Lens' SourceServer (Maybe Text) Source #

The ID of the Recovery Instance associated with this Source Server.

sourceServer_reversedDirectionSourceServerArn :: Lens' SourceServer (Maybe Text) Source #

For EC2-originated Source Servers which have been failed over and then failed back, this value will mean the ARN of the Source Server on the opposite replication direction.

sourceServer_sourceCloudProperties :: Lens' SourceServer (Maybe SourceCloudProperties) Source #

Source cloud properties of the Source Server.

sourceServer_sourceProperties :: Lens' SourceServer (Maybe SourceProperties) Source #

The source properties of the Source Server.

sourceServer_stagingArea :: Lens' SourceServer (Maybe StagingArea) Source #

The staging area of the source server.

sourceServer_tags :: Lens' SourceServer (Maybe (HashMap Text Text)) Source #

The tags associated with the Source Server.