AWS WAF Waf Sql Injection Match Set API

The Waf Sql Injection Match Set API from AWS WAF — 5 operation(s) for waf sql injection match set.

GitHub OpenAPI

Operations 5

POST /#CreateSqlInjectionMatchSet Create Sql Injection Match Set #
POST /#DeleteSqlInjectionMatchSet Delete Sql Injection Match Set #
POST /#GetSqlInjectionMatchSet Get Sql Injection Match Set #
POST /#ListSqlInjectionMatchSets List Sql Injection Match Sets #
POST /#UpdateSqlInjectionMatchSet Update Sql Injection Match Set #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aws-waf:aws-waf-sql-injection-match-set-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aws-waf-sql-injection-match-set-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS WAFV2 Sql Injection Match Set API
  version: '2019-07-29'
  description: Generated from AWS's published Smithy model for AWS WAFV2. 5 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://waf.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#CreateSqlInjectionMatchSet:
    post:
      operationId: CreateSqlInjectionMatchSet
      summary: Create Sql Injection Match Set
      description: 'This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
        For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version,
        AWS WAF has a single set of endpoints for regional and global use. Creates a SqlInjectionMatchSet, which you use to
        allow, block, or count requests that contain snippets of SQL code in a specified part of web requests. AWS WAF searches
        for character sequences that are likely to be malicious strings. To create and configure a SqlInjectionMatchSet, perform
        the following steps: Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a
        CreateSqlInjectionMatchSet request. Submit a CreateSqlInjectionMatchSet request. Use GetChangeToken to get the change
        token that you provide in the ChangeToken parameter of an UpdateSqlInjectionMatchSet request. Submit an UpdateSqlInjectionMatchSet
        request to specify the parts of web requests in which you want to allow, block, or count malicious SQL code. For more
        information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.'
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/CreateSqlInjectionMatchSetResponse'
              example:
                SqlInjectionMatchSet:
                  Name: MySQLInjectionMatchSet
                  SqlInjectionMatchSetId: example1ds3t-46da-4fdb-b8d5-abc321j569j5
                  SqlInjectionMatchTuples:
                  - FieldToMatch:
                      Type: QUERY_STRING
                    TextTransformation: URL_DECODE
                ChangeToken: abcd12f2-46da-4fdb-b8d5-fbd4c466928f
        '400':
          description: WAFDisallowedNameException; WAFInvalidAccountException; WAFInvalidParameterException; WAFLimitsExceededException;
            WAFStaleDataException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFDisallowedNameException'
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WafWAFInternalErrorException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20150824.CreateSqlInjectionMatchSet
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/CreateSqlInjectionMatchSetRequest'
            example:
              Name: MySQLInjectionMatchSet
              ChangeToken: abcd12f2-46da-4fdb-b8d5-fbd4c466928f
      tags:
      - Sql Injection Match Set
  /#DeleteSqlInjectionMatchSet:
    post:
      operationId: DeleteSqlInjectionMatchSet
      summary: Delete Sql Injection Match Set
      description: 'This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
        For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version,
        AWS WAF has a single set of endpoints for regional and global use. Permanently deletes a SqlInjectionMatchSet. You
        can''t delete a SqlInjectionMatchSet if it''s still used in any Rules or if it still contains any SqlInjectionMatchTuple
        objects. If you just want to remove a SqlInjectionMatchSet from a Rule, use UpdateRule. To permanently delete a SqlInjectionMatchSet
        from AWS WAF, perform the following steps: Update the SqlInjectionMatchSet to remove filters, if any. For more information,
        see UpdateSqlInjectionMatchSet. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter
        of a DeleteSqlInjectionMatchSet request. Submit a DeleteSqlInjectionMatchSet request.'
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteSqlInjectionMatchSetResponse'
              example:
                ChangeToken: abcd12f2-46da-4fdb-b8d5-fbd4c466928f
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WafWAFInternalErrorException'
        '400':
          description: WAFInvalidAccountException; WAFNonEmptyEntityException; WAFNonexistentItemException; WAFReferencedItemException;
            WAFStaleDataException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInvalidAccountException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20150824.DeleteSqlInjectionMatchSet
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteSqlInjectionMatchSetRequest'
            example:
              SqlInjectionMatchSetId: example1ds3t-46da-4fdb-b8d5-abc321j569j5
              ChangeToken: abcd12f2-46da-4fdb-b8d5-fbd4c466928f
      tags:
      - Sql Injection Match Set
  /#GetSqlInjectionMatchSet:
    post:
      operationId: GetSqlInjectionMatchSet
      summary: Get Sql Injection Match Set
      description: This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
        For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version,
        AWS WAF has a single set of endpoints for regional and global use. Returns the SqlInjectionMatchSet that is specified
        by SqlInjectionMatchSetId.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetSqlInjectionMatchSetResponse'
              example:
                SqlInjectionMatchSet:
                  Name: MySQLInjectionMatchSet
                  SqlInjectionMatchSetId: example1ds3t-46da-4fdb-b8d5-abc321j569j5
                  SqlInjectionMatchTuples:
                  - FieldToMatch:
                      Type: QUERY_STRING
                    TextTransformation: URL_DECODE
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WafWAFInternalErrorException'
        '400':
          description: WAFInvalidAccountException; WAFNonexistentItemException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInvalidAccountException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20150824.GetSqlInjectionMatchSet
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetSqlInjectionMatchSetRequest'
            example:
              SqlInjectionMatchSetId: example1ds3t-46da-4fdb-b8d5-abc321j569j5
      tags:
      - Sql Injection Match Set
  /#ListSqlInjectionMatchSets:
    post:
      operationId: ListSqlInjectionMatchSets
      summary: List Sql Injection Match Sets
      description: This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
        For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version,
        AWS WAF has a single set of endpoints for regional and global use. Returns an array of SqlInjectionMatchSet objects.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListSqlInjectionMatchSetsResponse'
              example:
                SqlInjectionMatchSets:
                - Name: MySQLInjectionMatchSet
                  SqlInjectionMatchSetId: example1ds3t-46da-4fdb-b8d5-abc321j569j5
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WafWAFInternalErrorException'
        '400':
          description: WAFInvalidAccountException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInvalidAccountException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20150824.ListSqlInjectionMatchSets
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListSqlInjectionMatchSetsRequest'
            example:
              Limit: 100
      tags:
      - Sql Injection Match Set
  /#UpdateSqlInjectionMatchSet:
    post:
      operationId: UpdateSqlInjectionMatchSet
      summary: Update Sql Injection Match Set
      description: 'This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
        For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version,
        AWS WAF has a single set of endpoints for regional and global use. Inserts or deletes SqlInjectionMatchTuple objects
        (filters) in a SqlInjectionMatchSet. For each SqlInjectionMatchTuple object, you specify the following values: Action:
        Whether to insert the object into or delete the object from the array. To change a SqlInjectionMatchTuple, you delete
        the existing object and add a new one. FieldToMatch: The part of web requests that you want AWS WAF to inspect and,
        if you want AWS WAF to inspect a header or custom query parameter, the name of the header or parameter. TextTransformation:
        Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious
        SQL code. You can only specify a single type of TextTransformation. You use SqlInjectionMatchSet objects to specify
        which CloudFront requests that you want to allow, block, or count. For example, if you''re receiving requests that
        contain snippets of SQL code in'
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/UpdateSqlInjectionMatchSetResponse'
              example:
                ChangeToken: abcd12f2-46da-4fdb-b8d5-fbd4c466928f
        '500':
          description: WAFInternalErrorException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WafWAFInternalErrorException'
        '400':
          description: WAFInvalidAccountException; WAFInvalidOperationException; WAFInvalidParameterException; WAFLimitsExceededException;
            WAFNonexistentContainerException; WAFNonexistentItemException; WAFStaleDataException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/WAFInvalidAccountException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - AWSWAF_20150824.UpdateSqlInjectionMatchSet
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UpdateSqlInjectionMatchSetRequest'
            example:
              SqlInjectionMatchSetId: example1ds3t-46da-4fdb-b8d5-abc321j569j5
              ChangeToken: abcd12f2-46da-4fdb-b8d5-fbd4c466928f
              Updates:
              - Action: DELETE
                SqlInjectionMatchTuple:
                  FieldToMatch:
                    Type: QUERY_STRING
                  TextTransformation: URL_DECODE
      tags:
      - Sql Injection Match Set
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: waf
  schemas:
    CreateSqlInjectionMatchSetRequest:
      type: object
      properties:
        Name:
          type: string
          description: A friendly name or description for the SqlInjectionMatchSet that you're creating. You can't change
            Name after you create the SqlInjectionMatchSet.
        ChangeToken:
          type: string
          description: The value returned by the most recent call to GetChangeToken.
      required:
      - Name
      - ChangeToken
    CreateSqlInjectionMatchSetResponse:
      type: object
      properties:
        SqlInjectionMatchSet:
          $ref: '#/components/schemas/SqlInjectionMatchSet'
        ChangeToken:
          type: string
          description: The ChangeToken that you used to submit the CreateSqlInjectionMatchSet request. You can also use this
            value to query the status of the request. For more information, see GetChangeTokenStatus.
    DeleteSqlInjectionMatchSetRequest:
      type: object
      properties:
        SqlInjectionMatchSetId:
          type: string
          description: The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to delete. SqlInjectionMatchSetId
            is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.
        ChangeToken:
          type: string
          description: The value returned by the most recent call to GetChangeToken.
      required:
      - SqlInjectionMatchSetId
      - ChangeToken
    DeleteSqlInjectionMatchSetResponse:
      type: object
      properties:
        ChangeToken:
          type: string
          description: The ChangeToken that you used to submit the DeleteSqlInjectionMatchSet request. You can also use this
            value to query the status of the request. For more information, see GetChangeTokenStatus.
    GetSqlInjectionMatchSetRequest:
      type: object
      properties:
        SqlInjectionMatchSetId:
          type: string
          description: The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to get. SqlInjectionMatchSetId
            is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.
      required:
      - SqlInjectionMatchSetId
    GetSqlInjectionMatchSetResponse:
      type: object
      properties:
        SqlInjectionMatchSet:
          $ref: '#/components/schemas/SqlInjectionMatchSet'
    ListSqlInjectionMatchSetsRequest:
      type: object
      properties:
        NextMarker:
          type: string
          description: If you specify a value for Limit and you have more SqlInjectionMatchSet objects than the value of Limit,
            AWS WAF returns a NextMarker value in the response that allows you to list another group of SqlInjectionMatchSets.
            For the second and subsequent ListSqlInjectionMatchSets requests, specify the value of NextMarker from the previous
            response to get information about another batch of SqlInjectionMatchSets.
        Limit:
          type: integer
          description: Specifies the number of SqlInjectionMatchSet objects that you want AWS WAF to return for this request.
            If you have more SqlInjectionMatchSet objects than the number you specify for Limit, the response includes a NextMarker
            value that you can use to get another batch of Rules.
    ListSqlInjectionMatchSetsResponse:
      type: object
      properties:
        NextMarker:
          type: string
          description: If you have more SqlInjectionMatchSet objects than the number that you specified for Limit in the request,
            the response includes a NextMarker value. To list more SqlInjectionMatchSet objects, submit another ListSqlInjectionMatchSets
            request, and specify the NextMarker value from the response in the NextMarker value in the next request.
        SqlInjectionMatchSets:
          type: array
          items:
            $ref: '#/components/schemas/SqlInjectionMatchSetSummary'
          description: An array of SqlInjectionMatchSetSummary objects.
    SqlInjectionMatchSet:
      type: object
      properties:
        SqlInjectionMatchSetId:
          type: string
          description: A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about
            a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet),
            insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet
            from AWS WAF (see DeleteSqlInjectionMatchSet). SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet
            and by ListSqlInjectionMatchSets.
        Name:
          type: string
          description: The name, if any, of the SqlInjectionMatchSet.
        SqlInjectionMatchTuples:
          type: array
          items:
            $ref: '#/components/schemas/SqlInjectionMatchTuple'
          description: Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
      required:
      - SqlInjectionMatchSetId
      - SqlInjectionMatchTuples
    SqlInjectionMatchSetSummary:
      type: object
      properties:
        SqlInjectionMatchSetId:
          type: string
          description: A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about
            a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet),
            insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet
            from AWS WAF (see DeleteSqlInjectionMatchSet). SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet
            and by ListSqlInjectionMatchSets.
        Name:
          type: string
          description: The name of the SqlInjectionMatchSet, if any, specified by Id.
      required:
      - SqlInjectionMatchSetId
      - Name
    SqlInjectionMatchSetUpdate:
      type: object
      properties:
        Action:
          type: string
          enum:
          - INSERT
          - DELETE
          description: Specify INSERT to add a SqlInjectionMatchSetUpdate to a SqlInjectionMatchSet. Use DELETE to remove
            a SqlInjectionMatchSetUpdate from a SqlInjectionMatchSet.
        SqlInjectionMatchTuple:
          $ref: '#/components/schemas/SqlInjectionMatchTuple'
      required:
      - Action
      - SqlInjectionMatchTuple
    SqlInjectionMatchTuple:
      type: object
      properties:
        FieldToMatch:
          $ref: '#/components/schemas/WafFieldToMatch'
        TextTransformation:
          type: string
          enum:
          - NONE
          - COMPRESS_WHITE_SPACE
          - HTML_ENTITY_DECODE
          - LOWERCASE
          - CMD_LINE
          - URL_DECODE
          description: 'Text transformations eliminate some of the unusual formatting that attackers use in web requests in
            an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on FieldToMatch
            before inspecting it for a match. You can only specify a single type of TextTransformation. CMD_LINE When you''re
            concerned that attackers are injecting an operating system command line command and using unusual formatting to
            disguise some or all of the command, use this option to perform the following transformations: Delete the following
            characters: \ " '' ^ Delete spaces before the '
      required:
      - FieldToMatch
      - TextTransformation
    UpdateSqlInjectionMatchSetRequest:
      type: object
      properties:
        SqlInjectionMatchSetId:
          type: string
          description: The SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to update. SqlInjectionMatchSetId
            is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.
        ChangeToken:
          type: string
          description: The value returned by the most recent call to GetChangeToken.
        Updates:
          type: array
          items:
            $ref: '#/components/schemas/SqlInjectionMatchSetUpdate'
          description: 'An array of SqlInjectionMatchSetUpdate objects that you want to insert into or delete from a SqlInjectionMatchSet.
            For more information, see the applicable data types: SqlInjectionMatchSetUpdate: Contains Action and SqlInjectionMatchTuple
            SqlInjectionMatchTuple: Contains FieldToMatch and TextTransformation FieldToMatch: Contains Data and Type'
      required:
      - SqlInjectionMatchSetId
      - ChangeToken
      - Updates
    UpdateSqlInjectionMatchSetResponse:
      type: object
      properties:
        ChangeToken:
          type: string
          description: The ChangeToken that you used to submit the UpdateSqlInjectionMatchSet request. You can also use this
            value to query the status of the request. For more information, see GetChangeTokenStatus.
    WAFDisallowedNameException:
      type: object
      properties:
        message:
          type: string
    WAFInvalidAccountException:
      type: object
      properties: {}
    WafFieldToMatch:
      type: object
      properties:
        Type:
          type: string
          enum:
          - URI
          - QUERY_STRING
          - HEADER
          - METHOD
          - BODY
          - SINGLE_QUERY_ARG
          - ALL_QUERY_ARGS
          description: 'The part of the web request that you want AWS WAF to search for a specified string. Parts of a request
            that you can search include the following: HEADER: A specified request header, for example, the value of the User-Agent
            or Referer header. If you choose HEADER for the type, specify the name of the header in Data. METHOD: The HTTP
            method, which indicated the type of operation that the request is asking the origin to perform. Amazon CloudFront
            supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. QUERY_STRING: A query string,
            which is the part of a URL that appears '
        Data:
          type: string
          description: When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for
            example, User-Agent or Referer. The name of the header is not case sensitive. When the value of Type is SINGLE_QUERY_ARG,
            enter the name of the parameter that you want AWS WAF to search, for example, UserName or SalesRegion. The parameter
            name is not case sensitive. If the value of Type is any other value, omit Data.
      required:
      - Type
    WafWAFInternalErrorException:
      type: object
      properties:
        message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/waf/service/2015-08-24/waf-2015-08-24.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)