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 parentTemplate = new cfn_inc.CfnInclude(this, 'ParentStack', {
      templateFile: 'path/to/my-parent-template.json',
      loadNestedStacks: {
        'ChildStack': {
          templateFile: 'path/to/my-nested-template.json',
        },
      },
    });
    
    Docs
    0
  • import { Construct } from 'constructs';
    import * as cfn_inc from '@aws-cdk/cloudformation-include';
    import * as path from 'path';
    
    export class MyConstruct extends Construct {
      constructor(scope: Construct, id: string) {
        super(scope, id);
    
        // include a template inside the Construct
        new cfn_inc.CfnInclude(this, 'MyConstruct', {
          templateFile: path.join(__dirname, 'my-template.json'),
          preserveLogicalIds: false, // <--- !!!
        });
      }
    }
    
    Docs
    0
  • const cfnTemplate = new cfn_inc.CfnInclude(this, 'Template', {
      templateFile: 'my-template.json',
    });
    
    Docs
    0
  • declare const cfnTemplate: cfn_inc.CfnInclude;
    const rule: core.CfnRule = cfnTemplate.getRule('MyRule');
    
    // mutating the rule
    declare const myParameter: core.CfnParameter;
    rule.addAssertion(core.Fn.conditionContains(['m1.small'], myParameter.valueAsString),
      'MyParameter has to be m1.small');
    
    Docs
    0
  •  // assume the template contains an AWS::S3::Bucket with logical ID 'Bucket'
     const cfnBucket = cfnTemplate.getResource('Bucket') as s3.CfnBucket;
     // cfnBucket is of type s3.CfnBucket
    
    Docs
    0
  • declare const cfnTemplate: cfn_inc.CfnInclude;
    const hook: core.CfnHook = cfnTemplate.getHook('MyOutput');
    
    // mutating the hook
    declare const myRole: iam.Role;
    const codeDeployHook = hook as core.CfnCodeDeployBlueGreenHook;
    codeDeployHook.serviceRole = myRole.roleArn;
    
    Docs
    0
  • declare const parentTemplate: cfn_inc.CfnInclude;
    
    const includedChildStack = parentTemplate.getNestedStack('ChildStack');
    const childStack: core.NestedStack = includedChildStack.stack;
    const childTemplate: cfn_inc.CfnInclude = includedChildStack.includedTemplate;
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples