Class: Aws::Synthetics::Types::Canary

Inherits:
Struct
  • Object
show all
Includes:
Aws::Structure
Defined in:
lib/aws-sdk-synthetics/types.rb

Overview

This structure contains all information about one canary in your account.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#artifact_configTypes::ArtifactConfigOutput

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



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#artifact_s3_locationString

The location in Amazon S3 where Synthetics stores artifacts from the runs of this canary. Artifacts include the log file, screenshots, and HAR files.

Returns:

  • (String)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#codeTypes::CanaryCodeOutput

This structure contains information about the canary’s Lambda handler and where its code is stored by CloudWatch Synthetics.



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#engine_arnString

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

[1]: docs.aws.amazon.com/lambda/latest/dg/lambda-api-permissions-ref.html

Returns:

  • (String)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#execution_role_arnString

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.

Returns:

  • (String)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#failure_retention_period_in_daysInteger

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

Returns:

  • (Integer)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#idString

The unique ID of this canary.

Returns:

  • (String)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the canary.

Returns:

  • (String)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#run_configTypes::CanaryRunConfigOutput

A structure that contains information about a canary run.



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#runtime_versionString

Specifies the runtime version to use for the canary. For more information about runtime versions, see [ Canary Runtime Versions].

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html

Returns:

  • (String)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#scheduleTypes::CanaryScheduleOutput

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



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#statusTypes::CanaryStatus

A structure that contains information about the canary’s status.

Returns:



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#success_retention_period_in_daysInteger

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

Returns:

  • (Integer)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#tagsHash<String,String>

The list of key-value pairs that are associated with the canary.

Returns:

  • (Hash<String,String>)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#timelineTypes::CanaryTimeline

A structure that contains information about when the canary was created, modified, and most recently run.



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#visual_referenceTypes::VisualReferenceOutput

If this canary performs visual monitoring by comparing screenshots, this structure contains the ID of the canary run to use as the baseline for screenshots, and the coordinates of any parts of the screen to ignore during the visual monitoring comparison.



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end

#vpc_configTypes::VpcConfigOutput

If this canary is to test an endpoint in a VPC, this structure contains information about the subnets and security groups of the VPC endpoint. For more information, see [ Running a Canary in a VPC].

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-synthetics/types.rb', line 224

class Canary < Struct.new(
  :id,
  :name,
  :code,
  :execution_role_arn,
  :schedule,
  :run_config,
  :success_retention_period_in_days,
  :failure_retention_period_in_days,
  :status,
  :timeline,
  :artifact_s3_location,
  :engine_arn,
  :runtime_version,
  :vpc_config,
  :visual_reference,
  :tags,
  :artifact_config)
  SENSITIVE = []
  include Aws::Structure
end