Attribute | Value |
---|---|
pk |
Feature#${featureId} |
__typename |
Feature |
pk11 |
Feature#${accountId} |
sk11 |
${title|lowercase} |
pk11 |
Feature#${accountId} |
sk11 |
${updatedAt|timestamp} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function myfunc(options) { | |
const defaultOptions = { | |
min: 0, | |
max: 10, | |
}; | |
const finalOptions = { | |
...defaultOptions, | |
...options, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'source-map-support/register' | |
import { APIGatewayProxyEvent, APIGatewayProxyResult, Context } from "aws-lambda"; | |
let response; | |
export async function lambdaHandler(event: APIGatewayProxyEvent, context: Context): Promise<APIGatewayProxyResult> { | |
try { | |
// const ret = await axios(url); | |
response = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::Serverless-2016-10-31 | |
Description: SAM Template for API Gateway Proxy AppSync | |
Parameters: | |
DomainName: | |
Type: String | |
Stage: | |
Type: String | |
Default: dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as fs from "fs"; | |
import * as yaml from "js-yaml"; | |
import GraphQLTransform from "graphql-transformer-core"; | |
import DynamoDBModelTransformer from "graphql-dynamodb-transformer"; | |
import ModelAuthTransformer from "graphql-auth-transformer"; | |
import ModelConnectionTransformer from "graphql-connection-transformer"; | |
import SearchableModelTransformer from "graphql-elasticsearch-transformer"; | |
import VersionedModelTransformer from "graphql-versioned-transformer"; | |
import FunctionTransformer from "graphql-function-transformer"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { APIGatewayEvent, APIGatewayProxyHandler, Callback, Context } from "aws-lambda"; | |
export function RestHandler( | |
onCreate?: APIGatewayProxyHandler, | |
onUpdate?: APIGatewayProxyHandler, | |
onDelete?: APIGatewayProxyHandler | |
) { | |
return async (event: APIGatewayEvent, context: Context, callback: Callback) => { | |
switch (event.httpMethod) { | |
case "DELETE": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
openvpn-client: | |
image: ghcr.io/wfg/openvpn-client | |
container_name: openvpn-client | |
cap_add: | |
- NET_ADMIN | |
devices: | |
- /dev/net/tun | |
environment: |