Skip to content

iter_describe_stack_resource_drifts

iter_describe_stack_resource_drifts(
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    stack_name: Optional[StackNameOrId] = None,
    stack_resource_drift_status_filters: Optional[
        StackResourceDriftStatusFilters
    ] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[BoxedMaxResults] = None,
) -> Iterator[DescribeStackResourceDriftsOutput]
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
def iter_describe_stack_resource_drifts(
    self,
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    stack_name: Optional[
        "capo_cloudformation.types.stack_name_or_id.StackNameOrId"
    ] = None,
    stack_resource_drift_status_filters: Optional[
        "capo_cloudformation.types.stack_resource_drift_status_filters.StackResourceDriftStatusFilters"
    ] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_cloudformation.types.boxed_max_results.BoxedMaxResults"
    ] = None,
) -> "Iterator[capo_cloudformation.types.describe_stack_resource_drifts_output.DescribeStackResourceDriftsOutput]":
    _token = next_token
    while True:
        _response = self.describe_stack_resource_drifts(
            config_overrides=config_overrides,
            stack_name=stack_name,
            stack_resource_drift_status_filters=stack_resource_drift_status_filters,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break