Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Expr Call AttributeLoad AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str attr attr Str decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Str attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr Str decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr Str decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr ListLoad Str decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore ListLoad Str Str Str Str For NameStore NameLoad body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr AttributeLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr attr attr Expr AttributeLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr attr attr Expr AttributeLoad AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr Str NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Dict Str Str Str Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr Call NameLoad Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore ListLoad Str Str Str For NameStore NameLoad body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore ListLoad Str For NameStore NameLoad body With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore ListLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Str With Call NameLoad NameLoad NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Str Expr Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr attr Call AttributeLoad Str attr Call NameLoad Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad Str attr Call NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr AttributeLoad AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Str attr attr attr Assign NameStore SubscriptLoad NameLoad Index Str FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword NameLoad NameLoad decorator_list Expr Call AttributeLoad AttributeLoad Call NameLoad ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd Call NameLoad NameLoad CompareEq Str SubscriptLoad NameLoad Index Str attr attr Num Expr Call AttributeLoad AttributeLoad Call NameLoad ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd Call NameLoad NameLoad CompareEq Str SubscriptLoad NameLoad Index Str attr attr Num Expr Call AttributeLoad AttributeLoad Call NameLoad ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd Call NameLoad NameLoad CompareEq Str SubscriptLoad NameLoad Index Str attr attr Num Expr Call AttributeLoad AttributeLoad Call NameLoad ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd Call NameLoad NameLoad CompareEq Str SubscriptLoad NameLoad Index Str attr attr Num Expr Call AttributeLoad AttributeLoad Call NameLoad ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd Call NameLoad NameLoad CompareEq Str SubscriptLoad NameLoad Index Str attr attr Num Expr Call AttributeLoad AttributeLoad Call NameLoad ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd Call NameLoad NameLoad CompareEq Str SubscriptLoad NameLoad Index Str attr attr Num Expr Call AttributeLoad AttributeLoad Call NameLoad ListComp NameLoad comprehension NameStore NameLoad BoolOpAnd CompareIn Str NameLoad CompareEq NameLoad SubscriptLoad NameLoad Index Str attr attr Num Expr Call AttributeLoad AttributeLoad Call NameLoad NameLoad attr attr Num decorator_list NameLoad FunctionDef arguments args defaults body ImportFrom alias Import alias Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr attr NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad NameLoad attr attr attr NameLoad decorator_list NameLoad FunctionDef arguments args defaults body ImportFrom alias Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr attr NameLoad Expr Call AttributeLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr attr NameLoad decorator_list NameLoad
N/A __future__ unicode_literals N/A re N/A boto.kms boto.exception JSONResponseError boto.kms.exceptions AlreadyExistsException NotFoundException N/A sure moto mock_kms nose.tools assert_raises test_create_key N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key key_usage ENCRYPT_DECRYPT N/A N/A N/A N/A N/A N/A key N/A KeyMetadata N/A Description should equal my key N/A N/A N/A N/A N/A N/A key N/A KeyMetadata N/A KeyUsage should equal ENCRYPT_DECRYPT N/A N/A N/A N/A N/A N/A key N/A KeyMetadata N/A Enabled should equal True N/A mock_kms test_describe_key N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A key N/A N/A conn describe_key key_id N/A N/A N/A N/A N/A N/A key N/A KeyMetadata N/A Description should equal my key N/A N/A N/A N/A N/A N/A key N/A KeyMetadata N/A KeyUsage should equal ENCRYPT_DECRYPT N/A mock_kms test_describe_missing_key N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A N/A N/A N/A N/A N/A N/A N/A conn describe_key when called_with not-a-key should throw JSONResponseError N/A mock_kms test_list_keys N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A N/A N/A conn create_key policy my policy description my key1 key_usage ENCRYPT_DECRYPT N/A N/A N/A conn create_key policy my policy description my key2 key_usage ENCRYPT_DECRYPT N/A keys N/A N/A conn list_keys N/A N/A N/A N/A N/A N/A keys N/A Keys should have length_of 2 N/A mock_kms test_enable_key_rotation N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A N/A N/A conn enable_key_rotation key_id N/A N/A N/A N/A N/A N/A N/A conn get_key_rotation_status key_id N/A KeyRotationEnabled should equal True N/A mock_kms test_enable_key_rotation_with_missing_key N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A N/A N/A N/A N/A N/A N/A N/A conn enable_key_rotation when called_with not-a-key should throw JSONResponseError N/A mock_kms test_disable_key_rotation N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A N/A N/A conn enable_key_rotation key_id N/A N/A N/A N/A N/A N/A N/A conn get_key_rotation_status key_id N/A KeyRotationEnabled should equal True N/A N/A N/A conn disable_key_rotation key_id N/A N/A N/A N/A N/A N/A N/A conn get_key_rotation_status key_id N/A KeyRotationEnabled should equal False N/A mock_kms test_disable_key_rotation_with_missing_key N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A N/A N/A N/A N/A N/A N/A N/A conn disable_key_rotation when called_with not-a-key should throw JSONResponseError N/A mock_kms test_get_key_rotation_status_with_missing_key N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A N/A N/A N/A N/A N/A N/A N/A conn get_key_rotation_status when called_with not-a-key should throw JSONResponseError N/A mock_kms test_get_key_rotation_status N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A N/A N/A N/A N/A N/A N/A conn get_key_rotation_status key_id N/A KeyRotationEnabled should equal False N/A mock_kms test_create_key_defaults_key_rotation N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A N/A N/A N/A N/A N/A N/A conn get_key_rotation_status key_id N/A KeyRotationEnabled should equal False N/A mock_kms test_get_key_policy N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key1 key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A policy N/A N/A conn get_key_policy key_id default N/A N/A N/A N/A N/A policy N/A Policy should equal my policy N/A mock_kms test_put_key_policy N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key1 key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A N/A N/A conn put_key_policy key_id default new policy N/A policy N/A N/A conn get_key_policy key_id default N/A N/A N/A N/A N/A policy N/A Policy should equal new policy N/A mock_kms test_list_key_policies N/A N/A N/A N/A N/A conn N/A N/A N/A boto kms connect_to_region us-west-2 N/A key N/A N/A conn create_key policy my policy description my key1 key_usage ENCRYPT_DECRYPT N/A key_id N/A N/A key N/A KeyMetadata N/A KeyId N/A policies N/A N/A conn list_key_policies key_id N/A N/A N/A N/A N/A policies N/A PolicyNames should equal N/A default N/A mock_kms test__create_alias__returns_none_if_correct N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A resp N/A N/A kms create_alias alias/my-alias key_id N/A N/A N/A N/A resp should be none N/A mock_kms test__create_alias__raises_if_reserved_alias N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A reserved_aliases N/A alias/aws/ebs alias/aws/s3 alias/aws/redshift alias/aws/rds N/A alias_name reserved_aliases N/A N/A N/A assert_raises JSONResponseError err N/A N/A N/A N/A kms create_alias alias_name key_id N/A ex N/A err exception N/A N/A N/A N/A N/A ex error_message should be none N/A N/A N/A N/A N/A ex error_code should equal NotAuthorizedException N/A N/A N/A N/A N/A ex body should equal N/A __type NotAuthorizedException N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__create_alias__can_create_multiple_aliases_for_same_key_id N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A N/A N/A N/A N/A N/A kms create_alias alias/my-alias3 key_id should be none N/A N/A N/A N/A N/A N/A kms create_alias alias/my-alias4 key_id should be none N/A N/A N/A N/A N/A N/A kms create_alias alias/my-alias5 key_id should be none N/A mock_kms test__create_alias__raises_if_wrong_prefix N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A N/A assert_raises JSONResponseError err N/A N/A N/A N/A kms create_alias wrongprefix/my-alias key_id N/A ex N/A err exception N/A N/A N/A N/A N/A ex error_message should equal Invalid identifier N/A N/A N/A N/A N/A ex error_code should equal ValidationException N/A N/A N/A N/A N/A ex body should equal N/A message __type Invalid identifier ValidationException N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__create_alias__raises_if_duplicate N/A N/A N/A N/A N/A region us-west-2 N/A kms N/A N/A N/A boto kms connect_to_region region N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A alias alias/my-alias N/A N/A N/A kms create_alias alias key_id N/A N/A assert_raises AlreadyExistsException err N/A N/A N/A N/A kms create_alias alias key_id N/A ex N/A err exception N/A N/A N/A N/A N/A ex error_message should match N/A N/A An alias with the name arn:aws:kms:{region}:\d{{12}}:{alias} already exists format N/A locals N/A N/A N/A N/A N/A ex error_code should be none N/A N/A N/A N/A N/A ex box_usage should be none N/A N/A N/A N/A N/A ex request_id should be none N/A N/A N/A N/A N/A N/A ex body N/A message should match N/A N/A An alias with the name arn:aws:kms:{region}:\d{{12}}:{alias} already exists format N/A locals N/A N/A N/A N/A N/A N/A ex body N/A __type should equal AlreadyExistsException N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__create_alias__raises_if_alias_has_restricted_characters N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A alias_names_with_restricted_characters N/A alias/my-alias! alias/my-alias$ alias/my-alias@ N/A alias_name alias_names_with_restricted_characters N/A N/A N/A assert_raises JSONResponseError err N/A N/A N/A N/A kms create_alias alias_name key_id N/A ex N/A err exception N/A N/A N/A N/A N/A N/A ex body N/A __type should equal ValidationException N/A N/A N/A N/A N/A N/A ex body N/A message should equal N/A N/A 1 validation error detected: Value '{alias_name}' at 'aliasName' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[a-zA-Z0-9:/_-]+$ format N/A locals N/A N/A N/A N/A N/A ex error_code should equal ValidationException N/A N/A N/A N/A N/A ex message should equal N/A N/A 1 validation error detected: Value '{alias_name}' at 'aliasName' failed to satisfy constraint: Member must satisfy regular expression pattern: ^[a-zA-Z0-9:/_-]+$ format N/A locals N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__create_alias__raises_if_alias_has_colon_character N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A alias_names_with_restricted_characters N/A alias/my:alias N/A alias_name alias_names_with_restricted_characters N/A N/A N/A assert_raises JSONResponseError err N/A N/A N/A N/A kms create_alias alias_name key_id N/A ex N/A err exception N/A N/A N/A N/A N/A N/A ex body N/A __type should equal ValidationException N/A N/A N/A N/A N/A N/A ex body N/A message should equal N/A N/A {alias_name} contains invalid characters for an alias format N/A locals N/A N/A N/A N/A N/A ex error_code should equal ValidationException N/A N/A N/A N/A N/A ex message should equal N/A N/A {alias_name} contains invalid characters for an alias format N/A locals N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__create_alias__accepted_characters N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A alias_names_with_accepted_characters N/A alias/my-alias_/ alias/my_alias-/ N/A alias_name alias_names_with_accepted_characters N/A N/A N/A N/A kms create_alias alias_name key_id N/A mock_kms test__create_alias__raises_if_target_key_id_is_existing_alias N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A alias alias/my-alias N/A N/A N/A kms create_alias alias key_id N/A N/A assert_raises JSONResponseError err N/A N/A N/A N/A kms create_alias alias alias N/A ex N/A err exception N/A N/A N/A N/A N/A N/A ex body N/A __type should equal ValidationException N/A N/A N/A N/A N/A N/A ex body N/A message should equal Aliases must refer to keys. Not aliases N/A N/A N/A N/A N/A ex error_code should equal ValidationException N/A N/A N/A N/A N/A ex message should equal Aliases must refer to keys. Not aliases N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__delete_alias N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A alias alias/my-alias N/A N/A N/A kms create_alias alias key_id N/A resp N/A N/A kms delete_alias alias N/A N/A N/A N/A resp should be none N/A N/A N/A kms create_alias alias key_id N/A mock_kms test__delete_alias__raises_if_wrong_prefix N/A N/A N/A N/A N/A kms N/A N/A boto connect_kms N/A N/A assert_raises JSONResponseError err N/A N/A N/A N/A kms delete_alias wrongprefix/my-alias N/A ex N/A err exception N/A N/A N/A N/A N/A N/A ex body N/A __type should equal ValidationException N/A N/A N/A N/A N/A N/A ex body N/A message should equal Invalid identifier N/A N/A N/A N/A N/A ex error_code should equal ValidationException N/A N/A N/A N/A N/A ex message should equal Invalid identifier N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__delete_alias__raises_if_alias_is_not_found N/A N/A N/A N/A N/A region us-west-2 N/A kms N/A N/A N/A boto kms connect_to_region region N/A alias_name alias/unexisting-alias N/A N/A assert_raises NotFoundException err N/A N/A N/A N/A kms delete_alias alias_name N/A ex N/A err exception N/A N/A N/A N/A N/A N/A ex body N/A __type should equal NotFoundException N/A N/A N/A N/A N/A N/A ex body N/A message should match N/A N/A Alias arn:aws:kms:{region}:\d{{12}}:{alias_name} is not found. format N/A locals N/A N/A N/A N/A N/A ex box_usage should be none N/A N/A N/A N/A N/A ex error_code should be none N/A N/A N/A N/A N/A ex message should match N/A N/A Alias arn:aws:kms:{region}:\d{{12}}:{alias_name} is not found. format N/A locals N/A N/A N/A N/A N/A ex reason should equal Bad Request N/A N/A N/A N/A N/A ex request_id should be none N/A N/A N/A N/A N/A ex status should equal 400 N/A mock_kms test__list_aliases N/A N/A N/A N/A N/A region eu-west-1 N/A kms N/A N/A N/A boto kms connect_to_region region N/A create_resp N/A N/A kms create_key N/A key_id N/A N/A create_resp N/A KeyMetadata N/A KeyId N/A N/A N/A kms create_alias alias/my-alias1 key_id N/A N/A N/A kms create_alias alias/my-alias2 key_id N/A N/A N/A kms create_alias alias/my-alias3 key_id N/A resp N/A N/A kms list_aliases N/A N/A N/A N/A N/A resp N/A Truncated should be false N/A aliases N/A resp N/A Aliases has_correct_arn N/A N/A alias_obj N/A N/A N/A alias_name N/A alias_obj N/A AliasName N/A alias_arn N/A alias_obj N/A AliasArn N/A N/A N/A re match N/A N/A arn:aws:kms:{region}:\d{{12}}:{alias_name} format region region alias_name alias_name alias_arn N/A N/A N/A N/A N/A N/A len N/A alias N/A alias aliases N/A N/A has_correct_arn alias N/A alias/aws/ebs N/A alias N/A AliasName should equal 1 N/A N/A N/A N/A N/A len N/A alias N/A alias aliases N/A N/A has_correct_arn alias N/A alias/aws/rds N/A alias N/A AliasName should equal 1 N/A N/A N/A N/A N/A len N/A alias N/A alias aliases N/A N/A has_correct_arn alias N/A alias/aws/redshift N/A alias N/A AliasName should equal 1 N/A N/A N/A N/A N/A len N/A alias N/A alias aliases N/A N/A has_correct_arn alias N/A alias/aws/s3 N/A alias N/A AliasName should equal 1 N/A N/A N/A N/A N/A len N/A alias N/A alias aliases N/A N/A has_correct_arn alias N/A alias/my-alias1 N/A alias N/A AliasName should equal 1 N/A N/A N/A N/A N/A len N/A alias N/A alias aliases N/A N/A has_correct_arn alias N/A alias/my-alias2 N/A alias N/A AliasName should equal 1 N/A N/A N/A N/A N/A len N/A alias N/A alias aliases N/A N/A TargetKeyId alias N/A key_id N/A alias N/A TargetKeyId should equal 3 N/A N/A N/A N/A N/A len aliases should equal 7 N/A mock_kms test__assert_valid_key_id N/A N/A N/A N/A moto.kms.responses _assert_valid_key_id N/A uuid N/A N/A N/A N/A N/A N/A N/A _assert_valid_key_id when called_with not-a-key should throw JSONResponseError N/A N/A N/A N/A N/A N/A N/A _assert_valid_key_id when called_with N/A str N/A N/A uuid uuid4 should_not throw JSONResponseError N/A mock_kms test__assert_default_policy N/A N/A N/A N/A moto.kms.responses _assert_default_policy N/A N/A N/A N/A N/A N/A N/A _assert_default_policy when called_with not-default should throw JSONResponseError N/A N/A N/A N/A N/A N/A N/A _assert_default_policy when called_with default should_not throw JSONResponseError N/A mock_kms