tagResource method
Adds tags to the specified applied quota. You can include one or more tags to add to the quota.
May throw TooManyRequestsException. May throw NoSuchResourceException. May throw TooManyTagsException. May throw TagPolicyViolationException. May throw IllegalArgumentException. May throw AccessDeniedException. May throw ServiceException.
Parameter resourceARN
:
The Amazon Resource Name (ARN) for the applied quota. You can get this
information by using the Service Quotas console, or by listing the quotas
using the list-service-quotas
AWS CLI command or the ListServiceQuotas
AWS API operation.
Parameter tags
:
The tags that you want to add to the resource.
Implementation
Future<void> tagResource({
required String resourceARN,
required List<Tag> tags,
}) async {
ArgumentError.checkNotNull(resourceARN, 'resourceARN');
_s.validateStringLength(
'resourceARN',
resourceARN,
1,
1011,
isRequired: true,
);
ArgumentError.checkNotNull(tags, 'tags');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'ServiceQuotasV20190624.TagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
'Tags': tags,
},
);
}