@Stability(value=Stable) public static final class CfnCanary.CodeProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnCanary.CodeProperty>
CfnCanary.CodeProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnCanary.CodeProperty |
build()
Builds the configured instance.
|
CfnCanary.CodeProperty.Builder |
handler(String handler)
Sets the value of
CfnCanary.CodeProperty.getHandler() |
CfnCanary.CodeProperty.Builder |
s3Bucket(String s3Bucket)
Sets the value of
CfnCanary.CodeProperty.getS3Bucket() |
CfnCanary.CodeProperty.Builder |
s3Key(String s3Key)
Sets the value of
CfnCanary.CodeProperty.getS3Key() |
CfnCanary.CodeProperty.Builder |
s3ObjectVersion(String s3ObjectVersion)
Sets the value of
CfnCanary.CodeProperty.getS3ObjectVersion() |
CfnCanary.CodeProperty.Builder |
script(String script)
Sets the value of
CfnCanary.CodeProperty.getScript() |
@Stability(value=Stable) public CfnCanary.CodeProperty.Builder handler(String handler)
CfnCanary.CodeProperty.getHandler()handler - The entry point to use for the source code when running the canary. This parameter is required.
For canaries that use the syn-python-selenium-1.0 runtime or a syn-nodejs.puppeteer runtime earlier than syn-nodejs.puppeteer-3.4 , the handler must be specified as *fileName* .handler . For syn-python-selenium-1.1 , syn-nodejs.puppeteer-3.4 , and later runtimes, the handler can be specified as *fileName* . *functionName* , or you can specify a folder where canary scripts reside as *folder* / *fileName* . *functionName* .this@Stability(value=Stable) public CfnCanary.CodeProperty.Builder s3Bucket(String s3Bucket)
CfnCanary.CodeProperty.getS3Bucket()s3Bucket - If your canary script is located in S3, specify the bucket name here.
The bucket must already exist.this@Stability(value=Stable) public CfnCanary.CodeProperty.Builder s3Key(String s3Key)
CfnCanary.CodeProperty.getS3Key()s3Key - The S3 key of your script.
For more information, see Working with Amazon S3 Objects .this@Stability(value=Stable) public CfnCanary.CodeProperty.Builder s3ObjectVersion(String s3ObjectVersion)
CfnCanary.CodeProperty.getS3ObjectVersion()s3ObjectVersion - The S3 version ID of your script.this@Stability(value=Stable) public CfnCanary.CodeProperty.Builder script(String script)
CfnCanary.CodeProperty.getScript()script - If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the script in plain text.
It can be up to 5 MB.this@Stability(value=Stable) public CfnCanary.CodeProperty build()
build in interface software.amazon.jsii.Builder<CfnCanary.CodeProperty>CfnCanary.CodePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.