Class DeployTimeSubstitutedFile
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.s3.deployment.BucketDeployment
software.amazon.awscdk.services.s3.deployment.DeployTimeSubstitutedFile
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:21.780Z")
@Stability(Stable)
public class DeployTimeSubstitutedFile
extends BucketDeployment
DeployTimeSubstitutedFile is an extension of BucketDeployment that allows users to upload individual files and specify to make substitutions in the file.
Example:
import software.amazon.awscdk.services.lambda.*;
Function myLambdaFunction;
Bucket destinationBucket;
//(Optional) if provided, the resulting processed file would be uploaded to the destinationBucket under the destinationKey name.
String destinationKey;
Role role;
DeployTimeSubstitutedFile.Builder.create(this, "MyFile")
.source("my-file.yaml")
.destinationKey(destinationKey)
.destinationBucket(destinationBucket)
.substitutions(Map.of(
"variableName", myLambdaFunction.getFunctionName()))
.role(role)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forDeployTimeSubstitutedFile.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy -
Field Summary
Fields inherited from class software.amazon.awscdk.services.s3.deployment.BucketDeployment
PROPERTY_INJECTION_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeployTimeSubstitutedFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDeployTimeSubstitutedFile(software.amazon.jsii.JsiiObjectRef objRef) DeployTimeSubstitutedFile(software.constructs.Construct scope, String id, DeployTimeSubstitutedFileProps props) -
Method Summary
Methods inherited from class software.amazon.awscdk.services.s3.deployment.BucketDeployment
addSource, getDeployedBucket, getHandlerRole, getObjectKeysMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
DeployTimeSubstitutedFile
protected DeployTimeSubstitutedFile(software.amazon.jsii.JsiiObjectRef objRef) -
DeployTimeSubstitutedFile
protected DeployTimeSubstitutedFile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DeployTimeSubstitutedFile
@Stability(Stable) public DeployTimeSubstitutedFile(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DeployTimeSubstitutedFileProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
getBucket
-
getObjectKey
-