create_namespace
¶
create_namespace(
namespace_name: NamespaceName,
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = None,
admin_username: Optional[DbUser] = None,
admin_user_password: Optional[DbPassword] = None,
db_name: Optional[str] = None,
kms_key_id: Optional[str] = None,
default_iam_role_arn: Optional[str] = None,
iam_roles: Optional[IamRoleArnList] = None,
log_exports: Optional[LogExportList] = None,
tags: Optional[TagList] = None,
manage_admin_password: Optional[bool] = None,
admin_password_secret_kms_key_id: Optional[KmsKeyId] = None,
redshift_idc_application_arn: Optional[RedshiftIdcApplicationArn] = None,
) -> CreateNamespaceResponse
Creates a namespace in Amazon Redshift Serverless.
Parameters:
-
namespace_name(NamespaceName) –The name of the namespace.
-
admin_username(Optional[DbUser], default:None) –The username of the administrator for the first database created in the namespace.
-
admin_user_password(Optional[DbPassword], default:None) –The password of the administrator for the first database created in the namespace.
You can't use
adminUserPasswordifmanageAdminPasswordis true. -
db_name(Optional[str], default:None) –The name of the first database created in the namespace.
-
kms_key_id(Optional[str], default:None) –The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
-
default_iam_role_arn(Optional[str], default:None) –The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
-
iam_roles(Optional[IamRoleArnList], default:None) –A list of IAM roles to associate with the namespace.
-
log_exports(Optional[LogExportList], default:None) –The types of logs the namespace can export. Available export types are
userlog,connectionlog, anduseractivitylog. -
tags(Optional[TagList], default:None) –A list of tag instances.
-
manage_admin_password(Optional[bool], default:None) –If
true, Amazon Redshift uses Secrets Manager to manage the namespace's admin credentials. You can't useadminUserPasswordifmanageAdminPasswordis true. IfmanageAdminPasswordis false or not set, Amazon Redshift usesadminUserPasswordfor the admin user account's password. -
admin_password_secret_kms_key_id(Optional[KmsKeyId], default:None) –The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret. You can only use this parameter if
manageAdminPasswordis true. -
redshift_idc_application_arn(Optional[RedshiftIdcApplicationArn], default:None) –The ARN for the Redshift application that integrates with IAM Identity Center.
Raises:
-
ConflictException–The submitted action has conflicts.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
TooManyTagsException–The request exceeded the number of tags allowed for a resource.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift_serverless/_services/redshift_serverless.py
1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 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 | |