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

  • // 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
  • import * as codestar from '@aws-cdk/aws-codestar';
    import * as s3 from '@aws-cdk/aws-s3'
    
    new codestar.GitHubRepository(this, 'GitHubRepo', {
      owner: 'aws',
      repositoryName: 'aws-cdk',
      accessToken: SecretValue.secretsManager('my-github-token', {
        jsonField: 'token',
      }),
      contentsBucket: s3.Bucket.fromBucketName(this, 'Bucket', 'bucket-name'),
      contentsKey: 'import.zip',
    });
    
    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 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',
        supportsGetObjectRange: true,
        supportsGetObjectPartNumber: true,
    });
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as glue from '@aws-cdk/aws-glue';
    import * as s3 from '@aws-cdk/aws-s3';
    
    declare const bucket: s3.Bucket;
    const s3Code = new glue.S3Code(bucket, 'key');
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples