Ejemplo n.º 1
0
        public void WAFUpdateWebACL()
        {
            #region updatewebacl-1475533627385

            var client   = new AmazonWAFClient();
            var response = client.UpdateWebACL(new UpdateWebACLRequest
            {
                ChangeToken   = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
                DefaultAction = new WafAction {
                    Type = "ALLOW"
                },
                Updates = new List <WebACLUpdate> {
                    new WebACLUpdate {
                        Action        = "DELETE",
                        ActivatedRule = new ActivatedRule {
                            Action = new WafAction {
                                Type = "ALLOW"
                            },
                            Priority = 1,
                            RuleId   = "WAFRule-1-Example"
                        }
                    }
                },
                WebACLId = "webacl-1472061481310"
            });

            string changeToken = response.ChangeToken;

            #endregion
        }