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 cdk from '@aws-cdk/core';
    portfolio.constrainCloudFormationParameters(product, {
      rule: {
        ruleName: 'testInstanceType',
        condition: cdk.Fn.conditionEquals(cdk.Fn.ref('Environment'), 'test'),
        assertions: [{
          assert: cdk.Fn.conditionContains(['t2.micro', 't2.small'], cdk.Fn.ref('InstanceType')),
          description: 'For test environment, the instance type should be small',
  • // 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';
    const cfnWaitConditionHandle = new cdk.CfnWaitConditionHandle(this, 'MyCfnWaitConditionHandle');
  • declare const cfnTemplate: cfn_inc.CfnInclude;
    const condition: core.CfnCondition = cfnTemplate.getCondition('MyCondition');
    // mutating the condition
    condition.expression = core.Fn.conditionEquals(1, 2);
  • 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');
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples