AWS Fundamentals Logo
AWS Fundamentals
AWS::VpcLattice::Rule

VpcLattice Rule

Creates 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.

Properties

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

Filter:
PropertyTypeFlags
Action
Action
Required
Match
Match
Required
Priority
integer
Required
ListenerIdentifier
string
Create-onlyWrite-only
Name
string
Create-only
ServiceIdentifier
string
Create-onlyWrite-only
Tags
Array<Tag>

Return Values

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

AttributeTypeDescription
Arnstring-
Idstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::VpcLattice::Rule

Resources:
  MyResource:
    Type: AWS::VpcLattice::Rule
    Properties:
      Action: "value"
      Match: "value"
      Priority: 1
      Tags:
        - Key: Environment
          Value: Production
      Name: !Ref "AWS::StackName"

Required IAM Permissions

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

create

vpc-lattice:CreateRulevpc-lattice:GetRulevpc-lattice:ListTagsForResourcevpc-lattice:TagResource

read

vpc-lattice:GetRulevpc-lattice:ListTagsForResource

update

vpc-lattice:UpdateRulevpc-lattice:GetRulevpc-lattice:TagResourcevpc-lattice:UntagResourcevpc-lattice:ListTagsForResource

delete

vpc-lattice:DeleteRulevpc-lattice:UntagResource

list

vpc-lattice:ListRules

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

ServiceVpcLattice
Properties9
Required3
TaggingSupported
Primary IDArn

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

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

ListenerIdentifierServiceIdentifierName

External Links