updateConnector

Updates a CSPM connector's configuration, such as the scope or regions for the connected cloud provider.

Samples

// This operation updates the configuration of a CSPM connector.
val resp = securityHubClient.updateConnector {
    connectorId = "cspm-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
    description = "Updated connector description"
    provider = CspmProviderUpdateConfiguration.Azure(AzureUpdateConfiguration {
        scopeConfiguration = AzureScopeConfiguration {
            scopeType = ScopeType.fromValue("SUBSCRIPTION")
            scopeValues = listOf<String>(
                "sub-1234-5678-abcd",
                "sub-9012-3456-efgh"
            )
        }
        azureRegions = listOf<String>(
            "eastus",
            "westus2",
            "northeurope"
        )
    }
    )
}