import sys
import json

from utils import run_shell_command
from sagemaker.generate_resource_names import generate_resource_names


def describe_deployment(deployment_name):
    _, _, _, endpoint_name = generate_resource_names(deployment_name)

    result = run_shell_command(
        ["aws", "sagemaker", "describe-endpoint", "--endpoint-name", endpoint_name]
    )
    print(json.dumps(result, indent=2))


if __name__ == "__main__":
    if len(sys.argv) != 2:
        raise Exception("Please provide deployment name, bundle path and API name")
    deployment_name = sys.argv[1]

    describe_deployment(deployment_name)

a18a9d02b0a6824148f72a41c3272de216532850
<mask token>

<mask token>


def describe_deployment(deployment_name):
    _, _, _, endpoint_name = generate_resource_names(deployment_name)
    result = run_shell_command(['aws', 'sagemaker', 'describe-endpoint',
        '--endpoint-name', endpoint_name])
    print(json.dumps(result, indent=2))


<mask token>

<mask token>


def describe_deployment(deployment_name):
    _, _, _, endpoint_name = generate_resource_names(deployment_name)
    result = run_shell_command(['aws', 'sagemaker', 'describe-endpoint',
        '--endpoint-name', endpoint_name])
    print(json.dumps(result, indent=2))


if __name__ == '__main__':
    if len(sys.argv) != 2:
        raise Exception(
            'Please provide deployment name, bundle path and API name')
    deployment_name = sys.argv[1]
    describe_deployment(deployment_name)

import sys
import json
from utils import run_shell_command
from sagemaker.generate_resource_names import generate_resource_names


def describe_deployment(deployment_name):
    _, _, _, endpoint_name = generate_resource_names(deployment_name)
    result = run_shell_command(['aws', 'sagemaker', 'describe-endpoint',
        '--endpoint-name', endpoint_name])
    print(json.dumps(result, indent=2))


if __name__ == '__main__':
    if len(sys.argv) != 2:
        raise Exception(
            'Please provide deployment name, bundle path and API name')
    deployment_name = sys.argv[1]
    describe_deployment(deployment_name)

import sys
import json

from utils import run_shell_command
from sagemaker.generate_resource_names import generate_resource_names


def describe_deployment(deployment_name):
    _, _, _, endpoint_name = generate_resource_names(deployment_name)

    result = run_shell_command(
        ["aws", "sagemaker", "describe-endpoint", "--endpoint-name", endpoint_name]
    )
    print(json.dumps(result, indent=2))


if __name__ == "__main__":
    if len(sys.argv) != 2:
        raise Exception("Please provide deployment name, bundle path and API name")
    deployment_name = sys.argv[1]

    describe_deployment(deployment_name)
