Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

getEnabledStandards

abstract suspend fun getEnabledStandards(input: GetEnabledStandardsRequest = GetEnabledStandardsRequest { }): GetEnabledStandardsResponse

Returns a list of the standards that are currently enabled.

Samples


fun main() { 
   //sampleStart 
   // The following example returns a list of Security Hub standards that are currently enabled in your
// account.
val resp = securityHubClient.getEnabledStandards {
    standardsSubscriptionArns = listOf<String>(
        "arn:aws:securityhub:us-west-1:123456789012:subscription/pci-dss/v/3.2.1"
    )
} 
   //sampleEnd
}