untagResource method
Remove a tag from a Step Functions resource
May throw InvalidArn. May throw ResourceNotFound.
Parameter resourceArn
:
The Amazon Resource Name (ARN) for the Step Functions state machine or
activity.
Parameter tagKeys
:
The list of tags to remove from the resource.
Implementation
Future<void> untagResource({
required String resourceArn,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
1,
256,
isRequired: true,
);
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSStepFunctions.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'resourceArn': resourceArn,
'tagKeys': tagKeys,
},
);
}