Skip to content

describe_service_updates async

describe_service_updates(
    *,
    config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
    service_update_name: Optional[String] = None,
    service_update_status: Optional[ServiceUpdateStatusList] = None,
    max_records: Optional[IntegerOptional] = None,
    marker: Optional[String] = None,
) -> ServiceUpdatesMessage

Returns details of the service updates

Parameters:

  • service_update_name (Optional[String], default: None ) –

    The unique ID of the service update

  • service_update_status (Optional[ServiceUpdateStatusList], default: None ) –

    The status of the service update

  • max_records (Optional[IntegerOptional], default: None ) –

    The maximum number of records to include in the response

  • marker (Optional[String], default: None ) –

    An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.

Raises:

Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
async def describe_service_updates(
    self,
    *,
    config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
    service_update_name: Optional["capo_elasticache.types.string.String"] = None,
    service_update_status: Optional[
        "capo_elasticache.types.service_update_status_list.ServiceUpdateStatusList"
    ] = None,
    max_records: Optional[
        "capo_elasticache.types.integer_optional.IntegerOptional"
    ] = None,
    marker: Optional["capo_elasticache.types.string.String"] = None,
) -> "capo_elasticache.types.service_updates_message.ServiceUpdatesMessage":
    """<p>Returns details of the service updates</p>

    Args:
        service_update_name: <p>The unique ID of the service update</p>
        service_update_status: <p>The status of the service update</p>
        max_records: <p>The maximum number of records to include in the response</p>
        marker: <p>An optional marker returned from a prior request. Use this marker for pagination of results from this operation. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by <code>MaxRecords</code>.</p>

    Raises:
        capo_elasticache.errors.invalid_parameter_combination_exception.InvalidParameterCombinationException: <p>Two or more incompatible parameters were specified.</p>
        capo_elasticache.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>The value for a parameter is invalid.</p>
        capo_elasticache.errors.service_update_not_found_fault.ServiceUpdateNotFoundFault: <p>The service update doesn't exist</p>
        capo_elasticache.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_elasticache.types.describe_service_updates_message.DescribeServiceUpdatesMessage]",
    ) -> AsyncOperationResponse[
        "capo_elasticache.types.service_updates_message.ServiceUpdatesMessage"
    ]:
        import capo_elasticache._operations.amazon_elasti_cache_v9.describe_service_updates

        (
            output,
            http_response,
        ) = await capo_elasticache._operations.amazon_elasti_cache_v9.describe_service_updates.async_describe_service_updates(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeServiceUpdates")
    )
    input_: capo_elasticache.types.describe_service_updates_message.DescribeServiceUpdatesMessage = {}
    if service_update_name is not None:
        input_["service_update_name"] = service_update_name
    if service_update_status is not None:
        input_["service_update_status"] = service_update_status
    if max_records is not None:
        input_["max_records"] = max_records
    if marker is not None:
        input_["marker"] = marker

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