doc.go 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. // Package wafv2 provides the client and types for making API
  3. // requests to AWS WAFV2.
  4. //
  5. // This is the latest version of the WAF API, released in November, 2019. The
  6. // names of the entities that you use to access this API, like endpoints and
  7. // namespaces, all have the versioning information added, like "V2" or "v2",
  8. // to distinguish from the prior version. We recommend migrating your resources
  9. // to this version, because it has a number of significant improvements.
  10. //
  11. // If you used WAF prior to this release, you can't use this WAFV2 API to access
  12. // any WAF resources that you created before. You can access your old rules,
  13. // web ACLs, and other WAF resources only through the WAF Classic APIs. The
  14. // WAF Classic APIs have retained the prior names, endpoints, and namespaces.
  15. //
  16. // For information, including how to migrate your WAF resources to this version,
  17. // see the WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).
  18. //
  19. // WAF is a web application firewall that lets you monitor the HTTP and HTTPS
  20. // requests that are forwarded to Amazon CloudFront, an Amazon API Gateway REST
  21. // API, an Application Load Balancer, an AppSync GraphQL API, or an Amazon Cognito
  22. // user pool. WAF also lets you control access to your content. Based on conditions
  23. // that you specify, such as the IP addresses that requests originate from or
  24. // the values of query strings, the Amazon API Gateway REST API, CloudFront
  25. // distribution, the Application Load Balancer, the AppSync GraphQL API, or
  26. // the Amazon Cognito user pool responds to requests either with the requested
  27. // content or with an HTTP 403 status code (Forbidden). You also can configure
  28. // CloudFront to return a custom error page when a request is blocked.
  29. //
  30. // This API guide is for developers who need detailed information about WAF
  31. // API actions, data types, and errors. For detailed information about WAF features
  32. // and an overview of how to use WAF, see the WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html).
  33. //
  34. // You can make calls using the endpoints listed in WAF endpoints and quotas
  35. // (https://docs.aws.amazon.com/general/latest/gr/waf.html).
  36. //
  37. // - For regional applications, you can use any of the endpoints in the list.
  38. // A regional application can be an Application Load Balancer (ALB), an Amazon
  39. // API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user
  40. // pool.
  41. //
  42. // - For Amazon CloudFront applications, you must use the API endpoint listed
  43. // for US East (N. Virginia): us-east-1.
  44. //
  45. // Alternatively, you can use one of the Amazon Web Services SDKs to access
  46. // an API that's tailored to the programming language or platform that you're
  47. // using. For more information, see Amazon Web Services SDKs (http://aws.amazon.com/tools/#SDKs).
  48. //
  49. // We currently provide two versions of the WAF API: this API and the prior
  50. // versions, the classic WAF APIs. This new API provides the same functionality
  51. // as the older versions, with the following major improvements:
  52. //
  53. // - You use one API for both global and regional applications. Where you
  54. // need to distinguish the scope, you specify a Scope parameter and set it
  55. // to CLOUDFRONT or REGIONAL.
  56. //
  57. // - You can define a web ACL or rule group with a single call, and update
  58. // it with a single call. You define all rule specifications in JSON format,
  59. // and pass them to your rule group or web ACL calls.
  60. //
  61. // - The limits WAF places on the use of rules more closely reflects the
  62. // cost of running each type of rule. Rule groups include capacity settings,
  63. // so you know the maximum cost of a rule group when you use it.
  64. //
  65. // See https://docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29 for more information on this service.
  66. //
  67. // See wafv2 package documentation for more information.
  68. // https://docs.aws.amazon.com/sdk-for-go/api/service/wafv2/
  69. //
  70. // # Using the Client
  71. //
  72. // To contact AWS WAFV2 with the SDK use the New function to create
  73. // a new service client. With that client you can make API requests to the service.
  74. // These clients are safe to use concurrently.
  75. //
  76. // See the SDK's documentation for more information on how to use the SDK.
  77. // https://docs.aws.amazon.com/sdk-for-go/api/
  78. //
  79. // See aws.Config documentation for more information on configuring SDK clients.
  80. // https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
  81. //
  82. // See the AWS WAFV2 client WAFV2 for more
  83. // information on creating client for this service.
  84. // https://docs.aws.amazon.com/sdk-for-go/api/service/wafv2/#New
  85. package wafv2