aws-sdk-kafkaconnect 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 440a37019b270dc72c6672e2f447815c2ac6f5df5b8a2211a95be898e20d9575
4
- data.tar.gz: 11410a838babe9544a310689b5abb7df0b9e6613b72a5ab298f0734cccc72b6e
3
+ metadata.gz: 836affeea5282aede15636d0aa38357af11b894ab0f1845819fee20cf9d3d674
4
+ data.tar.gz: 374797f27b55c17d103a5f628d6e79c6b460e8736580dc166a1967567034b5e1
5
5
  SHA512:
6
- metadata.gz: fd75a3c559122a7dbe2c9969ed006ebbae31aeec2722d953a79b17fc7f611d0254a643334dba591ce2130c8828e6c4c649c054739de1a73352b1edfacc594802
7
- data.tar.gz: 29970b38520b595dcc4c7d4aff34b4b3dcd8a28b81e4f3ff0c215a57bcd767b4ccd48fd9ad236fe30a79a26196cca13423323b31c90e7172b57f180800df3e15
6
+ metadata.gz: 03ba20f65d4c6ba5009676b426502e64efad7c8c1ecb1742b5b3a5667a3828964d8f199f2db74fd5dfe2b52d993d60df6c99bc74d0aea5959c721de749496fa8
7
+ data.tar.gz: a6fa984a9828bf1d678385f339e490caee41b05fb3a1d52c78c8d3a04ee13603cd882ef23b6498f06847a30919dac94a40a3fa662d936c63b8345735cb573128
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.8.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.7.0 (2022-03-01)
10
+ ------------------
11
+
12
+ * Feature - Adds operation for custom plugin deletion (DeleteCustomPlugin) and adds new StateDescription field to DescribeCustomPlugin and DescribeConnector responses to return errors from asynchronous resource creation.
13
+
4
14
  1.6.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.0
1
+ 1.8.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(:kafkaconnect)
@@ -79,8 +79,9 @@ module Aws::KafkaConnect
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::KafkaConnect::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::KafkaConnect
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::KafkaConnect
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::KafkaConnect::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::KafkaConnect::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
  #
@@ -565,7 +582,7 @@ module Aws::KafkaConnect
565
582
  # resp = client.create_worker_configuration({
566
583
  # description: "__stringMax1024",
567
584
  # name: "__stringMin1Max128", # required
568
- # properties_file_content: "__string", # required
585
+ # properties_file_content: "SyntheticCreateWorkerConfigurationRequest__string", # required
569
586
  # })
570
587
  #
571
588
  # @example Response structure
@@ -621,6 +638,37 @@ module Aws::KafkaConnect
621
638
  req.send_request(options)
622
639
  end
623
640
 
641
+ # Deletes a custom plugin.
642
+ #
643
+ # @option params [required, String] :custom_plugin_arn
644
+ # The Amazon Resource Name (ARN) of the custom plugin that you want to
645
+ # delete.
646
+ #
647
+ # @return [Types::DeleteCustomPluginResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
648
+ #
649
+ # * {Types::DeleteCustomPluginResponse#custom_plugin_arn #custom_plugin_arn} => String
650
+ # * {Types::DeleteCustomPluginResponse#custom_plugin_state #custom_plugin_state} => String
651
+ #
652
+ # @example Request syntax with placeholder values
653
+ #
654
+ # resp = client.delete_custom_plugin({
655
+ # custom_plugin_arn: "__string", # required
656
+ # })
657
+ #
658
+ # @example Response structure
659
+ #
660
+ # resp.custom_plugin_arn #=> String
661
+ # resp.custom_plugin_state #=> String, one of "CREATING", "CREATE_FAILED", "ACTIVE", "UPDATING", "UPDATE_FAILED", "DELETING"
662
+ #
663
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DeleteCustomPlugin AWS API Documentation
664
+ #
665
+ # @overload delete_custom_plugin(params = {})
666
+ # @param [Hash] params ({})
667
+ def delete_custom_plugin(params = {}, options = {})
668
+ req = build_request(:delete_custom_plugin, params)
669
+ req.send_request(options)
670
+ end
671
+
624
672
  # Returns summary information about the connector.
625
673
  #
626
674
  # @option params [required, String] :connector_arn
@@ -644,6 +692,7 @@ module Aws::KafkaConnect
644
692
  # * {Types::DescribeConnectorResponse#log_delivery #log_delivery} => Types::LogDeliveryDescription
645
693
  # * {Types::DescribeConnectorResponse#plugins #plugins} => Array<Types::PluginDescription>
646
694
  # * {Types::DescribeConnectorResponse#service_execution_role_arn #service_execution_role_arn} => String
695
+ # * {Types::DescribeConnectorResponse#state_description #state_description} => Types::StateDescription
647
696
  # * {Types::DescribeConnectorResponse#worker_configuration #worker_configuration} => Types::WorkerConfigurationDescription
648
697
  #
649
698
  # @example Request syntax with placeholder values
@@ -688,6 +737,8 @@ module Aws::KafkaConnect
688
737
  # resp.plugins[0].custom_plugin.custom_plugin_arn #=> String
689
738
  # resp.plugins[0].custom_plugin.revision #=> Integer
690
739
  # resp.service_execution_role_arn #=> String
740
+ # resp.state_description.code #=> String
741
+ # resp.state_description.message #=> String
691
742
  # resp.worker_configuration.revision #=> Integer
692
743
  # resp.worker_configuration.worker_configuration_arn #=> String
693
744
  #
@@ -713,6 +764,7 @@ module Aws::KafkaConnect
713
764
  # * {Types::DescribeCustomPluginResponse#description #description} => String
714
765
  # * {Types::DescribeCustomPluginResponse#latest_revision #latest_revision} => Types::CustomPluginRevisionSummary
715
766
  # * {Types::DescribeCustomPluginResponse#name #name} => String
767
+ # * {Types::DescribeCustomPluginResponse#state_description #state_description} => Types::StateDescription
716
768
  #
717
769
  # @example Request syntax with placeholder values
718
770
  #
@@ -736,6 +788,8 @@ module Aws::KafkaConnect
736
788
  # resp.latest_revision.location.s3_location.object_version #=> String
737
789
  # resp.latest_revision.revision #=> Integer
738
790
  # resp.name #=> String
791
+ # resp.state_description.code #=> String
792
+ # resp.state_description.message #=> String
739
793
  #
740
794
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeCustomPlugin AWS API Documentation
741
795
  #
@@ -1034,7 +1088,7 @@ module Aws::KafkaConnect
1034
1088
  params: params,
1035
1089
  config: config)
1036
1090
  context[:gem_name] = 'aws-sdk-kafkaconnect'
1037
- context[:gem_version] = '1.6.0'
1091
+ context[:gem_version] = '1.8.0'
1038
1092
  Seahorse::Client::Request.new(handlers, context)
1039
1093
  end
1040
1094
 
@@ -44,6 +44,8 @@ module Aws::KafkaConnect
44
44
  CustomPluginSummary = Shapes::StructureShape.new(name: 'CustomPluginSummary')
45
45
  DeleteConnectorRequest = Shapes::StructureShape.new(name: 'DeleteConnectorRequest')
46
46
  DeleteConnectorResponse = Shapes::StructureShape.new(name: 'DeleteConnectorResponse')
47
+ DeleteCustomPluginRequest = Shapes::StructureShape.new(name: 'DeleteCustomPluginRequest')
48
+ DeleteCustomPluginResponse = Shapes::StructureShape.new(name: 'DeleteCustomPluginResponse')
47
49
  DescribeConnectorRequest = Shapes::StructureShape.new(name: 'DescribeConnectorRequest')
48
50
  DescribeConnectorResponse = Shapes::StructureShape.new(name: 'DescribeConnectorResponse')
49
51
  DescribeCustomPluginRequest = Shapes::StructureShape.new(name: 'DescribeCustomPluginRequest')
@@ -88,6 +90,11 @@ module Aws::KafkaConnect
88
90
  ScaleOutPolicyDescription = Shapes::StructureShape.new(name: 'ScaleOutPolicyDescription')
89
91
  ScaleOutPolicyUpdate = Shapes::StructureShape.new(name: 'ScaleOutPolicyUpdate')
90
92
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
93
+ StateDescription = Shapes::StructureShape.new(name: 'StateDescription')
94
+ SyntheticCreateConnectorRequest__mapOf__string = Shapes::MapShape.new(name: 'SyntheticCreateConnectorRequest__mapOf__string')
95
+ SyntheticCreateWorkerConfigurationRequest__string = Shapes::StringShape.new(name: 'SyntheticCreateWorkerConfigurationRequest__string')
96
+ SyntheticDescribeConnectorResponse__mapOf__string = Shapes::MapShape.new(name: 'SyntheticDescribeConnectorResponse__mapOf__string')
97
+ SyntheticWorkerConfigurationRevisionDescription__string = Shapes::StringShape.new(name: 'SyntheticWorkerConfigurationRevisionDescription__string')
91
98
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
92
99
  UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
93
100
  UpdateConnectorRequest = Shapes::StructureShape.new(name: 'UpdateConnectorRequest')
@@ -114,7 +121,6 @@ module Aws::KafkaConnect
114
121
  __listOf__string = Shapes::ListShape.new(name: '__listOf__string')
115
122
  __long = Shapes::IntegerShape.new(name: '__long')
116
123
  __longMin1 = Shapes::IntegerShape.new(name: '__longMin1')
117
- __mapOf__string = Shapes::MapShape.new(name: '__mapOf__string')
118
124
  __string = Shapes::StringShape.new(name: '__string')
119
125
  __stringMax1024 = Shapes::StringShape.new(name: '__stringMax1024')
120
126
  __stringMin1Max128 = Shapes::StringShape.new(name: '__stringMin1Max128')
@@ -193,7 +199,7 @@ module Aws::KafkaConnect
193
199
  ConnectorSummary.struct_class = Types::ConnectorSummary
194
200
 
195
201
  CreateConnectorRequest.add_member(:capacity, Shapes::ShapeRef.new(shape: Capacity, required: true, location_name: "capacity"))
196
- CreateConnectorRequest.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: __mapOf__string, required: true, location_name: "connectorConfiguration"))
202
+ CreateConnectorRequest.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: SyntheticCreateConnectorRequest__mapOf__string, required: true, location_name: "connectorConfiguration"))
197
203
  CreateConnectorRequest.add_member(:connector_description, Shapes::ShapeRef.new(shape: __stringMax1024, location_name: "connectorDescription"))
198
204
  CreateConnectorRequest.add_member(:connector_name, Shapes::ShapeRef.new(shape: __stringMin1Max128, required: true, location_name: "connectorName"))
199
205
  CreateConnectorRequest.add_member(:kafka_cluster, Shapes::ShapeRef.new(shape: KafkaCluster, required: true, location_name: "kafkaCluster"))
@@ -225,7 +231,7 @@ module Aws::KafkaConnect
225
231
 
226
232
  CreateWorkerConfigurationRequest.add_member(:description, Shapes::ShapeRef.new(shape: __stringMax1024, location_name: "description"))
227
233
  CreateWorkerConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __stringMin1Max128, required: true, location_name: "name"))
228
- CreateWorkerConfigurationRequest.add_member(:properties_file_content, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "propertiesFileContent"))
234
+ CreateWorkerConfigurationRequest.add_member(:properties_file_content, Shapes::ShapeRef.new(shape: SyntheticCreateWorkerConfigurationRequest__string, required: true, location_name: "propertiesFileContent"))
229
235
  CreateWorkerConfigurationRequest.struct_class = Types::CreateWorkerConfigurationRequest
230
236
 
231
237
  CreateWorkerConfigurationResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
@@ -276,12 +282,19 @@ module Aws::KafkaConnect
276
282
  DeleteConnectorResponse.add_member(:connector_state, Shapes::ShapeRef.new(shape: ConnectorState, location_name: "connectorState"))
277
283
  DeleteConnectorResponse.struct_class = Types::DeleteConnectorResponse
278
284
 
285
+ DeleteCustomPluginRequest.add_member(:custom_plugin_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "customPluginArn"))
286
+ DeleteCustomPluginRequest.struct_class = Types::DeleteCustomPluginRequest
287
+
288
+ DeleteCustomPluginResponse.add_member(:custom_plugin_arn, Shapes::ShapeRef.new(shape: __string, location_name: "customPluginArn"))
289
+ DeleteCustomPluginResponse.add_member(:custom_plugin_state, Shapes::ShapeRef.new(shape: CustomPluginState, location_name: "customPluginState"))
290
+ DeleteCustomPluginResponse.struct_class = Types::DeleteCustomPluginResponse
291
+
279
292
  DescribeConnectorRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectorArn"))
280
293
  DescribeConnectorRequest.struct_class = Types::DescribeConnectorRequest
281
294
 
282
295
  DescribeConnectorResponse.add_member(:capacity, Shapes::ShapeRef.new(shape: CapacityDescription, location_name: "capacity"))
283
296
  DescribeConnectorResponse.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, location_name: "connectorArn"))
284
- DescribeConnectorResponse.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "connectorConfiguration"))
297
+ DescribeConnectorResponse.add_member(:connector_configuration, Shapes::ShapeRef.new(shape: SyntheticDescribeConnectorResponse__mapOf__string, location_name: "connectorConfiguration"))
285
298
  DescribeConnectorResponse.add_member(:connector_description, Shapes::ShapeRef.new(shape: __string, location_name: "connectorDescription"))
286
299
  DescribeConnectorResponse.add_member(:connector_name, Shapes::ShapeRef.new(shape: __string, location_name: "connectorName"))
287
300
  DescribeConnectorResponse.add_member(:connector_state, Shapes::ShapeRef.new(shape: ConnectorState, location_name: "connectorState"))
@@ -294,6 +307,7 @@ module Aws::KafkaConnect
294
307
  DescribeConnectorResponse.add_member(:log_delivery, Shapes::ShapeRef.new(shape: LogDeliveryDescription, location_name: "logDelivery"))
295
308
  DescribeConnectorResponse.add_member(:plugins, Shapes::ShapeRef.new(shape: __listOfPluginDescription, location_name: "plugins"))
296
309
  DescribeConnectorResponse.add_member(:service_execution_role_arn, Shapes::ShapeRef.new(shape: __string, location_name: "serviceExecutionRoleArn"))
310
+ DescribeConnectorResponse.add_member(:state_description, Shapes::ShapeRef.new(shape: StateDescription, location_name: "stateDescription"))
297
311
  DescribeConnectorResponse.add_member(:worker_configuration, Shapes::ShapeRef.new(shape: WorkerConfigurationDescription, location_name: "workerConfiguration"))
298
312
  DescribeConnectorResponse.struct_class = Types::DescribeConnectorResponse
299
313
 
@@ -306,6 +320,7 @@ module Aws::KafkaConnect
306
320
  DescribeCustomPluginResponse.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
307
321
  DescribeCustomPluginResponse.add_member(:latest_revision, Shapes::ShapeRef.new(shape: CustomPluginRevisionSummary, location_name: "latestRevision"))
308
322
  DescribeCustomPluginResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
323
+ DescribeCustomPluginResponse.add_member(:state_description, Shapes::ShapeRef.new(shape: StateDescription, location_name: "stateDescription"))
309
324
  DescribeCustomPluginResponse.struct_class = Types::DescribeCustomPluginResponse
310
325
 
311
326
  DescribeWorkerConfigurationRequest.add_member(:worker_configuration_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "workerConfigurationArn"))
@@ -443,6 +458,16 @@ module Aws::KafkaConnect
443
458
  ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
444
459
  ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
445
460
 
461
+ StateDescription.add_member(:code, Shapes::ShapeRef.new(shape: __string, location_name: "code"))
462
+ StateDescription.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
463
+ StateDescription.struct_class = Types::StateDescription
464
+
465
+ SyntheticCreateConnectorRequest__mapOf__string.key = Shapes::ShapeRef.new(shape: __string)
466
+ SyntheticCreateConnectorRequest__mapOf__string.value = Shapes::ShapeRef.new(shape: __string)
467
+
468
+ SyntheticDescribeConnectorResponse__mapOf__string.key = Shapes::ShapeRef.new(shape: __string)
469
+ SyntheticDescribeConnectorResponse__mapOf__string.value = Shapes::ShapeRef.new(shape: __string)
470
+
446
471
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
447
472
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
448
473
 
@@ -476,7 +501,7 @@ module Aws::KafkaConnect
476
501
 
477
502
  WorkerConfigurationRevisionDescription.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
478
503
  WorkerConfigurationRevisionDescription.add_member(:description, Shapes::ShapeRef.new(shape: __string, location_name: "description"))
479
- WorkerConfigurationRevisionDescription.add_member(:properties_file_content, Shapes::ShapeRef.new(shape: __string, location_name: "propertiesFileContent"))
504
+ WorkerConfigurationRevisionDescription.add_member(:properties_file_content, Shapes::ShapeRef.new(shape: SyntheticWorkerConfigurationRevisionDescription__string, location_name: "propertiesFileContent"))
480
505
  WorkerConfigurationRevisionDescription.add_member(:revision, Shapes::ShapeRef.new(shape: __long, location_name: "revision"))
481
506
  WorkerConfigurationRevisionDescription.struct_class = Types::WorkerConfigurationRevisionDescription
482
507
 
@@ -514,9 +539,6 @@ module Aws::KafkaConnect
514
539
 
515
540
  __listOf__string.member = Shapes::ShapeRef.new(shape: __string)
516
541
 
517
- __mapOf__string.key = Shapes::ShapeRef.new(shape: __string)
518
- __mapOf__string.value = Shapes::ShapeRef.new(shape: __string)
519
-
520
542
 
521
543
  # @api private
522
544
  API = Seahorse::Model::Api.new.tap do |api|
@@ -599,6 +621,21 @@ module Aws::KafkaConnect
599
621
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
600
622
  end)
601
623
 
624
+ api.add_operation(:delete_custom_plugin, Seahorse::Model::Operation.new.tap do |o|
625
+ o.name = "DeleteCustomPlugin"
626
+ o.http_method = "DELETE"
627
+ o.http_request_uri = "/v1/custom-plugins/{customPluginArn}"
628
+ o.input = Shapes::ShapeRef.new(shape: DeleteCustomPluginRequest)
629
+ o.output = Shapes::ShapeRef.new(shape: DeleteCustomPluginResponse)
630
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
631
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
632
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
633
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
634
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
635
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
636
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
637
+ end)
638
+
602
639
  api.add_operation(:describe_connector, Seahorse::Model::Operation.new.tap do |o|
603
640
  o.name = "DescribeConnector"
604
641
  o.http_method = "GET"
@@ -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::KafkaConnect
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,112 @@
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::KafkaConnect
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
+ ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
37
+ ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
38
+ ZW5kcG9pbnQgZG9lcyBub3Qgc3VwcG9ydCBkdWFsLXN0YWNrLCBkaXNwYXRj
39
+ aGluZyB0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EdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19
105
+ LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8v
106
+ a2Fma2Fjb25uZWN0LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQjZG5zU3Vm
107
+ Zml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJl
108
+ bmRwb2ludCJ9XX1dfQ==
109
+
110
+ JSON
111
+ end
112
+ end
@@ -0,0 +1,183 @@
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::KafkaConnect
12
+ module Endpoints
13
+
14
+ class CreateConnector
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::KafkaConnect::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 CreateCustomPlugin
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::KafkaConnect::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 CreateWorkerConfiguration
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::KafkaConnect::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 DeleteConnector
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::KafkaConnect::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 DeleteCustomPlugin
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::KafkaConnect::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 DescribeConnector
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::KafkaConnect::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 DescribeCustomPlugin
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::KafkaConnect::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 DescribeWorkerConfiguration
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::KafkaConnect::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 ListConnectors
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::KafkaConnect::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 ListCustomPlugins
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::KafkaConnect::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 ListWorkerConfigurations
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::KafkaConnect::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 UpdateConnector
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::KafkaConnect::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
+ end
183
+ end
@@ -0,0 +1,92 @@
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::KafkaConnect
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::KafkaConnect::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::KafkaConnect::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::KafkaConnect::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_connector
60
+ Aws::KafkaConnect::Endpoints::CreateConnector.build(context)
61
+ when :create_custom_plugin
62
+ Aws::KafkaConnect::Endpoints::CreateCustomPlugin.build(context)
63
+ when :create_worker_configuration
64
+ Aws::KafkaConnect::Endpoints::CreateWorkerConfiguration.build(context)
65
+ when :delete_connector
66
+ Aws::KafkaConnect::Endpoints::DeleteConnector.build(context)
67
+ when :delete_custom_plugin
68
+ Aws::KafkaConnect::Endpoints::DeleteCustomPlugin.build(context)
69
+ when :describe_connector
70
+ Aws::KafkaConnect::Endpoints::DescribeConnector.build(context)
71
+ when :describe_custom_plugin
72
+ Aws::KafkaConnect::Endpoints::DescribeCustomPlugin.build(context)
73
+ when :describe_worker_configuration
74
+ Aws::KafkaConnect::Endpoints::DescribeWorkerConfiguration.build(context)
75
+ when :list_connectors
76
+ Aws::KafkaConnect::Endpoints::ListConnectors.build(context)
77
+ when :list_custom_plugins
78
+ Aws::KafkaConnect::Endpoints::ListCustomPlugins.build(context)
79
+ when :list_worker_configurations
80
+ Aws::KafkaConnect::Endpoints::ListWorkerConfigurations.build(context)
81
+ when :update_connector
82
+ Aws::KafkaConnect::Endpoints::UpdateConnector.build(context)
83
+ end
84
+ end
85
+ end
86
+
87
+ def add_handlers(handlers, _config)
88
+ handlers.add(Handler, step: :build, priority: 75)
89
+ end
90
+ end
91
+ end
92
+ end
@@ -610,7 +610,7 @@ module Aws::KafkaConnect
610
610
  :plugins,
611
611
  :service_execution_role_arn,
612
612
  :worker_configuration)
613
- SENSITIVE = []
613
+ SENSITIVE = [:connector_configuration]
614
614
  include Aws::Structure
615
615
  end
616
616
 
@@ -714,7 +714,7 @@ module Aws::KafkaConnect
714
714
  # {
715
715
  # description: "__stringMax1024",
716
716
  # name: "__stringMin1Max128", # required
717
- # properties_file_content: "__string", # required
717
+ # properties_file_content: "SyntheticCreateWorkerConfigurationRequest__string", # required
718
718
  # }
719
719
  #
720
720
  # @!attribute [rw] description
@@ -735,7 +735,7 @@ module Aws::KafkaConnect
735
735
  :description,
736
736
  :name,
737
737
  :properties_file_content)
738
- SENSITIVE = []
738
+ SENSITIVE = [:properties_file_content]
739
739
  include Aws::Structure
740
740
  end
741
741
 
@@ -998,6 +998,44 @@ module Aws::KafkaConnect
998
998
  include Aws::Structure
999
999
  end
1000
1000
 
1001
+ # @note When making an API call, you may pass DeleteCustomPluginRequest
1002
+ # data as a hash:
1003
+ #
1004
+ # {
1005
+ # custom_plugin_arn: "__string", # required
1006
+ # }
1007
+ #
1008
+ # @!attribute [rw] custom_plugin_arn
1009
+ # The Amazon Resource Name (ARN) of the custom plugin that you want to
1010
+ # delete.
1011
+ # @return [String]
1012
+ #
1013
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DeleteCustomPluginRequest AWS API Documentation
1014
+ #
1015
+ class DeleteCustomPluginRequest < Struct.new(
1016
+ :custom_plugin_arn)
1017
+ SENSITIVE = []
1018
+ include Aws::Structure
1019
+ end
1020
+
1021
+ # @!attribute [rw] custom_plugin_arn
1022
+ # The Amazon Resource Name (ARN) of the custom plugin that you
1023
+ # requested to delete.
1024
+ # @return [String]
1025
+ #
1026
+ # @!attribute [rw] custom_plugin_state
1027
+ # The state of the custom plugin.
1028
+ # @return [String]
1029
+ #
1030
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DeleteCustomPluginResponse AWS API Documentation
1031
+ #
1032
+ class DeleteCustomPluginResponse < Struct.new(
1033
+ :custom_plugin_arn,
1034
+ :custom_plugin_state)
1035
+ SENSITIVE = []
1036
+ include Aws::Structure
1037
+ end
1038
+
1001
1039
  # @note When making an API call, you may pass DescribeConnectorRequest
1002
1040
  # data as a hash:
1003
1041
  #
@@ -1084,6 +1122,10 @@ module Aws::KafkaConnect
1084
1122
  # to access Amazon Web Services resources.
1085
1123
  # @return [String]
1086
1124
  #
1125
+ # @!attribute [rw] state_description
1126
+ # Details about the state of a connector.
1127
+ # @return [Types::StateDescription]
1128
+ #
1087
1129
  # @!attribute [rw] worker_configuration
1088
1130
  # Specifies which worker configuration was used for the connector.
1089
1131
  # @return [Types::WorkerConfigurationDescription]
@@ -1106,8 +1148,9 @@ module Aws::KafkaConnect
1106
1148
  :log_delivery,
1107
1149
  :plugins,
1108
1150
  :service_execution_role_arn,
1151
+ :state_description,
1109
1152
  :worker_configuration)
1110
- SENSITIVE = []
1153
+ SENSITIVE = [:connector_configuration]
1111
1154
  include Aws::Structure
1112
1155
  end
1113
1156
 
@@ -1156,6 +1199,10 @@ module Aws::KafkaConnect
1156
1199
  # The name of the custom plugin.
1157
1200
  # @return [String]
1158
1201
  #
1202
+ # @!attribute [rw] state_description
1203
+ # Details about the state of a custom plugin.
1204
+ # @return [Types::StateDescription]
1205
+ #
1159
1206
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeCustomPluginResponse AWS API Documentation
1160
1207
  #
1161
1208
  class DescribeCustomPluginResponse < Struct.new(
@@ -1164,7 +1211,8 @@ module Aws::KafkaConnect
1164
1211
  :custom_plugin_state,
1165
1212
  :description,
1166
1213
  :latest_revision,
1167
- :name)
1214
+ :name,
1215
+ :state_description)
1168
1216
  SENSITIVE = []
1169
1217
  include Aws::Structure
1170
1218
  end
@@ -1996,6 +2044,25 @@ module Aws::KafkaConnect
1996
2044
  include Aws::Structure
1997
2045
  end
1998
2046
 
2047
+ # Details about the state of a resource.
2048
+ #
2049
+ # @!attribute [rw] code
2050
+ # A code that describes the state of a resource.
2051
+ # @return [String]
2052
+ #
2053
+ # @!attribute [rw] message
2054
+ # A message that describes the state of a resource.
2055
+ # @return [String]
2056
+ #
2057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/StateDescription AWS API Documentation
2058
+ #
2059
+ class StateDescription < Struct.new(
2060
+ :code,
2061
+ :message)
2062
+ SENSITIVE = []
2063
+ include Aws::Structure
2064
+ end
2065
+
1999
2066
  # HTTP Status Code 429: Limit exceeded. Resource limit reached.
2000
2067
  #
2001
2068
  # @!attribute [rw] message
@@ -2206,7 +2273,7 @@ module Aws::KafkaConnect
2206
2273
  :description,
2207
2274
  :properties_file_content,
2208
2275
  :revision)
2209
- SENSITIVE = []
2276
+ SENSITIVE = [:properties_file_content]
2210
2277
  include Aws::Structure
2211
2278
  end
2212
2279
 
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-kafkaconnect/types'
15
15
  require_relative 'aws-sdk-kafkaconnect/client_api'
16
+ require_relative 'aws-sdk-kafkaconnect/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-kafkaconnect/client'
17
18
  require_relative 'aws-sdk-kafkaconnect/errors'
18
19
  require_relative 'aws-sdk-kafkaconnect/resource'
20
+ require_relative 'aws-sdk-kafkaconnect/endpoint_parameters'
21
+ require_relative 'aws-sdk-kafkaconnect/endpoint_provider'
22
+ require_relative 'aws-sdk-kafkaconnect/endpoints'
19
23
  require_relative 'aws-sdk-kafkaconnect/customizations'
20
24
 
21
25
  # This module provides support for Managed Streaming for Kafka Connect. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-kafkaconnect/customizations'
48
52
  # @!group service
49
53
  module Aws::KafkaConnect
50
54
 
51
- GEM_VERSION = '1.6.0'
55
+ GEM_VERSION = '1.8.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kafkaconnect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.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-24 00:00:00.000000000 Z
11
+ date: 2022-10-25 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-kafkaconnect/client.rb
60
60
  - lib/aws-sdk-kafkaconnect/client_api.rb
61
61
  - lib/aws-sdk-kafkaconnect/customizations.rb
62
+ - lib/aws-sdk-kafkaconnect/endpoint_parameters.rb
63
+ - lib/aws-sdk-kafkaconnect/endpoint_provider.rb
64
+ - lib/aws-sdk-kafkaconnect/endpoints.rb
62
65
  - lib/aws-sdk-kafkaconnect/errors.rb
66
+ - lib/aws-sdk-kafkaconnect/plugins/endpoints.rb
63
67
  - lib/aws-sdk-kafkaconnect/resource.rb
64
68
  - lib/aws-sdk-kafkaconnect/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby