AWS::VpcLattice::RuleCreates a listener rule. Each listener has a default rule for checking connection requests, but you can define additional rules. Each rule consists of a priority, one or more actions, and one or more conditions. For more information, see [Listener rules](https://docs.aws.amazon.com/vpc-lattice/latest/ug/listeners.html#listener-rules) in the *Amazon VPC Lattice User Guide* .
import { CfnRule } from 'aws-cdk-lib/aws-vpclattice';Or use the module namespace:
import * as vpclattice from 'aws-cdk-lib/aws-vpclattice';
// vpclattice.CfnRuleConfiguration passed to the constructor as CfnRuleProps.
actionRequiredIResolvable | ActionPropertyDescribes the action for a rule.
matchRequiredIResolvable | MatchPropertyThe rule match.
priorityRequirednumberThe priority assigned to the rule. Each rule for a specific listener must have a unique priority. The lower the priority number the higher the priority.
listenerIdentifierOptionalstringThe ID or ARN of the listener.
nameOptionalstringThe name of the rule. The name must be unique within the listener. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen. If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
serviceIdentifierOptionalstringThe ID or ARN of the service.
tagsOptionalCfnTag[]The tags for the rule.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-vpclatticeAWS::VpcLattice::Rule