updateAccessLogSubscription method

Future<UpdateAccessLogSubscriptionResponse> updateAccessLogSubscription({
  1. required String accessLogSubscriptionIdentifier,
  2. required String destinationArn,
})

Updates the specified access log subscription.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter accessLogSubscriptionIdentifier : The ID or ARN of the access log subscription.

Parameter destinationArn : The Amazon Resource Name (ARN) of the access log destination.

Implementation

Future<UpdateAccessLogSubscriptionResponse> updateAccessLogSubscription({
  required String accessLogSubscriptionIdentifier,
  required String destinationArn,
}) async {
  final $payload = <String, dynamic>{
    'destinationArn': destinationArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PATCH',
    requestUri:
        '/accesslogsubscriptions/${Uri.encodeComponent(accessLogSubscriptionIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateAccessLogSubscriptionResponse.fromJson(response);
}