Interface CanaryCodeOutput.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CanaryCodeOutput.Builder,
,CanaryCodeOutput> SdkBuilder<CanaryCodeOutput.Builder,
,CanaryCodeOutput> SdkPojo
- Enclosing class:
CanaryCodeOutput
-
Method Summary
Modifier and TypeMethodDescriptionblueprintTypes
(String... blueprintTypes) BlueprintTypes
is a list of templates that enable simplified canary creation.blueprintTypes
(Collection<String> blueprintTypes) BlueprintTypes
is a list of templates that enable simplified canary creation.dependencies
(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.
This field is required when you don't specify
BlueprintTypes
and is not allowed when you specifyBlueprintTypes
.- Parameters:
handler
- The entry point to use for the source code when running the canary.This field is required when you don't specify
BlueprintTypes
and is not allowed when you specifyBlueprintTypes
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blueprintTypes
BlueprintTypes
is a list of templates that enable simplified canary creation. You can create canaries for common monitoring scenarios by providing only a JSON configuration file instead of writing custom scripts. The only supported value ismulti-checks
.Multi-checks monitors HTTP/DNS/SSL/TCP endpoints with built-in authentication schemes (Basic, API Key, OAuth, SigV4) and assertion capabilities. When you specify
BlueprintTypes
, the Handler field cannot be specified since the blueprint provides a pre-defined entry point.BlueprintTypes
is supported only on canaries for syn-nodejs-3.0 runtime or later.- Parameters:
blueprintTypes
-BlueprintTypes
is a list of templates that enable simplified canary creation. You can create canaries for common monitoring scenarios by providing only a JSON configuration file instead of writing custom scripts. The only supported value ismulti-checks
.Multi-checks monitors HTTP/DNS/SSL/TCP endpoints with built-in authentication schemes (Basic, API Key, OAuth, SigV4) and assertion capabilities. When you specify
BlueprintTypes
, the Handler field cannot be specified since the blueprint provides a pre-defined entry point.BlueprintTypes
is supported only on canaries for syn-nodejs-3.0 runtime or later.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blueprintTypes
BlueprintTypes
is a list of templates that enable simplified canary creation. You can create canaries for common monitoring scenarios by providing only a JSON configuration file instead of writing custom scripts. The only supported value ismulti-checks
.Multi-checks monitors HTTP/DNS/SSL/TCP endpoints with built-in authentication schemes (Basic, API Key, OAuth, SigV4) and assertion capabilities. When you specify
BlueprintTypes
, the Handler field cannot be specified since the blueprint provides a pre-defined entry point.BlueprintTypes
is supported only on canaries for syn-nodejs-3.0 runtime or later.- Parameters:
blueprintTypes
-BlueprintTypes
is a list of templates that enable simplified canary creation. You can create canaries for common monitoring scenarios by providing only a JSON configuration file instead of writing custom scripts. The only supported value ismulti-checks
.Multi-checks monitors HTTP/DNS/SSL/TCP endpoints with built-in authentication schemes (Basic, API Key, OAuth, SigV4) and assertion capabilities. When you specify
BlueprintTypes
, the Handler field cannot be specified since the blueprint provides a pre-defined entry point.BlueprintTypes
is supported only on canaries for syn-nodejs-3.0 runtime or later.- 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:
-