batchEnableStandards

Enables the standards specified by the provided StandardsArn. To obtain the ARN for a standard, use the DescribeStandards operation.

For more information, see the Security Standards section of the Security Hub User Guide.

Samples

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

fun main() { 
   //sampleStart 
   // The following example enables the security standard specified by the StandardArn. You can use this
// operation to enable one or more Security Hub standards.
val resp = securityHubClient.batchEnableStandards {
    standardsSubscriptionRequests = listOf<StandardsSubscriptionRequest>(
        StandardsSubscriptionRequest {
            standardsArn = "arn:aws:securityhub:us-west-1::standards/pci-dss/v/3.2.1"
        }            
    )
} 
   //sampleEnd
}