untagResource method
Removes the specified tag or tags from the specified AWS CloudHSM cluster.
May throw CloudHsmAccessDeniedException. May throw CloudHsmInternalFailureException. May throw CloudHsmInvalidRequestException. May throw CloudHsmResourceNotFoundException. May throw CloudHsmServiceException. May throw CloudHsmTagException.
Parameter resourceId
:
The cluster identifier (ID) for the cluster whose tags you are removing.
To find the cluster ID, use DescribeClusters.
Parameter tagKeyList
:
A list of one or more tag keys for the tags that you are removing. Specify
only the tag keys, not the tag values.
Implementation
Future<void> untagResource({
required String resourceId,
required List<String> tagKeyList,
}) async {
ArgumentError.checkNotNull(resourceId, 'resourceId');
ArgumentError.checkNotNull(tagKeyList, 'tagKeyList');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'BaldrApiService.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceId': resourceId,
'TagKeyList': tagKeyList,
},
);
}