create_tape_pool
¶
create_tape_pool(
pool_name: PoolName,
storage_class: TapeStorageClass,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
retention_lock_type: Optional[RetentionLockType] = None,
retention_lock_time_in_days: Optional[RetentionLockTimeInDays] = None,
tags: Optional[Tags] = None,
) -> CreateTapePoolOutput
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.
Parameters:
-
pool_name(PoolName) –The name of the new custom tape pool.
-
storage_class(TapeStorageClass) –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.
-
retention_lock_type(Optional[RetentionLockType], default:None) –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.
-
retention_lock_time_in_days(Optional[RetentionLockTimeInDays], default:None) –Tape retention lock time is set in days. Tape retention lock can be enabled for up to 100 years (36,500 days).
-
tags(Optional[Tags], default:None) –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.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 | |