create_approval_policy
async
¶
create_approval_policy(
policy_id: PolicyId,
name: PolicyName,
actions: GovernedActionList,
asset_types: AssetTypeList,
applicable_to: ApplicableTo,
approval_groups: ApprovalGroupList,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
description: Optional[PolicyDescription] = None,
) -> CreateApprovalPolicyResponse
Creates an approval policy in Quick Sight.
Parameters:
-
policy_id(PolicyId) –The unique identifier to assign to the approval policy. You cannot change this value after you create the policy.
-
name(PolicyName) –The name of the approval policy.
-
description(Optional[PolicyDescription], default:None) –A description of the approval policy.
-
actions(GovernedActionList) –The list of governed actions that trigger the approval workflow.
-
asset_types(AssetTypeList) –The list of asset types that the approval policy applies to.
-
applicable_to(ApplicableTo) –The scoping configuration that determines who the approval policy applies to.
-
approval_groups(ApprovalGroupList) –The list of group ARNs whose members can approve requests.
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.
-
LimitExceededException–A limit is exceeded.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
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 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 | |