aws-sdk-synthetics 1.28.0 → 1.30.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 +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-synthetics/client.rb +20 -3
- data/lib/aws-sdk-synthetics/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-synthetics/endpoint_provider.rb +51 -0
- data/lib/aws-sdk-synthetics/endpoints.rb +309 -0
- data/lib/aws-sdk-synthetics/plugins/endpoints.rb +110 -0
- data/lib/aws-sdk-synthetics/types.rb +0 -327
- data/lib/aws-sdk-synthetics.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 257747c07b086f1fc6330116f3131c81432309670154472acf7d1123630fd3ef
|
4
|
+
data.tar.gz: 71c26c15fec8e67c5cbd0d252bb3a2265bf011ed48b7f0c654d54dcb6590b2c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdb2c53d50d01c6038b9d26cf697408f0bab182f2fb198dfb0ea6aa90a8951de4b3abd06bfc0fefc9b5c2e79694c42c5d15cdcb3868344b3aa8e448d5f180297
|
7
|
+
data.tar.gz: 4f2a00b83ed20e3c86bf253624941ad11c0dd0d816ab86143e2ddd996f0eb4a54d8f1ef15faaf6b5eff70ff576bd02c9397adb777757310965a5e0094eb578c3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.30.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.29.0 (2022-10-25)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
15
|
+
|
4
16
|
1.28.0 (2022-07-06)
|
5
17
|
------------------
|
6
18
|
|
@@ -150,4 +162,4 @@ Unreleased Changes
|
|
150
162
|
1.0.0 (2020-04-20)
|
151
163
|
------------------
|
152
164
|
|
153
|
-
* Feature - Initial release of `aws-sdk-synthetics`.
|
165
|
+
* Feature - Initial release of `aws-sdk-synthetics`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.30.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:synthetics)
|
@@ -79,8 +79,9 @@ module Aws::Synthetics
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
84
|
+
add_plugin(Aws::Synthetics::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::Synthetics
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::Synthetics
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::Synthetics::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Synthetics::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -1693,7 +1710,7 @@ module Aws::Synthetics
|
|
1693
1710
|
params: params,
|
1694
1711
|
config: config)
|
1695
1712
|
context[:gem_name] = 'aws-sdk-synthetics'
|
1696
|
-
context[:gem_version] = '1.
|
1713
|
+
context[:gem_version] = '1.30.0'
|
1697
1714
|
Seahorse::Client::Request.new(handlers, context)
|
1698
1715
|
end
|
1699
1716
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Synthetics
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::Synthetics
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
19
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
+
end
|
22
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
+
end
|
25
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
26
|
+
end
|
27
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
29
|
+
return Aws::Endpoints::Endpoint.new(url: "https://synthetics-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
+
end
|
31
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
32
|
+
end
|
33
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
return Aws::Endpoints::Endpoint.new(url: "https://synthetics-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
41
|
+
return Aws::Endpoints::Endpoint.new(url: "https://synthetics.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://synthetics.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
48
|
+
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,309 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::Synthetics
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class AssociateResource
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::Synthetics::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
+
use_fips: context.config.use_fips_endpoint,
|
23
|
+
endpoint: endpoint,
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
class CreateCanary
|
29
|
+
def self.build(context)
|
30
|
+
unless context.config.regional_endpoint
|
31
|
+
endpoint = context.config.endpoint.to_s
|
32
|
+
end
|
33
|
+
Aws::Synthetics::EndpointParameters.new(
|
34
|
+
region: context.config.region,
|
35
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
+
use_fips: context.config.use_fips_endpoint,
|
37
|
+
endpoint: endpoint,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class CreateGroup
|
43
|
+
def self.build(context)
|
44
|
+
unless context.config.regional_endpoint
|
45
|
+
endpoint = context.config.endpoint.to_s
|
46
|
+
end
|
47
|
+
Aws::Synthetics::EndpointParameters.new(
|
48
|
+
region: context.config.region,
|
49
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
+
use_fips: context.config.use_fips_endpoint,
|
51
|
+
endpoint: endpoint,
|
52
|
+
)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
class DeleteCanary
|
57
|
+
def self.build(context)
|
58
|
+
unless context.config.regional_endpoint
|
59
|
+
endpoint = context.config.endpoint.to_s
|
60
|
+
end
|
61
|
+
Aws::Synthetics::EndpointParameters.new(
|
62
|
+
region: context.config.region,
|
63
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
+
use_fips: context.config.use_fips_endpoint,
|
65
|
+
endpoint: endpoint,
|
66
|
+
)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
class DeleteGroup
|
71
|
+
def self.build(context)
|
72
|
+
unless context.config.regional_endpoint
|
73
|
+
endpoint = context.config.endpoint.to_s
|
74
|
+
end
|
75
|
+
Aws::Synthetics::EndpointParameters.new(
|
76
|
+
region: context.config.region,
|
77
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
+
use_fips: context.config.use_fips_endpoint,
|
79
|
+
endpoint: endpoint,
|
80
|
+
)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
class DescribeCanaries
|
85
|
+
def self.build(context)
|
86
|
+
unless context.config.regional_endpoint
|
87
|
+
endpoint = context.config.endpoint.to_s
|
88
|
+
end
|
89
|
+
Aws::Synthetics::EndpointParameters.new(
|
90
|
+
region: context.config.region,
|
91
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
+
use_fips: context.config.use_fips_endpoint,
|
93
|
+
endpoint: endpoint,
|
94
|
+
)
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class DescribeCanariesLastRun
|
99
|
+
def self.build(context)
|
100
|
+
unless context.config.regional_endpoint
|
101
|
+
endpoint = context.config.endpoint.to_s
|
102
|
+
end
|
103
|
+
Aws::Synthetics::EndpointParameters.new(
|
104
|
+
region: context.config.region,
|
105
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
+
use_fips: context.config.use_fips_endpoint,
|
107
|
+
endpoint: endpoint,
|
108
|
+
)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class DescribeRuntimeVersions
|
113
|
+
def self.build(context)
|
114
|
+
unless context.config.regional_endpoint
|
115
|
+
endpoint = context.config.endpoint.to_s
|
116
|
+
end
|
117
|
+
Aws::Synthetics::EndpointParameters.new(
|
118
|
+
region: context.config.region,
|
119
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
+
use_fips: context.config.use_fips_endpoint,
|
121
|
+
endpoint: endpoint,
|
122
|
+
)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class DisassociateResource
|
127
|
+
def self.build(context)
|
128
|
+
unless context.config.regional_endpoint
|
129
|
+
endpoint = context.config.endpoint.to_s
|
130
|
+
end
|
131
|
+
Aws::Synthetics::EndpointParameters.new(
|
132
|
+
region: context.config.region,
|
133
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
+
use_fips: context.config.use_fips_endpoint,
|
135
|
+
endpoint: endpoint,
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
class GetCanary
|
141
|
+
def self.build(context)
|
142
|
+
unless context.config.regional_endpoint
|
143
|
+
endpoint = context.config.endpoint.to_s
|
144
|
+
end
|
145
|
+
Aws::Synthetics::EndpointParameters.new(
|
146
|
+
region: context.config.region,
|
147
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
+
use_fips: context.config.use_fips_endpoint,
|
149
|
+
endpoint: endpoint,
|
150
|
+
)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
class GetCanaryRuns
|
155
|
+
def self.build(context)
|
156
|
+
unless context.config.regional_endpoint
|
157
|
+
endpoint = context.config.endpoint.to_s
|
158
|
+
end
|
159
|
+
Aws::Synthetics::EndpointParameters.new(
|
160
|
+
region: context.config.region,
|
161
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
+
use_fips: context.config.use_fips_endpoint,
|
163
|
+
endpoint: endpoint,
|
164
|
+
)
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
class GetGroup
|
169
|
+
def self.build(context)
|
170
|
+
unless context.config.regional_endpoint
|
171
|
+
endpoint = context.config.endpoint.to_s
|
172
|
+
end
|
173
|
+
Aws::Synthetics::EndpointParameters.new(
|
174
|
+
region: context.config.region,
|
175
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
+
use_fips: context.config.use_fips_endpoint,
|
177
|
+
endpoint: endpoint,
|
178
|
+
)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
class ListAssociatedGroups
|
183
|
+
def self.build(context)
|
184
|
+
unless context.config.regional_endpoint
|
185
|
+
endpoint = context.config.endpoint.to_s
|
186
|
+
end
|
187
|
+
Aws::Synthetics::EndpointParameters.new(
|
188
|
+
region: context.config.region,
|
189
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
+
use_fips: context.config.use_fips_endpoint,
|
191
|
+
endpoint: endpoint,
|
192
|
+
)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class ListGroupResources
|
197
|
+
def self.build(context)
|
198
|
+
unless context.config.regional_endpoint
|
199
|
+
endpoint = context.config.endpoint.to_s
|
200
|
+
end
|
201
|
+
Aws::Synthetics::EndpointParameters.new(
|
202
|
+
region: context.config.region,
|
203
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
+
use_fips: context.config.use_fips_endpoint,
|
205
|
+
endpoint: endpoint,
|
206
|
+
)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
class ListGroups
|
211
|
+
def self.build(context)
|
212
|
+
unless context.config.regional_endpoint
|
213
|
+
endpoint = context.config.endpoint.to_s
|
214
|
+
end
|
215
|
+
Aws::Synthetics::EndpointParameters.new(
|
216
|
+
region: context.config.region,
|
217
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
+
use_fips: context.config.use_fips_endpoint,
|
219
|
+
endpoint: endpoint,
|
220
|
+
)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
class ListTagsForResource
|
225
|
+
def self.build(context)
|
226
|
+
unless context.config.regional_endpoint
|
227
|
+
endpoint = context.config.endpoint.to_s
|
228
|
+
end
|
229
|
+
Aws::Synthetics::EndpointParameters.new(
|
230
|
+
region: context.config.region,
|
231
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
232
|
+
use_fips: context.config.use_fips_endpoint,
|
233
|
+
endpoint: endpoint,
|
234
|
+
)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
class StartCanary
|
239
|
+
def self.build(context)
|
240
|
+
unless context.config.regional_endpoint
|
241
|
+
endpoint = context.config.endpoint.to_s
|
242
|
+
end
|
243
|
+
Aws::Synthetics::EndpointParameters.new(
|
244
|
+
region: context.config.region,
|
245
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
246
|
+
use_fips: context.config.use_fips_endpoint,
|
247
|
+
endpoint: endpoint,
|
248
|
+
)
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
class StopCanary
|
253
|
+
def self.build(context)
|
254
|
+
unless context.config.regional_endpoint
|
255
|
+
endpoint = context.config.endpoint.to_s
|
256
|
+
end
|
257
|
+
Aws::Synthetics::EndpointParameters.new(
|
258
|
+
region: context.config.region,
|
259
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
|
+
use_fips: context.config.use_fips_endpoint,
|
261
|
+
endpoint: endpoint,
|
262
|
+
)
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
class TagResource
|
267
|
+
def self.build(context)
|
268
|
+
unless context.config.regional_endpoint
|
269
|
+
endpoint = context.config.endpoint.to_s
|
270
|
+
end
|
271
|
+
Aws::Synthetics::EndpointParameters.new(
|
272
|
+
region: context.config.region,
|
273
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
|
+
use_fips: context.config.use_fips_endpoint,
|
275
|
+
endpoint: endpoint,
|
276
|
+
)
|
277
|
+
end
|
278
|
+
end
|
279
|
+
|
280
|
+
class UntagResource
|
281
|
+
def self.build(context)
|
282
|
+
unless context.config.regional_endpoint
|
283
|
+
endpoint = context.config.endpoint.to_s
|
284
|
+
end
|
285
|
+
Aws::Synthetics::EndpointParameters.new(
|
286
|
+
region: context.config.region,
|
287
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
288
|
+
use_fips: context.config.use_fips_endpoint,
|
289
|
+
endpoint: endpoint,
|
290
|
+
)
|
291
|
+
end
|
292
|
+
end
|
293
|
+
|
294
|
+
class UpdateCanary
|
295
|
+
def self.build(context)
|
296
|
+
unless context.config.regional_endpoint
|
297
|
+
endpoint = context.config.endpoint.to_s
|
298
|
+
end
|
299
|
+
Aws::Synthetics::EndpointParameters.new(
|
300
|
+
region: context.config.region,
|
301
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
302
|
+
use_fips: context.config.use_fips_endpoint,
|
303
|
+
endpoint: endpoint,
|
304
|
+
)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
end
|
309
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::Synthetics
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::Synthetics::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::Synthetics::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::Synthetics::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :associate_resource
|
60
|
+
Aws::Synthetics::Endpoints::AssociateResource.build(context)
|
61
|
+
when :create_canary
|
62
|
+
Aws::Synthetics::Endpoints::CreateCanary.build(context)
|
63
|
+
when :create_group
|
64
|
+
Aws::Synthetics::Endpoints::CreateGroup.build(context)
|
65
|
+
when :delete_canary
|
66
|
+
Aws::Synthetics::Endpoints::DeleteCanary.build(context)
|
67
|
+
when :delete_group
|
68
|
+
Aws::Synthetics::Endpoints::DeleteGroup.build(context)
|
69
|
+
when :describe_canaries
|
70
|
+
Aws::Synthetics::Endpoints::DescribeCanaries.build(context)
|
71
|
+
when :describe_canaries_last_run
|
72
|
+
Aws::Synthetics::Endpoints::DescribeCanariesLastRun.build(context)
|
73
|
+
when :describe_runtime_versions
|
74
|
+
Aws::Synthetics::Endpoints::DescribeRuntimeVersions.build(context)
|
75
|
+
when :disassociate_resource
|
76
|
+
Aws::Synthetics::Endpoints::DisassociateResource.build(context)
|
77
|
+
when :get_canary
|
78
|
+
Aws::Synthetics::Endpoints::GetCanary.build(context)
|
79
|
+
when :get_canary_runs
|
80
|
+
Aws::Synthetics::Endpoints::GetCanaryRuns.build(context)
|
81
|
+
when :get_group
|
82
|
+
Aws::Synthetics::Endpoints::GetGroup.build(context)
|
83
|
+
when :list_associated_groups
|
84
|
+
Aws::Synthetics::Endpoints::ListAssociatedGroups.build(context)
|
85
|
+
when :list_group_resources
|
86
|
+
Aws::Synthetics::Endpoints::ListGroupResources.build(context)
|
87
|
+
when :list_groups
|
88
|
+
Aws::Synthetics::Endpoints::ListGroups.build(context)
|
89
|
+
when :list_tags_for_resource
|
90
|
+
Aws::Synthetics::Endpoints::ListTagsForResource.build(context)
|
91
|
+
when :start_canary
|
92
|
+
Aws::Synthetics::Endpoints::StartCanary.build(context)
|
93
|
+
when :stop_canary
|
94
|
+
Aws::Synthetics::Endpoints::StopCanary.build(context)
|
95
|
+
when :tag_resource
|
96
|
+
Aws::Synthetics::Endpoints::TagResource.build(context)
|
97
|
+
when :untag_resource
|
98
|
+
Aws::Synthetics::Endpoints::UntagResource.build(context)
|
99
|
+
when :update_canary
|
100
|
+
Aws::Synthetics::Endpoints::UpdateCanary.build(context)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
def add_handlers(handlers, _config)
|
106
|
+
handlers.add(Handler, step: :build, priority: 75)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -14,16 +14,6 @@ module Aws::Synthetics
|
|
14
14
|
# including the encryption-at-rest settings for artifacts that the
|
15
15
|
# canary uploads to Amazon S3.
|
16
16
|
#
|
17
|
-
# @note When making an API call, you may pass ArtifactConfigInput
|
18
|
-
# data as a hash:
|
19
|
-
#
|
20
|
-
# {
|
21
|
-
# s3_encryption: {
|
22
|
-
# encryption_mode: "SSE_S3", # accepts SSE_S3, SSE_KMS
|
23
|
-
# kms_key_arn: "KmsKeyArn",
|
24
|
-
# },
|
25
|
-
# }
|
26
|
-
#
|
27
17
|
# @!attribute [rw] s3_encryption
|
28
18
|
# A structure that contains the configuration of the
|
29
19
|
# encryption-at-rest settings for artifacts that the canary uploads to
|
@@ -62,14 +52,6 @@ module Aws::Synthetics
|
|
62
52
|
include Aws::Structure
|
63
53
|
end
|
64
54
|
|
65
|
-
# @note When making an API call, you may pass AssociateResourceRequest
|
66
|
-
# data as a hash:
|
67
|
-
#
|
68
|
-
# {
|
69
|
-
# group_identifier: "GroupIdentifier", # required
|
70
|
-
# resource_arn: "CanaryArn", # required
|
71
|
-
# }
|
72
|
-
#
|
73
55
|
# @!attribute [rw] group_identifier
|
74
56
|
# Specifies the group. You can specify the group name, the ARN, or the
|
75
57
|
# group ID as the `GroupIdentifier`.
|
@@ -109,14 +91,6 @@ module Aws::Synthetics
|
|
109
91
|
# A structure representing a screenshot that is used as a baseline
|
110
92
|
# during visual monitoring comparisons made by the canary.
|
111
93
|
#
|
112
|
-
# @note When making an API call, you may pass BaseScreenshot
|
113
|
-
# data as a hash:
|
114
|
-
#
|
115
|
-
# {
|
116
|
-
# screenshot_name: "String", # required
|
117
|
-
# ignore_coordinates: ["BaseScreenshotConfigIgnoreCoordinate"],
|
118
|
-
# }
|
119
|
-
#
|
120
94
|
# @!attribute [rw] screenshot_name
|
121
95
|
# The name of the screenshot. This is generated the first time the
|
122
96
|
# canary is run after the `UpdateCanary` operation that specified for
|
@@ -276,17 +250,6 @@ module Aws::Synthetics
|
|
276
250
|
# script was passed into the canary directly, the script code is
|
277
251
|
# contained in the value of `Zipfile`.
|
278
252
|
#
|
279
|
-
# @note When making an API call, you may pass CanaryCodeInput
|
280
|
-
# data as a hash:
|
281
|
-
#
|
282
|
-
# {
|
283
|
-
# s3_bucket: "String",
|
284
|
-
# s3_key: "String",
|
285
|
-
# s3_version: "String",
|
286
|
-
# zip_file: "data",
|
287
|
-
# handler: "CodeHandler", # required
|
288
|
-
# }
|
289
|
-
#
|
290
253
|
# @!attribute [rw] s3_bucket
|
291
254
|
# If your canary script is located in S3, specify the bucket name
|
292
255
|
# here. Do not include `s3://` as the start of the bucket name.
|
@@ -416,18 +379,6 @@ module Aws::Synthetics
|
|
416
379
|
|
417
380
|
# A structure that contains input information for a canary run.
|
418
381
|
#
|
419
|
-
# @note When making an API call, you may pass CanaryRunConfigInput
|
420
|
-
# data as a hash:
|
421
|
-
#
|
422
|
-
# {
|
423
|
-
# timeout_in_seconds: 1,
|
424
|
-
# memory_in_mb: 1,
|
425
|
-
# active_tracing: false,
|
426
|
-
# environment_variables: {
|
427
|
-
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
428
|
-
# },
|
429
|
-
# }
|
430
|
-
#
|
431
382
|
# @!attribute [rw] timeout_in_seconds
|
432
383
|
# How long the canary is allowed to run before it must stop. You
|
433
384
|
# can't set this time to be longer than the frequency of the runs of
|
@@ -564,14 +515,6 @@ module Aws::Synthetics
|
|
564
515
|
# This structure specifies how often a canary is to make runs and the
|
565
516
|
# date and time when it should stop making runs.
|
566
517
|
#
|
567
|
-
# @note When making an API call, you may pass CanaryScheduleInput
|
568
|
-
# data as a hash:
|
569
|
-
#
|
570
|
-
# {
|
571
|
-
# expression: "String", # required
|
572
|
-
# duration_in_seconds: 1,
|
573
|
-
# }
|
574
|
-
#
|
575
518
|
# @!attribute [rw] expression
|
576
519
|
# A `rate` expression or a `cron` expression that defines how often
|
577
520
|
# the canary is to run.
|
@@ -724,50 +667,6 @@ module Aws::Synthetics
|
|
724
667
|
include Aws::Structure
|
725
668
|
end
|
726
669
|
|
727
|
-
# @note When making an API call, you may pass CreateCanaryRequest
|
728
|
-
# data as a hash:
|
729
|
-
#
|
730
|
-
# {
|
731
|
-
# name: "CanaryName", # required
|
732
|
-
# code: { # required
|
733
|
-
# s3_bucket: "String",
|
734
|
-
# s3_key: "String",
|
735
|
-
# s3_version: "String",
|
736
|
-
# zip_file: "data",
|
737
|
-
# handler: "CodeHandler", # required
|
738
|
-
# },
|
739
|
-
# artifact_s3_location: "String", # required
|
740
|
-
# execution_role_arn: "RoleArn", # required
|
741
|
-
# schedule: { # required
|
742
|
-
# expression: "String", # required
|
743
|
-
# duration_in_seconds: 1,
|
744
|
-
# },
|
745
|
-
# run_config: {
|
746
|
-
# timeout_in_seconds: 1,
|
747
|
-
# memory_in_mb: 1,
|
748
|
-
# active_tracing: false,
|
749
|
-
# environment_variables: {
|
750
|
-
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
751
|
-
# },
|
752
|
-
# },
|
753
|
-
# success_retention_period_in_days: 1,
|
754
|
-
# failure_retention_period_in_days: 1,
|
755
|
-
# runtime_version: "String", # required
|
756
|
-
# vpc_config: {
|
757
|
-
# subnet_ids: ["SubnetId"],
|
758
|
-
# security_group_ids: ["SecurityGroupId"],
|
759
|
-
# },
|
760
|
-
# tags: {
|
761
|
-
# "TagKey" => "TagValue",
|
762
|
-
# },
|
763
|
-
# artifact_config: {
|
764
|
-
# s3_encryption: {
|
765
|
-
# encryption_mode: "SSE_S3", # accepts SSE_S3, SSE_KMS
|
766
|
-
# kms_key_arn: "KmsKeyArn",
|
767
|
-
# },
|
768
|
-
# },
|
769
|
-
# }
|
770
|
-
#
|
771
670
|
# @!attribute [rw] name
|
772
671
|
# The name for this canary. Be sure to give it a descriptive name that
|
773
672
|
# distinguishes it from other canaries in your account.
|
@@ -909,16 +808,6 @@ module Aws::Synthetics
|
|
909
808
|
include Aws::Structure
|
910
809
|
end
|
911
810
|
|
912
|
-
# @note When making an API call, you may pass CreateGroupRequest
|
913
|
-
# data as a hash:
|
914
|
-
#
|
915
|
-
# {
|
916
|
-
# name: "GroupName", # required
|
917
|
-
# tags: {
|
918
|
-
# "TagKey" => "TagValue",
|
919
|
-
# },
|
920
|
-
# }
|
921
|
-
#
|
922
811
|
# @!attribute [rw] name
|
923
812
|
# The name for the group. It can include any Unicode characters.
|
924
813
|
#
|
@@ -958,14 +847,6 @@ module Aws::Synthetics
|
|
958
847
|
include Aws::Structure
|
959
848
|
end
|
960
849
|
|
961
|
-
# @note When making an API call, you may pass DeleteCanaryRequest
|
962
|
-
# data as a hash:
|
963
|
-
#
|
964
|
-
# {
|
965
|
-
# name: "CanaryName", # required
|
966
|
-
# delete_lambda: false,
|
967
|
-
# }
|
968
|
-
#
|
969
850
|
# @!attribute [rw] name
|
970
851
|
# The name of the canary that you want to delete. To find the names of
|
971
852
|
# your canaries, use [DescribeCanaries][1].
|
@@ -995,13 +876,6 @@ module Aws::Synthetics
|
|
995
876
|
#
|
996
877
|
class DeleteCanaryResponse < Aws::EmptyStructure; end
|
997
878
|
|
998
|
-
# @note When making an API call, you may pass DeleteGroupRequest
|
999
|
-
# data as a hash:
|
1000
|
-
#
|
1001
|
-
# {
|
1002
|
-
# group_identifier: "GroupIdentifier", # required
|
1003
|
-
# }
|
1004
|
-
#
|
1005
879
|
# @!attribute [rw] group_identifier
|
1006
880
|
# Specifies which group to delete. You can specify the group name, the
|
1007
881
|
# ARN, or the group ID as the `GroupIdentifier`.
|
@@ -1019,15 +893,6 @@ module Aws::Synthetics
|
|
1019
893
|
#
|
1020
894
|
class DeleteGroupResponse < Aws::EmptyStructure; end
|
1021
895
|
|
1022
|
-
# @note When making an API call, you may pass DescribeCanariesLastRunRequest
|
1023
|
-
# data as a hash:
|
1024
|
-
#
|
1025
|
-
# {
|
1026
|
-
# next_token: "Token",
|
1027
|
-
# max_results: 1,
|
1028
|
-
# names: ["CanaryName"],
|
1029
|
-
# }
|
1030
|
-
#
|
1031
896
|
# @!attribute [rw] next_token
|
1032
897
|
# A token that indicates that there is more data available. You can
|
1033
898
|
# use this token in a subsequent `DescribeCanariesLastRun` operation
|
@@ -1089,15 +954,6 @@ module Aws::Synthetics
|
|
1089
954
|
include Aws::Structure
|
1090
955
|
end
|
1091
956
|
|
1092
|
-
# @note When making an API call, you may pass DescribeCanariesRequest
|
1093
|
-
# data as a hash:
|
1094
|
-
#
|
1095
|
-
# {
|
1096
|
-
# next_token: "Token",
|
1097
|
-
# max_results: 1,
|
1098
|
-
# names: ["CanaryName"],
|
1099
|
-
# }
|
1100
|
-
#
|
1101
957
|
# @!attribute [rw] next_token
|
1102
958
|
# A token that indicates that there is more data available. You can
|
1103
959
|
# use this token in a subsequent operation to retrieve the next set of
|
@@ -1159,14 +1015,6 @@ module Aws::Synthetics
|
|
1159
1015
|
include Aws::Structure
|
1160
1016
|
end
|
1161
1017
|
|
1162
|
-
# @note When making an API call, you may pass DescribeRuntimeVersionsRequest
|
1163
|
-
# data as a hash:
|
1164
|
-
#
|
1165
|
-
# {
|
1166
|
-
# next_token: "Token",
|
1167
|
-
# max_results: 1,
|
1168
|
-
# }
|
1169
|
-
#
|
1170
1018
|
# @!attribute [rw] next_token
|
1171
1019
|
# A token that indicates that there is more data available. You can
|
1172
1020
|
# use this token in a subsequent `DescribeRuntimeVersions` operation
|
@@ -1208,14 +1056,6 @@ module Aws::Synthetics
|
|
1208
1056
|
include Aws::Structure
|
1209
1057
|
end
|
1210
1058
|
|
1211
|
-
# @note When making an API call, you may pass DisassociateResourceRequest
|
1212
|
-
# data as a hash:
|
1213
|
-
#
|
1214
|
-
# {
|
1215
|
-
# group_identifier: "GroupIdentifier", # required
|
1216
|
-
# resource_arn: "CanaryArn", # required
|
1217
|
-
# }
|
1218
|
-
#
|
1219
1059
|
# @!attribute [rw] group_identifier
|
1220
1060
|
# Specifies the group. You can specify the group name, the ARN, or the
|
1221
1061
|
# group ID as the `GroupIdentifier`.
|
@@ -1239,13 +1079,6 @@ module Aws::Synthetics
|
|
1239
1079
|
#
|
1240
1080
|
class DisassociateResourceResponse < Aws::EmptyStructure; end
|
1241
1081
|
|
1242
|
-
# @note When making an API call, you may pass GetCanaryRequest
|
1243
|
-
# data as a hash:
|
1244
|
-
#
|
1245
|
-
# {
|
1246
|
-
# name: "CanaryName", # required
|
1247
|
-
# }
|
1248
|
-
#
|
1249
1082
|
# @!attribute [rw] name
|
1250
1083
|
# The name of the canary that you want details for.
|
1251
1084
|
# @return [String]
|
@@ -1270,15 +1103,6 @@ module Aws::Synthetics
|
|
1270
1103
|
include Aws::Structure
|
1271
1104
|
end
|
1272
1105
|
|
1273
|
-
# @note When making an API call, you may pass GetCanaryRunsRequest
|
1274
|
-
# data as a hash:
|
1275
|
-
#
|
1276
|
-
# {
|
1277
|
-
# name: "CanaryName", # required
|
1278
|
-
# next_token: "Token",
|
1279
|
-
# max_results: 1,
|
1280
|
-
# }
|
1281
|
-
#
|
1282
1106
|
# @!attribute [rw] name
|
1283
1107
|
# The name of the canary that you want to see runs for.
|
1284
1108
|
# @return [String]
|
@@ -1325,13 +1149,6 @@ module Aws::Synthetics
|
|
1325
1149
|
include Aws::Structure
|
1326
1150
|
end
|
1327
1151
|
|
1328
|
-
# @note When making an API call, you may pass GetGroupRequest
|
1329
|
-
# data as a hash:
|
1330
|
-
#
|
1331
|
-
# {
|
1332
|
-
# group_identifier: "GroupIdentifier", # required
|
1333
|
-
# }
|
1334
|
-
#
|
1335
1152
|
# @!attribute [rw] group_identifier
|
1336
1153
|
# Specifies the group to return information for. You can specify the
|
1337
1154
|
# group name, the ARN, or the group ID as the `GroupIdentifier`.
|
@@ -1446,15 +1263,6 @@ module Aws::Synthetics
|
|
1446
1263
|
include Aws::Structure
|
1447
1264
|
end
|
1448
1265
|
|
1449
|
-
# @note When making an API call, you may pass ListAssociatedGroupsRequest
|
1450
|
-
# data as a hash:
|
1451
|
-
#
|
1452
|
-
# {
|
1453
|
-
# next_token: "PaginationToken",
|
1454
|
-
# max_results: 1,
|
1455
|
-
# resource_arn: "CanaryArn", # required
|
1456
|
-
# }
|
1457
|
-
#
|
1458
1266
|
# @!attribute [rw] next_token
|
1459
1267
|
# A token that indicates that there is more data available. You can
|
1460
1268
|
# use this token in a subsequent operation to retrieve the next set of
|
@@ -1501,15 +1309,6 @@ module Aws::Synthetics
|
|
1501
1309
|
include Aws::Structure
|
1502
1310
|
end
|
1503
1311
|
|
1504
|
-
# @note When making an API call, you may pass ListGroupResourcesRequest
|
1505
|
-
# data as a hash:
|
1506
|
-
#
|
1507
|
-
# {
|
1508
|
-
# next_token: "PaginationToken",
|
1509
|
-
# max_results: 1,
|
1510
|
-
# group_identifier: "GroupIdentifier", # required
|
1511
|
-
# }
|
1512
|
-
#
|
1513
1312
|
# @!attribute [rw] next_token
|
1514
1313
|
# A token that indicates that there is more data available. You can
|
1515
1314
|
# use this token in a subsequent operation to retrieve the next set of
|
@@ -1557,14 +1356,6 @@ module Aws::Synthetics
|
|
1557
1356
|
include Aws::Structure
|
1558
1357
|
end
|
1559
1358
|
|
1560
|
-
# @note When making an API call, you may pass ListGroupsRequest
|
1561
|
-
# data as a hash:
|
1562
|
-
#
|
1563
|
-
# {
|
1564
|
-
# next_token: "PaginationToken",
|
1565
|
-
# max_results: 1,
|
1566
|
-
# }
|
1567
|
-
#
|
1568
1359
|
# @!attribute [rw] next_token
|
1569
1360
|
# A token that indicates that there is more data available. You can
|
1570
1361
|
# use this token in a subsequent operation to retrieve the next set of
|
@@ -1606,13 +1397,6 @@ module Aws::Synthetics
|
|
1606
1397
|
include Aws::Structure
|
1607
1398
|
end
|
1608
1399
|
|
1609
|
-
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1610
|
-
# data as a hash:
|
1611
|
-
#
|
1612
|
-
# {
|
1613
|
-
# resource_arn: "ResourceArn", # required
|
1614
|
-
# }
|
1615
|
-
#
|
1616
1400
|
# @!attribute [rw] resource_arn
|
1617
1401
|
# The ARN of the canary or group that you want to view tags for.
|
1618
1402
|
#
|
@@ -1733,14 +1517,6 @@ module Aws::Synthetics
|
|
1733
1517
|
#
|
1734
1518
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_artifact_encryption.html
|
1735
1519
|
#
|
1736
|
-
# @note When making an API call, you may pass S3EncryptionConfig
|
1737
|
-
# data as a hash:
|
1738
|
-
#
|
1739
|
-
# {
|
1740
|
-
# encryption_mode: "SSE_S3", # accepts SSE_S3, SSE_KMS
|
1741
|
-
# kms_key_arn: "KmsKeyArn",
|
1742
|
-
# }
|
1743
|
-
#
|
1744
1520
|
# @!attribute [rw] encryption_mode
|
1745
1521
|
# The encryption method to use for artifacts created by this canary.
|
1746
1522
|
# Specify `SSE_S3` to use server-side encryption (SSE) with an Amazon
|
@@ -1778,13 +1554,6 @@ module Aws::Synthetics
|
|
1778
1554
|
include Aws::Structure
|
1779
1555
|
end
|
1780
1556
|
|
1781
|
-
# @note When making an API call, you may pass StartCanaryRequest
|
1782
|
-
# data as a hash:
|
1783
|
-
#
|
1784
|
-
# {
|
1785
|
-
# name: "CanaryName", # required
|
1786
|
-
# }
|
1787
|
-
#
|
1788
1557
|
# @!attribute [rw] name
|
1789
1558
|
# The name of the canary that you want to run. To find canary names,
|
1790
1559
|
# use [DescribeCanaries][1].
|
@@ -1806,13 +1575,6 @@ module Aws::Synthetics
|
|
1806
1575
|
#
|
1807
1576
|
class StartCanaryResponse < Aws::EmptyStructure; end
|
1808
1577
|
|
1809
|
-
# @note When making an API call, you may pass StopCanaryRequest
|
1810
|
-
# data as a hash:
|
1811
|
-
#
|
1812
|
-
# {
|
1813
|
-
# name: "CanaryName", # required
|
1814
|
-
# }
|
1815
|
-
#
|
1816
1578
|
# @!attribute [rw] name
|
1817
1579
|
# The name of the canary that you want to stop. To find the names of
|
1818
1580
|
# your canaries, use [ListCanaries][1].
|
@@ -1834,16 +1596,6 @@ module Aws::Synthetics
|
|
1834
1596
|
#
|
1835
1597
|
class StopCanaryResponse < Aws::EmptyStructure; end
|
1836
1598
|
|
1837
|
-
# @note When making an API call, you may pass TagResourceRequest
|
1838
|
-
# data as a hash:
|
1839
|
-
#
|
1840
|
-
# {
|
1841
|
-
# resource_arn: "ResourceArn", # required
|
1842
|
-
# tags: { # required
|
1843
|
-
# "TagKey" => "TagValue",
|
1844
|
-
# },
|
1845
|
-
# }
|
1846
|
-
#
|
1847
1599
|
# @!attribute [rw] resource_arn
|
1848
1600
|
# The ARN of the canary or group that you're adding tags to.
|
1849
1601
|
#
|
@@ -1884,14 +1636,6 @@ module Aws::Synthetics
|
|
1884
1636
|
include Aws::Structure
|
1885
1637
|
end
|
1886
1638
|
|
1887
|
-
# @note When making an API call, you may pass UntagResourceRequest
|
1888
|
-
# data as a hash:
|
1889
|
-
#
|
1890
|
-
# {
|
1891
|
-
# resource_arn: "ResourceArn", # required
|
1892
|
-
# tag_keys: ["TagKey"], # required
|
1893
|
-
# }
|
1894
|
-
#
|
1895
1639
|
# @!attribute [rw] resource_arn
|
1896
1640
|
# The ARN of the canary or group that you're removing tags from.
|
1897
1641
|
#
|
@@ -1919,56 +1663,6 @@ module Aws::Synthetics
|
|
1919
1663
|
#
|
1920
1664
|
class UntagResourceResponse < Aws::EmptyStructure; end
|
1921
1665
|
|
1922
|
-
# @note When making an API call, you may pass UpdateCanaryRequest
|
1923
|
-
# data as a hash:
|
1924
|
-
#
|
1925
|
-
# {
|
1926
|
-
# name: "CanaryName", # required
|
1927
|
-
# code: {
|
1928
|
-
# s3_bucket: "String",
|
1929
|
-
# s3_key: "String",
|
1930
|
-
# s3_version: "String",
|
1931
|
-
# zip_file: "data",
|
1932
|
-
# handler: "CodeHandler", # required
|
1933
|
-
# },
|
1934
|
-
# execution_role_arn: "RoleArn",
|
1935
|
-
# runtime_version: "String",
|
1936
|
-
# schedule: {
|
1937
|
-
# expression: "String", # required
|
1938
|
-
# duration_in_seconds: 1,
|
1939
|
-
# },
|
1940
|
-
# run_config: {
|
1941
|
-
# timeout_in_seconds: 1,
|
1942
|
-
# memory_in_mb: 1,
|
1943
|
-
# active_tracing: false,
|
1944
|
-
# environment_variables: {
|
1945
|
-
# "EnvironmentVariableName" => "EnvironmentVariableValue",
|
1946
|
-
# },
|
1947
|
-
# },
|
1948
|
-
# success_retention_period_in_days: 1,
|
1949
|
-
# failure_retention_period_in_days: 1,
|
1950
|
-
# vpc_config: {
|
1951
|
-
# subnet_ids: ["SubnetId"],
|
1952
|
-
# security_group_ids: ["SecurityGroupId"],
|
1953
|
-
# },
|
1954
|
-
# visual_reference: {
|
1955
|
-
# base_screenshots: [
|
1956
|
-
# {
|
1957
|
-
# screenshot_name: "String", # required
|
1958
|
-
# ignore_coordinates: ["BaseScreenshotConfigIgnoreCoordinate"],
|
1959
|
-
# },
|
1960
|
-
# ],
|
1961
|
-
# base_canary_run_id: "String", # required
|
1962
|
-
# },
|
1963
|
-
# artifact_s3_location: "String",
|
1964
|
-
# artifact_config: {
|
1965
|
-
# s3_encryption: {
|
1966
|
-
# encryption_mode: "SSE_S3", # accepts SSE_S3, SSE_KMS
|
1967
|
-
# kms_key_arn: "KmsKeyArn",
|
1968
|
-
# },
|
1969
|
-
# },
|
1970
|
-
# }
|
1971
|
-
#
|
1972
1666
|
# @!attribute [rw] name
|
1973
1667
|
# The name of the canary that you want to update. To find the names of
|
1974
1668
|
# your canaries, use [DescribeCanaries][1].
|
@@ -2128,19 +1822,6 @@ module Aws::Synthetics
|
|
2128
1822
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_SyntheticsLogger_VisualTesting.html
|
2129
1823
|
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_Blueprints_VisualTesting.html
|
2130
1824
|
#
|
2131
|
-
# @note When making an API call, you may pass VisualReferenceInput
|
2132
|
-
# data as a hash:
|
2133
|
-
#
|
2134
|
-
# {
|
2135
|
-
# base_screenshots: [
|
2136
|
-
# {
|
2137
|
-
# screenshot_name: "String", # required
|
2138
|
-
# ignore_coordinates: ["BaseScreenshotConfigIgnoreCoordinate"],
|
2139
|
-
# },
|
2140
|
-
# ],
|
2141
|
-
# base_canary_run_id: "String", # required
|
2142
|
-
# }
|
2143
|
-
#
|
2144
1825
|
# @!attribute [rw] base_screenshots
|
2145
1826
|
# An array of screenshots that will be used as the baseline for visual
|
2146
1827
|
# monitoring in future runs of this canary. If there is a screenshot
|
@@ -2205,14 +1886,6 @@ module Aws::Synthetics
|
|
2205
1886
|
#
|
2206
1887
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_VPC.html
|
2207
1888
|
#
|
2208
|
-
# @note When making an API call, you may pass VpcConfigInput
|
2209
|
-
# data as a hash:
|
2210
|
-
#
|
2211
|
-
# {
|
2212
|
-
# subnet_ids: ["SubnetId"],
|
2213
|
-
# security_group_ids: ["SecurityGroupId"],
|
2214
|
-
# }
|
2215
|
-
#
|
2216
1889
|
# @!attribute [rw] subnet_ids
|
2217
1890
|
# The IDs of the subnets where this canary is to run.
|
2218
1891
|
# @return [Array<String>]
|
data/lib/aws-sdk-synthetics.rb
CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-synthetics/types'
|
15
15
|
require_relative 'aws-sdk-synthetics/client_api'
|
16
|
+
require_relative 'aws-sdk-synthetics/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-synthetics/client'
|
17
18
|
require_relative 'aws-sdk-synthetics/errors'
|
18
19
|
require_relative 'aws-sdk-synthetics/resource'
|
20
|
+
require_relative 'aws-sdk-synthetics/endpoint_parameters'
|
21
|
+
require_relative 'aws-sdk-synthetics/endpoint_provider'
|
22
|
+
require_relative 'aws-sdk-synthetics/endpoints'
|
19
23
|
require_relative 'aws-sdk-synthetics/customizations'
|
20
24
|
|
21
25
|
# This module provides support for Synthetics. This module is available in the
|
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-synthetics/customizations'
|
|
48
52
|
# @!group service
|
49
53
|
module Aws::Synthetics
|
50
54
|
|
51
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.30.0'
|
52
56
|
|
53
57
|
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.
|
4
|
+
version: 1.30.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:
|
11
|
+
date: 2023-01-18 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.165.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.165.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,7 +59,11 @@ files:
|
|
59
59
|
- lib/aws-sdk-synthetics/client.rb
|
60
60
|
- lib/aws-sdk-synthetics/client_api.rb
|
61
61
|
- lib/aws-sdk-synthetics/customizations.rb
|
62
|
+
- lib/aws-sdk-synthetics/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-synthetics/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-synthetics/endpoints.rb
|
62
65
|
- lib/aws-sdk-synthetics/errors.rb
|
66
|
+
- lib/aws-sdk-synthetics/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-synthetics/resource.rb
|
64
68
|
- lib/aws-sdk-synthetics/types.rb
|
65
69
|
homepage: https://github.com/aws/aws-sdk-ruby
|