untagStream method
Removes one or more tags from a stream. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored.
In the request, you must provide the StreamName
or
StreamARN
.
May throw ClientLimitExceededException. May throw InvalidArgumentException. May throw ResourceNotFoundException. May throw NotAuthorizedException. May throw InvalidResourceFormatException.
Parameter tagKeyList
:
A list of the keys of the tags that you want to remove.
Parameter streamARN
:
The Amazon Resource Name (ARN) of the stream that you want to remove tags
from.
Parameter streamName
:
The name of the stream that you want to remove tags from.
Implementation
Future<void> untagStream({
required List<String> tagKeyList,
String? streamARN,
String? streamName,
}) async {
ArgumentError.checkNotNull(tagKeyList, 'tagKeyList');
_s.validateStringLength(
'streamARN',
streamARN,
1,
1024,
);
_s.validateStringLength(
'streamName',
streamName,
1,
256,
);
final $payload = <String, dynamic>{
'TagKeyList': tagKeyList,
if (streamARN != null) 'StreamARN': streamARN,
if (streamName != null) 'StreamName': streamName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/untagStream',
exceptionFnMap: _exceptionFns,
);
}