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 regionInfo from '@aws-cdk/region-info';
    
    const codeDeployPrincipal = regionInfo.Fact.find('us-east-1', regionInfo.FactName.servicePrincipal('codedeploy.amazonaws.com'));
    // => codedeploy.us-east-1.amazonaws.com
    
    const staticWebsite = regionInfo.Fact.find('ap-northeast-1', regionInfo.FactName.S3_STATIC_WEBSITE_ENDPOINT);
    // => s3-website-ap-northeast-1.amazonaws.com
    
    Docs
  • regionInfo.Fact.register({
      region: 'us-east-1',
      name: regionInfo.FactName.servicePrincipal('service.amazonaws.com'),
      value: 'the-correct-principal.amazonaws.com',
    }, true /* Allow overriding information */);
    
    Docs
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as iam from '@aws-cdk/aws-iam';
    import * as kms from '@aws-cdk/aws-kms';
    
    declare const principal: iam.IPrincipal;
    const viaServicePrincipal = new kms.ViaServicePrincipal('serviceName', /* all optional props */ principal);
    
    Docs
  • import { RegionInfo } from '@aws-cdk/region-info';
    
    // Get the information for "eu-west-1":
    const region = RegionInfo.get('eu-west-1');
    
    // Access attributes:
    region.s3StaticWebsiteEndpoint; // s3-website-eu-west-1.amazonaws.com
    region.servicePrincipal('logs.amazonaws.com'); // logs.eu-west-1.amazonaws.com
    
    Docs
  • regionInfo.Fact.register({
      region: 'bermuda-triangle-1',
      name: regionInfo.FactName.servicePrincipal('s3.amazonaws.com'),
      value: 's3-website.bermuda-triangle-1.nowhere.com',
    });
    
    Docs
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples