Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str Dict Str Dict Str BinOpDiv NameLoad Num decorator_list Assign NameStore Dict Str Dict Str Str Dict Str Str NameLoad Dict Str Str Dict Str Str Dict Str Str Str Str Str Str NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Dict Str Str NameLoad Dict Str Dict Str Str Str NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str NameLoad Str Assign AttributeStore SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str NameLoad Str Assign AttributeStore SubscriptLoad NameLoad Index Str attr Str Assign AttributeStore SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str NameLoad Str Assign AttributeStore SubscriptLoad NameLoad Index Str attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Index Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Dict Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Num SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Str NameLoad Assign AttributeStore NameLoad attr Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Dict Str Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad NameLoad Index Str attr decorator_list decorator_list
N/A awscli.testutils unittest N/A mock awscli.arguments CLIArgument awscli.customizations utils awscli.customizations.flatten FlattenedArgument FlattenArguments _hydrate N/A N/A params container cli_type key value N/A N/A N/A 
    An example to hydrate a complex structure with custom value logic. In this
    case we create a nested structure and divide the value by 100.
     N/A N/A params N/A bag N/A ArgumentBaz N/A SomeValueAbc N/A value 100.0 N/A N/A FLATTEN_CONFIG N/A command-name N/A original-argument another-original-argument N/A keep flatten False N/A ArgumentFoo ArgumentBar N/A name foo N/A name help_text required hydrate_value bar Some help text True N/A N/A N/A x N/A N/A N/A x upper N/A keep flatten True N/A ArgumentBaz.SomeValue N/A name hydrate baz _hydrate TestFlattenedArgument N/A N/A unittest TestCase N/A test_basic_argument N/A N/A self N/A N/A N/A container N/A N/A mock Mock N/A N/A N/A container argument_model name bag N/A kwargs N/A container prop container ArgumentFoo N/A N/A N/A kwargs N/A container py_name bag N/A N/A N/A kwargs update N/A N/A N/A N/A FLATTEN_CONFIG N/A command-name N/A original-argument N/A flatten N/A ArgumentFoo N/A arg N/A FlattenedArgument kwargs N/A N/A N/A self assertEqual foo N/A arg name N/A N/A N/A self assertEqual N/A arg documentation N/A N/A N/A self assertEqual False N/A arg required N/A params N/A N/A N/A N/A arg add_to_params params value N/A N/A N/A self assertEqual value N/A N/A params N/A bag N/A ArgumentFoo N/A test_hydrate_value_argument N/A N/A self N/A N/A N/A container N/A N/A mock Mock N/A N/A N/A container argument_model name bag N/A kwargs N/A container prop container ArgumentBar N/A N/A N/A kwargs N/A container py_name bag N/A N/A N/A kwargs N/A container cli_type_name list N/A N/A N/A kwargs update N/A N/A N/A N/A FLATTEN_CONFIG N/A command-name N/A original-argument N/A flatten N/A ArgumentBar N/A arg N/A FlattenedArgument kwargs N/A N/A N/A self assertEqual bar N/A arg name N/A N/A N/A self assertEqual Some help text N/A arg documentation N/A N/A N/A self assertEqual True N/A arg required N/A params N/A N/A N/A N/A arg add_to_params params value N/A N/A N/A self assertEqual VALUE N/A N/A N/A params N/A bag N/A 0 N/A ArgumentBar N/A test_hydrate_function_argument N/A N/A self N/A N/A N/A container N/A N/A mock Mock N/A N/A N/A container argument_model name bag N/A kwargs N/A container prop container ArgumentBaz:SomeValue N/A N/A N/A kwargs N/A container py_name bag N/A N/A N/A kwargs update N/A N/A N/A N/A FLATTEN_CONFIG N/A command-name N/A another-original-argument N/A flatten N/A ArgumentBaz.SomeValue N/A arg N/A FlattenedArgument kwargs N/A N/A N/A self assertEqual baz N/A arg name N/A N/A N/A self assertEqual N/A arg documentation N/A N/A N/A self assertEqual False N/A arg required N/A params N/A N/A N/A N/A arg add_to_params params 1020 N/A N/A N/A self assertEqual 10.2 N/A N/A N/A params N/A bag N/A ArgumentBaz N/A SomeValueAbc N/A N/A TestFlattenCommands N/A N/A unittest TestCase N/A test_flatten_register N/A N/A self N/A N/A N/A cli N/A N/A mock Mock N/A flatten N/A FlattenArguments my-service FLATTEN_CONFIG N/A N/A N/A flatten register cli N/A N/A N/A N/A cli register assert_called_with building-argument-table.my-service.command-name N/A flatten flatten_args N/A test_flatten_modify_args N/A N/A self N/A N/A N/A command N/A N/A mock Mock N/A N/A command name command-name N/A argument_model1 N/A N/A mock Mock N/A N/A argument_model1 required_members N/A N/A member_foo N/A N/A mock Mock N/A N/A member_foo name ArgumentFoo N/A N/A member_foo documentation Original docs N/A N/A member_foo required_members N/A N/A member_bar N/A N/A mock Mock N/A N/A member_bar name ArgumentBar N/A N/A member_bar documentation More docs N/A N/A member_bar required_members N/A N/A N/A argument_model1 members N/A ArgumentFoo ArgumentBar member_foo member_bar N/A argument_model2 N/A N/A mock Mock N/A N/A argument_model2 required_members N/A N/A member_baz N/A N/A mock Mock N/A N/A member_baz name ArgumentBaz N/A N/A member_baz documentation N/A N/A member_baz required_members N/A N/A member_some_value N/A N/A mock Mock N/A N/A member_some_value name SomeValue N/A N/A member_some_value documenation N/A N/A member_some_value required_members N/A N/A N/A member_baz members N/A SomeValue member_some_value N/A N/A argument_model2 members N/A ArgumentBaz member_baz N/A cli_argument1 N/A N/A mock Mock spec CLIArgument N/A N/A cli_argument1 argument_model argument_model1 N/A cli_argument2 N/A N/A mock Mock spec CLIArgument N/A N/A cli_argument2 argument_model argument_model2 N/A argument_table N/A original-argument another-original-argument cli_argument1 cli_argument2 N/A cli N/A N/A mock Mock N/A flatten N/A FlattenArguments my-service FLATTEN_CONFIG N/A N/A N/A flatten flatten_args command argument_table N/A N/A N/A self assertIn foo argument_table N/A N/A N/A self assertIn bar argument_table N/A N/A N/A self assertNotIn original-argument argument_table N/A N/A N/A self assertIn baz argument_table N/A N/A N/A self assertIn another-original-argument argument_table N/A N/A N/A self assertIsInstance N/A argument_table N/A foo FlattenedArgument N/A N/A N/A self assertIsInstance N/A argument_table N/A bar FlattenedArgument N/A N/A N/A self assertIsInstance N/A argument_table N/A baz FlattenedArgument N/A N/A N/A self assertNotIsInstance N/A argument_table N/A another-original-argument FlattenedArgument N/A N/A N/A self assertEqual False N/A N/A argument_table N/A foo required N/A N/A N/A self assertEqual True N/A N/A argument_table N/A bar required N/A N/A N/A self assertEqual Original docs N/A N/A argument_table N/A foo documentation N/A N/A N/A self assertEqual Some help text N/A N/A argument_table N/A bar documentation N/A N/A