amazonka-opsworks-2.0: Amazon OpsWorks 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.OpsWorks.StopInstance

Description

Stops a specified instance. When you stop a standard instance, the data disappears and must be reinstalled when you restart the instance. You can stop an Amazon EBS-backed instance without losing data. For more information, see Starting, Stopping, and Rebooting Instances.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

Synopsis

Creating a Request

data StopInstance Source #

See: newStopInstance smart constructor.

Constructors

StopInstance' 

Fields

  • force :: Maybe Bool

    Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.

  • instanceId :: Text

    The instance ID.

Instances

Instances details
ToJSON StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

ToHeaders StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

ToPath StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

ToQuery StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

AWSRequest StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Associated Types

type AWSResponse StopInstance #

Generic StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Associated Types

type Rep StopInstance :: Type -> Type #

Read StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Show StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

NFData StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Methods

rnf :: StopInstance -> () #

Eq StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Hashable StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

type AWSResponse StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

type Rep StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

type Rep StopInstance = D1 ('MetaData "StopInstance" "Amazonka.OpsWorks.StopInstance" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "StopInstance'" 'PrefixI 'True) (S1 ('MetaSel ('Just "force") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newStopInstance Source #

Create a value of StopInstance 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:force:StopInstance', stopInstance_force - Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.

StopInstance, stopInstance_instanceId - The instance ID.

Request Lenses

stopInstance_force :: Lens' StopInstance (Maybe Bool) Source #

Specifies whether to force an instance to stop. If the instance's root device type is ebs, or EBS-backed, adding the Force parameter to the StopInstances API call disassociates the AWS OpsWorks Stacks instance from EC2, and forces deletion of only the OpsWorks Stacks instance. You must also delete the formerly-associated instance in EC2 after troubleshooting and replacing the AWS OpsWorks Stacks instance with a new one.

Destructuring the Response

data StopInstanceResponse Source #

See: newStopInstanceResponse smart constructor.

Constructors

StopInstanceResponse' 

Instances

Instances details
Generic StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Associated Types

type Rep StopInstanceResponse :: Type -> Type #

Read StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Show StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

NFData StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Methods

rnf :: StopInstanceResponse -> () #

Eq StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

type Rep StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

type Rep StopInstanceResponse = D1 ('MetaData "StopInstanceResponse" "Amazonka.OpsWorks.StopInstance" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" 'False) (C1 ('MetaCons "StopInstanceResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newStopInstanceResponse :: StopInstanceResponse Source #

Create a value of StopInstanceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.