updateCisScanConfiguration

Updates a CIS scan configuration.

Samples


fun main() { 
   //sampleStart 
   // Sample UpdateCisScanConfiguration Call
val resp = inspector2Client.updateCisScanConfiguration {
    scanConfigurationArn = "arn:aws:inspector2:us-east-1:123412341234:owner/123412341234/cis-configuration/624b746d-e080-44ae-8c1d-48e653365a38"
    scanName = "sample_new"
    securityLevel = CisSecurityLevel.fromValue("LEVEL_2")
    schedule = Schedule.Daily(DailySchedule {
        startTime = Time {
            timeOfDay = "12:56"
            timezone = "UTC"
        }
    }
    )
    targets = UpdateCisTargets {
        accountIds = listOf<String>(
            "SELF"
        )
        targetResourceTags = mapOf<String, List<String>>(
            "key2" to listOf<String>(
                "value2"
            )
        )
    }
} 
   //sampleEnd
}