ask_amy.cli package

Submodules

ask_amy.cli.cli_deploy module

class ask_amy.cli.cli_deploy.DeployCLI

Bases: object

cloudwatch_get_log_events = ('aws', '--output', 'json', 'logs', 'get-log-events', '--log-group-name', 0, '--log-stream-name', 1, '--next-token', 2)
cloudwatch_latest_log_stream = ('aws', '--output', 'json', 'logs', 'describe-log-streams', '--log-group-name', 0, '--order-by', 'LastEventTime')
copy_skill_to_dist(source_dir, destination_dir)
create_lambda(config_file_name)
create_role(role_name)
create_template(skill_name, aws_role='', intent_schema_nm=None)
deploy_lambda(config_file_name)
iam_attach_role_policy = ('aws', '--output', 'json', 'iam', 'attach-role-policy', '--role-name', 0, '--policy-arn', 1)
iam_create_role = ('aws', '--output', 'json', 'iam', 'create-role', '--role-name', 0, '--assume-role-policy-document', 1)
install_ask_amy(destination_dir, source_dir=None)
install_ask_amy_for_upload = ('pip', 'install', '--upgrade', 'ask_amy', '-t', 0)
lamabda_update_function = ('aws', '--output', 'json', 'lambda', 'update-function-code', '--region', 0, '--function-name', 1, '--zip-file', 2, '--profile', 3)
lambda_add_trigger = ('aws', '--output', 'json', 'lambda', 'add-permission', '--function-name', 0, '--statement-id', 'alexa_trigger', '--action', 'lambda:InvokeFunction', '--principal', 'alexa-appkit.amazon.com')
lambda_create_function = ('aws', '--output', 'json', 'lambda', 'create-function', '--function-name', 0, '--runtime', 1, '--role', 2, '--handler', 3, '--description', 4, '--timeout', 5, '--memory-size', 6, '--zip-file', 7)
latest_log_stream_for_log_group(log_group_name)
load_json_file(config_file_name)
log(log_group_name, log_stream_name=None, next_forward_token=None)
log_tail(log_group_name)
make_zipfile(output_filename, source_dir)
module_path()
process_args(arg_tuple, *args)
run(arg_list, *args)
stage_to_dist(config_file_name)

ask_amy.cli.command_line module

class ask_amy.cli.command_line.AMYCLI

Bases: object

COMMANDS = ['help', 'deploy_lambda', 'create_lambda', 'create_role', 'create_template', 'logs']
create_lambda_cmd(args)
create_role_cmd(args)
create_template_cmd(args)
deploy_lambda_cmd(args)
execute_command(method_name, args)
logs_cmd(args)
parse_command(args)
ask_amy.cli.command_line.main()

Module contents