**To update a routing rule**

The following ``put-routing-rule`` example updates the priority of a routing rule. ::

    aws apigatewayv2 put-routing-rule \
        --routing-rule-id 'aaa111' \
        --domain-name 'regional.example.com' \
        --priority 150 \
        --conditions '[ \
            { \
                "MatchBasePaths": { \
                    "AnyOf": [ \
                        "PetStoreShopper" \
                    ] \
                } \
            } \
        ]' \
        --actions '[ \
            { \
                "InvokeApi": { \
                    "ApiId": "abcd1234", \
                    "Stage": "prod" \
                } \
            } \
        ]'

Output::

    {
        "Actions": [
            {
                "InvokeApi": {
                    "ApiId": "abcd1234",
                    "Stage": "prod",
                    "StripBasePath": false
                }
            }
        ],
        "Conditions": [
            {
                "MatchBasePaths": {
                    "AnyOf": [
                        "PetStoreShopper"
                    ]
                }
            }
        ],
        "Priority": 150,
        "RoutingRuleArn": "arn:aws:apigateway:us-east-2:123456789012:/domainnames/regional.example.com/routingrules/aaa111",
        "RoutingRuleId": "aaa111"
    }

For more information, see `Routing rules to connect API stages to a custom domain name for REST APIs <https://docs.aws.amazon.com/apigateway/latest/developerguide/rest-api-routing-rules.html>`__ in the *Amazon API Gateway Developer Guide*.
