createGlobalNetwork method
Creates a new, empty global network.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter description :
A description of the global network.
Constraints: Maximum length of 256 characters.
Parameter tags :
The tags to apply to the resource during creation.
Implementation
Future<CreateGlobalNetworkResponse> createGlobalNetwork({
String? description,
List<Tag>? tags,
}) async {
final $payload = <String, dynamic>{
if (description != null) 'Description': description,
if (tags != null) 'Tags': tags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/global-networks',
exceptionFnMap: _exceptionFns,
);
return CreateGlobalNetworkResponse.fromJson(response);
}