tagResource method
Creates tags for a budget or budget action resource.
May throw AccessDeniedException.
May throw InternalErrorException.
May throw InvalidParameterException.
May throw NotFoundException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
Parameter resourceARN :
The unique identifier for the resource.
Parameter resourceTags :
The tags associated with the resource.
Implementation
Future<void> tagResource({
required String resourceARN,
required List<ResourceTag> resourceTags,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSBudgetServiceGateway.TagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
'ResourceTags': resourceTags,
},
);
}