This template creates an AWS Firewall Manager policy that applies to specified resource types and includes resource tags and account ID. The policy is named TaggedPolicy and is configured to exclude resource tags, include specified resource types, and apply a security service policy for Shield Advanced.

CloudFormation Template