Skip to content

update_cloud_watch_alarm_template_group

update_cloud_watch_alarm_template_group(
    identifier: __string,
    *,
    config_overrides: Optional[MediaLiveClientConfig] = None,
    description: Optional[__stringMin0Max1024] = None,
) -> UpdateCloudWatchAlarmTemplateGroupResponse

Updates the specified cloudwatch alarm template group.

Parameters:

  • description (Optional[__stringMin0Max1024], default: None ) –

    A resource's optional description.

  • identifier (__string) –

    A cloudwatch alarm template group's identifier. Can be either be its id or current name.

Raises:

Source code in docs_src/capo_medialive/_services/media_live.py
def update_cloud_watch_alarm_template_group(
    self,
    identifier: "capo_medialive.types.__string.__string",
    *,
    config_overrides: Optional[MediaLiveClientConfig] = None,
    description: Optional[
        "capo_medialive.types.__string_min0_max1024.__stringMin0Max1024"
    ] = None,
) -> "capo_medialive.types.update_cloud_watch_alarm_template_group_response.UpdateCloudWatchAlarmTemplateGroupResponse":
    """Updates the specified cloudwatch alarm template group.

    Args:
        description: A resource's optional description.
        identifier: A cloudwatch alarm template group's identifier. Can be either be its id or current name.

    Raises:
        capo_medialive.errors.bad_request_exception.BadRequestException: Placeholder documentation for BadRequestException
        capo_medialive.errors.conflict_exception.ConflictException: Placeholder documentation for ConflictException
        capo_medialive.errors.forbidden_exception.ForbiddenException: Placeholder documentation for ForbiddenException
        capo_medialive.errors.internal_server_error_exception.InternalServerErrorException: Placeholder documentation for InternalServerErrorException
        capo_medialive.errors.not_found_exception.NotFoundException: Placeholder documentation for NotFoundException
        capo_medialive.errors.too_many_requests_exception.TooManyRequestsException: Placeholder documentation for TooManyRequestsException
        capo_medialive.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_medialive.types.update_cloud_watch_alarm_template_group_request.UpdateCloudWatchAlarmTemplateGroupRequest]",
    ) -> OperationResponse[
        "capo_medialive.types.update_cloud_watch_alarm_template_group_response.UpdateCloudWatchAlarmTemplateGroupResponse"
    ]:
        import capo_medialive._operations.media_live.update_cloud_watch_alarm_template_group

        output, http_response = (
            capo_medialive._operations.media_live.update_cloud_watch_alarm_template_group.update_cloud_watch_alarm_template_group(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateCloudWatchAlarmTemplateGroup")
    )
    input_: capo_medialive.types.update_cloud_watch_alarm_template_group_request.UpdateCloudWatchAlarmTemplateGroupRequest = {
        "identifier": identifier
    }
    if description is not None:
        input_["description"] = description

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