createNetworkScope
abstract suspend fun createNetworkScope(input: CreateNetworkScopeRequest): CreateNetworkScopeResponse
Creates a network scope for AWS Ops Agent for networking. A network scope defines the AWS accounts and Regions that AWS Ops Agent for networking analyzes.
The network scope starts in the PENDING state and moves to AVAILABLE when it's ready, or to FAILED if a prerequisite is missing. To associate accounts with it, call AssociateNetworkScopePrincipal.
Samples
// Example Creating a network scope
val resp = networkManagerClient.createNetworkScope {
name = "production-network"
accessMode = NetworkScopeAccessMode.fromValue("ACCOUNTS")
networkScopeRegions = listOf<String>(
"us-east-1",
"us-west-2"
)
clientToken = "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}Content copied to clipboard