Class DeployTimeSubstitutedFile
DeployTimeSubstitutedFile
is an extension of BucketDeployment
that allows users to upload individual files and specify to make substitutions in the file.
Inherited Members
Namespace: Amazon.CDK.AWS.S3.Deployment
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DeployTimeSubstitutedFile : BucketDeployment
Syntax (vb)
Public Class DeployTimeSubstitutedFile
Inherits BucketDeployment
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.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;
new DeployTimeSubstitutedFile(this, "MyFile", new DeployTimeSubstitutedFileProps {
Source = "my-file.yaml",
DestinationKey = destinationKey,
DestinationBucket = destinationBucket,
Substitutions = new Dictionary<string, string> {
{ "variableName", myLambdaFunction.FunctionName }
},
Role = role
});
Synopsis
Constructors
DeployTimeSubstitutedFile(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
DeployTimeSubstitutedFile(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
DeployTimeSubstitutedFile(Construct, String, IDeployTimeSubstitutedFileProps) |
Properties
Bucket | |
ObjectKey |
Constructors
DeployTimeSubstitutedFile(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected DeployTimeSubstitutedFile(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
DeployTimeSubstitutedFile(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected DeployTimeSubstitutedFile(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
DeployTimeSubstitutedFile(Construct, String, IDeployTimeSubstitutedFileProps)
public DeployTimeSubstitutedFile(Construct scope, string id, IDeployTimeSubstitutedFileProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IDeployTimeSubstitutedFileProps
Properties
Bucket
ObjectKey
public virtual string ObjectKey { get; }
Property Value
System.String