def base64(value):
    """The intrinsic function Fn::Base64 returns the Base64 representation of \
    the input string.

    This function is typically used to pass encoded data to
    Amazon EC2 instances by way of the UserData property.

    Args:
        value: The string value you want to convert to Base64

    Returns: The original string, in Base64 representation
    """
    return {'Fn::Base64': value}