@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CanaryCodeInput extends Object implements Serializable, Cloneable, StructuredPojo
Use this structure to input your script code for the canary. This structure contains the Lambda handler with the
location where the canary should start running the script. If the script is stored in an S3 bucket, the bucket name,
key, and version are also included. If the script was passed into the canary directly, the script code is contained
in the value of Zipfile
.
Constructor and Description |
---|
CanaryCodeInput() |
Modifier and Type | Method and Description |
---|---|
CanaryCodeInput |
clone() |
boolean |
equals(Object obj) |
String |
getHandler()
The entry point to use for the source code when running the canary.
|
String |
getS3Bucket()
If your canary script is located in S3, specify the bucket name here.
|
String |
getS3Key()
The S3 key of your script.
|
String |
getS3Version()
The S3 version ID of your script.
|
ByteBuffer |
getZipFile()
If you input your canary script directly into the canary instead of referring to an S3 location, the value of
this parameter is the base64-encoded contents of the .zip file that contains the script.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHandler(String handler)
The entry point to use for the source code when running the canary.
|
void |
setS3Bucket(String s3Bucket)
If your canary script is located in S3, specify the bucket name here.
|
void |
setS3Key(String s3Key)
The S3 key of your script.
|
void |
setS3Version(String s3Version)
The S3 version ID of your script.
|
void |
setZipFile(ByteBuffer zipFile)
If you input your canary script directly into the canary instead of referring to an S3 location, the value of
this parameter is the base64-encoded contents of the .zip file that contains the script.
|
String |
toString()
Returns a string representation of this object.
|
CanaryCodeInput |
withHandler(String handler)
The entry point to use for the source code when running the canary.
|
CanaryCodeInput |
withS3Bucket(String s3Bucket)
If your canary script is located in S3, specify the bucket name here.
|
CanaryCodeInput |
withS3Key(String s3Key)
The S3 key of your script.
|
CanaryCodeInput |
withS3Version(String s3Version)
The S3 version ID of your script.
|
CanaryCodeInput |
withZipFile(ByteBuffer zipFile)
If you input your canary script directly into the canary instead of referring to an S3 location, the value of
this parameter is the base64-encoded contents of the .zip file that contains the script.
|
public void setS3Bucket(String s3Bucket)
If your canary script is located in S3, specify the bucket name here. Do not include s3://
as the
start of the bucket name.
s3Bucket
- If your canary script is located in S3, specify the bucket name here. Do not include s3://
as
the start of the bucket name.public String getS3Bucket()
If your canary script is located in S3, specify the bucket name here. Do not include s3://
as the
start of the bucket name.
s3://
as the start of the bucket name.public CanaryCodeInput withS3Bucket(String s3Bucket)
If your canary script is located in S3, specify the bucket name here. Do not include s3://
as the
start of the bucket name.
s3Bucket
- If your canary script is located in S3, specify the bucket name here. Do not include s3://
as
the start of the bucket name.public void setS3Key(String s3Key)
The S3 key of your script. For more information, see Working with Amazon S3 Objects.
s3Key
- The S3 key of your script. For more information, see Working with Amazon S3
Objects.public String getS3Key()
The S3 key of your script. For more information, see Working with Amazon S3 Objects.
public CanaryCodeInput withS3Key(String s3Key)
The S3 key of your script. For more information, see Working with Amazon S3 Objects.
s3Key
- The S3 key of your script. For more information, see Working with Amazon S3
Objects.public void setS3Version(String s3Version)
The S3 version ID of your script.
s3Version
- The S3 version ID of your script.public String getS3Version()
The S3 version ID of your script.
public CanaryCodeInput withS3Version(String s3Version)
The S3 version ID of your script.
s3Version
- The S3 version ID of your script.public void setZipFile(ByteBuffer zipFile)
If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be smaller than 225 Kb.
For large canary scripts, we recommend that you use an S3 location instead of inputting it directly with this parameter.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
zipFile
- If you input your canary script directly into the canary instead of referring to an S3 location, the value
of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be
smaller than 225 Kb.
For large canary scripts, we recommend that you use an S3 location instead of inputting it directly with this parameter.
public ByteBuffer getZipFile()
If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be smaller than 225 Kb.
For large canary scripts, we recommend that you use an S3 location instead of inputting it directly with this parameter.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
For large canary scripts, we recommend that you use an S3 location instead of inputting it directly with this parameter.
public CanaryCodeInput withZipFile(ByteBuffer zipFile)
If you input your canary script directly into the canary instead of referring to an S3 location, the value of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be smaller than 225 Kb.
For large canary scripts, we recommend that you use an S3 location instead of inputting it directly with this parameter.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
zipFile
- If you input your canary script directly into the canary instead of referring to an S3 location, the value
of this parameter is the base64-encoded contents of the .zip file that contains the script. It must be
smaller than 225 Kb.
For large canary scripts, we recommend that you use an S3 location instead of inputting it directly with this parameter.
public void setHandler(String handler)
The entry point to use for the source code when running the canary. 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
.
handler
- The entry point to use for the source code when running the canary. 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
.public String getHandler()
The entry point to use for the source code when running the canary. 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
.
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
.public CanaryCodeInput withHandler(String handler)
The entry point to use for the source code when running the canary. 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
.
handler
- The entry point to use for the source code when running the canary. 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
.public String toString()
toString
in class Object
Object.toString()
public CanaryCodeInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.