Exemple #1
0
        public void WAFRegionalUpdateSizeConstraintSet()
        {
            #region updatesizeconstraintset-1475531697891

            var client   = new AmazonWAFRegionalClient();
            var response = client.UpdateSizeConstraintSet(new UpdateSizeConstraintSetRequest
            {
                ChangeToken         = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
                SizeConstraintSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5",
                Updates             = new List <SizeConstraintSetUpdate> {
                    new SizeConstraintSetUpdate {
                        Action         = "DELETE",
                        SizeConstraint = new SizeConstraint {
                            ComparisonOperator = "GT",
                            FieldToMatch       = new FieldToMatch {
                                Type = "QUERY_STRING"
                            },
                            Size = 0,
                            TextTransformation = "NONE"
                        }
                    }
                }
            });

            string changeToken = response.ChangeToken;

            #endregion
        }