import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS Network Security Manager Deployment. A deployment applies one or more policies to the accounts and resources selected by a scope. * * Changes to a deployment 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.Deployment("example", { * configuration: { * enableCrossAccountVisibility: false, * }, * name: "example", * policyArns: [exampleAwsNetworksecuritymanagerPolicy.arn], * scopeArn: exampleAwsNetworksecuritymanagerScope.arn, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `arn` (String) ARN of the deployment. * * Using `pulumi import`, import Network Security Manager Deployment using the `arn`. For example: * * ```sh * $ pulumi import aws:networksecuritymanager/deployment:Deployment example arn:aws:network-security-manager:us-east-1:123456789012:deployment:0123456789abcdef * ``` */ export declare class Deployment extends pulumi.CustomResource { /** * Get an existing Deployment 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?: DeploymentState, opts?: pulumi.CustomResourceOptions): Deployment; /** * Check whether an existing Deployment 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?: DeploymentState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of Deployment. 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 Deployment; /** * ARN of the deployment. */ readonly arn: pulumi.Output; /** * Settings for the deployment. See `configuration` Block below. */ readonly configuration: pulumi.Output; /** * Description of the deployment. */ readonly description: pulumi.Output; /** * Whether to publish the deployment. When `true`, the deployment is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published deployment, the draft is saved on top of the published version. Defaults to `true`. */ readonly isPublished: pulumi.Output; /** * Name of the deployment. */ readonly name: pulumi.Output; /** * Set of ARNs of the policies to deploy. Specify 1 or 2 policies. */ readonly policyArns: 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; /** * ARN of the scope that selects the accounts and resources the policies apply to. * * The following arguments are optional: */ readonly scopeArn: 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. * * > **Note:** A policy or scope used by a deployment cannot be deleted. Configure `createBeforeDestroy` on referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted. */ 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 Deployment 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: DeploymentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Deployment resources. */ export interface DeploymentState { /** * ARN of the deployment. */ arn?: pulumi.Input; /** * Settings for the deployment. See `configuration` Block below. */ configuration?: pulumi.Input; /** * Description of the deployment. */ description?: pulumi.Input; /** * Whether to publish the deployment. When `true`, the deployment is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published deployment, the draft is saved on top of the published version. Defaults to `true`. */ isPublished?: pulumi.Input; /** * Name of the deployment. */ name?: pulumi.Input; /** * Set of ARNs of the policies to deploy. Specify 1 or 2 policies. */ policyArns?: pulumi.Input[] | undefined>; /** * 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; /** * ARN of the scope that selects the accounts and resources the policies apply to. * * The following arguments are optional: */ scopeArn?: 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. * * > **Note:** A policy or scope used by a deployment cannot be deleted. Configure `createBeforeDestroy` on referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted. */ 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 Deployment resource. */ export interface DeploymentArgs { /** * Settings for the deployment. See `configuration` Block below. */ configuration: pulumi.Input; /** * Description of the deployment. */ description?: pulumi.Input; /** * Whether to publish the deployment. When `true`, the deployment is saved in the published (`ACTIVE`) state. When `false`, it is saved as a draft (`DRAFT`); for a published deployment, the draft is saved on top of the published version. Defaults to `true`. */ isPublished?: pulumi.Input; /** * Name of the deployment. */ name?: pulumi.Input; /** * Set of ARNs of the policies to deploy. Specify 1 or 2 policies. */ policyArns: 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; /** * ARN of the scope that selects the accounts and resources the policies apply to. * * The following arguments are optional: */ scopeArn: 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. * * > **Note:** A policy or scope used by a deployment cannot be deleted. Configure `createBeforeDestroy` on referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=deployment.d.ts.map