# Path: lamvery/clients/base.py
# class BaseClient:
# 
#     __metaclass__ = ABCMeta
# 
#     def __init__(self, region=None, profile=None, dry_run=False):
#         self._session = boto3.session.Session(
#             profile_name=profile, region_name=region)
#         self._dry_run = dry_run
#         self._sts = self._session.client('sts')
# 
#     def get_account_id(self):
#         return self._sts.get_caller_identity().get('Account')


import base64
from lamvery.clients.base import BaseClient
# -*- coding: utf-8 -*-




class KmsClient(BaseClient):

    def __init__(self, *args, **kwargs):
        super(KmsClient, self).__init__(*args, **kwargs)
        self._kms = self._session.client('kms')

    def encrypt(self, key_id, text):

# Path: lamvery/clients/base.py
# class BaseClient:
# 
#     __metaclass__ = ABCMeta
# 
#     def __init__(self, region=None, profile=None, dry_run=False):
#         self._session = boto3.session.Session(
#             profile_name=profile, region_name=region)
#         self._dry_run = dry_run
#         self._sts = self._session.client('sts')
# 
#     def get_account_id(self):
#         return self._sts.get_caller_identity().get('Account')


# Path: lamvery/clients/kms.py
import base64
from lamvery.clients.base import BaseClient

# -*- coding: utf-8 -*-




class KmsClient(BaseClient):

    def __init__(self, *args, **kwargs):
        super(KmsClient, self).__init__(*args, **kwargs)
        self._kms = self._session.client('kms')

    def encrypt(self, key_id, text):

        res = self._kms.encrypt(KeyId=key_id, Plaintext=text)