updateScope

abstract suspend fun updateScope(input: UpdateScopeRequest): UpdateScopeResponse

Updates the specified scope. To prevent conflicting concurrent updates, provide the current updateToken. Use isPublished to publish the update or keep the scope as a draft.

Samples

// Updates the scope s description and configuration and publishes the change. The updateToken from the
// most recent read is required for optimistic locking.
val resp = networkSecurityManagerClient.updateScope {
    scopeIdentifier = "arn:aws:network-security-manager:us-east-1:123456789012:scope:abc123"
    updateToken = "b0c4d1e2-3f4a-4b5c-8d6e-7f8a9b0c1d2e"
    scopeDescription = "Scope covering all production web application resources in US East 1"
    scopeConfiguration = ScopeConfiguration {
        accountFilter = AccountFilter.IncludeAll(Unit {
        }
        )
        resourceScopes = mapOf<ScopeResourceType, ResourceScope>(
        )
    }
    isPublished = true
}