@aws-cdk/core#CfnParameter TypeScript Examples

The following examples show how to use @aws-cdk/core#CfnParameter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: stack.ts    From keycloak-on-aws with Apache License 2.0 6 votes vote down vote up
private _setParamGroups(): void {
    if (!this.templateOptions.metadata) { this.templateOptions.metadata = {}; }
    const mkgrp = (label: string, params: CfnParameter[]) => {
      return {
        Label: { default: label },
        Parameters: params.map(p => {
          return p ? p.logicalId : '';
        }).filter(id => id),
      };
    };
    this.templateOptions.metadata['AWS::CloudFormation::Interface'] = {
      ParameterGroups: Object.keys(this._paramGroup).map(key => mkgrp(key, this._paramGroup[key]) ),
    };
  }
Example #2
Source File: stack.ts    From keycloak-on-aws with Apache License 2.0 5 votes vote down vote up
protected makeParam(id: string, props?: CfnParameterProps): CfnParameter { return new CfnParameter(this, id, props); }
Example #3
Source File: stack.ts    From keycloak-on-aws with Apache License 2.0 5 votes vote down vote up
protected addGroupParam(props: { [key: string]: CfnParameter[]}): void {
    for (const key of Object.keys(props)) {
      const params = props[key];
      this._paramGroup[key] = params.concat(this._paramGroup[key] ?? []);
    }
    this._setParamGroups();
  }
Example #4
Source File: stack.ts    From keycloak-on-aws with Apache License 2.0 5 votes vote down vote up
private _paramGroup: { [grpname: string]: CfnParameter[]} = {}