import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS Network Security Manager Scope. A scope selects the accounts and resources that a deployment applies policies to. * * Changes to a scope are published unless `isPublished` is `false`. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.networksecuritymanager.Scope("example", { * scopeConfiguration: { * resourceScopes: [{ * include: { * expression: { * criteria: { * tags: { * Protect: "true", * }, * }, * }, * }, * resourceType: "AWS::ElasticLoadBalancingV2::LoadBalancer::application", * }], * }, * name: "example", * description: "Application Load Balancers tagged for protection", * }); * ``` * * ### Logical Expressions and Account Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.networksecuritymanager.Scope("example", { * scopeConfiguration: { * accountFilter: { * include: { * organizationalUnits: ["ou-abcd-12345678"], * }, * }, * resourceScopes: [ * { * include: { * expression: { * ands: [ * { * tags: { * Protect: "true", * }, * }, * { * albConfig: { * scheme: "internet-facing", * }, * }, * ], * }, * }, * resourceType: "AWS::ElasticLoadBalancingV2::LoadBalancer::application", * }, * { * resourceType: "AWS::ApiGateway::Stage", * includeAll: true, * }, * ], * }, * name: "example", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `arn` (String) ARN of the scope. * * Using `pulumi import`, import Network Security Manager Scope using the `arn`. For example: * * ```sh * $ pulumi import aws:networksecuritymanager/scope:Scope example arn:aws:network-security-manager:us-east-1:123456789012:scope:0123456789abcdef * ``` */ export declare class Scope extends pulumi.CustomResource { /** * Get an existing Scope 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?: ScopeState, opts?: pulumi.CustomResourceOptions): Scope; /** * Check whether an existing Scope 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?: ScopeState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of Scope. 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 Scope; /** * ARN of the scope. */ readonly arn: pulumi.Output; /** * Description of the scope. */ readonly description: pulumi.Output; /** * Whether to publish the scope. When `true`, the scope is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published scope, the draft is saved on top of the published version. Defaults to `true`. */ readonly isPublished: pulumi.Output; /** * Name of the scope. */ readonly name: 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; /** * Accounts and resources that are in scope. See `scopeConfiguration` Block below. * * The following arguments are optional: */ readonly scopeConfiguration: pulumi.Output; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Create a Scope 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: ScopeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Scope resources. */ export interface ScopeState { /** * ARN of the scope. */ arn?: pulumi.Input; /** * Description of the scope. */ description?: pulumi.Input; /** * Whether to publish the scope. When `true`, the scope is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published scope, the draft is saved on top of the published version. Defaults to `true`. */ isPublished?: pulumi.Input; /** * Name of the scope. */ name?: 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; /** * Accounts and resources that are in scope. See `scopeConfiguration` Block below. * * The following arguments are optional: */ scopeConfiguration?: pulumi.Input; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } /** * The set of arguments for constructing a Scope resource. */ export interface ScopeArgs { /** * Description of the scope. */ description?: pulumi.Input; /** * Whether to publish the scope. When `true`, the scope is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published scope, the draft is saved on top of the published version. Defaults to `true`. */ isPublished?: pulumi.Input; /** * Name of the scope. */ name?: 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; /** * Accounts and resources that are in scope. See `scopeConfiguration` Block below. * * The following arguments are optional: */ scopeConfiguration: pulumi.Input; /** * Map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=scope.d.ts.map