@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.491Z") @Stability(value=Experimental) public class CfnParametersCode extends Code
Useful when you don't have access to the code of your Lambda from your CDK code, so you can't use Assets, and you want to deploy the Lambda in a CodePipeline, using CloudFormation Actions - you can fill the parameters using the {@link #assign} method.
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnParametersCode.Builder
(experimental) A fluent builder for
CfnParametersCode. |
| Modifier | Constructor and Description |
|---|---|
|
CfnParametersCode() |
|
CfnParametersCode(CfnParametersCodeProps props) |
protected |
CfnParametersCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnParametersCode(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
assign(Location location)
(experimental) Create a parameters map from this instance's CloudFormation parameters.
|
CodeConfig |
bind(software.constructs.Construct scope)
(experimental) Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun.
|
String |
getBucketNameParam() |
Boolean |
getIsInline()
(experimental) Determines whether this Code is inline code or not.
|
String |
getObjectKeyParam() |
bindToResource, bindToResource, fromAsset, fromAsset, fromAssetImage, fromAssetImage, fromBucket, fromBucket, fromCfnParameters, fromCfnParameters, fromDockerBuild, fromDockerBuild, fromEcrImage, fromEcrImage, fromInlinejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected CfnParametersCode(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnParametersCode(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public CfnParametersCode(@Nullable
CfnParametersCodeProps props)
props - @Stability(value=Experimental) public CfnParametersCode()
@Stability(value=Experimental) @NotNull public Map<String,Object> assign(@NotNull Location location)
It returns a map with 2 keys that correspond to the names of the parameters defined in this Lambda code,
and as values it contains the appropriate expressions pointing at the provided S3 location
(most likely, obtained from a CodePipeline Artifact by calling the artifact.s3Location method).
The result should be provided to the CloudFormation Action
that is deploying the Stack that the Lambda with this code is part of,
in the parameterOverrides property.
location - the location of the object in S3 that represents the Lambda code. This parameter is required.@Stability(value=Experimental) @NotNull public CodeConfig bind(@NotNull software.constructs.Construct scope)
@Stability(value=Experimental) @NotNull public String getBucketNameParam()
@Stability(value=Experimental) @NotNull public Boolean getIsInline()
@Stability(value=Experimental) @NotNull public String getObjectKeyParam()
Copyright © 2021. All rights reserved.