1 from typing import Any, Mapping, Type
3 from boto.connection import AWSQueryConnection
5 class KMSConnection(AWSQueryConnection):
8 DefaultRegionEndpoint: str
11 ResponseError: Type[Exception]
13 def __init__(self, **kwargs) -> None: ...
14 def create_alias(self, alias_name: str, target_key_id: str) -> dict[str, Any] | None: ...
18 grantee_principal: str,
19 retiring_principal: str | None = ...,
20 operations: list[str] | None = ...,
21 constraints: dict[str, dict[str, str]] | None = ...,
22 grant_tokens: list[str] | None = ...,
23 ) -> dict[str, Any] | None: ...
25 self, policy: str | None = ..., description: str | None = ..., key_usage: str | None = ...
26 ) -> dict[str, Any] | None: ...
28 self, ciphertext_blob: bytes, encryption_context: Mapping[str, Any] | None = ..., grant_tokens: list[str] | None = ...
29 ) -> dict[str, Any] | None: ...
30 def delete_alias(self, alias_name: str) -> dict[str, Any] | None: ...
31 def describe_key(self, key_id: str) -> dict[str, Any] | None: ...
32 def disable_key(self, key_id: str) -> dict[str, Any] | None: ...
33 def disable_key_rotation(self, key_id: str) -> dict[str, Any] | None: ...
34 def enable_key(self, key_id: str) -> dict[str, Any] | None: ...
35 def enable_key_rotation(self, key_id: str) -> dict[str, Any] | None: ...
40 encryption_context: Mapping[str, Any] | None = ...,
41 grant_tokens: list[str] | None = ...,
42 ) -> dict[str, Any] | None: ...
43 def generate_data_key(
46 encryption_context: Mapping[str, Any] | None = ...,
47 number_of_bytes: int | None = ...,
48 key_spec: str | None = ...,
49 grant_tokens: list[str] | None = ...,
50 ) -> dict[str, Any] | None: ...
51 def generate_data_key_without_plaintext(
54 encryption_context: Mapping[str, Any] | None = ...,
55 key_spec: str | None = ...,
56 number_of_bytes: int | None = ...,
57 grant_tokens: list[str] | None = ...,
58 ) -> dict[str, Any] | None: ...
59 def generate_random(self, number_of_bytes: int | None = ...) -> dict[str, Any] | None: ...
60 def get_key_policy(self, key_id: str, policy_name: str) -> dict[str, Any] | None: ...
61 def get_key_rotation_status(self, key_id: str) -> dict[str, Any] | None: ...
62 def list_aliases(self, limit: int | None = ..., marker: str | None = ...) -> dict[str, Any] | None: ...
63 def list_grants(self, key_id: str, limit: int | None = ..., marker: str | None = ...) -> dict[str, Any] | None: ...
64 def list_key_policies(self, key_id: str, limit: int | None = ..., marker: str | None = ...) -> dict[str, Any] | None: ...
65 def list_keys(self, limit: int | None = ..., marker: str | None = ...) -> dict[str, Any] | None: ...
66 def put_key_policy(self, key_id: str, policy_name: str, policy: str) -> dict[str, Any] | None: ...
69 ciphertext_blob: bytes,
70 destination_key_id: str,
71 source_encryption_context: Mapping[str, Any] | None = ...,
72 destination_encryption_context: Mapping[str, Any] | None = ...,
73 grant_tokens: list[str] | None = ...,
74 ) -> dict[str, Any] | None: ...
75 def retire_grant(self, grant_token: str) -> dict[str, Any] | None: ...
76 def revoke_grant(self, key_id: str, grant_id: str) -> dict[str, Any] | None: ...
77 def update_key_description(self, key_id: str, description: str) -> dict[str, Any] | None: ...