def METHOD_NAME(self) -> Optional[str]:
    """
    Protocol to use with EC2 metadata service endpoint.Valid values are `IPv4` and `IPv6`. Can also be configured using the
    `AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE` environment variable.
    """
    return __config__.get('ec2MetadataServiceEndpointMode')