示例#1
0
 public MyStack()
 {
     var exampleRegexPatternSet = new Aws.WafRegional.RegexPatternSet("exampleRegexPatternSet", new Aws.WafRegional.RegexPatternSetArgs
     {
         RegexPatternStrings =
         {
             "one",
             "two",
         },
     });
     var exampleRegexMatchSet = new Aws.WafRegional.RegexMatchSet("exampleRegexMatchSet", new Aws.WafRegional.RegexMatchSetArgs
     {
         RegexMatchTuples =
         {
             new Aws.WafRegional.Inputs.RegexMatchSetRegexMatchTupleArgs
             {
                 FieldToMatch = new Aws.WafRegional.Inputs.RegexMatchSetRegexMatchTupleFieldToMatchArgs
                 {
                     Data = "User-Agent",
                     Type = "HEADER",
                 },
                 RegexPatternSetId  = exampleRegexPatternSet.Id,
                 TextTransformation = "NONE",
             },
         },
     });
 }
示例#2
0
 public MyStack()
 {
     var example = new Aws.WafRegional.RegexPatternSet("example", new Aws.WafRegional.RegexPatternSetArgs
     {
         RegexPatternStrings =
         {
             "one",
             "two",
         },
     });
 }