create_key_value_store
async
¶
create_key_value_store(
name: KeyValueStoreName,
*,
config_overrides: Optional[AsyncCloudFrontClientConfig] = None,
comment: Optional[KeyValueStoreComment] = None,
import_source: Optional[ImportSource] = None,
tags: Optional[Tags] = None,
) -> CreateKeyValueStoreResult
Specifies the key value store resource to add to your account. In your account, the key value store names must be unique. You can also import key value store data in JSON format from an S3 bucket by providing a valid ImportSource that you own.
Parameters:
-
name(KeyValueStoreName) –The name of the key value store. The minimum length is 1 character and the maximum length is 64 characters.
-
comment(Optional[KeyValueStoreComment], default:None) –The comment of the key value store.
-
import_source(Optional[ImportSource], default:None) –The S3 bucket that provides the source for the import. The source must be in a valid JSON format.
Raises:
-
AccessDenied–Access denied.
-
EntityAlreadyExists–The entity already exists. You must provide a unique entity.
-
EntityLimitExceeded–The entity limit has been exceeded.
-
EntitySizeLimitExceeded–The entity size limit was exceeded.
-
InvalidArgument–An argument is invalid.
-
UnsupportedOperation–This operation is not supported in this Amazon Web Services Region.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a KeyValueStore Use the following command to create a KeyValueStore.
>>> await client.create_key_value_store(name='my-keyvaluestore-name', comment='my-key-valuestore-comment', import_source={'SourceType': 'S3', 'SourceARN': 'arn:aws:s3:::amzn-s3-demo-bucket/validJSON.json'})
Source code in docs_src/capo_cloudfront/_services/async_cloud_front.py
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 1944 1945 1946 1947 1948 1949 1950 | |