Interface CodeConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CodeConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.469Z") @Stability(Experimental) public interface CodeConfig extends software.amazon.jsii.JsiiSerializable
(experimental) Configuration of the code class.

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.synthetics.*;
 CodeConfig codeConfig = CodeConfig.builder()
         .inlineCode("inlineCode")
         .s3Location(Location.builder()
                 .bucketName("bucketName")
                 .objectKey("objectKey")
                 // the properties below are optional
                 .objectVersion("objectVersion")
                 .build())
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for CodeConfig
    static final class 
    An implementation for CodeConfig
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default String
    (experimental) Inline code (mutually exclusive with s3Location).
    default Location
    (experimental) The location of the code in S3 (mutually exclusive with inlineCode).

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getInlineCode

      @Stability(Experimental) @Nullable default String getInlineCode()
      (experimental) Inline code (mutually exclusive with s3Location).

      Default: - none

    • getS3Location

      @Stability(Experimental) @Nullable default Location getS3Location()
      (experimental) The location of the code in S3 (mutually exclusive with inlineCode).

      Default: - none

    • builder

      @Stability(Experimental) static CodeConfig.Builder builder()
      Returns:
      a CodeConfig.Builder of CodeConfig