aws-sdk-synthetics 1.12.0 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-synthetics.rb +1 -1
- data/lib/aws-sdk-synthetics/client.rb +43 -4
- data/lib/aws-sdk-synthetics/client_api.rb +24 -0
- data/lib/aws-sdk-synthetics/types.rb +196 -22
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66a65c42837b8e51d5b78de7c96423feb6b7fd11676689afc24ecd51ad4980b1
|
4
|
+
data.tar.gz: 6533e4402aaef3d3e0bd9acba7898094b3735e6c82a90b0b9716b714efcfa92d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3211f791840cffcc86db0581dbedcf10a335151174d1499bcf7ef30ed18885d1d355af138a551391736ade24692ca3b2aa5a181818e5008a765fd6ea0a70495d
|
7
|
+
data.tar.gz: '03559aeb71f154a69d7ceaa237780c601e2de8b2d0d4aac64ec7d04f0a04b38ae5a67409a20418c0c49cd897cb7351857c1178e242b8c2a216416af5ff9daab3'
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.16.0 (2021-08-06)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation updates for Visual Monitoring feature and other doc ticket fixes.
|
8
|
+
|
9
|
+
1.15.0 (2021-07-30)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.14.0 (2021-07-28)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.13.0 (2021-07-26)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - CloudWatch Synthetics now supports visual testing in its canaries.
|
23
|
+
|
4
24
|
1.12.0 (2021-03-10)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.16.0
|
data/lib/aws-sdk-synthetics.rb
CHANGED
@@ -375,7 +375,7 @@ module Aws::Synthetics
|
|
375
375
|
# @option params [required, String] :artifact_s3_location
|
376
376
|
# The location in Amazon S3 where Synthetics stores artifacts from the
|
377
377
|
# test runs of this canary. Artifacts include the log file, screenshots,
|
378
|
-
# and HAR files.
|
378
|
+
# and HAR files. The name of the S3 bucket can't include a period (.).
|
379
379
|
#
|
380
380
|
# @option params [required, String] :execution_role_arn
|
381
381
|
# The ARN of the IAM role to be used to run the canary. This role must
|
@@ -511,6 +511,11 @@ module Aws::Synthetics
|
|
511
511
|
# resp.canary.vpc_config.subnet_ids[0] #=> String
|
512
512
|
# resp.canary.vpc_config.security_group_ids #=> Array
|
513
513
|
# resp.canary.vpc_config.security_group_ids[0] #=> String
|
514
|
+
# resp.canary.visual_reference.base_screenshots #=> Array
|
515
|
+
# resp.canary.visual_reference.base_screenshots[0].screenshot_name #=> String
|
516
|
+
# resp.canary.visual_reference.base_screenshots[0].ignore_coordinates #=> Array
|
517
|
+
# resp.canary.visual_reference.base_screenshots[0].ignore_coordinates[0] #=> String
|
518
|
+
# resp.canary.visual_reference.base_canary_run_id #=> String
|
514
519
|
# resp.canary.tags #=> Hash
|
515
520
|
# resp.canary.tags["TagKey"] #=> String
|
516
521
|
#
|
@@ -637,6 +642,11 @@ module Aws::Synthetics
|
|
637
642
|
# resp.canaries[0].vpc_config.subnet_ids[0] #=> String
|
638
643
|
# resp.canaries[0].vpc_config.security_group_ids #=> Array
|
639
644
|
# resp.canaries[0].vpc_config.security_group_ids[0] #=> String
|
645
|
+
# resp.canaries[0].visual_reference.base_screenshots #=> Array
|
646
|
+
# resp.canaries[0].visual_reference.base_screenshots[0].screenshot_name #=> String
|
647
|
+
# resp.canaries[0].visual_reference.base_screenshots[0].ignore_coordinates #=> Array
|
648
|
+
# resp.canaries[0].visual_reference.base_screenshots[0].ignore_coordinates[0] #=> String
|
649
|
+
# resp.canaries[0].visual_reference.base_canary_run_id #=> String
|
640
650
|
# resp.canaries[0].tags #=> Hash
|
641
651
|
# resp.canaries[0].tags["TagKey"] #=> String
|
642
652
|
# resp.next_token #=> String
|
@@ -799,6 +809,11 @@ module Aws::Synthetics
|
|
799
809
|
# resp.canary.vpc_config.subnet_ids[0] #=> String
|
800
810
|
# resp.canary.vpc_config.security_group_ids #=> Array
|
801
811
|
# resp.canary.vpc_config.security_group_ids[0] #=> String
|
812
|
+
# resp.canary.visual_reference.base_screenshots #=> Array
|
813
|
+
# resp.canary.visual_reference.base_screenshots[0].screenshot_name #=> String
|
814
|
+
# resp.canary.visual_reference.base_screenshots[0].ignore_coordinates #=> Array
|
815
|
+
# resp.canary.visual_reference.base_screenshots[0].ignore_coordinates[0] #=> String
|
816
|
+
# resp.canary.visual_reference.base_canary_run_id #=> String
|
802
817
|
# resp.canary.tags #=> Hash
|
803
818
|
# resp.canary.tags["TagKey"] #=> String
|
804
819
|
#
|
@@ -968,8 +983,8 @@ module Aws::Synthetics
|
|
968
983
|
# use them to scope user permissions, by granting a user permission to
|
969
984
|
# access or change only resources with certain tag values.
|
970
985
|
#
|
971
|
-
# Tags don't have any semantic meaning to
|
972
|
-
# strictly as strings of characters.
|
986
|
+
# Tags don't have any semantic meaning to Amazon Web Services and are
|
987
|
+
# interpreted strictly as strings of characters.
|
973
988
|
#
|
974
989
|
# You can use the `TagResource` action with a canary that already has
|
975
990
|
# tags. If you specify a new tag key for the alarm, this tag is appended
|
@@ -1116,6 +1131,21 @@ module Aws::Synthetics
|
|
1116
1131
|
#
|
1117
1132
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html
|
1118
1133
|
#
|
1134
|
+
# @option params [Types::VisualReferenceInput] :visual_reference
|
1135
|
+
# Defines the screenshots to use as the baseline for comparisons during
|
1136
|
+
# visual monitoring comparisons during future runs of this canary. If
|
1137
|
+
# you omit this parameter, no changes are made to any baseline
|
1138
|
+
# screenshots that the canary might be using already.
|
1139
|
+
#
|
1140
|
+
# Visual monitoring is supported only on canaries running the
|
1141
|
+
# **syn-puppeteer-node-3.2** runtime or later. For more information, see
|
1142
|
+
# [ Visual monitoring][1] and [ Visual monitoring blueprint][2]
|
1143
|
+
#
|
1144
|
+
#
|
1145
|
+
#
|
1146
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html
|
1147
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html
|
1148
|
+
#
|
1119
1149
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1120
1150
|
#
|
1121
1151
|
# @example Request syntax with placeholder values
|
@@ -1149,6 +1179,15 @@ module Aws::Synthetics
|
|
1149
1179
|
# subnet_ids: ["SubnetId"],
|
1150
1180
|
# security_group_ids: ["SecurityGroupId"],
|
1151
1181
|
# },
|
1182
|
+
# visual_reference: {
|
1183
|
+
# base_screenshots: [
|
1184
|
+
# {
|
1185
|
+
# screenshot_name: "String", # required
|
1186
|
+
# ignore_coordinates: ["BaseScreenshotConfigIgnoreCoordinate"],
|
1187
|
+
# },
|
1188
|
+
# ],
|
1189
|
+
# base_canary_run_id: "String", # required
|
1190
|
+
# },
|
1152
1191
|
# })
|
1153
1192
|
#
|
1154
1193
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/UpdateCanary AWS API Documentation
|
@@ -1173,7 +1212,7 @@ module Aws::Synthetics
|
|
1173
1212
|
params: params,
|
1174
1213
|
config: config)
|
1175
1214
|
context[:gem_name] = 'aws-sdk-synthetics'
|
1176
|
-
context[:gem_version] = '1.
|
1215
|
+
context[:gem_version] = '1.16.0'
|
1177
1216
|
Seahorse::Client::Request.new(handlers, context)
|
1178
1217
|
end
|
1179
1218
|
|
@@ -13,6 +13,10 @@ module Aws::Synthetics
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
BaseScreenshot = Shapes::StructureShape.new(name: 'BaseScreenshot')
|
17
|
+
BaseScreenshotConfigIgnoreCoordinate = Shapes::StringShape.new(name: 'BaseScreenshotConfigIgnoreCoordinate')
|
18
|
+
BaseScreenshotIgnoreCoordinates = Shapes::ListShape.new(name: 'BaseScreenshotIgnoreCoordinates')
|
19
|
+
BaseScreenshots = Shapes::ListShape.new(name: 'BaseScreenshots')
|
16
20
|
Blob = Shapes::BlobShape.new(name: 'Blob')
|
17
21
|
Canaries = Shapes::ListShape.new(name: 'Canaries')
|
18
22
|
CanariesLastRun = Shapes::ListShape.new(name: 'CanariesLastRun')
|
@@ -93,10 +97,20 @@ module Aws::Synthetics
|
|
93
97
|
UpdateCanaryRequest = Shapes::StructureShape.new(name: 'UpdateCanaryRequest')
|
94
98
|
UpdateCanaryResponse = Shapes::StructureShape.new(name: 'UpdateCanaryResponse')
|
95
99
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
100
|
+
VisualReferenceInput = Shapes::StructureShape.new(name: 'VisualReferenceInput')
|
101
|
+
VisualReferenceOutput = Shapes::StructureShape.new(name: 'VisualReferenceOutput')
|
96
102
|
VpcConfigInput = Shapes::StructureShape.new(name: 'VpcConfigInput')
|
97
103
|
VpcConfigOutput = Shapes::StructureShape.new(name: 'VpcConfigOutput')
|
98
104
|
VpcId = Shapes::StringShape.new(name: 'VpcId')
|
99
105
|
|
106
|
+
BaseScreenshot.add_member(:screenshot_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ScreenshotName"))
|
107
|
+
BaseScreenshot.add_member(:ignore_coordinates, Shapes::ShapeRef.new(shape: BaseScreenshotIgnoreCoordinates, location_name: "IgnoreCoordinates"))
|
108
|
+
BaseScreenshot.struct_class = Types::BaseScreenshot
|
109
|
+
|
110
|
+
BaseScreenshotIgnoreCoordinates.member = Shapes::ShapeRef.new(shape: BaseScreenshotConfigIgnoreCoordinate)
|
111
|
+
|
112
|
+
BaseScreenshots.member = Shapes::ShapeRef.new(shape: BaseScreenshot)
|
113
|
+
|
100
114
|
Canaries.member = Shapes::ShapeRef.new(shape: Canary)
|
101
115
|
|
102
116
|
CanariesLastRun.member = Shapes::ShapeRef.new(shape: CanaryLastRun)
|
@@ -115,6 +129,7 @@ module Aws::Synthetics
|
|
115
129
|
Canary.add_member(:engine_arn, Shapes::ShapeRef.new(shape: FunctionArn, location_name: "EngineArn"))
|
116
130
|
Canary.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, location_name: "RuntimeVersion"))
|
117
131
|
Canary.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigOutput, location_name: "VpcConfig"))
|
132
|
+
Canary.add_member(:visual_reference, Shapes::ShapeRef.new(shape: VisualReferenceOutput, location_name: "VisualReference"))
|
118
133
|
Canary.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
119
134
|
Canary.struct_class = Types::Canary
|
120
135
|
|
@@ -307,6 +322,7 @@ module Aws::Synthetics
|
|
307
322
|
UpdateCanaryRequest.add_member(:success_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "SuccessRetentionPeriodInDays"))
|
308
323
|
UpdateCanaryRequest.add_member(:failure_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "FailureRetentionPeriodInDays"))
|
309
324
|
UpdateCanaryRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigInput, location_name: "VpcConfig"))
|
325
|
+
UpdateCanaryRequest.add_member(:visual_reference, Shapes::ShapeRef.new(shape: VisualReferenceInput, location_name: "VisualReference"))
|
310
326
|
UpdateCanaryRequest.struct_class = Types::UpdateCanaryRequest
|
311
327
|
|
312
328
|
UpdateCanaryResponse.struct_class = Types::UpdateCanaryResponse
|
@@ -314,6 +330,14 @@ module Aws::Synthetics
|
|
314
330
|
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
315
331
|
ValidationException.struct_class = Types::ValidationException
|
316
332
|
|
333
|
+
VisualReferenceInput.add_member(:base_screenshots, Shapes::ShapeRef.new(shape: BaseScreenshots, location_name: "BaseScreenshots"))
|
334
|
+
VisualReferenceInput.add_member(:base_canary_run_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "BaseCanaryRunId"))
|
335
|
+
VisualReferenceInput.struct_class = Types::VisualReferenceInput
|
336
|
+
|
337
|
+
VisualReferenceOutput.add_member(:base_screenshots, Shapes::ShapeRef.new(shape: BaseScreenshots, location_name: "BaseScreenshots"))
|
338
|
+
VisualReferenceOutput.add_member(:base_canary_run_id, Shapes::ShapeRef.new(shape: String, location_name: "BaseCanaryRunId"))
|
339
|
+
VisualReferenceOutput.struct_class = Types::VisualReferenceOutput
|
340
|
+
|
317
341
|
VpcConfigInput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIds, location_name: "SubnetIds"))
|
318
342
|
VpcConfigInput.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIds, location_name: "SecurityGroupIds"))
|
319
343
|
VpcConfigInput.struct_class = Types::VpcConfigInput
|
@@ -10,6 +10,39 @@
|
|
10
10
|
module Aws::Synthetics
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# A structure representing a screenshot that is used as a baseline
|
14
|
+
# during visual monitoring comparisons made by the canary.
|
15
|
+
#
|
16
|
+
# @note When making an API call, you may pass BaseScreenshot
|
17
|
+
# data as a hash:
|
18
|
+
#
|
19
|
+
# {
|
20
|
+
# screenshot_name: "String", # required
|
21
|
+
# ignore_coordinates: ["BaseScreenshotConfigIgnoreCoordinate"],
|
22
|
+
# }
|
23
|
+
#
|
24
|
+
# @!attribute [rw] screenshot_name
|
25
|
+
# The name of the screenshot. This is generated the first time the
|
26
|
+
# canary is run after the `UpdateCanary` operation that specified for
|
27
|
+
# this canary to perform visual monitoring.
|
28
|
+
# @return [String]
|
29
|
+
#
|
30
|
+
# @!attribute [rw] ignore_coordinates
|
31
|
+
# Coordinates that define the part of a screen to ignore during
|
32
|
+
# screenshot comparisons. To obtain the coordinates to use here, use
|
33
|
+
# the CloudWatch Logs console to draw the boundaries on the screen.
|
34
|
+
# For more information, see \\\{LINK\\}
|
35
|
+
# @return [Array<String>]
|
36
|
+
#
|
37
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/BaseScreenshot AWS API Documentation
|
38
|
+
#
|
39
|
+
class BaseScreenshot < Struct.new(
|
40
|
+
:screenshot_name,
|
41
|
+
:ignore_coordinates)
|
42
|
+
SENSITIVE = []
|
43
|
+
include Aws::Structure
|
44
|
+
end
|
45
|
+
|
13
46
|
# This structure contains all information about one canary in your
|
14
47
|
# account.
|
15
48
|
#
|
@@ -95,6 +128,13 @@ module Aws::Synthetics
|
|
95
128
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html
|
96
129
|
# @return [Types::VpcConfigOutput]
|
97
130
|
#
|
131
|
+
# @!attribute [rw] visual_reference
|
132
|
+
# If this canary performs visual monitoring by comparing screenshots,
|
133
|
+
# this structure contains the ID of the canary run to use as the
|
134
|
+
# baseline for screenshots, and the coordinates of any parts of the
|
135
|
+
# screen to ignore during the visual monitoring comparison.
|
136
|
+
# @return [Types::VisualReferenceOutput]
|
137
|
+
#
|
98
138
|
# @!attribute [rw] tags
|
99
139
|
# The list of key-value pairs that are associated with the canary.
|
100
140
|
# @return [Hash<String,String>]
|
@@ -116,6 +156,7 @@ module Aws::Synthetics
|
|
116
156
|
:engine_arn,
|
117
157
|
:runtime_version,
|
118
158
|
:vpc_config,
|
159
|
+
:visual_reference,
|
119
160
|
:tags)
|
120
161
|
SENSITIVE = []
|
121
162
|
include Aws::Structure
|
@@ -140,9 +181,8 @@ module Aws::Synthetics
|
|
140
181
|
# }
|
141
182
|
#
|
142
183
|
# @!attribute [rw] s3_bucket
|
143
|
-
# If your canary script is located in S3, specify the
|
144
|
-
# here.
|
145
|
-
# including `s3://` as the start of the bucket name.
|
184
|
+
# If your canary script is located in S3, specify the bucket name
|
185
|
+
# here. Do not include `s3://` as the start of the bucket name.
|
146
186
|
# @return [String]
|
147
187
|
#
|
148
188
|
# @!attribute [rw] s3_key
|
@@ -160,13 +200,15 @@ module Aws::Synthetics
|
|
160
200
|
#
|
161
201
|
# @!attribute [rw] zip_file
|
162
202
|
# If you input your canary script directly into the canary instead of
|
163
|
-
# referring to an S3 location, the value of this parameter is the
|
164
|
-
#
|
203
|
+
# referring to an S3 location, the value of this parameter is the
|
204
|
+
# base64-encoded contents of the .zip file that contains the script.
|
205
|
+
# It must be smaller than 256 Kb.
|
165
206
|
# @return [String]
|
166
207
|
#
|
167
208
|
# @!attribute [rw] handler
|
168
209
|
# The entry point to use for the source code when running the canary.
|
169
|
-
# This value must end with the string `.handler`.
|
210
|
+
# This value must end with the string `.handler`. The string is
|
211
|
+
# limited to 29 characters or fewer.
|
170
212
|
# @return [String]
|
171
213
|
#
|
172
214
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryCodeInput AWS API Documentation
|
@@ -286,12 +328,12 @@ module Aws::Synthetics
|
|
286
328
|
# @return [Integer]
|
287
329
|
#
|
288
330
|
# @!attribute [rw] active_tracing
|
289
|
-
# Specifies whether this canary is to use active
|
290
|
-
#
|
291
|
-
#
|
292
|
-
#
|
293
|
-
#
|
294
|
-
#
|
331
|
+
# Specifies whether this canary is to use active X-Ray tracing when it
|
332
|
+
# runs. Active tracing enables this canary run to be displayed in the
|
333
|
+
# ServiceLens and X-Ray service maps even if the canary does not hit
|
334
|
+
# an endpoint that has X-Ray tracing enabled. Using X-Ray tracing
|
335
|
+
# incurs charges. For more information, see [ Canaries and X-Ray
|
336
|
+
# tracing][1].
|
295
337
|
#
|
296
338
|
# You can enable active tracing only for canaries that use version
|
297
339
|
# `syn-nodejs-2.0` or later for their canary runtime.
|
@@ -341,7 +383,7 @@ module Aws::Synthetics
|
|
341
383
|
# @return [Integer]
|
342
384
|
#
|
343
385
|
# @!attribute [rw] active_tracing
|
344
|
-
# Displays whether this canary run used active
|
386
|
+
# Displays whether this canary run used active X-Ray tracing.
|
345
387
|
# @return [Boolean]
|
346
388
|
#
|
347
389
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryRunConfigOutput AWS API Documentation
|
@@ -413,9 +455,11 @@ module Aws::Synthetics
|
|
413
455
|
# }
|
414
456
|
#
|
415
457
|
# @!attribute [rw] expression
|
416
|
-
# A rate expression that defines how often
|
417
|
-
#
|
418
|
-
#
|
458
|
+
# A `rate` expression or a `cron` expression that defines how often
|
459
|
+
# the canary is to run.
|
460
|
+
#
|
461
|
+
# For a rate expression, The syntax is `rate(number unit)`. *unit* can
|
462
|
+
# be `minute`, `minutes`, or `hour`.
|
419
463
|
#
|
420
464
|
# For example, `rate(1 minute)` runs the canary once a minute,
|
421
465
|
# `rate(10 minutes)` runs it once every 10 minutes, and `rate(1 hour)`
|
@@ -424,6 +468,15 @@ module Aws::Synthetics
|
|
424
468
|
#
|
425
469
|
# Specifying `rate(0 minute)` or `rate(0 hour)` is a special value
|
426
470
|
# that causes the canary to run only once when it is started.
|
471
|
+
#
|
472
|
+
# Use `cron(expression)` to specify a cron expression. You can't
|
473
|
+
# schedule a canary to wait for more than a year before running. For
|
474
|
+
# information about the syntax for cron expressions, see [ Scheduling
|
475
|
+
# canary runs using cron][1].
|
476
|
+
#
|
477
|
+
#
|
478
|
+
#
|
479
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html
|
427
480
|
# @return [String]
|
428
481
|
#
|
429
482
|
# @!attribute [rw] duration_in_seconds
|
@@ -446,16 +499,27 @@ module Aws::Synthetics
|
|
446
499
|
# according to the schedule in the `Expression` value.
|
447
500
|
#
|
448
501
|
# @!attribute [rw] expression
|
449
|
-
# A rate expression that defines how often
|
450
|
-
#
|
451
|
-
#
|
502
|
+
# A `rate` expression or a `cron` expression that defines how often
|
503
|
+
# the canary is to run.
|
504
|
+
#
|
505
|
+
# For a rate expression, The syntax is `rate(number unit)`. *unit* can
|
506
|
+
# be `minute`, `minutes`, or `hour`.
|
452
507
|
#
|
453
508
|
# For example, `rate(1 minute)` runs the canary once a minute,
|
454
509
|
# `rate(10 minutes)` runs it once every 10 minutes, and `rate(1 hour)`
|
455
|
-
# runs it once every hour.
|
510
|
+
# runs it once every hour. You can specify a frequency between `rate(1
|
511
|
+
# minute)` and `rate(1 hour)`.
|
456
512
|
#
|
457
513
|
# Specifying `rate(0 minute)` or `rate(0 hour)` is a special value
|
458
514
|
# that causes the canary to run only once when it is started.
|
515
|
+
#
|
516
|
+
# Use `cron(expression)` to specify a cron expression. For information
|
517
|
+
# about the syntax for cron expressions, see [ Scheduling canary runs
|
518
|
+
# using cron][1].
|
519
|
+
#
|
520
|
+
#
|
521
|
+
#
|
522
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html
|
459
523
|
# @return [String]
|
460
524
|
#
|
461
525
|
# @!attribute [rw] duration_in_seconds
|
@@ -604,7 +668,8 @@ module Aws::Synthetics
|
|
604
668
|
# @!attribute [rw] artifact_s3_location
|
605
669
|
# The location in Amazon S3 where Synthetics stores artifacts from the
|
606
670
|
# test runs of this canary. Artifacts include the log file,
|
607
|
-
# screenshots, and HAR files.
|
671
|
+
# screenshots, and HAR files. The name of the S3 bucket can't include
|
672
|
+
# a period (.).
|
608
673
|
# @return [String]
|
609
674
|
#
|
610
675
|
# @!attribute [rw] execution_role_arn
|
@@ -1227,6 +1292,15 @@ module Aws::Synthetics
|
|
1227
1292
|
# subnet_ids: ["SubnetId"],
|
1228
1293
|
# security_group_ids: ["SecurityGroupId"],
|
1229
1294
|
# },
|
1295
|
+
# visual_reference: {
|
1296
|
+
# base_screenshots: [
|
1297
|
+
# {
|
1298
|
+
# screenshot_name: "String", # required
|
1299
|
+
# ignore_coordinates: ["BaseScreenshotConfigIgnoreCoordinate"],
|
1300
|
+
# },
|
1301
|
+
# ],
|
1302
|
+
# base_canary_run_id: "String", # required
|
1303
|
+
# },
|
1230
1304
|
# }
|
1231
1305
|
#
|
1232
1306
|
# @!attribute [rw] name
|
@@ -1307,6 +1381,22 @@ module Aws::Synthetics
|
|
1307
1381
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html
|
1308
1382
|
# @return [Types::VpcConfigInput]
|
1309
1383
|
#
|
1384
|
+
# @!attribute [rw] visual_reference
|
1385
|
+
# Defines the screenshots to use as the baseline for comparisons
|
1386
|
+
# during visual monitoring comparisons during future runs of this
|
1387
|
+
# canary. If you omit this parameter, no changes are made to any
|
1388
|
+
# baseline screenshots that the canary might be using already.
|
1389
|
+
#
|
1390
|
+
# Visual monitoring is supported only on canaries running the
|
1391
|
+
# **syn-puppeteer-node-3.2** runtime or later. For more information,
|
1392
|
+
# see [ Visual monitoring][1] and [ Visual monitoring blueprint][2]
|
1393
|
+
#
|
1394
|
+
#
|
1395
|
+
#
|
1396
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html
|
1397
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html
|
1398
|
+
# @return [Types::VisualReferenceInput]
|
1399
|
+
#
|
1310
1400
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/UpdateCanaryRequest AWS API Documentation
|
1311
1401
|
#
|
1312
1402
|
class UpdateCanaryRequest < Struct.new(
|
@@ -1318,7 +1408,8 @@ module Aws::Synthetics
|
|
1318
1408
|
:run_config,
|
1319
1409
|
:success_retention_period_in_days,
|
1320
1410
|
:failure_retention_period_in_days,
|
1321
|
-
:vpc_config
|
1411
|
+
:vpc_config,
|
1412
|
+
:visual_reference)
|
1322
1413
|
SENSITIVE = []
|
1323
1414
|
include Aws::Structure
|
1324
1415
|
end
|
@@ -1340,6 +1431,89 @@ module Aws::Synthetics
|
|
1340
1431
|
include Aws::Structure
|
1341
1432
|
end
|
1342
1433
|
|
1434
|
+
# An object that specifies what screenshots to use as a baseline for
|
1435
|
+
# visual monitoring by this canary, and optionally the parts of the
|
1436
|
+
# screenshots to ignore during the visual monitoring comparison.
|
1437
|
+
#
|
1438
|
+
# Visual monitoring is supported only on canaries running the
|
1439
|
+
# **syn-puppeteer-node-3.2** runtime or later. For more information, see
|
1440
|
+
# [ Visual monitoring][1] and [ Visual monitoring blueprint][2]
|
1441
|
+
#
|
1442
|
+
#
|
1443
|
+
#
|
1444
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html
|
1445
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html
|
1446
|
+
#
|
1447
|
+
# @note When making an API call, you may pass VisualReferenceInput
|
1448
|
+
# data as a hash:
|
1449
|
+
#
|
1450
|
+
# {
|
1451
|
+
# base_screenshots: [
|
1452
|
+
# {
|
1453
|
+
# screenshot_name: "String", # required
|
1454
|
+
# ignore_coordinates: ["BaseScreenshotConfigIgnoreCoordinate"],
|
1455
|
+
# },
|
1456
|
+
# ],
|
1457
|
+
# base_canary_run_id: "String", # required
|
1458
|
+
# }
|
1459
|
+
#
|
1460
|
+
# @!attribute [rw] base_screenshots
|
1461
|
+
# An array of screenshots that will be used as the baseline for visual
|
1462
|
+
# monitoring in future runs of this canary. If there is a screenshot
|
1463
|
+
# that you don't want to be used for visual monitoring, remove it
|
1464
|
+
# from this array.
|
1465
|
+
# @return [Array<Types::BaseScreenshot>]
|
1466
|
+
#
|
1467
|
+
# @!attribute [rw] base_canary_run_id
|
1468
|
+
# Specifies which canary run to use the screenshots from as the
|
1469
|
+
# baseline for future visual monitoring with this canary. Valid values
|
1470
|
+
# are `nextrun` to use the screenshots from the next run after this
|
1471
|
+
# update is made, `lastrun` to use the screenshots from the most
|
1472
|
+
# recent run before this update was made, or the value of `Id` in the
|
1473
|
+
# [ CanaryRun][1] from any past run of this canary.
|
1474
|
+
#
|
1475
|
+
#
|
1476
|
+
#
|
1477
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_CanaryRun.html
|
1478
|
+
# @return [String]
|
1479
|
+
#
|
1480
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/VisualReferenceInput AWS API Documentation
|
1481
|
+
#
|
1482
|
+
class VisualReferenceInput < Struct.new(
|
1483
|
+
:base_screenshots,
|
1484
|
+
:base_canary_run_id)
|
1485
|
+
SENSITIVE = []
|
1486
|
+
include Aws::Structure
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
# If this canary performs visual monitoring by comparing screenshots,
|
1490
|
+
# this structure contains the ID of the canary run that is used as the
|
1491
|
+
# baseline for screenshots, and the coordinates of any parts of those
|
1492
|
+
# screenshots that are ignored during visual monitoring comparison.
|
1493
|
+
#
|
1494
|
+
# Visual monitoring is supported only on canaries running the
|
1495
|
+
# **syn-puppeteer-node-3.2** runtime or later.
|
1496
|
+
#
|
1497
|
+
# @!attribute [rw] base_screenshots
|
1498
|
+
# An array of screenshots that are used as the baseline for
|
1499
|
+
# comparisons during visual monitoring.
|
1500
|
+
# @return [Array<Types::BaseScreenshot>]
|
1501
|
+
#
|
1502
|
+
# @!attribute [rw] base_canary_run_id
|
1503
|
+
# The ID of the canary run that produced the screenshots that are used
|
1504
|
+
# as the baseline for visual monitoring comparisons during future runs
|
1505
|
+
# of this canary.
|
1506
|
+
# @return [String]
|
1507
|
+
#
|
1508
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/VisualReferenceOutput AWS API Documentation
|
1509
|
+
#
|
1510
|
+
class VisualReferenceOutput < Struct.new(
|
1511
|
+
:base_screenshots,
|
1512
|
+
:base_canary_run_id)
|
1513
|
+
SENSITIVE = []
|
1514
|
+
include Aws::Structure
|
1515
|
+
end
|
1516
|
+
|
1343
1517
|
# If this canary is to test an endpoint in a VPC, this structure
|
1344
1518
|
# contains information about the subnets and security groups of the VPC
|
1345
1519
|
# endpoint. For more information, see [ Running a Canary in a VPC][1].
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-synthetics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.119.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.119.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
|
|
66
66
|
licenses:
|
67
67
|
- Apache-2.0
|
68
68
|
metadata:
|
69
|
-
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
70
|
-
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/
|
69
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-synthetics
|
70
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-synthetics/CHANGELOG.md
|
71
71
|
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
|
-
|
87
|
-
rubygems_version: 2.7.6.2
|
86
|
+
rubygems_version: 3.1.6
|
88
87
|
signing_key:
|
89
88
|
specification_version: 4
|
90
89
|
summary: AWS SDK for Ruby - Synthetics
|