aws-sdk-synthetics 1.61.0 → 1.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-synthetics/client.rb +282 -5
- data/lib/aws-sdk-synthetics/client_api.rb +53 -0
- data/lib/aws-sdk-synthetics/errors.rb +16 -0
- data/lib/aws-sdk-synthetics/types.rb +334 -13
- data/lib/aws-sdk-synthetics.rb +1 -1
- data/sig/client.rbs +56 -3
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +43 -0
- metadata +3 -6
@@ -10,6 +10,19 @@
|
|
10
10
|
module Aws::Synthetics
|
11
11
|
module Types
|
12
12
|
|
13
|
+
# You don't have permission to perform this operation on this resource.
|
14
|
+
#
|
15
|
+
# @!attribute [rw] message
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/AccessDeniedException AWS API Documentation
|
19
|
+
#
|
20
|
+
class AccessDeniedException < Struct.new(
|
21
|
+
:message)
|
22
|
+
SENSITIVE = []
|
23
|
+
include Aws::Structure
|
24
|
+
end
|
25
|
+
|
13
26
|
# A structure that contains the configuration for canary artifacts,
|
14
27
|
# including the encryption-at-rest settings for artifacts that the
|
15
28
|
# canary uploads to Amazon S3.
|
@@ -150,10 +163,26 @@ module Aws::Synthetics
|
|
150
163
|
# @!attribute [rw] success_retention_period_in_days
|
151
164
|
# The number of days to retain data about successful runs of this
|
152
165
|
# canary.
|
166
|
+
#
|
167
|
+
# This setting affects the range of information returned by
|
168
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
169
|
+
# the Synthetics console.
|
170
|
+
#
|
171
|
+
#
|
172
|
+
#
|
173
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
153
174
|
# @return [Integer]
|
154
175
|
#
|
155
176
|
# @!attribute [rw] failure_retention_period_in_days
|
156
177
|
# The number of days to retain data about failed runs of this canary.
|
178
|
+
#
|
179
|
+
# This setting affects the range of information returned by
|
180
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
181
|
+
# the Synthetics console.
|
182
|
+
#
|
183
|
+
#
|
184
|
+
#
|
185
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
157
186
|
# @return [Integer]
|
158
187
|
#
|
159
188
|
# @!attribute [rw] status
|
@@ -234,6 +263,10 @@ module Aws::Synthetics
|
|
234
263
|
# canary uploads to Amazon S3.
|
235
264
|
# @return [Types::ArtifactConfigOutput]
|
236
265
|
#
|
266
|
+
# @!attribute [rw] dry_run_config
|
267
|
+
# Returns the dry run configurations for a canary.
|
268
|
+
# @return [Types::DryRunConfigOutput]
|
269
|
+
#
|
237
270
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/Canary AWS API Documentation
|
238
271
|
#
|
239
272
|
class Canary < Struct.new(
|
@@ -254,7 +287,8 @@ module Aws::Synthetics
|
|
254
287
|
:visual_reference,
|
255
288
|
:provisioned_resource_cleanup,
|
256
289
|
:tags,
|
257
|
-
:artifact_config
|
290
|
+
:artifact_config,
|
291
|
+
:dry_run_config)
|
258
292
|
SENSITIVE = []
|
259
293
|
include Aws::Structure
|
260
294
|
end
|
@@ -275,8 +309,9 @@ module Aws::Synthetics
|
|
275
309
|
# [Packaging your Node.js canary files][1]
|
276
310
|
#
|
277
311
|
# * For Python canaries, the folder structure must be
|
278
|
-
# `python/myCanaryFilename.
|
279
|
-
# ` For more information, see
|
312
|
+
# `python/myCanaryFilename.py ` or
|
313
|
+
# `python/myFolder/myCanaryFilename.py ` For more information, see
|
314
|
+
# [Packaging your Python canary files][2]
|
280
315
|
#
|
281
316
|
#
|
282
317
|
#
|
@@ -355,6 +390,21 @@ module Aws::Synthetics
|
|
355
390
|
include Aws::Structure
|
356
391
|
end
|
357
392
|
|
393
|
+
# Returns the dry run configurations set for a canary.
|
394
|
+
#
|
395
|
+
# @!attribute [rw] dry_run_id
|
396
|
+
# The DryRunId associated with an existing canary’s dry run. You can
|
397
|
+
# use this DryRunId to retrieve information about the dry run.
|
398
|
+
# @return [String]
|
399
|
+
#
|
400
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryDryRunConfigOutput AWS API Documentation
|
401
|
+
#
|
402
|
+
class CanaryDryRunConfigOutput < Struct.new(
|
403
|
+
:dry_run_id)
|
404
|
+
SENSITIVE = []
|
405
|
+
include Aws::Structure
|
406
|
+
end
|
407
|
+
|
358
408
|
# This structure contains information about the most recent run of a
|
359
409
|
# single canary.
|
360
410
|
#
|
@@ -398,6 +448,10 @@ module Aws::Synthetics
|
|
398
448
|
# Artifacts include the log file, screenshots, and HAR files.
|
399
449
|
# @return [String]
|
400
450
|
#
|
451
|
+
# @!attribute [rw] dry_run_config
|
452
|
+
# Returns the dry run configurations for a canary.
|
453
|
+
# @return [Types::CanaryDryRunConfigOutput]
|
454
|
+
#
|
401
455
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryRun AWS API Documentation
|
402
456
|
#
|
403
457
|
class CanaryRun < Struct.new(
|
@@ -405,7 +459,8 @@ module Aws::Synthetics
|
|
405
459
|
:name,
|
406
460
|
:status,
|
407
461
|
:timeline,
|
408
|
-
:artifact_s3_location
|
462
|
+
:artifact_s3_location,
|
463
|
+
:dry_run_config)
|
409
464
|
SENSITIVE = []
|
410
465
|
include Aws::Structure
|
411
466
|
end
|
@@ -454,8 +509,10 @@ module Aws::Synthetics
|
|
454
509
|
# for your environment variables. For more information about reserved
|
455
510
|
# keys, see [ Runtime environment variables][1].
|
456
511
|
#
|
457
|
-
#
|
458
|
-
#
|
512
|
+
# Environment variable keys and values are encrypted at rest using
|
513
|
+
# Amazon Web Services owned KMS keys. However, the environment
|
514
|
+
# variables are not encrypted on the client side. Do not store
|
515
|
+
# sensitive information in them.
|
459
516
|
#
|
460
517
|
#
|
461
518
|
#
|
@@ -758,20 +815,38 @@ module Aws::Synthetics
|
|
758
815
|
# A structure that contains the configuration for individual canary
|
759
816
|
# runs, such as timeout value and environment variables.
|
760
817
|
#
|
761
|
-
#
|
762
|
-
#
|
818
|
+
# Environment variable keys and values are encrypted at rest using
|
819
|
+
# Amazon Web Services owned KMS keys. However, the environment
|
820
|
+
# variables are not encrypted on the client side. Do not store
|
821
|
+
# sensitive information in them.
|
763
822
|
# @return [Types::CanaryRunConfigInput]
|
764
823
|
#
|
765
824
|
# @!attribute [rw] success_retention_period_in_days
|
766
825
|
# The number of days to retain data about successful runs of this
|
767
826
|
# canary. If you omit this field, the default of 31 days is used. The
|
768
827
|
# valid range is 1 to 455 days.
|
828
|
+
#
|
829
|
+
# This setting affects the range of information returned by
|
830
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
831
|
+
# the Synthetics console.
|
832
|
+
#
|
833
|
+
#
|
834
|
+
#
|
835
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
769
836
|
# @return [Integer]
|
770
837
|
#
|
771
838
|
# @!attribute [rw] failure_retention_period_in_days
|
772
839
|
# The number of days to retain data about failed runs of this canary.
|
773
840
|
# If you omit this field, the default of 31 days is used. The valid
|
774
841
|
# range is 1 to 455 days.
|
842
|
+
#
|
843
|
+
# This setting affects the range of information returned by
|
844
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
845
|
+
# the Synthetics console.
|
846
|
+
#
|
847
|
+
#
|
848
|
+
#
|
849
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
775
850
|
# @return [Integer]
|
776
851
|
#
|
777
852
|
# @!attribute [rw] runtime_version
|
@@ -1148,14 +1223,40 @@ module Aws::Synthetics
|
|
1148
1223
|
#
|
1149
1224
|
class DisassociateResourceResponse < Aws::EmptyStructure; end
|
1150
1225
|
|
1226
|
+
# Returns the dry run configurations set for a canary.
|
1227
|
+
#
|
1228
|
+
# @!attribute [rw] dry_run_id
|
1229
|
+
# The DryRunId associated with an existing canary’s dry run. You can
|
1230
|
+
# use this DryRunId to retrieve information about the dry run.
|
1231
|
+
# @return [String]
|
1232
|
+
#
|
1233
|
+
# @!attribute [rw] last_dry_run_execution_status
|
1234
|
+
# Returns the last execution status for a canary's dry run.
|
1235
|
+
# @return [String]
|
1236
|
+
#
|
1237
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/DryRunConfigOutput AWS API Documentation
|
1238
|
+
#
|
1239
|
+
class DryRunConfigOutput < Struct.new(
|
1240
|
+
:dry_run_id,
|
1241
|
+
:last_dry_run_execution_status)
|
1242
|
+
SENSITIVE = []
|
1243
|
+
include Aws::Structure
|
1244
|
+
end
|
1245
|
+
|
1151
1246
|
# @!attribute [rw] name
|
1152
1247
|
# The name of the canary that you want details for.
|
1153
1248
|
# @return [String]
|
1154
1249
|
#
|
1250
|
+
# @!attribute [rw] dry_run_id
|
1251
|
+
# The DryRunId associated with an existing canary’s dry run. You can
|
1252
|
+
# use this DryRunId to retrieve information about the dry run.
|
1253
|
+
# @return [String]
|
1254
|
+
#
|
1155
1255
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/GetCanaryRequest AWS API Documentation
|
1156
1256
|
#
|
1157
1257
|
class GetCanaryRequest < Struct.new(
|
1158
|
-
:name
|
1258
|
+
:name,
|
1259
|
+
:dry_run_id)
|
1159
1260
|
SENSITIVE = []
|
1160
1261
|
include Aws::Structure
|
1161
1262
|
end
|
@@ -1188,12 +1289,33 @@ module Aws::Synthetics
|
|
1188
1289
|
# the default of 100 is used.
|
1189
1290
|
# @return [Integer]
|
1190
1291
|
#
|
1292
|
+
# @!attribute [rw] dry_run_id
|
1293
|
+
# The DryRunId associated with an existing canary’s dry run. You can
|
1294
|
+
# use this DryRunId to retrieve information about the dry run.
|
1295
|
+
# @return [String]
|
1296
|
+
#
|
1297
|
+
# @!attribute [rw] run_type
|
1298
|
+
# * When you provide `RunType=CANARY_RUN` and `dryRunId`, you will get
|
1299
|
+
# an exception
|
1300
|
+
#
|
1301
|
+
# * When a value is not provided for `RunType`, the default value is
|
1302
|
+
# `CANARY_RUN`
|
1303
|
+
#
|
1304
|
+
# * When `CANARY_RUN` is provided, all canary runs excluding dry runs
|
1305
|
+
# are returned
|
1306
|
+
#
|
1307
|
+
# * When `DRY_RUN` is provided, all dry runs excluding canary runs are
|
1308
|
+
# returned
|
1309
|
+
# @return [String]
|
1310
|
+
#
|
1191
1311
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/GetCanaryRunsRequest AWS API Documentation
|
1192
1312
|
#
|
1193
1313
|
class GetCanaryRunsRequest < Struct.new(
|
1194
1314
|
:name,
|
1195
1315
|
:next_token,
|
1196
|
-
:max_results
|
1316
|
+
:max_results,
|
1317
|
+
:dry_run_id,
|
1318
|
+
:run_type)
|
1197
1319
|
SENSITIVE = []
|
1198
1320
|
include Aws::Structure
|
1199
1321
|
end
|
@@ -1623,6 +1745,175 @@ module Aws::Synthetics
|
|
1623
1745
|
include Aws::Structure
|
1624
1746
|
end
|
1625
1747
|
|
1748
|
+
# @!attribute [rw] name
|
1749
|
+
# The name of the canary that you want to dry run. To find canary
|
1750
|
+
# names, use [DescribeCanaries][1].
|
1751
|
+
#
|
1752
|
+
#
|
1753
|
+
#
|
1754
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html
|
1755
|
+
# @return [String]
|
1756
|
+
#
|
1757
|
+
# @!attribute [rw] code
|
1758
|
+
# Use this structure to input your script code for the canary. This
|
1759
|
+
# structure contains the Lambda handler with the location where the
|
1760
|
+
# canary should start running the script. If the script is stored in
|
1761
|
+
# an S3 bucket, the bucket name, key, and version are also included.
|
1762
|
+
# If the script was passed into the canary directly, the script code
|
1763
|
+
# is contained in the value of `Zipfile`.
|
1764
|
+
#
|
1765
|
+
# If you are uploading your canary scripts with an Amazon S3 bucket,
|
1766
|
+
# your zip file should include your script in a certain folder
|
1767
|
+
# structure.
|
1768
|
+
#
|
1769
|
+
# * For Node.js canaries, the folder structure must be
|
1770
|
+
# `nodejs/node_modules/myCanaryFilename.js ` For more information,
|
1771
|
+
# see [Packaging your Node.js canary files][1]
|
1772
|
+
#
|
1773
|
+
# * For Python canaries, the folder structure must be
|
1774
|
+
# `python/myCanaryFilename.py ` or
|
1775
|
+
# `python/myFolder/myCanaryFilename.py ` For more information, see
|
1776
|
+
# [Packaging your Python canary files][2]
|
1777
|
+
#
|
1778
|
+
#
|
1779
|
+
#
|
1780
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html#CloudWatch_Synthetics_Canaries_package
|
1781
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html#CloudWatch_Synthetics_Canaries_WritingCanary_Python_package
|
1782
|
+
# @return [Types::CanaryCodeInput]
|
1783
|
+
#
|
1784
|
+
# @!attribute [rw] runtime_version
|
1785
|
+
# Specifies the runtime version to use for the canary. For a list of
|
1786
|
+
# valid runtime versions and for more information about runtime
|
1787
|
+
# versions, see [ Canary Runtime Versions][1].
|
1788
|
+
#
|
1789
|
+
#
|
1790
|
+
#
|
1791
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Library.html
|
1792
|
+
# @return [String]
|
1793
|
+
#
|
1794
|
+
# @!attribute [rw] run_config
|
1795
|
+
# A structure that contains input information for a canary run.
|
1796
|
+
# @return [Types::CanaryRunConfigInput]
|
1797
|
+
#
|
1798
|
+
# @!attribute [rw] vpc_config
|
1799
|
+
# If this canary is to test an endpoint in a VPC, this structure
|
1800
|
+
# contains information about the subnets and security groups of the
|
1801
|
+
# VPC endpoint. For more information, see [ Running a Canary in a
|
1802
|
+
# VPC][1].
|
1803
|
+
#
|
1804
|
+
#
|
1805
|
+
#
|
1806
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html
|
1807
|
+
# @return [Types::VpcConfigInput]
|
1808
|
+
#
|
1809
|
+
# @!attribute [rw] execution_role_arn
|
1810
|
+
# The ARN of the IAM role to be used to run the canary. This role must
|
1811
|
+
# already exist, and must include `lambda.amazonaws.com` as a
|
1812
|
+
# principal in the trust policy. The role must also have the following
|
1813
|
+
# permissions:
|
1814
|
+
# @return [String]
|
1815
|
+
#
|
1816
|
+
# @!attribute [rw] success_retention_period_in_days
|
1817
|
+
# The number of days to retain data on the failed runs for this
|
1818
|
+
# canary. The valid range is 1 to 455 days.
|
1819
|
+
#
|
1820
|
+
# This setting affects the range of information returned by
|
1821
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
1822
|
+
# the Synthetics console.
|
1823
|
+
#
|
1824
|
+
#
|
1825
|
+
#
|
1826
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
1827
|
+
# @return [Integer]
|
1828
|
+
#
|
1829
|
+
# @!attribute [rw] failure_retention_period_in_days
|
1830
|
+
# The number of days to retain data on the failed runs for this
|
1831
|
+
# canary. The valid range is 1 to 455 days.
|
1832
|
+
#
|
1833
|
+
# This setting affects the range of information returned by
|
1834
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
1835
|
+
# the Synthetics console.
|
1836
|
+
#
|
1837
|
+
#
|
1838
|
+
#
|
1839
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
1840
|
+
# @return [Integer]
|
1841
|
+
#
|
1842
|
+
# @!attribute [rw] visual_reference
|
1843
|
+
# An object that specifies what screenshots to use as a baseline for
|
1844
|
+
# visual monitoring by this canary. It can optionally also specify
|
1845
|
+
# parts of the screenshots to ignore during the visual monitoring
|
1846
|
+
# comparison.
|
1847
|
+
#
|
1848
|
+
# Visual monitoring is supported only on canaries running the
|
1849
|
+
# **syn-puppeteer-node-3.2** runtime or later. For more information,
|
1850
|
+
# see [ Visual monitoring][1] and [ Visual monitoring blueprint][2]
|
1851
|
+
#
|
1852
|
+
#
|
1853
|
+
#
|
1854
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html
|
1855
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html
|
1856
|
+
# @return [Types::VisualReferenceInput]
|
1857
|
+
#
|
1858
|
+
# @!attribute [rw] artifact_s3_location
|
1859
|
+
# The location in Amazon S3 where Synthetics stores artifacts from the
|
1860
|
+
# test runs of this canary. Artifacts include the log file,
|
1861
|
+
# screenshots, and HAR files. The name of the Amazon S3 bucket can't
|
1862
|
+
# include a period (.).
|
1863
|
+
# @return [String]
|
1864
|
+
#
|
1865
|
+
# @!attribute [rw] artifact_config
|
1866
|
+
# A structure that contains the configuration for canary artifacts,
|
1867
|
+
# including the encryption-at-rest settings for artifacts that the
|
1868
|
+
# canary uploads to Amazon S3.
|
1869
|
+
# @return [Types::ArtifactConfigInput]
|
1870
|
+
#
|
1871
|
+
# @!attribute [rw] provisioned_resource_cleanup
|
1872
|
+
# Specifies whether to also delete the Lambda functions and layers
|
1873
|
+
# used by this canary when the canary is deleted. If the value of this
|
1874
|
+
# parameter is `AUTOMATIC`, it means that the Lambda functions and
|
1875
|
+
# layers will be deleted when the canary is deleted.
|
1876
|
+
#
|
1877
|
+
# If the value of this parameter is `OFF`, then the value of the
|
1878
|
+
# `DeleteLambda` parameter of the [DeleteCanary][1] operation
|
1879
|
+
# determines whether the Lambda functions and layers will be deleted.
|
1880
|
+
#
|
1881
|
+
#
|
1882
|
+
#
|
1883
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html
|
1884
|
+
# @return [String]
|
1885
|
+
#
|
1886
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/StartCanaryDryRunRequest AWS API Documentation
|
1887
|
+
#
|
1888
|
+
class StartCanaryDryRunRequest < Struct.new(
|
1889
|
+
:name,
|
1890
|
+
:code,
|
1891
|
+
:runtime_version,
|
1892
|
+
:run_config,
|
1893
|
+
:vpc_config,
|
1894
|
+
:execution_role_arn,
|
1895
|
+
:success_retention_period_in_days,
|
1896
|
+
:failure_retention_period_in_days,
|
1897
|
+
:visual_reference,
|
1898
|
+
:artifact_s3_location,
|
1899
|
+
:artifact_config,
|
1900
|
+
:provisioned_resource_cleanup)
|
1901
|
+
SENSITIVE = []
|
1902
|
+
include Aws::Structure
|
1903
|
+
end
|
1904
|
+
|
1905
|
+
# @!attribute [rw] dry_run_config
|
1906
|
+
# Returns the dry run configurations for a canary.
|
1907
|
+
# @return [Types::DryRunConfigOutput]
|
1908
|
+
#
|
1909
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/StartCanaryDryRunResponse AWS API Documentation
|
1910
|
+
#
|
1911
|
+
class StartCanaryDryRunResponse < Struct.new(
|
1912
|
+
:dry_run_config)
|
1913
|
+
SENSITIVE = []
|
1914
|
+
include Aws::Structure
|
1915
|
+
end
|
1916
|
+
|
1626
1917
|
# @!attribute [rw] name
|
1627
1918
|
# The name of the canary that you want to run. To find canary names,
|
1628
1919
|
# use [DescribeCanaries][1].
|
@@ -1790,17 +2081,35 @@ module Aws::Synthetics
|
|
1790
2081
|
# A structure that contains the timeout value that is used for each
|
1791
2082
|
# individual run of the canary.
|
1792
2083
|
#
|
1793
|
-
#
|
1794
|
-
#
|
2084
|
+
# Environment variable keys and values are encrypted at rest using
|
2085
|
+
# Amazon Web Services owned KMS keys. However, the environment
|
2086
|
+
# variables are not encrypted on the client side. Do not store
|
2087
|
+
# sensitive information in them.
|
1795
2088
|
# @return [Types::CanaryRunConfigInput]
|
1796
2089
|
#
|
1797
2090
|
# @!attribute [rw] success_retention_period_in_days
|
1798
2091
|
# The number of days to retain data about successful runs of this
|
1799
2092
|
# canary.
|
2093
|
+
#
|
2094
|
+
# This setting affects the range of information returned by
|
2095
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
2096
|
+
# the Synthetics console.
|
2097
|
+
#
|
2098
|
+
#
|
2099
|
+
#
|
2100
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
1800
2101
|
# @return [Integer]
|
1801
2102
|
#
|
1802
2103
|
# @!attribute [rw] failure_retention_period_in_days
|
1803
2104
|
# The number of days to retain data about failed runs of this canary.
|
2105
|
+
#
|
2106
|
+
# This setting affects the range of information returned by
|
2107
|
+
# [GetCanaryRuns][1], as well as the range of information displayed in
|
2108
|
+
# the Synthetics console.
|
2109
|
+
#
|
2110
|
+
#
|
2111
|
+
#
|
2112
|
+
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_GetCanaryRuns.html
|
1804
2113
|
# @return [Integer]
|
1805
2114
|
#
|
1806
2115
|
# @!attribute [rw] vpc_config
|
@@ -1855,6 +2164,17 @@ module Aws::Synthetics
|
|
1855
2164
|
# [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html
|
1856
2165
|
# @return [String]
|
1857
2166
|
#
|
2167
|
+
# @!attribute [rw] dry_run_id
|
2168
|
+
# Update the existing canary using the updated configurations from the
|
2169
|
+
# DryRun associated with the DryRunId.
|
2170
|
+
#
|
2171
|
+
# <note markdown="1"> When you use the `dryRunId` field when updating a canary, the only
|
2172
|
+
# other field you can provide is the `Schedule`. Adding any other
|
2173
|
+
# field will thrown an exception.
|
2174
|
+
#
|
2175
|
+
# </note>
|
2176
|
+
# @return [String]
|
2177
|
+
#
|
1858
2178
|
# @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/UpdateCanaryRequest AWS API Documentation
|
1859
2179
|
#
|
1860
2180
|
class UpdateCanaryRequest < Struct.new(
|
@@ -1870,7 +2190,8 @@ module Aws::Synthetics
|
|
1870
2190
|
:visual_reference,
|
1871
2191
|
:artifact_s3_location,
|
1872
2192
|
:artifact_config,
|
1873
|
-
:provisioned_resource_cleanup
|
2193
|
+
:provisioned_resource_cleanup,
|
2194
|
+
:dry_run_id)
|
1874
2195
|
SENSITIVE = []
|
1875
2196
|
include Aws::Structure
|
1876
2197
|
end
|
data/lib/aws-sdk-synthetics.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -217,7 +217,8 @@ module Aws
|
|
217
217
|
end
|
218
218
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Synthetics/Client.html#get_canary-instance_method
|
219
219
|
def get_canary: (
|
220
|
-
name: ::String
|
220
|
+
name: ::String,
|
221
|
+
?dry_run_id: ::String
|
221
222
|
) -> _GetCanaryResponseSuccess
|
222
223
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCanaryResponseSuccess
|
223
224
|
|
@@ -230,7 +231,9 @@ module Aws
|
|
230
231
|
def get_canary_runs: (
|
231
232
|
name: ::String,
|
232
233
|
?next_token: ::String,
|
233
|
-
?max_results: ::Integer
|
234
|
+
?max_results: ::Integer,
|
235
|
+
?dry_run_id: ::String,
|
236
|
+
?run_type: ("CANARY_RUN" | "DRY_RUN")
|
234
237
|
) -> _GetCanaryRunsResponseSuccess
|
235
238
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCanaryRunsResponseSuccess
|
236
239
|
|
@@ -301,6 +304,55 @@ module Aws
|
|
301
304
|
) -> _StartCanaryResponseSuccess
|
302
305
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCanaryResponseSuccess
|
303
306
|
|
307
|
+
interface _StartCanaryDryRunResponseSuccess
|
308
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StartCanaryDryRunResponse]
|
309
|
+
def dry_run_config: () -> Types::DryRunConfigOutput
|
310
|
+
end
|
311
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Synthetics/Client.html#start_canary_dry_run-instance_method
|
312
|
+
def start_canary_dry_run: (
|
313
|
+
name: ::String,
|
314
|
+
?code: {
|
315
|
+
s3_bucket: ::String?,
|
316
|
+
s3_key: ::String?,
|
317
|
+
s3_version: ::String?,
|
318
|
+
zip_file: ::String?,
|
319
|
+
handler: ::String
|
320
|
+
},
|
321
|
+
?runtime_version: ::String,
|
322
|
+
?run_config: {
|
323
|
+
timeout_in_seconds: ::Integer?,
|
324
|
+
memory_in_mb: ::Integer?,
|
325
|
+
active_tracing: bool?,
|
326
|
+
environment_variables: Hash[::String, ::String]?
|
327
|
+
},
|
328
|
+
?vpc_config: {
|
329
|
+
subnet_ids: Array[::String]?,
|
330
|
+
security_group_ids: Array[::String]?,
|
331
|
+
ipv_6_allowed_for_dual_stack: bool?
|
332
|
+
},
|
333
|
+
?execution_role_arn: ::String,
|
334
|
+
?success_retention_period_in_days: ::Integer,
|
335
|
+
?failure_retention_period_in_days: ::Integer,
|
336
|
+
?visual_reference: {
|
337
|
+
base_screenshots: Array[
|
338
|
+
{
|
339
|
+
screenshot_name: ::String,
|
340
|
+
ignore_coordinates: Array[::String]?
|
341
|
+
},
|
342
|
+
]?,
|
343
|
+
base_canary_run_id: ::String
|
344
|
+
},
|
345
|
+
?artifact_s3_location: ::String,
|
346
|
+
?artifact_config: {
|
347
|
+
s3_encryption: {
|
348
|
+
encryption_mode: ("SSE_S3" | "SSE_KMS")?,
|
349
|
+
kms_key_arn: ::String?
|
350
|
+
}?
|
351
|
+
},
|
352
|
+
?provisioned_resource_cleanup: ("AUTOMATIC" | "OFF")
|
353
|
+
) -> _StartCanaryDryRunResponseSuccess
|
354
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCanaryDryRunResponseSuccess
|
355
|
+
|
304
356
|
interface _StopCanaryResponseSuccess
|
305
357
|
include ::Seahorse::Client::_ResponseSuccess[Types::StopCanaryResponse]
|
306
358
|
end
|
@@ -378,7 +430,8 @@ module Aws
|
|
378
430
|
kms_key_arn: ::String?
|
379
431
|
}?
|
380
432
|
},
|
381
|
-
?provisioned_resource_cleanup: ("AUTOMATIC" | "OFF")
|
433
|
+
?provisioned_resource_cleanup: ("AUTOMATIC" | "OFF"),
|
434
|
+
?dry_run_id: ::String
|
382
435
|
) -> _UpdateCanaryResponseSuccess
|
383
436
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCanaryResponseSuccess
|
384
437
|
end
|
data/sig/errors.rbs
CHANGED
@@ -11,6 +11,9 @@ module Aws
|
|
11
11
|
class ServiceError < ::Aws::Errors::ServiceError
|
12
12
|
end
|
13
13
|
|
14
|
+
class AccessDeniedException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
14
17
|
class BadRequestException < ::Aws::Errors::ServiceError
|
15
18
|
def message: () -> ::String
|
16
19
|
end
|