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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.474Z") @Stability(Experimental) public class S3Code extends Code
(experimental) S3 bucket path to the code zip file.

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.s3.*;
 import software.amazon.awscdk.services.synthetics.*;
 Bucket bucket;
 S3Code s3Code = new S3Code(bucket, "key", "objectVersion");
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    S3Code(IBucket bucket, String key)
     
     
    S3Code(IBucket bucket, String key, String objectVersion)
     
    protected
    S3Code(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    S3Code(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(software.constructs.Construct _scope, String _handler, RuntimeFamily _family)
    (experimental) Called when the canary is initialized to allow this object to bind to the stack, add resources and have fun.

    Methods inherited from class software.amazon.awscdk.services.synthetics.Code

    fromAsset, fromAsset, fromBucket, fromBucket, fromInline

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • S3Code

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

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

      @Stability(Experimental) 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(Experimental) public S3Code(@NotNull IBucket bucket, @NotNull String key)
      Parameters:
      bucket - This parameter is required.
      key - This parameter is required.
  • Method Details

    • bind

      @Stability(Experimental) @NotNull public CodeConfig bind(@NotNull software.constructs.Construct _scope, @NotNull String _handler, @NotNull RuntimeFamily _family)
      (experimental) Called when the canary 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.
      _handler - This parameter is required.
      _family - This parameter is required.
      Returns:
      a bound CodeConfig.