import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS Network Security Manager Admin Account. An administrator account can centrally create and manage AWS WAF and Shield Advanced protection across the accounts and organizational units (OUs) of an AWS Organization. The resource must be managed from the organization's management account, and the administrator's authority can be narrowed with an `adminScope`. * * > AWS Organizations trusted access for Network Security Manager must remain enabled. If trusted access is disabled outside Terraform, the resource is treated as absent during refresh. * * > Setting an administrator account again shortly after it was removed, or while the service is still creating its service-linked role, is rejected by AWS with a `ConflictException`. The resource retries the request until it is accepted or the `create` timeout expires. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.networksecuritymanager.AdminAccount("example", { * accountId: "123456789012", * priority: 1, * }); * ``` * * ### Scoped Administrator * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.networksecuritymanager.AdminAccount("example", { * adminScope: { * firewallTypeScope: { * firewallTypes: ["WAF"], * }, * scopeFilter: { * includeOnly: { * organizationalUnits: ["ou-abcd-12345678"], * }, * }, * }, * accountId: "123456789012", * priority: 2, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `adminAccountId` (String) AWS account ID of the administrator account, corresponding to the resource's `accountId` argument. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import Network Security Manager Admin Account using the `accountId`. For example: * * ```sh * $ pulumi import aws:networksecuritymanager/adminAccount:AdminAccount example 123456789012 * ``` */ export declare class AdminAccount extends pulumi.CustomResource { /** * Get an existing AdminAccount resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AdminAccountState, opts?: pulumi.CustomResourceOptions): AdminAccount; /** * Check whether an existing AdminAccount resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: AdminAccountState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AdminAccount. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AdminAccount; /** * AWS account ID to set as a Network Security Manager administrator account. */ readonly accountId: pulumi.Output; /** * Scope of what the administrator account can manage. If omitted, AWS applies its default scope. See `adminScope` Block below. */ readonly adminScope: pulumi.Output; /** * Priority of the administrator account, between `1` and `10`. * * The following arguments are optional: */ readonly priority: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * Status of the administrator account. Valid values: `ONBOARDED`, `OFFBOARDED`. */ readonly status: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a AdminAccount resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AdminAccountArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AdminAccount resources. */ export interface AdminAccountState { /** * AWS account ID to set as a Network Security Manager administrator account. */ accountId?: pulumi.Input; /** * Scope of what the administrator account can manage. If omitted, AWS applies its default scope. See `adminScope` Block below. */ adminScope?: pulumi.Input; /** * Priority of the administrator account, between `1` and `10`. * * The following arguments are optional: */ priority?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Status of the administrator account. Valid values: `ONBOARDED`, `OFFBOARDED`. */ status?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a AdminAccount resource. */ export interface AdminAccountArgs { /** * AWS account ID to set as a Network Security Manager administrator account. */ accountId: pulumi.Input; /** * Scope of what the administrator account can manage. If omitted, AWS applies its default scope. See `adminScope` Block below. */ adminScope?: pulumi.Input; /** * Priority of the administrator account, between `1` and `10`. * * The following arguments are optional: */ priority: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=adminAccount.d.ts.map