mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Stubs for boto.kms (#1081)
* Stubs for boto.kms * Added types for params * Added return type and fixed signatures(including review changes) * Removed make_request from stub(https://github.com/python/mypy/issues/1237). Fixed Dict issue. * Fixed typo * Let's be precise about return type
This commit is contained in:
committed by
Jelle Zijlstra
parent
b03e79886e
commit
35b6795183
9
third_party/2and3/boto/kms/__init__.pyi
vendored
Normal file
9
third_party/2and3/boto/kms/__init__.pyi
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Stubs for boto.kms (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import List
|
||||
import boto
|
||||
|
||||
def regions() -> List[boto.regioninfo.RegionInfo]: ...
|
||||
def connect_to_region(region_name, **kw_params): ...
|
||||
21
third_party/2and3/boto/kms/exceptions.pyi
vendored
Normal file
21
third_party/2and3/boto/kms/exceptions.pyi
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# Stubs for boto.kms.exceptions (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from boto.exception import BotoServerError
|
||||
|
||||
class InvalidGrantTokenException(BotoServerError): ...
|
||||
class DisabledException(BotoServerError): ...
|
||||
class LimitExceededException(BotoServerError): ...
|
||||
class DependencyTimeoutException(BotoServerError): ...
|
||||
class InvalidMarkerException(BotoServerError): ...
|
||||
class AlreadyExistsException(BotoServerError): ...
|
||||
class InvalidCiphertextException(BotoServerError): ...
|
||||
class KeyUnavailableException(BotoServerError): ...
|
||||
class InvalidAliasNameException(BotoServerError): ...
|
||||
class UnsupportedOperationException(BotoServerError): ...
|
||||
class InvalidArnException(BotoServerError): ...
|
||||
class KMSInternalException(BotoServerError): ...
|
||||
class InvalidKeyUsageException(BotoServerError): ...
|
||||
class MalformedPolicyDocumentException(BotoServerError): ...
|
||||
class NotFoundException(BotoServerError): ...
|
||||
41
third_party/2and3/boto/kms/layer1.pyi
vendored
Normal file
41
third_party/2and3/boto/kms/layer1.pyi
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
# Stubs for boto.kms.layer1 (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Dict, List, Mapping, Optional, Type
|
||||
from boto.connection import AWSQueryConnection
|
||||
|
||||
class KMSConnection(AWSQueryConnection):
|
||||
APIVersion = ... # type: str
|
||||
DefaultRegionName = ... # type: str
|
||||
DefaultRegionEndpoint = ... # type: str
|
||||
ServiceName = ... # type: str
|
||||
TargetPrefix = ... # type: str
|
||||
ResponseError = ... # type: Type[Exception]
|
||||
region = ... # type: Any
|
||||
def __init__(self, **kwargs) -> None: ...
|
||||
def create_alias(self, alias_name: str, target_key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
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]]: ...
|
||||
def create_key(self, policy: Optional[str] = ..., description: Optional[str] = ..., key_usage: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
def decrypt(self, ciphertext_blob: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
def delete_alias(self, alias_name: str) -> Optional[Dict[str, Any]]: ...
|
||||
def describe_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def disable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def disable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def enable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def enable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def encrypt(self, key_id: str, plaintext: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
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]]: ...
|
||||
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]]: ...
|
||||
def generate_random(self, number_of_bytes: Optional[int] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
def get_key_policy(self, key_id: str, policy_name: str) -> Optional[Dict[str, Any]]: ...
|
||||
def get_key_rotation_status(self, key_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def list_aliases(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
def list_grants(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
def list_key_policies(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
def list_keys(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...
|
||||
def put_key_policy(self, key_id: str, policy_name: str, policy: str) -> Optional[Dict[str, Any]]: ...
|
||||
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]]: ...
|
||||
def retire_grant(self, grant_token: str) -> Optional[Dict[str, Any]]: ...
|
||||
def revoke_grant(self, key_id: str, grant_id: str) -> Optional[Dict[str, Any]]: ...
|
||||
def update_key_description(self, key_id: str, description: str) -> Optional[Dict[str, Any]]: ...
|
||||
Reference in New Issue
Block a user