batchDisassociateResourcesFromCustomLineItem method
Future<BatchDisassociateResourcesFromCustomLineItemOutput>
batchDisassociateResourcesFromCustomLineItem({})
Disassociates a batch of resources from a percentage custom line item.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter resourceArns :
A list containing the ARNs of resources to be disassociated.
Parameter targetArn :
A percentage custom line item ARN to disassociate the resources from.
Implementation
Future<BatchDisassociateResourcesFromCustomLineItemOutput>
batchDisassociateResourcesFromCustomLineItem({
required List<String> resourceArns,
required String targetArn,
CustomLineItemBillingPeriodRange? billingPeriodRange,
}) async {
final $payload = <String, dynamic>{
'ResourceArns': resourceArns,
'TargetArn': targetArn,
if (billingPeriodRange != null) 'BillingPeriodRange': billingPeriodRange,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/batch-disassociate-resources-from-custom-line-item',
exceptionFnMap: _exceptionFns,
);
return BatchDisassociateResourcesFromCustomLineItemOutput.fromJson(
response);
}