tagResource method
Adds the specified tags to an Elastic Inference Accelerator.
May throw BadRequestException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter resourceArn
:
The ARN of the Elastic Inference Accelerator to tag.
Parameter tags
:
The tags to add to the Elastic Inference Accelerator.
Implementation
Future<void> tagResource({
required String resourceArn,
required Map<String, String> tags,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
1,
1011,
isRequired: true,
);
ArgumentError.checkNotNull(tags, 'tags');
final $payload = <String, dynamic>{
'tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
}