Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data StopInstance = StopInstance' {
- force :: Maybe Bool
- instanceId :: Text
- newStopInstance :: Text -> StopInstance
- stopInstance_force :: Lens' StopInstance (Maybe Bool)
- stopInstance_instanceId :: Lens' StopInstance Text
- data StopInstanceResponse = StopInstanceResponse' {
- newStopInstanceResponse :: StopInstanceResponse
Creating a Request
data StopInstance Source #
See: newStopInstance
smart constructor.
StopInstance' | |
|
Instances
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.
stopInstance_instanceId :: Lens' StopInstance Text Source #
The instance ID.
Destructuring the Response
data StopInstanceResponse Source #
See: newStopInstanceResponse
smart constructor.
Instances
Eq StopInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.StopInstance (==) :: StopInstanceResponse -> StopInstanceResponse -> Bool # (/=) :: StopInstanceResponse -> StopInstanceResponse -> Bool # | |
Read StopInstanceResponse Source # | |
Show StopInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.StopInstance showsPrec :: Int -> StopInstanceResponse -> ShowS # show :: StopInstanceResponse -> String # showList :: [StopInstanceResponse] -> ShowS # | |
Generic StopInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.StopInstance type Rep StopInstanceResponse :: Type -> Type # from :: StopInstanceResponse -> Rep StopInstanceResponse x # to :: Rep StopInstanceResponse x -> StopInstanceResponse # | |
NFData StopInstanceResponse Source # | |
Defined in Amazonka.OpsWorks.StopInstance rnf :: StopInstanceResponse -> () # | |
type Rep StopInstanceResponse Source # | |
newStopInstanceResponse :: StopInstanceResponse Source #
Create a value of StopInstanceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.