Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Use this operation to change the settings of a canary that has already been created.
You can't use this operation to update the tags of an existing canary. To change the tags of an existing canary, use TagResource.
Synopsis
- data UpdateCanary = UpdateCanary' {
- successRetentionPeriodInDays :: Maybe Natural
- schedule :: Maybe CanaryScheduleInput
- artifactS3Location :: Maybe Text
- runConfig :: Maybe CanaryRunConfigInput
- executionRoleArn :: Maybe Text
- runtimeVersion :: Maybe Text
- failureRetentionPeriodInDays :: Maybe Natural
- artifactConfig :: Maybe ArtifactConfigInput
- vpcConfig :: Maybe VpcConfigInput
- visualReference :: Maybe VisualReferenceInput
- code :: Maybe CanaryCodeInput
- name :: Text
- newUpdateCanary :: Text -> UpdateCanary
- updateCanary_successRetentionPeriodInDays :: Lens' UpdateCanary (Maybe Natural)
- updateCanary_schedule :: Lens' UpdateCanary (Maybe CanaryScheduleInput)
- updateCanary_artifactS3Location :: Lens' UpdateCanary (Maybe Text)
- updateCanary_runConfig :: Lens' UpdateCanary (Maybe CanaryRunConfigInput)
- updateCanary_executionRoleArn :: Lens' UpdateCanary (Maybe Text)
- updateCanary_runtimeVersion :: Lens' UpdateCanary (Maybe Text)
- updateCanary_failureRetentionPeriodInDays :: Lens' UpdateCanary (Maybe Natural)
- updateCanary_artifactConfig :: Lens' UpdateCanary (Maybe ArtifactConfigInput)
- updateCanary_vpcConfig :: Lens' UpdateCanary (Maybe VpcConfigInput)
- updateCanary_visualReference :: Lens' UpdateCanary (Maybe VisualReferenceInput)
- updateCanary_code :: Lens' UpdateCanary (Maybe CanaryCodeInput)
- updateCanary_name :: Lens' UpdateCanary Text
- data UpdateCanaryResponse = UpdateCanaryResponse' {
- httpStatus :: Int
- newUpdateCanaryResponse :: Int -> UpdateCanaryResponse
- updateCanaryResponse_httpStatus :: Lens' UpdateCanaryResponse Int
Creating a Request
data UpdateCanary Source #
See: newUpdateCanary
smart constructor.
UpdateCanary' | |
|
Instances
Create a value of UpdateCanary
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:successRetentionPeriodInDays:UpdateCanary'
, updateCanary_successRetentionPeriodInDays
- The number of days to retain data about successful runs of this canary.
$sel:schedule:UpdateCanary'
, updateCanary_schedule
- A structure that contains information about how often the canary is to
run, and when these runs are to stop.
$sel:artifactS3Location:UpdateCanary'
, updateCanary_artifactS3Location
- The location in Amazon S3 where Synthetics stores artifacts from the
test runs of this canary. Artifacts include the log file, screenshots,
and HAR files. The name of the S3 bucket can't include a period (.).
$sel:runConfig:UpdateCanary'
, updateCanary_runConfig
- A structure that contains the timeout value that is used for each
individual run of the canary.
$sel:executionRoleArn:UpdateCanary'
, updateCanary_executionRoleArn
- The ARN of the IAM role to be used to run the canary. This role must
already exist, and must include lambda.amazonaws.com
as a principal in
the trust policy. The role must also have the following permissions:
s3:PutObject
s3:GetBucketLocation
s3:ListAllMyBuckets
cloudwatch:PutMetricData
logs:CreateLogGroup
logs:CreateLogStream
logs:CreateLogStream
$sel:runtimeVersion:UpdateCanary'
, updateCanary_runtimeVersion
- Specifies the runtime version to use for the canary. For a list of valid
runtime versions and for more information about runtime versions, see
Canary Runtime Versions.
$sel:failureRetentionPeriodInDays:UpdateCanary'
, updateCanary_failureRetentionPeriodInDays
- The number of days to retain data about failed runs of this canary.
$sel:artifactConfig:UpdateCanary'
, updateCanary_artifactConfig
- A structure that contains the configuration for canary artifacts,
including the encryption-at-rest settings for artifacts that the canary
uploads to Amazon S3.
$sel:vpcConfig:UpdateCanary'
, updateCanary_vpcConfig
- If this canary is to test an endpoint in a VPC, this structure contains
information about the subnet and security groups of the VPC endpoint.
For more information, see
Running a Canary in a VPC.
$sel:visualReference:UpdateCanary'
, updateCanary_visualReference
- Defines the screenshots to use as the baseline for comparisons during
visual monitoring comparisons during future runs of this canary. If you
omit this parameter, no changes are made to any baseline screenshots
that the canary might be using already.
Visual monitoring is supported only on canaries running the syn-puppeteer-node-3.2 runtime or later. For more information, see Visual monitoring and Visual monitoring blueprint
$sel:code:UpdateCanary'
, updateCanary_code
- A structure that includes the entry point from which the canary should
start running your script. If the script is stored in an S3 bucket, the
bucket name, key, and version are also included.
$sel:name:UpdateCanary'
, updateCanary_name
- The name of the canary that you want to update. To find the names of
your canaries, use
DescribeCanaries.
You cannot change the name of a canary that has already been created.
Request Lenses
updateCanary_successRetentionPeriodInDays :: Lens' UpdateCanary (Maybe Natural) Source #
The number of days to retain data about successful runs of this canary.
updateCanary_schedule :: Lens' UpdateCanary (Maybe CanaryScheduleInput) Source #
A structure that contains information about how often the canary is to run, and when these runs are to stop.
updateCanary_artifactS3Location :: Lens' UpdateCanary (Maybe Text) Source #
The location in Amazon S3 where Synthetics stores artifacts from the test runs of this canary. Artifacts include the log file, screenshots, and HAR files. The name of the S3 bucket can't include a period (.).
updateCanary_runConfig :: Lens' UpdateCanary (Maybe CanaryRunConfigInput) Source #
A structure that contains the timeout value that is used for each individual run of the canary.
updateCanary_executionRoleArn :: Lens' UpdateCanary (Maybe Text) Source #
The ARN of the IAM role to be used to run the canary. This role must
already exist, and must include lambda.amazonaws.com
as a principal in
the trust policy. The role must also have the following permissions:
s3:PutObject
s3:GetBucketLocation
s3:ListAllMyBuckets
cloudwatch:PutMetricData
logs:CreateLogGroup
logs:CreateLogStream
logs:CreateLogStream
updateCanary_runtimeVersion :: Lens' UpdateCanary (Maybe Text) Source #
Specifies the runtime version to use for the canary. For a list of valid runtime versions and for more information about runtime versions, see Canary Runtime Versions.
updateCanary_failureRetentionPeriodInDays :: Lens' UpdateCanary (Maybe Natural) Source #
The number of days to retain data about failed runs of this canary.
updateCanary_artifactConfig :: Lens' UpdateCanary (Maybe ArtifactConfigInput) Source #
A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
updateCanary_vpcConfig :: Lens' UpdateCanary (Maybe VpcConfigInput) Source #
If this canary is to test an endpoint in a VPC, this structure contains information about the subnet and security groups of the VPC endpoint. For more information, see Running a Canary in a VPC.
updateCanary_visualReference :: Lens' UpdateCanary (Maybe VisualReferenceInput) Source #
Defines the screenshots to use as the baseline for comparisons during visual monitoring comparisons during future runs of this canary. If you omit this parameter, no changes are made to any baseline screenshots that the canary might be using already.
Visual monitoring is supported only on canaries running the syn-puppeteer-node-3.2 runtime or later. For more information, see Visual monitoring and Visual monitoring blueprint
updateCanary_code :: Lens' UpdateCanary (Maybe CanaryCodeInput) Source #
A structure that includes the entry point from which the canary should start running your script. If the script is stored in an S3 bucket, the bucket name, key, and version are also included.
updateCanary_name :: Lens' UpdateCanary Text Source #
The name of the canary that you want to update. To find the names of your canaries, use DescribeCanaries.
You cannot change the name of a canary that has already been created.
Destructuring the Response
data UpdateCanaryResponse Source #
See: newUpdateCanaryResponse
smart constructor.
UpdateCanaryResponse' | |
|
Instances
newUpdateCanaryResponse Source #
Create a value of UpdateCanaryResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateCanaryResponse'
, updateCanaryResponse_httpStatus
- The response's http status code.
Response Lenses
updateCanaryResponse_httpStatus :: Lens' UpdateCanaryResponse Int Source #
The response's http status code.