updateNetworkResourceMetadata method
Updates the resource metadata for the specified global network.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter globalNetworkId :
The ID of the global network.
Parameter metadata :
The resource metadata.
Parameter resourceArn :
The ARN of the resource.
Implementation
Future<UpdateNetworkResourceMetadataResponse> updateNetworkResourceMetadata({
required String globalNetworkId,
required Map<String, String> metadata,
required String resourceArn,
}) async {
final $payload = <String, dynamic>{
'Metadata': metadata,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri:
'/global-networks/${Uri.encodeComponent(globalNetworkId)}/network-resources/${Uri.encodeComponent(resourceArn)}/metadata',
exceptionFnMap: _exceptionFns,
);
return UpdateNetworkResourceMetadataResponse.fromJson(response);
}