public static final class CommonProjectProps.Builder extends Object
CommonProjectProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CommonProjectProps |
build()
Builds the configured instance.
|
CommonProjectProps.Builder |
withBadge(Boolean value)
Sets the value of Badge
|
CommonProjectProps.Builder |
withBuildScriptAsset(software.amazon.awscdk.assets.Asset value)
Sets the value of BuildScriptAsset
|
CommonProjectProps.Builder |
withBuildScriptAssetEntrypoint(String value)
Sets the value of BuildScriptAssetEntrypoint
|
CommonProjectProps.Builder |
withBuildSpec(Object value)
Sets the value of BuildSpec
|
CommonProjectProps.Builder |
withCacheBucket(software.amazon.awscdk.services.s3.BucketRef value)
Sets the value of CacheBucket
|
CommonProjectProps.Builder |
withCacheDir(String value)
Sets the value of CacheDir
|
CommonProjectProps.Builder |
withDescription(String value)
Sets the value of Description
|
CommonProjectProps.Builder |
withEncryptionKey(software.amazon.awscdk.services.kms.EncryptionKeyRef value)
Sets the value of EncryptionKey
|
CommonProjectProps.Builder |
withEnvironment(BuildEnvironment value)
Sets the value of Environment
|
CommonProjectProps.Builder |
withEnvironmentVariables(Map<String,BuildEnvironmentVariable> value)
Sets the value of EnvironmentVariables
|
CommonProjectProps.Builder |
withProjectName(String value)
Sets the value of ProjectName
|
CommonProjectProps.Builder |
withRole(software.amazon.awscdk.services.iam.Role value)
Sets the value of Role
|
CommonProjectProps.Builder |
withTimeout(Number value)
Sets the value of Timeout
|
public CommonProjectProps.Builder withBadge(@Nullable Boolean value)
value - Indicates whether AWS CodeBuild generates a publicly accessible URL for
your project's build badge. For more information, see Build Badges Sample
in the AWS CodeBuild User Guide.thispublic CommonProjectProps.Builder withBuildScriptAsset(@Nullable software.amazon.awscdk.assets.Asset value)
value - Run a script from an asset as build script
If supplied together with buildSpec, the asset script will be run
_after_ the existing commands in buildspec.
This feature can also be used without a source, to simply run an
arbitrary script in a serverless way.thispublic CommonProjectProps.Builder withBuildScriptAssetEntrypoint(@Nullable String value)
value - The script in the asset to run.thispublic CommonProjectProps.Builder withBuildSpec(@Nullable Object value)
value - Filename or contents of buildspec in JSON format.thispublic CommonProjectProps.Builder withCacheBucket(@Nullable software.amazon.awscdk.services.s3.BucketRef value)
value - Bucket to store cached source artifacts
If not specified, source artifacts will not be cached.thispublic CommonProjectProps.Builder withCacheDir(@Nullable String value)
value - Subdirectory to store cached artifactsthispublic CommonProjectProps.Builder withDescription(@Nullable String value)
value - A description of the project. Use the description to identify the purpose
of the project.thispublic CommonProjectProps.Builder withEncryptionKey(@Nullable software.amazon.awscdk.services.kms.EncryptionKeyRef value)
value - Encryption key to use to read and write artifacts
If not specified, a role will be created.thispublic CommonProjectProps.Builder withEnvironment(@Nullable BuildEnvironment value)
value - Build environment to use for the build.thispublic CommonProjectProps.Builder withEnvironmentVariables(@Nullable Map<String,BuildEnvironmentVariable> value)
value - Additional environment variables to add to the build environment.thispublic CommonProjectProps.Builder withProjectName(@Nullable String value)
value - The physical, human-readable name of the CodeBuild Project.thispublic CommonProjectProps.Builder withRole(@Nullable software.amazon.awscdk.services.iam.Role value)
value - Service Role to assume while running the build.
If not specified, a role will be created.thispublic CommonProjectProps.Builder withTimeout(@Nullable Number value)
value - The number of minutes after which AWS CodeBuild stops the build if it's
not complete. For valid values, see the timeoutInMinutes field in the AWS
CodeBuild User Guide.thispublic CommonProjectProps build()
CommonProjectPropsNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.