associateUserAccessLoggingSettings method

Future<AssociateUserAccessLoggingSettingsResponse> associateUserAccessLoggingSettings({
  1. required String portalArn,
  2. required String userAccessLoggingSettingsArn,
})

Associates a user access logging 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 portalArn : The ARN of the web portal.

Parameter userAccessLoggingSettingsArn : The ARN of the user access logging settings.

Implementation

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