aws-sdk-synthetics 1.50.0 → 1.52.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-synthetics/client.rb +31 -9
- data/lib/aws-sdk-synthetics/client_api.rb +5 -0
- data/lib/aws-sdk-synthetics/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-synthetics/plugins/endpoints.rb +8 -5
- data/lib/aws-sdk-synthetics/types.rb +32 -1
- data/lib/aws-sdk-synthetics.rb +1 -1
- data/sig/client.rbs +2 -0
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7cc38d49d4cd5a8bd97939ba4526133b36290191a2971433c7c85436484240f
|
4
|
+
data.tar.gz: c5524439001ab36dc8b3fc163f0bac3085b4d6e1d626c63b8be09c0edf627686
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6b38694c4a3f8d50e9a53e1ae6db0ae40db5bcf82c00dffd695ff16464167ef2ee55c602e2decc46970f73f58affeebb453ebaf5a598fe1cf4bc8bc4a373f7f
|
7
|
+
data.tar.gz: dbee6025856b4c45654b3054e497c5dda7fd95c41478a6d04287c1f545a4a010e2052da4ec6aac36292e9a0dee2d8d02d40906286b74ef77bfd3ff1743b71fe5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.52.0 (2024-09-20)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.51.0 (2024-09-12)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release introduces two features. The first is tag replication, which allows for the propagation of canary tags onto Synthetics related resources, such as Lambda functions. The second is a limit increase in canary name length, which has now been increased from 21 to 255 characters.
|
13
|
+
|
4
14
|
1.50.0 (2024-09-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.52.0
|
@@ -130,13 +130,15 @@ module Aws::Synthetics
|
|
130
130
|
# locations will be searched for credentials:
|
131
131
|
#
|
132
132
|
# * `Aws.config[:credentials]`
|
133
|
-
# * The `:access_key_id`, `:secret_access_key`,
|
134
|
-
#
|
133
|
+
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
134
|
+
# `:account_id` options.
|
135
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
|
136
|
+
# ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
|
135
137
|
# * `~/.aws/credentials`
|
136
138
|
# * `~/.aws/config`
|
137
139
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
138
140
|
# are very aggressive. Construct and pass an instance of
|
139
|
-
# `Aws::
|
141
|
+
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
140
142
|
# enable retries and extended timeouts. Instance profile credential
|
141
143
|
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
142
144
|
# to true.
|
@@ -155,6 +157,8 @@ module Aws::Synthetics
|
|
155
157
|
#
|
156
158
|
# @option options [String] :access_key_id
|
157
159
|
#
|
160
|
+
# @option options [String] :account_id
|
161
|
+
#
|
158
162
|
# @option options [Boolean] :active_endpoint_cache (false)
|
159
163
|
# When set to `true`, a thread polling for endpoints will be running in
|
160
164
|
# the background every 60 secs (default). Defaults to `false`.
|
@@ -369,7 +373,9 @@ module Aws::Synthetics
|
|
369
373
|
# sending the request.
|
370
374
|
#
|
371
375
|
# @option options [Aws::Synthetics::EndpointProvider] :endpoint_provider
|
372
|
-
# The endpoint provider used to resolve endpoints. Any object that responds to
|
376
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to
|
377
|
+
# `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
378
|
+
# `Aws::Synthetics::EndpointParameters`.
|
373
379
|
#
|
374
380
|
# @option options [Float] :http_continue_timeout (1)
|
375
381
|
# The number of seconds to wait for a 100-continue response before sending the
|
@@ -584,6 +590,14 @@ module Aws::Synthetics
|
|
584
590
|
#
|
585
591
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html
|
586
592
|
#
|
593
|
+
# @option params [Array<String>] :resources_to_replicate_tags
|
594
|
+
# To have the tags that you apply to this canary also be applied to the
|
595
|
+
# Lambda function that the canary uses, specify this parameter with the
|
596
|
+
# value `lambda-function`.
|
597
|
+
#
|
598
|
+
# If you specify this parameter and don't specify any tags in the
|
599
|
+
# `Tags` parameter, the canary creation fails.
|
600
|
+
#
|
587
601
|
# @option params [Hash<String,String>] :tags
|
588
602
|
# A list of key-value pairs to associate with the canary. You can
|
589
603
|
# associate as many as 50 tags with a canary.
|
@@ -592,6 +606,10 @@ module Aws::Synthetics
|
|
592
606
|
# use them to scope user permissions, by granting a user permission to
|
593
607
|
# access or change only the resources that have certain tag values.
|
594
608
|
#
|
609
|
+
# To have the tags that you apply to this canary also be applied to the
|
610
|
+
# Lambda function that the canary uses, specify this parameter with the
|
611
|
+
# value `lambda-function`.
|
612
|
+
#
|
595
613
|
# @option params [Types::ArtifactConfigInput] :artifact_config
|
596
614
|
# A structure that contains the configuration for canary artifacts,
|
597
615
|
# including the encryption-at-rest settings for artifacts that the
|
@@ -633,6 +651,7 @@ module Aws::Synthetics
|
|
633
651
|
# subnet_ids: ["SubnetId"],
|
634
652
|
# security_group_ids: ["SecurityGroupId"],
|
635
653
|
# },
|
654
|
+
# resources_to_replicate_tags: ["lambda-function"], # accepts lambda-function
|
636
655
|
# tags: {
|
637
656
|
# "TagKey" => "TagValue",
|
638
657
|
# },
|
@@ -773,17 +792,20 @@ module Aws::Synthetics
|
|
773
792
|
# again, you should also delete the following:
|
774
793
|
#
|
775
794
|
# * The CloudWatch alarms created for this canary. These alarms have a
|
776
|
-
# name of
|
795
|
+
# name of
|
796
|
+
# `Synthetics-Alarm-first-198-characters-of-canary-name-canaryId-alarm
|
797
|
+
# number `
|
777
798
|
#
|
778
799
|
# * Amazon S3 objects and buckets, such as the canary's artifact
|
779
800
|
# location.
|
780
801
|
#
|
781
802
|
# * IAM roles created for the canary. If they were created in the
|
782
803
|
# console, these roles have the name `
|
783
|
-
# role/service-role/CloudWatchSyntheticsRole-
|
804
|
+
# role/service-role/CloudWatchSyntheticsRole-First-21-Characters-of-CanaryName
|
805
|
+
# `
|
784
806
|
#
|
785
807
|
# * CloudWatch Logs log groups created for the canary. These logs groups
|
786
|
-
# have the name `/aws/lambda/cwsyn-
|
808
|
+
# have the name `/aws/lambda/cwsyn-First-21-Characters-of-CanaryName `
|
787
809
|
#
|
788
810
|
# Before you delete a canary, you might want to use `GetCanary` to
|
789
811
|
# display the information about this canary. Make note of the
|
@@ -878,7 +900,7 @@ module Aws::Synthetics
|
|
878
900
|
# @option params [Integer] :max_results
|
879
901
|
# Specify this parameter to limit how many canaries are returned each
|
880
902
|
# time you use the `DescribeCanaries` operation. If you omit this
|
881
|
-
# parameter, the default of
|
903
|
+
# parameter, the default of 20 is used.
|
882
904
|
#
|
883
905
|
# @option params [Array<String>] :names
|
884
906
|
# Use this parameter to return only canaries that match the names that
|
@@ -1790,7 +1812,7 @@ module Aws::Synthetics
|
|
1790
1812
|
tracer: tracer
|
1791
1813
|
)
|
1792
1814
|
context[:gem_name] = 'aws-sdk-synthetics'
|
1793
|
-
context[:gem_version] = '1.
|
1815
|
+
context[:gem_version] = '1.52.0'
|
1794
1816
|
Seahorse::Client::Request.new(handlers, context)
|
1795
1817
|
end
|
1796
1818
|
|
@@ -106,7 +106,9 @@ module Aws::Synthetics
|
|
106
106
|
PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
|
107
107
|
RequestEntityTooLargeException = Shapes::StructureShape.new(name: 'RequestEntityTooLargeException')
|
108
108
|
ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
|
109
|
+
ResourceList = Shapes::ListShape.new(name: 'ResourceList')
|
109
110
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
111
|
+
ResourceToTag = Shapes::StringShape.new(name: 'ResourceToTag')
|
110
112
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
111
113
|
RuntimeVersion = Shapes::StructureShape.new(name: 'RuntimeVersion')
|
112
114
|
RuntimeVersionList = Shapes::ListShape.new(name: 'RuntimeVersionList')
|
@@ -266,6 +268,7 @@ module Aws::Synthetics
|
|
266
268
|
CreateCanaryRequest.add_member(:failure_retention_period_in_days, Shapes::ShapeRef.new(shape: MaxSize1024, location_name: "FailureRetentionPeriodInDays"))
|
267
269
|
CreateCanaryRequest.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "RuntimeVersion"))
|
268
270
|
CreateCanaryRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfigInput, location_name: "VpcConfig"))
|
271
|
+
CreateCanaryRequest.add_member(:resources_to_replicate_tags, Shapes::ShapeRef.new(shape: ResourceList, location_name: "ResourcesToReplicateTags"))
|
269
272
|
CreateCanaryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "Tags"))
|
270
273
|
CreateCanaryRequest.add_member(:artifact_config, Shapes::ShapeRef.new(shape: ArtifactConfigInput, location_name: "ArtifactConfig"))
|
271
274
|
CreateCanaryRequest.struct_class = Types::CreateCanaryRequest
|
@@ -410,6 +413,8 @@ module Aws::Synthetics
|
|
410
413
|
RequestEntityTooLargeException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
411
414
|
RequestEntityTooLargeException.struct_class = Types::RequestEntityTooLargeException
|
412
415
|
|
416
|
+
ResourceList.member = Shapes::ShapeRef.new(shape: ResourceToTag)
|
417
|
+
|
413
418
|
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
414
419
|
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
415
420
|
|
@@ -32,7 +32,7 @@ module Aws::Synthetics
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://synthetics-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -15,11 +15,11 @@ module Aws::Synthetics
|
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::Synthetics::EndpointProvider',
|
17
17
|
rbs_type: 'untyped',
|
18
|
-
docstring:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
21
|
+
`Aws::Synthetics::EndpointParameters`.
|
22
|
+
DOCS
|
23
23
|
Aws::Synthetics::EndpointProvider.new
|
24
24
|
end
|
25
25
|
|
@@ -51,6 +51,9 @@ module Aws::Synthetics
|
|
51
51
|
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
52
52
|
metrics << 'SIGV4A_SIGNING'
|
53
53
|
end
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
56
|
+
end
|
54
57
|
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
55
58
|
end
|
56
59
|
|
@@ -250,6 +250,23 @@ module Aws::Synthetics
|
|
250
250
|
# script was passed into the canary directly, the script code is
|
251
251
|
# contained in the value of `Zipfile`.
|
252
252
|
#
|
253
|
+
# If you are uploading your canary scripts with an Amazon S3 bucket,
|
254
|
+
# your zip file should include your script in a certain folder
|
255
|
+
# structure.
|
256
|
+
#
|
257
|
+
# * For Node.js canaries, the folder structure must be
|
258
|
+
# `nodejs/node_modules/myCanaryFilename.js ` For more information, see
|
259
|
+
# [Packaging your Node.js canary files][1]
|
260
|
+
#
|
261
|
+
# * For Python canaries, the folder structure must be
|
262
|
+
# `python/myCanaryFilename.p ` or `python/myFolder/myCanaryFilename.py
|
263
|
+
# ` For more information, see [Packaging your Python canary files][2]
|
264
|
+
#
|
265
|
+
#
|
266
|
+
#
|
267
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Nodejs.html#CloudWatch_Synthetics_Canaries_package
|
268
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_WritingCanary_Python.html#CloudWatch_Synthetics_Canaries_WritingCanary_Python_package
|
269
|
+
#
|
253
270
|
# @!attribute [rw] s3_bucket
|
254
271
|
# If your canary script is located in S3, specify the bucket name
|
255
272
|
# here. Do not include `s3://` as the start of the bucket name.
|
@@ -761,6 +778,15 @@ module Aws::Synthetics
|
|
761
778
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html
|
762
779
|
# @return [Types::VpcConfigInput]
|
763
780
|
#
|
781
|
+
# @!attribute [rw] resources_to_replicate_tags
|
782
|
+
# To have the tags that you apply to this canary also be applied to
|
783
|
+
# the Lambda function that the canary uses, specify this parameter
|
784
|
+
# with the value `lambda-function`.
|
785
|
+
#
|
786
|
+
# If you specify this parameter and don't specify any tags in the
|
787
|
+
# `Tags` parameter, the canary creation fails.
|
788
|
+
# @return [Array<String>]
|
789
|
+
#
|
764
790
|
# @!attribute [rw] tags
|
765
791
|
# A list of key-value pairs to associate with the canary. You can
|
766
792
|
# associate as many as 50 tags with a canary.
|
@@ -769,6 +795,10 @@ module Aws::Synthetics
|
|
769
795
|
# also use them to scope user permissions, by granting a user
|
770
796
|
# permission to access or change only the resources that have certain
|
771
797
|
# tag values.
|
798
|
+
#
|
799
|
+
# To have the tags that you apply to this canary also be applied to
|
800
|
+
# the Lambda function that the canary uses, specify this parameter
|
801
|
+
# with the value `lambda-function`.
|
772
802
|
# @return [Hash<String,String>]
|
773
803
|
#
|
774
804
|
# @!attribute [rw] artifact_config
|
@@ -790,6 +820,7 @@ module Aws::Synthetics
|
|
790
820
|
:failure_retention_period_in_days,
|
791
821
|
:runtime_version,
|
792
822
|
:vpc_config,
|
823
|
+
:resources_to_replicate_tags,
|
793
824
|
:tags,
|
794
825
|
:artifact_config)
|
795
826
|
SENSITIVE = []
|
@@ -963,7 +994,7 @@ module Aws::Synthetics
|
|
963
994
|
# @!attribute [rw] max_results
|
964
995
|
# Specify this parameter to limit how many canaries are returned each
|
965
996
|
# time you use the `DescribeCanaries` operation. If you omit this
|
966
|
-
# parameter, the default of
|
997
|
+
# parameter, the default of 20 is used.
|
967
998
|
# @return [Integer]
|
968
999
|
#
|
969
1000
|
# @!attribute [rw] names
|
data/lib/aws-sdk-synthetics.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -15,6 +15,7 @@ module Aws
|
|
15
15
|
?credentials: untyped,
|
16
16
|
?region: String,
|
17
17
|
?access_key_id: String,
|
18
|
+
?account_id: String,
|
18
19
|
?active_endpoint_cache: bool,
|
19
20
|
?adaptive_retry_wait_to_fill: bool,
|
20
21
|
?client_side_monitoring: bool,
|
@@ -117,6 +118,7 @@ module Aws
|
|
117
118
|
subnet_ids: Array[::String]?,
|
118
119
|
security_group_ids: Array[::String]?
|
119
120
|
},
|
121
|
+
?resources_to_replicate_tags: Array[("lambda-function")],
|
120
122
|
?tags: Hash[::String, ::String],
|
121
123
|
?artifact_config: {
|
122
124
|
s3_encryption: {
|
data/sig/resource.rbs
CHANGED
data/sig/types.rbs
CHANGED
@@ -160,6 +160,7 @@ module Aws::Synthetics
|
|
160
160
|
attr_accessor failure_retention_period_in_days: ::Integer
|
161
161
|
attr_accessor runtime_version: ::String
|
162
162
|
attr_accessor vpc_config: Types::VpcConfigInput
|
163
|
+
attr_accessor resources_to_replicate_tags: ::Array[("lambda-function")]
|
163
164
|
attr_accessor tags: ::Hash[::String, ::String]
|
164
165
|
attr_accessor artifact_config: Types::ArtifactConfigInput
|
165
166
|
SENSITIVE: []
|
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.52.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: 2024-09-
|
11
|
+
date: 2024-09-20 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.207.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.207.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|