untagResource method
Removes tags from 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 remove tags from.
Parameter tagKeys
:
The tag names of the tags to remove from the given AWS Cloud9 development
environment.
Implementation
Future<void> untagResource({
required String resourceARN,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(resourceARN, 'resourceARN');
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSCloud9WorkspaceManagementService.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
'TagKeys': tagKeys,
},
);
}