@Stability(value=Experimental) public static final class CdkPipelineProps.Builder extends Object implements software.amazon.jsii.Builder<CdkPipelineProps>
CdkPipelineProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public CdkPipelineProps.Builder cloudAssemblyArtifact(Artifact cloudAssemblyArtifact)
CdkPipelineProps.getCloudAssemblyArtifact()cloudAssemblyArtifact - The artifact you have defined to be the artifact to hold the cloudAssemblyArtifact for the synth action. This parameter is required.this@Stability(value=Experimental) public CdkPipelineProps.Builder assetBuildSpec(BuildSpec assetBuildSpec)
CdkPipelineProps.getAssetBuildSpec()assetBuildSpec - Custom BuildSpec that is merged with generated one (for asset publishing actions).this@Stability(value=Experimental) public CdkPipelineProps.Builder assetPreInstallCommands(List<String> assetPreInstallCommands)
CdkPipelineProps.getAssetPreInstallCommands()assetPreInstallCommands - Additional commands to run before installing cdk-assets during the asset publishing step Use this to setup proxies or npm mirrors.this@Stability(value=Experimental) public CdkPipelineProps.Builder cdkCliVersion(String cdkCliVersion)
CdkPipelineProps.getCdkCliVersion()cdkCliVersion - CDK CLI version to use in pipeline.
Some Actions in the pipeline will download and run a version of the CDK
CLI. Specify the version here.this@Stability(value=Experimental) public CdkPipelineProps.Builder codePipeline(Pipeline codePipeline)
CdkPipelineProps.getCodePipeline()codePipeline - Existing CodePipeline to add deployment stages to.
Use this if you want more control over the CodePipeline that gets created.
You can choose to not pass this value, in which case a new CodePipeline is
created with default settings.
If you pass an existing CodePipeline, it should should have been created
with restartExecutionOnUpdate: true.
[disable-awslint:ref-via-interface]
this@Stability(value=Experimental) public CdkPipelineProps.Builder crossAccountKeys(Boolean crossAccountKeys)
CdkPipelineProps.getCrossAccountKeys()crossAccountKeys - Create KMS keys for cross-account deployments.
This controls whether the pipeline is enabled for cross-account deployments.
Can only be set if codePipeline is not set.
By default cross-account deployments are enabled, but this feature requires that KMS Customer Master Keys are created which have a cost of $1/month.
If you do not need cross-account deployments, you can set this to false to
not create those keys and save on that cost (the artifact bucket will be
encrypted with an AWS-managed key). However, cross-account deployments will
no longer be possible.
this@Stability(value=Experimental) public CdkPipelineProps.Builder dockerCredentials(List<? extends DockerCredential> dockerCredentials)
CdkPipelineProps.getDockerCredentials()dockerCredentials - A list of credentials used to authenticate to Docker registries.
Specify any credentials necessary within the pipeline to build, synth, update, or publish assets.this@Stability(value=Experimental) public CdkPipelineProps.Builder pipelineName(String pipelineName)
CdkPipelineProps.getPipelineName()pipelineName - Name of the pipeline.
Can only be set if codePipeline is not set.this@Stability(value=Experimental) public CdkPipelineProps.Builder selfMutating(Boolean selfMutating)
CdkPipelineProps.getSelfMutating()selfMutating - Whether the pipeline will update itself.
This needs to be set to true to allow the pipeline to reconfigure
itself when assets or stages are being added to it, and true is the
recommended setting.
You can temporarily set this to false while you are iterating
on the pipeline itself and prefer to deploy changes using cdk deploy.
this@Stability(value=Experimental) public CdkPipelineProps.Builder selfMutationBuildSpec(BuildSpec selfMutationBuildSpec)
CdkPipelineProps.getSelfMutationBuildSpec()selfMutationBuildSpec - Custom BuildSpec that is merged with generated one (for self-mutation stage).this@Stability(value=Experimental) public CdkPipelineProps.Builder singlePublisherPerType(Boolean singlePublisherPerType)
CdkPipelineProps.getSinglePublisherPerType()singlePublisherPerType - Whether this pipeline creates one asset upload action per asset type or one asset upload per asset.this@Stability(value=Experimental) public CdkPipelineProps.Builder sourceAction(IAction sourceAction)
CdkPipelineProps.getSourceAction()sourceAction - The CodePipeline action used to retrieve the CDK app's source.this@Stability(value=Experimental) public CdkPipelineProps.Builder subnetSelection(SubnetSelection subnetSelection)
CdkPipelineProps.getSubnetSelection()subnetSelection - Which subnets to use.
Only used if 'vpc' is supplied.this@Stability(value=Experimental) public CdkPipelineProps.Builder supportDockerAssets(Boolean supportDockerAssets)
CdkPipelineProps.getSupportDockerAssets()supportDockerAssets - Whether the pipeline needs to build Docker images in the UpdatePipeline stage.
If the UpdatePipeline stage tries to build a Docker image and this flag is not
set to true, the build step will run in non-privileged mode and consequently
will fail with a message like:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
This flag has an effect only if selfMutating is also true.
this@Stability(value=Experimental) public CdkPipelineProps.Builder synthAction(IAction synthAction)
CdkPipelineProps.getSynthAction()synthAction - The CodePipeline action build and synthesis step of the CDK app.this@Stability(value=Experimental) public CdkPipelineProps.Builder vpc(IVpc vpc)
CdkPipelineProps.getVpc()vpc - The VPC where to execute the CdkPipeline actions.this@Stability(value=Experimental) public CdkPipelineProps build()
build in interface software.amazon.jsii.Builder<CdkPipelineProps>CdkPipelinePropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.