updateSecurityControl

Updates the properties of a security control.

Samples


fun main() { 
   //sampleStart 
   // The following example updates the specified security control. Specifically, this example updates
// control parameters.
val resp = securityHubClient.updateSecurityControl {
    securityControlId = "ACM.1"
    parameters = mapOf<String, ParameterConfiguration>(
        "maxCredentialUsageAge" to ParameterConfiguration {
            valueType = ParameterValueType.fromValue("CUSTOM")
            value = ParameterValue.Integer(15)
        }
    )
    lastUpdateReason = "Comply with internal requirements"
} 
   //sampleEnd
}