| 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.FSx.CreateVolume
Description
Creates an FSx for ONTAP or Amazon FSx for OpenZFS storage volume.
Synopsis
- data CreateVolume = CreateVolume' {}
- newCreateVolume :: VolumeType -> Text -> CreateVolume
- createVolume_clientRequestToken :: Lens' CreateVolume (Maybe Text)
- createVolume_ontapConfiguration :: Lens' CreateVolume (Maybe CreateOntapVolumeConfiguration)
- createVolume_openZFSConfiguration :: Lens' CreateVolume (Maybe CreateOpenZFSVolumeConfiguration)
- createVolume_tags :: Lens' CreateVolume (Maybe (NonEmpty Tag))
- createVolume_volumeType :: Lens' CreateVolume VolumeType
- createVolume_name :: Lens' CreateVolume Text
- data CreateVolumeResponse = CreateVolumeResponse' {
- volume :: Maybe Volume
- httpStatus :: Int
- newCreateVolumeResponse :: Int -> CreateVolumeResponse
- createVolumeResponse_volume :: Lens' CreateVolumeResponse (Maybe Volume)
- createVolumeResponse_httpStatus :: Lens' CreateVolumeResponse Int
Creating a Request
data CreateVolume Source #
See: newCreateVolume smart constructor.
Constructors
| CreateVolume' | |
Fields
| |
Instances
Arguments
| :: VolumeType | |
| -> Text | |
| -> CreateVolume |
Create a value of CreateVolume 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:clientRequestToken:CreateVolume', createVolume_clientRequestToken - Undocumented member.
CreateVolume, createVolume_ontapConfiguration - Specifies the configuration to use when creating the ONTAP volume.
CreateVolume, createVolume_openZFSConfiguration - Specifies the configuration to use when creating the OpenZFS volume.
CreateVolume, createVolume_tags - Undocumented member.
CreateVolume, createVolume_volumeType - Specifies the type of volume to create; ONTAP and OPENZFS are the
only valid volume types.
CreateVolume, createVolume_name - Specifies the name of the volume that you're creating.
Request Lenses
createVolume_clientRequestToken :: Lens' CreateVolume (Maybe Text) Source #
Undocumented member.
createVolume_ontapConfiguration :: Lens' CreateVolume (Maybe CreateOntapVolumeConfiguration) Source #
Specifies the configuration to use when creating the ONTAP volume.
createVolume_openZFSConfiguration :: Lens' CreateVolume (Maybe CreateOpenZFSVolumeConfiguration) Source #
Specifies the configuration to use when creating the OpenZFS volume.
createVolume_tags :: Lens' CreateVolume (Maybe (NonEmpty Tag)) Source #
Undocumented member.
createVolume_volumeType :: Lens' CreateVolume VolumeType Source #
Specifies the type of volume to create; ONTAP and OPENZFS are the
only valid volume types.
createVolume_name :: Lens' CreateVolume Text Source #
Specifies the name of the volume that you're creating.
Destructuring the Response
data CreateVolumeResponse Source #
See: newCreateVolumeResponse smart constructor.
Constructors
| CreateVolumeResponse' | |
Fields
| |
Instances
newCreateVolumeResponse Source #
Arguments
| :: Int | |
| -> CreateVolumeResponse |
Create a value of CreateVolumeResponse 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:
CreateVolumeResponse, createVolumeResponse_volume - Returned after a successful CreateVolume API operation, describing the
volume just created.
$sel:httpStatus:CreateVolumeResponse', createVolumeResponse_httpStatus - The response's http status code.
Response Lenses
createVolumeResponse_volume :: Lens' CreateVolumeResponse (Maybe Volume) Source #
Returned after a successful CreateVolume API operation, describing the
volume just created.
createVolumeResponse_httpStatus :: Lens' CreateVolumeResponse Int Source #
The response's http status code.