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

  • const canary = new synthetics.Canary(this, 'MyCanary', {
      schedule: synthetics.Schedule.rate(Duration.minutes(5)),
      test: synthetics.Test.custom({
        code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')),
        handler: 'index.handler',
      }),
      runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_1,
      environmentVariables: {
        stage: 'prod',
      },
    });
    
    Docs
    0
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as synthetics from '@aws-cdk/aws-synthetics';
    
    const cfnCanary = new synthetics.CfnCanary(this, 'MyCfnCanary', {
      artifactS3Location: 'artifactS3Location',
      code: {
        handler: 'handler',
    
        // the properties below are optional
        s3Bucket: 's3Bucket',
        s3Key: 's3Key',
        s3ObjectVersion: 's3ObjectVersion',
        script: 'script',
      },
      executionRoleArn: 'executionRoleArn',
      name: 'name',
      runtimeVersion: 'runtimeVersion',
      schedule: {
        expression: 'expression',
    
        // the properties below are optional
        durationInSeconds: 'durationInSeconds',
      },
      startCanaryAfterCreation: false,
    
      // the properties below are optional
      artifactConfig: {
        s3Encryption: {
          encryptionMode: 'encryptionMode',
          kmsKeyArn: 'kmsKeyArn',
        },
      },
      failureRetentionPeriod: 123,
      runConfig: {
        activeTracing: false,
        environmentVariables: {
          environmentVariablesKey: 'environmentVariables',
        },
        memoryInMb: 123,
        timeoutInSeconds: 123,
      },
      successRetentionPeriod: 123,
      tags: [{
        key: 'key',
        value: 'value',
      }],
      visualReference: {
        baseCanaryRunId: 'baseCanaryRunId',
    
        // the properties below are optional
        baseScreenshots: [{
          screenshotName: 'screenshotName',
    
          // the properties below are optional
          ignoreCoordinates: ['ignoreCoordinates'],
        }],
      },
      vpcConfig: {
        securityGroupIds: ['securityGroupIds'],
        subnetIds: ['subnetIds'],
    
        // the properties below are optional
        vpcId: 'vpcId',
      },
    });
    
    Docs
    0
  • // 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
    0
  • const canary = new synthetics.Canary(this, 'MyCanary', {
      schedule: synthetics.Schedule.rate(Duration.minutes(5)),
      test: synthetics.Test.custom({
        code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')),
        handler: 'index.handler',
      }),
      runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_1,
      environmentVariables: {
        stage: 'prod',
      },
    });
    
    Docs
    0
  • const canary = new synthetics.Canary(this, 'MyCanary', {
      schedule: synthetics.Schedule.rate(Duration.minutes(5)),
      test: synthetics.Test.custom({
        code: synthetics.Code.fromAsset(path.join(__dirname, 'canary')),
        handler: 'index.handler',
      }),
      runtime: synthetics.Runtime.SYNTHETICS_NODEJS_PUPPETEER_3_1,
      environmentVariables: {
        stage: 'prod',
      },
    });
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples