create_account_subscription
¶
create_account_subscription(
authentication_method: AuthenticationMethodOption,
aws_account_id: AwsAccountId,
account_name: AccountName,
notification_email: String,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
edition: Optional[Edition] = None,
active_directory_name: Optional[String] = None,
realm: Optional[String] = None,
directory_id: Optional[String] = None,
admin_group: Optional[GroupsList] = None,
author_group: Optional[GroupsList] = None,
reader_group: Optional[GroupsList] = None,
admin_pro_group: Optional[GroupsList] = None,
author_pro_group: Optional[GroupsList] = None,
reader_pro_group: Optional[GroupsList] = None,
first_name: Optional[String] = None,
last_name: Optional[String] = None,
email_address: Optional[String] = None,
contact_number: Optional[String] = None,
iam_identity_center_instance_arn: Optional[String] = None,
) -> CreateAccountSubscriptionResponse
Creates an Amazon Quick Sight account, or subscribes to Amazon Quick Sight Q.
The Amazon Web Services Region for the account is derived from what is configured in the CLI or SDK.
Before you use this operation, make sure that you can connect to an existing Amazon Web Services account. If you don't have an Amazon Web Services account, see Sign up for Amazon Web Services in the Amazon Quick Sight User Guide. The person who signs up for Amazon Quick Sight needs to have the correct Identity and Access Management (IAM) permissions. For more information, see IAM Policy Examples for Amazon Quick Sight in the Amazon Quick Sight User Guide.
If your IAM policy includes both the Subscribe and CreateAccountSubscription actions, make sure that both actions are set to Allow. If either action is set to Deny, the Deny action prevails and your API call fails.
You can't pass an existing IAM role to access other Amazon Web Services services using this API operation. To pass your existing IAM role to Amazon Quick Sight, see Passing IAM roles to Amazon Quick Sight in the Amazon Quick Sight User Guide.
You can't set default resource access on the new account from the Amazon Quick Sight API. Instead, add default resource access from the Amazon Quick Sight console. For more information about setting default resource access to Amazon Web Services services, see Setting default resource access to Amazon Web Services services in the Amazon Quick Sight User Guide.
Parameters:
-
edition(Optional[Edition], default:None) –The edition of Amazon Quick Sight that you want your account to have. Currently, you can choose from
ENTERPRISEorENTERPRISE_AND_Q.If you choose
ENTERPRISE_AND_Q, the following parameters are required:-
FirstName -
LastName -
EmailAddress -
ContactNumber
-
-
authentication_method(AuthenticationMethodOption) –The method that you want to use to authenticate your Quick Sight account.
If you choose
ACTIVE_DIRECTORY, provide anActiveDirectoryNameand anAdminGroupassociated with your Active Directory.If you choose
IAM_IDENTITY_CENTER, provide anAdminGroupassociated with your IAM Identity Center account. -
aws_account_id(AwsAccountId) –The Amazon Web Services account ID of the account that you're using to create your Quick Sight account.
-
account_name(AccountName) –The name of your Amazon Quick Sight account. This name is unique over all of Amazon Web Services, and it appears only when users sign in. You can't change
AccountNamevalue after the Amazon Quick Sight account is created. -
notification_email(String) –The email address that you want Quick Sight to send notifications to regarding your Quick Sight account or Quick Sight subscription.
-
active_directory_name(Optional[String], default:None) –The name of your Active Directory. This field is required if
ACTIVE_DIRECTORYis the selected authentication method of the new Quick Sight account. -
realm(Optional[String], default:None) –The realm of the Active Directory that is associated with your Quick Sight account. This field is required if
ACTIVE_DIRECTORYis the selected authentication method of the new Quick Sight account. -
directory_id(Optional[String], default:None) –The ID of the Active Directory that is associated with your Quick Sight account.
-
admin_group(Optional[GroupsList], default:None) –The admin group associated with your Active Directory or IAM Identity Center account. Either this field or the
AdminProGroupfield is required ifACTIVE_DIRECTORYorIAM_IDENTITY_CENTERis the selected authentication method of the new Quick Sight account.For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
author_group(Optional[GroupsList], default:None) –The author group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
reader_group(Optional[GroupsList], default:None) –The reader group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
admin_pro_group(Optional[GroupsList], default:None) –The admin pro group associated with your Active Directory or IAM Identity Center account. Either this field or the
AdminGroupfield is required ifACTIVE_DIRECTORYorIAM_IDENTITY_CENTERis the selected authentication method of the new Quick Sight account.For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
author_pro_group(Optional[GroupsList], default:None) –The author pro group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
reader_pro_group(Optional[GroupsList], default:None) –The reader pro group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
first_name(Optional[String], default:None) –The first name of the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
last_name(Optional[String], default:None) –The last name of the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
email_address(Optional[String], default:None) –The email address of the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
contact_number(Optional[String], default:None) –A 10-digit phone number for the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
iam_identity_center_instance_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) for the IAM Identity Center instance.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
PreconditionNotMetException–One or more preconditions aren't met.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ResourceUnavailableException–This resource is currently unavailable.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
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 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 | |