

# AWS Glue でブループリントを表示する
<a name="viewing_blueprints"></a>

設計図を表示して、その説明とステータスおよびパラメータ仕様を確認し、設計図の ZIP アーカイブをダウンロードします。

ブループリントを表示するには、AWS Glue コンソール、AWS Glue API、または AWS Command Line Interface (AWS CLI) を使用します。

**設計図を表示するには (コンソール)**

1. [https://console.aws.amazon.com/glue/](https://console.aws.amazon.com/glue/) で AWS 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 を含めることもできます。この URL をブラウザに貼り付けて、AWS Glue に保存されているブループリントの zip アーカイブをダウンロードできます。

**以下も参照してください。**  
[AWS Glue のブループリント概要](blueprints-overview.md)