| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.OpsWorks.RegisterVolume
Description
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.
Synopsis
- data RegisterVolume = RegisterVolume' {
- ec2VolumeId :: Maybe Text
- stackId :: Text
- newRegisterVolume :: Text -> RegisterVolume
- registerVolume_ec2VolumeId :: Lens' RegisterVolume (Maybe Text)
- registerVolume_stackId :: Lens' RegisterVolume Text
- data RegisterVolumeResponse = RegisterVolumeResponse' {
- volumeId :: Maybe Text
- httpStatus :: Int
- newRegisterVolumeResponse :: Int -> RegisterVolumeResponse
- registerVolumeResponse_volumeId :: Lens' RegisterVolumeResponse (Maybe Text)
- registerVolumeResponse_httpStatus :: Lens' RegisterVolumeResponse Int
Creating a Request
data RegisterVolume Source #
See: newRegisterVolume smart constructor.
Constructors
| RegisterVolume' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RegisterVolume |
Create a value of RegisterVolume 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:
RegisterVolume, registerVolume_ec2VolumeId - The Amazon EBS volume ID.
RegisterVolume, registerVolume_stackId - The stack ID.
Request Lenses
registerVolume_ec2VolumeId :: Lens' RegisterVolume (Maybe Text) Source #
The Amazon EBS volume ID.
registerVolume_stackId :: Lens' RegisterVolume Text Source #
The stack ID.
Destructuring the Response
data RegisterVolumeResponse Source #
Contains the response to a RegisterVolume request.
See: newRegisterVolumeResponse smart constructor.
Constructors
| RegisterVolumeResponse' | |
Fields
| |
Instances
newRegisterVolumeResponse Source #
Create a value of RegisterVolumeResponse 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:
RegisterVolumeResponse, registerVolumeResponse_volumeId - The volume ID.
$sel:httpStatus:RegisterVolumeResponse', registerVolumeResponse_httpStatus - The response's http status code.
Response Lenses
registerVolumeResponse_volumeId :: Lens' RegisterVolumeResponse (Maybe Text) Source #
The volume ID.
registerVolumeResponse_httpStatus :: Lens' RegisterVolumeResponse Int Source #
The response's http status code.