libZSservicesZSamazonka-opsworksZSamazonka-opsworks
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.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
Eq StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Read StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Show StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Generic StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Associated Types

type Rep StopInstance :: Type -> Type #

NFData StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Methods

rnf :: StopInstance -> () #

Hashable StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

ToJSON StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

AWSRequest StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Associated Types

type AWSResponse 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

type Rep StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

type Rep StopInstance = D1 ('MetaData "StopInstance" "Amazonka.OpsWorks.StopInstance" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" '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)))
type AWSResponse StopInstance Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

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.

$sel:instanceId: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
Eq StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Read StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Show StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Generic StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Associated Types

type Rep StopInstanceResponse :: Type -> Type #

NFData StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

Methods

rnf :: StopInstanceResponse -> () #

type Rep StopInstanceResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.StopInstance

type Rep StopInstanceResponse = D1 ('MetaData "StopInstanceResponse" "Amazonka.OpsWorks.StopInstance" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" '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.