disassociateBenefitApplicationResource method
Removes the association between an AWS resource and a benefit application.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter benefitApplicationIdentifier :
The unique identifier of the benefit application to disassociate the
resource from.
Parameter catalog :
The catalog identifier that specifies which benefit catalog the
application belongs to.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the AWS resource to disassociate from
the benefit application.
Implementation
Future<DisassociateBenefitApplicationResourceOutput>
disassociateBenefitApplicationResource({
required String benefitApplicationIdentifier,
required String catalog,
required String resourceArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target':
'PartnerCentralBenefitsService.DisassociateBenefitApplicationResource'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BenefitApplicationIdentifier': benefitApplicationIdentifier,
'Catalog': catalog,
'ResourceArn': resourceArn,
},
);
return DisassociateBenefitApplicationResourceOutput.fromJson(
jsonResponse.body);
}