updateCisScanConfiguration method

Future<UpdateCisScanConfigurationResponse> updateCisScanConfiguration({
  1. required String scanConfigurationArn,
  2. String? scanName,
  3. Schedule? schedule,
  4. CisSecurityLevel? securityLevel,
  5. UpdateCisTargets? targets,
})

Updates a CIS scan configuration.

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

Parameter scanConfigurationArn : The CIS scan configuration ARN.

Parameter scanName : The scan name for the CIS scan configuration.

Parameter schedule : The schedule for the CIS scan configuration.

Parameter securityLevel : The security level for the CIS scan configuration. Security level refers to the Benchmark levels that CIS assigns to a profile.

Parameter targets : The targets for the CIS scan configuration.

Implementation

Future<UpdateCisScanConfigurationResponse> updateCisScanConfiguration({
  required String scanConfigurationArn,
  String? scanName,
  Schedule? schedule,
  CisSecurityLevel? securityLevel,
  UpdateCisTargets? targets,
}) async {
  final $payload = <String, dynamic>{
    'scanConfigurationArn': scanConfigurationArn,
    if (scanName != null) 'scanName': scanName,
    if (schedule != null) 'schedule': schedule,
    if (securityLevel != null) 'securityLevel': securityLevel.value,
    if (targets != null) 'targets': targets,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/cis/scan-configuration/update',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateCisScanConfigurationResponse.fromJson(response);
}