tagResource method
Adds tags to an AWS Cloud9 development environment.
May throw NotFoundException. May throw InternalServerErrorException. May throw BadRequestException. May throw ConcurrentAccessException.
Parameter resourceARN
:
The Amazon Resource Name (ARN) of the AWS Cloud9 development environment
to add tags to.
Parameter tags
:
The list of tags to add to the given AWS Cloud9 development environment.
Implementation
Future<void> tagResource({
required String resourceARN,
required List<Tag> tags,
}) async {
ArgumentError.checkNotNull(resourceARN, 'resourceARN');
ArgumentError.checkNotNull(tags, 'tags');
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,
},
);
}