Class 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 for BundlingOptions
    • 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.
    • Method Detail

      • getAssetHash

        public final String getAssetHash()
        Description copied from interface: BundlingOptions
        (experimental) Specify a custom hash for this asset.

        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`

        Specified by:
        getAssetHash in interface BundlingOptions
      • 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:
        getAssetHashType in interface BundlingOptions
      • 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:
        getBuildArgs in interface BundlingOptions
      • 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:
        getBundlingFileAccess in interface BundlingOptions
      • 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:
        getDockerImage in interface BundlingOptions
      • 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:
        getExtraBuildArgs in interface BundlingOptions
      • 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:
        getForceDockerBundling in interface BundlingOptions
      • getTarget

        public final String getTarget()
        Description copied from interface: BundlingOptions
        (experimental) Cross compilation target environment for the generated binary.
        Specified by:
        getTarget in interface BundlingOptions
      • getCommand

        public final List<String> getCommand()
        Specified by:
        getCommand in interface software.amazon.awscdk.DockerRunOptions
      • getEntrypoint

        public final List<String> getEntrypoint()
        Specified by:
        getEntrypoint in interface software.amazon.awscdk.DockerRunOptions
      • getEnvironment

        public final Map<String,​String> getEnvironment()
        Specified by:
        getEnvironment in interface software.amazon.awscdk.DockerRunOptions
      • getNetwork

        public final String getNetwork()
        Specified by:
        getNetwork in interface software.amazon.awscdk.DockerRunOptions
      • getPlatform

        public final String getPlatform()
        Specified by:
        getPlatform in interface software.amazon.awscdk.DockerRunOptions
      • getSecurityOpt

        public final String getSecurityOpt()
        Specified by:
        getSecurityOpt in interface software.amazon.awscdk.DockerRunOptions
      • getUser

        public final String getUser()
        Specified by:
        getUser in interface software.amazon.awscdk.DockerRunOptions
      • getVolumes

        public final List<software.amazon.awscdk.DockerVolume> getVolumes()
        Specified by:
        getVolumes in interface software.amazon.awscdk.DockerRunOptions
      • getVolumesFrom

        public final List<String> getVolumesFrom()
        Specified by:
        getVolumesFrom in interface software.amazon.awscdk.DockerRunOptions
      • getWorkingDirectory

        public final String getWorkingDirectory()
        Specified by:
        getWorkingDirectory in interface software.amazon.awscdk.DockerRunOptions
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object