create_data_lake_namespace
async
¶
create_data_lake_namespace(
instance_id: UUID,
name: DataLakeNamespaceName,
*,
config_overrides: Optional[AsyncSupplyChainClientConfig] = None,
description: Optional[DataLakeNamespaceDescription] = None,
tags: Optional[TagMap] = None,
) -> CreateDataLakeNamespaceResponse
Enables you to programmatically create an Amazon Web Services Supply Chain data lake namespace. Developers can create the namespaces for a given instance ID.
Parameters:
-
instance_id(UUID) –The Amazon Web Services Supply Chain instance identifier.
-
name(DataLakeNamespaceName) –The name of the namespace. Noted you cannot create namespace with name starting with asc, default, scn, aws, amazon, amzn
-
description(Optional[DataLakeNamespaceDescription], default:None) –The description of the namespace.
-
tags(Optional[TagMap], default:None) –The tags of the namespace.
Raises:
-
AccessDeniedException–You do not have the required privileges to perform this action.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalServerException–Unexpected error during processing of request.
-
ResourceNotFoundException–Request references a resource which does not exist.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ThrottlingException–Request was denied due to request throttling.
-
ValidationException–The input does not satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Create a data lake namespace
>>> await client.create_data_lake_namespace(instance_id='1877dd20-dee9-4639-8e99-cb67acf21fe5', name='my_namespace', description='This is my AWS Supply Chain namespace', tags={'tagKey1': 'tagValue1', 'tagKey2': 'tagValue2'})
Source code in docs_src/capo_supplychain/_services/async_supply_chain.py
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 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 | |