Skip to content

Commit 01ad3b6

Browse files
committed
Move import and update APIG example
1 parent b05c282 commit 01ad3b6

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

awscli/examples/apigatewayv2/put-routing-rule.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The following ``put-routing-rule`` example updates the priority of a routing rule. ::
44

55
aws apigatewayv2 put-routing-rule \
6-
--routing-rule-id 'abc123' \
6+
--routing-rule-id 'aaa111' \
77
--domain-name 'regional.example.com' \
88
--priority 150 \
99
--conditions '[ \

tests/functional/docs/test_examples.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import docutils.utils
3232
import pytest
3333

34-
from awscli.argparser import MainArgParser, ServiceArgParser
34+
from awscli.argparser import ArgTableArgParser, MainArgParser, ServiceArgParser
3535
from awscli.testutils import BaseAWSHelpOutputTest, create_clidriver
3636

3737
# Mapping of command names to subcommands that have examples in their help
@@ -319,8 +319,6 @@ def validate_cli_command(self, command, filename):
319319
operation_cmd = cmd_table[operation_name]
320320

321321
# Validate all arguments using the operation's argument parser
322-
from awscli.argparser import ArgTableArgParser
323-
324322
arg_table = operation_cmd.arg_table
325323
operation_parser = ArgTableArgParser(arg_table)
326324

0 commit comments

Comments
 (0)