예제 #1
0
        public void WAFUpdateByteMatchSet()
        {
            #region updatebytematchset-1475259074558

            var client   = new AmazonWAFClient();
            var response = client.UpdateByteMatchSet(new UpdateByteMatchSetRequest
            {
                ByteMatchSetId = "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5",
                ChangeToken    = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
                Updates        = new List <ByteMatchSetUpdate> {
                    new ByteMatchSetUpdate {
                        Action         = "DELETE",
                        ByteMatchTuple = new ByteMatchTuple {
                            FieldToMatch = new FieldToMatch {
                                Data = "referer",
                                Type = "HEADER"
                            },
                            PositionalConstraint = "CONTAINS",
                            TextTransformation   = "NONE"
                        }
                    }
                }
            });

            string changeToken = response.ChangeToken;

            #endregion
        }