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 * as cloudformation from '@aws-cdk/aws-cloudformation';
    import * as lambda from '@aws-cdk/aws-lambda';
    declare const myFunction: lambda.Function;
    
    // invoke an AWS Lambda function when a lifecycle event occurs:
    const provider = cloudformation.CustomResourceProvider.fromLambda(myFunction);
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as s3 from '@aws-cdk/aws-s3';
    import * as synthetics from '@aws-cdk/aws-synthetics';
    
    declare const bucket: s3.Bucket;
    const s3Code = new synthetics.S3Code(bucket, 'key', /* all optional props */ 'objectVersion');
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as assets from '@aws-cdk/assets';
    import * as iam from '@aws-cdk/aws-iam';
    import * as synthetics from '@aws-cdk/aws-synthetics';
    import * as cdk from '@aws-cdk/core';
    
    declare const dockerImage: cdk.DockerImage;
    declare const grantable: iam.IGrantable;
    declare const localBundling: cdk.ILocalBundling;
    const assetCode = new synthetics.AssetCode('assetPath', /* all optional props */ {
      assetHash: 'assetHash',
      assetHashType: cdk.AssetHashType.SOURCE,
      bundling: {
        image: dockerImage,
    
        // the properties below are optional
        command: ['command'],
        entrypoint: ['entrypoint'],
        environment: {
          environmentKey: 'environment',
        },
        local: localBundling,
        outputType: cdk.BundlingOutput.ARCHIVED,
        securityOpt: 'securityOpt',
        user: 'user',
        volumes: [{
          containerPath: 'containerPath',
          hostPath: 'hostPath',
    
          // the properties below are optional
          consistency: cdk.DockerVolumeConsistency.CONSISTENT,
        }],
        workingDirectory: 'workingDirectory',
      },
      exclude: ['exclude'],
      follow: assets.FollowMode.NEVER,
      followSymlinks: cdk.SymlinkFollowMode.NEVER,
      ignoreMode: cdk.IgnoreMode.GLOB,
      readers: [grantable],
      sourceHash: 'sourceHash',
    });
    
    Docs
  • import * as cloudformation from '@aws-cdk/aws-cloudformation';
    import * as sns from '@aws-cdk/aws-sns';
    declare const myTopic: sns.Topic;
    
    // publish lifecycle events to an SNS topic:
    const provider = cloudformation.CustomResourceProvider.fromTopic(myTopic);
    
    Docs
  • import * as custom_resources from '@aws-cdk/custom-resources';
    import * as lambda from '@aws-cdk/aws-lambda';
    import { Stack } from '@aws-cdk/core';
    declare const myOnEventLambda: lambda.Function;
    declare const myIsCompleteLambda: lambda.Function;
    const stack = new Stack();
    
    const provider = new custom_resources.Provider(stack, 'myProvider', {
       onEventHandler: myOnEventLambda,
       isCompleteHandler: myIsCompleteLambda, // optional
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples