Skip to content

list_size_constraint_sets

list_size_constraint_sets(
    *,
    config_overrides: Optional[WAFRegionalClientConfig] = None,
    next_marker: Optional[NextMarker] = None,
    limit: Optional[PaginationLimit] = None,
) -> ListSizeConstraintSetsResponse

This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.

For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.

Returns an array of SizeConstraintSetSummary objects.

Parameters:

  • next_marker (Optional[NextMarker], default: None ) –

    If you specify a value for Limit and you have more SizeConstraintSets than the value of Limit, AWS WAF returns a NextMarker value in the response that allows you to list another group of SizeConstraintSets. For the second and subsequent ListSizeConstraintSets requests, specify the value of NextMarker from the previous response to get information about another batch of SizeConstraintSets.

  • limit (Optional[PaginationLimit], default: None ) –

    Specifies the number of SizeConstraintSet objects that you want AWS WAF to return for this request. If you have more SizeConstraintSets objects than the number you specify for Limit, the response includes a NextMarker value that you can use to get another batch of SizeConstraintSet objects.

Raises:

  • WAFInternalErrorException –

    The operation failed because of a system problem, even though the request was valid. Retry your request.

  • WAFInvalidAccountException –

    The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Examples:

To list a size constraint sets The following example returns an array of up to 100 size contraint match sets.

>>> client.list_size_constraint_sets(limit=100)
Source code in docs_src/capo_waf_regional/_services/waf_regional.py
def list_size_constraint_sets(
    self,
    *,
    config_overrides: Optional[WAFRegionalClientConfig] = None,
    next_marker: Optional["capo_waf_regional.types.next_marker.NextMarker"] = None,
    limit: Optional[
        "capo_waf_regional.types.pagination_limit.PaginationLimit"
    ] = None,
) -> "capo_waf_regional.types.list_size_constraint_sets_response.ListSizeConstraintSetsResponse":
    """<note> <p>This is <b>AWS WAF Classic</b> documentation. For more information, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html">AWS WAF Classic</a> in the developer guide.</p> <p> <b>For the latest version of AWS WAF</b>, use the AWS WAFV2 API and see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF Developer Guide</a>. With the latest version, AWS WAF has a single set of endpoints for regional and global use. </p> </note> <p>Returns an array of <a>SizeConstraintSetSummary</a> objects.</p>

    Args:
        next_marker: <p>If you specify a value for <code>Limit</code> and you have more <code>SizeConstraintSets</code> than the value of <code>Limit</code>, AWS WAF returns a <code>NextMarker</code> value in the response that allows you to list another group of <code>SizeConstraintSets</code>. For the second and subsequent <code>ListSizeConstraintSets</code> requests, specify the value of <code>NextMarker</code> from the previous response to get information about another batch of <code>SizeConstraintSets</code>.</p>
        limit: <p>Specifies the number of <code>SizeConstraintSet</code> objects that you want AWS WAF to return for this request. If you have more <code>SizeConstraintSets</code> objects than the number you specify for <code>Limit</code>, the response includes a <code>NextMarker</code> value that you can use to get another batch of <code>SizeConstraintSet</code> objects.</p>

    Raises:
        capo_waf_regional.errors.waf_internal_error_exception.WAFInternalErrorException: <p>The operation failed because of a system problem, even though the request was valid. Retry your request.</p>
        capo_waf_regional.errors.waf_invalid_account_exception.WAFInvalidAccountException: <p>The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.</p>
        capo_waf_regional.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        To list a size constraint sets
        The following example returns an array of up to 100 size contraint match sets.

        >>> client.list_size_constraint_sets(limit=100)
    """

    def _handler(
        req: "OperationRequest[capo_waf_regional.types.list_size_constraint_sets_request.ListSizeConstraintSetsRequest]",
    ) -> OperationResponse[
        "capo_waf_regional.types.list_size_constraint_sets_response.ListSizeConstraintSetsResponse"
    ]:
        import capo_waf_regional._operations.awswaf_regional_20161128.list_size_constraint_sets

        output, http_response = (
            capo_waf_regional._operations.awswaf_regional_20161128.list_size_constraint_sets.list_size_constraint_sets(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSizeConstraintSets")
    )
    input_: capo_waf_regional.types.list_size_constraint_sets_request.ListSizeConstraintSetsRequest = {}
    if next_marker is not None:
        input_["next_marker"] = next_marker
    if limit is not None:
        input_["limit"] = limit

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