Skip to content

describe_association_execution_targets

describe_association_execution_targets(
    association_id: AssociationId,
    execution_id: AssociationExecutionId,
    *,
    config_overrides: Optional[SSMClientConfig] = None,
    filters: Optional[AssociationExecutionTargetsFilterList] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> DescribeAssociationExecutionTargetsResult

Views information about a specific execution of a specific association.

Parameters:

  • association_id (AssociationId) –

    The association ID that includes the execution for which you want to view details.

  • execution_id (AssociationExecutionId) –

    The execution ID for which you want to view details.

  • filters (Optional[AssociationExecutionTargetsFilterList], default: None ) –

    Filters for the request. You can specify the following filters and values.

    Status (EQUAL)

    ResourceId (EQUAL)

    ResourceType (EQUAL)

  • max_results (Optional[MaxResults], default: None ) –

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

  • next_token (Optional[NextToken], default: None ) –

    A token to start the list. Use this token to get the next set of results.

Raises:

Source code in docs_src/capo_ssm/_services/ssm.py
def describe_association_execution_targets(
    self,
    association_id: "capo_ssm.types.association_id.AssociationId",
    execution_id: "capo_ssm.types.association_execution_id.AssociationExecutionId",
    *,
    config_overrides: Optional[SSMClientConfig] = None,
    filters: Optional[
        "capo_ssm.types.association_execution_targets_filter_list.AssociationExecutionTargetsFilterList"
    ] = None,
    max_results: Optional["capo_ssm.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
) -> "capo_ssm.types.describe_association_execution_targets_result.DescribeAssociationExecutionTargetsResult":
    """<p>Views information about a specific execution of a specific association.</p>

    Args:
        association_id: <p>The association ID that includes the execution for which you want to view details.</p>
        execution_id: <p>The execution ID for which you want to view details.</p>
        filters: <p>Filters for the request. You can specify the following filters and values.</p> <p>Status (EQUAL)</p> <p>ResourceId (EQUAL)</p> <p>ResourceType (EQUAL)</p>
        max_results: <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
        next_token: <p>A token to start the list. Use this token to get the next set of results. </p>

    Raises:
        capo_ssm.errors.association_does_not_exist.AssociationDoesNotExist: <p>The specified association doesn't exist.</p>
        capo_ssm.errors.association_execution_does_not_exist.AssociationExecutionDoesNotExist: <p>The specified execution ID doesn't exist. Verify the ID number and try again.</p>
        capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
        capo_ssm.errors.invalid_next_token.InvalidNextToken: <p>The specified token isn't valid.</p>
        capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ssm.types.describe_association_execution_targets_request.DescribeAssociationExecutionTargetsRequest]",
    ) -> OperationResponse[
        "capo_ssm.types.describe_association_execution_targets_result.DescribeAssociationExecutionTargetsResult"
    ]:
        import capo_ssm._operations.amazon_ssm.describe_association_execution_targets

        output, http_response = (
            capo_ssm._operations.amazon_ssm.describe_association_execution_targets.describe_association_execution_targets(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeAssociationExecutionTargets")
    )
    input_: capo_ssm.types.describe_association_execution_targets_request.DescribeAssociationExecutionTargetsRequest = {
        "association_id": association_id,
        "execution_id": execution_id,
    }
    if filters is not None:
        input_["filters"] = filters
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output