Skip to main content
IAM Policy Map

NetworkSecurityManagerServiceRolePolicy

OperatorService-linked roleActivePermissions reviewedShow on mapCompare

Summary

Access policy to allow NetworkSecurityManager service linked role to perform NetworkSecurityManager-related actions on NetworkSecurityManager-managed resources within a customer AWS account.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/aws-service-role/NetworkSecurityManagerServiceRolePolicy
Default version
v2
Created
Last edited
Services
amplify, apigateway, apprunner, appsync, bedrock-agentcore, cloudfront, cognito-idp, config, ec2, elasticloadbalancing, iam, logs, network-firewall, organizations, ram, s3, servicequotas, shield, wafv2

Control-plane actions (145)

By access level: 37 List, 4 Permissions management, 42 Read, 6 Tagging, 56 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Amplify2 of 411 List, 1 Read; 0 restricted, 0 conditionalamplify:GetWebACLForResource, amplify:ListResourcesForWebACL
API Gateway2 of 441 Permissions management, 1 Read; 2 restricted, 0 conditionalapigateway:GET, apigateway:SetWebACL
App Runner2 of 421 List, 1 Read; 0 restricted, 0 conditionalapprunner:DescribeWebAclForService, apprunner:ListAssociatedServicesForWebAcl
AppSync2 of 871 List, 1 Read; 0 restricted, 0 conditionalappsync:GetWebACLForResource, appsync:ListResourcesForWebACL
Bedrock-Agentcore2 of 1971 List, 1 Read; 1 restricted, 0 conditionalbedrock-agentcore:GatewayGetWebACLForResource, bedrock-agentcore:GatewayListResourcesForWebACL
CloudFront8 of 1732 List, 4 Read, 2 Write; 6 restricted, 0 conditionalcloudfront:AssociateDistributionWebACL, cloudfront:DisassociateDistributionWebACL, cloudfront:GetDistribution, cloudfront:GetDistributionConfig, cloudfront:GetVpcOrigin, cloudfront:ListDistributions, cloudfront:ListDistributionsByWebACLId, cloudfront:ListTagsForResource
Cognito User Pools2 of 1391 List, 1 Read; 0 restricted, 0 conditionalcognito-idp:GetWebACLForResource, cognito-idp:ListResourcesForWebACL
Config8 of 1021 List, 3 Read, 4 Write; 5 restricted, 0 conditionalconfig:AssociateResourceTypes, config:DeleteServiceLinkedConfigurationRecorder, config:DescribeConfigurationRecorderStatus, config:DescribeConfigurationRecorders, config:DisassociateResourceTypes, config:ListConfigurationRecorders, config:PutServiceLinkedConfigurationRecorder, config:SelectResourceConfig
EC218 of 83410 List, 1 Tagging, 7 Write; 8 restricted, 8 conditionalec2:AssociateRouteTable, ec2:CreateRouteTable, ec2:CreateSubnet, ec2:CreateTags, ec2:DeleteRouteTable, ec2:DeleteSubnet, ec2:DescribeAddresses, ec2:DescribeAvailabilityZones, ec2:DescribeInternetGateways, ec2:DescribeRouteTables, ec2:DescribeSubnets, ec2:DescribeTags and 6 more
ELB7 of 772 List, 2 Read, 3 Write; 3 restricted, 0 conditionalelasticloadbalancing:CreateWebACLAssociation, elasticloadbalancing:DeleteWebACLAssociation, elasticloadbalancing:DescribeLoadBalancers, elasticloadbalancing:DescribeTags, elasticloadbalancing:DescribeWebACLAssociation, elasticloadbalancing:GetLoadBalancerWebACL, elasticloadbalancing:SetWebACL
IAM2 of 1901 Read, 1 Write; 2 restricted, 1 conditionaliam:CreateServiceLinkedRole, iam:GetRole
CloudWatch Logs5 of 1331 List, 1 Read, 3 Write; 0 restricted, 0 conditionallogs:CreateLogDelivery, logs:DeleteLogDelivery, logs:GetLogDelivery, logs:ListLogDeliveries, logs:UpdateLogDelivery
Network Firewall33 of 895 List, 7 Read, 2 Tagging, 19 Write; 21 restricted, 15 conditionalnetwork-firewall:AssociateAvailabilityZones, network-firewall:AssociateFirewallPolicy, network-firewall:AssociateSubnets, network-firewall:CreateFirewall, network-firewall:CreateFirewallPolicy, network-firewall:CreateFirewallPolicyV2, network-firewall:DeleteFirewall, network-firewall:DeleteFirewallPolicy, network-firewall:DeleteFirewallPolicyV2, network-firewall:DeleteResourcePolicy, network-firewall:DescribeFirewall, network-firewall:DescribeFirewallPolicy and 21 more
Organizations10 of 637 List, 3 Read; 3 restricted, 1 conditionalorganizations:DescribeAccount, organizations:DescribeOrganization, organizations:DescribeOrganizationalUnit, organizations:ListAWSServiceAccessForOrganization, organizations:ListAccounts, organizations:ListChildren, organizations:ListDelegatedAdministrators, organizations:ListOrganizationalUnitsForParent, organizations:ListParents, organizations:ListRoots
Resource Access Manager7 of 392 Read, 1 Tagging, 4 Write; 5 restricted, 5 conditionalram:AssociateResourceShare, ram:CreateResourceShare, ram:DeleteResourceShare, ram:GetResourceShareAssociations, ram:GetResourceShares, ram:TagResource, ram:UpdateResourceShare
S32 of 1551 Permissions management, 1 Read; 2 restricted, 0 conditionals3:GetBucketPolicy, s3:PutBucketPolicy
Service Quotas1 of 261 Read; 1 restricted, 0 conditionalservicequotas:GetServiceQuota
Shield7 of 401 List, 3 Read, 3 Write; 0 restricted, 0 conditionalshield:CreateProtection, shield:CreateSubscription, shield:DeleteProtection, shield:DescribeProtection, shield:DescribeSubscription, shield:GetSubscriptionState, shield:ListProtections
WAF V225 of 643 List, 2 Permissions management, 8 Read, 2 Tagging, 10 Write; 22 restricted, 0 conditionalwafv2:AssociateWebACL, wafv2:CheckCapacity, wafv2:CreateWebACL, wafv2:DeleteFirewallManagerRuleGroups, wafv2:DeleteLoggingConfiguration, wafv2:DeletePermissionPolicy, wafv2:DeleteWebACL, wafv2:DisassociateFirewallManager, wafv2:DisassociateWebACL, wafv2:GetLoggingConfiguration, wafv2:GetPermissionPolicy, wafv2:GetWebACL and 13 more
Amplify: 2 actions
  • amplify:GetWebACLForResource (Read)
  • amplify:ListResourcesForWebACL (List)
API Gateway: 2 actions
  • apigateway:GET (Read)
  • apigateway:SetWebACL (Permissions management)
App Runner: 2 actions
  • apprunner:DescribeWebAclForService (Read)
  • apprunner:ListAssociatedServicesForWebAcl (List)
AppSync: 2 actions
  • appsync:GetWebACLForResource (Read)
  • appsync:ListResourcesForWebACL (List)
Bedrock-Agentcore: 2 actions
  • bedrock-agentcore:GatewayGetWebACLForResource (Read)
  • bedrock-agentcore:GatewayListResourcesForWebACL (List)
CloudFront: 8 actions
  • cloudfront:AssociateDistributionWebACL (Write)
  • cloudfront:DisassociateDistributionWebACL (Write)
  • cloudfront:GetDistribution (Read)
  • cloudfront:GetDistributionConfig (Read)
  • cloudfront:GetVpcOrigin (Read)
  • cloudfront:ListDistributions (List)
  • cloudfront:ListDistributionsByWebACLId (List)
  • cloudfront:ListTagsForResource (Read)
Cognito User Pools: 2 actions
  • cognito-idp:GetWebACLForResource (Read)
  • cognito-idp:ListResourcesForWebACL (List)
Config: 8 actions
  • config:AssociateResourceTypes (Write)
  • config:DeleteServiceLinkedConfigurationRecorder (Write)
  • config:DescribeConfigurationRecorderStatus (Read)
  • config:DescribeConfigurationRecorders (Read)
  • config:DisassociateResourceTypes (Write)
  • config:ListConfigurationRecorders (List)
  • config:PutServiceLinkedConfigurationRecorder (Write)
  • config:SelectResourceConfig (Read)
EC2: 18 actions
  • ec2:AssociateRouteTable (Write)
  • ec2:CreateRouteTable (Write)
  • ec2:CreateSubnet (Write)
  • ec2:CreateTags (Tagging)
  • ec2:DeleteRouteTable (Write)
  • ec2:DeleteSubnet (Write)
  • ec2:DescribeAddresses (List)
  • ec2:DescribeAvailabilityZones (List)
  • ec2:DescribeInternetGateways (List)
  • ec2:DescribeRouteTables (List)
  • ec2:DescribeSubnets (List)
  • ec2:DescribeTags (List)
  • ec2:DescribeVerifiedAccessInstanceWebAclAssociations (List)
  • ec2:DescribeVpcEndpoints (List)
  • ec2:DescribeVpcs (List)
  • ec2:DisassociateRouteTable (Write)
  • ec2:GetVerifiedAccessInstanceWebAcl (List)
  • ec2:ReplaceRouteTableAssociation (Write)
ELB: 7 actions
  • elasticloadbalancing:CreateWebACLAssociation (Write)
  • elasticloadbalancing:DeleteWebACLAssociation (Write)
  • elasticloadbalancing:DescribeLoadBalancers (List)
  • elasticloadbalancing:DescribeTags (Read)
  • elasticloadbalancing:DescribeWebACLAssociation (List)
  • elasticloadbalancing:GetLoadBalancerWebACL (Read)
  • elasticloadbalancing:SetWebAcl (Write)
IAM: 2 actions
  • iam:CreateServiceLinkedRole (Write)
  • iam:GetRole (Read)
CloudWatch Logs: 5 actions
  • logs:CreateLogDelivery (Write)
  • logs:DeleteLogDelivery (Write)
  • logs:GetLogDelivery (Read)
  • logs:ListLogDeliveries (List)
  • logs:UpdateLogDelivery (Write)
Network Firewall: 33 actions
  • network-firewall:AssociateAvailabilityZones (Write)
  • network-firewall:AssociateFirewallPolicy (Write)
  • network-firewall:AssociateSubnets (Write)
  • network-firewall:CreateFirewall (Write)
  • network-firewall:CreateFirewallPolicy (Write)
  • network-firewall:CreateFirewallPolicyV2 (Write)
  • network-firewall:DeleteFirewall (Write)
  • network-firewall:DeleteFirewallPolicy (Write)
  • network-firewall:DeleteFirewallPolicyV2 (Write)
  • network-firewall:DeleteResourcePolicy (Write)
  • network-firewall:DescribeFirewall (Read)
  • network-firewall:DescribeFirewallPolicy (Read)
  • network-firewall:DescribeFirewallPolicyV2 (Read)
  • network-firewall:DescribeLoggingConfiguration (Read)
  • network-firewall:DescribeResourcePolicy (Read)
  • network-firewall:DescribeRuleGroup (Read)
  • network-firewall:DescribeTLSInspectionConfiguration (Read)
  • network-firewall:DisassociateAvailabilityZones (Write)
  • network-firewall:DisassociateSubnets (Write)
  • network-firewall:ListFirewallPolicies (List)
  • network-firewall:ListFirewallPoliciesV2 (List)
  • network-firewall:ListFirewalls (List)
  • network-firewall:ListRuleGroups (List)
  • network-firewall:ListTLSInspectionConfigurations (List)
  • network-firewall:PutResourcePolicy (Write)
  • network-firewall:TagResource (Tagging)
  • network-firewall:UntagResource (Tagging)
  • network-firewall:UpdateFirewallDeleteProtection (Write)
  • network-firewall:UpdateFirewallPolicy (Write)
  • network-firewall:UpdateFirewallPolicyChangeProtection (Write)
  • network-firewall:UpdateFirewallPolicyV2 (Write)
  • network-firewall:UpdateLoggingConfiguration (Write)
  • network-firewall:UpdateSubnetChangeProtection (Write)
Organizations: 10 actions
  • organizations:DescribeAccount (Read)
  • organizations:DescribeOrganization (Read)
  • organizations:DescribeOrganizationalUnit (Read)
  • organizations:ListAWSServiceAccessForOrganization (List)
  • organizations:ListAccounts (List)
  • organizations:ListChildren (List)
  • organizations:ListDelegatedAdministrators (List)
  • organizations:ListOrganizationalUnitsForParent (List)
  • organizations:ListParents (List)
  • organizations:ListRoots (List)
Resource Access Manager: 7 actions
  • ram:AssociateResourceShare (Write)
  • ram:CreateResourceShare (Write)
  • ram:DeleteResourceShare (Write)
  • ram:GetResourceShareAssociations (Read)
  • ram:GetResourceShares (Read)
  • ram:TagResource (Tagging)
  • ram:UpdateResourceShare (Write)
S3: 2 actions
  • s3:GetBucketPolicy (Read)
  • s3:PutBucketPolicy (Permissions management)
Service Quotas: 1 actions
  • servicequotas:GetServiceQuota (Read)
Shield: 7 actions
  • shield:CreateProtection (Write)
  • shield:CreateSubscription (Write)
  • shield:DeleteProtection (Write)
  • shield:DescribeProtection (Read)
  • shield:DescribeSubscription (Read)
  • shield:GetSubscriptionState (Read)
  • shield:ListProtections (List)
WAF V2: 25 actions
  • wafv2:AssociateWebACL (Write)
  • wafv2:CheckCapacity (Read)
  • wafv2:CreateWebACL (Write)
  • wafv2:DeleteFirewallManagerRuleGroups (Write)
  • wafv2:DeleteLoggingConfiguration (Write)
  • wafv2:DeletePermissionPolicy (Permissions management)
  • wafv2:DeleteWebACL (Write)
  • wafv2:DisassociateFirewallManager (Write)
  • wafv2:DisassociateWebACL (Write)
  • wafv2:GetLoggingConfiguration (Read)
  • wafv2:GetPermissionPolicy (Read)
  • wafv2:GetWebACL (Read)
  • wafv2:GetWebACLForResource (Read)
  • wafv2:ListLoggingConfigurations (List)
  • wafv2:ListResourcesForWebACL (List)
  • wafv2:ListTagsForResource (Read)
  • wafv2:ListWebACLs (List)
  • wafv2:PutFirewallManagerRuleGroups (Write)
  • wafv2:PutLoggingConfiguration (Write)
  • wafv2:PutPermissionPolicy (Permissions management)
  • wafv2:TagResource (Tagging)
  • wafv2:UntagResource (Tagging)
  • wafv2:UpdateWebACL (Write)
  • wafv2:ValidateNetworkSecurityManagerRuleConfiguration (Read)
  • wafv2:ValidateNetworkSecurityManagerWebACLConfiguration (Read)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: No (service-linked role policy).

Why this tier

  • Grants 66 write, tagging or permissions-management actions, short of full control of any service.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "LogsGeneral",
      "Effect": "Allow",
      "Action": [
        "logs:ListLogDeliveries",
        "logs:CreateLogDelivery",
        "logs:GetLogDelivery",
        "logs:UpdateLogDelivery",
        "logs:DeleteLogDelivery"
      ],
      "Resource": "*"
    },
    {
      "Sid": "S3LogBucketGeneral",
      "Effect": "Allow",
      "Action": [
        "s3:GetBucketPolicy",
        "s3:PutBucketPolicy"
      ],
      "Resource": "arn:aws:s3:::aws-waf-logs-*"
    },
    {
      "Sid": "CloudfrontVpcOriginAccess",
      "Effect": "Allow",
      "Action": [
        "cloudfront:GetVpcOrigin"
      ],
      "Resource": "arn:aws:cloudfront::*:vpcorigin/*"
    },
    {
      "Sid": "ConfigUnscoped",
      "Effect": "Allow",
      "Action": [
        "config:SelectResourceConfig"
      ],
      "Resource": "*"
    },
    {
      "Sid": "DescribeOrganizationUnScoped",
      "Effect": "Allow",
      "Action": [
        "organizations:DescribeOrganization",
        "organizations:ListAccounts",
        "organizations:ListChildren",
        "organizations:ListRoots",
        "organizations:ListParents",
        "organizations:ListOrganizationalUnitsForParent",
        "organizations:ListAWSServiceAccessForOrganization"
      ],
      "Resource": "*"
    },
    {
      "Sid": "DescribeAccountScoped",
      "Effect": "Allow",
      "Action": "organizations:DescribeAccount",
      "Resource": "arn:aws:organizations::*:account/o-*/*"
    },
    {
      "Sid": "DescribeOrganizationUnitScoped",
      "Effect": "Allow",
      "Action": "organizations:DescribeOrganizationalUnit",
      "Resource": "arn:aws:organizations::*:ou/o-*/ou-*"
    },
    {
      "Sid": "ListDelegatedAdministratorsScoped",
      "Effect": "Allow",
      "Action": "organizations:ListDelegatedAdministrators",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "organizations:ServicePrincipal": [
            "network-security-manager.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "LoadBalancerNonMutationApiAccess",
      "Effect": "Allow",
      "Action": [
        "elasticloadbalancing:DescribeLoadBalancers",
        "elasticloadbalancing:DescribeTags",
        "elasticloadbalancing:DescribeWebACLAssociation"
      ],
      "Resource": "*"
    },
    {
      "Sid": "LoadBalancerGetWebACLScoped",
      "Effect": "Allow",
      "Action": "elasticloadbalancing:GetLoadBalancerWebACL",
      "Resource": "arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/*"
    },
    {
      "Sid": "CloudFrontDistributionNonMutationApiAccess",
      "Effect": "Allow",
      "Action": [
        "cloudfront:GetDistribution",
        "cloudfront:GetDistributionConfig",
        "cloudfront:ListTagsForResource"
      ],
      "Resource": "arn:aws:cloudfront::*:distribution/*"
    },
    {
      "Sid": "ApiGatewayStageNonMutationApiAccess",
      "Effect": "Allow",
      "Action": "apigateway:GET",
      "Resource": [
        "arn:aws:apigateway:*::/restapis",
        "arn:aws:apigateway:*::/restapis/*/stages",
        "arn:aws:apigateway:*::/restapis/*/stages/*",
        "arn:aws:apigateway:*::/tags/*"
      ]
    },
    {
      "Sid": "Wafv2General",
      "Effect": "Allow",
      "Action": [
        "wafv2:TagResource",
        "wafv2:ListResourcesForWebACL",
        "wafv2:AssociateWebACL",
        "wafv2:ListTagsForResource",
        "wafv2:UntagResource",
        "wafv2:GetWebACL",
        "wafv2:DisassociateFirewallManager",
        "wafv2:DeleteWebACL",
        "wafv2:DisassociateWebACL",
        "wafv2:ValidateNetworkSecurityManagerWebACLConfiguration",
        "wafv2:ValidateNetworkSecurityManagerRuleConfiguration"
      ],
      "Resource": "arn:aws:wafv2:*:*:*/webacl/*"
    },
    {
      "Sid": "Wafv2WebAclAndRuleGroupMutation",
      "Effect": "Allow",
      "Action": [
        "wafv2:UpdateWebACL",
        "wafv2:CreateWebACL",
        "wafv2:DeleteFirewallManagerRuleGroups",
        "wafv2:PutFirewallManagerRuleGroups"
      ],
      "Resource": [
        "arn:aws:wafv2:*:*:*/webacl/*",
        "arn:aws:wafv2:*:*:global/rulegroup/*",
        "arn:aws:wafv2:*:*:regional/rulegroup/*",
        "arn:aws:wafv2:*:*:global/managedruleset/*",
        "arn:aws:wafv2:*:*:regional/managedruleset/*",
        "arn:aws:wafv2:*:*:global/ipset/*",
        "arn:aws:wafv2:*:*:regional/ipset/*",
        "arn:aws:wafv2:*:*:global/regexpatternset/*",
        "arn:aws:wafv2:*:*:regional/regexpatternset/*"
      ]
    },
    {
      "Sid": "Wafv2Logging",
      "Effect": "Allow",
      "Action": [
        "wafv2:PutLoggingConfiguration",
        "wafv2:GetLoggingConfiguration",
        "wafv2:DeleteLoggingConfiguration"
      ],
      "Resource": "arn:aws:wafv2:*:*:*/webacl/*"
    },
    {
      "Sid": "Wafv2ListLogging",
      "Effect": "Allow",
      "Action": "wafv2:ListLoggingConfigurations",
      "Resource": "*"
    },
    {
      "Sid": "Wafv2ListWebACLs",
      "Effect": "Allow",
      "Action": "wafv2:ListWebACLs",
      "Resource": "*"
    },
    {
      "Sid": "Wafv2PermissionPolicy",
      "Effect": "Allow",
      "Action": [
        "wafv2:PutPermissionPolicy",
        "wafv2:GetPermissionPolicy",
        "wafv2:DeletePermissionPolicy"
      ],
      "Resource": [
        "arn:aws:wafv2:*:*:global/rulegroup/*",
        "arn:aws:wafv2:*:*:regional/rulegroup/*"
      ]
    },
    {
      "Sid": "Wafv2WebaclDescribe",
      "Effect": "Allow",
      "Action": "wafv2:GetWebACLForResource",
      "Resource": "arn:aws:wafv2:*:*:*/webacl/*"
    },
    {
      "Sid": "CloudFrontListDistributions",
      "Effect": "Allow",
      "Action": [
        "cloudfront:ListDistributionsByWebACLId",
        "cloudfront:ListDistributions"
      ],
      "Resource": "*"
    },
    {
      "Sid": "CloudFrontDistributionMutation",
      "Effect": "Allow",
      "Action": [
        "cloudfront:AssociateDistributionWebACL",
        "cloudfront:DisassociateDistributionWebACL"
      ],
      "Resource": "arn:aws:cloudfront::*:distribution/*"
    },
    {
      "Sid": "ElbWebAclRemediationScoped",
      "Effect": "Allow",
      "Action": [
        "elasticloadbalancing:CreateWebACLAssociation",
        "elasticloadbalancing:DeleteWebACLAssociation"
      ],
      "Resource": "arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/*"
    },
    {
      "Sid": "ElbSetWebAcl",
      "Effect": "Allow",
      "Action": "elasticloadbalancing:SetWebACL",
      "Resource": "*"
    },
    {
      "Sid": "ApiGatewayWebAclRemediation",
      "Effect": "Allow",
      "Action": "apigateway:SetWebACL",
      "Resource": "arn:aws:apigateway:*::/restapis/*/stages/*"
    },
    {
      "Sid": "CognitoWebAclIntegration",
      "Effect": "Allow",
      "Action": [
        "cognito-idp:GetWebACLForResource",
        "cognito-idp:ListResourcesForWebACL"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AppRunnerWebAclIntegration",
      "Effect": "Allow",
      "Action": [
        "apprunner:DescribeWebAclForService",
        "apprunner:ListAssociatedServicesForWebAcl"
      ],
      "Resource": "*"
    },
    {
      "Sid": "VerifiedAccessWebAclIntegration",
      "Effect": "Allow",
      "Action": [
        "ec2:GetVerifiedAccessInstanceWebAcl",
        "ec2:DescribeVerifiedAccessInstanceWebAclAssociations"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AppSyncWebAclIntegration",
      "Effect": "Allow",
      "Action": [
        "appsync:GetWebACLForResource",
        "appsync:ListResourcesForWebACL"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AmplifyWebAclIntegration",
      "Effect": "Allow",
      "Action": [
        "amplify:GetWebACLForResource",
        "amplify:ListResourcesForWebACL"
      ],
      "Resource": "*"
    },
    {
      "Sid": "ShieldGeneral",
      "Effect": "Allow",
      "Action": [
        "shield:CreateProtection",
        "shield:DeleteProtection",
        "shield:DescribeProtection",
        "shield:ListProtections",
        "shield:CreateSubscription",
        "shield:DescribeSubscription",
        "shield:GetSubscriptionState",
        "ec2:DescribeAddresses",
        "elasticloadbalancing:DescribeLoadBalancers",
        "elasticloadbalancing:DescribeTags"
      ],
      "Resource": "*"
    },
    {
      "Sid": "ShieldSlrCreation",
      "Effect": "Allow",
      "Action": "iam:CreateServiceLinkedRole",
      "Resource": "arn:aws:iam::*:role/aws-service-role/shield.amazonaws.com/*",
      "Condition": {
        "StringEquals": {
          "iam:AWSServiceName": "shield.amazonaws.com"
        }
      }
    },
    {
      "Sid": "AllowConfigRecorderList",
      "Effect": "Allow",
      "Action": "config:ListConfigurationRecorders",
      "Resource": "*"
    },
    {
      "Sid": "AllowPutServiceLinkedConfigRecorder",
      "Effect": "Allow",
      "Action": "config:PutServiceLinkedConfigurationRecorder",
      "Resource": "*"
    },
    {
      "Sid": "AllowConfigRecorderScopedAccess",
      "Effect": "Allow",
      "Action": [
        "config:DescribeConfigurationRecorders",
        "config:DescribeConfigurationRecorderStatus",
        "config:DeleteServiceLinkedConfigurationRecorder",
        "config:AssociateResourceTypes",
        "config:DisassociateResourceTypes"
      ],
      "Resource": "arn:aws:config:*:*:configuration-recorder/*"
    },
    {
      "Sid": "AllowCreateConfigServiceLinkedRole",
      "Effect": "Allow",
      "Action": "iam:CreateServiceLinkedRole",
      "Resource": "arn:aws:iam::*:role/aws-service-role/config.amazonaws.com/*",
      "Condition": {
        "StringEquals": {
          "iam:AWSServiceName": "config.amazonaws.com"
        }
      }
    },
    {
      "Sid": "AllowListActionsForAgentCoreGateway",
      "Effect": "Allow",
      "Action": [
        "bedrock-agentcore:GatewayListResourcesForWebACL"
      ],
      "Resource": "*"
    },
    {
      "Sid": "AllowGetActionForAgentCoreGateway",
      "Effect": "Allow",
      "Action": [
        "bedrock-agentcore:GatewayGetWebACLForResource"
      ],
      "Resource": "arn:aws:bedrock-agentcore:*:*:gateway/*"
    },
    {
      "Sid": "WafV2LoggingSlrCreation",
      "Effect": "Allow",
      "Action": "iam:CreateServiceLinkedRole",
      "Resource": "arn:aws:iam::*:role/aws-service-role/wafv2.amazonaws.com/*",
      "Condition": {
        "StringEquals": {
          "iam:AWSServiceName": "wafv2.amazonaws.com"
        }
      }
    },
    {
      "Sid": "SlrCreation",
      "Effect": "Allow",
      "Action": "iam:CreateServiceLinkedRole",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "iam:AWSServiceName": [
            "network-firewall.amazonaws.com",
            "igw-firewall.network-firewall.amazonaws.com"
          ]
        }
      }
    },
    {
      "Sid": "IamDescribe",
      "Effect": "Allow",
      "Action": "iam:GetRole",
      "Resource": "arn:*:iam::*:role/aws-service-role/ram.amazonaws.com/*"
    },
    {
      "Sid": "NetworkFirewallCreateScoped",
      "Effect": "Allow",
      "Action": [
        "network-firewall:CreateFirewall"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall/*",
        "arn:*:network-firewall:*:*:igw-firewall/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": [
            "true"
          ]
        }
      }
    },
    {
      "Sid": "NetworkFirewallCreateScopedFirewallPolicy",
      "Effect": "Allow",
      "Action": [
        "network-firewall:CreateFirewall"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "NetworkFirewallTagManagement",
      "Effect": "Allow",
      "Action": "network-firewall:TagResource",
      "Resource": [
        "arn:*:network-firewall:*:*:firewall/*",
        "arn:*:network-firewall:*:*:igw-firewall/*",
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": [
            "true"
          ],
          "aws:ResourceTag/NSMManaged": [
            "true"
          ]
        }
      }
    },
    {
      "Sid": "NetworkFirewallUnTag",
      "Effect": "Allow",
      "Action": "network-firewall:UntagResource",
      "Resource": [
        "arn:*:network-firewall:*:*:firewall/*",
        "arn:*:network-firewall:*:*:igw-firewall/*",
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": [
            "true"
          ]
        }
      }
    },
    {
      "Sid": "NetworkFirewallRead",
      "Effect": "Allow",
      "Action": [
        "network-firewall:DescribeFirewall",
        "network-firewall:DescribeFirewallPolicy",
        "network-firewall:DescribeFirewallPolicyV2",
        "network-firewall:DescribeRuleGroup",
        "network-firewall:ListFirewallPolicies",
        "network-firewall:ListFirewallPoliciesV2",
        "network-firewall:ListFirewalls",
        "network-firewall:ListRuleGroups",
        "network-firewall:DescribeResourcePolicy",
        "network-firewall:DescribeLoggingConfiguration",
        "network-firewall:DescribeTLSInspectionConfiguration",
        "network-firewall:ListTLSInspectionConfigurations"
      ],
      "Resource": "*"
    },
    {
      "Sid": "NetworkFirewallUpdateScoped",
      "Effect": "Allow",
      "Action": [
        "network-firewall:AssociateSubnets",
        "network-firewall:AssociateAvailabilityZones",
        "network-firewall:DisassociateSubnets",
        "network-firewall:DisassociateAvailabilityZones",
        "network-firewall:UpdateFirewallDeleteProtection",
        "network-firewall:UpdateFirewallPolicyChangeProtection",
        "network-firewall:UpdateSubnetChangeProtection",
        "network-firewall:UpdateLoggingConfiguration"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall/*",
        "arn:*:network-firewall:*:*:igw-firewall/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "NetworkFirewallCreateFirewallPolicyResource",
      "Effect": "Allow",
      "Action": [
        "network-firewall:CreateFirewallPolicy",
        "network-firewall:CreateFirewallPolicyV2"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": [
            "true"
          ]
        }
      }
    },
    {
      "Sid": "NetworkFirewallPolicyDependentResource",
      "Effect": "Allow",
      "Action": [
        "network-firewall:CreateFirewallPolicy",
        "network-firewall:CreateFirewallPolicyV2",
        "network-firewall:UpdateFirewallPolicy",
        "network-firewall:UpdateFirewallPolicyV2"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:stateful-rulegroup/*",
        "arn:*:network-firewall:*:*:stateless-rulegroup/*",
        "arn:*:network-firewall:*:*:tls-configuration/*",
        "arn:*:network-firewall:*:*:firewall-rulegroup/*",
        "arn:*:network-firewall:*:*:ips-rulegroup/*"
      ]
    },
    {
      "Sid": "NetworkFirewallPolicyUpdateScoped",
      "Effect": "Allow",
      "Action": [
        "network-firewall:UpdateFirewallPolicy",
        "network-firewall:UpdateFirewallPolicyV2"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "NetworkFirewallAssociateFirewallPolicy",
      "Effect": "Allow",
      "Action": [
        "network-firewall:AssociateFirewallPolicy"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*",
        "arn:*:network-firewall:*:*:firewall/*",
        "arn:*:network-firewall:*:*:igw-firewall/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "NetworkFirewallResourcePolicyRulegroups",
      "Effect": "Allow",
      "Action": [
        "network-firewall:PutResourcePolicy",
        "network-firewall:DeleteResourcePolicy"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:stateful-rulegroup/*",
        "arn:*:network-firewall:*:*:stateless-rulegroup/*",
        "arn:*:network-firewall:*:*:firewall-rulegroup/*",
        "arn:*:network-firewall:*:*:ips-rulegroup/*"
      ]
    },
    {
      "Sid": "NetworkFirewallResourcePolicyScoped",
      "Effect": "Allow",
      "Action": [
        "network-firewall:PutResourcePolicy",
        "network-firewall:DeleteResourcePolicy"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*",
        "arn:*:network-firewall:*:*:firewall/*",
        "arn:*:network-firewall:*:*:igw-firewall/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "NetworkFirewallCleanup",
      "Effect": "Allow",
      "Action": [
        "network-firewall:DeleteFirewallPolicy",
        "network-firewall:DeleteFirewallPolicyV2",
        "network-firewall:DeleteFirewall"
      ],
      "Resource": [
        "arn:*:network-firewall:*:*:firewall-policy/*",
        "arn:*:network-firewall:*:*:firewall-policy-v2/*",
        "arn:*:network-firewall:*:*:firewall/*",
        "arn:*:network-firewall:*:*:igw-firewall/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "RamTagManagement",
      "Effect": "Allow",
      "Action": [
        "ram:TagResource"
      ],
      "Resource": [
        "arn:*:ram:*:*:resource-share/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": [
            "true"
          ],
          "aws:ResourceTag/NSMManaged": [
            "true"
          ]
        }
      }
    },
    {
      "Sid": "RamMutation",
      "Effect": "Allow",
      "Action": [
        "ram:AssociateResourceShare",
        "ram:UpdateResourceShare",
        "ram:DeleteResourceShare"
      ],
      "Resource": "arn:*:ram:*:*:resource-share/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "RamCreation",
      "Effect": "Allow",
      "Action": "ram:CreateResourceShare",
      "Resource": "arn:*:ram:*:*:resource-share/*",
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "RamDescribe",
      "Effect": "Allow",
      "Action": [
        "ram:GetResourceShareAssociations",
        "ram:GetResourceShares"
      ],
      "Resource": "*"
    },
    {
      "Sid": "Ec2DescribeUnscoped",
      "Effect": "Allow",
      "Action": [
        "ec2:DescribeInternetGateways",
        "ec2:DescribeRouteTables",
        "ec2:DescribeSubnets",
        "ec2:DescribeTags",
        "ec2:DescribeVpcEndpoints",
        "ec2:DescribeAvailabilityZones",
        "ec2:DescribeVpcs"
      ],
      "Resource": "*"
    },
    {
      "Sid": "Ec2RouteTableScoped",
      "Effect": "Allow",
      "Action": [
        "ec2:AssociateRouteTable",
        "ec2:ReplaceRouteTableAssociation",
        "ec2:DisassociateRouteTable"
      ],
      "Resource": [
        "arn:*:ec2:*:*:route-table/*",
        "arn:*:ec2:*:*:subnet/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "Ec2RouteTableCreate",
      "Effect": "Allow",
      "Action": [
        "ec2:CreateRouteTable"
      ],
      "Resource": [
        "arn:*:ec2:*:*:route-table/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": [
            "true"
          ]
        }
      }
    },
    {
      "Sid": "RouteTableCleanup",
      "Effect": "Allow",
      "Action": "ec2:DeleteRouteTable",
      "Resource": "arn:*:ec2:*:*:route-table/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "Ec2TagManagement",
      "Effect": "Allow",
      "Action": "ec2:CreateTags",
      "Resource": [
        "arn:*:ec2:*:*:route-table/*",
        "arn:*:ec2:*:*:subnet/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": "true",
          "ec2:CreateAction": [
            "CreateRouteTable",
            "CreateSubnet"
          ]
        }
      }
    },
    {
      "Sid": "Ec2SubnetCreate",
      "Effect": "Allow",
      "Action": [
        "ec2:CreateSubnet"
      ],
      "Resource": [
        "arn:*:ec2:*:*:subnet/*"
      ],
      "Condition": {
        "ForAllValues:StringEquals": {
          "aws:TagKeys": [
            "Name",
            "NSMManaged"
          ]
        },
        "StringEquals": {
          "aws:RequestTag/NSMManaged": [
            "true"
          ]
        }
      }
    },
    {
      "Sid": "Ec2SubnetCleanup",
      "Effect": "Allow",
      "Action": [
        "ec2:DeleteSubnet"
      ],
      "Resource": [
        "arn:*:ec2:*:*:subnet/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/NSMManaged": "true"
        }
      }
    },
    {
      "Sid": "DependencyQuotaRead",
      "Effect": "Allow",
      "Action": "servicequotas:GetServiceQuota",
      "Resource": [
        "arn:*:servicequotas:*:*:wafv2/*",
        "arn:*:servicequotas:*:*:shield/*"
      ]
    },
    {
      "Sid": "Wafv2CheckCapacity",
      "Effect": "Allow",
      "Action": "wafv2:CheckCapacity",
      "Resource": "*"
    }
  ]
}

Version history

Current version v2, edited by AWS on 2026-11-05. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

This policy cannot be attached to users, groups or roles, so there are no attach snippets.

Sources

Pending editorial review. No editorial sources are listed yet.