How to use changeToken method in wpt

Best JavaScript code snippet using wpt

waf-regional.ts

Source:waf-regional.ts Github

copy

Full Screen

1/**2 * STOP. This file is autogenerated. DO NOT EDIT by hand3 */4export interface AssociateWebACL {5 readonly WebACLId: string;6 readonly ResourceArn: string;7}8export interface CreateByteMatchSet {9 readonly Name: string;10 readonly ChangeToken: string;11}12export interface CreateGeoMatchSet {13 readonly Name: string;14 readonly ChangeToken: string;15}16export interface CreateIPSet {17 readonly Name: string;18 readonly ChangeToken: string;19}20export interface CreateRateBasedRule {21 readonly Name: string;22 readonly MetricName: string;23 readonly RateKey: string;24 readonly RateLimit: number;25 readonly ChangeToken: string;26 readonly Tags?: [];27}28export interface CreateRegexMatchSet {29 readonly Name: string;30 readonly ChangeToken: string;31}32export interface CreateRegexPatternSet {33 readonly Name: string;34 readonly ChangeToken: string;35}36export interface CreateRule {37 readonly Name: string;38 readonly MetricName: string;39 readonly ChangeToken: string;40 readonly Tags?: [];41}42export interface CreateRuleGroup {43 readonly Name: string;44 readonly MetricName: string;45 readonly ChangeToken: string;46 readonly Tags?: [];47}48export interface CreateSizeConstraintSet {49 readonly Name: string;50 readonly ChangeToken: string;51}52export interface CreateSqlInjectionMatchSet {53 readonly Name: string;54 readonly ChangeToken: string;55}56export interface CreateWebACL {57 readonly Name: string;58 readonly MetricName: string;59 readonly DefaultAction: WafAction;60 readonly ChangeToken: string;61 readonly Tags?: [];62}63export interface CreateWebACLMigrationStack {64 readonly WebACLId: string;65 readonly S3BucketName: string;66 readonly IgnoreUnsupportedType: boolean;67}68export interface CreateXssMatchSet {69 readonly Name: string;70 readonly ChangeToken: string;71}72export interface DeleteByteMatchSet {73 readonly ByteMatchSetId: string;74 readonly ChangeToken: string;75}76export interface DeleteGeoMatchSet {77 readonly GeoMatchSetId: string;78 readonly ChangeToken: string;79}80export interface DeleteIPSet {81 readonly IPSetId: string;82 readonly ChangeToken: string;83}84export interface DeleteLoggingConfiguration {85 readonly ResourceArn: string;86}87export interface DeletePermissionPolicy {88 readonly ResourceArn: string;89}90export interface DeleteRateBasedRule {91 readonly RuleId: string;92 readonly ChangeToken: string;93}94export interface DeleteRegexMatchSet {95 readonly RegexMatchSetId: string;96 readonly ChangeToken: string;97}98export interface DeleteRegexPatternSet {99 readonly RegexPatternSetId: string;100 readonly ChangeToken: string;101}102export interface DeleteRule {103 readonly RuleId: string;104 readonly ChangeToken: string;105}106export interface DeleteRuleGroup {107 readonly RuleGroupId: string;108 readonly ChangeToken: string;109}110export interface DeleteSizeConstraintSet {111 readonly SizeConstraintSetId: string;112 readonly ChangeToken: string;113}114export interface DeleteSqlInjectionMatchSet {115 readonly SqlInjectionMatchSetId: string;116 readonly ChangeToken: string;117}118export interface DeleteWebACL {119 readonly WebACLId: string;120 readonly ChangeToken: string;121}122export interface DeleteXssMatchSet {123 readonly XssMatchSetId: string;124 readonly ChangeToken: string;125}126export interface DisassociateWebACL {127 readonly ResourceArn: string;128}129export interface GetByteMatchSet {130 readonly ByteMatchSetId: string;131}132export interface GetChangeToken {133}134export interface GetChangeTokenStatus {135 readonly ChangeToken: string;136}137export interface GetGeoMatchSet {138 readonly GeoMatchSetId: string;139}140export interface GetIPSet {141 readonly IPSetId: string;142}143export interface GetLoggingConfiguration {144 readonly ResourceArn: string;145}146export interface GetPermissionPolicy {147 readonly ResourceArn: string;148}149export interface GetRateBasedRule {150 readonly RuleId: string;151}152export interface GetRateBasedRuleManagedKeys {153 readonly RuleId: string;154 readonly NextMarker?: string;155}156export interface GetRegexMatchSet {157 readonly RegexMatchSetId: string;158}159export interface GetRegexPatternSet {160 readonly RegexPatternSetId: string;161}162export interface GetRule {163 readonly RuleId: string;164}165export interface GetRuleGroup {166 readonly RuleGroupId: string;167}168export interface GetSampledRequests {169 readonly WebAclId: string;170 readonly RuleId: string;171 readonly TimeWindow: TimeWindow;172 readonly MaxItems: number;173}174export interface GetSizeConstraintSet {175 readonly SizeConstraintSetId: string;176}177export interface GetSqlInjectionMatchSet {178 readonly SqlInjectionMatchSetId: string;179}180export interface GetWebACL {181 readonly WebACLId: string;182}183export interface GetWebACLForResource {184 readonly ResourceArn: string;185}186export interface GetXssMatchSet {187 readonly XssMatchSetId: string;188}189export interface ListActivatedRulesInRuleGroup {190 readonly RuleGroupId?: string;191 readonly NextMarker?: string;192 readonly Limit?: number;193}194export interface ListByteMatchSets {195 readonly NextMarker?: string;196 readonly Limit?: number;197}198export interface ListGeoMatchSets {199 readonly NextMarker?: string;200 readonly Limit?: number;201}202export interface ListIPSets {203 readonly NextMarker?: string;204 readonly Limit?: number;205}206export interface ListLoggingConfigurations {207 readonly NextMarker?: string;208 readonly Limit?: number;209}210export interface ListRateBasedRules {211 readonly NextMarker?: string;212 readonly Limit?: number;213}214export interface ListRegexMatchSets {215 readonly NextMarker?: string;216 readonly Limit?: number;217}218export interface ListRegexPatternSets {219 readonly NextMarker?: string;220 readonly Limit?: number;221}222export interface ListResourcesForWebACL {223 readonly WebACLId: string;224 readonly ResourceType?: string;225}226export interface ListRuleGroups {227 readonly NextMarker?: string;228 readonly Limit?: number;229}230export interface ListRules {231 readonly NextMarker?: string;232 readonly Limit?: number;233}234export interface ListSizeConstraintSets {235 readonly NextMarker?: string;236 readonly Limit?: number;237}238export interface ListSqlInjectionMatchSets {239 readonly NextMarker?: string;240 readonly Limit?: number;241}242export interface ListSubscribedRuleGroups {243 readonly NextMarker?: string;244 readonly Limit?: number;245}246export interface ListTagsForResource {247 readonly NextMarker?: string;248 readonly Limit?: number;249 readonly ResourceARN: string;250}251export interface ListWebACLs {252 readonly NextMarker?: string;253 readonly Limit?: number;254}255export interface ListXssMatchSets {256 readonly NextMarker?: string;257 readonly Limit?: number;258}259export interface PutLoggingConfiguration {260 readonly LoggingConfiguration: LoggingConfiguration;261}262export interface PutPermissionPolicy {263 readonly ResourceArn: string;264 readonly Policy: string;265}266export interface TagResource {267 readonly ResourceARN: string;268 readonly Tags: [];269}270export interface UntagResource {271 readonly ResourceARN: string;272 readonly TagKeys: [];273}274export interface UpdateByteMatchSet {275 readonly ByteMatchSetId: string;276 readonly ChangeToken: string;277 readonly Updates: [];278}279export interface UpdateGeoMatchSet {280 readonly GeoMatchSetId: string;281 readonly ChangeToken: string;282 readonly Updates: [];283}284export interface UpdateIPSet {285 readonly IPSetId: string;286 readonly ChangeToken: string;287 readonly Updates: [];288}289export interface UpdateRateBasedRule {290 readonly RuleId: string;291 readonly ChangeToken: string;292 readonly Updates: [];293 readonly RateLimit: number;294}295export interface UpdateRegexMatchSet {296 readonly RegexMatchSetId: string;297 readonly Updates: [];298 readonly ChangeToken: string;299}300export interface UpdateRegexPatternSet {301 readonly RegexPatternSetId: string;302 readonly Updates: [];303 readonly ChangeToken: string;304}305export interface UpdateRule {306 readonly RuleId: string;307 readonly ChangeToken: string;308 readonly Updates: [];309}310export interface UpdateRuleGroup {311 readonly RuleGroupId: string;312 readonly Updates: [];313 readonly ChangeToken: string;314}315export interface UpdateSizeConstraintSet {316 readonly SizeConstraintSetId: string;317 readonly ChangeToken: string;318 readonly Updates: [];319}320export interface UpdateSqlInjectionMatchSet {321 readonly SqlInjectionMatchSetId: string;322 readonly ChangeToken: string;323 readonly Updates: [];324}325export interface UpdateWebACL {326 readonly WebACLId: string;327 readonly ChangeToken: string;328 readonly Updates?: [];329 readonly DefaultAction?: WafAction;330}331export interface UpdateXssMatchSet {332 readonly XssMatchSetId: string;333 readonly ChangeToken: string;334 readonly Updates: [];335}336interface ActivatedRule {337 readonly Priority: number;338 readonly RuleId: string;339 readonly Action: WafAction;340 readonly OverrideAction: WafOverrideAction;341 readonly Type: string;342 readonly ExcludedRules: [];343}344interface AssociateWebACLRequest {345 readonly WebACLId: string;346 readonly ResourceArn: string;347}348interface AssociateWebACLResponse {349}350interface ByteMatchSet {351 readonly ByteMatchSetId: string;352 readonly Name: string;353 readonly ByteMatchTuples: [];354}355interface ByteMatchSetSummary {356 readonly ByteMatchSetId: string;357 readonly Name: string;358}359interface ByteMatchSetUpdate {360 readonly Action: string;361 readonly ByteMatchTuple: ByteMatchTuple;362}363interface ByteMatchTuple {364 readonly FieldToMatch: FieldToMatch;365 readonly TargetString: unknown;366 readonly TextTransformation: string;367 readonly PositionalConstraint: string;368}369interface CreateByteMatchSetRequest {370 readonly Name: string;371 readonly ChangeToken: string;372}373interface CreateByteMatchSetResponse {374 readonly ByteMatchSet: ByteMatchSet;375 readonly ChangeToken: string;376}377interface CreateGeoMatchSetRequest {378 readonly Name: string;379 readonly ChangeToken: string;380}381interface CreateGeoMatchSetResponse {382 readonly GeoMatchSet: GeoMatchSet;383 readonly ChangeToken: string;384}385interface CreateIPSetRequest {386 readonly Name: string;387 readonly ChangeToken: string;388}389interface CreateIPSetResponse {390 readonly IPSet: IPSet;391 readonly ChangeToken: string;392}393interface CreateRateBasedRuleRequest {394 readonly Name: string;395 readonly MetricName: string;396 readonly RateKey: string;397 readonly RateLimit: number;398 readonly ChangeToken: string;399 readonly Tags: [];400}401interface CreateRateBasedRuleResponse {402 readonly Rule: RateBasedRule;403 readonly ChangeToken: string;404}405interface CreateRegexMatchSetRequest {406 readonly Name: string;407 readonly ChangeToken: string;408}409interface CreateRegexMatchSetResponse {410 readonly RegexMatchSet: RegexMatchSet;411 readonly ChangeToken: string;412}413interface CreateRegexPatternSetRequest {414 readonly Name: string;415 readonly ChangeToken: string;416}417interface CreateRegexPatternSetResponse {418 readonly RegexPatternSet: RegexPatternSet;419 readonly ChangeToken: string;420}421interface CreateRuleGroupRequest {422 readonly Name: string;423 readonly MetricName: string;424 readonly ChangeToken: string;425 readonly Tags: [];426}427interface CreateRuleGroupResponse {428 readonly RuleGroup: RuleGroup;429 readonly ChangeToken: string;430}431interface CreateRuleRequest {432 readonly Name: string;433 readonly MetricName: string;434 readonly ChangeToken: string;435 readonly Tags: [];436}437interface CreateRuleResponse {438 readonly Rule: Rule;439 readonly ChangeToken: string;440}441interface CreateSizeConstraintSetRequest {442 readonly Name: string;443 readonly ChangeToken: string;444}445interface CreateSizeConstraintSetResponse {446 readonly SizeConstraintSet: SizeConstraintSet;447 readonly ChangeToken: string;448}449interface CreateSqlInjectionMatchSetRequest {450 readonly Name: string;451 readonly ChangeToken: string;452}453interface CreateSqlInjectionMatchSetResponse {454 readonly SqlInjectionMatchSet: SqlInjectionMatchSet;455 readonly ChangeToken: string;456}457interface CreateWebACLMigrationStackRequest {458 readonly WebACLId: string;459 readonly S3BucketName: string;460 readonly IgnoreUnsupportedType: boolean;461}462interface CreateWebACLMigrationStackResponse {463 readonly S3ObjectUrl: string;464}465interface CreateWebACLRequest {466 readonly Name: string;467 readonly MetricName: string;468 readonly DefaultAction: WafAction;469 readonly ChangeToken: string;470 readonly Tags: [];471}472interface CreateWebACLResponse {473 readonly WebACL: WebACL;474 readonly ChangeToken: string;475}476interface CreateXssMatchSetRequest {477 readonly Name: string;478 readonly ChangeToken: string;479}480interface CreateXssMatchSetResponse {481 readonly XssMatchSet: XssMatchSet;482 readonly ChangeToken: string;483}484interface DeleteByteMatchSetRequest {485 readonly ByteMatchSetId: string;486 readonly ChangeToken: string;487}488interface DeleteByteMatchSetResponse {489 readonly ChangeToken: string;490}491interface DeleteGeoMatchSetRequest {492 readonly GeoMatchSetId: string;493 readonly ChangeToken: string;494}495interface DeleteGeoMatchSetResponse {496 readonly ChangeToken: string;497}498interface DeleteIPSetRequest {499 readonly IPSetId: string;500 readonly ChangeToken: string;501}502interface DeleteIPSetResponse {503 readonly ChangeToken: string;504}505interface DeleteLoggingConfigurationRequest {506 readonly ResourceArn: string;507}508interface DeleteLoggingConfigurationResponse {509}510interface DeletePermissionPolicyRequest {511 readonly ResourceArn: string;512}513interface DeletePermissionPolicyResponse {514}515interface DeleteRateBasedRuleRequest {516 readonly RuleId: string;517 readonly ChangeToken: string;518}519interface DeleteRateBasedRuleResponse {520 readonly ChangeToken: string;521}522interface DeleteRegexMatchSetRequest {523 readonly RegexMatchSetId: string;524 readonly ChangeToken: string;525}526interface DeleteRegexMatchSetResponse {527 readonly ChangeToken: string;528}529interface DeleteRegexPatternSetRequest {530 readonly RegexPatternSetId: string;531 readonly ChangeToken: string;532}533interface DeleteRegexPatternSetResponse {534 readonly ChangeToken: string;535}536interface DeleteRuleGroupRequest {537 readonly RuleGroupId: string;538 readonly ChangeToken: string;539}540interface DeleteRuleGroupResponse {541 readonly ChangeToken: string;542}543interface DeleteRuleRequest {544 readonly RuleId: string;545 readonly ChangeToken: string;546}547interface DeleteRuleResponse {548 readonly ChangeToken: string;549}550interface DeleteSizeConstraintSetRequest {551 readonly SizeConstraintSetId: string;552 readonly ChangeToken: string;553}554interface DeleteSizeConstraintSetResponse {555 readonly ChangeToken: string;556}557interface DeleteSqlInjectionMatchSetRequest {558 readonly SqlInjectionMatchSetId: string;559 readonly ChangeToken: string;560}561interface DeleteSqlInjectionMatchSetResponse {562 readonly ChangeToken: string;563}564interface DeleteWebACLRequest {565 readonly WebACLId: string;566 readonly ChangeToken: string;567}568interface DeleteWebACLResponse {569 readonly ChangeToken: string;570}571interface DeleteXssMatchSetRequest {572 readonly XssMatchSetId: string;573 readonly ChangeToken: string;574}575interface DeleteXssMatchSetResponse {576 readonly ChangeToken: string;577}578interface DisassociateWebACLRequest {579 readonly ResourceArn: string;580}581interface DisassociateWebACLResponse {582}583interface ExcludedRule {584 readonly RuleId: string;585}586interface FieldToMatch {587 readonly Type: string;588 readonly Data: string;589}590interface GeoMatchConstraint {591 readonly Type: string;592 readonly Value: string;593}594interface GeoMatchSet {595 readonly GeoMatchSetId: string;596 readonly Name: string;597 readonly GeoMatchConstraints: [];598}599interface GeoMatchSetSummary {600 readonly GeoMatchSetId: string;601 readonly Name: string;602}603interface GeoMatchSetUpdate {604 readonly Action: string;605 readonly GeoMatchConstraint: GeoMatchConstraint;606}607interface GetByteMatchSetRequest {608 readonly ByteMatchSetId: string;609}610interface GetByteMatchSetResponse {611 readonly ByteMatchSet: ByteMatchSet;612}613interface GetChangeTokenRequest {614}615interface GetChangeTokenResponse {616 readonly ChangeToken: string;617}618interface GetChangeTokenStatusRequest {619 readonly ChangeToken: string;620}621interface GetChangeTokenStatusResponse {622 readonly ChangeTokenStatus: string;623}624interface GetGeoMatchSetRequest {625 readonly GeoMatchSetId: string;626}627interface GetGeoMatchSetResponse {628 readonly GeoMatchSet: GeoMatchSet;629}630interface GetIPSetRequest {631 readonly IPSetId: string;632}633interface GetIPSetResponse {634 readonly IPSet: IPSet;635}636interface GetLoggingConfigurationRequest {637 readonly ResourceArn: string;638}639interface GetLoggingConfigurationResponse {640 readonly LoggingConfiguration: LoggingConfiguration;641}642interface GetPermissionPolicyRequest {643 readonly ResourceArn: string;644}645interface GetPermissionPolicyResponse {646 readonly Policy: string;647}648interface GetRateBasedRuleManagedKeysRequest {649 readonly RuleId: string;650 readonly NextMarker: string;651}652interface GetRateBasedRuleManagedKeysResponse {653 readonly ManagedKeys: [];654 readonly NextMarker: string;655}656interface GetRateBasedRuleRequest {657 readonly RuleId: string;658}659interface GetRateBasedRuleResponse {660 readonly Rule: RateBasedRule;661}662interface GetRegexMatchSetRequest {663 readonly RegexMatchSetId: string;664}665interface GetRegexMatchSetResponse {666 readonly RegexMatchSet: RegexMatchSet;667}668interface GetRegexPatternSetRequest {669 readonly RegexPatternSetId: string;670}671interface GetRegexPatternSetResponse {672 readonly RegexPatternSet: RegexPatternSet;673}674interface GetRuleGroupRequest {675 readonly RuleGroupId: string;676}677interface GetRuleGroupResponse {678 readonly RuleGroup: RuleGroup;679}680interface GetRuleRequest {681 readonly RuleId: string;682}683interface GetRuleResponse {684 readonly Rule: Rule;685}686interface GetSampledRequestsRequest {687 readonly WebAclId: string;688 readonly RuleId: string;689 readonly TimeWindow: TimeWindow;690 readonly MaxItems: number;691}692interface GetSampledRequestsResponse {693 readonly SampledRequests: [];694 readonly PopulationSize: number;695 readonly TimeWindow: TimeWindow;696}697interface GetSizeConstraintSetRequest {698 readonly SizeConstraintSetId: string;699}700interface GetSizeConstraintSetResponse {701 readonly SizeConstraintSet: SizeConstraintSet;702}703interface GetSqlInjectionMatchSetRequest {704 readonly SqlInjectionMatchSetId: string;705}706interface GetSqlInjectionMatchSetResponse {707 readonly SqlInjectionMatchSet: SqlInjectionMatchSet;708}709interface GetWebACLForResourceRequest {710 readonly ResourceArn: string;711}712interface GetWebACLForResourceResponse {713 readonly WebACLSummary: WebACLSummary;714}715interface GetWebACLRequest {716 readonly WebACLId: string;717}718interface GetWebACLResponse {719 readonly WebACL: WebACL;720}721interface GetXssMatchSetRequest {722 readonly XssMatchSetId: string;723}724interface GetXssMatchSetResponse {725 readonly XssMatchSet: XssMatchSet;726}727interface HTTPHeader {728 readonly Name: string;729 readonly Value: string;730}731interface HTTPRequest {732 readonly ClientIP: string;733 readonly Country: string;734 readonly URI: string;735 readonly Method: string;736 readonly HTTPVersion: string;737 readonly Headers: [];738}739interface IPSet {740 readonly IPSetId: string;741 readonly Name: string;742 readonly IPSetDescriptors: [];743}744interface IPSetDescriptor {745 readonly Type: string;746 readonly Value: string;747}748interface IPSetSummary {749 readonly IPSetId: string;750 readonly Name: string;751}752interface IPSetUpdate {753 readonly Action: string;754 readonly IPSetDescriptor: IPSetDescriptor;755}756interface ListActivatedRulesInRuleGroupRequest {757 readonly RuleGroupId: string;758 readonly NextMarker: string;759 readonly Limit: number;760}761interface ListActivatedRulesInRuleGroupResponse {762 readonly NextMarker: string;763 readonly ActivatedRules: [];764}765interface ListByteMatchSetsRequest {766 readonly NextMarker: string;767 readonly Limit: number;768}769interface ListByteMatchSetsResponse {770 readonly NextMarker: string;771 readonly ByteMatchSets: [];772}773interface ListGeoMatchSetsRequest {774 readonly NextMarker: string;775 readonly Limit: number;776}777interface ListGeoMatchSetsResponse {778 readonly NextMarker: string;779 readonly GeoMatchSets: [];780}781interface ListIPSetsRequest {782 readonly NextMarker: string;783 readonly Limit: number;784}785interface ListIPSetsResponse {786 readonly NextMarker: string;787 readonly IPSets: [];788}789interface ListLoggingConfigurationsRequest {790 readonly NextMarker: string;791 readonly Limit: number;792}793interface ListLoggingConfigurationsResponse {794 readonly LoggingConfigurations: [];795 readonly NextMarker: string;796}797interface ListRateBasedRulesRequest {798 readonly NextMarker: string;799 readonly Limit: number;800}801interface ListRateBasedRulesResponse {802 readonly NextMarker: string;803 readonly Rules: [];804}805interface ListRegexMatchSetsRequest {806 readonly NextMarker: string;807 readonly Limit: number;808}809interface ListRegexMatchSetsResponse {810 readonly NextMarker: string;811 readonly RegexMatchSets: [];812}813interface ListRegexPatternSetsRequest {814 readonly NextMarker: string;815 readonly Limit: number;816}817interface ListRegexPatternSetsResponse {818 readonly NextMarker: string;819 readonly RegexPatternSets: [];820}821interface ListResourcesForWebACLRequest {822 readonly WebACLId: string;823 readonly ResourceType: string;824}825interface ListResourcesForWebACLResponse {826 readonly ResourceArns: [];827}828interface ListRuleGroupsRequest {829 readonly NextMarker: string;830 readonly Limit: number;831}832interface ListRuleGroupsResponse {833 readonly NextMarker: string;834 readonly RuleGroups: [];835}836interface ListRulesRequest {837 readonly NextMarker: string;838 readonly Limit: number;839}840interface ListRulesResponse {841 readonly NextMarker: string;842 readonly Rules: [];843}844interface ListSizeConstraintSetsRequest {845 readonly NextMarker: string;846 readonly Limit: number;847}848interface ListSizeConstraintSetsResponse {849 readonly NextMarker: string;850 readonly SizeConstraintSets: [];851}852interface ListSqlInjectionMatchSetsRequest {853 readonly NextMarker: string;854 readonly Limit: number;855}856interface ListSqlInjectionMatchSetsResponse {857 readonly NextMarker: string;858 readonly SqlInjectionMatchSets: [];859}860interface ListSubscribedRuleGroupsRequest {861 readonly NextMarker: string;862 readonly Limit: number;863}864interface ListSubscribedRuleGroupsResponse {865 readonly NextMarker: string;866 readonly RuleGroups: [];867}868interface ListTagsForResourceRequest {869 readonly NextMarker: string;870 readonly Limit: number;871 readonly ResourceARN: string;872}873interface ListTagsForResourceResponse {874 readonly NextMarker: string;875 readonly TagInfoForResource: TagInfoForResource;876}877interface ListWebACLsRequest {878 readonly NextMarker: string;879 readonly Limit: number;880}881interface ListWebACLsResponse {882 readonly NextMarker: string;883 readonly WebACLs: [];884}885interface ListXssMatchSetsRequest {886 readonly NextMarker: string;887 readonly Limit: number;888}889interface ListXssMatchSetsResponse {890 readonly NextMarker: string;891 readonly XssMatchSets: [];892}893interface LoggingConfiguration {894 readonly ResourceArn: string;895 readonly LogDestinationConfigs: [];896 readonly RedactedFields: [];897}898interface Predicate {899 readonly Negated: boolean;900 readonly Type: string;901 readonly DataId: string;902}903interface PutLoggingConfigurationRequest {904 readonly LoggingConfiguration: LoggingConfiguration;905}906interface PutLoggingConfigurationResponse {907 readonly LoggingConfiguration: LoggingConfiguration;908}909interface PutPermissionPolicyRequest {910 readonly ResourceArn: string;911 readonly Policy: string;912}913interface PutPermissionPolicyResponse {914}915interface RateBasedRule {916 readonly RuleId: string;917 readonly Name: string;918 readonly MetricName: string;919 readonly MatchPredicates: [];920 readonly RateKey: string;921 readonly RateLimit: number;922}923interface RegexMatchSet {924 readonly RegexMatchSetId: string;925 readonly Name: string;926 readonly RegexMatchTuples: [];927}928interface RegexMatchSetSummary {929 readonly RegexMatchSetId: string;930 readonly Name: string;931}932interface RegexMatchSetUpdate {933 readonly Action: string;934 readonly RegexMatchTuple: RegexMatchTuple;935}936interface RegexMatchTuple {937 readonly FieldToMatch: FieldToMatch;938 readonly TextTransformation: string;939 readonly RegexPatternSetId: string;940}941interface RegexPatternSet {942 readonly RegexPatternSetId: string;943 readonly Name: string;944 readonly RegexPatternStrings: [];945}946interface RegexPatternSetSummary {947 readonly RegexPatternSetId: string;948 readonly Name: string;949}950interface RegexPatternSetUpdate {951 readonly Action: string;952 readonly RegexPatternString: string;953}954interface Rule {955 readonly RuleId: string;956 readonly Name: string;957 readonly MetricName: string;958 readonly Predicates: [];959}960interface RuleGroup {961 readonly RuleGroupId: string;962 readonly Name: string;963 readonly MetricName: string;964}965interface RuleGroupSummary {966 readonly RuleGroupId: string;967 readonly Name: string;968}969interface RuleGroupUpdate {970 readonly Action: string;971 readonly ActivatedRule: ActivatedRule;972}973interface RuleSummary {974 readonly RuleId: string;975 readonly Name: string;976}977interface RuleUpdate {978 readonly Action: string;979 readonly Predicate: Predicate;980}981interface SampledHTTPRequest {982 readonly Request: HTTPRequest;983 readonly Weight: number;984 readonly Timestamp: Date;985 readonly Action: string;986 readonly RuleWithinRuleGroup: string;987}988interface SizeConstraint {989 readonly FieldToMatch: FieldToMatch;990 readonly TextTransformation: string;991 readonly ComparisonOperator: string;992 readonly Size: number;993}994interface SizeConstraintSet {995 readonly SizeConstraintSetId: string;996 readonly Name: string;997 readonly SizeConstraints: [];998}999interface SizeConstraintSetSummary {1000 readonly SizeConstraintSetId: string;1001 readonly Name: string;1002}1003interface SizeConstraintSetUpdate {1004 readonly Action: string;1005 readonly SizeConstraint: SizeConstraint;1006}1007interface SqlInjectionMatchSet {1008 readonly SqlInjectionMatchSetId: string;1009 readonly Name: string;1010 readonly SqlInjectionMatchTuples: [];1011}1012interface SqlInjectionMatchSetSummary {1013 readonly SqlInjectionMatchSetId: string;1014 readonly Name: string;1015}1016interface SqlInjectionMatchSetUpdate {1017 readonly Action: string;1018 readonly SqlInjectionMatchTuple: SqlInjectionMatchTuple;1019}1020interface SqlInjectionMatchTuple {1021 readonly FieldToMatch: FieldToMatch;1022 readonly TextTransformation: string;1023}1024interface SubscribedRuleGroupSummary {1025 readonly RuleGroupId: string;1026 readonly Name: string;1027 readonly MetricName: string;1028}1029interface Tag {1030 readonly Key: string;1031 readonly Value: string;1032}1033interface TagInfoForResource {1034 readonly ResourceARN: string;1035 readonly TagList: [];1036}1037interface TagResourceRequest {1038 readonly ResourceARN: string;1039 readonly Tags: [];1040}1041interface TagResourceResponse {1042}1043interface TimeWindow {1044 readonly StartTime: Date;1045 readonly EndTime: Date;1046}1047interface UntagResourceRequest {1048 readonly ResourceARN: string;1049 readonly TagKeys: [];1050}1051interface UntagResourceResponse {1052}1053interface UpdateByteMatchSetRequest {1054 readonly ByteMatchSetId: string;1055 readonly ChangeToken: string;1056 readonly Updates: [];1057}1058interface UpdateByteMatchSetResponse {1059 readonly ChangeToken: string;1060}1061interface UpdateGeoMatchSetRequest {1062 readonly GeoMatchSetId: string;1063 readonly ChangeToken: string;1064 readonly Updates: [];1065}1066interface UpdateGeoMatchSetResponse {1067 readonly ChangeToken: string;1068}1069interface UpdateIPSetRequest {1070 readonly IPSetId: string;1071 readonly ChangeToken: string;1072 readonly Updates: [];1073}1074interface UpdateIPSetResponse {1075 readonly ChangeToken: string;1076}1077interface UpdateRateBasedRuleRequest {1078 readonly RuleId: string;1079 readonly ChangeToken: string;1080 readonly Updates: [];1081 readonly RateLimit: number;1082}1083interface UpdateRateBasedRuleResponse {1084 readonly ChangeToken: string;1085}1086interface UpdateRegexMatchSetRequest {1087 readonly RegexMatchSetId: string;1088 readonly Updates: [];1089 readonly ChangeToken: string;1090}1091interface UpdateRegexMatchSetResponse {1092 readonly ChangeToken: string;1093}1094interface UpdateRegexPatternSetRequest {1095 readonly RegexPatternSetId: string;1096 readonly Updates: [];1097 readonly ChangeToken: string;1098}1099interface UpdateRegexPatternSetResponse {1100 readonly ChangeToken: string;1101}1102interface UpdateRuleGroupRequest {1103 readonly RuleGroupId: string;1104 readonly Updates: [];1105 readonly ChangeToken: string;1106}1107interface UpdateRuleGroupResponse {1108 readonly ChangeToken: string;1109}1110interface UpdateRuleRequest {1111 readonly RuleId: string;1112 readonly ChangeToken: string;1113 readonly Updates: [];1114}1115interface UpdateRuleResponse {1116 readonly ChangeToken: string;1117}1118interface UpdateSizeConstraintSetRequest {1119 readonly SizeConstraintSetId: string;1120 readonly ChangeToken: string;1121 readonly Updates: [];1122}1123interface UpdateSizeConstraintSetResponse {1124 readonly ChangeToken: string;1125}1126interface UpdateSqlInjectionMatchSetRequest {1127 readonly SqlInjectionMatchSetId: string;1128 readonly ChangeToken: string;1129 readonly Updates: [];1130}1131interface UpdateSqlInjectionMatchSetResponse {1132 readonly ChangeToken: string;1133}1134interface UpdateWebACLRequest {1135 readonly WebACLId: string;1136 readonly ChangeToken: string;1137 readonly Updates: [];1138 readonly DefaultAction: WafAction;1139}1140interface UpdateWebACLResponse {1141 readonly ChangeToken: string;1142}1143interface UpdateXssMatchSetRequest {1144 readonly XssMatchSetId: string;1145 readonly ChangeToken: string;1146 readonly Updates: [];1147}1148interface UpdateXssMatchSetResponse {1149 readonly ChangeToken: string;1150}1151interface WAFBadRequestException {1152 readonly message: string;1153}1154interface WAFDisallowedNameException {1155 readonly message: string;1156}1157interface WAFEntityMigrationException {1158 readonly message: string;1159 readonly MigrationErrorType: string;1160 readonly MigrationErrorReason: string;1161}1162interface WAFInternalErrorException {1163 readonly message: string;1164}1165interface WAFInvalidAccountException {1166}1167interface WAFInvalidOperationException {1168 readonly message: string;1169}1170interface WAFInvalidParameterException {1171 readonly field: string;1172 readonly parameter: string;1173 readonly reason: string;1174}1175interface WAFInvalidPermissionPolicyException {1176 readonly message: string;1177}1178interface WAFInvalidRegexPatternException {1179 readonly message: string;1180}1181interface WAFLimitsExceededException {1182 readonly message: string;1183}1184interface WAFNonEmptyEntityException {1185 readonly message: string;1186}1187interface WAFNonexistentContainerException {1188 readonly message: string;1189}1190interface WAFNonexistentItemException {1191 readonly message: string;1192}1193interface WAFReferencedItemException {1194 readonly message: string;1195}1196interface WAFServiceLinkedRoleErrorException {1197 readonly message: string;1198}1199interface WAFStaleDataException {1200 readonly message: string;1201}1202interface WAFSubscriptionNotFoundException {1203 readonly message: string;1204}1205interface WAFTagOperationException {1206 readonly message: string;1207}1208interface WAFTagOperationInternalErrorException {1209 readonly message: string;1210}1211interface WAFUnavailableEntityException {1212 readonly message: string;1213}1214interface WafAction {1215 readonly Type: string;1216}1217interface WafOverrideAction {1218 readonly Type: string;1219}1220interface WebACL {1221 readonly WebACLId: string;1222 readonly Name: string;1223 readonly MetricName: string;1224 readonly DefaultAction: WafAction;1225 readonly Rules: [];1226 readonly WebACLArn: string;1227}1228interface WebACLSummary {1229 readonly WebACLId: string;1230 readonly Name: string;1231}1232interface WebACLUpdate {1233 readonly Action: string;1234 readonly ActivatedRule: ActivatedRule;1235}1236interface XssMatchSet {1237 readonly XssMatchSetId: string;1238 readonly Name: string;1239 readonly XssMatchTuples: [];1240}1241interface XssMatchSetSummary {1242 readonly XssMatchSetId: string;1243 readonly Name: string;1244}1245interface XssMatchSetUpdate {1246 readonly Action: string;1247 readonly XssMatchTuple: XssMatchTuple;1248}1249interface XssMatchTuple {1250 readonly FieldToMatch: FieldToMatch;1251 readonly TextTransformation: string;...

Full Screen

Full Screen

waf.ts

Source:waf.ts Github

copy

Full Screen

1/**2 * STOP. This file is autogenerated. DO NOT EDIT by hand3 */4export interface CreateByteMatchSet {5 readonly Name: string;6 readonly ChangeToken: string;7}8export interface CreateGeoMatchSet {9 readonly Name: string;10 readonly ChangeToken: string;11}12export interface CreateIPSet {13 readonly Name: string;14 readonly ChangeToken: string;15}16export interface CreateRateBasedRule {17 readonly Name: string;18 readonly MetricName: string;19 readonly RateKey: string;20 readonly RateLimit: number;21 readonly ChangeToken: string;22 readonly Tags?: [];23}24export interface CreateRegexMatchSet {25 readonly Name: string;26 readonly ChangeToken: string;27}28export interface CreateRegexPatternSet {29 readonly Name: string;30 readonly ChangeToken: string;31}32export interface CreateRule {33 readonly Name: string;34 readonly MetricName: string;35 readonly ChangeToken: string;36 readonly Tags?: [];37}38export interface CreateRuleGroup {39 readonly Name: string;40 readonly MetricName: string;41 readonly ChangeToken: string;42 readonly Tags?: [];43}44export interface CreateSizeConstraintSet {45 readonly Name: string;46 readonly ChangeToken: string;47}48export interface CreateSqlInjectionMatchSet {49 readonly Name: string;50 readonly ChangeToken: string;51}52export interface CreateWebACL {53 readonly Name: string;54 readonly MetricName: string;55 readonly DefaultAction: WafAction;56 readonly ChangeToken: string;57 readonly Tags?: [];58}59export interface CreateWebACLMigrationStack {60 readonly WebACLId: string;61 readonly S3BucketName: string;62 readonly IgnoreUnsupportedType: boolean;63}64export interface CreateXssMatchSet {65 readonly Name: string;66 readonly ChangeToken: string;67}68export interface DeleteByteMatchSet {69 readonly ByteMatchSetId: string;70 readonly ChangeToken: string;71}72export interface DeleteGeoMatchSet {73 readonly GeoMatchSetId: string;74 readonly ChangeToken: string;75}76export interface DeleteIPSet {77 readonly IPSetId: string;78 readonly ChangeToken: string;79}80export interface DeleteLoggingConfiguration {81 readonly ResourceArn: string;82}83export interface DeletePermissionPolicy {84 readonly ResourceArn: string;85}86export interface DeleteRateBasedRule {87 readonly RuleId: string;88 readonly ChangeToken: string;89}90export interface DeleteRegexMatchSet {91 readonly RegexMatchSetId: string;92 readonly ChangeToken: string;93}94export interface DeleteRegexPatternSet {95 readonly RegexPatternSetId: string;96 readonly ChangeToken: string;97}98export interface DeleteRule {99 readonly RuleId: string;100 readonly ChangeToken: string;101}102export interface DeleteRuleGroup {103 readonly RuleGroupId: string;104 readonly ChangeToken: string;105}106export interface DeleteSizeConstraintSet {107 readonly SizeConstraintSetId: string;108 readonly ChangeToken: string;109}110export interface DeleteSqlInjectionMatchSet {111 readonly SqlInjectionMatchSetId: string;112 readonly ChangeToken: string;113}114export interface DeleteWebACL {115 readonly WebACLId: string;116 readonly ChangeToken: string;117}118export interface DeleteXssMatchSet {119 readonly XssMatchSetId: string;120 readonly ChangeToken: string;121}122export interface GetByteMatchSet {123 readonly ByteMatchSetId: string;124}125export interface GetChangeToken {126}127export interface GetChangeTokenStatus {128 readonly ChangeToken: string;129}130export interface GetGeoMatchSet {131 readonly GeoMatchSetId: string;132}133export interface GetIPSet {134 readonly IPSetId: string;135}136export interface GetLoggingConfiguration {137 readonly ResourceArn: string;138}139export interface GetPermissionPolicy {140 readonly ResourceArn: string;141}142export interface GetRateBasedRule {143 readonly RuleId: string;144}145export interface GetRateBasedRuleManagedKeys {146 readonly RuleId: string;147 readonly NextMarker?: string;148}149export interface GetRegexMatchSet {150 readonly RegexMatchSetId: string;151}152export interface GetRegexPatternSet {153 readonly RegexPatternSetId: string;154}155export interface GetRule {156 readonly RuleId: string;157}158export interface GetRuleGroup {159 readonly RuleGroupId: string;160}161export interface GetSampledRequests {162 readonly WebAclId: string;163 readonly RuleId: string;164 readonly TimeWindow: TimeWindow;165 readonly MaxItems: number;166}167export interface GetSizeConstraintSet {168 readonly SizeConstraintSetId: string;169}170export interface GetSqlInjectionMatchSet {171 readonly SqlInjectionMatchSetId: string;172}173export interface GetWebACL {174 readonly WebACLId: string;175}176export interface GetXssMatchSet {177 readonly XssMatchSetId: string;178}179export interface ListActivatedRulesInRuleGroup {180 readonly RuleGroupId?: string;181 readonly NextMarker?: string;182 readonly Limit?: number;183}184export interface ListByteMatchSets {185 readonly NextMarker?: string;186 readonly Limit?: number;187}188export interface ListGeoMatchSets {189 readonly NextMarker?: string;190 readonly Limit?: number;191}192export interface ListIPSets {193 readonly NextMarker?: string;194 readonly Limit?: number;195}196export interface ListLoggingConfigurations {197 readonly NextMarker?: string;198 readonly Limit?: number;199}200export interface ListRateBasedRules {201 readonly NextMarker?: string;202 readonly Limit?: number;203}204export interface ListRegexMatchSets {205 readonly NextMarker?: string;206 readonly Limit?: number;207}208export interface ListRegexPatternSets {209 readonly NextMarker?: string;210 readonly Limit?: number;211}212export interface ListRuleGroups {213 readonly NextMarker?: string;214 readonly Limit?: number;215}216export interface ListRules {217 readonly NextMarker?: string;218 readonly Limit?: number;219}220export interface ListSizeConstraintSets {221 readonly NextMarker?: string;222 readonly Limit?: number;223}224export interface ListSqlInjectionMatchSets {225 readonly NextMarker?: string;226 readonly Limit?: number;227}228export interface ListSubscribedRuleGroups {229 readonly NextMarker?: string;230 readonly Limit?: number;231}232export interface ListTagsForResource {233 readonly NextMarker?: string;234 readonly Limit?: number;235 readonly ResourceARN: string;236}237export interface ListWebACLs {238 readonly NextMarker?: string;239 readonly Limit?: number;240}241export interface ListXssMatchSets {242 readonly NextMarker?: string;243 readonly Limit?: number;244}245export interface PutLoggingConfiguration {246 readonly LoggingConfiguration: LoggingConfiguration;247}248export interface PutPermissionPolicy {249 readonly ResourceArn: string;250 readonly Policy: string;251}252export interface TagResource {253 readonly ResourceARN: string;254 readonly Tags: [];255}256export interface UntagResource {257 readonly ResourceARN: string;258 readonly TagKeys: [];259}260export interface UpdateByteMatchSet {261 readonly ByteMatchSetId: string;262 readonly ChangeToken: string;263 readonly Updates: [];264}265export interface UpdateGeoMatchSet {266 readonly GeoMatchSetId: string;267 readonly ChangeToken: string;268 readonly Updates: [];269}270export interface UpdateIPSet {271 readonly IPSetId: string;272 readonly ChangeToken: string;273 readonly Updates: [];274}275export interface UpdateRateBasedRule {276 readonly RuleId: string;277 readonly ChangeToken: string;278 readonly Updates: [];279 readonly RateLimit: number;280}281export interface UpdateRegexMatchSet {282 readonly RegexMatchSetId: string;283 readonly Updates: [];284 readonly ChangeToken: string;285}286export interface UpdateRegexPatternSet {287 readonly RegexPatternSetId: string;288 readonly Updates: [];289 readonly ChangeToken: string;290}291export interface UpdateRule {292 readonly RuleId: string;293 readonly ChangeToken: string;294 readonly Updates: [];295}296export interface UpdateRuleGroup {297 readonly RuleGroupId: string;298 readonly Updates: [];299 readonly ChangeToken: string;300}301export interface UpdateSizeConstraintSet {302 readonly SizeConstraintSetId: string;303 readonly ChangeToken: string;304 readonly Updates: [];305}306export interface UpdateSqlInjectionMatchSet {307 readonly SqlInjectionMatchSetId: string;308 readonly ChangeToken: string;309 readonly Updates: [];310}311export interface UpdateWebACL {312 readonly WebACLId: string;313 readonly ChangeToken: string;314 readonly Updates?: [];315 readonly DefaultAction?: WafAction;316}317export interface UpdateXssMatchSet {318 readonly XssMatchSetId: string;319 readonly ChangeToken: string;320 readonly Updates: [];321}322interface ActivatedRule {323 readonly Priority: number;324 readonly RuleId: string;325 readonly Action: WafAction;326 readonly OverrideAction: WafOverrideAction;327 readonly Type: string;328 readonly ExcludedRules: [];329}330interface ByteMatchSet {331 readonly ByteMatchSetId: string;332 readonly Name: string;333 readonly ByteMatchTuples: [];334}335interface ByteMatchSetSummary {336 readonly ByteMatchSetId: string;337 readonly Name: string;338}339interface ByteMatchSetUpdate {340 readonly Action: string;341 readonly ByteMatchTuple: ByteMatchTuple;342}343interface ByteMatchTuple {344 readonly FieldToMatch: FieldToMatch;345 readonly TargetString: unknown;346 readonly TextTransformation: string;347 readonly PositionalConstraint: string;348}349interface CreateByteMatchSetRequest {350 readonly Name: string;351 readonly ChangeToken: string;352}353interface CreateByteMatchSetResponse {354 readonly ByteMatchSet: ByteMatchSet;355 readonly ChangeToken: string;356}357interface CreateGeoMatchSetRequest {358 readonly Name: string;359 readonly ChangeToken: string;360}361interface CreateGeoMatchSetResponse {362 readonly GeoMatchSet: GeoMatchSet;363 readonly ChangeToken: string;364}365interface CreateIPSetRequest {366 readonly Name: string;367 readonly ChangeToken: string;368}369interface CreateIPSetResponse {370 readonly IPSet: IPSet;371 readonly ChangeToken: string;372}373interface CreateRateBasedRuleRequest {374 readonly Name: string;375 readonly MetricName: string;376 readonly RateKey: string;377 readonly RateLimit: number;378 readonly ChangeToken: string;379 readonly Tags: [];380}381interface CreateRateBasedRuleResponse {382 readonly Rule: RateBasedRule;383 readonly ChangeToken: string;384}385interface CreateRegexMatchSetRequest {386 readonly Name: string;387 readonly ChangeToken: string;388}389interface CreateRegexMatchSetResponse {390 readonly RegexMatchSet: RegexMatchSet;391 readonly ChangeToken: string;392}393interface CreateRegexPatternSetRequest {394 readonly Name: string;395 readonly ChangeToken: string;396}397interface CreateRegexPatternSetResponse {398 readonly RegexPatternSet: RegexPatternSet;399 readonly ChangeToken: string;400}401interface CreateRuleGroupRequest {402 readonly Name: string;403 readonly MetricName: string;404 readonly ChangeToken: string;405 readonly Tags: [];406}407interface CreateRuleGroupResponse {408 readonly RuleGroup: RuleGroup;409 readonly ChangeToken: string;410}411interface CreateRuleRequest {412 readonly Name: string;413 readonly MetricName: string;414 readonly ChangeToken: string;415 readonly Tags: [];416}417interface CreateRuleResponse {418 readonly Rule: Rule;419 readonly ChangeToken: string;420}421interface CreateSizeConstraintSetRequest {422 readonly Name: string;423 readonly ChangeToken: string;424}425interface CreateSizeConstraintSetResponse {426 readonly SizeConstraintSet: SizeConstraintSet;427 readonly ChangeToken: string;428}429interface CreateSqlInjectionMatchSetRequest {430 readonly Name: string;431 readonly ChangeToken: string;432}433interface CreateSqlInjectionMatchSetResponse {434 readonly SqlInjectionMatchSet: SqlInjectionMatchSet;435 readonly ChangeToken: string;436}437interface CreateWebACLMigrationStackRequest {438 readonly WebACLId: string;439 readonly S3BucketName: string;440 readonly IgnoreUnsupportedType: boolean;441}442interface CreateWebACLMigrationStackResponse {443 readonly S3ObjectUrl: string;444}445interface CreateWebACLRequest {446 readonly Name: string;447 readonly MetricName: string;448 readonly DefaultAction: WafAction;449 readonly ChangeToken: string;450 readonly Tags: [];451}452interface CreateWebACLResponse {453 readonly WebACL: WebACL;454 readonly ChangeToken: string;455}456interface CreateXssMatchSetRequest {457 readonly Name: string;458 readonly ChangeToken: string;459}460interface CreateXssMatchSetResponse {461 readonly XssMatchSet: XssMatchSet;462 readonly ChangeToken: string;463}464interface DeleteByteMatchSetRequest {465 readonly ByteMatchSetId: string;466 readonly ChangeToken: string;467}468interface DeleteByteMatchSetResponse {469 readonly ChangeToken: string;470}471interface DeleteGeoMatchSetRequest {472 readonly GeoMatchSetId: string;473 readonly ChangeToken: string;474}475interface DeleteGeoMatchSetResponse {476 readonly ChangeToken: string;477}478interface DeleteIPSetRequest {479 readonly IPSetId: string;480 readonly ChangeToken: string;481}482interface DeleteIPSetResponse {483 readonly ChangeToken: string;484}485interface DeleteLoggingConfigurationRequest {486 readonly ResourceArn: string;487}488interface DeleteLoggingConfigurationResponse {489}490interface DeletePermissionPolicyRequest {491 readonly ResourceArn: string;492}493interface DeletePermissionPolicyResponse {494}495interface DeleteRateBasedRuleRequest {496 readonly RuleId: string;497 readonly ChangeToken: string;498}499interface DeleteRateBasedRuleResponse {500 readonly ChangeToken: string;501}502interface DeleteRegexMatchSetRequest {503 readonly RegexMatchSetId: string;504 readonly ChangeToken: string;505}506interface DeleteRegexMatchSetResponse {507 readonly ChangeToken: string;508}509interface DeleteRegexPatternSetRequest {510 readonly RegexPatternSetId: string;511 readonly ChangeToken: string;512}513interface DeleteRegexPatternSetResponse {514 readonly ChangeToken: string;515}516interface DeleteRuleGroupRequest {517 readonly RuleGroupId: string;518 readonly ChangeToken: string;519}520interface DeleteRuleGroupResponse {521 readonly ChangeToken: string;522}523interface DeleteRuleRequest {524 readonly RuleId: string;525 readonly ChangeToken: string;526}527interface DeleteRuleResponse {528 readonly ChangeToken: string;529}530interface DeleteSizeConstraintSetRequest {531 readonly SizeConstraintSetId: string;532 readonly ChangeToken: string;533}534interface DeleteSizeConstraintSetResponse {535 readonly ChangeToken: string;536}537interface DeleteSqlInjectionMatchSetRequest {538 readonly SqlInjectionMatchSetId: string;539 readonly ChangeToken: string;540}541interface DeleteSqlInjectionMatchSetResponse {542 readonly ChangeToken: string;543}544interface DeleteWebACLRequest {545 readonly WebACLId: string;546 readonly ChangeToken: string;547}548interface DeleteWebACLResponse {549 readonly ChangeToken: string;550}551interface DeleteXssMatchSetRequest {552 readonly XssMatchSetId: string;553 readonly ChangeToken: string;554}555interface DeleteXssMatchSetResponse {556 readonly ChangeToken: string;557}558interface ExcludedRule {559 readonly RuleId: string;560}561interface FieldToMatch {562 readonly Type: string;563 readonly Data: string;564}565interface GeoMatchConstraint {566 readonly Type: string;567 readonly Value: string;568}569interface GeoMatchSet {570 readonly GeoMatchSetId: string;571 readonly Name: string;572 readonly GeoMatchConstraints: [];573}574interface GeoMatchSetSummary {575 readonly GeoMatchSetId: string;576 readonly Name: string;577}578interface GeoMatchSetUpdate {579 readonly Action: string;580 readonly GeoMatchConstraint: GeoMatchConstraint;581}582interface GetByteMatchSetRequest {583 readonly ByteMatchSetId: string;584}585interface GetByteMatchSetResponse {586 readonly ByteMatchSet: ByteMatchSet;587}588interface GetChangeTokenRequest {589}590interface GetChangeTokenResponse {591 readonly ChangeToken: string;592}593interface GetChangeTokenStatusRequest {594 readonly ChangeToken: string;595}596interface GetChangeTokenStatusResponse {597 readonly ChangeTokenStatus: string;598}599interface GetGeoMatchSetRequest {600 readonly GeoMatchSetId: string;601}602interface GetGeoMatchSetResponse {603 readonly GeoMatchSet: GeoMatchSet;604}605interface GetIPSetRequest {606 readonly IPSetId: string;607}608interface GetIPSetResponse {609 readonly IPSet: IPSet;610}611interface GetLoggingConfigurationRequest {612 readonly ResourceArn: string;613}614interface GetLoggingConfigurationResponse {615 readonly LoggingConfiguration: LoggingConfiguration;616}617interface GetPermissionPolicyRequest {618 readonly ResourceArn: string;619}620interface GetPermissionPolicyResponse {621 readonly Policy: string;622}623interface GetRateBasedRuleManagedKeysRequest {624 readonly RuleId: string;625 readonly NextMarker: string;626}627interface GetRateBasedRuleManagedKeysResponse {628 readonly ManagedKeys: [];629 readonly NextMarker: string;630}631interface GetRateBasedRuleRequest {632 readonly RuleId: string;633}634interface GetRateBasedRuleResponse {635 readonly Rule: RateBasedRule;636}637interface GetRegexMatchSetRequest {638 readonly RegexMatchSetId: string;639}640interface GetRegexMatchSetResponse {641 readonly RegexMatchSet: RegexMatchSet;642}643interface GetRegexPatternSetRequest {644 readonly RegexPatternSetId: string;645}646interface GetRegexPatternSetResponse {647 readonly RegexPatternSet: RegexPatternSet;648}649interface GetRuleGroupRequest {650 readonly RuleGroupId: string;651}652interface GetRuleGroupResponse {653 readonly RuleGroup: RuleGroup;654}655interface GetRuleRequest {656 readonly RuleId: string;657}658interface GetRuleResponse {659 readonly Rule: Rule;660}661interface GetSampledRequestsRequest {662 readonly WebAclId: string;663 readonly RuleId: string;664 readonly TimeWindow: TimeWindow;665 readonly MaxItems: number;666}667interface GetSampledRequestsResponse {668 readonly SampledRequests: [];669 readonly PopulationSize: number;670 readonly TimeWindow: TimeWindow;671}672interface GetSizeConstraintSetRequest {673 readonly SizeConstraintSetId: string;674}675interface GetSizeConstraintSetResponse {676 readonly SizeConstraintSet: SizeConstraintSet;677}678interface GetSqlInjectionMatchSetRequest {679 readonly SqlInjectionMatchSetId: string;680}681interface GetSqlInjectionMatchSetResponse {682 readonly SqlInjectionMatchSet: SqlInjectionMatchSet;683}684interface GetWebACLRequest {685 readonly WebACLId: string;686}687interface GetWebACLResponse {688 readonly WebACL: WebACL;689}690interface GetXssMatchSetRequest {691 readonly XssMatchSetId: string;692}693interface GetXssMatchSetResponse {694 readonly XssMatchSet: XssMatchSet;695}696interface HTTPHeader {697 readonly Name: string;698 readonly Value: string;699}700interface HTTPRequest {701 readonly ClientIP: string;702 readonly Country: string;703 readonly URI: string;704 readonly Method: string;705 readonly HTTPVersion: string;706 readonly Headers: [];707}708interface IPSet {709 readonly IPSetId: string;710 readonly Name: string;711 readonly IPSetDescriptors: [];712}713interface IPSetDescriptor {714 readonly Type: string;715 readonly Value: string;716}717interface IPSetSummary {718 readonly IPSetId: string;719 readonly Name: string;720}721interface IPSetUpdate {722 readonly Action: string;723 readonly IPSetDescriptor: IPSetDescriptor;724}725interface ListActivatedRulesInRuleGroupRequest {726 readonly RuleGroupId: string;727 readonly NextMarker: string;728 readonly Limit: number;729}730interface ListActivatedRulesInRuleGroupResponse {731 readonly NextMarker: string;732 readonly ActivatedRules: [];733}734interface ListByteMatchSetsRequest {735 readonly NextMarker: string;736 readonly Limit: number;737}738interface ListByteMatchSetsResponse {739 readonly NextMarker: string;740 readonly ByteMatchSets: [];741}742interface ListGeoMatchSetsRequest {743 readonly NextMarker: string;744 readonly Limit: number;745}746interface ListGeoMatchSetsResponse {747 readonly NextMarker: string;748 readonly GeoMatchSets: [];749}750interface ListIPSetsRequest {751 readonly NextMarker: string;752 readonly Limit: number;753}754interface ListIPSetsResponse {755 readonly NextMarker: string;756 readonly IPSets: [];757}758interface ListLoggingConfigurationsRequest {759 readonly NextMarker: string;760 readonly Limit: number;761}762interface ListLoggingConfigurationsResponse {763 readonly LoggingConfigurations: [];764 readonly NextMarker: string;765}766interface ListRateBasedRulesRequest {767 readonly NextMarker: string;768 readonly Limit: number;769}770interface ListRateBasedRulesResponse {771 readonly NextMarker: string;772 readonly Rules: [];773}774interface ListRegexMatchSetsRequest {775 readonly NextMarker: string;776 readonly Limit: number;777}778interface ListRegexMatchSetsResponse {779 readonly NextMarker: string;780 readonly RegexMatchSets: [];781}782interface ListRegexPatternSetsRequest {783 readonly NextMarker: string;784 readonly Limit: number;785}786interface ListRegexPatternSetsResponse {787 readonly NextMarker: string;788 readonly RegexPatternSets: [];789}790interface ListRuleGroupsRequest {791 readonly NextMarker: string;792 readonly Limit: number;793}794interface ListRuleGroupsResponse {795 readonly NextMarker: string;796 readonly RuleGroups: [];797}798interface ListRulesRequest {799 readonly NextMarker: string;800 readonly Limit: number;801}802interface ListRulesResponse {803 readonly NextMarker: string;804 readonly Rules: [];805}806interface ListSizeConstraintSetsRequest {807 readonly NextMarker: string;808 readonly Limit: number;809}810interface ListSizeConstraintSetsResponse {811 readonly NextMarker: string;812 readonly SizeConstraintSets: [];813}814interface ListSqlInjectionMatchSetsRequest {815 readonly NextMarker: string;816 readonly Limit: number;817}818interface ListSqlInjectionMatchSetsResponse {819 readonly NextMarker: string;820 readonly SqlInjectionMatchSets: [];821}822interface ListSubscribedRuleGroupsRequest {823 readonly NextMarker: string;824 readonly Limit: number;825}826interface ListSubscribedRuleGroupsResponse {827 readonly NextMarker: string;828 readonly RuleGroups: [];829}830interface ListTagsForResourceRequest {831 readonly NextMarker: string;832 readonly Limit: number;833 readonly ResourceARN: string;834}835interface ListTagsForResourceResponse {836 readonly NextMarker: string;837 readonly TagInfoForResource: TagInfoForResource;838}839interface ListWebACLsRequest {840 readonly NextMarker: string;841 readonly Limit: number;842}843interface ListWebACLsResponse {844 readonly NextMarker: string;845 readonly WebACLs: [];846}847interface ListXssMatchSetsRequest {848 readonly NextMarker: string;849 readonly Limit: number;850}851interface ListXssMatchSetsResponse {852 readonly NextMarker: string;853 readonly XssMatchSets: [];854}855interface LoggingConfiguration {856 readonly ResourceArn: string;857 readonly LogDestinationConfigs: [];858 readonly RedactedFields: [];859}860interface Predicate {861 readonly Negated: boolean;862 readonly Type: string;863 readonly DataId: string;864}865interface PutLoggingConfigurationRequest {866 readonly LoggingConfiguration: LoggingConfiguration;867}868interface PutLoggingConfigurationResponse {869 readonly LoggingConfiguration: LoggingConfiguration;870}871interface PutPermissionPolicyRequest {872 readonly ResourceArn: string;873 readonly Policy: string;874}875interface PutPermissionPolicyResponse {876}877interface RateBasedRule {878 readonly RuleId: string;879 readonly Name: string;880 readonly MetricName: string;881 readonly MatchPredicates: [];882 readonly RateKey: string;883 readonly RateLimit: number;884}885interface RegexMatchSet {886 readonly RegexMatchSetId: string;887 readonly Name: string;888 readonly RegexMatchTuples: [];889}890interface RegexMatchSetSummary {891 readonly RegexMatchSetId: string;892 readonly Name: string;893}894interface RegexMatchSetUpdate {895 readonly Action: string;896 readonly RegexMatchTuple: RegexMatchTuple;897}898interface RegexMatchTuple {899 readonly FieldToMatch: FieldToMatch;900 readonly TextTransformation: string;901 readonly RegexPatternSetId: string;902}903interface RegexPatternSet {904 readonly RegexPatternSetId: string;905 readonly Name: string;906 readonly RegexPatternStrings: [];907}908interface RegexPatternSetSummary {909 readonly RegexPatternSetId: string;910 readonly Name: string;911}912interface RegexPatternSetUpdate {913 readonly Action: string;914 readonly RegexPatternString: string;915}916interface Rule {917 readonly RuleId: string;918 readonly Name: string;919 readonly MetricName: string;920 readonly Predicates: [];921}922interface RuleGroup {923 readonly RuleGroupId: string;924 readonly Name: string;925 readonly MetricName: string;926}927interface RuleGroupSummary {928 readonly RuleGroupId: string;929 readonly Name: string;930}931interface RuleGroupUpdate {932 readonly Action: string;933 readonly ActivatedRule: ActivatedRule;934}935interface RuleSummary {936 readonly RuleId: string;937 readonly Name: string;938}939interface RuleUpdate {940 readonly Action: string;941 readonly Predicate: Predicate;942}943interface SampledHTTPRequest {944 readonly Request: HTTPRequest;945 readonly Weight: number;946 readonly Timestamp: Date;947 readonly Action: string;948 readonly RuleWithinRuleGroup: string;949}950interface SizeConstraint {951 readonly FieldToMatch: FieldToMatch;952 readonly TextTransformation: string;953 readonly ComparisonOperator: string;954 readonly Size: number;955}956interface SizeConstraintSet {957 readonly SizeConstraintSetId: string;958 readonly Name: string;959 readonly SizeConstraints: [];960}961interface SizeConstraintSetSummary {962 readonly SizeConstraintSetId: string;963 readonly Name: string;964}965interface SizeConstraintSetUpdate {966 readonly Action: string;967 readonly SizeConstraint: SizeConstraint;968}969interface SqlInjectionMatchSet {970 readonly SqlInjectionMatchSetId: string;971 readonly Name: string;972 readonly SqlInjectionMatchTuples: [];973}974interface SqlInjectionMatchSetSummary {975 readonly SqlInjectionMatchSetId: string;976 readonly Name: string;977}978interface SqlInjectionMatchSetUpdate {979 readonly Action: string;980 readonly SqlInjectionMatchTuple: SqlInjectionMatchTuple;981}982interface SqlInjectionMatchTuple {983 readonly FieldToMatch: FieldToMatch;984 readonly TextTransformation: string;985}986interface SubscribedRuleGroupSummary {987 readonly RuleGroupId: string;988 readonly Name: string;989 readonly MetricName: string;990}991interface Tag {992 readonly Key: string;993 readonly Value: string;994}995interface TagInfoForResource {996 readonly ResourceARN: string;997 readonly TagList: [];998}999interface TagResourceRequest {1000 readonly ResourceARN: string;1001 readonly Tags: [];1002}1003interface TagResourceResponse {1004}1005interface TimeWindow {1006 readonly StartTime: Date;1007 readonly EndTime: Date;1008}1009interface UntagResourceRequest {1010 readonly ResourceARN: string;1011 readonly TagKeys: [];1012}1013interface UntagResourceResponse {1014}1015interface UpdateByteMatchSetRequest {1016 readonly ByteMatchSetId: string;1017 readonly ChangeToken: string;1018 readonly Updates: [];1019}1020interface UpdateByteMatchSetResponse {1021 readonly ChangeToken: string;1022}1023interface UpdateGeoMatchSetRequest {1024 readonly GeoMatchSetId: string;1025 readonly ChangeToken: string;1026 readonly Updates: [];1027}1028interface UpdateGeoMatchSetResponse {1029 readonly ChangeToken: string;1030}1031interface UpdateIPSetRequest {1032 readonly IPSetId: string;1033 readonly ChangeToken: string;1034 readonly Updates: [];1035}1036interface UpdateIPSetResponse {1037 readonly ChangeToken: string;1038}1039interface UpdateRateBasedRuleRequest {1040 readonly RuleId: string;1041 readonly ChangeToken: string;1042 readonly Updates: [];1043 readonly RateLimit: number;1044}1045interface UpdateRateBasedRuleResponse {1046 readonly ChangeToken: string;1047}1048interface UpdateRegexMatchSetRequest {1049 readonly RegexMatchSetId: string;1050 readonly Updates: [];1051 readonly ChangeToken: string;1052}1053interface UpdateRegexMatchSetResponse {1054 readonly ChangeToken: string;1055}1056interface UpdateRegexPatternSetRequest {1057 readonly RegexPatternSetId: string;1058 readonly Updates: [];1059 readonly ChangeToken: string;1060}1061interface UpdateRegexPatternSetResponse {1062 readonly ChangeToken: string;1063}1064interface UpdateRuleGroupRequest {1065 readonly RuleGroupId: string;1066 readonly Updates: [];1067 readonly ChangeToken: string;1068}1069interface UpdateRuleGroupResponse {1070 readonly ChangeToken: string;1071}1072interface UpdateRuleRequest {1073 readonly RuleId: string;1074 readonly ChangeToken: string;1075 readonly Updates: [];1076}1077interface UpdateRuleResponse {1078 readonly ChangeToken: string;1079}1080interface UpdateSizeConstraintSetRequest {1081 readonly SizeConstraintSetId: string;1082 readonly ChangeToken: string;1083 readonly Updates: [];1084}1085interface UpdateSizeConstraintSetResponse {1086 readonly ChangeToken: string;1087}1088interface UpdateSqlInjectionMatchSetRequest {1089 readonly SqlInjectionMatchSetId: string;1090 readonly ChangeToken: string;1091 readonly Updates: [];1092}1093interface UpdateSqlInjectionMatchSetResponse {1094 readonly ChangeToken: string;1095}1096interface UpdateWebACLRequest {1097 readonly WebACLId: string;1098 readonly ChangeToken: string;1099 readonly Updates: [];1100 readonly DefaultAction: WafAction;1101}1102interface UpdateWebACLResponse {1103 readonly ChangeToken: string;1104}1105interface UpdateXssMatchSetRequest {1106 readonly XssMatchSetId: string;1107 readonly ChangeToken: string;1108 readonly Updates: [];1109}1110interface UpdateXssMatchSetResponse {1111 readonly ChangeToken: string;1112}1113interface WAFBadRequestException {1114 readonly message: string;1115}1116interface WAFDisallowedNameException {1117 readonly message: string;1118}1119interface WAFEntityMigrationException {1120 readonly message: string;1121 readonly MigrationErrorType: string;1122 readonly MigrationErrorReason: string;1123}1124interface WAFInternalErrorException {1125 readonly message: string;1126}1127interface WAFInvalidAccountException {1128}1129interface WAFInvalidOperationException {1130 readonly message: string;1131}1132interface WAFInvalidParameterException {1133 readonly field: string;1134 readonly parameter: string;1135 readonly reason: string;1136}1137interface WAFInvalidPermissionPolicyException {1138 readonly message: string;1139}1140interface WAFInvalidRegexPatternException {1141 readonly message: string;1142}1143interface WAFLimitsExceededException {1144 readonly message: string;1145}1146interface WAFNonEmptyEntityException {1147 readonly message: string;1148}1149interface WAFNonexistentContainerException {1150 readonly message: string;1151}1152interface WAFNonexistentItemException {1153 readonly message: string;1154}1155interface WAFReferencedItemException {1156 readonly message: string;1157}1158interface WAFServiceLinkedRoleErrorException {1159 readonly message: string;1160}1161interface WAFStaleDataException {1162 readonly message: string;1163}1164interface WAFSubscriptionNotFoundException {1165 readonly message: string;1166}1167interface WAFTagOperationException {1168 readonly message: string;1169}1170interface WAFTagOperationInternalErrorException {1171 readonly message: string;1172}1173interface WafAction {1174 readonly Type: string;1175}1176interface WafOverrideAction {1177 readonly Type: string;1178}1179interface WebACL {1180 readonly WebACLId: string;1181 readonly Name: string;1182 readonly MetricName: string;1183 readonly DefaultAction: WafAction;1184 readonly Rules: [];1185 readonly WebACLArn: string;1186}1187interface WebACLSummary {1188 readonly WebACLId: string;1189 readonly Name: string;1190}1191interface WebACLUpdate {1192 readonly Action: string;1193 readonly ActivatedRule: ActivatedRule;1194}1195interface XssMatchSet {1196 readonly XssMatchSetId: string;1197 readonly Name: string;1198 readonly XssMatchTuples: [];1199}1200interface XssMatchSetSummary {1201 readonly XssMatchSetId: string;1202 readonly Name: string;1203}1204interface XssMatchSetUpdate {1205 readonly Action: string;1206 readonly XssMatchTuple: XssMatchTuple;1207}1208interface XssMatchTuple {1209 readonly FieldToMatch: FieldToMatch;1210 readonly TextTransformation: string;...

Full Screen

Full Screen

boilerplate-2015-08-24.js

Source:boilerplate-2015-08-24.js Github

copy

Full Screen

1'use strict';23const awsCommon = require('../../lib/aws-common');45/**6 * AWS WAF version 2015-08-247 *8 * --- TODO REMOVE WHEN IMPLEMENTED ---9 * AUTOGENERATED BY build-api.py10 */1112// Setup input and output to use AWS protocol json13require('../../lib/aws-common/shape_http')('json', module.exports, null);14// -----------------------------------15module.exports.CreateByteMatchSet = function CreateByteMatchSet(aws) {16 var changeToken = aws.params.ChangeToken;17 var name = aws.params.Name;18 if (!changeToken) {19 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];20 }21 if (!name) {22 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Name'];23 }242526 // TODO implement code2728 var ret = {29 ByteMatchSet: /*S5*/{30 ByteMatchSetId: '',31 ByteMatchTuples: [ /*S8*/{32 FieldToMatch: /*S9*/{33 Data: '',34 Type: '',35 },36 PositionalConstraint: '',37 TargetString: null /*Blob*/,38 TextTransformation: '',39 }, /* ...*/ ],40 Name: '',41 },42 ChangeToken: '',43 };44 return [200, ret];45};46// -----------------------------------47module.exports.CreateIPSet = function CreateIPSet(aws) {48 var changeToken = aws.params.ChangeToken;49 var name = aws.params.Name;50 if (!changeToken) {51 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];52 }53 if (!name) {54 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Name'];55 }565758 // TODO implement code5960 var ret = {61 ChangeToken: '',62 IPSet: /*Sh*/{63 IPSetDescriptors: [ /*Sj*/{64 Type: '',65 Value: '',66 }, /* ...*/ ],67 IPSetId: '',68 Name: '',69 },70 };71 return [200, ret];72};73// -----------------------------------74module.exports.CreateRule = function CreateRule(aws) {75 var changeToken = aws.params.ChangeToken;76 var metricName = aws.params.MetricName;77 var name = aws.params.Name;78 if (!changeToken) {79 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];80 }81 if (!metricName) {82 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter MetricName'];83 }84 if (!name) {85 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Name'];86 }878889 // TODO implement code9091 var ret = {92 ChangeToken: '',93 Rule: /*Sp*/{94 MetricName: '',95 Name: '',96 Predicates: [ /*Sr*/{97 DataId: '',98 Negated: false,99 Type: '',100 }, /* ...*/ ],101 RuleId: '',102 },103 };104 return [200, ret];105};106// -----------------------------------107module.exports.CreateSizeConstraintSet = function CreateSizeConstraintSet(aws) {108 var changeToken = aws.params.ChangeToken;109 var name = aws.params.Name;110 if (!changeToken) {111 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];112 }113 if (!name) {114 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Name'];115 }116117118 // TODO implement code119120 var ret = {121 ChangeToken: '',122 SizeConstraintSet: /*Sw*/{123 Name: '',124 SizeConstraintSetId: '',125 SizeConstraints: [ /*Sy*/{126 ComparisonOperator: '',127 FieldToMatch: /*S9*/{128 Data: '',129 Type: '',130 },131 Size: 0 /*Long*/,132 TextTransformation: '',133 }, /* ...*/ ],134 },135 };136 return [200, ret];137};138// -----------------------------------139module.exports.CreateSqlInjectionMatchSet = function CreateSqlInjectionMatchSet(aws) {140 var changeToken = aws.params.ChangeToken;141 var name = aws.params.Name;142 if (!changeToken) {143 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];144 }145 if (!name) {146 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Name'];147 }148149150 // TODO implement code151152 var ret = {153 ChangeToken: '',154 SqlInjectionMatchSet: /*S13*/{155 Name: '',156 SqlInjectionMatchSetId: '',157 SqlInjectionMatchTuples: [ /*S15*/{158 FieldToMatch: /*S9*/{159 Data: '',160 Type: '',161 },162 TextTransformation: '',163 }, /* ...*/ ],164 },165 };166 return [200, ret];167};168// -----------------------------------169module.exports.CreateWebACL = function CreateWebACL(aws) {170 var changeToken = aws.params.ChangeToken;171 var defaultAction = aws.params.DefaultAction;172 var metricName = aws.params.MetricName;173 var name = aws.params.Name;174 if (!changeToken) {175 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];176 }177 if (!defaultAction) {178 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter DefaultAction'];179 }180 if (!metricName) {181 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter MetricName'];182 }183 if (!name) {184 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Name'];185 }186187188 // TODO implement code189190 var ret = {191 ChangeToken: '',192 WebACL: /*S1a*/{193 DefaultAction: /*S17*/{194 Type: '',195 },196 MetricName: '',197 Name: '',198 Rules: [ /*S1c*/{199 Action: /*S17*/{200 Type: '',201 },202 Priority: 0,203 RuleId: '',204 }, /* ...*/ ],205 WebACLId: '',206 },207 };208 return [200, ret];209};210// -----------------------------------211module.exports.CreateXssMatchSet = function CreateXssMatchSet(aws) {212 var changeToken = aws.params.ChangeToken;213 var name = aws.params.Name;214 if (!changeToken) {215 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];216 }217 if (!name) {218 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Name'];219 }220221222 // TODO implement code223224 var ret = {225 ChangeToken: '',226 XssMatchSet: /*S1g*/{227 Name: '',228 XssMatchSetId: '',229 XssMatchTuples: [ /*S1i*/{230 FieldToMatch: /*S9*/{231 Data: '',232 Type: '',233 },234 TextTransformation: '',235 }, /* ...*/ ],236 },237 };238 return [200, ret];239};240// -----------------------------------241module.exports.DeleteByteMatchSet = function DeleteByteMatchSet(aws) {242 var byteMatchSetId = aws.params.ByteMatchSetId;243 var changeToken = aws.params.ChangeToken;244 if (!byteMatchSetId) {245 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ByteMatchSetId'];246 }247 if (!changeToken) {248 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];249 }250251252 // TODO implement code253254 var ret = {255 ChangeToken: '',256 };257 return [200, ret];258};259// -----------------------------------260module.exports.DeleteIPSet = function DeleteIPSet(aws) {261 var changeToken = aws.params.ChangeToken;262 var iPSetId = aws.params.IPSetId;263 if (!changeToken) {264 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];265 }266 if (!iPSetId) {267 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter IPSetId'];268 }269270271 // TODO implement code272273 var ret = {274 ChangeToken: '',275 };276 return [200, ret];277};278// -----------------------------------279module.exports.DeleteRule = function DeleteRule(aws) {280 var changeToken = aws.params.ChangeToken;281 var ruleId = aws.params.RuleId;282 if (!changeToken) {283 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];284 }285 if (!ruleId) {286 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter RuleId'];287 }288289290 // TODO implement code291292 var ret = {293 ChangeToken: '',294 };295 return [200, ret];296};297// -----------------------------------298module.exports.DeleteSizeConstraintSet = function DeleteSizeConstraintSet(aws) {299 var changeToken = aws.params.ChangeToken;300 var sizeConstraintSetId = aws.params.SizeConstraintSetId;301 if (!changeToken) {302 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];303 }304 if (!sizeConstraintSetId) {305 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter SizeConstraintSetId'];306 }307308309 // TODO implement code310311 var ret = {312 ChangeToken: '',313 };314 return [200, ret];315};316// -----------------------------------317module.exports.DeleteSqlInjectionMatchSet = function DeleteSqlInjectionMatchSet(aws) {318 var changeToken = aws.params.ChangeToken;319 var sqlInjectionMatchSetId = aws.params.SqlInjectionMatchSetId;320 if (!changeToken) {321 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];322 }323 if (!sqlInjectionMatchSetId) {324 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter SqlInjectionMatchSetId'];325 }326327328 // TODO implement code329330 var ret = {331 ChangeToken: '',332 };333 return [200, ret];334};335// -----------------------------------336module.exports.DeleteWebACL = function DeleteWebACL(aws) {337 var changeToken = aws.params.ChangeToken;338 var webACLId = aws.params.WebACLId;339 if (!changeToken) {340 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];341 }342 if (!webACLId) {343 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter WebACLId'];344 }345346347 // TODO implement code348349 var ret = {350 ChangeToken: '',351 };352 return [200, ret];353};354// -----------------------------------355module.exports.DeleteXssMatchSet = function DeleteXssMatchSet(aws) {356 var changeToken = aws.params.ChangeToken;357 var xssMatchSetId = aws.params.XssMatchSetId;358 if (!changeToken) {359 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];360 }361 if (!xssMatchSetId) {362 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter XssMatchSetId'];363 }364365366 // TODO implement code367368 var ret = {369 ChangeToken: '',370 };371 return [200, ret];372};373// -----------------------------------374module.exports.GetByteMatchSet = function GetByteMatchSet(aws) {375 var byteMatchSetId = aws.params.ByteMatchSetId;376 if (!byteMatchSetId) {377 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ByteMatchSetId'];378 }379380381 // TODO implement code382383 var ret = {384 ByteMatchSet: /*S5*/{385 ByteMatchSetId: '',386 ByteMatchTuples: [ /*S8*/{387 FieldToMatch: /*S9*/{388 Data: '',389 Type: '',390 },391 PositionalConstraint: '',392 TargetString: null /*Blob*/,393 TextTransformation: '',394 }, /* ...*/ ],395 Name: '',396 },397 };398 return [200, ret];399};400// -----------------------------------401module.exports.GetChangeToken = function GetChangeToken(aws) {402403404 // TODO implement code405406 var ret = {407 ChangeToken: '',408 };409 return [200, ret];410};411// -----------------------------------412module.exports.GetChangeTokenStatus = function GetChangeTokenStatus(aws) {413 var changeToken = aws.params.ChangeToken;414 if (!changeToken) {415 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];416 }417418419 // TODO implement code420421 var ret = {422 ChangeTokenStatus: '',423 };424 return [200, ret];425};426// -----------------------------------427module.exports.GetIPSet = function GetIPSet(aws) {428 var iPSetId = aws.params.IPSetId;429 if (!iPSetId) {430 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter IPSetId'];431 }432433434 // TODO implement code435436 var ret = {437 IPSet: /*Sh*/{438 IPSetDescriptors: [ /*Sj*/{439 Type: '',440 Value: '',441 }, /* ...*/ ],442 IPSetId: '',443 Name: '',444 },445 };446 return [200, ret];447};448// -----------------------------------449module.exports.GetRule = function GetRule(aws) {450 var ruleId = aws.params.RuleId;451 if (!ruleId) {452 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter RuleId'];453 }454455456 // TODO implement code457458 var ret = {459 Rule: /*Sp*/{460 MetricName: '',461 Name: '',462 Predicates: [ /*Sr*/{463 DataId: '',464 Negated: false,465 Type: '',466 }, /* ...*/ ],467 RuleId: '',468 },469 };470 return [200, ret];471};472// -----------------------------------473module.exports.GetSampledRequests = function GetSampledRequests(aws) {474 var maxItems = aws.params.MaxItems /* Type long */;475 var ruleId = aws.params.RuleId;476 var timeWindow = aws.params.TimeWindow;477 var webAclId = aws.params.WebAclId;478 if (!maxItems) {479 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter MaxItems'];480 }481 if (!ruleId) {482 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter RuleId'];483 }484 if (!timeWindow) {485 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter TimeWindow'];486 }487 if (!webAclId) {488 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter WebAclId'];489 }490491492 // TODO implement code493494 var ret = {495 PopulationSize: 0 /*Long*/,496 SampledRequests: [ {497 Action: '',498 Request: {499 ClientIP: '',500 Country: '',501 HTTPVersion: '',502 Headers: [ {503 Name: '',504 Value: '',505 }, /* ...*/ ],506 Method: '',507 URI: '',508 },509 Timestamp: awsCommon.timestamp(),510 Weight: 0 /*Long*/,511 }, /* ...*/ ],512 TimeWindow: /*S29*/{513 EndTime: awsCommon.timestamp(),514 StartTime: awsCommon.timestamp(),515 },516 };517 return [200, ret];518};519// -----------------------------------520module.exports.GetSizeConstraintSet = function GetSizeConstraintSet(aws) {521 var sizeConstraintSetId = aws.params.SizeConstraintSetId;522 if (!sizeConstraintSetId) {523 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter SizeConstraintSetId'];524 }525526527 // TODO implement code528529 var ret = {530 SizeConstraintSet: /*Sw*/{531 Name: '',532 SizeConstraintSetId: '',533 SizeConstraints: [ /*Sy*/{534 ComparisonOperator: '',535 FieldToMatch: /*S9*/{536 Data: '',537 Type: '',538 },539 Size: 0 /*Long*/,540 TextTransformation: '',541 }, /* ...*/ ],542 },543 };544 return [200, ret];545};546// -----------------------------------547module.exports.GetSqlInjectionMatchSet = function GetSqlInjectionMatchSet(aws) {548 var sqlInjectionMatchSetId = aws.params.SqlInjectionMatchSetId;549 if (!sqlInjectionMatchSetId) {550 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter SqlInjectionMatchSetId'];551 }552553554 // TODO implement code555556 var ret = {557 SqlInjectionMatchSet: /*S13*/{558 Name: '',559 SqlInjectionMatchSetId: '',560 SqlInjectionMatchTuples: [ /*S15*/{561 FieldToMatch: /*S9*/{562 Data: '',563 Type: '',564 },565 TextTransformation: '',566 }, /* ...*/ ],567 },568 };569 return [200, ret];570};571// -----------------------------------572module.exports.GetWebACL = function GetWebACL(aws) {573 var webACLId = aws.params.WebACLId;574 if (!webACLId) {575 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter WebACLId'];576 }577578579 // TODO implement code580581 var ret = {582 WebACL: /*S1a*/{583 DefaultAction: /*S17*/{584 Type: '',585 },586 MetricName: '',587 Name: '',588 Rules: [ /*S1c*/{589 Action: /*S17*/{590 Type: '',591 },592 Priority: 0,593 RuleId: '',594 }, /* ...*/ ],595 WebACLId: '',596 },597 };598 return [200, ret];599};600// -----------------------------------601module.exports.GetXssMatchSet = function GetXssMatchSet(aws) {602 var xssMatchSetId = aws.params.XssMatchSetId;603 if (!xssMatchSetId) {604 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter XssMatchSetId'];605 }606607608 // TODO implement code609610 var ret = {611 XssMatchSet: /*S1g*/{612 Name: '',613 XssMatchSetId: '',614 XssMatchTuples: [ /*S1i*/{615 FieldToMatch: /*S9*/{616 Data: '',617 Type: '',618 },619 TextTransformation: '',620 }, /* ...*/ ],621 },622 };623 return [200, ret];624};625// -----------------------------------626module.exports.ListByteMatchSets = function ListByteMatchSets(aws) {627 var limit = aws.params.Limit /* Type integer */;628 var nextMarker = aws.params.NextMarker;629 if (!limit) {630 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Limit'];631 }632633634 // TODO implement code635636 var ret = {637 ByteMatchSets: [ {638 ByteMatchSetId: '',639 Name: '',640 }, /* ...*/ ],641 NextMarker: '',642 };643 return [200, ret];644};645// -----------------------------------646module.exports.ListIPSets = function ListIPSets(aws) {647 var limit = aws.params.Limit /* Type integer */;648 var nextMarker = aws.params.NextMarker;649 if (!limit) {650 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Limit'];651 }652653654 // TODO implement code655656 var ret = {657 IPSets: [ {658 IPSetId: '',659 Name: '',660 }, /* ...*/ ],661 NextMarker: '',662 };663 return [200, ret];664};665// -----------------------------------666module.exports.ListRules = function ListRules(aws) {667 var limit = aws.params.Limit /* Type integer */;668 var nextMarker = aws.params.NextMarker;669 if (!limit) {670 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Limit'];671 }672673674 // TODO implement code675676 var ret = {677 NextMarker: '',678 Rules: [ {679 Name: '',680 RuleId: '',681 }, /* ...*/ ],682 };683 return [200, ret];684};685// -----------------------------------686module.exports.ListSizeConstraintSets = function ListSizeConstraintSets(aws) {687 var limit = aws.params.Limit /* Type integer */;688 var nextMarker = aws.params.NextMarker;689 if (!limit) {690 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Limit'];691 }692693694 // TODO implement code695696 var ret = {697 NextMarker: '',698 SizeConstraintSets: [ {699 Name: '',700 SizeConstraintSetId: '',701 }, /* ...*/ ],702 };703 return [200, ret];704};705// -----------------------------------706module.exports.ListSqlInjectionMatchSets = function ListSqlInjectionMatchSets(aws) {707 var limit = aws.params.Limit /* Type integer */;708 var nextMarker = aws.params.NextMarker;709 if (!limit) {710 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Limit'];711 }712713714 // TODO implement code715716 var ret = {717 NextMarker: '',718 SqlInjectionMatchSets: [ {719 Name: '',720 SqlInjectionMatchSetId: '',721 }, /* ...*/ ],722 };723 return [200, ret];724};725// -----------------------------------726module.exports.ListWebACLs = function ListWebACLs(aws) {727 var limit = aws.params.Limit /* Type integer */;728 var nextMarker = aws.params.NextMarker;729 if (!limit) {730 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Limit'];731 }732733734 // TODO implement code735736 var ret = {737 NextMarker: '',738 WebACLs: [ {739 Name: '',740 WebACLId: '',741 }, /* ...*/ ],742 };743 return [200, ret];744};745// -----------------------------------746module.exports.ListXssMatchSets = function ListXssMatchSets(aws) {747 var limit = aws.params.Limit /* Type integer */;748 var nextMarker = aws.params.NextMarker;749 if (!limit) {750 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Limit'];751 }752753754 // TODO implement code755756 var ret = {757 NextMarker: '',758 XssMatchSets: [ {759 Name: '',760 XssMatchSetId: '',761 }, /* ...*/ ],762 };763 return [200, ret];764};765// -----------------------------------766module.exports.UpdateByteMatchSet = function UpdateByteMatchSet(aws) {767 var byteMatchSetId = aws.params.ByteMatchSetId;768 var changeToken = aws.params.ChangeToken;769 var updates = aws.params.Updates /* Type list */;770 if (!byteMatchSetId) {771 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ByteMatchSetId'];772 }773 if (!changeToken) {774 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];775 }776 if (!updates) {777 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Updates'];778 }779780781 // TODO implement code782783 var ret = {784 ChangeToken: '',785 };786 return [200, ret];787};788// -----------------------------------789module.exports.UpdateIPSet = function UpdateIPSet(aws) {790 var changeToken = aws.params.ChangeToken;791 var iPSetId = aws.params.IPSetId;792 var updates = aws.params.Updates /* Type list */;793 if (!changeToken) {794 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];795 }796 if (!iPSetId) {797 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter IPSetId'];798 }799 if (!updates) {800 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Updates'];801 }802803804 // TODO implement code805806 var ret = {807 ChangeToken: '',808 };809 return [200, ret];810};811// -----------------------------------812module.exports.UpdateRule = function UpdateRule(aws) {813 var changeToken = aws.params.ChangeToken;814 var ruleId = aws.params.RuleId;815 var updates = aws.params.Updates /* Type list */;816 if (!changeToken) {817 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];818 }819 if (!ruleId) {820 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter RuleId'];821 }822 if (!updates) {823 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Updates'];824 }825826827 // TODO implement code828829 var ret = {830 ChangeToken: '',831 };832 return [200, ret];833};834// -----------------------------------835module.exports.UpdateSizeConstraintSet = function UpdateSizeConstraintSet(aws) {836 var changeToken = aws.params.ChangeToken;837 var sizeConstraintSetId = aws.params.SizeConstraintSetId;838 var updates = aws.params.Updates /* Type list */;839 if (!changeToken) {840 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];841 }842 if (!sizeConstraintSetId) {843 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter SizeConstraintSetId'];844 }845 if (!updates) {846 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Updates'];847 }848849850 // TODO implement code851852 var ret = {853 ChangeToken: '',854 };855 return [200, ret];856};857// -----------------------------------858module.exports.UpdateSqlInjectionMatchSet = function UpdateSqlInjectionMatchSet(aws) {859 var changeToken = aws.params.ChangeToken;860 var sqlInjectionMatchSetId = aws.params.SqlInjectionMatchSetId;861 var updates = aws.params.Updates /* Type list */;862 if (!changeToken) {863 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];864 }865 if (!sqlInjectionMatchSetId) {866 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter SqlInjectionMatchSetId'];867 }868 if (!updates) {869 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Updates'];870 }871872873 // TODO implement code874875 var ret = {876 ChangeToken: '',877 };878 return [200, ret];879};880// -----------------------------------881module.exports.UpdateWebACL = function UpdateWebACL(aws) {882 var changeToken = aws.params.ChangeToken;883 var defaultAction = aws.params.DefaultAction;884 var updates = aws.params.Updates /* Type list */;885 var webACLId = aws.params.WebACLId;886 if (!changeToken) {887 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];888 }889 if (!webACLId) {890 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter WebACLId'];891 }892893894 // TODO implement code895896 var ret = {897 ChangeToken: '',898 };899 return [200, ret];900};901// -----------------------------------902module.exports.UpdateXssMatchSet = function UpdateXssMatchSet(aws) {903 var changeToken = aws.params.ChangeToken;904 var updates = aws.params.Updates /* Type list */;905 var xssMatchSetId = aws.params.XssMatchSetId;906 if (!changeToken) {907 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter ChangeToken'];908 }909 if (!updates) {910 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter Updates'];911 }912 if (!xssMatchSetId) {913 return [400, 'Sender', 'MissingParameter', 'Did not specify parameter XssMatchSetId'];914 }915916917 // TODO implement code918919 var ret = {920 ChangeToken: '',921 };922 return [200, ret]; ...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var wiki = wptools.page('Barack Obama');3wiki.changeToken(function(err, res) {4 console.log(res);5});6{ batchcomplete: '',7 { main:8 { '*': 'Unrecognized parameter: changeToken.' },9 { '*': 'Unrecognized parameter: changeToken.' } },10 { pages:11 { '21721040':12 { pageid: 21721040,13 known: '' } } } }

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptb = require('wptoolbox');2wp.changeToken(function(){3 console.log(wp.token);4});5var wptb = require('wptoolbox');6wp.changeToken(function(){7 console.log(wp.token);8});9var wptb = require('wptoolbox');10wp.changeToken(function(){11 console.log(wp.token);12});13var wptb = require('wptoolbox');14wp.changeToken(function(){15 console.log(wp.token);16});17var wptb = require('wptoolbox');18wp.changeToken(function(){19 console.log(wp.token);20});21var wptb = require('wptoolbox');22wp.changeToken(function(){23 console.log(wp.token);24});25var wptb = require('wptoolbox');26wp.changeToken(function(){27 console.log(wp.token);28});29var wptb = require('wptoolbox');30wp.changeToken(function(){31 console.log(wp.token);32});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var fs = require('fs');3wpt.changeToken(function(err, token){4 if(err){5 console.log(err);6 }else{7 fs.writeFile('token.txt', token, function(err){8 if(err){9 console.log(err);10 }else{11 console.log('Token saved!');12 }13 });14 }15});16var wpt = require('webpagetest');17var fs = require('fs');18wpt.changeToken(function(err, token){19 if(err){20 console.log(err);21 }else{22 fs.writeFile('token.txt', token, function(err){23 if(err){24 console.log(err);25 }else{26 console.log('Token saved!');27 }28 });29 }30});31var wpt = require('webpagetest');32var fs = require('fs');33var token = fs.readFileSync('token.txt');34 if(err){35 console.log(err);36 }else{37 console.log(data);38 }39});40var wpt = require('webpagetest');41var fs = require('fs');42var token = fs.readFileSync('token.txt');43 if(err){44 console.log(err);45 }else{46 console.log(data);47 }48});49var wpt = require('webpagetest');50var fs = require('fs');51var token = fs.readFileSync('token.txt');

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var page = wptools.page('Wikipedia:Featured articles');3page.changeToken(function(err, resp) {4 var token = resp['query']['tokens']['csrftoken'];5 console.log(token);6});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful