Skip to content

Instantly share code, notes, and snippets.

View vidanov's full-sized avatar

Alexey Vidanov vidanov

View GitHub Profile
@vidanov
vidanov / step-functions.md
Last active November 28, 2021 10:16
AWS Step functions. InputPath, OutputPath, ResultPath

AWS Step functions

InputPath, OutputPath, ResultPath

  • InputPath -> the part of the original JSON payload to take to the step
  • OutPutPath -> the part of the original JSON payload to return after the step is completed
  • ResultPath -> here you can define a node to store the output you create in the step.

Please note "output" node is visible in the step function logs and here in the doc, but you do not have it in the function input. It means { "output": "1.05" } will be just

/* make button smaller */
.ot-floating-button__front svg {transform:scale(0.6); -webkit-transform:scale(0.6); -moz-transform:scale(0.6); -ms-transform:scale(0.6); -o-transform:scale(0.6); margin-left:3px !important;}
.ot-floating-button__back svg {transform:scale(0.7); -webkit-transform:scale(0.7); -moz-transform:scale(0.7); -ms-transform:scale(0.7); -o-transform:scale(0.7); margin-left:3px !important;}
#ot-sdk-btn-floating.ot-floating-button {width: 35px !important; height: 35px !important; margin-left:3px !important; margin-bottom: 35px !important;}
.ot-floating-button__close,
.ot-floating-button__open {padding: 0 !important; line-height:0 !important;}
#ot-sdk-btn-floating .ot-floating-button__front, #ot-sdk-btn-floating .ot-floating-button__back {border-radius:2px !important;}
/* make button smaller */
.ot-floating-button__front svg {transform:scale(0.6); -webkit-transform:scale(0.6); -moz-transform:scale(0.6); -ms-transform:scale(0.6); -o-transform:scale(0.6); margin-left:3px !important;}
.ot-floating-button__back svg {transform:scale(0.7); -webkit-transform:scale(0.7); -moz-transform:scale(0.7); -ms-transform:scale(0.7); -o-transform:scale(0.7); margin-left:3px !important;}
#ot-sdk-btn-floating.ot-floating-button {width: 35px !important; height: 35px !important; margin-left:3px !important; margin-bottom: 35px !important;}
.ot-floating-button__close,
.ot-floating-button__open {padding: 0 !important; line-height:0 !important;}
#ot-sdk-btn-floating .ot-floating-button__front, #ot-sdk-btn-floating .ot-floating-button__back {border-radius:2px !important;}
// This tutorial story is intended to represent the breadth of what the framework can do.
@start
*say
Welcome to the Skill Flow Builder. Let's get to know each other.
What is your name?
*show
title:'Skill Flow Builder'
subtitle:'Welcome to Skill Flow Builder!'
*then
slot playerName as 'AMAZON.US_FIRST_NAME'
/* eslint-disable func-names */
/* eslint-disable no-console */
const Alexa = require('ask-sdk-core');
const GetNewFactHandler = {
canHandle(handlerInput) {
const request = handlerInput.requestEnvelope.request;
return request.type === 'LaunchRequest'
|| (request.type === 'IntentRequest');
'use strict';
const Alexa = require('ask-sdk');
const AWS = require('aws-sdk');
const s3SigV4Client = new AWS.S3({
signatureVersion: 'v4'
});
{
"interactionModel": {
"languageModel": {
"invocationName": "personality quiz",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
'use strict';
const Alexa = require('ask-sdk');
const Util = require('util.js');
/***********
Data: Customize the data below as you please.
***********/
const SKILL_NAME = "Personality Quiz";
This file has been truncated, but you can view the full file.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BUILT_IN_INTENT_UTTERANCES = {
"en": {
"AMAZON.CancelIntent": [
"cancel",
"cancel alexa",
"cancel cancel cancel",
"cancel no",
"cancel that",