How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  • import { Stack } from '@aws-cdk/core';
    import { Template } from '@aws-cdk/assertions';
    
    const stack = new Stack(/* ... */);
    // ...
    const template = Template.fromStack(stack);
    
    Docs
  • import * as lambda from '@aws-cdk/aws-lambda';
    import * as s3 from '@aws-cdk/aws-s3';
    import * as s3objectlambda from '@aws-cdk/aws-s3objectlambda';
    import * as cdk from '@aws-cdk/core';
    
    const stack = new cdk.Stack();
    const bucket = new s3.Bucket(stack, 'MyBucket');
    const handler = new lambda.Function(stack, 'MyFunction', {
        runtime: lambda.Runtime.NODEJS_14_X,
        handler: 'index.handler',
        code: lambda.Code.fromAsset('lambda.zip'),
    });
    new s3objectlambda.AccessPoint(stack, 'MyObjectLambda', {
        bucket,
        handler,
        accessPointName: 'my-access-point',
        payload: {
            prop: "value",
        },
    });
    
    Docs
  • import * as path from 'path';
    import * as assets from '@aws-cdk/aws-s3-assets';
    import * as core from '@aws-cdk/core';
    import * as flink from '../lib';
    
    const app = new core.App();
    const stack = new core.Stack(app, 'FlinkAppCodeFromBucketTest');
    
    const asset = new assets.Asset(stack, 'CodeAsset', {
      path: path.join(__dirname, 'code-asset'),
    });
    const bucket = asset.bucket;
    const fileKey = asset.s3ObjectKey;
    
    ///! show
    new flink.Application(stack, 'App', {
      code: flink.ApplicationCode.fromBucket(bucket, fileKey),
      runtime: flink.Runtime.FLINK_1_11,
    });
    ///! hide
    
    app.synth();
    
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as cdk from '@aws-cdk/core';
    
    declare const stackSynthesizer: cdk.StackSynthesizer;
    const nestedStackSynthesizer = new cdk.NestedStackSynthesizer(stackSynthesizer);
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples