@aws-cdk/core#StackProps TypeScript Examples

The following examples show how to use @aws-cdk/core#StackProps. 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: repository-stack.ts    From aws-cross-account-cicd-pipeline with MIT No Attribution 6 votes vote down vote up
constructor(app: App, id: string, props?: StackProps) {

    super(app, id, props);

    new codecommit.Repository(this, 'CodeCommitRepo', {
      repositoryName: `repo-${this.account}`
    });

  }
Example #2
Source File: TestStack.ts    From aws-cdk-webpack-lambda-function with MIT License 6 votes vote down vote up
constructor(scope: Construct, id: string, props?: StackProps) {
    super(scope, id, props);

    // test1
    new WebpackFunction(this, "WebpackFunction", {
      entry: "test/lambda/testFunction.ts",
      config: "test/lambda/webpack.config.js",
    });

    // test2
    new WebpackSingletonFunction(this, "WebpackSingletonFunction", {
      uuid: "be82c13f-a959-4837-91d7-1a3aabb2626a",
      entry: "test/lambda/testFunction.ts",
      config: "test/lambda/webpack.config.js",
    });
  }
Example #3
Source File: cicd-stack.ts    From MDDL with MIT License 6 votes vote down vote up
/**
   * Gets a stack in the given cloud assembly
   * @param cloudAssembly The cloud assembly to get the stack from
   * @param configuration The Stack Configuration to determine the stack name from
   */
  private getStack(
    cloudAssembly: CloudAssembly,
    configuration: StackConfiguration<StackProps>,
  ): CloudFormationStackArtifact {
    return cloudAssembly.getStackByName(
      configuration.props.stackName || configuration.name,
    )
  }