getTagKeys method
Returns all tag keys in the specified Region for the AWS account.
May throw InvalidParameterException. May throw ThrottledException. May throw InternalServiceException. May throw PaginationTokenExpiredException.
Parameter paginationToken
:
A string that indicates that additional data is available. Leave this
value empty for your initial request. If the response includes a
PaginationToken
, use that string for this value to request an
additional page of data.
Implementation
Future<GetTagKeysOutput> getTagKeys({
String? paginationToken,
}) async {
_s.validateStringLength(
'paginationToken',
paginationToken,
0,
2048,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ResourceGroupsTaggingAPI_20170126.GetTagKeys'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (paginationToken != null) 'PaginationToken': paginationToken,
},
);
return GetTagKeysOutput.fromJson(jsonResponse.body);
}