View a markdown version of this page

AWS::NetworkSecurityManager::Policy AssociatedTemplateAndRule - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::NetworkSecurityManager::Policy AssociatedTemplateAndRule

Associates a single template or a single rule with a policy. Specify exactly one of TemplateArn or RuleArn.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "RuleArn" : String, "TemplateArn" : String }

YAML

RuleArn: String TemplateArn: String

Properties

RuleArn

The Amazon Resource Name (ARN) of the rule to associate with the policy. Don't specify this property if you specify TemplateArn.

Required: No

Type: String

Pattern: arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:(.+)

Minimum: 20

Maximum: 1010

Update requires: No interruption

TemplateArn

The Amazon Resource Name (ARN) of the template to associate with the policy. Don't specify this property if you specify RuleArn.

Required: No

Type: String

Pattern: arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:(.+)

Minimum: 20

Maximum: 1010

Update requires: No interruption