Class EcrImageCode

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:09.217Z") @Stability(Stable) public class EcrImageCode extends Code
Represents a Docker image in ECR that can be bound as Lambda Code.

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.ecr.*;
 import software.amazon.awscdk.services.lambda.*;
 Repository repository;
 EcrImageCode ecrImageCode = EcrImageCode.Builder.create(repository)
         .cmd(List.of("cmd"))
         .entrypoint(List.of("entrypoint"))
         .tag("tag")
         .tagOrDigest("tagOrDigest")
         .workingDirectory("workingDirectory")
         .build();
 
  • Constructor Details

    • EcrImageCode

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

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

      @Stability(Stable) public EcrImageCode(@NotNull IRepository repository, @Nullable EcrImageCodeProps props)
      Parameters:
      repository - This parameter is required.
      props -
    • EcrImageCode

      @Stability(Stable) public EcrImageCode(@NotNull IRepository repository)
      Parameters:
      repository - 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.