

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# GetPublicBuildBatch
<a name="API_GetPublicBuildBatch"></a>

**注記**  
この API 要素は、 AWS CLI または AWS SDKsに含まれていません。

## リクエストの構文
<a name="API_GetPublicBuildBatch_RequestSyntax"></a>

```
{
   "publicBuildBatchAlias": "{{string}}"
}
```

## リクエストパラメーター
<a name="API_GetPublicBuildBatch_RequestParameters"></a>

すべてのアクションに共通のパラメータの詳細については、「[共通パラメータ](https://docs.aws.amazon.com/codebuild/latest/APIReference/CommonParameters.html)」を参照してください。

リクエストは以下のデータを JSON 形式で受け入れます。

**注記**  
次のリストで必須のパラメーターを説明します。

 ** [publicBuildBatchAlias](#API_GetPublicBuildBatch_RequestSyntax) **   <a name="CodeBuild-GetPublicBuildBatch-request-publicBuildBatchAlias"></a>
タイプ: 文字列  
長さの制限: 最小長は 1 です。最大長は 1,024 です。  
パターン: `^[0-9a-zA-Z%+=]+:[a-z0-9]{8}(-[a-z0-9]{4}){3}-[a-z0-9]{12}$`   
必須: はい

## レスポンスの構文
<a name="API_GetPublicBuildBatch_ResponseSyntax"></a>

```
{
   "publicBuildBatch": { 
      "artifacts": { 
         "artifactIdentifier": "string",
         "packaging": "string",
         "type": "string"
      },
      "buildBatchConfig": { 
         "combineArtifacts": boolean,
         "restrictions": { 
            "[computeTypesAllowed](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BatchRestrictions.html)": [ "string" ],
            "[maximumBuildsAllowed](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BatchRestrictions.html)": number
         },
         "timeoutInMins": number
      },
      "buildBatchNumber": number,
      "buildBatchStatus": "string",
      "buildGroups": [ 
         { 
            "currentBuildSummary": { 
               "buildStatus": "string",
               "primaryArtifact": { 
                  "[identifier](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                  "[location](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                  "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string"
               },
               "publicBuildAlias": "string",
               "requestedOn": number,
               "secondaryArtifacts": [ 
                  { 
                     "[identifier](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                     "[location](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                     "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string"
                  }
               ]
            },
            "dependsOn": [ "string" ],
            "identifier": "string",
            "ignoreFailure": boolean,
            "priorBuildSummaryList": [ 
               { 
                  "buildStatus": "string",
                  "primaryArtifact": { 
                     "[identifier](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                     "[location](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                     "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string"
                  },
                  "publicBuildAlias": "string",
                  "requestedOn": number,
                  "secondaryArtifacts": [ 
                     { 
                        "[identifier](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                        "[location](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string",
                        "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ResolvedArtifact.html)": "string"
                     }
                  ]
               }
            ]
         }
      ],
      "buildTimeoutInMinutes": number,
      "complete": boolean,
      "currentPhase": "string",
      "endTime": number,
      "environment": { 
         "computeType": "string",
         "environmentVariables": [ 
            { 
               "[name](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string",
               "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string",
               "[value](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string"
            }
         ],
         "image": "string",
         "type": "string"
      },
      "id": "string",
      "initiator": "string",
      "logsStatus": { 
         "cloudWatchLogsStatus": "string",
         "s3LogsStatus": "string"
      },
      "phases": [ 
         { 
            "[contexts](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildBatchPhase.html)": [ 
               { 
                  "[message](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_PhaseContext.html)": "string",
                  "[statusCode](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_PhaseContext.html)": "string"
               }
            ],
            "[durationInSeconds](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildBatchPhase.html)": number,
            "[endTime](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildBatchPhase.html)": number,
            "[phaseStatus](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildBatchPhase.html)": "string",
            "[phaseType](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildBatchPhase.html)": "string",
            "[startTime](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BuildBatchPhase.html)": number
         }
      ],
      "projectName": "string",
      "publicBuildBatchAlias": "string",
      "queuedTimeoutInMinutes": number,
      "resolvedSourceVersion": "string",
      "secondaryArtifacts": [ 
         { 
            "artifactIdentifier": "string",
            "packaging": "string",
            "type": "string"
         }
      ],
      "secondarySources": [ 
         { 
            "buildspec": "string",
            "gitCloneDepth": number,
            "gitSubmodulesConfig": { 
               "[fetchSubmodules](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_GitSubmodulesConfig.html)": boolean
            },
            "location": "string",
            "sourceIdentifier": "string",
            "type": "string"
         }
      ],
      "secondarySourceVersions": [ 
         { 
            "[sourceIdentifier](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSourceVersion.html)": "string",
            "[sourceVersion](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSourceVersion.html)": "string"
         }
      ],
      "source": { 
         "buildspec": "string",
         "gitCloneDepth": number,
         "gitSubmodulesConfig": { 
            "[fetchSubmodules](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_GitSubmodulesConfig.html)": boolean
         },
         "location": "string",
         "sourceIdentifier": "string",
         "type": "string"
      },
      "sourceVersion": "string",
      "startTime": number
   }
}
```

## レスポンス要素
<a name="API_GetPublicBuildBatch_ResponseElements"></a>

アクションが成功すると、サービスは HTTP 200 レスポンスを返します。

サービスから以下のデータが JSON 形式で返されます。

 ** [publicBuildBatch](#API_GetPublicBuildBatch_ResponseSyntax) **   <a name="CodeBuild-GetPublicBuildBatch-response-publicBuildBatch"></a>
型: [PublicBuildBatch](API_PublicBuildBatch.md) オブジェクト

## エラー
<a name="API_GetPublicBuildBatch_Errors"></a>

すべてのアクションに共通するエラーの詳細については、[「一般的なエラー](https://docs.aws.amazon.com/codebuild/latest/APIReference/CommonErrors.html)」を参照してください。

 **InvalidInputException**   
HTTP ステータスコード: 400

 **ResourceNotFoundException**   
HTTP ステータスコード: 400