How to use the @aws-cdk/region-info.RegionInfo.regions function in @aws-cdk/region-info

To help you get started, we’ve selected a few @aws-cdk/region-info examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / aws-cdk / lib / api / cxapp / stacks.ts View on Github external
function _makeCdkMetadataAvailableCondition() {
  return _fnOr(RegionInfo.regions
    .filter(ri => ri.cdkMetadataResourceAvailable)
    .map(ri => ({ 'Fn::Equals': [{ Ref: 'AWS::Region' }, ri.name] })));
}

@aws-cdk/region-info

AWS region information, such as service principal names

Apache-2.0
Latest version published 3 days ago

Package Health Score

98 / 100
Full package analysis