associateBenefitApplicationResource method
Links an AWS resource to an existing benefit application for tracking and management purposes.
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 associate the resource
with.
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 associate with the
benefit application.
Implementation
Future<AssociateBenefitApplicationResourceOutput>
associateBenefitApplicationResource({
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.AssociateBenefitApplicationResource'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'BenefitApplicationIdentifier': benefitApplicationIdentifier,
'Catalog': catalog,
'ResourceArn': resourceArn,
},
);
return AssociateBenefitApplicationResourceOutput.fromJson(
jsonResponse.body);
}