tagResource method
Adds tags to an Cloud9 development environment.
May throw BadRequestException.
May throw ConcurrentAccessException.
May throw InternalServerErrorException.
May throw NotFoundException.
Parameter resourceARN :
The Amazon Resource Name (ARN) of the Cloud9 development environment to
add tags to.
Parameter tags :
The list of tags to add to the given Cloud9 development environment.
Implementation
Future<void> tagResource({
required String resourceARN,
required List<Tag> tags,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSCloud9WorkspaceManagementService.TagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
'Tags': tags,
},
);
}