Interface CanaryCodeOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CanaryCodeOutput.Builder,
,CanaryCodeOutput> SdkBuilder<CanaryCodeOutput.Builder,
,CanaryCodeOutput> SdkPojo
- Enclosing class:
CanaryCodeOutput
-
Method Summary
Modifier and TypeMethodDescriptiondependencies
(Collection<Dependency> dependencies) A list of dependencies that are used for running this canary.dependencies
(Consumer<Dependency.Builder>... dependencies) A list of dependencies that are used for running this canary.dependencies
(Dependency... dependencies) A list of dependencies that are used for running this canary.The entry point to use for the source code when running the canary.sourceLocationArn
(String sourceLocationArn) The ARN of the Lambda layer where Synthetics stores the canary script code.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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 theDependency.Builder
avoiding the need to create one manually viaDependency.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todependencies(List<Dependency>)
.- Parameters:
dependencies
- a consumer that will call methods onDependency.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-