updateCloudWatchAlarmTemplateGroup method

Future<UpdateCloudWatchAlarmTemplateGroupResponse> updateCloudWatchAlarmTemplateGroup({
  1. required String identifier,
  2. String? description,
})

Updates the specified cloudwatch alarm template group.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw TooManyRequestsException.

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

Parameter description : A resource's optional description.

Implementation

Future<UpdateCloudWatchAlarmTemplateGroupResponse>
    updateCloudWatchAlarmTemplateGroup({
  required String identifier,
  String? description,
}) async {
  final $payload = <String, dynamic>{
    if (description != null) 'description': description,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/prod/cloudwatch-alarm-template-groups/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateCloudWatchAlarmTemplateGroupResponse.fromJson(response);
}