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.98.0 (build 00b106d)", date="2024-05-24T02:42:44.129Z") @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();
 
  • 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

      @Stability(Stable) @NotNull public IBucket getBucket()
    • getObjectKey

      @Stability(Stable) @NotNull public String getObjectKey()