@Stability(value=Experimental) public static final class AwsCdkJavaApp.Builder extends Object implements software.amazon.jsii.Builder<AwsCdkJavaApp>
AwsCdkJavaApp.| Modifier and Type | Method and Description |
|---|---|
AwsCdkJavaApp.Builder |
artifactId(String artifactId)
(experimental) The artifactId is generally the name that the project is known by.
|
AwsCdkJavaApp.Builder |
autoApproveOptions(AutoApproveOptions autoApproveOptions)
(experimental) Enable and configure the 'auto approve' workflow.
|
AwsCdkJavaApp.Builder |
autoMergeOptions(AutoMergeOptions autoMergeOptions)
(experimental) Configure options for automatic merging on GitHub.
|
AwsCdkJavaApp |
build() |
AwsCdkJavaApp.Builder |
buildCommand(String buildCommand)
(experimental) A command to execute before synthesis.
|
AwsCdkJavaApp.Builder |
cdkDependencies(List<String> cdkDependencies)
(experimental) Which AWS CDK modules this app uses.
|
AwsCdkJavaApp.Builder |
cdkout(String cdkout)
(experimental) cdk.out directory.
|
AwsCdkJavaApp.Builder |
cdkVersion(String cdkVersion)
(experimental) AWS CDK version to use (you can use semantic versioning).
|
AwsCdkJavaApp.Builder |
clobber(Boolean clobber)
(experimental) Add a `clobber` task which resets the repo to origin.
|
AwsCdkJavaApp.Builder |
compileOptions(MavenCompileOptions compileOptions)
(experimental) Compile options.
|
AwsCdkJavaApp.Builder |
context(Map<String,String> context)
(experimental) Additional context to include in `cdk.json`.
|
static AwsCdkJavaApp.Builder |
create() |
AwsCdkJavaApp.Builder |
deps(List<String> deps)
(experimental) List of runtime dependencies for this project.
|
AwsCdkJavaApp.Builder |
description(String description)
(experimental) Description of a project is always good.
|
AwsCdkJavaApp.Builder |
devContainer(Boolean devContainer)
(experimental) Add a VSCode development environment (used for GitHub Codespaces).
|
AwsCdkJavaApp.Builder |
distdir(String distdir)
(experimental) Final artifact output directory.
|
AwsCdkJavaApp.Builder |
featureFlags(Boolean featureFlags)
(experimental) Include all feature flags in cdk.json.
|
AwsCdkJavaApp.Builder |
github(Boolean github)
(experimental) Enable GitHub integration.
|
AwsCdkJavaApp.Builder |
githubOptions(GitHubOptions githubOptions)
(experimental) Options for GitHub integration.
|
AwsCdkJavaApp.Builder |
gitpod(Boolean gitpod)
(experimental) Add a Gitpod development environment.
|
AwsCdkJavaApp.Builder |
groupId(String groupId)
(experimental) This is generally unique amongst an organization or a project.
|
AwsCdkJavaApp.Builder |
junit(Boolean junit)
(experimental) Include junit tests.
|
AwsCdkJavaApp.Builder |
junitOptions(JunitOptions junitOptions)
(experimental) junit options.
|
AwsCdkJavaApp.Builder |
logging(LoggerOptions logging)
(experimental) Configure logging options such as verbosity.
|
AwsCdkJavaApp.Builder |
mainClass(String mainClass)
(experimental) The name of the Java class with the static `main()` method.
|
AwsCdkJavaApp.Builder |
mergify(Boolean mergify)
Deprecated.
use `githubOptions.mergify` instead
|
AwsCdkJavaApp.Builder |
mergifyOptions(MergifyOptions mergifyOptions)
Deprecated.
use `githubOptions.mergifyOptions` instead
|
AwsCdkJavaApp.Builder |
name(String name)
(experimental) This is the name of your project.
|
AwsCdkJavaApp.Builder |
outdir(String outdir)
(experimental) The root directory of the project.
|
AwsCdkJavaApp.Builder |
packaging(String packaging)
(experimental) Project packaging format.
|
AwsCdkJavaApp.Builder |
packagingOptions(MavenPackagingOptions packagingOptions)
(experimental) Packaging options.
|
AwsCdkJavaApp.Builder |
parent(Project parent)
(experimental) The parent project, if this project is part of a bigger project.
|
AwsCdkJavaApp.Builder |
projectType(ProjectType projectType)
Deprecated.
no longer supported at the base project level
|
AwsCdkJavaApp.Builder |
projenCommand(String projenCommand)
(experimental) The shell command to use in order to run the projen CLI.
|
AwsCdkJavaApp.Builder |
projenrcJava(Boolean projenrcJava)
(experimental) Use projenrc in java.
|
AwsCdkJavaApp.Builder |
projenrcJavaOptions(ProjenrcOptions projenrcJavaOptions)
(experimental) Options related to projenrc in java.
|
AwsCdkJavaApp.Builder |
projenrcJson(Boolean projenrcJson)
(experimental) Generate (once) .projenrc.json (in JSON).
|
AwsCdkJavaApp.Builder |
projenrcJsonOptions(ProjenrcOptions projenrcJsonOptions)
(experimental) Options for .projenrc.json.
|
AwsCdkJavaApp.Builder |
readme(SampleReadmeProps readme)
(experimental) The README setup.
|
AwsCdkJavaApp.Builder |
requireApproval(ApprovalLevel requireApproval)
(experimental) To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them.
|
AwsCdkJavaApp.Builder |
sample(Boolean sample)
(experimental) Include sample code and test if the relevant directories don't exist.
|
AwsCdkJavaApp.Builder |
sampleJavaPackage(String sampleJavaPackage)
(experimental) The java package to use for the code sample.
|
AwsCdkJavaApp.Builder |
stale(Boolean stale)
(experimental) Auto-close of stale issues and pull request.
|
AwsCdkJavaApp.Builder |
staleOptions(StaleOptions staleOptions)
(experimental) Auto-close stale issues and pull requests.
|
AwsCdkJavaApp.Builder |
testDeps(List<String> testDeps)
(experimental) List of test dependencies for this project.
|
AwsCdkJavaApp.Builder |
url(String url)
(experimental) The URL, like the name, is not required.
|
AwsCdkJavaApp.Builder |
version(String version)
(experimental) This is the last piece of the naming puzzle.
|
AwsCdkJavaApp.Builder |
vscode(Boolean vscode)
(experimental) Enable VSCode integration.
|
AwsCdkJavaApp.Builder |
watchExcludes(List<String> watchExcludes)
(experimental) Glob patterns to exclude from `cdk watch`.
|
AwsCdkJavaApp.Builder |
watchIncludes(List<String> watchIncludes)
(experimental) Glob patterns to include in `cdk watch`.
|
@Stability(value=Experimental) public static AwsCdkJavaApp.Builder create()
AwsCdkJavaApp.Builder.@Stability(value=Experimental) public AwsCdkJavaApp.Builder name(String name)
Default: $BASEDIR
name - This is the name of your project. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder logging(LoggerOptions logging)
Default: {}
logging - Configure logging options such as verbosity. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder outdir(String outdir)
Relative to this directory, all files are synthesized.
If this project has a parent, this directory is relative to the parent directory and it cannot be the same as the parent or any of it's other sub-projects.
Default: "."
outdir - The root directory of the project. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder parent(Project parent)
parent - The parent project, if this project is part of a bigger project. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder projenCommand(String projenCommand)
Can be used to customize in special environments.
Default: "npx projen"
projenCommand - The shell command to use in order to run the projen CLI. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder projenrcJson(Boolean projenrcJson)
Default: false
projenrcJson - Generate (once) .projenrc.json (in JSON). Set to `false` in order to disable .projenrc.json generation. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder projenrcJsonOptions(ProjenrcOptions projenrcJsonOptions)
Default: - default options
projenrcJsonOptions - Options for .projenrc.json. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder autoApproveOptions(AutoApproveOptions autoApproveOptions)
Default: - auto approve is disabled
autoApproveOptions - Enable and configure the 'auto approve' workflow. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder autoMergeOptions(AutoMergeOptions autoMergeOptions)
Has no effect if
github.mergify is set to false.
Default: - see defaults in `AutoMergeOptions`
autoMergeOptions - Configure options for automatic merging on GitHub. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder clobber(Boolean clobber)
Default: true
clobber - Add a `clobber` task which resets the repo to origin. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder devContainer(Boolean devContainer)
Default: false
devContainer - Add a VSCode development environment (used for GitHub Codespaces). This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder github(Boolean github)
Enabled by default for root projects. Disabled for non-root projects.
Default: true
github - Enable GitHub integration. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder githubOptions(GitHubOptions githubOptions)
Default: - see GitHubOptions
githubOptions - Options for GitHub integration. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder gitpod(Boolean gitpod)
Default: false
gitpod - Add a Gitpod development environment. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkJavaApp.Builder mergify(Boolean mergify)
Default: true
mergify - Whether mergify should be enabled on this repository or not. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkJavaApp.Builder mergifyOptions(MergifyOptions mergifyOptions)
Default: - default options
mergifyOptions - Options for mergify. This parameter is required.this@Stability(value=Deprecated) @Deprecated public AwsCdkJavaApp.Builder projectType(ProjectType projectType)
Default: ProjectType.UNKNOWN
projectType - Which type of project this is (library/app). This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder readme(SampleReadmeProps readme)
Default: - { filename: 'README.md', contents: '# replace this' }
Example:
// Example automatically generated from non-compiling source. May contain errors.
"{ filename: 'readme.md', contents: '# title' }"
readme - The README setup. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder stale(Boolean stale)
See staleOptions for options.
Default: true
stale - Auto-close of stale issues and pull request. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder staleOptions(StaleOptions staleOptions)
To disable set stale to false.
Default: - see defaults in `StaleOptions`
staleOptions - Auto-close stale issues and pull requests. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder vscode(Boolean vscode)
Enabled by default for root projects. Disabled for non-root projects.
Default: true
vscode - Enable VSCode integration. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder artifactId(String artifactId)
Although the groupId is important, people within the group will rarely mention the groupId in discussion (they are often all be the same ID, such as the MojoHaus project groupId: org.codehaus.mojo). It, along with the groupId, creates a key that separates this project from every other project in the world (at least, it should :) ). Along with the groupId, the artifactId fully defines the artifact's living quarters within the repository. In the case of the above project, my-project lives in $M2_REPO/org/codehaus/mojo/my-project.
Default: "my-app"
artifactId - The artifactId is generally the name that the project is known by. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder groupId(String groupId)
For example, all core Maven artifacts do (well, should) live under the groupId org.apache.maven. Group ID's do not necessarily use the dot notation, for example, the junit project. Note that the dot-notated groupId does not have to correspond to the package structure that the project contains. It is, however, a good practice to follow. When stored within a repository, the group acts much like the Java packaging structure does in an operating system. The dots are replaced by OS specific directory separators (such as '/' in Unix) which becomes a relative directory structure from the base repository. In the example given, the org.codehaus.mojo group lives within the directory $M2_REPO/org/codehaus/mojo.
Default: "org.acme"
groupId - This is generally unique amongst an organization or a project. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder version(String version)
groupId:artifactId denotes a single project but they cannot delineate which incarnation of that project we are talking about. Do we want the junit:junit of 2018 (version 4.12), or of 2007 (version 3.8.2)? In short: code changes, those changes should be versioned, and this element keeps those versions in line. It is also used within an artifact's repository to separate versions from each other. my-project version 1.0 files live in the directory structure $M2_REPO/org/codehaus/mojo/my-project/1.0.
Default: "0.1.0"
version - This is the last piece of the naming puzzle. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder description(String description)
Although this should not replace formal documentation, a quick comment to any readers of the POM is always helpful.
Default: undefined
description - Description of a project is always good. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder packaging(String packaging)
Default: "jar"
packaging - Project packaging format. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder url(String url)
This is a nice gesture for projects users, however, so that they know where the project lives.
Default: undefined
url - The URL, like the name, is not required. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder compileOptions(MavenCompileOptions compileOptions)
Default: - defaults
compileOptions - Compile options. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder deps(List<String> deps)
Dependencies use the format: <groupId>/<artifactId>@<semver>
Additional dependencies can be added via project.addDependency().
Default: []
deps - List of runtime dependencies for this project. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder distdir(String distdir)
Default: "dist/java"
distdir - Final artifact output directory. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder junit(Boolean junit)
Default: true
junit - Include junit tests. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder junitOptions(JunitOptions junitOptions)
Default: - defaults
junitOptions - junit options. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder packagingOptions(MavenPackagingOptions packagingOptions)
Default: - defaults
packagingOptions - Packaging options. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder projenrcJava(Boolean projenrcJava)
This will install projen as a java dependency and will add a synth task which
will compile & execute main() from src/main/java/projenrc.java.
Default: true
projenrcJava - Use projenrc in java. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder projenrcJavaOptions(ProjenrcOptions projenrcJavaOptions)
Default: - default options
projenrcJavaOptions - Options related to projenrc in java. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder testDeps(List<String> testDeps)
Dependencies use the format: <groupId>/<artifactId>@<semver>
Additional dependencies can be added via project.addTestDependency().
Default: []
testDeps - List of test dependencies for this project. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder sample(Boolean sample)
sample - Include sample code and test if the relevant directories don't exist. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder sampleJavaPackage(String sampleJavaPackage)
Default: "org.acme"
sampleJavaPackage - The java package to use for the code sample. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder buildCommand(String buildCommand)
This command will be called when
running cdk synth or when cdk watch identifies a change in your source
code before redeployment.
Default: - no build command
buildCommand - A command to execute before synthesis. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder cdkout(String cdkout)
Default: "cdk.out"
cdkout - cdk.out directory. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder context(Map<String,String> context)
Default: - no additional context
context - Additional context to include in `cdk.json`. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder featureFlags(Boolean featureFlags)
Default: true
featureFlags - Include all feature flags in cdk.json. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder requireApproval(ApprovalLevel requireApproval)
Default: ApprovalLevel.BROADENING
requireApproval - To protect you against unintended changes that affect your security posture, the AWS CDK Toolkit prompts you to approve security-related changes before deploying them. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder watchExcludes(List<String> watchExcludes)
Default: []
watchExcludes - Glob patterns to exclude from `cdk watch`. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder watchIncludes(List<String> watchIncludes)
Default: []
watchIncludes - Glob patterns to include in `cdk watch`. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder cdkVersion(String cdkVersion)
Default: "^1.130.0"
cdkVersion - AWS CDK version to use (you can use semantic versioning). This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder mainClass(String mainClass)
This method
should call app.synth() on the CDK app.
Default: "org.acme.App"
mainClass - The name of the Java class with the static `main()` method. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp.Builder cdkDependencies(List<String> cdkDependencies)
The core module is included by
default and you can add additional modules here by stating only the package
name (e.g. aws-lambda).
cdkDependencies - Which AWS CDK modules this app uses. This parameter is required.this@Stability(value=Experimental) public AwsCdkJavaApp build()
build in interface software.amazon.jsii.Builder<AwsCdkJavaApp>Copyright © 2021. All rights reserved.