updatePricingPlan method

Future<UpdatePricingPlanOutput> updatePricingPlan({
  1. required String arn,
  2. String? description,
  3. String? name,
})

This updates an existing pricing plan.

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

Parameter arn : The Amazon Resource Name (ARN) of the pricing plan that you're updating.

Parameter description : The description of the pricing plan.

Parameter name : The name of the pricing plan. The name must be unique to each pricing plan.

Implementation

Future<UpdatePricingPlanOutput> updatePricingPlan({
  required String arn,
  String? description,
  String? name,
}) async {
  final $payload = <String, dynamic>{
    'Arn': arn,
    if (description != null) 'Description': description,
    if (name != null) 'Name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/update-pricing-plan',
    exceptionFnMap: _exceptionFns,
  );
  return UpdatePricingPlanOutput.fromJson(response);
}