Class BundlingOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.awslambdarust.BundlingOptions.Jsii$Proxy
-
- All Implemented Interfaces:
BundlingOptions,software.amazon.awscdk.DockerRunOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- BundlingOptions
@Stability(Experimental) @Internal public static final class BundlingOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BundlingOptions
An implementation forBundlingOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.awslambdarust.BundlingOptions
BundlingOptions.Builder, BundlingOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(BundlingOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theBundlingOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)StringgetAssetHash()(experimental) Specify a custom hash for this asset.software.amazon.awscdk.AssetHashTypegetAssetHashType()(experimental) Determines how the asset hash is calculated.Map<String,String>getBuildArgs()(experimental) Build arguments to pass when building the bundling image.software.amazon.awscdk.BundlingFileAccessgetBundlingFileAccess()(experimental) Which option to use to copy the source files to the docker container and output files back.List<String>getCommand()ICommandHooksgetCommandHooks()(experimental) Command hooks.software.amazon.awscdk.DockerImagegetDockerImage()(experimental) A custom bundling Docker image.List<String>getEntrypoint()Map<String,String>getEnvironment()List<String>getExtraBuildArgs()(experimental) Additional arguments that are passed in at build time to package manager.List<String>getFeatures()(experimental) A list of features to activate when compiling Rust code.BooleangetForceDockerBundling()(experimental) Force bundling in a Docker container even if local bundling is possible.LogLevelgetLogLevel()(experimental) Log level for cargo.StringgetNetwork()PackageManagerTypegetPackageManagerType()(experimental) The type of package manager to use.StringgetPlatform()StringgetSecurityOpt()StringgetTarget()(experimental) Cross compilation target environment for the generated binary.StringgetUser()List<software.amazon.awscdk.DockerVolume>getVolumes()List<String>getVolumesFrom()StringgetWorkingDirectory()inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(BundlingOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theBundlingOptions.Builder.
-
-
Method Detail
-
getAssetHash
public final String getAssetHash()
Description copied from interface:BundlingOptions(experimental) Specify a custom hash for this asset.If
assetHashTypeis set it must be set toAssetHashType.CUSTOM. For consistency, this custom hash will be SHA256 hashed and encoded as hex. The resulting hash will be the asset hash.NOTE: the hash is used in order to identify a specific revision of the asset, and used for optimizing and caching deployment activities related to this asset such as packaging, uploading to Amazon S3, etc. If you chose to customize the hash, you will need to make sure it is updated every time the asset changes, or otherwise it is possible that some deployments will not be invalidated.
Default: - based on `assetHashType`
- Specified by:
getAssetHashin interfaceBundlingOptions
-
getAssetHashType
public final software.amazon.awscdk.AssetHashType getAssetHashType()
Description copied from interface:BundlingOptions(experimental) Determines how the asset hash is calculated. Assets will get rebuilt and uploaded only if their hash has changed.If the asset hash is set to
OUTPUT(default), the hash is calculated after bundling. This means that any change in the output will cause the asset to be invalidated and uploaded. Bear in mind that the rust binary that is output can be different depending on the target that it was compiled for.If the asset hash is set to
SOURCE, then only changes to the source directory will cause the asset to rebuild. If your go project has multiple Lambda functions this means that an update to any one function could cause all the functions to be rebuilt and uploaded.Default: AssetHashType.CUSTOM
- Specified by:
getAssetHashTypein interfaceBundlingOptions
-
getBuildArgs
public final Map<String,String> getBuildArgs()
Description copied from interface:BundlingOptions(experimental) Build arguments to pass when building the bundling image.Default: - no build arguments are passed
- Specified by:
getBuildArgsin interfaceBundlingOptions
-
getBundlingFileAccess
public final software.amazon.awscdk.BundlingFileAccess getBundlingFileAccess()
Description copied from interface:BundlingOptions(experimental) Which option to use to copy the source files to the docker container and output files back.Default: - BundlingFileAccess.BIND_MOUNT
- Specified by:
getBundlingFileAccessin interfaceBundlingOptions
-
getCommandHooks
public final ICommandHooks getCommandHooks()
Description copied from interface:BundlingOptions(experimental) Command hooks.Default: - do not run additional commands
- Specified by:
getCommandHooksin interfaceBundlingOptions
-
getDockerImage
public final software.amazon.awscdk.DockerImage getDockerImage()
Description copied from interface:BundlingOptions(experimental) A custom bundling Docker image.Default: - use the Docker image provided by
- Specified by:
getDockerImagein interfaceBundlingOptions
-
getExtraBuildArgs
public final List<String> getExtraBuildArgs()
Description copied from interface:BundlingOptions(experimental) Additional arguments that are passed in at build time to package manager.Examples
--all-features--no-default-features
- Specified by:
getExtraBuildArgsin interfaceBundlingOptions
-
getFeatures
public final List<String> getFeatures()
Description copied from interface:BundlingOptions(experimental) A list of features to activate when compiling Rust code.- Specified by:
getFeaturesin interfaceBundlingOptions
-
getForceDockerBundling
public final Boolean getForceDockerBundling()
Description copied from interface:BundlingOptions(experimental) Force bundling in a Docker container even if local bundling is possible.Default: - false
- Specified by:
getForceDockerBundlingin interfaceBundlingOptions
-
getLogLevel
public final LogLevel getLogLevel()
Description copied from interface:BundlingOptions(experimental) Log level for cargo.Default: LogLevel.WARNING
- Specified by:
getLogLevelin interfaceBundlingOptions
-
getPackageManagerType
public final PackageManagerType getPackageManagerType()
Description copied from interface:BundlingOptions(experimental) The type of package manager to use.Default: - PackageManagerType.CARGO_ZIGBUILD
- Specified by:
getPackageManagerTypein interfaceBundlingOptions
-
getTarget
public final String getTarget()
Description copied from interface:BundlingOptions(experimental) Cross compilation target environment for the generated binary.- Specified by:
getTargetin interfaceBundlingOptions
-
getCommand
public final List<String> getCommand()
- Specified by:
getCommandin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getEntrypoint
public final List<String> getEntrypoint()
- Specified by:
getEntrypointin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getEnvironment
public final Map<String,String> getEnvironment()
- Specified by:
getEnvironmentin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getNetwork
public final String getNetwork()
- Specified by:
getNetworkin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getPlatform
public final String getPlatform()
- Specified by:
getPlatformin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getSecurityOpt
public final String getSecurityOpt()
- Specified by:
getSecurityOptin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getUser
public final String getUser()
- Specified by:
getUserin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getVolumes
public final List<software.amazon.awscdk.DockerVolume> getVolumes()
- Specified by:
getVolumesin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getVolumesFrom
public final List<String> getVolumesFrom()
- Specified by:
getVolumesFromin interfacesoftware.amazon.awscdk.DockerRunOptions
-
getWorkingDirectory
public final String getWorkingDirectory()
- Specified by:
getWorkingDirectoryin interfacesoftware.amazon.awscdk.DockerRunOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-