Interface CanaryCodeOutput.Builder

  • Method Details

    • sourceLocationArn

      CanaryCodeOutput.Builder sourceLocationArn(String sourceLocationArn)

      The ARN of the Lambda layer where Synthetics stores the canary script code.

      Parameters:
      sourceLocationArn - The ARN of the Lambda layer where Synthetics stores the canary script code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • handler

      CanaryCodeOutput.Builder handler(String handler)

      The entry point to use for the source code when running the canary.

      Parameters:
      handler - The entry point to use for the source code when running the canary.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dependencies

      CanaryCodeOutput.Builder dependencies(Collection<Dependency> dependencies)

      A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference.

      Parameters:
      dependencies - A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dependencies

      CanaryCodeOutput.Builder dependencies(Dependency... dependencies)

      A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference.

      Parameters:
      dependencies - A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dependencies

      CanaryCodeOutput.Builder dependencies(Consumer<Dependency.Builder>... dependencies)

      A list of dependencies that are used for running this canary. The dependencies are specified as a key-value pair, where the key is the type of dependency and the value is the dependency reference.

      This is a convenience method that creates an instance of the Dependency.Builder avoiding the need to create one manually via Dependency.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dependencies(List<Dependency>).

      Parameters:
      dependencies - a consumer that will call methods on Dependency.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: