Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Registers an Amazon EBS volume with a specified stack. A volume can be registered with only one stack at a time. If the volume is already registered, you must first deregister it by calling DeregisterVolume. 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.
See: AWS API Reference for RegisterVolume.
- registerVolume :: Text -> RegisterVolume
- data RegisterVolume
- rvEC2VolumeId :: Lens' RegisterVolume (Maybe Text)
- rvStackId :: Lens' RegisterVolume Text
- registerVolumeResponse :: Int -> RegisterVolumeResponse
- data RegisterVolumeResponse
- rvrsVolumeId :: Lens' RegisterVolumeResponse (Maybe Text)
- rvrsStatus :: Lens' RegisterVolumeResponse Int
Creating a Request
Creates a value of RegisterVolume
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterVolume Source
See: registerVolume
smart constructor.
Request Lenses
rvEC2VolumeId :: Lens' RegisterVolume (Maybe Text) Source
The Amazon EBS volume ID.
rvStackId :: Lens' RegisterVolume Text Source
The stack ID.
Destructuring the Response
Creates a value of RegisterVolumeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data RegisterVolumeResponse Source
Contains the response to a RegisterVolume
request.
See: registerVolumeResponse
smart constructor.
Response Lenses
rvrsVolumeId :: Lens' RegisterVolumeResponse (Maybe Text) Source
The volume ID.
rvrsStatus :: Lens' RegisterVolumeResponse Int Source
The response status code.