Skip to content

list_configuration_sets

list_configuration_sets(
    *,
    config_overrides: Optional[PinpointSMSVoiceClientConfig] = None,
    next_token: Optional[__string] = None,
    page_size: Optional[__string] = None,
) -> ListConfigurationSetsResponse

List all of the configuration sets associated with your Amazon Pinpoint account in the current region.

Parameters:

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

    A token returned from a previous call to the API that indicates the position in the list of results.

  • page_size (Optional[__string], default: None ) –

    Used to specify the number of items that should be returned in the response.

Raises:

Source code in docs_src/capo_pinpoint_sms_voice/_services/pinpoint_sms_voice.py
def list_configuration_sets(
    self,
    *,
    config_overrides: Optional[PinpointSMSVoiceClientConfig] = None,
    next_token: Optional["capo_pinpoint_sms_voice.types.__string.__string"] = None,
    page_size: Optional["capo_pinpoint_sms_voice.types.__string.__string"] = None,
) -> "capo_pinpoint_sms_voice.types.list_configuration_sets_response.ListConfigurationSetsResponse":
    """List all of the configuration sets associated with your Amazon Pinpoint account in the current region.

    Args:
        next_token: A token returned from a previous call to the API that indicates the position in the list of results.
        page_size: Used to specify the number of items that should be returned in the response.

    Raises:
        capo_pinpoint_sms_voice.errors.bad_request_exception.BadRequestException: The input you provided is invalid.
        capo_pinpoint_sms_voice.errors.internal_service_error_exception.InternalServiceErrorException: The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
        capo_pinpoint_sms_voice.errors.too_many_requests_exception.TooManyRequestsException: You've issued too many requests to the resource. Wait a few minutes, and then try again.
        capo_pinpoint_sms_voice.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_pinpoint_sms_voice.types.list_configuration_sets_request.ListConfigurationSetsRequest]",
    ) -> OperationResponse[
        "capo_pinpoint_sms_voice.types.list_configuration_sets_response.ListConfigurationSetsResponse"
    ]:
        import capo_pinpoint_sms_voice._operations.pinpoint_sms_voice.list_configuration_sets

        output, http_response = (
            capo_pinpoint_sms_voice._operations.pinpoint_sms_voice.list_configuration_sets.list_configuration_sets(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListConfigurationSets")
    )
    input_: capo_pinpoint_sms_voice.types.list_configuration_sets_request.ListConfigurationSetsRequest = {}
    if next_token is not None:
        input_["next_token"] = next_token
    if page_size is not None:
        input_["page_size"] = page_size

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