associateIpAccessSettings method

Future<AssociateIpAccessSettingsResponse> associateIpAccessSettings({
  1. required String ipAccessSettingsArn,
  2. required String portalArn,
})

Associates an IP access 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 ipAccessSettingsArn : The ARN of the IP access settings.

Parameter portalArn : The ARN of the web portal.

Implementation

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