createScope
Creates a scope. A scope selects the accounts and resources that a deployment applies to. Use isPublished to create the scope in published (ACTIVE) or draft (DRAFT) state.
Samples
// Creates a new scope in published (ACTIVE) state.
val resp = networkSecurityManagerClient.createScope {
clientToken = "550e8400-e29b-41d4-a716-446655440001"
scopeName = "production-web-apps"
scopeDescription = "Scope covering all production web application resources"
scopeConfiguration = ScopeConfiguration {
accountFilter = AccountFilter.IncludeAll(Unit {
}
)
resourceScopes = mapOf<ScopeResourceType, ResourceScope>(
)
}
isPublished = true
}Content copied to clipboard