def sync_one(self, aws_syncr, amazon, key):
        """Make sure this key is as defined"""
        key_info = amazon.kms.key_info(key.name, key.location)
        if not key_info:
            amazon.kms.create_key(key.name, key.description, key.location, key.grant, key.policy.document)
        else:
            amazon.kms.modify_key(key_info, key.name, key.description, key.location, key.grant, key.policy.document)
def sync_one ( self , aws_syncr , amazon , key ) : key_info = amazon . kms . key_info ( key . name , key . location ) if not key_info : amazon . kms . create_key ( key . name , key . description , key . location , key . grant , key . policy . document ) else : amazon . kms . modify_key ( key_info , key . name , key . description , key . location , key . grant , key . policy . document )
Make sure this key is as defined