@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CanaryRunConfigInput extends Object implements Serializable, Cloneable, StructuredPojo
A structure that contains input information for a canary run.
Constructor and Description |
---|
CanaryRunConfigInput() |
Modifier and Type | Method and Description |
---|---|
CanaryRunConfigInput |
addEnvironmentVariablesEntry(String key,
String value)
Add a single EnvironmentVariables entry
|
CanaryRunConfigInput |
clearEnvironmentVariablesEntries()
Removes all the entries added into EnvironmentVariables.
|
CanaryRunConfigInput |
clone() |
boolean |
equals(Object obj) |
Boolean |
getActiveTracing()
Specifies whether this canary is to use active X-Ray tracing when it runs.
|
Map<String,String> |
getEnvironmentVariables()
Specifies the keys and values to use for any environment variables used in the canary script.
|
Integer |
getMemoryInMB()
The maximum amount of memory available to the canary while it is running, in MB.
|
Integer |
getTimeoutInSeconds()
How long the canary is allowed to run before it must stop.
|
int |
hashCode() |
Boolean |
isActiveTracing()
Specifies whether this canary is to use active X-Ray tracing when it runs.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActiveTracing(Boolean activeTracing)
Specifies whether this canary is to use active X-Ray tracing when it runs.
|
void |
setEnvironmentVariables(Map<String,String> environmentVariables)
Specifies the keys and values to use for any environment variables used in the canary script.
|
void |
setMemoryInMB(Integer memoryInMB)
The maximum amount of memory available to the canary while it is running, in MB.
|
void |
setTimeoutInSeconds(Integer timeoutInSeconds)
How long the canary is allowed to run before it must stop.
|
String |
toString()
Returns a string representation of this object.
|
CanaryRunConfigInput |
withActiveTracing(Boolean activeTracing)
Specifies whether this canary is to use active X-Ray tracing when it runs.
|
CanaryRunConfigInput |
withEnvironmentVariables(Map<String,String> environmentVariables)
Specifies the keys and values to use for any environment variables used in the canary script.
|
CanaryRunConfigInput |
withMemoryInMB(Integer memoryInMB)
The maximum amount of memory available to the canary while it is running, in MB.
|
CanaryRunConfigInput |
withTimeoutInSeconds(Integer timeoutInSeconds)
How long the canary is allowed to run before it must stop.
|
public void setTimeoutInSeconds(Integer timeoutInSeconds)
How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.
If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.
timeoutInSeconds
- How long the canary is allowed to run before it must stop. You can't set this time to be longer than the
frequency of the runs of this canary.
If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.
public Integer getTimeoutInSeconds()
How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.
If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.
If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.
public CanaryRunConfigInput withTimeoutInSeconds(Integer timeoutInSeconds)
How long the canary is allowed to run before it must stop. You can't set this time to be longer than the frequency of the runs of this canary.
If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.
timeoutInSeconds
- How long the canary is allowed to run before it must stop. You can't set this time to be longer than the
frequency of the runs of this canary.
If you omit this field, the frequency of the canary is used as this value, up to a maximum of 14 minutes.
public void setMemoryInMB(Integer memoryInMB)
The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.
memoryInMB
- The maximum amount of memory available to the canary while it is running, in MB. This value must be a
multiple of 64.public Integer getMemoryInMB()
The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.
public CanaryRunConfigInput withMemoryInMB(Integer memoryInMB)
The maximum amount of memory available to the canary while it is running, in MB. This value must be a multiple of 64.
memoryInMB
- The maximum amount of memory available to the canary while it is running, in MB. This value must be a
multiple of 64.public void setActiveTracing(Boolean activeTracing)
Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for their
canary runtime.
activeTracing
- Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this
canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an
endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for
their canary runtime.
public Boolean getActiveTracing()
Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for their
canary runtime.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for
their canary runtime.
public CanaryRunConfigInput withActiveTracing(Boolean activeTracing)
Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for their
canary runtime.
activeTracing
- Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this
canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an
endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for
their canary runtime.
public Boolean isActiveTracing()
Specifies whether this canary is to use active X-Ray tracing when it runs. Active tracing enables this canary run to be displayed in the ServiceLens and X-Ray service maps even if the canary does not hit an endpoint that has X-Ray tracing enabled. Using X-Ray tracing incurs charges. For more information, see Canaries and X-Ray tracing.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for their
canary runtime.
You can enable active tracing only for canaries that use version syn-nodejs-2.0
or later for
their canary runtime.
public Map<String,String> getEnvironmentVariables()
Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:
{ "key1" : "value1", "key2" : "value2", ...}
Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.
The environment variables keys and values are not encrypted. Do not store sensitive information in this field.
{ "key1" : "value1", "key2" : "value2", ...}
Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.
The environment variables keys and values are not encrypted. Do not store sensitive information in this field.
public void setEnvironmentVariables(Map<String,String> environmentVariables)
Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:
{ "key1" : "value1", "key2" : "value2", ...}
Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.
The environment variables keys and values are not encrypted. Do not store sensitive information in this field.
environmentVariables
- Specifies the keys and values to use for any environment variables used in the canary script. Use the
following format:
{ "key1" : "value1", "key2" : "value2", ...}
Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.
The environment variables keys and values are not encrypted. Do not store sensitive information in this field.
public CanaryRunConfigInput withEnvironmentVariables(Map<String,String> environmentVariables)
Specifies the keys and values to use for any environment variables used in the canary script. Use the following format:
{ "key1" : "value1", "key2" : "value2", ...}
Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.
The environment variables keys and values are not encrypted. Do not store sensitive information in this field.
environmentVariables
- Specifies the keys and values to use for any environment variables used in the canary script. Use the
following format:
{ "key1" : "value1", "key2" : "value2", ...}
Keys must start with a letter and be at least two characters. The total size of your environment variables cannot exceed 4 KB. You can't specify any Lambda reserved environment variables as the keys for your environment variables. For more information about reserved keys, see Runtime environment variables.
The environment variables keys and values are not encrypted. Do not store sensitive information in this field.
public CanaryRunConfigInput addEnvironmentVariablesEntry(String key, String value)
public CanaryRunConfigInput clearEnvironmentVariablesEntries()
public String toString()
toString
in class Object
Object.toString()
public CanaryRunConfigInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.