CloudFrontKeyValueStoreClient#
Index > CloudFrontKeyValueStore > CloudFrontKeyValueStoreClient
Auto-generated documentation for CloudFrontKeyValueStore type annotations stubs module mypy-boto3-cloudfront-keyvaluestore.
CloudFrontKeyValueStoreClient#
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore")
.
boto3 documentation
# CloudFrontKeyValueStoreClient usage example
from boto3.session import Session
from mypy_boto3_cloudfront_keyvaluestore.client import CloudFrontKeyValueStoreClient
def get_cloudfront-keyvaluestore_client() -> CloudFrontKeyValueStoreClient:
return Session().client("cloudfront-keyvaluestore")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("cloudfront-keyvaluestore").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("cloudfront-keyvaluestore")
try:
do_something(client)
except (
client.exceptions.AccessDeniedException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalServerException,
client.exceptions.ResourceNotFoundException,
client.exceptions.ServiceQuotaExceededException,
client.exceptions.ValidationException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_cloudfront_keyvaluestore.client import Exceptions
def handle_error(exc: Exceptions.AccessDeniedException) -> None:
...
Methods#
can_paginate#
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
generate_presigned_url#
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
delete_key#
Deletes the key value pair specified by the key.
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").delete_key
method.
boto3 documentation
# delete_key method definition
def delete_key(
self,
*,
KvsARN: str,
Key: str,
IfMatch: str,
) -> DeleteKeyResponseTypeDef: # (1)
...
# delete_key method usage example with argument unpacking
kwargs: DeleteKeyRequestRequestTypeDef = { # (1)
"KvsARN": ...,
"Key": ...,
"IfMatch": ...,
}
parent.delete_key(**kwargs)
describe_key_value_store#
Returns metadata information about Key Value Store.
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").describe_key_value_store
method.
boto3 documentation
# describe_key_value_store method definition
def describe_key_value_store(
self,
*,
KvsARN: str,
) -> DescribeKeyValueStoreResponseTypeDef: # (1)
...
# describe_key_value_store method usage example with argument unpacking
kwargs: DescribeKeyValueStoreRequestRequestTypeDef = { # (1)
"KvsARN": ...,
}
parent.describe_key_value_store(**kwargs)
get_key#
Returns a key value pair.
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").get_key
method.
boto3 documentation
# get_key method definition
def get_key(
self,
*,
KvsARN: str,
Key: str,
) -> GetKeyResponseTypeDef: # (1)
...
# get_key method usage example with argument unpacking
kwargs: GetKeyRequestRequestTypeDef = { # (1)
"KvsARN": ...,
"Key": ...,
}
parent.get_key(**kwargs)
list_keys#
Returns a list of key value pairs.
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").list_keys
method.
boto3 documentation
# list_keys method definition
def list_keys(
self,
*,
KvsARN: str,
NextToken: str = ...,
MaxResults: int = ...,
) -> ListKeysResponseTypeDef: # (1)
...
# list_keys method usage example with argument unpacking
kwargs: ListKeysRequestRequestTypeDef = { # (1)
"KvsARN": ...,
}
parent.list_keys(**kwargs)
put_key#
Creates a new key value pair or replaces the value of an existing key.
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").put_key
method.
boto3 documentation
# put_key method definition
def put_key(
self,
*,
Key: str,
Value: str,
KvsARN: str,
IfMatch: str,
) -> PutKeyResponseTypeDef: # (1)
...
# put_key method usage example with argument unpacking
kwargs: PutKeyRequestRequestTypeDef = { # (1)
"Key": ...,
"Value": ...,
"KvsARN": ...,
"IfMatch": ...,
}
parent.put_key(**kwargs)
update_keys#
Puts or Deletes multiple key value pairs in a single, all-or-nothing operation.
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").update_keys
method.
boto3 documentation
# update_keys method definition
def update_keys(
self,
*,
KvsARN: str,
IfMatch: str,
Puts: Sequence[PutKeyRequestListItemTypeDef] = ..., # (1)
Deletes: Sequence[DeleteKeyRequestListItemTypeDef] = ..., # (2)
) -> UpdateKeysResponseTypeDef: # (3)
...
# update_keys method usage example with argument unpacking
kwargs: UpdateKeysRequestRequestTypeDef = { # (1)
"KvsARN": ...,
"IfMatch": ...,
}
parent.update_keys(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("cloudfront-keyvaluestore").get_paginator
method with overloads.
client.get_paginator("list_keys")
-> ListKeysPaginator