published on Friday, Nov 13, 2026 by Pulumi
published on Friday, Nov 13, 2026 by Pulumi
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
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 pulumi
import pulumi_aws as aws
example = aws.networksecuritymanager.Deployment("example",
configuration={
"enable_cross_account_visibility": False,
},
name="example",
policy_arns=[example_aws_networksecuritymanager_policy["arn"]],
scope_arn=example_aws_networksecuritymanager_scope["arn"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/networksecuritymanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networksecuritymanager.NewDeployment(ctx, "example", &networksecuritymanager.DeploymentArgs{
Configuration: &networksecuritymanager.DeploymentConfigurationArgs{
EnableCrossAccountVisibility: pulumi.Bool(false),
},
Name: pulumi.String("example"),
PolicyArns: pulumi.StringArray{
exampleAwsNetworksecuritymanagerPolicy.Arn,
},
ScopeArn: pulumi.Any(exampleAwsNetworksecuritymanagerScope.Arn),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.NetworkSecurityManager.Deployment("example", new()
{
Configuration = new Aws.NetworkSecurityManager.Inputs.DeploymentConfigurationArgs
{
EnableCrossAccountVisibility = false,
},
Name = "example",
PolicyArns = new[]
{
exampleAwsNetworksecuritymanagerPolicy.Arn,
},
ScopeArn = exampleAwsNetworksecuritymanagerScope.Arn,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.networksecuritymanager.Deployment;
import com.pulumi.aws.networksecuritymanager.DeploymentArgs;
import com.pulumi.aws.networksecuritymanager.inputs.DeploymentConfigurationArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Deployment("example", DeploymentArgs.builder()
.configuration(DeploymentConfigurationArgs.builder()
.enableCrossAccountVisibility(false)
.build())
.name("example")
.policyArns(exampleAwsNetworksecuritymanagerPolicy.get("arn"))
.scopeArn(exampleAwsNetworksecuritymanagerScope.get("arn"))
.build());
}
}
resources:
example:
type: aws:networksecuritymanager:Deployment
properties:
configuration:
enableCrossAccountVisibility: false
name: example
policyArns:
- ${exampleAwsNetworksecuritymanagerPolicy.arn}
scopeArn: ${exampleAwsNetworksecuritymanagerScope.arn}
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
resource "aws_networksecuritymanager_deployment" "example" {
lifecycle {
create_before_destroy = true
}
configuration {
enable_cross_account_visibility = false
}
name = "example"
policy_arns = [exampleAwsNetworksecuritymanagerPolicy.arn]
scope_arn = exampleAwsNetworksecuritymanagerScope.arn
}
Create Deployment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Deployment(name: string, args: DeploymentArgs, opts?: CustomResourceOptions);@overload
def Deployment(resource_name: str,
args: DeploymentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Deployment(resource_name: str,
opts: Optional[ResourceOptions] = None,
configuration: Optional[DeploymentConfigurationArgs] = None,
policy_arns: Optional[Sequence[str]] = None,
scope_arn: Optional[str] = None,
description: Optional[str] = None,
is_published: Optional[bool] = None,
name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)func NewDeployment(ctx *Context, name string, args DeploymentArgs, opts ...ResourceOption) (*Deployment, error)public Deployment(string name, DeploymentArgs args, CustomResourceOptions? opts = null)
public Deployment(String name, DeploymentArgs args)
public Deployment(String name, DeploymentArgs args, CustomResourceOptions options)
type: aws:networksecuritymanager:Deployment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws_networksecuritymanager_deployment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeploymentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment = new Aws.NetworkSecurityManager.Deployment("exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment", new()
{
Configuration = new Aws.NetworkSecurityManager.Inputs.DeploymentConfigurationArgs
{
EnableCrossAccountVisibility = false,
},
PolicyArns = new[]
{
"string",
},
ScopeArn = "string",
Description = "string",
IsPublished = false,
Name = "string",
Region = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := networksecuritymanager.NewDeployment(ctx, "exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment", &networksecuritymanager.DeploymentArgs{
Configuration: &networksecuritymanager.DeploymentConfigurationArgs{
EnableCrossAccountVisibility: pulumi.Bool(false),
},
PolicyArns: pulumi.StringArray{
pulumi.String("string"),
},
ScopeArn: pulumi.String("string"),
Description: pulumi.String("string"),
IsPublished: pulumi.Bool(false),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "aws_networksecuritymanager_deployment" "exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment" {
lifecycle {
create_before_destroy = true
}
configuration = {
enable_cross_account_visibility = false
}
policy_arns = ["string"]
scope_arn = "string"
description = "string"
is_published = false
name = "string"
region = "string"
tags = {
"string" = "string"
}
}
var exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment = new com.pulumi.aws.networksecuritymanager.Deployment("exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment", com.pulumi.aws.networksecuritymanager.DeploymentArgs.builder()
.configuration(DeploymentConfigurationArgs.builder()
.enableCrossAccountVisibility(false)
.build())
.policyArns("string")
.scopeArn("string")
.description("string")
.isPublished(false)
.name("string")
.region("string")
.tags(Map.of("string", "string"))
.build());
exampledeployment_resource_resource_from_networksecuritymanagerdeployment = aws.networksecuritymanager.Deployment("exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment",
configuration={
"enable_cross_account_visibility": False,
},
policy_arns=["string"],
scope_arn="string",
description="string",
is_published=False,
name="string",
region="string",
tags={
"string": "string",
})
const exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment = new aws.networksecuritymanager.Deployment("exampledeploymentResourceResourceFromNetworksecuritymanagerdeployment", {
configuration: {
enableCrossAccountVisibility: false,
},
policyArns: ["string"],
scopeArn: "string",
description: "string",
isPublished: false,
name: "string",
region: "string",
tags: {
string: "string",
},
});
type: aws:networksecuritymanager:Deployment
properties:
configuration:
enableCrossAccountVisibility: false
description: string
isPublished: false
name: string
policyArns:
- string
region: string
scopeArn: string
tags:
string: string
Deployment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Deployment resource accepts the following input properties:
- Configuration
Deployment
Configuration - Settings for the deployment. See
configurationBlock below. - Policy
Arns List<string> - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- Scope
Arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- Description string
- Description of the deployment.
- Is
Published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - Name string
- Name of the deployment.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Dictionary<string, string>
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.
- Configuration
Deployment
Configuration Args - Settings for the deployment. See
configurationBlock below. - Policy
Arns []string - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- Scope
Arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- Description string
- Description of the deployment.
- Is
Published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - Name string
- Name of the deployment.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map[string]string
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.
- configuration object
- Settings for the deployment. See
configurationBlock below. - policy_
arns list(string) - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- scope_
arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- description string
- Description of the deployment.
- is_
published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name string
- Name of the deployment.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- map(string)
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.
- configuration
Deployment
Configuration - Settings for the deployment. See
configurationBlock below. - policy
Arns List<String> - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- scope
Arn String ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- description String
- Description of the deployment.
- is
Published Boolean - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name String
- Name of the deployment.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String,String>
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.
- configuration
Deployment
Configuration - Settings for the deployment. See
configurationBlock below. - policy
Arns string[] - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- scope
Arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- description string
- Description of the deployment.
- is
Published boolean - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name string
- Name of the deployment.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- {[key: string]: string}
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.
- configuration
Deployment
Configuration Args - Settings for the deployment. See
configurationBlock below. - policy_
arns Sequence[str] - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- scope_
arn str ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- description str
- Description of the deployment.
- is_
published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name str
- Name of the deployment.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Mapping[str, str]
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.
- configuration Property Map
- Settings for the deployment. See
configurationBlock below. - policy
Arns List<String> - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- scope
Arn String ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- description String
- Description of the deployment.
- is
Published Boolean - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name String
- Name of the deployment.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Map<String>
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.
Outputs
All input properties are implicitly available as output properties. Additionally, the Deployment resource produces the following output properties:
Look up Existing Deployment Resource
Get an existing Deployment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DeploymentState, opts?: CustomResourceOptions): Deployment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
configuration: Optional[DeploymentConfigurationArgs] = None,
description: Optional[str] = None,
is_published: Optional[bool] = None,
name: Optional[str] = None,
policy_arns: Optional[Sequence[str]] = None,
region: Optional[str] = None,
scope_arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None) -> Deploymentfunc GetDeployment(ctx *Context, name string, id IDInput, state *DeploymentState, opts ...ResourceOption) (*Deployment, error)public static Deployment Get(string name, Input<string> id, DeploymentState? state, CustomResourceOptions? opts = null)public static Deployment get(String name, Output<String> id, DeploymentState state, CustomResourceOptions options)resources: existingDeployment: type: aws:networksecuritymanager:Deployment get: id: ${id}import {
to = aws_networksecuritymanager_deployment.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state DeploymentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state DeploymentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state DeploymentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state DeploymentState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Arn string
- ARN of the deployment.
- Configuration
Deployment
Configuration - Settings for the deployment. See
configurationBlock below. - Description string
- Description of the deployment.
- Is
Published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - Name string
- Name of the deployment.
- Policy
Arns List<string> - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Scope
Arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- Dictionary<string, string>
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.- Dictionary<string, string>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- Arn string
- ARN of the deployment.
- Configuration
Deployment
Configuration Args - Settings for the deployment. See
configurationBlock below. - Description string
- Description of the deployment.
- Is
Published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - Name string
- Name of the deployment.
- Policy
Arns []string - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Scope
Arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- map[string]string
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.- map[string]string
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the deployment.
- configuration object
- Settings for the deployment. See
configurationBlock below. - description string
- Description of the deployment.
- is_
published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name string
- Name of the deployment.
- policy_
arns list(string) - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- scope_
arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- map(string)
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.- map(string)
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the deployment.
- configuration
Deployment
Configuration - Settings for the deployment. See
configurationBlock below. - description String
- Description of the deployment.
- is
Published Boolean - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name String
- Name of the deployment.
- policy
Arns List<String> - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- scope
Arn String ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- Map<String,String>
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.- Map<String,String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn string
- ARN of the deployment.
- configuration
Deployment
Configuration - Settings for the deployment. See
configurationBlock below. - description string
- Description of the deployment.
- is
Published boolean - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name string
- Name of the deployment.
- policy
Arns string[] - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- scope
Arn string ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- {[key: string]: string}
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.- {[key: string]: string}
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn str
- ARN of the deployment.
- configuration
Deployment
Configuration Args - Settings for the deployment. See
configurationBlock below. - description str
- Description of the deployment.
- is_
published bool - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name str
- Name of the deployment.
- policy_
arns Sequence[str] - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- scope_
arn str ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- Mapping[str, str]
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.- Mapping[str, str]
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
- arn String
- ARN of the deployment.
- configuration Property Map
- Settings for the deployment. See
configurationBlock below. - description String
- Description of the deployment.
- is
Published Boolean - Whether to publish the deployment. When
true, the deployment is saved in the published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT); for a published deployment, the draft is saved on top of the published version. Defaults totrue. - name String
- Name of the deployment.
- policy
Arns List<String> - Set of ARNs of the policies to deploy. Specify 1 or 2 policies.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- scope
Arn String ARN of the scope that selects the accounts and resources the policies apply to.
The following arguments are optional:
- Map<String>
Map of tags to assign to the resource. If configured with a provider
defaultTagsconfiguration 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
createBeforeDestroyon referenced policy and scope resources so that a replacement is associated with the deployment before the old resource is deleted.- Map<String>
- Map of tags assigned to the resource, including those inherited from the provider
defaultTagsconfiguration block.
Supporting Types
DeploymentConfiguration, DeploymentConfigurationArgs
- Enable
Cross boolAccount Visibility - Whether to enable cross-account visibility for the deployment.
- Enable
Cross boolAccount Visibility - Whether to enable cross-account visibility for the deployment.
- enable_
cross_ boolaccount_ visibility - Whether to enable cross-account visibility for the deployment.
- enable
Cross BooleanAccount Visibility - Whether to enable cross-account visibility for the deployment.
- enable
Cross booleanAccount Visibility - Whether to enable cross-account visibility for the deployment.
- enable_
cross_ boolaccount_ visibility - Whether to enable cross-account visibility for the deployment.
- enable
Cross BooleanAccount Visibility - Whether to enable cross-account visibility for the deployment.
Import
Identity Schema
Required
arn(String) ARN of the deployment.
Using pulumi import, import Network Security Manager Deployment using the arn. For example:
$ pulumi import aws:networksecuritymanager/deployment:Deployment example arn:aws:network-security-manager:us-east-1:123456789012:deployment:0123456789abcdef
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Friday, Nov 13, 2026 by Pulumi