Struct aws_sdk_synthetics::model::CanaryCodeInput
source · [−]#[non_exhaustive]pub struct CanaryCodeInput {
pub s3_bucket: Option<String>,
pub s3_key: Option<String>,
pub s3_version: Option<String>,
pub zip_file: Option<Blob>,
pub handler: Option<String>,
}Expand description
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.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.s3_bucket: Option<String>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_key: Option<String>The S3 key of your script. For more information, see Working with Amazon S3 Objects.
s3_version: Option<String>The S3 version ID of your script.
zip_file: Option<Blob>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 256 Kb.
handler: Option<String>The entry point to use for the source code when running the canary. This value must end with the string .handler. The string is limited to 29 characters or fewer.
Implementations
If your canary script is located in S3, specify the bucket name here. Do not include s3:// as the start of the bucket name.
The S3 key of your script. For more information, see Working with Amazon S3 Objects.
The S3 version ID of your 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 base64-encoded contents of the .zip file that contains the script. It must be smaller than 256 Kb.
Creates a new builder-style object to manufacture CanaryCodeInput
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for CanaryCodeInput
impl Send for CanaryCodeInput
impl Sync for CanaryCodeInput
impl Unpin for CanaryCodeInput
impl UnwindSafe for CanaryCodeInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more