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 |
Creates a new custom tape pool. You can use custom tape pool to enable tape retention lock on tapes that are archived in the custom pool.
Synopsis
- data CreateTapePool = CreateTapePool' {}
- newCreateTapePool :: Text -> TapeStorageClass -> CreateTapePool
- createTapePool_retentionLockType :: Lens' CreateTapePool (Maybe RetentionLockType)
- createTapePool_retentionLockTimeInDays :: Lens' CreateTapePool (Maybe Natural)
- createTapePool_tags :: Lens' CreateTapePool (Maybe [Tag])
- createTapePool_poolName :: Lens' CreateTapePool Text
- createTapePool_storageClass :: Lens' CreateTapePool TapeStorageClass
- data CreateTapePoolResponse = CreateTapePoolResponse' {
- poolARN :: Maybe Text
- httpStatus :: Int
- newCreateTapePoolResponse :: Int -> CreateTapePoolResponse
- createTapePoolResponse_poolARN :: Lens' CreateTapePoolResponse (Maybe Text)
- createTapePoolResponse_httpStatus :: Lens' CreateTapePoolResponse Int
Creating a Request
data CreateTapePool Source #
See: newCreateTapePool
smart constructor.
CreateTapePool' | |
|
Instances
:: Text | |
-> TapeStorageClass | |
-> CreateTapePool |
Create a value of CreateTapePool
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:retentionLockType:CreateTapePool'
, createTapePool_retentionLockType
- Tape retention lock can be configured in two modes. When configured in
governance mode, Amazon Web Services accounts with specific IAM
permissions are authorized to remove the tape retention lock from
archived virtual tapes. When configured in compliance mode, the tape
retention lock cannot be removed by any user, including the root Amazon
Web Services account.
$sel:retentionLockTimeInDays:CreateTapePool'
, createTapePool_retentionLockTimeInDays
- Tape retention lock time is set in days. Tape retention lock can be
enabled for up to 100 years (36,500 days).
$sel:tags:CreateTapePool'
, createTapePool_tags
- A list of up to 50 tags that can be assigned to tape pool. Each tag is a
key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
$sel:poolName:CreateTapePool'
, createTapePool_poolName
- The name of the new custom tape pool.
$sel:storageClass:CreateTapePool'
, createTapePool_storageClass
- The storage class that is associated with the new custom pool. When you
use your backup application to eject the tape, the tape is archived
directly into the storage class (S3 Glacier or S3 Glacier Deep Archive)
that corresponds to the pool.
Request Lenses
createTapePool_retentionLockType :: Lens' CreateTapePool (Maybe RetentionLockType) Source #
Tape retention lock can be configured in two modes. When configured in governance mode, Amazon Web Services accounts with specific IAM permissions are authorized to remove the tape retention lock from archived virtual tapes. When configured in compliance mode, the tape retention lock cannot be removed by any user, including the root Amazon Web Services account.
createTapePool_retentionLockTimeInDays :: Lens' CreateTapePool (Maybe Natural) Source #
Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days).
createTapePool_tags :: Lens' CreateTapePool (Maybe [Tag]) Source #
A list of up to 50 tags that can be assigned to tape pool. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers representable in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256.
createTapePool_poolName :: Lens' CreateTapePool Text Source #
The name of the new custom tape pool.
createTapePool_storageClass :: Lens' CreateTapePool TapeStorageClass Source #
The storage class that is associated with the new custom pool. When you use your backup application to eject the tape, the tape is archived directly into the storage class (S3 Glacier or S3 Glacier Deep Archive) that corresponds to the pool.
Destructuring the Response
data CreateTapePoolResponse Source #
See: newCreateTapePoolResponse
smart constructor.
CreateTapePoolResponse' | |
|
Instances
newCreateTapePoolResponse Source #
Create a value of CreateTapePoolResponse
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:poolARN:CreateTapePoolResponse'
, createTapePoolResponse_poolARN
- The unique Amazon Resource Name (ARN) that represents the custom tape
pool. Use the ListTapePools operation to return a list of tape pools for
your account and Amazon Web Services Region.
$sel:httpStatus:CreateTapePoolResponse'
, createTapePoolResponse_httpStatus
- The response's http status code.
Response Lenses
createTapePoolResponse_poolARN :: Lens' CreateTapePoolResponse (Maybe Text) Source #
The unique Amazon Resource Name (ARN) that represents the custom tape pool. Use the ListTapePools operation to return a list of tape pools for your account and Amazon Web Services Region.
createTapePoolResponse_httpStatus :: Lens' CreateTapePoolResponse Int Source #
The response's http status code.