create_tape_pool
async
¶
create_tape_pool(
pool_name: PoolName,
storage_class: TapeStorageClass,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = 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/async_storage_gateway.py
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 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 | |