public void WAFRegionalUpdateRule() { #region updaterule-1475260064720 var client = new AmazonWAFRegionalClient(); 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 }
public void WAFRegionalUpdateByteMatchSet() { #region updatebytematchset-1475259074558 var client = new AmazonWAFRegionalClient(); 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 }
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 }
public void WAFRegionalUpdateWebACL() { #region updatewebacl-1475533627385 var client = new AmazonWAFRegionalClient(); 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 }
public void WAFRegionalUpdateXssMatchSet() { #region updatexssmatchset-1475534098881 var client = new AmazonWAFRegionalClient(); var response = client.UpdateXssMatchSet(new UpdateXssMatchSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", Updates = new List <XssMatchSetUpdate> { new XssMatchSetUpdate { Action = "DELETE", XssMatchTuple = new XssMatchTuple { FieldToMatch = new FieldToMatch { Type = "QUERY_STRING" }, TextTransformation = "URL_DECODE" } } }, XssMatchSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalGetChangeToken() { #region get-change-token-example-1471635120794 var client = new AmazonWAFRegionalClient(); var response = client.GetChangeToken(new GetChangeTokenRequest { }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalGetByteMatchSet() { #region getbytematchset-1473273311532 var client = new AmazonWAFRegionalClient(); var response = client.GetByteMatchSet(new GetByteMatchSetRequest { ByteMatchSetId = "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5" }); ByteMatchSet byteMatchSet = response.ByteMatchSet; #endregion }
public void WAFRegionalGetWebACL() { #region getwebacl-1475006348525 var client = new AmazonWAFRegionalClient(); var response = client.GetWebACL(new GetWebACLRequest { WebACLId = "createwebacl-1472061481310" }); WebACL webACL = response.WebACL; #endregion }
protected IAmazonWAFRegional CreateClient(AWSCredentials credentials, RegionEndpoint region) { var config = new AmazonWAFRegionalConfig { RegionEndpoint = region }; Amazon.PowerShell.Utils.Common.PopulateConfig(this, config); this.CustomizeClientConfig(config); var client = new AmazonWAFRegionalClient(credentials, config); client.BeforeRequestEvent += RequestEventHandler; client.AfterResponseEvent += ResponseEventHandler; return(client); }
public void WAFRegionalListXssMatchSets() { #region listxssmatchsets-1474561481168 var client = new AmazonWAFRegionalClient(); var response = client.ListXssMatchSets(new ListXssMatchSetsRequest { Limit = 100 }); List <XssMatchSetSummary> xssMatchSets = response.XssMatchSets; #endregion }
public void WAFRegionalListSqlInjectionMatchSets() { #region listsqlinjectionmatchset-1474493560103 var client = new AmazonWAFRegionalClient(); var response = client.ListSqlInjectionMatchSets(new ListSqlInjectionMatchSetsRequest { Limit = 100 }); List <SqlInjectionMatchSetSummary> sqlInjectionMatchSets = response.SqlInjectionMatchSets; #endregion }
public void WAFRegionalListWebACLs() { #region listwebacls-1475258732691 var client = new AmazonWAFRegionalClient(); var response = client.ListWebACLs(new ListWebACLsRequest { Limit = 100 }); List <WebACLSummary> webACLs = response.WebACLs; #endregion }
public void WAFRegionalListRules() { #region listrules-1475258406433 var client = new AmazonWAFRegionalClient(); var response = client.ListRules(new ListRulesRequest { Limit = 100 }); List <RuleSummary> rules = response.Rules; #endregion }
public void WAFRegionalGetChangeTokenStatus() { #region getchangetokenstatus-1474658417107 var client = new AmazonWAFRegionalClient(); var response = client.GetChangeTokenStatus(new GetChangeTokenStatusRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" }); string changeTokenStatus = response.ChangeTokenStatus; #endregion }
public void WAFRegionalGetXssMatchSet() { #region getxssmatchset-1475187879017 var client = new AmazonWAFRegionalClient(); var response = client.GetXssMatchSet(new GetXssMatchSetRequest { XssMatchSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); XssMatchSet xssMatchSet = response.XssMatchSet; #endregion }
public void WAFRegionalListIPSets() { #region listipsets-1472235676229 var client = new AmazonWAFRegionalClient(); var response = client.ListIPSets(new ListIPSetsRequest { Limit = 100 }); List <IPSetSummary> ipSets = response.IPSets; #endregion }
public void WAFRegionalGetSqlInjectionMatchSet() { #region getsqlinjectionmatchset-1475005940137 var client = new AmazonWAFRegionalClient(); var response = client.GetSqlInjectionMatchSet(new GetSqlInjectionMatchSetRequest { SqlInjectionMatchSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); SqlInjectionMatchSet sqlInjectionMatchSet = response.SqlInjectionMatchSet; #endregion }
public void WAFRegionalGetSizeConstraintSet() { #region getsizeconstraintset-1475005422493 var client = new AmazonWAFRegionalClient(); var response = client.GetSizeConstraintSet(new GetSizeConstraintSetRequest { SizeConstraintSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); SizeConstraintSet sizeConstraintSet = response.SizeConstraintSet; #endregion }
public void WAFRegionalGetRule() { #region getrule-1474659238790 var client = new AmazonWAFRegionalClient(); var response = client.GetRule(new GetRuleRequest { RuleId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); Rule rule = response.Rule; #endregion }
public void WAFRegionalGetIPSet() { #region getipset-1474658688675 var client = new AmazonWAFRegionalClient(); var response = client.GetIPSet(new GetIPSetRequest { IPSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); IPSet ipSet = response.IPSet; #endregion }
public void WAFRegionalListSizeConstraintSets() { #region listsizeconstraintsets-1474300067597 var client = new AmazonWAFRegionalClient(); var response = client.ListSizeConstraintSets(new ListSizeConstraintSetsRequest { Limit = 100 }); List <SizeConstraintSetSummary> sizeConstraintSets = response.SizeConstraintSets; #endregion }
public void WAFRegionalDeleteByteMatchSet() { #region deletebytematchset-1473367566229 var client = new AmazonWAFRegionalClient(); var response = client.DeleteByteMatchSet(new DeleteByteMatchSetRequest { ByteMatchSetId = "exampleIDs3t-46da-4fdb-b8d5-abc321j569j5", ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalDeleteWebACL() { #region deletewebacl-1472767755931 var client = new AmazonWAFRegionalClient(); var response = client.DeleteWebACL(new DeleteWebACLRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", WebACLId = "example-46da-4444-5555-example" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalDeleteXssMatchSet() { #region deletexssmatchset-1474561302618 var client = new AmazonWAFRegionalClient(); var response = client.DeleteXssMatchSet(new DeleteXssMatchSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", XssMatchSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalDeleteIPSet() { #region deleteipset-1472767434306 var client = new AmazonWAFRegionalClient(); var response = client.DeleteIPSet(new DeleteIPSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", IPSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalDeleteRule() { #region deleterule-1474073108749 var client = new AmazonWAFRegionalClient(); var response = client.DeleteRule(new DeleteRuleRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", RuleId = "WAFRule-1-Example" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalDeleteSizeConstraintSet() { #region deletesizeconstraintset-1474299857905 var client = new AmazonWAFRegionalClient(); var response = client.DeleteSizeConstraintSet(new DeleteSizeConstraintSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", SizeConstraintSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalDeleteSqlInjectionMatchSet() { #region deletesqlinjectionmatchset-1474493373197 var client = new AmazonWAFRegionalClient(); var response = client.DeleteSqlInjectionMatchSet(new DeleteSqlInjectionMatchSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", SqlInjectionMatchSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5" }); string changeToken = response.ChangeToken; #endregion }
public void WAFRegionalCreateSqlInjectionMatchSet() { #region createsqlinjectionmatchset-1474492796105 var client = new AmazonWAFRegionalClient(); var response = client.CreateSqlInjectionMatchSet(new CreateSqlInjectionMatchSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", Name = "MySQLInjectionMatchSet" }); string changeToken = response.ChangeToken; SqlInjectionMatchSet sqlInjectionMatchSet = response.SqlInjectionMatchSet; #endregion }
public void WAFRegionalCreateSizeConstraintSet() { #region createsizeconstraint-1474299140754 var client = new AmazonWAFRegionalClient(); var response = client.CreateSizeConstraintSet(new CreateSizeConstraintSetRequest { ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f", Name = "MySampleSizeConstraintSet" }); string changeToken = response.ChangeToken; SizeConstraintSet sizeConstraintSet = response.SizeConstraintSet; #endregion }