Skip to content

list_wireless_gateway_task_definitions async

list_wireless_gateway_task_definitions(
    *,
    config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    task_definition_type: Optional[WirelessGatewayTaskDefinitionType] = None,
) -> ListWirelessGatewayTaskDefinitionsResponse

List the wireless gateway tasks definitions registered to your AWS account.

Parameters:

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

    The maximum number of results to return in this operation.

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

    To retrieve the next set of results, the nextToken value from a previous response; otherwise null to receive the first set of results.

  • task_definition_type (Optional[WirelessGatewayTaskDefinitionType], default: None ) –

    A filter to list only the wireless gateway task definitions that use this task definition type.

Raises:

Source code in docs_src/capo_iot_wireless/_services/async_io_t_wireless.py
async def list_wireless_gateway_task_definitions(
    self,
    *,
    config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
    max_results: Optional["capo_iot_wireless.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_iot_wireless.types.next_token.NextToken"] = None,
    task_definition_type: Optional[
        "capo_iot_wireless.types.wireless_gateway_task_definition_type.WirelessGatewayTaskDefinitionType"
    ] = None,
) -> "capo_iot_wireless.types.list_wireless_gateway_task_definitions_response.ListWirelessGatewayTaskDefinitionsResponse":
    """<p>List the wireless gateway tasks definitions registered to your AWS account.</p>

    Args:
        max_results: <p>The maximum number of results to return in this operation.</p>
        next_token: <p>To retrieve the next set of results, the <code>nextToken</code> value from a previous response; otherwise <b>null</b> to receive the first set of results.</p>
        task_definition_type: <p>A filter to list only the wireless gateway task definitions that use this task definition type.</p>

    Raises:
        capo_iot_wireless.errors.access_denied_exception.AccessDeniedException: <p>User does not have permission to perform this action.</p>
        capo_iot_wireless.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request.</p>
        capo_iot_wireless.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the allowed API request rate.</p>
        capo_iot_wireless.errors.validation_exception.ValidationException: <p>The input did not meet the specified constraints.</p>
        capo_iot_wireless.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_iot_wireless.types.list_wireless_gateway_task_definitions_request.ListWirelessGatewayTaskDefinitionsRequest]",
    ) -> AsyncOperationResponse[
        "capo_iot_wireless.types.list_wireless_gateway_task_definitions_response.ListWirelessGatewayTaskDefinitionsResponse"
    ]:
        import capo_iot_wireless._operations.iotwireless.list_wireless_gateway_task_definitions

        (
            output,
            http_response,
        ) = await capo_iot_wireless._operations.iotwireless.list_wireless_gateway_task_definitions.async_list_wireless_gateway_task_definitions(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListWirelessGatewayTaskDefinitions")
    )
    input_: capo_iot_wireless.types.list_wireless_gateway_task_definitions_request.ListWirelessGatewayTaskDefinitionsRequest = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    if task_definition_type is not None:
        input_["task_definition_type"] = task_definition_type

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output