Ejemplo n.º 1
0
        public void WAFUpdateRule()
        {
            #region updaterule-1475260064720

            var client   = new AmazonWAFClient();
            var response = client.UpdateRule(new UpdateRuleRequest
            {
                ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
                RuleId      = "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
                Updates     = new List <RuleUpdate> {
                    new RuleUpdate {
                        Action    = "DELETE",
                        Predicate = new Predicate {
                            DataId  = "MyByteMatchSetID",
                            Negated = false,
                            Type    = "ByteMatch"
                        }
                    }
                }
            });

            string changeToken = response.ChangeToken;

            #endregion
        }