associatePricingRules method
Connects an array of PricingRuleArns to a defined
PricingPlan. The maximum number PricingRuleArn
that can be associated in one call is 30.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ServiceLimitExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter arn :
The PricingPlanArn that the PricingRuleArns are
associated with.
Parameter pricingRuleArns :
The PricingRuleArns that are associated with the Pricing
Plan.
Implementation
Future<AssociatePricingRulesOutput> associatePricingRules({
required String arn,
required List<String> pricingRuleArns,
}) async {
final $payload = <String, dynamic>{
'Arn': arn,
'PricingRuleArns': pricingRuleArns,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/associate-pricing-rules',
exceptionFnMap: _exceptionFns,
);
return AssociatePricingRulesOutput.fromJson(response);
}