createGlobalNetwork method

Future<CreateGlobalNetworkResponse> createGlobalNetwork({
  1. String? description,
  2. List<Tag>? tags,
})

Creates a new, empty global network.

May throw ValidationException. May throw ServiceQuotaExceededException. May throw AccessDeniedException. May throw ConflictException. May throw ThrottlingException. May throw InternalServerException.

Parameter description : A description of the global network.

Length 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);
}