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 |
Assigns one of the stack's registered Amazon EBS volumes to a specified
instance. The volume must first be registered with the stack by calling
RegisterVolume. After you register the volume, you must call
UpdateVolume to specify a mount point before calling AssignVolume
. For
more information, see
Resource Management.
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 AssignVolume = AssignVolume' {
- instanceId :: Maybe Text
- volumeId :: Text
- newAssignVolume :: Text -> AssignVolume
- assignVolume_instanceId :: Lens' AssignVolume (Maybe Text)
- assignVolume_volumeId :: Lens' AssignVolume Text
- data AssignVolumeResponse = AssignVolumeResponse' {
- newAssignVolumeResponse :: AssignVolumeResponse
Creating a Request
data AssignVolume Source #
See: newAssignVolume
smart constructor.
AssignVolume' | |
|
Instances
Create a value of AssignVolume
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:instanceId:AssignVolume'
, assignVolume_instanceId
- The instance ID.
$sel:volumeId:AssignVolume'
, assignVolume_volumeId
- The volume ID.
Request Lenses
assignVolume_instanceId :: Lens' AssignVolume (Maybe Text) Source #
The instance ID.
assignVolume_volumeId :: Lens' AssignVolume Text Source #
The volume ID.
Destructuring the Response
data AssignVolumeResponse Source #
See: newAssignVolumeResponse
smart constructor.
Instances
Eq AssignVolumeResponse Source # | |
Defined in Amazonka.OpsWorks.AssignVolume (==) :: AssignVolumeResponse -> AssignVolumeResponse -> Bool # (/=) :: AssignVolumeResponse -> AssignVolumeResponse -> Bool # | |
Read AssignVolumeResponse Source # | |
Show AssignVolumeResponse Source # | |
Defined in Amazonka.OpsWorks.AssignVolume showsPrec :: Int -> AssignVolumeResponse -> ShowS # show :: AssignVolumeResponse -> String # showList :: [AssignVolumeResponse] -> ShowS # | |
Generic AssignVolumeResponse Source # | |
Defined in Amazonka.OpsWorks.AssignVolume type Rep AssignVolumeResponse :: Type -> Type # from :: AssignVolumeResponse -> Rep AssignVolumeResponse x # to :: Rep AssignVolumeResponse x -> AssignVolumeResponse # | |
NFData AssignVolumeResponse Source # | |
Defined in Amazonka.OpsWorks.AssignVolume rnf :: AssignVolumeResponse -> () # | |
type Rep AssignVolumeResponse Source # | |
newAssignVolumeResponse :: AssignVolumeResponse Source #
Create a value of AssignVolumeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.