putAdminAccount
Sets the AWS account that serves as an AWS Network Security Manager administrator account, and optionally configures the scope of resources that the administrator can manage.
You can't set an administrator account again immediately after you remove it, or while the service creates its service-linked role. Retry the request after a few minutes.
Samples
// Designates an account as a Network Security Manager administrator, scoped to a specific
// organizational unit and the WAF firewall type.
val resp = networkSecurityManagerClient.putAdminAccount {
accountId = "234567890123"
priority = 2
adminScope = AdminScopeInput {
scopeFilter = AdminScopeFilterInput.IncludeOnly(AdminScopeSelectionInput {
organizationalUnits = listOf<String>(
"ou-abcd-12345678"
)
}
)
firewallTypeScope = AdminFirewallTypeScope {
allFirewallTypesEnabled = false
firewallTypes = listOf<PolicyFirewallType>(
PolicyFirewallType.fromValue("WAF")
)
}
}
}Content copied to clipboard