java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.lambda.Code
software.amazon.awscdk.services.lambda.S3Code
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-01T20:58:26.589Z") @Stability(Stable) public class S3Code extends Code
Lambda code from an S3 archive.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 import software.amazon.awscdk.services.s3.*;
 Bucket bucket;
 S3Code s3Code = new S3Code(bucket, "key", "objectVersion");
 
  • Constructor Details

    • S3Code

      protected S3Code(software.amazon.jsii.JsiiObjectRef objRef)
    • S3Code

      protected S3Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • S3Code

      @Stability(Stable) public S3Code(@NotNull IBucket bucket, @NotNull String key, @Nullable String objectVersion)
      Parameters:
      bucket - This parameter is required.
      key - This parameter is required.
      objectVersion -
    • S3Code

      @Stability(Stable) public S3Code(@NotNull IBucket bucket, @NotNull String key)
      Parameters:
      bucket - This parameter is required.
      key - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public CodeConfig bind(@NotNull software.constructs.Construct _scope)
      Called when the lambda or layer is initialized to allow this object to bind to the stack, add resources and have fun.

      Specified by:
      bind in class Code
      Parameters:
      _scope - This parameter is required.
    • getIsInline

      @Stability(Stable) @NotNull public Boolean getIsInline()
      Determines whether this Code is inline code or not.