SimpleSynthActionProps¶
-
class
aws_cdk.pipelines.
SimpleSynthActionProps
(*, cloud_assembly_artifact, source_artifact, action_name=None, additional_artifacts=None, copy_environment_variables=None, environment=None, environment_variables=None, project_name=None, role_policy_statements=None, subdirectory=None, subnet_selection=None, vpc=None, synth_command, build_command=None, build_commands=None, install_command=None, install_commands=None, test_commands=None)¶ Bases:
aws_cdk.pipelines.SimpleSynthOptions
(experimental) Construction props for SimpleSynthAction.
- Parameters
cloud_assembly_artifact (
Artifact
) – (experimental) The artifact where the CloudAssembly should be emitted.source_artifact (
Artifact
) – (experimental) The source artifact of the CodePipeline.action_name (
Optional
[str
]) – (experimental) Name of the build action. Default: ‘Synth’additional_artifacts (
Optional
[Sequence
[AdditionalArtifact
]]) – (experimental) Produce additional output artifacts after the build based on the given directories. Can be used to produce additional artifacts during the build step, separate from the cloud assembly, which can be used further on in the pipeline. Directories are evaluated with respect tosubdirectory
. Default: - No additional artifacts generatedcopy_environment_variables (
Optional
[Sequence
[str
]]) – (experimental) Environment variables to copy over from parent env. These are environment variables that are being used by the build. Default: - No environment variables copiedenvironment (
Optional
[BuildEnvironment
]) – (experimental) Build environment to use for CodeBuild job. Default: BuildEnvironment.LinuxBuildImage.STANDARD_4_0environment_variables (
Optional
[Mapping
[str
,BuildEnvironmentVariable
]]) – (experimental) Environment variables to send into build. Default: - No additional environment variablesproject_name (
Optional
[str
]) – (experimental) Name of the CodeBuild project. Default: - Automatically generatedrole_policy_statements (
Optional
[Sequence
[PolicyStatement
]]) – (experimental) Policy statements to add to role used during the synth. Can be used to add acces to a CodeArtifact repository etc. Default: - No policy statements added to CodeBuild Project Rolesubdirectory (
Optional
[str
]) – (experimental) Directory inside the source where package.json and cdk.json are located. Default: - Repository rootsubnet_selection (
Optional
[SubnetSelection
]) – (experimental) Which subnets to use. Only used if ‘vpc’ is supplied. Default: - All private subnets.vpc (
Optional
[IVpc
]) – (experimental) The VPC where to execute the SimpleSynth. Default: - No VPCsynth_command (
str
) – (experimental) The synth command.build_command (
Optional
[str
]) – (deprecated) The build command. If your programming language requires a compilation step, put the compilation command here. Default: - No build requiredbuild_commands (
Optional
[Sequence
[str
]]) – (experimental) The build commands. If your programming language requires a compilation step, put the compilation command here. Default: - No build requiredinstall_command (
Optional
[str
]) – (deprecated) The install command. If not provided by the build image or another dependency management tool, at least install the CDK CLI here usingnpm install -g aws-cdk
. Default: - No install requiredinstall_commands (
Optional
[Sequence
[str
]]) – (experimental) Install commands. If not provided by the build image or another dependency management tool, at least install the CDK CLI here usingnpm install -g aws-cdk
. Default: - No install requiredtest_commands (
Optional
[Sequence
[str
]]) – (experimental) Test commands. These commands are run after the build commands but before the synth command. Default: - No test commands
- Stability
experimental
Attributes
-
action_name
¶ (experimental) Name of the build action.
- Default
‘Synth’
- Stability
experimental
- Return type
Optional
[str
]
-
additional_artifacts
¶ (experimental) Produce additional output artifacts after the build based on the given directories.
Can be used to produce additional artifacts during the build step, separate from the cloud assembly, which can be used further on in the pipeline.
Directories are evaluated with respect to
subdirectory
.- Default
No additional artifacts generated
- Stability
experimental
- Return type
Optional
[List
[AdditionalArtifact
]]
-
build_command
¶ (deprecated) The build command.
If your programming language requires a compilation step, put the compilation command here.
- Default
No build required
- Deprecated
Use
buildCommands
instead- Stability
deprecated
- Return type
Optional
[str
]
-
build_commands
¶ (experimental) The build commands.
If your programming language requires a compilation step, put the compilation command here.
- Default
No build required
- Stability
experimental
- Return type
Optional
[List
[str
]]
-
cloud_assembly_artifact
¶ (experimental) The artifact where the CloudAssembly should be emitted.
- Stability
experimental
- Return type
-
copy_environment_variables
¶ (experimental) Environment variables to copy over from parent env.
These are environment variables that are being used by the build.
- Default
No environment variables copied
- Stability
experimental
- Return type
Optional
[List
[str
]]
-
environment
¶ (experimental) Build environment to use for CodeBuild job.
- Default
BuildEnvironment.LinuxBuildImage.STANDARD_4_0
- Stability
experimental
- Return type
Optional
[BuildEnvironment
]
-
environment_variables
¶ (experimental) Environment variables to send into build.
- Default
No additional environment variables
- Stability
experimental
- Return type
Optional
[Mapping
[str
,BuildEnvironmentVariable
]]
-
install_command
¶ (deprecated) The install command.
If not provided by the build image or another dependency management tool, at least install the CDK CLI here using
npm install -g aws-cdk
.- Default
No install required
- Deprecated
Use
installCommands
instead- Stability
deprecated
- Return type
Optional
[str
]
-
install_commands
¶ (experimental) Install commands.
If not provided by the build image or another dependency management tool, at least install the CDK CLI here using
npm install -g aws-cdk
.- Default
No install required
- Stability
experimental
- Return type
Optional
[List
[str
]]
-
project_name
¶ (experimental) Name of the CodeBuild project.
- Default
Automatically generated
- Stability
experimental
- Return type
Optional
[str
]
-
role_policy_statements
¶ (experimental) Policy statements to add to role used during the synth.
Can be used to add acces to a CodeArtifact repository etc.
- Default
No policy statements added to CodeBuild Project Role
- Stability
experimental
- Return type
Optional
[List
[PolicyStatement
]]
-
source_artifact
¶ (experimental) The source artifact of the CodePipeline.
- Stability
experimental
- Return type
-
subdirectory
¶ (experimental) Directory inside the source where package.json and cdk.json are located.
- Default
Repository root
- Stability
experimental
- Return type
Optional
[str
]
-
subnet_selection
¶ (experimental) Which subnets to use.
Only used if ‘vpc’ is supplied.
- Default
All private subnets.
- Stability
experimental
- Return type
Optional
[SubnetSelection
]
-
synth_command
¶ (experimental) The synth command.
- Stability
experimental
- Return type
str
-
test_commands
¶ (experimental) Test commands.
These commands are run after the build commands but before the synth command.
- Default
No test commands
- Stability
experimental
- Return type
Optional
[List
[str
]]