associateNetworkSettings method

Future<AssociateNetworkSettingsResponse> associateNetworkSettings({
  1. required String networkSettingsArn,
  2. required String portalArn,
})

Associates a network settings resource with a web portal.

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

Parameter networkSettingsArn : The ARN of the network settings.

Parameter portalArn : The ARN of the web portal.

Implementation

Future<AssociateNetworkSettingsResponse> associateNetworkSettings({
  required String networkSettingsArn,
  required String portalArn,
}) async {
  final $query = <String, List<String>>{
    'networkSettingsArn': [networkSettingsArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri:
        '/portals/${portalArn.split('/').map(Uri.encodeComponent).join('/')}/networkSettings',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return AssociateNetworkSettingsResponse.fromJson(response);
}