aws-sdk-fis 1.13.0 → 1.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18487227d7c29c5f98f72b39cae77b4c0247d05204e13e746d008dfc001561da
4
- data.tar.gz: dcede9ad22e3bec6566438f50e12e35ad8a09cd166f99c31d29a16d9d004763f
3
+ metadata.gz: 399d093bbdc7c990049fd0c52f2baecaf200bad41a554fe9010662d9ee74f972
4
+ data.tar.gz: 5afbeb69503b4c867cb1bd97cf01603f5da8e0516a7a1aaa6ad10c4ca2b1087a
5
5
  SHA512:
6
- metadata.gz: 8b7339dd1d108bc5efc375fb42c44c088dbc5109c497170113683324227e39a71333e2e2d4241059c56d4f7077e3f3d8cf4b28819ce8327e0adfb8f3f2ed2fb6
7
- data.tar.gz: 5ae6aba36f58fb7c7f8c43b01debc8402452c468fa12ff218a918c73f7a100a483186487b0e0512e42a8d0088af98ca4a91bd3c06df66553e61a2df562d445f6
6
+ metadata.gz: fe5f9094552d17761118eb864fafd062f9cefe76c4a9921532c9df85f45b708a974a4204b4d2768efade5dc99e9d03fc75b305406ce5b6ea6986878d4dbf2889
7
+ data.tar.gz: d13916544d3bc937bfb1cef6952b84b670c616e41eed9a287b7f6870971947c1ca69f4d8887c952f099f116e677b384d564df64c9c44cb2accc17153ba3d9da7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.15.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.14.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.13.0 (2022-02-28)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.13.0
1
+ 1.15.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/signature_v4.rb'
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(:fis)
@@ -79,8 +79,9 @@ module Aws::FIS
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::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::FIS::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::FIS
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::FIS
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::FIS::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::FIS::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
  #
@@ -1333,7 +1350,7 @@ module Aws::FIS
1333
1350
  params: params,
1334
1351
  config: config)
1335
1352
  context[:gem_name] = 'aws-sdk-fis'
1336
- context[:gem_version] = '1.13.0'
1353
+ context[:gem_version] = '1.15.0'
1337
1354
  Seahorse::Client::Request.new(handlers, context)
1338
1355
  end
1339
1356
 
@@ -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::FIS
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::FIS
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://fis-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://fis-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://fis.#{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://fis.#{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,239 @@
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::FIS
12
+ module Endpoints
13
+
14
+ class CreateExperimentTemplate
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::FIS::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 DeleteExperimentTemplate
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::FIS::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 GetAction
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::FIS::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 GetExperiment
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::FIS::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 GetExperimentTemplate
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::FIS::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 GetTargetResourceType
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::FIS::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 ListActions
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::FIS::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 ListExperimentTemplates
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::FIS::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 ListExperiments
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::FIS::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 ListTagsForResource
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::FIS::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 ListTargetResourceTypes
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::FIS::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 StartExperiment
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::FIS::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 StopExperiment
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::FIS::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 TagResource
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::FIS::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 UntagResource
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::FIS::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 UpdateExperimentTemplate
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::FIS::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
+ end
239
+ end
@@ -0,0 +1,100 @@
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::FIS
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::FIS::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::FIS::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::FIS::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 :create_experiment_template
60
+ Aws::FIS::Endpoints::CreateExperimentTemplate.build(context)
61
+ when :delete_experiment_template
62
+ Aws::FIS::Endpoints::DeleteExperimentTemplate.build(context)
63
+ when :get_action
64
+ Aws::FIS::Endpoints::GetAction.build(context)
65
+ when :get_experiment
66
+ Aws::FIS::Endpoints::GetExperiment.build(context)
67
+ when :get_experiment_template
68
+ Aws::FIS::Endpoints::GetExperimentTemplate.build(context)
69
+ when :get_target_resource_type
70
+ Aws::FIS::Endpoints::GetTargetResourceType.build(context)
71
+ when :list_actions
72
+ Aws::FIS::Endpoints::ListActions.build(context)
73
+ when :list_experiment_templates
74
+ Aws::FIS::Endpoints::ListExperimentTemplates.build(context)
75
+ when :list_experiments
76
+ Aws::FIS::Endpoints::ListExperiments.build(context)
77
+ when :list_tags_for_resource
78
+ Aws::FIS::Endpoints::ListTagsForResource.build(context)
79
+ when :list_target_resource_types
80
+ Aws::FIS::Endpoints::ListTargetResourceTypes.build(context)
81
+ when :start_experiment
82
+ Aws::FIS::Endpoints::StartExperiment.build(context)
83
+ when :stop_experiment
84
+ Aws::FIS::Endpoints::StopExperiment.build(context)
85
+ when :tag_resource
86
+ Aws::FIS::Endpoints::TagResource.build(context)
87
+ when :untag_resource
88
+ Aws::FIS::Endpoints::UntagResource.build(context)
89
+ when :update_experiment_template
90
+ Aws::FIS::Endpoints::UpdateExperimentTemplate.build(context)
91
+ end
92
+ end
93
+ end
94
+
95
+ def add_handlers(handlers, _config)
96
+ handlers.add(Handler, step: :build, priority: 75)
97
+ end
98
+ end
99
+ end
100
+ end
@@ -133,21 +133,6 @@ module Aws::FIS
133
133
  #
134
134
  # [1]: https://docs.aws.amazon.com/fis/latest/userguide/actions.html
135
135
  #
136
- # @note When making an API call, you may pass CreateExperimentTemplateActionInput
137
- # data as a hash:
138
- #
139
- # {
140
- # action_id: "ActionId", # required
141
- # description: "ExperimentTemplateActionDescription",
142
- # parameters: {
143
- # "ExperimentTemplateActionParameterName" => "ExperimentTemplateActionParameter",
144
- # },
145
- # targets: {
146
- # "ExperimentTemplateActionTargetName" => "ExperimentTemplateTargetName",
147
- # },
148
- # start_after: ["ExperimentTemplateActionStartAfter"],
149
- # }
150
- #
151
136
  # @!attribute [rw] action_id
152
137
  # The ID of the action. The format of the action ID is:
153
138
  # aws:*service-name*\:*action-type*.
@@ -185,20 +170,6 @@ module Aws::FIS
185
170
 
186
171
  # Specifies the configuration for experiment logging.
187
172
  #
188
- # @note When making an API call, you may pass CreateExperimentTemplateLogConfigurationInput
189
- # data as a hash:
190
- #
191
- # {
192
- # cloud_watch_logs_configuration: {
193
- # log_group_arn: "CloudWatchLogGroupArn", # required
194
- # },
195
- # s3_configuration: {
196
- # bucket_name: "S3BucketName", # required
197
- # prefix: "S3ObjectKey",
198
- # },
199
- # log_schema_version: 1, # required
200
- # }
201
- #
202
173
  # @!attribute [rw] cloud_watch_logs_configuration
203
174
  # The configuration for experiment logging to Amazon CloudWatch Logs.
204
175
  # @return [Types::ExperimentTemplateCloudWatchLogsLogConfigurationInput]
@@ -221,66 +192,6 @@ module Aws::FIS
221
192
  include Aws::Structure
222
193
  end
223
194
 
224
- # @note When making an API call, you may pass CreateExperimentTemplateRequest
225
- # data as a hash:
226
- #
227
- # {
228
- # client_token: "ClientToken", # required
229
- # description: "ExperimentTemplateDescription", # required
230
- # stop_conditions: [ # required
231
- # {
232
- # source: "StopConditionSource", # required
233
- # value: "StopConditionValue",
234
- # },
235
- # ],
236
- # targets: {
237
- # "ExperimentTemplateTargetName" => {
238
- # resource_type: "TargetResourceTypeId", # required
239
- # resource_arns: ["ResourceArn"],
240
- # resource_tags: {
241
- # "TagKey" => "TagValue",
242
- # },
243
- # filters: [
244
- # {
245
- # path: "ExperimentTemplateTargetFilterPath", # required
246
- # values: ["ExperimentTemplateTargetFilterValue"], # required
247
- # },
248
- # ],
249
- # selection_mode: "ExperimentTemplateTargetSelectionMode", # required
250
- # parameters: {
251
- # "ExperimentTemplateTargetParameterName" => "ExperimentTemplateTargetParameterValue",
252
- # },
253
- # },
254
- # },
255
- # actions: { # required
256
- # "ExperimentTemplateActionName" => {
257
- # action_id: "ActionId", # required
258
- # description: "ExperimentTemplateActionDescription",
259
- # parameters: {
260
- # "ExperimentTemplateActionParameterName" => "ExperimentTemplateActionParameter",
261
- # },
262
- # targets: {
263
- # "ExperimentTemplateActionTargetName" => "ExperimentTemplateTargetName",
264
- # },
265
- # start_after: ["ExperimentTemplateActionStartAfter"],
266
- # },
267
- # },
268
- # role_arn: "RoleArn", # required
269
- # tags: {
270
- # "TagKey" => "TagValue",
271
- # },
272
- # log_configuration: {
273
- # cloud_watch_logs_configuration: {
274
- # log_group_arn: "CloudWatchLogGroupArn", # required
275
- # },
276
- # s3_configuration: {
277
- # bucket_name: "S3BucketName", # required
278
- # prefix: "S3ObjectKey",
279
- # },
280
- # log_schema_version: 1, # required
281
- # },
282
- # }
283
- #
284
195
  # @!attribute [rw] client_token
285
196
  # Unique, case-sensitive identifier that you provide to ensure the
286
197
  # idempotency of the request.
@@ -347,14 +258,6 @@ module Aws::FIS
347
258
 
348
259
  # Specifies a stop condition for an experiment template.
349
260
  #
350
- # @note When making an API call, you may pass CreateExperimentTemplateStopConditionInput
351
- # data as a hash:
352
- #
353
- # {
354
- # source: "StopConditionSource", # required
355
- # value: "StopConditionValue",
356
- # }
357
- #
358
261
  # @!attribute [rw] source
359
262
  # The source for the stop condition. Specify `aws:cloudwatch:alarm` if
360
263
  # the stop condition is defined by a CloudWatch alarm. Specify `none`
@@ -386,27 +289,6 @@ module Aws::FIS
386
289
  #
387
290
  # [1]: https://docs.aws.amazon.com/fis/latest/userguide/targets.html
388
291
  #
389
- # @note When making an API call, you may pass CreateExperimentTemplateTargetInput
390
- # data as a hash:
391
- #
392
- # {
393
- # resource_type: "TargetResourceTypeId", # required
394
- # resource_arns: ["ResourceArn"],
395
- # resource_tags: {
396
- # "TagKey" => "TagValue",
397
- # },
398
- # filters: [
399
- # {
400
- # path: "ExperimentTemplateTargetFilterPath", # required
401
- # values: ["ExperimentTemplateTargetFilterValue"], # required
402
- # },
403
- # ],
404
- # selection_mode: "ExperimentTemplateTargetSelectionMode", # required
405
- # parameters: {
406
- # "ExperimentTemplateTargetParameterName" => "ExperimentTemplateTargetParameterValue",
407
- # },
408
- # }
409
- #
410
292
  # @!attribute [rw] resource_type
411
293
  # The resource type. The resource type must be supported for the
412
294
  # specified action.
@@ -459,13 +341,6 @@ module Aws::FIS
459
341
  include Aws::Structure
460
342
  end
461
343
 
462
- # @note When making an API call, you may pass DeleteExperimentTemplateRequest
463
- # data as a hash:
464
- #
465
- # {
466
- # id: "ExperimentTemplateId", # required
467
- # }
468
- #
469
344
  # @!attribute [rw] id
470
345
  # The ID of the experiment template.
471
346
  # @return [String]
@@ -933,13 +808,6 @@ module Aws::FIS
933
808
  # Specifies the configuration for experiment logging to Amazon
934
809
  # CloudWatch Logs.
935
810
  #
936
- # @note When making an API call, you may pass ExperimentTemplateCloudWatchLogsLogConfigurationInput
937
- # data as a hash:
938
- #
939
- # {
940
- # log_group_arn: "CloudWatchLogGroupArn", # required
941
- # }
942
- #
943
811
  # @!attribute [rw] log_group_arn
944
812
  # The Amazon Resource Name (ARN) of the destination Amazon CloudWatch
945
813
  # Logs log group.
@@ -998,14 +866,6 @@ module Aws::FIS
998
866
 
999
867
  # Specifies the configuration for experiment logging to Amazon S3.
1000
868
  #
1001
- # @note When making an API call, you may pass ExperimentTemplateS3LogConfigurationInput
1002
- # data as a hash:
1003
- #
1004
- # {
1005
- # bucket_name: "S3BucketName", # required
1006
- # prefix: "S3ObjectKey",
1007
- # }
1008
- #
1009
869
  # @!attribute [rw] bucket_name
1010
870
  # The name of the destination bucket.
1011
871
  # @return [String]
@@ -1147,14 +1007,6 @@ module Aws::FIS
1147
1007
  #
1148
1008
  # [1]: https://docs.aws.amazon.com/fis/latest/userguide/targets.html#target-filters
1149
1009
  #
1150
- # @note When making an API call, you may pass ExperimentTemplateTargetInputFilter
1151
- # data as a hash:
1152
- #
1153
- # {
1154
- # path: "ExperimentTemplateTargetFilterPath", # required
1155
- # values: ["ExperimentTemplateTargetFilterValue"], # required
1156
- # }
1157
- #
1158
1010
  # @!attribute [rw] path
1159
1011
  # The attribute path for the filter.
1160
1012
  # @return [String]
@@ -1172,13 +1024,6 @@ module Aws::FIS
1172
1024
  include Aws::Structure
1173
1025
  end
1174
1026
 
1175
- # @note When making an API call, you may pass GetActionRequest
1176
- # data as a hash:
1177
- #
1178
- # {
1179
- # id: "ActionId", # required
1180
- # }
1181
- #
1182
1027
  # @!attribute [rw] id
1183
1028
  # The ID of the action.
1184
1029
  # @return [String]
@@ -1203,13 +1048,6 @@ module Aws::FIS
1203
1048
  include Aws::Structure
1204
1049
  end
1205
1050
 
1206
- # @note When making an API call, you may pass GetExperimentRequest
1207
- # data as a hash:
1208
- #
1209
- # {
1210
- # id: "ExperimentId", # required
1211
- # }
1212
- #
1213
1051
  # @!attribute [rw] id
1214
1052
  # The ID of the experiment.
1215
1053
  # @return [String]
@@ -1234,13 +1072,6 @@ module Aws::FIS
1234
1072
  include Aws::Structure
1235
1073
  end
1236
1074
 
1237
- # @note When making an API call, you may pass GetExperimentTemplateRequest
1238
- # data as a hash:
1239
- #
1240
- # {
1241
- # id: "ExperimentTemplateId", # required
1242
- # }
1243
- #
1244
1075
  # @!attribute [rw] id
1245
1076
  # The ID of the experiment template.
1246
1077
  # @return [String]
@@ -1265,13 +1096,6 @@ module Aws::FIS
1265
1096
  include Aws::Structure
1266
1097
  end
1267
1098
 
1268
- # @note When making an API call, you may pass GetTargetResourceTypeRequest
1269
- # data as a hash:
1270
- #
1271
- # {
1272
- # resource_type: "TargetResourceTypeId", # required
1273
- # }
1274
- #
1275
1099
  # @!attribute [rw] resource_type
1276
1100
  # The resource type.
1277
1101
  # @return [String]
@@ -1296,14 +1120,6 @@ module Aws::FIS
1296
1120
  include Aws::Structure
1297
1121
  end
1298
1122
 
1299
- # @note When making an API call, you may pass ListActionsRequest
1300
- # data as a hash:
1301
- #
1302
- # {
1303
- # max_results: 1,
1304
- # next_token: "NextToken",
1305
- # }
1306
- #
1307
1123
  # @!attribute [rw] max_results
1308
1124
  # The maximum number of results to return with a single call. To
1309
1125
  # retrieve the remaining results, make another call with the returned
@@ -1341,14 +1157,6 @@ module Aws::FIS
1341
1157
  include Aws::Structure
1342
1158
  end
1343
1159
 
1344
- # @note When making an API call, you may pass ListExperimentTemplatesRequest
1345
- # data as a hash:
1346
- #
1347
- # {
1348
- # max_results: 1,
1349
- # next_token: "NextToken",
1350
- # }
1351
- #
1352
1160
  # @!attribute [rw] max_results
1353
1161
  # The maximum number of results to return with a single call. To
1354
1162
  # retrieve the remaining results, make another call with the returned
@@ -1386,14 +1194,6 @@ module Aws::FIS
1386
1194
  include Aws::Structure
1387
1195
  end
1388
1196
 
1389
- # @note When making an API call, you may pass ListExperimentsRequest
1390
- # data as a hash:
1391
- #
1392
- # {
1393
- # max_results: 1,
1394
- # next_token: "NextToken",
1395
- # }
1396
- #
1397
1197
  # @!attribute [rw] max_results
1398
1198
  # The maximum number of results to return with a single call. To
1399
1199
  # retrieve the remaining results, make another call with the returned
@@ -1431,13 +1231,6 @@ module Aws::FIS
1431
1231
  include Aws::Structure
1432
1232
  end
1433
1233
 
1434
- # @note When making an API call, you may pass ListTagsForResourceRequest
1435
- # data as a hash:
1436
- #
1437
- # {
1438
- # resource_arn: "ResourceArn", # required
1439
- # }
1440
- #
1441
1234
  # @!attribute [rw] resource_arn
1442
1235
  # The Amazon Resource Name (ARN) of the resource.
1443
1236
  # @return [String]
@@ -1462,14 +1255,6 @@ module Aws::FIS
1462
1255
  include Aws::Structure
1463
1256
  end
1464
1257
 
1465
- # @note When making an API call, you may pass ListTargetResourceTypesRequest
1466
- # data as a hash:
1467
- #
1468
- # {
1469
- # max_results: 1,
1470
- # next_token: "NextToken",
1471
- # }
1472
- #
1473
1258
  # @!attribute [rw] max_results
1474
1259
  # The maximum number of results to return with a single call. To
1475
1260
  # retrieve the remaining results, make another call with the returned
@@ -1533,17 +1318,6 @@ module Aws::FIS
1533
1318
  include Aws::Structure
1534
1319
  end
1535
1320
 
1536
- # @note When making an API call, you may pass StartExperimentRequest
1537
- # data as a hash:
1538
- #
1539
- # {
1540
- # client_token: "ClientToken", # required
1541
- # experiment_template_id: "ExperimentTemplateId", # required
1542
- # tags: {
1543
- # "TagKey" => "TagValue",
1544
- # },
1545
- # }
1546
- #
1547
1321
  # @!attribute [rw] client_token
1548
1322
  # Unique, case-sensitive identifier that you provide to ensure the
1549
1323
  # idempotency of the request.
@@ -1582,13 +1356,6 @@ module Aws::FIS
1582
1356
  include Aws::Structure
1583
1357
  end
1584
1358
 
1585
- # @note When making an API call, you may pass StopExperimentRequest
1586
- # data as a hash:
1587
- #
1588
- # {
1589
- # id: "ExperimentId", # required
1590
- # }
1591
- #
1592
1359
  # @!attribute [rw] id
1593
1360
  # The ID of the experiment.
1594
1361
  # @return [String]
@@ -1613,16 +1380,6 @@ module Aws::FIS
1613
1380
  include Aws::Structure
1614
1381
  end
1615
1382
 
1616
- # @note When making an API call, you may pass TagResourceRequest
1617
- # data as a hash:
1618
- #
1619
- # {
1620
- # resource_arn: "ResourceArn", # required
1621
- # tags: { # required
1622
- # "TagKey" => "TagValue",
1623
- # },
1624
- # }
1625
- #
1626
1383
  # @!attribute [rw] resource_arn
1627
1384
  # The Amazon Resource Name (ARN) of the resource.
1628
1385
  # @return [String]
@@ -1707,14 +1464,6 @@ module Aws::FIS
1707
1464
  include Aws::Structure
1708
1465
  end
1709
1466
 
1710
- # @note When making an API call, you may pass UntagResourceRequest
1711
- # data as a hash:
1712
- #
1713
- # {
1714
- # resource_arn: "ResourceArn", # required
1715
- # tag_keys: ["TagKey"],
1716
- # }
1717
- #
1718
1467
  # @!attribute [rw] resource_arn
1719
1468
  # The Amazon Resource Name (ARN) of the resource.
1720
1469
  # @return [String]
@@ -1738,21 +1487,6 @@ module Aws::FIS
1738
1487
 
1739
1488
  # Specifies an action for an experiment template.
1740
1489
  #
1741
- # @note When making an API call, you may pass UpdateExperimentTemplateActionInputItem
1742
- # data as a hash:
1743
- #
1744
- # {
1745
- # action_id: "ActionId",
1746
- # description: "ExperimentTemplateActionDescription",
1747
- # parameters: {
1748
- # "ExperimentTemplateActionParameterName" => "ExperimentTemplateActionParameter",
1749
- # },
1750
- # targets: {
1751
- # "ExperimentTemplateActionTargetName" => "ExperimentTemplateTargetName",
1752
- # },
1753
- # start_after: ["ExperimentTemplateActionStartAfter"],
1754
- # }
1755
- #
1756
1490
  # @!attribute [rw] action_id
1757
1491
  # The ID of the action.
1758
1492
  # @return [String]
@@ -1789,20 +1523,6 @@ module Aws::FIS
1789
1523
 
1790
1524
  # Specifies the configuration for experiment logging.
1791
1525
  #
1792
- # @note When making an API call, you may pass UpdateExperimentTemplateLogConfigurationInput
1793
- # data as a hash:
1794
- #
1795
- # {
1796
- # cloud_watch_logs_configuration: {
1797
- # log_group_arn: "CloudWatchLogGroupArn", # required
1798
- # },
1799
- # s3_configuration: {
1800
- # bucket_name: "S3BucketName", # required
1801
- # prefix: "S3ObjectKey",
1802
- # },
1803
- # log_schema_version: 1,
1804
- # }
1805
- #
1806
1526
  # @!attribute [rw] cloud_watch_logs_configuration
1807
1527
  # The configuration for experiment logging to Amazon CloudWatch Logs.
1808
1528
  # @return [Types::ExperimentTemplateCloudWatchLogsLogConfigurationInput]
@@ -1825,63 +1545,6 @@ module Aws::FIS
1825
1545
  include Aws::Structure
1826
1546
  end
1827
1547
 
1828
- # @note When making an API call, you may pass UpdateExperimentTemplateRequest
1829
- # data as a hash:
1830
- #
1831
- # {
1832
- # id: "ExperimentTemplateId", # required
1833
- # description: "ExperimentTemplateDescription",
1834
- # stop_conditions: [
1835
- # {
1836
- # source: "StopConditionSource", # required
1837
- # value: "StopConditionValue",
1838
- # },
1839
- # ],
1840
- # targets: {
1841
- # "ExperimentTemplateTargetName" => {
1842
- # resource_type: "TargetResourceTypeId", # required
1843
- # resource_arns: ["ResourceArn"],
1844
- # resource_tags: {
1845
- # "TagKey" => "TagValue",
1846
- # },
1847
- # filters: [
1848
- # {
1849
- # path: "ExperimentTemplateTargetFilterPath", # required
1850
- # values: ["ExperimentTemplateTargetFilterValue"], # required
1851
- # },
1852
- # ],
1853
- # selection_mode: "ExperimentTemplateTargetSelectionMode", # required
1854
- # parameters: {
1855
- # "ExperimentTemplateTargetParameterName" => "ExperimentTemplateTargetParameterValue",
1856
- # },
1857
- # },
1858
- # },
1859
- # actions: {
1860
- # "ExperimentTemplateActionName" => {
1861
- # action_id: "ActionId",
1862
- # description: "ExperimentTemplateActionDescription",
1863
- # parameters: {
1864
- # "ExperimentTemplateActionParameterName" => "ExperimentTemplateActionParameter",
1865
- # },
1866
- # targets: {
1867
- # "ExperimentTemplateActionTargetName" => "ExperimentTemplateTargetName",
1868
- # },
1869
- # start_after: ["ExperimentTemplateActionStartAfter"],
1870
- # },
1871
- # },
1872
- # role_arn: "RoleArn",
1873
- # log_configuration: {
1874
- # cloud_watch_logs_configuration: {
1875
- # log_group_arn: "CloudWatchLogGroupArn", # required
1876
- # },
1877
- # s3_configuration: {
1878
- # bucket_name: "S3BucketName", # required
1879
- # prefix: "S3ObjectKey",
1880
- # },
1881
- # log_schema_version: 1,
1882
- # },
1883
- # }
1884
- #
1885
1548
  # @!attribute [rw] id
1886
1549
  # The ID of the experiment template.
1887
1550
  # @return [String]
@@ -1940,14 +1603,6 @@ module Aws::FIS
1940
1603
  # Specifies a stop condition for an experiment. You can define a stop
1941
1604
  # condition as a CloudWatch alarm.
1942
1605
  #
1943
- # @note When making an API call, you may pass UpdateExperimentTemplateStopConditionInput
1944
- # data as a hash:
1945
- #
1946
- # {
1947
- # source: "StopConditionSource", # required
1948
- # value: "StopConditionValue",
1949
- # }
1950
- #
1951
1606
  # @!attribute [rw] source
1952
1607
  # The source for the stop condition. Specify `aws:cloudwatch:alarm` if
1953
1608
  # the stop condition is defined by a CloudWatch alarm. Specify `none`
@@ -1971,27 +1626,6 @@ module Aws::FIS
1971
1626
  # Amazon Resource Name (ARN) or at least one resource tag. You cannot
1972
1627
  # specify both.
1973
1628
  #
1974
- # @note When making an API call, you may pass UpdateExperimentTemplateTargetInput
1975
- # data as a hash:
1976
- #
1977
- # {
1978
- # resource_type: "TargetResourceTypeId", # required
1979
- # resource_arns: ["ResourceArn"],
1980
- # resource_tags: {
1981
- # "TagKey" => "TagValue",
1982
- # },
1983
- # filters: [
1984
- # {
1985
- # path: "ExperimentTemplateTargetFilterPath", # required
1986
- # values: ["ExperimentTemplateTargetFilterValue"], # required
1987
- # },
1988
- # ],
1989
- # selection_mode: "ExperimentTemplateTargetSelectionMode", # required
1990
- # parameters: {
1991
- # "ExperimentTemplateTargetParameterName" => "ExperimentTemplateTargetParameterValue",
1992
- # },
1993
- # }
1994
- #
1995
1629
  # @!attribute [rw] resource_type
1996
1630
  # The resource type. The resource type must be supported for the
1997
1631
  # specified action.
data/lib/aws-sdk-fis.rb CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-fis/types'
15
15
  require_relative 'aws-sdk-fis/client_api'
16
+ require_relative 'aws-sdk-fis/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-fis/client'
17
18
  require_relative 'aws-sdk-fis/errors'
18
19
  require_relative 'aws-sdk-fis/resource'
20
+ require_relative 'aws-sdk-fis/endpoint_parameters'
21
+ require_relative 'aws-sdk-fis/endpoint_provider'
22
+ require_relative 'aws-sdk-fis/endpoints'
19
23
  require_relative 'aws-sdk-fis/customizations'
20
24
 
21
25
  # This module provides support for AWS Fault Injection Simulator. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-fis/customizations'
48
52
  # @!group service
49
53
  module Aws::FIS
50
54
 
51
- GEM_VERSION = '1.13.0'
55
+ GEM_VERSION = '1.15.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-fis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.15.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-28 00:00:00.000000000 Z
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.127.0
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.127.0
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-fis/client.rb
60
60
  - lib/aws-sdk-fis/client_api.rb
61
61
  - lib/aws-sdk-fis/customizations.rb
62
+ - lib/aws-sdk-fis/endpoint_parameters.rb
63
+ - lib/aws-sdk-fis/endpoint_provider.rb
64
+ - lib/aws-sdk-fis/endpoints.rb
62
65
  - lib/aws-sdk-fis/errors.rb
66
+ - lib/aws-sdk-fis/plugins/endpoints.rb
63
67
  - lib/aws-sdk-fis/resource.rb
64
68
  - lib/aws-sdk-fis/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby