aws-sdk-mq 1.22.0 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a12a648846b571a74651f4fbdd38e89041d3e414
4
- data.tar.gz: e1b4b56e9fdd84eeb68064c9f6c1c64e2124aa10
2
+ SHA256:
3
+ metadata.gz: 822e036e40f5e0e48864f5507811e0a024a93955b171a76f7ae93225620105b7
4
+ data.tar.gz: 38fda45fa391ca9d64aa5337cf98b618aa69f6e98bc71d770934148f2c62c687
5
5
  SHA512:
6
- metadata.gz: 0bc564312128ad3d15cd625463b7739c771adc68fd0fc0fd8df12be724b80778b622495ccd64afe8c41a949ffbb2def4cae39c76fd22107bdd921ef484353821
7
- data.tar.gz: 42f53e6b612ff304a7af924d7bf1633dd56e74d6ce0328cafdd9ec85744d8eca36201549e4a4dae9f14c11d98ac2553196ad03c2f71fdf34ebfb7789b883d3ff
6
+ metadata.gz: dba1c8cd67df7f3a5d7b365be09000e302eb873e025b875689fa10a2c170de31fbcdf8bfc2495d6f0a509289ba83aa2239a38971dc57d139547c9ffd7535202e
7
+ data.tar.gz: 47cd5651c4d3db85182eb55b79a3f223411736caf760bbe7fc8a2b45677e5223b74ba341064e95b591c2fc2ea1e07a01f933bcc8ecec2401652d332b022352e6
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-mq/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # mq = Aws::MQ::Client.new
28
+ # resp = mq.create_broker(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from AmazonMQ all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from AmazonMQ are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::MQ::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all AmazonMQ API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-mq/customizations'
42
45
  # @service
43
46
  module Aws::MQ
44
47
 
45
- GEM_VERSION = '1.22.0'
48
+ GEM_VERSION = '1.27.0'
46
49
 
47
50
  end
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
30
30
  Aws::Plugins::GlobalConfiguration.add_identifier(:mq)
31
31
 
32
32
  module Aws::MQ
33
+ # An API client for MQ. To construct a client, you need to configure a `:region` and `:credentials`.
34
+ #
35
+ # client = Aws::MQ::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
+ #
41
+ # For details on configuring region and credentials see
42
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
43
+ #
44
+ # See {#initialize} for a full list of supported configuration options.
33
45
  class Client < Seahorse::Client::Base
34
46
 
35
47
  include Aws::ClientStubs
@@ -93,7 +105,7 @@ module Aws::MQ
93
105
  # @option options [required, String] :region
94
106
  # The AWS region to connect to. The configured `:region` is
95
107
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
97
109
  #
98
110
  # * `Aws.config[:region]`
99
111
  # * `ENV['AWS_REGION']`
@@ -108,6 +120,12 @@ module Aws::MQ
108
120
  # When set to `true`, a thread polling for endpoints will be running in
109
121
  # the background every 60 secs (default). Defaults to `false`.
110
122
  #
123
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
124
+ # Used only in `adaptive` retry mode. When true, the request will sleep
125
+ # until there is sufficent client side capacity to retry the request.
126
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
127
+ # not retry instead of sleeping.
128
+ #
111
129
  # @option options [Boolean] :client_side_monitoring (false)
112
130
  # When `true`, client-side metrics will be collected for all API requests from
113
131
  # this client.
@@ -132,6 +150,10 @@ module Aws::MQ
132
150
  # When `true`, an attempt is made to coerce request parameters into
133
151
  # the required types.
134
152
  #
153
+ # @option options [Boolean] :correct_clock_skew (true)
154
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
155
+ # a clock skew correction and retry requests with skewed client clocks.
156
+ #
135
157
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
158
  # Set to true to disable SDK automatically adding host prefix
137
159
  # to default service endpoint when available.
@@ -139,7 +161,7 @@ module Aws::MQ
139
161
  # @option options [String] :endpoint
140
162
  # The client endpoint is normally constructed from the `:region`
141
163
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
143
165
  #
144
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +176,7 @@ module Aws::MQ
154
176
  # requests fetching endpoints information. Defaults to 60 sec.
155
177
  #
156
178
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
179
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
180
  #
159
181
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
182
  # The log formatter.
@@ -166,15 +188,29 @@ module Aws::MQ
166
188
  # The Logger instance to send log messages to. If this option
167
189
  # is not set, logging will be disabled.
168
190
  #
191
+ # @option options [Integer] :max_attempts (3)
192
+ # An integer representing the maximum number attempts that will be made for
193
+ # a single request, including the initial attempt. For example,
194
+ # setting this value to 5 will result in a request being retried up to
195
+ # 4 times. Used in `standard` and `adaptive` retry modes.
196
+ #
169
197
  # @option options [String] :profile ("default")
170
198
  # Used when loading credentials from the shared credentials file
171
199
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
200
  #
201
+ # @option options [Proc] :retry_backoff
202
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
203
+ # This option is only used in the `legacy` retry mode.
204
+ #
173
205
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
206
+ # The base delay in seconds used by the default backoff function. This option
207
+ # is only used in the `legacy` retry mode.
175
208
  #
176
209
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
210
+ # A delay randomiser function used by the default backoff function.
211
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
212
+ # otherwise a Proc that takes and returns a number. This option is only used
213
+ # in the `legacy` retry mode.
178
214
  #
179
215
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
216
  #
@@ -182,11 +218,30 @@ module Aws::MQ
182
218
  # The maximum number of times to retry failed requests. Only
183
219
  # ~ 500 level server errors and certain ~ 400 level client errors
184
220
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
221
+ # checksum errors, networking errors, timeout errors, auth errors,
222
+ # endpoint discovery, and errors from expired credentials.
223
+ # This option is only used in the `legacy` retry mode.
187
224
  #
188
225
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
226
+ # The maximum number of seconds to delay between retries (0 for no limit)
227
+ # used by the default backoff function. This option is only used in the
228
+ # `legacy` retry mode.
229
+ #
230
+ # @option options [String] :retry_mode ("legacy")
231
+ # Specifies which retry algorithm to use. Values are:
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
190
245
  #
191
246
  # @option options [String] :secret_access_key
192
247
  #
@@ -209,16 +264,15 @@ module Aws::MQ
209
264
  # requests through. Formatted like 'http://proxy.com:123'.
210
265
  #
211
266
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
267
+ # seconds to wait when opening a HTTP session before raising a
213
268
  # `Timeout::Error`.
214
269
  #
215
270
  # @option options [Integer] :http_read_timeout (60) The default
216
271
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
272
+ # safely be set per-request on the session.
219
273
  #
220
274
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
275
+ # seconds a connection is allowed to sit idle before it is
222
276
  # considered stale. Stale connections are closed and removed
223
277
  # from the pool before making a request.
224
278
  #
@@ -227,7 +281,7 @@ module Aws::MQ
227
281
  # request body. This option has no effect unless the request has
228
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
283
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
284
+ # request on the session.
231
285
  #
232
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
287
  # HTTP debug output will be sent to the `:logger`.
@@ -293,6 +347,9 @@ module Aws::MQ
293
347
  #
294
348
  # @option params [Array<String>] :security_groups
295
349
  #
350
+ # @option params [String] :storage_type
351
+ # The storage type of the broker.
352
+ #
296
353
  # @option params [Array<String>] :subnet_ids
297
354
  #
298
355
  # @option params [Hash<String,String>] :tags
@@ -333,6 +390,7 @@ module Aws::MQ
333
390
  # },
334
391
  # publicly_accessible: false,
335
392
  # security_groups: ["__string"],
393
+ # storage_type: "EBS", # accepts EBS, EFS
336
394
  # subnet_ids: ["__string"],
337
395
  # tags: {
338
396
  # "__string" => "__string",
@@ -569,10 +627,11 @@ module Aws::MQ
569
627
  # * {Types::DescribeBrokerResponse#logs #logs} => Types::LogsSummary
570
628
  # * {Types::DescribeBrokerResponse#maintenance_window_start_time #maintenance_window_start_time} => Types::WeeklyStartTime
571
629
  # * {Types::DescribeBrokerResponse#pending_engine_version #pending_engine_version} => String
572
- # * {Types::DescribeBrokerResponse#pending_security_groups #pending_security_groups} => Array&lt;String&gt;
573
630
  # * {Types::DescribeBrokerResponse#pending_host_instance_type #pending_host_instance_type} => String
631
+ # * {Types::DescribeBrokerResponse#pending_security_groups #pending_security_groups} => Array&lt;String&gt;
574
632
  # * {Types::DescribeBrokerResponse#publicly_accessible #publicly_accessible} => Boolean
575
633
  # * {Types::DescribeBrokerResponse#security_groups #security_groups} => Array&lt;String&gt;
634
+ # * {Types::DescribeBrokerResponse#storage_type #storage_type} => String
576
635
  # * {Types::DescribeBrokerResponse#subnet_ids #subnet_ids} => Array&lt;String&gt;
577
636
  # * {Types::DescribeBrokerResponse#tags #tags} => Hash&lt;String,String&gt;
578
637
  # * {Types::DescribeBrokerResponse#users #users} => Array&lt;Types::UserSummary&gt;
@@ -619,12 +678,13 @@ module Aws::MQ
619
678
  # resp.maintenance_window_start_time.time_of_day #=> String
620
679
  # resp.maintenance_window_start_time.time_zone #=> String
621
680
  # resp.pending_engine_version #=> String
681
+ # resp.pending_host_instance_type #=> String
622
682
  # resp.pending_security_groups #=> Array
623
683
  # resp.pending_security_groups[0] #=> String
624
- # resp.pending_host_instance_type #=> String
625
684
  # resp.publicly_accessible #=> Boolean
626
685
  # resp.security_groups #=> Array
627
686
  # resp.security_groups[0] #=> String
687
+ # resp.storage_type #=> String, one of "EBS", "EFS"
628
688
  # resp.subnet_ids #=> Array
629
689
  # resp.subnet_ids[0] #=> String
630
690
  # resp.tags #=> Hash
@@ -692,6 +752,8 @@ module Aws::MQ
692
752
  #
693
753
  # @option params [String] :next_token
694
754
  #
755
+ # @option params [String] :storage_type
756
+ #
695
757
  # @return [Types::DescribeBrokerInstanceOptionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
696
758
  #
697
759
  # * {Types::DescribeBrokerInstanceOptionsResponse#broker_instance_options #broker_instance_options} => Array&lt;Types::BrokerInstanceOption&gt;
@@ -705,6 +767,7 @@ module Aws::MQ
705
767
  # host_instance_type: "__string",
706
768
  # max_results: 1,
707
769
  # next_token: "__string",
770
+ # storage_type: "__string",
708
771
  # })
709
772
  #
710
773
  # @example Response structure
@@ -714,6 +777,9 @@ module Aws::MQ
714
777
  # resp.broker_instance_options[0].availability_zones[0].name #=> String
715
778
  # resp.broker_instance_options[0].engine_type #=> String, one of "ACTIVEMQ"
716
779
  # resp.broker_instance_options[0].host_instance_type #=> String
780
+ # resp.broker_instance_options[0].storage_type #=> String, one of "EBS", "EFS"
781
+ # resp.broker_instance_options[0].supported_deployment_modes #=> Array
782
+ # resp.broker_instance_options[0].supported_deployment_modes[0] #=> String, one of "SINGLE_INSTANCE", "ACTIVE_STANDBY_MULTI_AZ"
717
783
  # resp.broker_instance_options[0].supported_engine_versions #=> Array
718
784
  # resp.broker_instance_options[0].supported_engine_versions[0] #=> String
719
785
  # resp.max_results #=> Integer
@@ -1233,7 +1299,7 @@ module Aws::MQ
1233
1299
  params: params,
1234
1300
  config: config)
1235
1301
  context[:gem_name] = 'aws-sdk-mq'
1236
- context[:gem_version] = '1.22.0'
1302
+ context[:gem_version] = '1.27.0'
1237
1303
  Seahorse::Client::Request.new(handlers, context)
1238
1304
  end
1239
1305
 
@@ -19,6 +19,7 @@ module Aws::MQ
19
19
  BrokerInstanceOption = Shapes::StructureShape.new(name: 'BrokerInstanceOption')
20
20
  BrokerInstanceOptionsOutput = Shapes::StructureShape.new(name: 'BrokerInstanceOptionsOutput')
21
21
  BrokerState = Shapes::StringShape.new(name: 'BrokerState')
22
+ BrokerStorageType = Shapes::StringShape.new(name: 'BrokerStorageType')
22
23
  BrokerSummary = Shapes::StructureShape.new(name: 'BrokerSummary')
23
24
  ChangeType = Shapes::StringShape.new(name: 'ChangeType')
24
25
  Configuration = Shapes::StructureShape.new(name: 'Configuration')
@@ -119,6 +120,7 @@ module Aws::MQ
119
120
  __listOfConfiguration = Shapes::ListShape.new(name: '__listOfConfiguration')
120
121
  __listOfConfigurationId = Shapes::ListShape.new(name: '__listOfConfigurationId')
121
122
  __listOfConfigurationRevision = Shapes::ListShape.new(name: '__listOfConfigurationRevision')
123
+ __listOfDeploymentMode = Shapes::ListShape.new(name: '__listOfDeploymentMode')
122
124
  __listOfEngineVersion = Shapes::ListShape.new(name: '__listOfEngineVersion')
123
125
  __listOfSanitizationWarning = Shapes::ListShape.new(name: '__listOfSanitizationWarning')
124
126
  __listOfUser = Shapes::ListShape.new(name: '__listOfUser')
@@ -154,6 +156,8 @@ module Aws::MQ
154
156
  BrokerInstanceOption.add_member(:availability_zones, Shapes::ShapeRef.new(shape: __listOfAvailabilityZone, location_name: "availabilityZones"))
155
157
  BrokerInstanceOption.add_member(:engine_type, Shapes::ShapeRef.new(shape: EngineType, location_name: "engineType"))
156
158
  BrokerInstanceOption.add_member(:host_instance_type, Shapes::ShapeRef.new(shape: __string, location_name: "hostInstanceType"))
159
+ BrokerInstanceOption.add_member(:storage_type, Shapes::ShapeRef.new(shape: BrokerStorageType, location_name: "storageType"))
160
+ BrokerInstanceOption.add_member(:supported_deployment_modes, Shapes::ShapeRef.new(shape: __listOfDeploymentMode, location_name: "supportedDeploymentModes"))
157
161
  BrokerInstanceOption.add_member(:supported_engine_versions, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "supportedEngineVersions"))
158
162
  BrokerInstanceOption.struct_class = Types::BrokerInstanceOption
159
163
 
@@ -213,6 +217,7 @@ module Aws::MQ
213
217
  CreateBrokerInput.add_member(:maintenance_window_start_time, Shapes::ShapeRef.new(shape: WeeklyStartTime, location_name: "maintenanceWindowStartTime"))
214
218
  CreateBrokerInput.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: __boolean, location_name: "publiclyAccessible"))
215
219
  CreateBrokerInput.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups"))
220
+ CreateBrokerInput.add_member(:storage_type, Shapes::ShapeRef.new(shape: BrokerStorageType, location_name: "storageType"))
216
221
  CreateBrokerInput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "subnetIds"))
217
222
  CreateBrokerInput.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
218
223
  CreateBrokerInput.add_member(:users, Shapes::ShapeRef.new(shape: __listOfUser, location_name: "users"))
@@ -235,6 +240,7 @@ module Aws::MQ
235
240
  CreateBrokerRequest.add_member(:maintenance_window_start_time, Shapes::ShapeRef.new(shape: WeeklyStartTime, location_name: "maintenanceWindowStartTime"))
236
241
  CreateBrokerRequest.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: __boolean, location_name: "publiclyAccessible"))
237
242
  CreateBrokerRequest.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups"))
243
+ CreateBrokerRequest.add_member(:storage_type, Shapes::ShapeRef.new(shape: BrokerStorageType, location_name: "storageType"))
238
244
  CreateBrokerRequest.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "subnetIds"))
239
245
  CreateBrokerRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
240
246
  CreateBrokerRequest.add_member(:users, Shapes::ShapeRef.new(shape: __listOfUser, location_name: "users"))
@@ -321,6 +327,7 @@ module Aws::MQ
321
327
  DescribeBrokerInstanceOptionsRequest.add_member(:host_instance_type, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "hostInstanceType"))
322
328
  DescribeBrokerInstanceOptionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
323
329
  DescribeBrokerInstanceOptionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
330
+ DescribeBrokerInstanceOptionsRequest.add_member(:storage_type, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "storageType"))
324
331
  DescribeBrokerInstanceOptionsRequest.struct_class = Types::DescribeBrokerInstanceOptionsRequest
325
332
 
326
333
  DescribeBrokerInstanceOptionsResponse.add_member(:broker_instance_options, Shapes::ShapeRef.new(shape: __listOfBrokerInstanceOption, location_name: "brokerInstanceOptions"))
@@ -344,10 +351,11 @@ module Aws::MQ
344
351
  DescribeBrokerOutput.add_member(:logs, Shapes::ShapeRef.new(shape: LogsSummary, location_name: "logs"))
345
352
  DescribeBrokerOutput.add_member(:maintenance_window_start_time, Shapes::ShapeRef.new(shape: WeeklyStartTime, location_name: "maintenanceWindowStartTime"))
346
353
  DescribeBrokerOutput.add_member(:pending_engine_version, Shapes::ShapeRef.new(shape: __string, location_name: "pendingEngineVersion"))
347
- DescribeBrokerOutput.add_member(:pending_security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "pendingSecurityGroups"))
348
354
  DescribeBrokerOutput.add_member(:pending_host_instance_type, Shapes::ShapeRef.new(shape: __string, location_name: "pendingHostInstanceType"))
355
+ DescribeBrokerOutput.add_member(:pending_security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "pendingSecurityGroups"))
349
356
  DescribeBrokerOutput.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: __boolean, location_name: "publiclyAccessible"))
350
357
  DescribeBrokerOutput.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups"))
358
+ DescribeBrokerOutput.add_member(:storage_type, Shapes::ShapeRef.new(shape: BrokerStorageType, location_name: "storageType"))
351
359
  DescribeBrokerOutput.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "subnetIds"))
352
360
  DescribeBrokerOutput.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
353
361
  DescribeBrokerOutput.add_member(:users, Shapes::ShapeRef.new(shape: __listOfUserSummary, location_name: "users"))
@@ -372,10 +380,11 @@ module Aws::MQ
372
380
  DescribeBrokerResponse.add_member(:logs, Shapes::ShapeRef.new(shape: LogsSummary, location_name: "logs"))
373
381
  DescribeBrokerResponse.add_member(:maintenance_window_start_time, Shapes::ShapeRef.new(shape: WeeklyStartTime, location_name: "maintenanceWindowStartTime"))
374
382
  DescribeBrokerResponse.add_member(:pending_engine_version, Shapes::ShapeRef.new(shape: __string, location_name: "pendingEngineVersion"))
375
- DescribeBrokerResponse.add_member(:pending_security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "pendingSecurityGroups"))
376
383
  DescribeBrokerResponse.add_member(:pending_host_instance_type, Shapes::ShapeRef.new(shape: __string, location_name: "pendingHostInstanceType"))
384
+ DescribeBrokerResponse.add_member(:pending_security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "pendingSecurityGroups"))
377
385
  DescribeBrokerResponse.add_member(:publicly_accessible, Shapes::ShapeRef.new(shape: __boolean, location_name: "publiclyAccessible"))
378
386
  DescribeBrokerResponse.add_member(:security_groups, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "securityGroups"))
387
+ DescribeBrokerResponse.add_member(:storage_type, Shapes::ShapeRef.new(shape: BrokerStorageType, location_name: "storageType"))
379
388
  DescribeBrokerResponse.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: __listOf__string, location_name: "subnetIds"))
380
389
  DescribeBrokerResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
381
390
  DescribeBrokerResponse.add_member(:users, Shapes::ShapeRef.new(shape: __listOfUserSummary, location_name: "users"))
@@ -660,6 +669,8 @@ module Aws::MQ
660
669
 
661
670
  __listOfConfigurationRevision.member = Shapes::ShapeRef.new(shape: ConfigurationRevision)
662
671
 
672
+ __listOfDeploymentMode.member = Shapes::ShapeRef.new(shape: DeploymentMode)
673
+
663
674
  __listOfEngineVersion.member = Shapes::ShapeRef.new(shape: EngineVersion)
664
675
 
665
676
  __listOfSanitizationWarning.member = Shapes::ShapeRef.new(shape: SanitizationWarning)
@@ -6,6 +6,34 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::MQ
9
+
10
+ # When MQ returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::MQ::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all MQ errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::MQ::Errors::ServiceError
18
+ # # rescues all MQ API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {BadRequestException}
29
+ # * {ConflictException}
30
+ # * {ForbiddenException}
31
+ # * {InternalServerErrorException}
32
+ # * {NotFoundException}
33
+ # * {UnauthorizedException}
34
+ #
35
+ # Additionally, error classes are dynamically generated for service errors based on the error code
36
+ # if they are not defined above.
9
37
  module Errors
10
38
 
11
39
  extend Aws::Errors::DynamicErrors
@@ -28,7 +56,6 @@ module Aws::MQ
28
56
  def message
29
57
  @message || @data[:message]
30
58
  end
31
-
32
59
  end
33
60
 
34
61
  class ConflictException < ServiceError
@@ -49,7 +76,6 @@ module Aws::MQ
49
76
  def message
50
77
  @message || @data[:message]
51
78
  end
52
-
53
79
  end
54
80
 
55
81
  class ForbiddenException < ServiceError
@@ -70,7 +96,6 @@ module Aws::MQ
70
96
  def message
71
97
  @message || @data[:message]
72
98
  end
73
-
74
99
  end
75
100
 
76
101
  class InternalServerErrorException < ServiceError
@@ -91,7 +116,6 @@ module Aws::MQ
91
116
  def message
92
117
  @message || @data[:message]
93
118
  end
94
-
95
119
  end
96
120
 
97
121
  class NotFoundException < ServiceError
@@ -112,7 +136,6 @@ module Aws::MQ
112
136
  def message
113
137
  @message || @data[:message]
114
138
  end
115
-
116
139
  end
117
140
 
118
141
  class UnauthorizedException < ServiceError
@@ -133,7 +156,6 @@ module Aws::MQ
133
156
  def message
134
157
  @message || @data[:message]
135
158
  end
136
-
137
159
  end
138
160
 
139
161
  end
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::MQ
9
+
9
10
  class Resource
10
11
 
11
12
  # @param options ({})
@@ -119,6 +119,14 @@ module Aws::MQ
119
119
  # The type of broker instance.
120
120
  # @return [String]
121
121
  #
122
+ # @!attribute [rw] storage_type
123
+ # The broker's storage type.
124
+ # @return [String]
125
+ #
126
+ # @!attribute [rw] supported_deployment_modes
127
+ # The list of supported deployment modes.
128
+ # @return [Array<String>]
129
+ #
122
130
  # @!attribute [rw] supported_engine_versions
123
131
  # The list of supported engine versions.
124
132
  # @return [Array<String>]
@@ -129,6 +137,8 @@ module Aws::MQ
129
137
  :availability_zones,
130
138
  :engine_type,
131
139
  :host_instance_type,
140
+ :storage_type,
141
+ :supported_deployment_modes,
132
142
  :supported_engine_versions)
133
143
  include Aws::Structure
134
144
  end
@@ -416,10 +426,14 @@ module Aws::MQ
416
426
  # @return [Boolean]
417
427
  #
418
428
  # @!attribute [rw] security_groups
419
- # The list of security groups (1 minimum, 5 maximum) that authorize
429
+ # The list of security groups (1 minimum, 5 maximum) that authorizes
420
430
  # connections to brokers.
421
431
  # @return [Array<String>]
422
432
  #
433
+ # @!attribute [rw] storage_type
434
+ # The broker's storage type.
435
+ # @return [String]
436
+ #
423
437
  # @!attribute [rw] subnet_ids
424
438
  # The list of groups (2 maximum) that define which subnets and IP
425
439
  # ranges the broker can use from different Availability Zones. A
@@ -455,6 +469,7 @@ module Aws::MQ
455
469
  :maintenance_window_start_time,
456
470
  :publicly_accessible,
457
471
  :security_groups,
472
+ :storage_type,
458
473
  :subnet_ids,
459
474
  :tags,
460
475
  :users)
@@ -509,6 +524,7 @@ module Aws::MQ
509
524
  # },
510
525
  # publicly_accessible: false,
511
526
  # security_groups: ["__string"],
527
+ # storage_type: "EBS", # accepts EBS, EFS
512
528
  # subnet_ids: ["__string"],
513
529
  # tags: {
514
530
  # "__string" => "__string",
@@ -573,6 +589,10 @@ module Aws::MQ
573
589
  # @!attribute [rw] security_groups
574
590
  # @return [Array<String>]
575
591
  #
592
+ # @!attribute [rw] storage_type
593
+ # The storage type of the broker.
594
+ # @return [String]
595
+ #
576
596
  # @!attribute [rw] subnet_ids
577
597
  # @return [Array<String>]
578
598
  #
@@ -598,6 +618,7 @@ module Aws::MQ
598
618
  :maintenance_window_start_time,
599
619
  :publicly_accessible,
600
620
  :security_groups,
621
+ :storage_type,
601
622
  :subnet_ids,
602
623
  :tags,
603
624
  :users)
@@ -987,6 +1008,7 @@ module Aws::MQ
987
1008
  # host_instance_type: "__string",
988
1009
  # max_results: 1,
989
1010
  # next_token: "__string",
1011
+ # storage_type: "__string",
990
1012
  # }
991
1013
  #
992
1014
  # @!attribute [rw] engine_type
@@ -1001,13 +1023,17 @@ module Aws::MQ
1001
1023
  # @!attribute [rw] next_token
1002
1024
  # @return [String]
1003
1025
  #
1026
+ # @!attribute [rw] storage_type
1027
+ # @return [String]
1028
+ #
1004
1029
  # @see http://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerInstanceOptionsRequest AWS API Documentation
1005
1030
  #
1006
1031
  class DescribeBrokerInstanceOptionsRequest < Struct.new(
1007
1032
  :engine_type,
1008
1033
  :host_instance_type,
1009
1034
  :max_results,
1010
- :next_token)
1035
+ :next_token,
1036
+ :storage_type)
1011
1037
  include Aws::Structure
1012
1038
  end
1013
1039
 
@@ -1109,27 +1135,31 @@ module Aws::MQ
1109
1135
  # https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
1110
1136
  # @return [String]
1111
1137
  #
1112
- # @!attribute [rw] pending_security_groups
1113
- # The list of pending security groups to authorize connections to
1114
- # brokers.
1115
- # @return [Array<String>]
1116
- #
1117
1138
  # @!attribute [rw] pending_host_instance_type
1118
1139
  # The host instance type of the broker to upgrade to. For a list of
1119
1140
  # supported instance types, see
1120
1141
  # https://docs.aws.amazon.com/amazon-mq/latest/developer-guide//broker.html#broker-instance-types
1121
1142
  # @return [String]
1122
1143
  #
1144
+ # @!attribute [rw] pending_security_groups
1145
+ # The list of pending security groups to authorize connections to
1146
+ # brokers.
1147
+ # @return [Array<String>]
1148
+ #
1123
1149
  # @!attribute [rw] publicly_accessible
1124
1150
  # Required. Enables connections from applications outside of the VPC
1125
1151
  # that hosts the broker's subnets.
1126
1152
  # @return [Boolean]
1127
1153
  #
1128
1154
  # @!attribute [rw] security_groups
1129
- # The list of security groups (1 minimum, 5 maximum) that authorize
1155
+ # The list of security groups (1 minimum, 5 maximum) that authorizes
1130
1156
  # connections to brokers.
1131
1157
  # @return [Array<String>]
1132
1158
  #
1159
+ # @!attribute [rw] storage_type
1160
+ # The broker's storage type.
1161
+ # @return [String]
1162
+ #
1133
1163
  # @!attribute [rw] subnet_ids
1134
1164
  # The list of groups (2 maximum) that define which subnets and IP
1135
1165
  # ranges the broker can use from different Availability Zones. A
@@ -1165,10 +1195,11 @@ module Aws::MQ
1165
1195
  :logs,
1166
1196
  :maintenance_window_start_time,
1167
1197
  :pending_engine_version,
1168
- :pending_security_groups,
1169
1198
  :pending_host_instance_type,
1199
+ :pending_security_groups,
1170
1200
  :publicly_accessible,
1171
1201
  :security_groups,
1202
+ :storage_type,
1172
1203
  :subnet_ids,
1173
1204
  :tags,
1174
1205
  :users)
@@ -1250,18 +1281,22 @@ module Aws::MQ
1250
1281
  # @!attribute [rw] pending_engine_version
1251
1282
  # @return [String]
1252
1283
  #
1253
- # @!attribute [rw] pending_security_groups
1254
- # @return [Array<String>]
1255
- #
1256
1284
  # @!attribute [rw] pending_host_instance_type
1257
1285
  # @return [String]
1258
1286
  #
1287
+ # @!attribute [rw] pending_security_groups
1288
+ # @return [Array<String>]
1289
+ #
1259
1290
  # @!attribute [rw] publicly_accessible
1260
1291
  # @return [Boolean]
1261
1292
  #
1262
1293
  # @!attribute [rw] security_groups
1263
1294
  # @return [Array<String>]
1264
1295
  #
1296
+ # @!attribute [rw] storage_type
1297
+ # The storage type of the broker.
1298
+ # @return [String]
1299
+ #
1265
1300
  # @!attribute [rw] subnet_ids
1266
1301
  # @return [Array<String>]
1267
1302
  #
@@ -1290,10 +1325,11 @@ module Aws::MQ
1290
1325
  :logs,
1291
1326
  :maintenance_window_start_time,
1292
1327
  :pending_engine_version,
1293
- :pending_security_groups,
1294
1328
  :pending_host_instance_type,
1329
+ :pending_security_groups,
1295
1330
  :publicly_accessible,
1296
1331
  :security_groups,
1332
+ :storage_type,
1297
1333
  :subnet_ids,
1298
1334
  :tags,
1299
1335
  :users)
@@ -2132,7 +2168,7 @@ module Aws::MQ
2132
2168
  # @return [Types::Logs]
2133
2169
  #
2134
2170
  # @!attribute [rw] security_groups
2135
- # The list of security groups (1 minimum, 5 maximum) that authorize
2171
+ # The list of security groups (1 minimum, 5 maximum) that authorizes
2136
2172
  # connections to brokers.
2137
2173
  # @return [Array<String>]
2138
2174
  #
@@ -2181,7 +2217,7 @@ module Aws::MQ
2181
2217
  # @return [Types::Logs]
2182
2218
  #
2183
2219
  # @!attribute [rw] security_groups
2184
- # The list of security groups (1 minimum, 5 maximum) that authorize
2220
+ # The list of security groups (1 minimum, 5 maximum) that authorizes
2185
2221
  # connections to brokers.
2186
2222
  # @return [Array<String>]
2187
2223
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-mq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-30 00:00:00.000000000 Z
11
+ date: 2020-05-28 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.61.1
22
+ version: 3.71.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.61.1
32
+ version: 3.71.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  version: '0'
82
82
  requirements: []
83
83
  rubyforge_project:
84
- rubygems_version: 2.5.2.3
84
+ rubygems_version: 2.7.6.2
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: AWS SDK for Ruby - AmazonMQ