@Stability(value=Experimental) @Internal public static final class BundlingOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BundlingOptions
BundlingOptionssoftware.amazon.jsii.JsiiObject.InitializationModeBundlingOptions.Builder, BundlingOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(BundlingOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
BundlingOptions.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAssetHash()
(experimental) Specify a custom hash for this asset.
|
AssetHashType |
getAssetHashType()
(experimental) Determines how asset hash is calculated.
|
Map<String,String> |
getBuildArgs()
(experimental) Optional build arguments to pass to the default container.
|
List<String> |
getCommand() |
ICommandHooks |
getCommandHooks()
(experimental) Command hooks.
|
List<String> |
getEntrypoint() |
Map<String,String> |
getEnvironment() |
DockerImage |
getImage()
(experimental) Docker image to use for bundling.
|
String |
getNetwork() |
String |
getOutputPathSuffix()
(experimental) Output path suffix: the suffix for the directory into which the bundled output is written.
|
Boolean |
getPoetryIncludeHashes()
(experimental) Whether to export Poetry dependencies with hashes.
|
String |
getSecurityOpt() |
String |
getUser() |
List<DockerVolume> |
getVolumes() |
List<String> |
getVolumesFrom() |
String |
getWorkingDirectory() |
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(BundlingOptions.Builder builder)
BundlingOptions.Builder.public final String getAssetHash()
BundlingOptions
If assetHashType is set it must
be set to AssetHashType.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`
getAssetHash in interface BundlingOptionspublic final AssetHashType getAssetHashType()
BundlingOptions
If asset hash is set to SOURCE (default), then only changes to the source
directory will cause the asset to rebuild. This means, for example, that in
order to pick up a new dependency version, a change must be made to the
source tree. Ideally, this can be implemented by including a dependency
lockfile in your source tree or using fixed dependencies.
If the asset hash is set to OUTPUT, 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 pip adds timestamps to
dependencies it installs, which implies that in this mode Python bundles
will always get rebuild and uploaded. Normally this is an anti-pattern
since build
Default: AssetHashType.SOURCE By default, hash is calculated based on the contents of the source directory. This means that only updates to the source will cause the asset to rebuild.
getAssetHashType in interface BundlingOptionspublic final Map<String,String> getBuildArgs()
BundlingOptionsThis can be used to customize the index URLs used for installing dependencies. This is not used if a custom image is provided.
Default: - No build arguments.
getBuildArgs in interface BundlingOptionspublic final ICommandHooks getCommandHooks()
BundlingOptionsDefault: - do not run additional commands
getCommandHooks in interface BundlingOptionspublic final DockerImage getImage()
BundlingOptionsIf no options are provided, the default bundling image will be used. Dependencies will be installed using the default packaging commands and copied over from into the Lambda asset.
Default: - Default bundling image.
getImage in interface BundlingOptionspublic final String getOutputPathSuffix()
BundlingOptionsDefault: - 'python' for a layer, empty string otherwise.
getOutputPathSuffix in interface BundlingOptionspublic final Boolean getPoetryIncludeHashes()
BundlingOptionsNote that this can cause builds to fail if not all dependencies export with a hash.
Default: Hashes are NOT included in the exported `requirements.txt` file
getPoetryIncludeHashes in interface BundlingOptionspublic final List<String> getCommand()
getCommand in interface DockerRunOptionspublic final List<String> getEntrypoint()
getEntrypoint in interface DockerRunOptionspublic final Map<String,String> getEnvironment()
getEnvironment in interface DockerRunOptionspublic final String getNetwork()
getNetwork in interface DockerRunOptionspublic final String getSecurityOpt()
getSecurityOpt in interface DockerRunOptionspublic final String getUser()
getUser in interface DockerRunOptionspublic final List<DockerVolume> getVolumes()
getVolumes in interface DockerRunOptionspublic final List<String> getVolumesFrom()
getVolumesFrom in interface DockerRunOptionspublic final String getWorkingDirectory()
getWorkingDirectory in interface DockerRunOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.