Doc AWS SDK Examples GitHub リポジトリには、他にも SDK の例があります。 AWS
翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。
AWS SDK または CLI ListSteps
で を使用する
以下のコード例は、ListSteps
の使用方法を示しています。
- CLI
-
- AWS CLI
-
次のコマンドは、クラスター ID
j-3SD91U2E1L2QX
を持つクラスターのすべてのステップを一覧表示します。aws emr list-steps --cluster-id
j-3SD91U2E1L2QX
-
API の詳細については、AWS CLI コマンドリファレンスの「ListSteps
」を参照してください。
-
- Python
-
- SDK for Python (Boto3)
-
注記
GitHub には、その他のリソースもあります。用例一覧を検索し、AWS コード例リポジトリ
での設定と実行の方法を確認してください。 def list_steps(cluster_id, emr_client): """ Gets a list of steps for the specified cluster. In this example, all steps are returned, including completed and failed steps. :param cluster_id: The ID of the cluster. :param emr_client: The Boto3 EMR client object. :return: The list of steps for the specified cluster. """ try: response = emr_client.list_steps(ClusterId=cluster_id) steps = response["Steps"] logger.info("Got %s steps for cluster %s.", len(steps), cluster_id) except ClientError: logger.exception("Couldn't get steps for cluster %s.", cluster_id) raise else: return steps
-
API の詳細については、AWS SDK for Python (Boto3) API リファレンスの「ListSteps」を参照してください。
-
DescribeStep
RunJobFlow