aws-sdk-synthetics 1.24.0 → 1.27.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef6c0f77e8ee3ee6e0721111a64ddc60ef13323bda6f551719276c94140baca1
4
- data.tar.gz: b865b3fb7efde95a4fb7b1a8f10651f9f4a1552e46835897ebb2a8b7485b9068
3
+ metadata.gz: e90ede807013d574614f641816461a58854c876226b6cd13d404edf5a33485e8
4
+ data.tar.gz: 665b4ff535fa7a6280e982c0a740eacb888872c85995e153a5943b2652b2708c
5
5
  SHA512:
6
- metadata.gz: cf4258a8aea33367df051252fbfb49d8329f8956dc4fe56033674c80f78ecf86315c4cf36a966158a4d7e3eb7ffd0bf2ed9b1eb74d16a9b70cb8800a8794e11e
7
- data.tar.gz: bbbbf3d8949b7bbe08d41fb4e268e4865e524c638989a630192a1079b6bdb2d0878f218b0e65bda459ca428505102881ba6d5f64f8fe61fb63a629ae26771df0
6
+ metadata.gz: 670516f66f038cb78944cb853aebb162d63c1ce1e91b3127baa8f169d4cde3fb55a96d89a82fea4bbc34ef3eb5974cec9b6941d93ce63d5e5145d9421d294c57
7
+ data.tar.gz: 50819f10eb45d54a35b37a1d24da703c7e5b483d6d3a31d8bb7103cbdc0c080b80680700aed79dd45ea10f370ba2135b3a61e09403e8beecc1046b855a604fc6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.27.0 (2022-05-02)
5
+ ------------------
6
+
7
+ * Feature - CloudWatch Synthetics has introduced a new feature to provide customers with an option to delete the underlying resources that Synthetics canary creates when the user chooses to delete the canary.
8
+
9
+ 1.26.0 (2022-03-04)
10
+ ------------------
11
+
12
+ * Feature - Allow custom handler function.
13
+
14
+ 1.25.0 (2022-02-24)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.24.0 (2022-02-07)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.24.0
1
+ 1.27.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::Synthetics
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -481,7 +483,7 @@ module Aws::Synthetics
481
483
  # s3_key: "String",
482
484
  # s3_version: "String",
483
485
  # zip_file: "data",
484
- # handler: "String", # required
486
+ # handler: "CodeHandler", # required
485
487
  # },
486
488
  # artifact_s3_location: "String", # required
487
489
  # execution_role_arn: "RoleArn", # required
@@ -531,7 +533,7 @@ module Aws::Synthetics
531
533
  # resp.canary.failure_retention_period_in_days #=> Integer
532
534
  # resp.canary.status.state #=> String, one of "CREATING", "READY", "STARTING", "RUNNING", "UPDATING", "STOPPING", "STOPPED", "ERROR", "DELETING"
533
535
  # resp.canary.status.state_reason #=> String
534
- # resp.canary.status.state_reason_code #=> String, one of "INVALID_PERMISSIONS"
536
+ # resp.canary.status.state_reason_code #=> String, one of "INVALID_PERMISSIONS", "CREATE_PENDING", "CREATE_IN_PROGRESS", "CREATE_FAILED", "UPDATE_PENDING", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "ROLLBACK_COMPLETE", "ROLLBACK_FAILED", "DELETE_IN_PROGRESS", "DELETE_FAILED", "SYNC_DELETE_IN_PROGRESS"
535
537
  # resp.canary.timeline.created #=> Time
536
538
  # resp.canary.timeline.last_modified #=> Time
537
539
  # resp.canary.timeline.last_started #=> Time
@@ -565,12 +567,12 @@ module Aws::Synthetics
565
567
 
566
568
  # Permanently deletes the specified canary.
567
569
  #
568
- # When you delete a canary, resources used and created by the canary are
569
- # not automatically deleted. After you delete a canary that you do not
570
- # intend to use again, you should also delete the following:
570
+ # If you specify `DeleteLambda` to `true`, CloudWatch Synthetics also
571
+ # deletes the Lambda functions and layers that are used by the canary.
571
572
  #
572
- # * The Lambda functions and layers used by this canary. These have the
573
- # prefix `cwsyn-MyCanaryName `.
573
+ # Other esources used and created by the canary are not automatically
574
+ # deleted. After you delete a canary that you do not intend to use
575
+ # again, you should also delete the following:
574
576
  #
575
577
  # * The CloudWatch alarms created for this canary. These alarms have a
576
578
  # name of `Synthetics-SharpDrop-Alarm-MyCanaryName `.
@@ -598,12 +600,19 @@ module Aws::Synthetics
598
600
  #
599
601
  # [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html
600
602
  #
603
+ # @option params [Boolean] :delete_lambda
604
+ # Specifies whether to also delete the Lambda functions and layers used
605
+ # by this canary. The default is false.
606
+ #
607
+ # Type: Boolean
608
+ #
601
609
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
602
610
  #
603
611
  # @example Request syntax with placeholder values
604
612
  #
605
613
  # resp = client.delete_canary({
606
614
  # name: "CanaryName", # required
615
+ # delete_lambda: false,
607
616
  # })
608
617
  #
609
618
  # @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/DeleteCanary AWS API Documentation
@@ -694,7 +703,7 @@ module Aws::Synthetics
694
703
  # resp.canaries[0].failure_retention_period_in_days #=> Integer
695
704
  # resp.canaries[0].status.state #=> String, one of "CREATING", "READY", "STARTING", "RUNNING", "UPDATING", "STOPPING", "STOPPED", "ERROR", "DELETING"
696
705
  # resp.canaries[0].status.state_reason #=> String
697
- # resp.canaries[0].status.state_reason_code #=> String, one of "INVALID_PERMISSIONS"
706
+ # resp.canaries[0].status.state_reason_code #=> String, one of "INVALID_PERMISSIONS", "CREATE_PENDING", "CREATE_IN_PROGRESS", "CREATE_FAILED", "UPDATE_PENDING", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "ROLLBACK_COMPLETE", "ROLLBACK_FAILED", "DELETE_IN_PROGRESS", "DELETE_FAILED", "SYNC_DELETE_IN_PROGRESS"
698
707
  # resp.canaries[0].timeline.created #=> Time
699
708
  # resp.canaries[0].timeline.last_modified #=> Time
700
709
  # resp.canaries[0].timeline.last_started #=> Time
@@ -898,7 +907,7 @@ module Aws::Synthetics
898
907
  # resp.canary.failure_retention_period_in_days #=> Integer
899
908
  # resp.canary.status.state #=> String, one of "CREATING", "READY", "STARTING", "RUNNING", "UPDATING", "STOPPING", "STOPPED", "ERROR", "DELETING"
900
909
  # resp.canary.status.state_reason #=> String
901
- # resp.canary.status.state_reason_code #=> String, one of "INVALID_PERMISSIONS"
910
+ # resp.canary.status.state_reason_code #=> String, one of "INVALID_PERMISSIONS", "CREATE_PENDING", "CREATE_IN_PROGRESS", "CREATE_FAILED", "UPDATE_PENDING", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "ROLLBACK_COMPLETE", "ROLLBACK_FAILED", "DELETE_IN_PROGRESS", "DELETE_FAILED", "SYNC_DELETE_IN_PROGRESS"
902
911
  # resp.canary.timeline.created #=> Time
903
912
  # resp.canary.timeline.last_modified #=> Time
904
913
  # resp.canary.timeline.last_started #=> Time
@@ -1271,7 +1280,7 @@ module Aws::Synthetics
1271
1280
  # s3_key: "String",
1272
1281
  # s3_version: "String",
1273
1282
  # zip_file: "data",
1274
- # handler: "String", # required
1283
+ # handler: "CodeHandler", # required
1275
1284
  # },
1276
1285
  # execution_role_arn: "RoleArn",
1277
1286
  # runtime_version: "String",
@@ -1333,7 +1342,7 @@ module Aws::Synthetics
1333
1342
  params: params,
1334
1343
  config: config)
1335
1344
  context[:gem_name] = 'aws-sdk-synthetics'
1336
- context[:gem_version] = '1.24.0'
1345
+ context[:gem_version] = '1.27.0'
1337
1346
  Seahorse::Client::Request.new(handlers, context)
1338
1347
  end
1339
1348
 
@@ -42,6 +42,7 @@ module Aws::Synthetics
42
42
  CanaryStateReasonCode = Shapes::StringShape.new(name: 'CanaryStateReasonCode')
43
43
  CanaryStatus = Shapes::StructureShape.new(name: 'CanaryStatus')
44
44
  CanaryTimeline = Shapes::StructureShape.new(name: 'CanaryTimeline')
45
+ CodeHandler = Shapes::StringShape.new(name: 'CodeHandler')
45
46
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
46
47
  CreateCanaryRequest = Shapes::StructureShape.new(name: 'CreateCanaryRequest')
47
48
  CreateCanaryResponse = Shapes::StructureShape.new(name: 'CreateCanaryResponse')
@@ -110,6 +111,7 @@ module Aws::Synthetics
110
111
  VpcConfigInput = Shapes::StructureShape.new(name: 'VpcConfigInput')
111
112
  VpcConfigOutput = Shapes::StructureShape.new(name: 'VpcConfigOutput')
112
113
  VpcId = Shapes::StringShape.new(name: 'VpcId')
114
+ boolean = Shapes::BooleanShape.new(name: 'boolean')
113
115
 
114
116
  ArtifactConfigInput.add_member(:s3_encryption, Shapes::ShapeRef.new(shape: S3EncryptionConfig, location_name: "S3Encryption"))
115
117
  ArtifactConfigInput.struct_class = Types::ArtifactConfigInput
@@ -152,7 +154,7 @@ module Aws::Synthetics
152
154
  CanaryCodeInput.add_member(:s3_key, Shapes::ShapeRef.new(shape: String, location_name: "S3Key"))
153
155
  CanaryCodeInput.add_member(:s3_version, Shapes::ShapeRef.new(shape: String, location_name: "S3Version"))
154
156
  CanaryCodeInput.add_member(:zip_file, Shapes::ShapeRef.new(shape: Blob, location_name: "ZipFile"))
155
- CanaryCodeInput.add_member(:handler, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Handler"))
157
+ CanaryCodeInput.add_member(:handler, Shapes::ShapeRef.new(shape: CodeHandler, required: true, location_name: "Handler"))
156
158
  CanaryCodeInput.struct_class = Types::CanaryCodeInput
157
159
 
158
160
  CanaryCodeOutput.add_member(:source_location_arn, Shapes::ShapeRef.new(shape: String, location_name: "SourceLocationArn"))
@@ -232,6 +234,7 @@ module Aws::Synthetics
232
234
  CreateCanaryResponse.struct_class = Types::CreateCanaryResponse
233
235
 
234
236
  DeleteCanaryRequest.add_member(:name, Shapes::ShapeRef.new(shape: CanaryName, required: true, location: "uri", location_name: "name"))
237
+ DeleteCanaryRequest.add_member(:delete_lambda, Shapes::ShapeRef.new(shape: boolean, location: "querystring", location_name: "deleteLambda"))
235
238
  DeleteCanaryRequest.struct_class = Types::DeleteCanaryRequest
236
239
 
237
240
  DeleteCanaryResponse.struct_class = Types::DeleteCanaryResponse
@@ -236,7 +236,7 @@ module Aws::Synthetics
236
236
  # s3_key: "String",
237
237
  # s3_version: "String",
238
238
  # zip_file: "data",
239
- # handler: "String", # required
239
+ # handler: "CodeHandler", # required
240
240
  # }
241
241
  #
242
242
  # @!attribute [rw] s3_bucket
@@ -269,8 +269,13 @@ module Aws::Synthetics
269
269
  #
270
270
  # @!attribute [rw] handler
271
271
  # The entry point to use for the source code when running the canary.
272
- # This value must end with the string `.handler`. The string is
273
- # limited to 29 characters or fewer.
272
+ # For canaries that use the `syn-python-selenium-1.0` runtime or a
273
+ # `syn-nodejs.puppeteer` runtime earlier than
274
+ # `syn-nodejs.puppeteer-3.4`, the handler must be specified as `
275
+ # fileName.handler`. For `syn-python-selenium-1.1`,
276
+ # `syn-nodejs.puppeteer-3.4`, and later runtimes, the handler can be
277
+ # specified as ` fileName.functionName `, or you can specify a folder
278
+ # where canary scripts reside as ` folder/fileName.functionName `.
274
279
  # @return [String]
275
280
  #
276
281
  # @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/CanaryCodeInput AWS API Documentation
@@ -678,7 +683,7 @@ module Aws::Synthetics
678
683
  # s3_key: "String",
679
684
  # s3_version: "String",
680
685
  # zip_file: "data",
681
- # handler: "String", # required
686
+ # handler: "CodeHandler", # required
682
687
  # },
683
688
  # artifact_s3_location: "String", # required
684
689
  # execution_role_arn: "RoleArn", # required
@@ -855,6 +860,7 @@ module Aws::Synthetics
855
860
  #
856
861
  # {
857
862
  # name: "CanaryName", # required
863
+ # delete_lambda: false,
858
864
  # }
859
865
  #
860
866
  # @!attribute [rw] name
@@ -866,10 +872,18 @@ module Aws::Synthetics
866
872
  # [1]: https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DescribeCanaries.html
867
873
  # @return [String]
868
874
  #
875
+ # @!attribute [rw] delete_lambda
876
+ # Specifies whether to also delete the Lambda functions and layers
877
+ # used by this canary. The default is false.
878
+ #
879
+ # Type: Boolean
880
+ # @return [Boolean]
881
+ #
869
882
  # @see http://docs.aws.amazon.com/goto/WebAPI/synthetics-2017-10-11/DeleteCanaryRequest AWS API Documentation
870
883
  #
871
884
  class DeleteCanaryRequest < Struct.new(
872
- :name)
885
+ :name,
886
+ :delete_lambda)
873
887
  SENSITIVE = []
874
888
  include Aws::Structure
875
889
  end
@@ -1441,7 +1455,7 @@ module Aws::Synthetics
1441
1455
  # s3_key: "String",
1442
1456
  # s3_version: "String",
1443
1457
  # zip_file: "data",
1444
- # handler: "String", # required
1458
+ # handler: "CodeHandler", # required
1445
1459
  # },
1446
1460
  # execution_role_arn: "RoleArn",
1447
1461
  # runtime_version: "String",
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-synthetics/customizations'
48
48
  # @!group service
49
49
  module Aws::Synthetics
50
50
 
51
- GEM_VERSION = '1.24.0'
51
+ GEM_VERSION = '1.27.0'
52
52
 
53
53
  end
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.24.0
4
+ version: 1.27.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: 2022-02-07 00:00:00.000000000 Z
11
+ date: 2022-05-02 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.126.0
22
+ version: 3.127.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.126.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement