@Generated(value="software.amazon.awssdk:codegen") public final class Canary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Canary.Builder,Canary>
This structure contains all information about one canary in your account.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Canary.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
artifactS3Location()
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary.
|
static Canary.Builder |
builder() |
CanaryCodeOutput |
code()
Returns the value of the Code property for this object.
|
String |
engineArn()
The ARN of the Lambda function that is used as your canary's engine.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
executionRoleArn()
The ARN of the IAM role used to run the canary.
|
Integer |
failureRetentionPeriodInDays()
The number of days to retain data about failed runs of this canary.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
id()
The unique ID of this canary.
|
String |
name()
The name of the canary.
|
CanaryRunConfigOutput |
runConfig()
Returns the value of the RunConfig property for this object.
|
String |
runtimeVersion()
Specifies the runtime version to use for the canary.
|
CanaryScheduleOutput |
schedule()
A structure that contains information about how often the canary is to run, and when these runs are to stop.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Canary.Builder> |
serializableBuilderClass() |
CanaryStatus |
status()
A structure that contains information about the canary's status.
|
Integer |
successRetentionPeriodInDays()
The number of days to retain data about successful runs of this canary.
|
Map<String,String> |
tags()
The list of key-value pairs that are associated with the canary.
|
CanaryTimeline |
timeline()
A structure that contains information about when the canary was created, modified, and most recently run.
|
Canary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VpcConfigOutput |
vpcConfig()
Returns the value of the VpcConfig property for this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String id()
The unique ID of this canary.
public final String name()
The name of the canary.
public final CanaryCodeOutput code()
public final String executionRoleArn()
The ARN of the IAM role used to run the canary. This role must include lambda.amazonaws.com as a
principal in the trust policy.
lambda.amazonaws.com
as a principal in the trust policy.public final CanaryScheduleOutput schedule()
A structure that contains information about how often the canary is to run, and when these runs are to stop.
public final CanaryRunConfigOutput runConfig()
public final Integer successRetentionPeriodInDays()
The number of days to retain data about successful runs of this canary.
public final Integer failureRetentionPeriodInDays()
The number of days to retain data about failed runs of this canary.
public final CanaryStatus status()
A structure that contains information about the canary's status.
public final CanaryTimeline timeline()
A structure that contains information about when the canary was created, modified, and most recently run.
public final String artifactS3Location()
The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files.
public final String engineArn()
The ARN of the Lambda function that is used as your canary's engine. For more information about Lambda ARN format, see Resources and Conditions for Lambda Actions.
public final String runtimeVersion()
Specifies the runtime version to use for the canary. For more information about runtime versions, see Canary Runtime Versions.
public final VpcConfigOutput vpcConfig()
public final boolean hasTags()
public final Map<String,String> tags()
The list of key-value pairs that are associated with the canary.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public Canary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Canary.Builder,Canary>public static Canary.Builder builder()
public static Class<? extends Canary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.