create_designation
async
¶
create_designation(
domain_identifier: DomainId,
name: DesignationName,
policy: CedarDesignationPolicy,
*,
config_overrides: Optional[AsyncDataZoneClientConfig] = None,
description: Optional[Description] = None,
deletion_protection: Optional[bool] = None,
) -> CreateDesignationOutput
Creates a new user-defined designation with a Cedar permit policy. The designation defines a named role that can be assigned to project members through CreateProjectMembership or granted through AddPolicyGrant.
Parameters:
-
domain_identifier(DomainId) –The identifier of the Amazon DataZone domain in which the designation is created.
-
name(DesignationName) –The name of the designation. The name must be unique within the domain.
-
description(Optional[Description], default:None) –A human-readable description of the designation and its intended use.
-
policy(CedarDesignationPolicy) –The Cedar permit policy that defines the actions holders of this designation are allowed to perform.
-
deletion_protection(Optional[bool], default:None) –Specifies whether deletion protection is enabled for this designation. Defaults to
truewhen omitted. When enabled,DeleteDesignationis rejected until protection is disabled throughUpdateDesignation.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ThrottlingException–The request was denied due to request throttling.
-
UnauthorizedException–You do not have permission to perform this action.
-
ConflictException–There is a conflict while performing this action.
-
InternalServerException–The request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The specified resource cannot be found.
-
ServiceQuotaExceededException–The request has exceeded the specified service quota.
-
ValidationException–The input fails to satisfy the constraints specified by the Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_datazone/_services/async_data_zone.py
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 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 | |