amazonka-synthetics-2.0: Amazon Synthetics SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Synthetics.UpdateCanary

Description

Updates the configuration 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

Creating a Request

data UpdateCanary Source #

See: newUpdateCanary smart constructor.

Constructors

UpdateCanary' 

Fields

  • artifactConfig :: Maybe ArtifactConfigInput

    A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.

  • artifactS3Location :: Maybe Text

    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 (.).

  • code :: Maybe CanaryCodeInput

    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.

  • executionRoleArn :: Maybe Text

    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
  • failureRetentionPeriodInDays :: Maybe Natural

    The number of days to retain data about failed runs of this canary.

  • runConfig :: Maybe CanaryRunConfigInput

    A structure that contains the timeout value that is used for each individual run of the canary.

    The environment variables keys and values are not encrypted. Do not store sensitive information in this field.

  • runtimeVersion :: Maybe Text

    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.

  • schedule :: Maybe CanaryScheduleInput

    A structure that contains information about how often the canary is to run, and when these runs are to stop.

  • successRetentionPeriodInDays :: Maybe Natural

    The number of days to retain data about successful runs of this canary.

  • visualReference :: Maybe VisualReferenceInput

    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

  • vpcConfig :: Maybe VpcConfigInput

    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.

  • name :: Text

    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.

Instances

Instances details
ToJSON UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

ToHeaders UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

ToPath UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

ToQuery UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

AWSRequest UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Associated Types

type AWSResponse UpdateCanary #

Generic UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Associated Types

type Rep UpdateCanary :: Type -> Type #

Read UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Show UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

NFData UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Methods

rnf :: UpdateCanary -> () #

Eq UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Hashable UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

type AWSResponse UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

type Rep UpdateCanary Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

type Rep UpdateCanary = D1 ('MetaData "UpdateCanary" "Amazonka.Synthetics.UpdateCanary" "amazonka-synthetics-2.0-3I8gICXDswl2F1HDbijRHZ" 'False) (C1 ('MetaCons "UpdateCanary'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "artifactConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ArtifactConfigInput)) :*: (S1 ('MetaSel ('Just "artifactS3Location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CanaryCodeInput)))) :*: (S1 ('MetaSel ('Just "executionRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "failureRetentionPeriodInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "runConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CanaryRunConfigInput))))) :*: ((S1 ('MetaSel ('Just "runtimeVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "schedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CanaryScheduleInput)) :*: S1 ('MetaSel ('Just "successRetentionPeriodInDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: (S1 ('MetaSel ('Just "visualReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VisualReferenceInput)) :*: (S1 ('MetaSel ('Just "vpcConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VpcConfigInput)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newUpdateCanary Source #

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:

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.

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 (.).

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.

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

UpdateCanary, updateCanary_failureRetentionPeriodInDays - The number of days to retain data about failed runs of this canary.

UpdateCanary, updateCanary_runConfig - A structure that contains the timeout value that is used for each individual run of the canary.

The environment variables keys and values are not encrypted. Do not store sensitive information in this field.

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.

UpdateCanary, updateCanary_schedule - A structure that contains information about how often the canary is to run, and when these runs are to stop.

UpdateCanary, updateCanary_successRetentionPeriodInDays - The number of days to retain data about successful runs of this canary.

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

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.

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_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_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_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_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_failureRetentionPeriodInDays :: Lens' UpdateCanary (Maybe Natural) Source #

The number of days to retain data about failed runs of this canary.

updateCanary_runConfig :: Lens' UpdateCanary (Maybe CanaryRunConfigInput) Source #

A structure that contains the timeout value that is used for each individual run of the canary.

The environment variables keys and values are not encrypted. Do not store sensitive information in this field.

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_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_successRetentionPeriodInDays :: Lens' UpdateCanary (Maybe Natural) Source #

The number of days to retain data about successful runs of this canary.

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_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_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.

Constructors

UpdateCanaryResponse' 

Fields

Instances

Instances details
Generic UpdateCanaryResponse Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Associated Types

type Rep UpdateCanaryResponse :: Type -> Type #

Read UpdateCanaryResponse Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Show UpdateCanaryResponse Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

NFData UpdateCanaryResponse Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

Methods

rnf :: UpdateCanaryResponse -> () #

Eq UpdateCanaryResponse Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

type Rep UpdateCanaryResponse Source # 
Instance details

Defined in Amazonka.Synthetics.UpdateCanary

type Rep UpdateCanaryResponse = D1 ('MetaData "UpdateCanaryResponse" "Amazonka.Synthetics.UpdateCanary" "amazonka-synthetics-2.0-3I8gICXDswl2F1HDbijRHZ" 'False) (C1 ('MetaCons "UpdateCanaryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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