. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 52.223.31.75  /  Your IP : 172.31.32.98   [ Reverse IP ]
Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/site-packages/awscli/examples/apigatewayv2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python2.7/site-packages/awscli/examples/apigatewayv2/create-integration.rst
**To create a WebSocket API integration**

The following ``create-integration`` example creates a mock integration for a WebSocket API. ::

    aws apigatewayv2 create-integration \
        --api-id aabbccddee \
        --passthrough-behavior WHEN_NO_MATCH \
        --timeout-in-millis 29000 \
        --connection-type INTERNET \
        --integration-type MOCK

Output::

    {
        "ConnectionType": "INTERNET",
        "IntegrationId": "0abcdef",
        "IntegrationResponseSelectionExpression": "${integration.response.statuscode}",
        "IntegrationType": "MOCK",
        "PassthroughBehavior": "WHEN_NO_MATCH",
        "PayloadFormatVersion": "1.0",
        "TimeoutInMillis": 29000
    }

For more information, see `Set up a WebSocket API integration request in API Gateway <https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-websocket-api-integration-requests.html>`__ in the *Amazon API Gateway Developer Guide*.

**To create an HTTP API integration**

The following ``create-integration`` example creates an AWS Lambda integration for an HTTP API. ::

    aws apigatewayv2 create-integration \
        --api-id a1b2c3d4 \
        --integration-type AWS_PROXY \
        --integration-uri arn:aws:lambda:us-west-2:123456789012:function:my-function \
        --payload-format-version 2.0

Output::

    {
        "ConnectionType": "INTERNET",
        "IntegrationId": "0abcdef",
        "IntegrationMethod": "POST",
        "IntegrationType": "AWS_PROXY",
        "IntegrationUri": "arn:aws:lambda:us-west-2:123456789012:function:my-function",
        "PayloadFormatVersion": "2.0",
        "TimeoutInMillis": 30000
    }

For more information, see `Configuring integrations for HTTP APIs <https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations.html>`__ in the *Amazon API Gateway Developer Guide*.

Anon7 - 2022
AnonSec Team