modifyAccount method

Future<void> modifyAccount({
  1. String? dedicatedTenancyManagementCidrRange,
  2. DedicatedTenancySupportEnum? dedicatedTenancySupport,
})

Modifies the configuration of Bring Your Own License (BYOL) for the specified account.

May throw InvalidParameterValuesException. May throw AccessDeniedException. May throw InvalidResourceStateException. May throw ResourceUnavailableException. May throw ResourceNotFoundException.

Parameter dedicatedTenancyManagementCidrRange : The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the ListAvailableManagementCidrRanges operation.

Parameter dedicatedTenancySupport : The status of BYOL.

Implementation

Future<void> modifyAccount({
  String? dedicatedTenancyManagementCidrRange,
  DedicatedTenancySupportEnum? dedicatedTenancySupport,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.ModifyAccount'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (dedicatedTenancyManagementCidrRange != null)
        'DedicatedTenancyManagementCidrRange':
            dedicatedTenancyManagementCidrRange,
      if (dedicatedTenancySupport != null)
        'DedicatedTenancySupport': dedicatedTenancySupport.toValue(),
    },
  );
}