{"version":"2","toolVersion":"5.9.75","snippets":{"8a048b42e687ef39cf4406d9ae8fc2b167bf530394b8822e940d5dfbd5254aa4":{"translations":{"python":{"source":"from aws_cdk import App, Validations\nfrom cdk_nag import AwsSolutionsChecks, NIST80053R5Checks\n\n# CdkTestStack: Any\n\napp = App()\nCdkTestStack(app, \"CdkNagDemo\")\n# Simple rule informational messages using the AWS Solutions Rule pack\nValidations.of(app).add_plugins(AwsSolutionsChecks(app))\n# Multiple rule packs can be run against the same app\nValidations.of(app).add_plugins(NIST80053R5Checks(app))","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Cdklabs.CdkNag;\n\nvar CdkTestStack;\n\nvar app = new App();\nnew CdkTestStack(app, \"CdkNagDemo\");\n// Simple rule informational messages using the AWS Solutions Rule pack\nValidations.Of(app).AddPlugins(new AwsSolutionsChecks(app));\n// Multiple rule packs can be run against the same app\nValidations.Of(app).AddPlugins(new NIST80053R5Checks(app));","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Validations;\nimport io.github.cdklabs.cdknag.AwsSolutionsChecks;\nimport io.github.cdklabs.cdknag.NIST80053R5Checks;\n\nObject CdkTestStack;\n\nApp app = new App();\nnew CdkTestStack(app, \"CdkNagDemo\");\n// Simple rule informational messages using the AWS Solutions Rule pack\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));\n// Multiple rule packs can be run against the same app\nValidations.of(app).addPlugins(new NIST80053R5Checks(app));","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/cdklabs/cdk-nag-go/cdknag\"\n\nvar cdkTestStack interface{}\n\napp := awscdk.NewApp()\nNewCdkTestStack(app, jsii.String(\"CdkNagDemo\"))\n// Simple rule informational messages using the AWS Solutions Rule pack\nawscdk.Validations_Of(app).AddPlugins(cdknag.NewAwsSolutionsChecks(app))\n// Multiple rule packs can be run against the same app\nawscdk.Validations_Of(app).AddPlugins(cdknag.NewNIST80053R5Checks(app))","version":"1"},"$":{"source":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks, NIST80053R5Checks } from 'cdk-nag';\n\ndeclare const CdkTestStack: any;\n\nconst app = new App();\nnew CdkTestStack(app, 'CdkNagDemo');\n// Simple rule informational messages using the AWS Solutions Rule pack\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));\n// Multiple rule packs can be run against the same app\nValidations.of(app).addPlugins(new NIST80053R5Checks(app));\n// Additional explanations on the purpose of triggered rules\n// Validations.of(app).addPlugins(new AwsSolutionsChecks(app, { verbose: true }));","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":44}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.IPolicyValidationPlugin","aws-cdk-lib.Validations#addPlugins","aws-cdk-lib.Validations#of","cdk-nag.AwsSolutionsChecks","cdk-nag.NIST80053R5Checks","constructs.IConstruct"],"fullSource":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks, NIST80053R5Checks } from 'cdk-nag';\n\ndeclare const CdkTestStack: any;\n\nconst app = new App();\nnew CdkTestStack(app, 'CdkNagDemo');\n// Simple rule informational messages using the AWS Solutions Rule pack\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));\n// Multiple rule packs can be run against the same app\nValidations.of(app).addPlugins(new NIST80053R5Checks(app));\n// Additional explanations on the purpose of triggered rules\n// Validations.of(app).addPlugins(new AwsSolutionsChecks(app, { verbose: true }));","syntaxKindCounter":{"11":3,"80":21,"133":1,"138":1,"212":4,"214":4,"215":4,"244":2,"245":3,"261":2,"262":2,"273":2,"274":2,"276":2,"277":4,"308":1},"fqnsFingerprint":"9d5dea9e1b80de5d06cf46f88e616365fca960521646acf2a1aec2d562866528"},"74e4ac45cb58f60c9dae9209b2444ddca6b5f2a432fcb784fe77c0429fee367e":{"translations":{"python":{"source":"from aws_cdk.aws_ec2 import SecurityGroup, Vpc, Peer, Port\nfrom aws_cdk import Stack, StackProps, Validations\nfrom constructs import Construct\n\nclass CdkTestStack(Stack):\n def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):\n super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)\n test = SecurityGroup(self, \"test\",\n vpc=Vpc(self, \"vpc\")\n )\n test.add_ingress_rule(Peer.any_ipv4(), Port.all_traffic())\n Validations.of(test).acknowledge(\n id=\"AwsSolutions-EC23\",\n reason=\"This security group is used for internal testing only.\"\n )","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.EC2;\nusing Amazon.CDK;\nusing Constructs;\n\nclass CdkTestStack : Stack\n{\n public CdkTestStack(Construct scope, string id, StackProps? props=null) : base(scope, id, props)\n {\n var test = new SecurityGroup(this, \"test\", new SecurityGroupProps {\n Vpc = new Vpc(this, \"vpc\")\n });\n test.AddIngressRule(Peer.AnyIpv4(), Port.AllTraffic());\n Validations.Of(test).Acknowledge(new Acknowledgment {\n Id = \"AwsSolutions-EC23\",\n Reason = \"This security group is used for internal testing only.\"\n });\n }\n}","version":"1"},"java":{"source":"import software.amazon.awscdk.services.ec2.SecurityGroup;\nimport software.amazon.awscdk.services.ec2.Vpc;\nimport software.amazon.awscdk.services.ec2.Peer;\nimport software.amazon.awscdk.services.ec2.Port;\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.Validations;\nimport software.constructs.Construct;\n\npublic class CdkTestStack extends Stack {\n public CdkTestStack(Construct scope, String id) {\n this(scope, id, null);\n }\n\n public CdkTestStack(Construct scope, String id, StackProps props) {\n super(scope, id, props);\n SecurityGroup test = SecurityGroup.Builder.create(this, \"test\")\n .vpc(new Vpc(this, \"vpc\"))\n .build();\n test.addIngressRule(Peer.anyIpv4(), Port.allTraffic());\n Validations.of(test).acknowledge(Acknowledgment.builder()\n .id(\"AwsSolutions-EC23\")\n .reason(\"This security group is used for internal testing only.\")\n .build());\n }\n}","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/constructs-go/constructs\"\n\ntype CdkTestStack struct {\n\tStack\n}\n\nfunc NewCdkTestStack(scope Construct, id *string, props StackProps) *CdkTestStack {\n\tthis := &CdkTestStack{}\n\tnewStack_Override(this, scope, id, props)\n\ttest := awscdk.NewSecurityGroup(this, jsii.String(\"test\"), &SecurityGroupProps{\n\t\tVpc: awscdk.NewVpc(this, jsii.String(\"vpc\")),\n\t})\n\ttest.AddIngressRule(awscdk.Peer_AnyIpv4(), awscdk.Port_AllTraffic())\n\tawscdk.Validations_Of(test).Acknowledge(&Acknowledgment{\n\t\tId: jsii.String(\"AwsSolutions-EC23\"),\n\t\tReason: jsii.String(\"This security group is used for internal testing only.\"),\n\t})\n\treturn this\n}","version":"1"},"$":{"source":"import { SecurityGroup, Vpc, Peer, Port } from 'aws-cdk-lib/aws-ec2';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const test = new SecurityGroup(this, 'test', {\n vpc: new Vpc(this, 'vpc'),\n });\n test.addIngressRule(Peer.anyIpv4(), Port.allTraffic());\n Validations.of(test).acknowledge({\n id: 'AwsSolutions-EC23',\n reason: 'This security group is used for internal testing only.',\n });\n }\n}","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":69}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.Acknowledgment","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","aws-cdk-lib.Validations#acknowledge","aws-cdk-lib.Validations#of","aws-cdk-lib.aws_ec2.IPeer","aws-cdk-lib.aws_ec2.IVpc","aws-cdk-lib.aws_ec2.Peer#anyIpv4","aws-cdk-lib.aws_ec2.Port","aws-cdk-lib.aws_ec2.Port#allTraffic","aws-cdk-lib.aws_ec2.SecurityGroup","aws-cdk-lib.aws_ec2.SecurityGroup#addIngressRule","aws-cdk-lib.aws_ec2.SecurityGroupProps","aws-cdk-lib.aws_ec2.Vpc","constructs.Construct","constructs.IConstruct"],"fullSource":"import { SecurityGroup, Vpc, Peer, Port } from 'aws-cdk-lib/aws-ec2';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const test = new SecurityGroup(this, 'test', {\n vpc: new Vpc(this, 'vpc'),\n });\n test.addIngressRule(Peer.anyIpv4(), Port.allTraffic());\n Validations.of(test).acknowledge({\n id: 'AwsSolutions-EC23',\n reason: 'This security group is used for internal testing only.',\n });\n }\n}","syntaxKindCounter":{"11":7,"58":1,"80":34,"95":1,"108":1,"110":2,"154":1,"170":3,"177":1,"184":2,"211":2,"212":5,"214":6,"215":2,"234":1,"242":1,"244":1,"245":3,"261":1,"262":1,"264":1,"273":3,"274":3,"276":3,"277":8,"299":1,"304":3,"308":1},"fqnsFingerprint":"605356ce306471b77428dfb7751a0970f6231335824458dcd40423f115e7d48a"},"427eb08a046ab87e82d5666bfb9283d1808d8e1388a839a04f9c882c3965d293":{"translations":{"python":{"source":"from aws_cdk import App, Validations\nfrom cdk_nag import AwsSolutionsChecks\n\n# CdkTestStack: Any\n\napp = App()\nstack = CdkTestStack(app, \"CdkNagDemo\")\nValidations.of(app).add_plugins(AwsSolutionsChecks(app))\nValidations.of(stack).acknowledge(\n id=\"AwsSolutions-EC23\",\n reason=\"All security groups in this stack are internal only.\"\n)","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Cdklabs.CdkNag;\n\nvar CdkTestStack;\n\nvar app = new App();\nvar stack = new CdkTestStack(app, \"CdkNagDemo\");\nValidations.Of(app).AddPlugins(new AwsSolutionsChecks(app));\nValidations.Of(stack).Acknowledge(new Acknowledgment {\n Id = \"AwsSolutions-EC23\",\n Reason = \"All security groups in this stack are internal only.\"\n});","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Validations;\nimport io.github.cdklabs.cdknag.AwsSolutionsChecks;\n\nObject CdkTestStack;\n\nApp app = new App();\nObject stack = new CdkTestStack(app, \"CdkNagDemo\");\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));\nValidations.of(stack).acknowledge(Acknowledgment.builder()\n .id(\"AwsSolutions-EC23\")\n .reason(\"All security groups in this stack are internal only.\")\n .build());","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/cdklabs/cdk-nag-go/cdknag\"\n\nvar cdkTestStack interface{}\n\napp := awscdk.NewApp()\nstack := NewCdkTestStack(app, jsii.String(\"CdkNagDemo\"))\nawscdk.Validations_Of(app).AddPlugins(cdknag.NewAwsSolutionsChecks(app))\nawscdk.Validations_Of(stack).Acknowledge(&Acknowledgment{\n\tId: jsii.String(\"AwsSolutions-EC23\"),\n\tReason: jsii.String(\"All security groups in this stack are internal only.\"),\n})","version":"1"},"$":{"source":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks } from 'cdk-nag';\n\ndeclare const CdkTestStack: any;\n\nconst app = new App();\nconst stack = new CdkTestStack(app, 'CdkNagDemo');\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));\nValidations.of(stack).acknowledge({\n id: 'AwsSolutions-EC23',\n reason: 'All security groups in this stack are internal only.',\n});","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":94}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.Acknowledgment","aws-cdk-lib.App","aws-cdk-lib.IPolicyValidationPlugin","aws-cdk-lib.Validations#acknowledge","aws-cdk-lib.Validations#addPlugins","aws-cdk-lib.Validations#of","cdk-nag.AwsSolutionsChecks","constructs.IConstruct"],"fullSource":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks } from 'cdk-nag';\n\ndeclare const CdkTestStack: any;\n\nconst app = new App();\nconst stack = new CdkTestStack(app, 'CdkNagDemo');\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));\nValidations.of(stack).acknowledge({\n id: 'AwsSolutions-EC23',\n reason: 'All security groups in this stack are internal only.',\n});","syntaxKindCounter":{"11":5,"80":21,"133":1,"138":1,"211":1,"212":4,"214":4,"215":3,"244":3,"245":2,"261":3,"262":3,"273":2,"274":2,"276":2,"277":3,"304":2,"308":1},"fqnsFingerprint":"2c65e1bd06b70123d7f3d3fe7b9d89eb1ac2971171733d69afbfd7689d3133bf"},"b10fcb0ef0e1247a6229f7ff679a4e7da09e0ea7b6dd605696e632a5ba7b7c1d":{"translations":{"python":{"source":"from aws_cdk.aws_iam import User, PolicyStatement\nfrom aws_cdk import Stack, StackProps, Validations\nfrom constructs import Construct\n\nclass CdkTestStack(Stack):\n def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):\n super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)\n user = User(self, \"rUser\")\n user.add_to_policy(\n PolicyStatement(\n actions=[\"s3:*\"],\n resources=[\"*\"]\n ))\n # Only acknowledge the s3:* action — Resource::* still triggers\n Validations.of(user).acknowledge(\n id=\"AwsSolutions-IAM5[Action::s3:*]\",\n reason=\"Need s3:* for cross-account replication.\"\n )","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.IAM;\nusing Amazon.CDK;\nusing Constructs;\n\nclass CdkTestStack : Stack\n{\n public CdkTestStack(Construct scope, string id, StackProps? props=null) : base(scope, id, props)\n {\n var user = new User(this, \"rUser\");\n user.AddToPolicy(\n new PolicyStatement(new PolicyStatementProps {\n Actions = new [] { \"s3:*\" },\n Resources = new [] { \"*\" }\n }));\n // Only acknowledge the s3:* action — Resource::* still triggers\n Validations.Of(user).Acknowledge(new Acknowledgment {\n Id = \"AwsSolutions-IAM5[Action::s3:*]\",\n Reason = \"Need s3:* for cross-account replication.\"\n });\n }\n}","version":"1"},"java":{"source":"import software.amazon.awscdk.services.iam.User;\nimport software.amazon.awscdk.services.iam.PolicyStatement;\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.Validations;\nimport software.constructs.Construct;\n\npublic class CdkTestStack extends Stack {\n public CdkTestStack(Construct scope, String id) {\n this(scope, id, null);\n }\n\n public CdkTestStack(Construct scope, String id, StackProps props) {\n super(scope, id, props);\n User user = new User(this, \"rUser\");\n user.addToPolicy(\n PolicyStatement.Builder.create()\n .actions(List.of(\"s3:*\"))\n .resources(List.of(\"*\"))\n .build());\n // Only acknowledge the s3:* action — Resource::* still triggers\n Validations.of(user).acknowledge(Acknowledgment.builder()\n .id(\"AwsSolutions-IAM5[Action::s3:*]\")\n .reason(\"Need s3:* for cross-account replication.\")\n .build());\n }\n}","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/constructs-go/constructs\"\n\ntype CdkTestStack struct {\n\tStack\n}\n\nfunc NewCdkTestStack(scope Construct, id *string, props StackProps) *CdkTestStack {\n\tthis := &CdkTestStack{}\n\tnewStack_Override(this, scope, id, props)\n\tuser := awscdk.NewUser(this, jsii.String(\"rUser\"))\n\tuser.AddToPolicy(\n\tawscdk.NewPolicyStatement(&PolicyStatementProps{\n\t\tActions: []*string{\n\t\t\tjsii.String(\"s3:*\"),\n\t\t},\n\t\tResources: []*string{\n\t\t\tjsii.String(\"*\"),\n\t\t},\n\t}))\n\t// Only acknowledge the s3:* action — Resource::* still triggers\n\tawscdk.Validations_Of(user).Acknowledge(&Acknowledgment{\n\t\tId: jsii.String(\"AwsSolutions-IAM5[Action::s3:*]\"),\n\t\tReason: jsii.String(\"Need s3:* for cross-account replication.\"),\n\t})\n\treturn this\n}","version":"1"},"$":{"source":"import { User, PolicyStatement } from 'aws-cdk-lib/aws-iam';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const user = new User(this, 'rUser');\n user.addToPolicy(\n new PolicyStatement({\n actions: ['s3:*'],\n resources: ['*'],\n })\n );\n // Only acknowledge the s3:* action — Resource::* still triggers\n Validations.of(user).acknowledge({\n id: 'AwsSolutions-IAM5[Action::s3:*]',\n reason: 'Need s3:* for cross-account replication.',\n });\n }\n}","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":125}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.Acknowledgment","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","aws-cdk-lib.Validations#acknowledge","aws-cdk-lib.Validations#of","aws-cdk-lib.aws_iam.PolicyStatement","aws-cdk-lib.aws_iam.PolicyStatementProps","aws-cdk-lib.aws_iam.User","aws-cdk-lib.aws_iam.User#addToPolicy","constructs.Construct","constructs.IConstruct"],"fullSource":"import { User, PolicyStatement } from 'aws-cdk-lib/aws-iam';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const user = new User(this, 'rUser');\n user.addToPolicy(\n new PolicyStatement({\n actions: ['s3:*'],\n resources: ['*'],\n })\n );\n // Only acknowledge the s3:* action — Resource::* still triggers\n Validations.of(user).acknowledge({\n id: 'AwsSolutions-IAM5[Action::s3:*]',\n reason: 'Need s3:* for cross-account replication.',\n });\n }\n}","syntaxKindCounter":{"11":8,"58":1,"80":29,"95":1,"108":1,"110":1,"154":1,"170":3,"177":1,"184":2,"210":2,"211":2,"212":3,"214":4,"215":2,"234":1,"242":1,"244":1,"245":3,"261":1,"262":1,"264":1,"273":3,"274":3,"276":3,"277":6,"299":1,"304":4,"308":1},"fqnsFingerprint":"a057109ad277d293e62e8c76b681db0a11d2924824c043aafa36a8e1e5f746d4"},"999a93808bf7f42406a9668922a46c236b7c8db6a6a40cd7167658ca075ad2b3":{"translations":{"python":{"source":"from aws_cdk.aws_ec2 import Instance, InstanceType, InstanceClass, MachineImage, Vpc, CfnInstance\nfrom aws_cdk import Stack, StackProps, Validations\nfrom constructs import Construct\n\nclass CdkTestStack(Stack):\n def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):\n super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)\n instance = Instance(self, \"rInstance\",\n vpc=Vpc(self, \"rVpc\"),\n instance_type=InstanceType(InstanceClass.T3),\n machine_image=MachineImage.latest_amazon_linux()\n )\n cfn_ins = instance.node.default_child\n cfn_ins.add_property_override(\"DisableApiTermination\", True)\n Validations.of(instance).acknowledge(\n id=\"AwsSolutions-EC29\",\n reason=\"Remediated through property override.\"\n )","version":"2"},"csharp":{"source":"using Amazon.CDK.AWS.EC2;\nusing Amazon.CDK;\nusing Constructs;\n\nclass CdkTestStack : Stack\n{\n public CdkTestStack(Construct scope, string id, StackProps? props=null) : base(scope, id, props)\n {\n var instance = new Instance(this, \"rInstance\", new InstanceProps {\n Vpc = new Vpc(this, \"rVpc\"),\n InstanceType = new InstanceType(InstanceClass.T3),\n MachineImage = MachineImage.LatestAmazonLinux()\n });\n var cfnIns = (CfnInstance)instance.Node.DefaultChild;\n cfnIns.AddPropertyOverride(\"DisableApiTermination\", true);\n Validations.Of(instance).Acknowledge(new Acknowledgment {\n Id = \"AwsSolutions-EC29\",\n Reason = \"Remediated through property override.\"\n });\n }\n}","version":"1"},"java":{"source":"import software.amazon.awscdk.services.ec2.Instance;\nimport software.amazon.awscdk.services.ec2.InstanceType;\nimport software.amazon.awscdk.services.ec2.InstanceClass;\nimport software.amazon.awscdk.services.ec2.MachineImage;\nimport software.amazon.awscdk.services.ec2.Vpc;\nimport software.amazon.awscdk.services.ec2.CfnInstance;\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.Validations;\nimport software.constructs.Construct;\n\npublic class CdkTestStack extends Stack {\n public CdkTestStack(Construct scope, String id) {\n this(scope, id, null);\n }\n\n public CdkTestStack(Construct scope, String id, StackProps props) {\n super(scope, id, props);\n Instance instance = Instance.Builder.create(this, \"rInstance\")\n .vpc(new Vpc(this, \"rVpc\"))\n .instanceType(new InstanceType(InstanceClass.T3))\n .machineImage(MachineImage.latestAmazonLinux())\n .build();\n CfnInstance cfnIns = (CfnInstance)instance.getNode().getDefaultChild();\n cfnIns.addPropertyOverride(\"DisableApiTermination\", true);\n Validations.of(instance).acknowledge(Acknowledgment.builder()\n .id(\"AwsSolutions-EC29\")\n .reason(\"Remediated through property override.\")\n .build());\n }\n}","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/constructs-go/constructs\"\n\ntype CdkTestStack struct {\n\tStack\n}\n\nfunc NewCdkTestStack(scope Construct, id *string, props StackProps) *CdkTestStack {\n\tthis := &CdkTestStack{}\n\tnewStack_Override(this, scope, id, props)\n\tinstance := awscdk.NewInstance(this, jsii.String(\"rInstance\"), &InstanceProps{\n\t\tVpc: awscdk.NewVpc(this, jsii.String(\"rVpc\")),\n\t\tInstanceType: awscdk.NewInstanceType(awscdk.InstanceClass_T3),\n\t\tMachineImage: awscdk.MachineImage_LatestAmazonLinux(),\n\t})\n\tcfnIns := instance.Node.defaultChild.(CfnInstance)\n\tcfnIns.AddPropertyOverride(jsii.String(\"DisableApiTermination\"), jsii.Boolean(true))\n\tawscdk.Validations_Of(instance).Acknowledge(&Acknowledgment{\n\t\tId: jsii.String(\"AwsSolutions-EC29\"),\n\t\tReason: jsii.String(\"Remediated through property override.\"),\n\t})\n\treturn this\n}","version":"1"},"$":{"source":"import {\n Instance,\n InstanceType,\n InstanceClass,\n MachineImage,\n Vpc,\n CfnInstance,\n} from 'aws-cdk-lib/aws-ec2';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const instance = new Instance(this, 'rInstance', {\n vpc: new Vpc(this, 'rVpc'),\n instanceType: new InstanceType(InstanceClass.T3),\n machineImage: MachineImage.latestAmazonLinux(),\n });\n const cfnIns = instance.node.defaultChild as CfnInstance;\n cfnIns.addPropertyOverride('DisableApiTermination', true);\n Validations.of(instance).acknowledge({\n id: 'AwsSolutions-EC29',\n reason: 'Remediated through property override.',\n });\n }\n}","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":160}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.Acknowledgment","aws-cdk-lib.CfnResource#addPropertyOverride","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","aws-cdk-lib.Validations#acknowledge","aws-cdk-lib.Validations#of","aws-cdk-lib.aws_ec2.CfnInstance","aws-cdk-lib.aws_ec2.IMachineImage","aws-cdk-lib.aws_ec2.IVpc","aws-cdk-lib.aws_ec2.Instance","aws-cdk-lib.aws_ec2.InstanceClass#T3","aws-cdk-lib.aws_ec2.InstanceProps","aws-cdk-lib.aws_ec2.InstanceType","aws-cdk-lib.aws_ec2.MachineImage#latestAmazonLinux","aws-cdk-lib.aws_ec2.Vpc","constructs.Construct","constructs.Construct#node","constructs.IConstruct"],"fullSource":"import {\n Instance,\n InstanceType,\n InstanceClass,\n MachineImage,\n Vpc,\n CfnInstance,\n} from 'aws-cdk-lib/aws-ec2';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const instance = new Instance(this, 'rInstance', {\n vpc: new Vpc(this, 'rVpc'),\n instanceType: new InstanceType(InstanceClass.T3),\n machineImage: MachineImage.latestAmazonLinux(),\n });\n const cfnIns = instance.node.defaultChild as CfnInstance;\n cfnIns.addPropertyOverride('DisableApiTermination', true);\n Validations.of(instance).acknowledge({\n id: 'AwsSolutions-EC29',\n reason: 'Remediated through property override.',\n });\n }\n}","syntaxKindCounter":{"11":8,"58":1,"80":44,"95":1,"108":1,"110":2,"112":1,"154":1,"170":3,"177":1,"184":3,"211":2,"212":7,"214":5,"215":3,"234":1,"235":1,"242":1,"244":2,"245":3,"261":2,"262":2,"264":1,"273":3,"274":3,"276":3,"277":10,"299":1,"304":5,"308":1},"fqnsFingerprint":"8239034f4c9919972c0678a00c1c4019ff5de3bc23de4d3283cac57a5cec7d54"},"9ef11a5bfee724d3f629a0a74ee51202083c9483ee0e342ce87abcf2b67bf798":{"translations":{"python":{"source":"from aws_cdk import App, Validations\nfrom cdk_nag import AwsSolutionsChecks\n\napp = App()\n# Writes acknowledged rules into CfnResource Metadata as cdk_nag: { rules_to_suppress: [...] }\nValidations.of(app).add_plugins(AwsSolutionsChecks(app, write_suppressions_to_cloud_formation=True))","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Cdklabs.CdkNag;\n\nvar app = new App();\n// Writes acknowledged rules into CfnResource Metadata as cdk_nag: { rules_to_suppress: [...] }\nValidations.Of(app).AddPlugins(new AwsSolutionsChecks(app, new NagPackProps { WriteSuppressionsToCloudFormation = true }));","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Validations;\nimport io.github.cdklabs.cdknag.AwsSolutionsChecks;\n\nApp app = new App();\n// Writes acknowledged rules into CfnResource Metadata as cdk_nag: { rules_to_suppress: [...] }\nValidations.of(app).addPlugins(AwsSolutionsChecks.Builder.create(app).writeSuppressionsToCloudFormation(true).build());","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/cdklabs/cdk-nag-go/cdknag\"\n\napp := awscdk.NewApp()\n// Writes acknowledged rules into CfnResource Metadata as cdk_nag: { rules_to_suppress: [...] }\nawscdk.Validations_Of(app).AddPlugins(cdknag.NewAwsSolutionsChecks(app, &NagPackProps{\n\tWriteSuppressionsToCloudFormation: jsii.Boolean(true),\n}))","version":"1"},"$":{"source":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks } from 'cdk-nag';\n\nconst app = new App();\n// Writes acknowledged rules into CfnResource Metadata as cdk_nag: { rules_to_suppress: [...] }\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app, { writeSuppressionsToCloudFormation: true }));","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":196}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.IPolicyValidationPlugin","aws-cdk-lib.Validations#addPlugins","aws-cdk-lib.Validations#of","cdk-nag.AwsSolutionsChecks","cdk-nag.NagPackProps","constructs.IConstruct"],"fullSource":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks } from 'cdk-nag';\n\nconst app = new App();\n// Writes acknowledged rules into CfnResource Metadata as cdk_nag: { rules_to_suppress: [...] }\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app, { writeSuppressionsToCloudFormation: true }));","syntaxKindCounter":{"11":2,"80":12,"112":1,"211":1,"212":2,"214":2,"215":2,"244":1,"245":1,"261":1,"262":1,"273":2,"274":2,"276":2,"277":3,"304":1,"308":1},"fqnsFingerprint":"51c8d22345ffe0eceea697e6e1d8f1a5615d7c8fc250b1a4cd81a4c690dd4417"},"1ae42ca2a55aeb5b42c4d54ca27b69838f465811edb9cac2589910669f6e72ef":{"translations":{"python":{"source":"from aws_cdk import App, Validations\nfrom cdk_nag import AwsSolutionsChecks\n\n# CdkTestStack: Any\n\napp = App()\nCdkTestStack(app, \"CdkNagDemo\")\nValidations.of(app).add_plugins(AwsSolutionsChecks(app))","version":"2"},"csharp":{"source":"using Amazon.CDK;\nusing Cdklabs.CdkNag;\n\nvar CdkTestStack;\n\nvar app = new App();\nnew CdkTestStack(app, \"CdkNagDemo\");\nValidations.Of(app).AddPlugins(new AwsSolutionsChecks(app));","version":"1"},"java":{"source":"import software.amazon.awscdk.App;\nimport software.amazon.awscdk.Validations;\nimport io.github.cdklabs.cdknag.AwsSolutionsChecks;\n\nObject CdkTestStack;\n\nApp app = new App();\nnew CdkTestStack(app, \"CdkNagDemo\");\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/cdklabs/cdk-nag-go/cdknag\"\n\nvar cdkTestStack interface{}\n\napp := awscdk.NewApp()\nNewCdkTestStack(app, jsii.String(\"CdkNagDemo\"))\nawscdk.Validations_Of(app).AddPlugins(cdknag.NewAwsSolutionsChecks(app))","version":"1"},"$":{"source":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks } from 'cdk-nag';\n\ndeclare const CdkTestStack: any;\n\nconst app = new App();\nnew CdkTestStack(app, 'CdkNagDemo');\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":216}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.App","aws-cdk-lib.IPolicyValidationPlugin","aws-cdk-lib.Validations#addPlugins","aws-cdk-lib.Validations#of","cdk-nag.AwsSolutionsChecks","constructs.IConstruct"],"fullSource":"import { App, Validations } from 'aws-cdk-lib';\nimport { AwsSolutionsChecks } from 'cdk-nag';\n\ndeclare const CdkTestStack: any;\n\nconst app = new App();\nnew CdkTestStack(app, 'CdkNagDemo');\nValidations.of(app).addPlugins(new AwsSolutionsChecks(app));","syntaxKindCounter":{"11":3,"80":14,"133":1,"138":1,"212":2,"214":2,"215":3,"244":2,"245":2,"261":2,"262":2,"273":2,"274":2,"276":2,"277":3,"308":1},"fqnsFingerprint":"4b40468c96b250c23a4ef335213b6f49318ae35192e1dc8f8e33c2dfb5f01d23"},"6e919a024a23ccdcd9b421e971cb6259e2908a82eb88edf96583eabc53de7f0d":{"translations":{"python":{"source":"from aws_cdk.cloudformation_include import CfnInclude\nfrom aws_cdk import Stack, StackProps, Validations\nfrom constructs import Construct\n\nclass CdkTestStack(Stack):\n def __init__(self, scope, id, *, description=None, env=None, stackName=None, tags=None, notificationArns=None, synthesizer=None, terminationProtection=None, analyticsReporting=None, crossRegionReferences=None, permissionsBoundary=None, suppressTemplateIndentation=None, propertyInjectors=None):\n super().__init__(scope, id, description=description, env=env, stackName=stackName, tags=tags, notificationArns=notificationArns, synthesizer=synthesizer, terminationProtection=terminationProtection, analyticsReporting=analyticsReporting, crossRegionReferences=crossRegionReferences, permissionsBoundary=permissionsBoundary, suppressTemplateIndentation=suppressTemplateIndentation, propertyInjectors=propertyInjectors)\n template = CfnInclude(self, \"Template\",\n template_file=\"my-template.json\"\n )\n # Acknowledge rules on imported resources\n bucket = template.get_resource(\"rBucket\")\n Validations.of(bucket).acknowledge(\n id=\"AwsSolutions-S1\",\n reason=\"Logging not required for this bucket.\"\n )","version":"2"},"csharp":{"source":"using Amazon.CDK.CloudFormation.Include;\nusing Amazon.CDK;\nusing Constructs;\n\nclass CdkTestStack : Stack\n{\n public CdkTestStack(Construct scope, string id, StackProps? props=null) : base(scope, id, props)\n {\n var template = new CfnInclude(this, \"Template\", new CfnIncludeProps {\n TemplateFile = \"my-template.json\"\n });\n // Acknowledge rules on imported resources\n var bucket = template.GetResource(\"rBucket\");\n Validations.Of(bucket).Acknowledge(new Acknowledgment {\n Id = \"AwsSolutions-S1\",\n Reason = \"Logging not required for this bucket.\"\n });\n }\n}","version":"1"},"java":{"source":"import software.amazon.awscdk.cloudformation.include.CfnInclude;\nimport software.amazon.awscdk.Stack;\nimport software.amazon.awscdk.StackProps;\nimport software.amazon.awscdk.Validations;\nimport software.constructs.Construct;\n\npublic class CdkTestStack extends Stack {\n public CdkTestStack(Construct scope, String id) {\n this(scope, id, null);\n }\n\n public CdkTestStack(Construct scope, String id, StackProps props) {\n super(scope, id, props);\n CfnInclude template = CfnInclude.Builder.create(this, \"Template\")\n .templateFile(\"my-template.json\")\n .build();\n // Acknowledge rules on imported resources\n CfnResource bucket = template.getResource(\"rBucket\");\n Validations.of(bucket).acknowledge(Acknowledgment.builder()\n .id(\"AwsSolutions-S1\")\n .reason(\"Logging not required for this bucket.\")\n .build());\n }\n}","version":"1"},"go":{"source":"import \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/aws-cdk-go/awscdk\"\nimport \"github.com/aws/constructs-go/constructs\"\n\ntype CdkTestStack struct {\n\tStack\n}\n\nfunc NewCdkTestStack(scope Construct, id *string, props StackProps) *CdkTestStack {\n\tthis := &CdkTestStack{}\n\tnewStack_Override(this, scope, id, props)\n\ttemplate := awscdk.NewCfnInclude(this, jsii.String(\"Template\"), &CfnIncludeProps{\n\t\tTemplateFile: jsii.String(\"my-template.json\"),\n\t})\n\t// Acknowledge rules on imported resources\n\tbucket := template.GetResource(jsii.String(\"rBucket\"))\n\tawscdk.Validations_Of(bucket).Acknowledge(&Acknowledgment{\n\t\tId: jsii.String(\"AwsSolutions-S1\"),\n\t\tReason: jsii.String(\"Logging not required for this bucket.\"),\n\t})\n\treturn this\n}","version":"1"},"$":{"source":"import { CfnInclude } from 'aws-cdk-lib/cloudformation-include';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const template = new CfnInclude(this, 'Template', {\n templateFile: 'my-template.json',\n });\n // Acknowledge rules on imported resources\n const bucket = template.getResource('rBucket');\n Validations.of(bucket).acknowledge({\n id: 'AwsSolutions-S1',\n reason: 'Logging not required for this bucket.',\n });\n }\n}","version":"0"}},"location":{"api":{"api":"moduleReadme","moduleFqn":"cdk-nag"},"field":{"field":"markdown","line":229}},"didCompile":true,"fqnsReferenced":["aws-cdk-lib.Acknowledgment","aws-cdk-lib.CfnResource","aws-cdk-lib.Stack","aws-cdk-lib.StackProps","aws-cdk-lib.Validations#acknowledge","aws-cdk-lib.Validations#of","aws-cdk-lib.cloudformation_include.CfnInclude","aws-cdk-lib.cloudformation_include.CfnInclude#getResource","aws-cdk-lib.cloudformation_include.CfnIncludeProps","constructs.Construct","constructs.IConstruct"],"fullSource":"import { CfnInclude } from 'aws-cdk-lib/cloudformation-include';\nimport { Stack, StackProps, Validations } from 'aws-cdk-lib';\nimport { Construct } from 'constructs';\n\nexport class CdkTestStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n const template = new CfnInclude(this, 'Template', {\n templateFile: 'my-template.json',\n });\n // Acknowledge rules on imported resources\n const bucket = template.getResource('rBucket');\n Validations.of(bucket).acknowledge({\n id: 'AwsSolutions-S1',\n reason: 'Logging not required for this bucket.',\n });\n }\n}","syntaxKindCounter":{"11":8,"58":1,"80":27,"95":1,"108":1,"110":1,"154":1,"170":3,"177":1,"184":2,"211":2,"212":3,"214":4,"215":1,"234":1,"242":1,"244":2,"245":2,"261":2,"262":2,"264":1,"273":3,"274":3,"276":3,"277":5,"299":1,"304":3,"308":1},"fqnsFingerprint":"fa72bbe1b8946c9e7f1ac858e95ac25fca9ea05a7e00709a4d541939e7ea29dd"}}}