updateStandardsControl

Used to control whether an individual security standard control is enabled or disabled.

Calls to this operation return a RESOURCE_NOT_FOUND_EXCEPTION error when the standard subscription for the control has StandardsControlsUpdatable value NOT_READY_FOR_UPDATES.

Samples

import aws.sdk.kotlin.services.securityhub.model.ControlStatus

fun main() { 
   //sampleStart 
   // The following example disables the specified control in the specified security standard.
securityHubClient.updateStandardsControl {
    standardsControlArn = "arn:aws:securityhub:us-west-1:123456789012:control/pci-dss/v/3.2.1/PCI.AutoScaling.1"
    controlStatus = ControlStatus.fromValue("DISABLED")
    disabledReason = "Not applicable to my service"
} 
   //sampleEnd
}