AWS::NetworkSecurityManager::Policy

NetworkSecurityManager Policy

Resource Type definition for AWS::NetworkSecurityManager::Policy. Creates and manages a Network Security Manager policy.

Properties

7 configurable properties. 4 required. Click a row to see details.

Filter:
PropertyTypeFlags
FirewallType
string
RequiredCreate-only
PolicyConfiguration
PolicyConfiguration
Required
PolicyName
string
RequiredCreate-only
Priority
integer
Required
AssociatedTemplateAndRuleList
Array<AssociatedTemplateAndRule>
PolicyDescription
string
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
PolicyArnstringThe ARN of the policy.
PolicyIdstringThe unique identifier of the policy.
StatusstringThe status of the policy.
UpdatedAtstringAn ISO 8601 timestamp indicating when the policy was last modified.
VersionstringThe version number.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::NetworkSecurityManager::Policy

Resources:
  MyResource:
    Type: AWS::NetworkSecurityManager::Policy
    Properties:
      PolicyName: "my-policyname"
      Priority: 1
      FirewallType: "WAF"
      PolicyConfiguration: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

network-security-manager:CreatePolicynetwork-security-manager:GetPolicynetwork-security-manager:TagResourcenetwork-security-manager:ListTagsForResource

read

network-security-manager:GetPolicynetwork-security-manager:ListTagsForResource

update

network-security-manager:UpdatePolicynetwork-security-manager:GetPolicynetwork-security-manager:TagResourcenetwork-security-manager:UntagResourcenetwork-security-manager:ListTagsForResource

delete

network-security-manager:DeletePolicynetwork-security-manager:GetPolicynetwork-security-manager:ListTagsForResource

list

network-security-manager:ListPolicies

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

ServiceNetworkSecurityManager
Properties12
Required4
TaggingSupported
Primary IDPolicyArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

PolicyNameFirewallType

External Links