|
| 1 | +# Stubs for boto.kms.layer1 (Python 3.6) |
| 2 | +# |
| 3 | +# NOTE: This dynamically typed stub was automatically generated by stubgen. |
| 4 | + |
| 5 | +from typing import Any, Dict, List, Mapping, Optional, Type |
| 6 | +from boto.connection import AWSQueryConnection |
| 7 | + |
| 8 | +class KMSConnection(AWSQueryConnection): |
| 9 | + APIVersion = ... # type: str |
| 10 | + DefaultRegionName = ... # type: str |
| 11 | + DefaultRegionEndpoint = ... # type: str |
| 12 | + ServiceName = ... # type: str |
| 13 | + TargetPrefix = ... # type: str |
| 14 | + ResponseError = ... # type: Type[Exception] |
| 15 | + region = ... # type: Any |
| 16 | + def __init__(self, **kwargs) -> None: ... |
| 17 | + def create_alias(self, alias_name: str, target_key_id: str) -> Optional[Dict[str, Any]]: ... |
| 18 | + 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]]: ... |
| 19 | + def create_key(self, policy: Optional[str] = ..., description: Optional[str] = ..., key_usage: Optional[str] = ...) -> Optional[Dict[str, Any]]: ... |
| 20 | + def decrypt(self, ciphertext_blob: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ... |
| 21 | + def delete_alias(self, alias_name: str) -> Optional[Dict[str, Any]]: ... |
| 22 | + def describe_key(self, key_id: str) -> Optional[Dict[str, Any]]: ... |
| 23 | + def disable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ... |
| 24 | + def disable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ... |
| 25 | + def enable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ... |
| 26 | + def enable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ... |
| 27 | + def encrypt(self, key_id: str, plaintext: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ... |
| 28 | + 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]]: ... |
| 29 | + 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]]: ... |
| 30 | + def generate_random(self, number_of_bytes: Optional[int] = ...) -> Optional[Dict[str, Any]]: ... |
| 31 | + def get_key_policy(self, key_id: str, policy_name: str) -> Optional[Dict[str, Any]]: ... |
| 32 | + def get_key_rotation_status(self, key_id: str) -> Optional[Dict[str, Any]]: ... |
| 33 | + def list_aliases(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ... |
| 34 | + def list_grants(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ... |
| 35 | + def list_key_policies(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ... |
| 36 | + def list_keys(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ... |
| 37 | + def put_key_policy(self, key_id: str, policy_name: str, policy: str) -> Optional[Dict[str, Any]]: ... |
| 38 | + 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]]: ... |
| 39 | + def retire_grant(self, grant_token: str) -> Optional[Dict[str, Any]]: ... |
| 40 | + def revoke_grant(self, key_id: str, grant_id: str) -> Optional[Dict[str, Any]]: ... |
| 41 | + def update_key_description(self, key_id: str, description: str) -> Optional[Dict[str, Any]]: ... |
0 commit comments