1 from typing import Any, Dict, List, Mapping, Optional, Type
\r
2 from boto.connection import AWSQueryConnection
\r
4 class KMSConnection(AWSQueryConnection):
\r
5 APIVersion = ... # type: str
\r
6 DefaultRegionName = ... # type: str
\r
7 DefaultRegionEndpoint = ... # type: str
\r
8 ServiceName = ... # type: str
\r
9 TargetPrefix = ... # type: str
\r
10 ResponseError = ... # type: Type[Exception]
\r
11 region = ... # type: Any
\r
12 def __init__(self, **kwargs) -> None: ...
\r
13 def create_alias(self, alias_name: str, target_key_id: str) -> Optional[Dict[str, Any]]: ...
\r
14 def create_grant(self, key_id: str, grantee_principal: str, retiring_principal: Optional[str] = ..., operations: Optional[List[str]] = ..., constraints: Optional[Dict[str, Dict[str, str]]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
\r
15 def create_key(self, policy: Optional[str] = ..., description: Optional[str] = ..., key_usage: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
\r
16 def decrypt(self, ciphertext_blob: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
\r
17 def delete_alias(self, alias_name: str) -> Optional[Dict[str, Any]]: ...
\r
18 def describe_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...
\r
19 def disable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...
\r
20 def disable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ...
\r
21 def enable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...
\r
22 def enable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ...
\r
23 def encrypt(self, key_id: str, plaintext: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
\r
24 def generate_data_key(self, key_id: str, encryption_context: Optional[Mapping[str, Any]] = ..., number_of_bytes: Optional[int] = ..., key_spec: Optional[str] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
\r
25 def generate_data_key_without_plaintext(self, key_id: str, encryption_context: Optional[Mapping[str, Any]] = ..., key_spec: Optional[str] = ..., number_of_bytes: Optional[int] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
\r
26 def generate_random(self, number_of_bytes: Optional[int] = ...) -> Optional[Dict[str, Any]]: ...
\r
27 def get_key_policy(self, key_id: str, policy_name: str) -> Optional[Dict[str, Any]]: ...
\r
28 def get_key_rotation_status(self, key_id: str) -> Optional[Dict[str, Any]]: ...
\r
29 def list_aliases(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
\r
30 def list_grants(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
\r
31 def list_key_policies(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
\r
32 def list_keys(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
\r
33 def put_key_policy(self, key_id: str, policy_name: str, policy: str) -> Optional[Dict[str, Any]]: ...
\r
34 def re_encrypt(self, ciphertext_blob: bytes, destination_key_id: str, source_encryption_context: Optional[Mapping[str, Any]] = ..., destination_encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
\r
35 def retire_grant(self, grant_token: str) -> Optional[Dict[str, Any]]: ...
\r
36 def revoke_grant(self, key_id: str, grant_id: str) -> Optional[Dict[str, Any]]: ...
\r
37 def update_key_description(self, key_id: str, description: str) -> Optional[Dict[str, Any]]: ...
\r