

# 在 AWS Glue 中查看蓝图
<a name="viewing_blueprints"></a>

查看蓝图，了解蓝图描述、状态和参数规范，并下载蓝图 ZIP 格式归档。

您可以使用 AWS Glue 控制台、AWS Glue API 或 AWS Command Line Interface（AWS CLI）来查看蓝图。

**查看蓝图（控制台）**

1. 打开 AWS Glue 控制台，地址：[https://console.aws.amazon.com/glue/](https://console.aws.amazon.com/glue/)。

1. 在导航窗格中，选择 **blueprints（蓝图）**。

1. 在 **blueprints（蓝图）**页面上，选择一个蓝图。然后，在 **Actions (操作)** 菜单上，选择 **View (查看)**。

**查看蓝图（AWS CLI）**
+ 输入以下命令，仅查看蓝图名称、描述和状态。将 *<blueprint-name>* 替换为要查看的蓝图的名称。

  ```
  aws glue get-blueprint --name <blueprint-name>
  ```

  命令输出类似如下。

  ```
  {
      "Blueprint": {
          "Name": "myDemoBP",
          "CreatedOn": 1587414516.92,
          "LastModifiedOn": 1587428838.671,
          "BlueprintLocation": "s3://amzn-s3-demo-bucket1/demo/DemoBlueprintProject.zip",
          "Status": "ACTIVE"
      }
  }
  ```

  输入以下命令，同时查看参数规范。

  ```
  aws glue get-blueprint --name <blueprint-name>  --include-parameter-spec
  ```

  命令输出类似如下。

  ```
  {
      "Blueprint": {
          "Name": "myDemoBP",
          "CreatedOn": 1587414516.92,
          "LastModifiedOn": 1587428838.671,
          "ParameterSpec": "{\"WorkflowName\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null},\"PassRole\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null},\"DynamoDBTableName\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null},\"ScriptLocation\":{\"type\":\"String\",\"collection\":false,\"description\":null,\"defaultValue\":null,\"allowedValues\":null}}",
          "BlueprintLocation": "s3://awsexamplebucket1/demo/DemoBlueprintProject.zip",
          "Status": "ACTIVE"
      }
  }
  ```

  添加 `--include-blueprint` 参数以便在输出中包含 URL，您可以将其粘贴到浏览器，以下载 AWS Glue 存储的蓝图 ZIP 格式归档。

**另请参阅：**  
[AWS Glue 中的蓝图概览](blueprints-overview.md)