aws-sdk-kafkaconnect 1.19.0 → 1.21.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.
@@ -46,6 +46,8 @@ module Aws::KafkaConnect
46
46
  DeleteConnectorResponse = Shapes::StructureShape.new(name: 'DeleteConnectorResponse')
47
47
  DeleteCustomPluginRequest = Shapes::StructureShape.new(name: 'DeleteCustomPluginRequest')
48
48
  DeleteCustomPluginResponse = Shapes::StructureShape.new(name: 'DeleteCustomPluginResponse')
49
+ DeleteWorkerConfigurationRequest = Shapes::StructureShape.new(name: 'DeleteWorkerConfigurationRequest')
50
+ DeleteWorkerConfigurationResponse = Shapes::StructureShape.new(name: 'DeleteWorkerConfigurationResponse')
49
51
  DescribeConnectorRequest = Shapes::StructureShape.new(name: 'DescribeConnectorRequest')
50
52
  DescribeConnectorResponse = Shapes::StructureShape.new(name: 'DescribeConnectorResponse')
51
53
  DescribeCustomPluginRequest = Shapes::StructureShape.new(name: 'DescribeCustomPluginRequest')
@@ -68,6 +70,8 @@ module Aws::KafkaConnect
68
70
  ListConnectorsResponse = Shapes::StructureShape.new(name: 'ListConnectorsResponse')
69
71
  ListCustomPluginsRequest = Shapes::StructureShape.new(name: 'ListCustomPluginsRequest')
70
72
  ListCustomPluginsResponse = Shapes::StructureShape.new(name: 'ListCustomPluginsResponse')
73
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
74
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
71
75
  ListWorkerConfigurationsRequest = Shapes::StructureShape.new(name: 'ListWorkerConfigurationsRequest')
72
76
  ListWorkerConfigurationsResponse = Shapes::StructureShape.new(name: 'ListWorkerConfigurationsResponse')
73
77
  LogDelivery = Shapes::StructureShape.new(name: 'LogDelivery')
@@ -91,8 +95,16 @@ module Aws::KafkaConnect
91
95
  ScaleOutPolicyUpdate = Shapes::StructureShape.new(name: 'ScaleOutPolicyUpdate')
92
96
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
93
97
  StateDescription = Shapes::StructureShape.new(name: 'StateDescription')
98
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
99
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
100
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
101
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
102
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
103
+ Tags = Shapes::MapShape.new(name: 'Tags')
94
104
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
95
105
  UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
106
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
107
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
96
108
  UpdateConnectorRequest = Shapes::StructureShape.new(name: 'UpdateConnectorRequest')
97
109
  UpdateConnectorResponse = Shapes::StructureShape.new(name: 'UpdateConnectorResponse')
98
110
  Vpc = Shapes::StructureShape.new(name: 'Vpc')
@@ -101,6 +113,7 @@ module Aws::KafkaConnect
101
113
  WorkerConfigurationDescription = Shapes::StructureShape.new(name: 'WorkerConfigurationDescription')
102
114
  WorkerConfigurationRevisionDescription = Shapes::StructureShape.new(name: 'WorkerConfigurationRevisionDescription')
103
115
  WorkerConfigurationRevisionSummary = Shapes::StructureShape.new(name: 'WorkerConfigurationRevisionSummary')
116
+ WorkerConfigurationState = Shapes::StringShape.new(name: 'WorkerConfigurationState')
104
117
  WorkerConfigurationSummary = Shapes::StructureShape.new(name: 'WorkerConfigurationSummary')
105
118
  WorkerLogDelivery = Shapes::StructureShape.new(name: 'WorkerLogDelivery')
106
119
  WorkerLogDeliveryDescription = Shapes::StructureShape.new(name: 'WorkerLogDeliveryDescription')
@@ -207,6 +220,7 @@ module Aws::KafkaConnect
207
220
  CreateConnectorRequest.add_member(:log_delivery, Shapes::ShapeRef.new(shape: LogDelivery, location_name: "logDelivery"))
208
221
  CreateConnectorRequest.add_member(:plugins, Shapes::ShapeRef.new(shape: __listOfPlugin, required: true, location_name: "plugins"))
209
222
  CreateConnectorRequest.add_member(:service_execution_role_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "serviceExecutionRoleArn"))
223
+ CreateConnectorRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
210
224
  CreateConnectorRequest.add_member(:worker_configuration, Shapes::ShapeRef.new(shape: WorkerConfiguration, location_name: "workerConfiguration"))
211
225
  CreateConnectorRequest.struct_class = Types::CreateConnectorRequest
212
226
 
@@ -219,6 +233,7 @@ module Aws::KafkaConnect
219
233
  CreateCustomPluginRequest.add_member(:description, Shapes::ShapeRef.new(shape: __stringMax1024, location_name: "description"))
220
234
  CreateCustomPluginRequest.add_member(:location, Shapes::ShapeRef.new(shape: CustomPluginLocation, required: true, location_name: "location"))
221
235
  CreateCustomPluginRequest.add_member(:name, Shapes::ShapeRef.new(shape: __stringMin1Max128, required: true, location_name: "name"))
236
+ CreateCustomPluginRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
222
237
  CreateCustomPluginRequest.struct_class = Types::CreateCustomPluginRequest
223
238
 
224
239
  CreateCustomPluginResponse.add_member(:custom_plugin_arn, Shapes::ShapeRef.new(shape: __string, location_name: "customPluginArn"))
@@ -230,12 +245,14 @@ module Aws::KafkaConnect
230
245
  CreateWorkerConfigurationRequest.add_member(:description, Shapes::ShapeRef.new(shape: __stringMax1024, location_name: "description"))
231
246
  CreateWorkerConfigurationRequest.add_member(:name, Shapes::ShapeRef.new(shape: __stringMin1Max128, required: true, location_name: "name"))
232
247
  CreateWorkerConfigurationRequest.add_member(:properties_file_content, Shapes::ShapeRef.new(shape: __sensitiveString, required: true, location_name: "propertiesFileContent"))
248
+ CreateWorkerConfigurationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
233
249
  CreateWorkerConfigurationRequest.struct_class = Types::CreateWorkerConfigurationRequest
234
250
 
235
251
  CreateWorkerConfigurationResponse.add_member(:creation_time, Shapes::ShapeRef.new(shape: __timestampIso8601, location_name: "creationTime"))
236
252
  CreateWorkerConfigurationResponse.add_member(:latest_revision, Shapes::ShapeRef.new(shape: WorkerConfigurationRevisionSummary, location_name: "latestRevision"))
237
253
  CreateWorkerConfigurationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
238
254
  CreateWorkerConfigurationResponse.add_member(:worker_configuration_arn, Shapes::ShapeRef.new(shape: __string, location_name: "workerConfigurationArn"))
255
+ CreateWorkerConfigurationResponse.add_member(:worker_configuration_state, Shapes::ShapeRef.new(shape: WorkerConfigurationState, location_name: "workerConfigurationState"))
239
256
  CreateWorkerConfigurationResponse.struct_class = Types::CreateWorkerConfigurationResponse
240
257
 
241
258
  CustomPlugin.add_member(:custom_plugin_arn, Shapes::ShapeRef.new(shape: __string, required: true, location_name: "customPluginArn"))
@@ -287,6 +304,13 @@ module Aws::KafkaConnect
287
304
  DeleteCustomPluginResponse.add_member(:custom_plugin_state, Shapes::ShapeRef.new(shape: CustomPluginState, location_name: "customPluginState"))
288
305
  DeleteCustomPluginResponse.struct_class = Types::DeleteCustomPluginResponse
289
306
 
307
+ DeleteWorkerConfigurationRequest.add_member(:worker_configuration_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "workerConfigurationArn"))
308
+ DeleteWorkerConfigurationRequest.struct_class = Types::DeleteWorkerConfigurationRequest
309
+
310
+ DeleteWorkerConfigurationResponse.add_member(:worker_configuration_arn, Shapes::ShapeRef.new(shape: __string, location_name: "workerConfigurationArn"))
311
+ DeleteWorkerConfigurationResponse.add_member(:worker_configuration_state, Shapes::ShapeRef.new(shape: WorkerConfigurationState, location_name: "workerConfigurationState"))
312
+ DeleteWorkerConfigurationResponse.struct_class = Types::DeleteWorkerConfigurationResponse
313
+
290
314
  DescribeConnectorRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectorArn"))
291
315
  DescribeConnectorRequest.struct_class = Types::DescribeConnectorRequest
292
316
 
@@ -329,6 +353,7 @@ module Aws::KafkaConnect
329
353
  DescribeWorkerConfigurationResponse.add_member(:latest_revision, Shapes::ShapeRef.new(shape: WorkerConfigurationRevisionDescription, location_name: "latestRevision"))
330
354
  DescribeWorkerConfigurationResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
331
355
  DescribeWorkerConfigurationResponse.add_member(:worker_configuration_arn, Shapes::ShapeRef.new(shape: __string, location_name: "workerConfigurationArn"))
356
+ DescribeWorkerConfigurationResponse.add_member(:worker_configuration_state, Shapes::ShapeRef.new(shape: WorkerConfigurationState, location_name: "workerConfigurationState"))
332
357
  DescribeWorkerConfigurationResponse.struct_class = Types::DescribeWorkerConfigurationResponse
333
358
 
334
359
  FirehoseLogDelivery.add_member(:delivery_stream, Shapes::ShapeRef.new(shape: __string, location_name: "deliveryStream"))
@@ -373,6 +398,7 @@ module Aws::KafkaConnect
373
398
  ListConnectorsResponse.struct_class = Types::ListConnectorsResponse
374
399
 
375
400
  ListCustomPluginsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
401
+ ListCustomPluginsRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "namePrefix"))
376
402
  ListCustomPluginsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
377
403
  ListCustomPluginsRequest.struct_class = Types::ListCustomPluginsRequest
378
404
 
@@ -380,7 +406,14 @@ module Aws::KafkaConnect
380
406
  ListCustomPluginsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "nextToken"))
381
407
  ListCustomPluginsResponse.struct_class = Types::ListCustomPluginsResponse
382
408
 
409
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
410
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
411
+
412
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
413
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
414
+
383
415
  ListWorkerConfigurationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
416
+ ListWorkerConfigurationsRequest.add_member(:name_prefix, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "namePrefix"))
384
417
  ListWorkerConfigurationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "nextToken"))
385
418
  ListWorkerConfigurationsRequest.struct_class = Types::ListWorkerConfigurationsRequest
386
419
 
@@ -460,12 +493,29 @@ module Aws::KafkaConnect
460
493
  StateDescription.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
461
494
  StateDescription.struct_class = Types::StateDescription
462
495
 
496
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
497
+
498
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
499
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
500
+ TagResourceRequest.struct_class = Types::TagResourceRequest
501
+
502
+ TagResourceResponse.struct_class = Types::TagResourceResponse
503
+
504
+ Tags.key = Shapes::ShapeRef.new(shape: TagKey)
505
+ Tags.value = Shapes::ShapeRef.new(shape: TagValue)
506
+
463
507
  TooManyRequestsException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
464
508
  TooManyRequestsException.struct_class = Types::TooManyRequestsException
465
509
 
466
510
  UnauthorizedException.add_member(:message, Shapes::ShapeRef.new(shape: __string, location_name: "message"))
467
511
  UnauthorizedException.struct_class = Types::UnauthorizedException
468
512
 
513
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resourceArn"))
514
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
515
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
516
+
517
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
518
+
469
519
  UpdateConnectorRequest.add_member(:capacity, Shapes::ShapeRef.new(shape: CapacityUpdate, required: true, location_name: "capacity"))
470
520
  UpdateConnectorRequest.add_member(:connector_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "connectorArn"))
471
521
  UpdateConnectorRequest.add_member(:current_version, Shapes::ShapeRef.new(shape: __string, required: true, location: "querystring", location_name: "currentVersion"))
@@ -507,6 +557,7 @@ module Aws::KafkaConnect
507
557
  WorkerConfigurationSummary.add_member(:latest_revision, Shapes::ShapeRef.new(shape: WorkerConfigurationRevisionSummary, location_name: "latestRevision"))
508
558
  WorkerConfigurationSummary.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "name"))
509
559
  WorkerConfigurationSummary.add_member(:worker_configuration_arn, Shapes::ShapeRef.new(shape: __string, location_name: "workerConfigurationArn"))
560
+ WorkerConfigurationSummary.add_member(:worker_configuration_state, Shapes::ShapeRef.new(shape: WorkerConfigurationState, location_name: "workerConfigurationState"))
510
561
  WorkerConfigurationSummary.struct_class = Types::WorkerConfigurationSummary
511
562
 
512
563
  WorkerLogDelivery.add_member(:cloud_watch_logs, Shapes::ShapeRef.new(shape: CloudWatchLogsLogDelivery, location_name: "cloudWatchLogs"))
@@ -631,6 +682,21 @@ module Aws::KafkaConnect
631
682
  o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
632
683
  end)
633
684
 
685
+ api.add_operation(:delete_worker_configuration, Seahorse::Model::Operation.new.tap do |o|
686
+ o.name = "DeleteWorkerConfiguration"
687
+ o.http_method = "DELETE"
688
+ o.http_request_uri = "/v1/worker-configurations/{workerConfigurationArn}"
689
+ o.input = Shapes::ShapeRef.new(shape: DeleteWorkerConfigurationRequest)
690
+ o.output = Shapes::ShapeRef.new(shape: DeleteWorkerConfigurationResponse)
691
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
692
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
693
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
694
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
695
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
696
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
697
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
698
+ end)
699
+
634
700
  api.add_operation(:describe_connector, Seahorse::Model::Operation.new.tap do |o|
635
701
  o.name = "DescribeConnector"
636
702
  o.http_method = "GET"
@@ -718,6 +784,21 @@ module Aws::KafkaConnect
718
784
  )
719
785
  end)
720
786
 
787
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
788
+ o.name = "ListTagsForResource"
789
+ o.http_method = "GET"
790
+ o.http_request_uri = "/v1/tags/{resourceArn}"
791
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
792
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
793
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
794
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
795
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
796
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
797
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
798
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
799
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
800
+ end)
801
+
721
802
  api.add_operation(:list_worker_configurations, Seahorse::Model::Operation.new.tap do |o|
722
803
  o.name = "ListWorkerConfigurations"
723
804
  o.http_method = "GET"
@@ -739,6 +820,37 @@ module Aws::KafkaConnect
739
820
  )
740
821
  end)
741
822
 
823
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
824
+ o.name = "TagResource"
825
+ o.http_method = "POST"
826
+ o.http_request_uri = "/v1/tags/{resourceArn}"
827
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
828
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
829
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
830
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
831
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
832
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
833
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
834
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
835
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
836
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
837
+ end)
838
+
839
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
840
+ o.name = "UntagResource"
841
+ o.http_method = "DELETE"
842
+ o.http_request_uri = "/v1/tags/{resourceArn}"
843
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
844
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
845
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
846
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
847
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
848
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
849
+ o.errors << Shapes::ShapeRef.new(shape: TooManyRequestsException)
850
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
851
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
852
+ end)
853
+
742
854
  api.add_operation(:update_connector, Seahorse::Model::Operation.new.tap do |o|
743
855
  o.name = "UpdateConnector"
744
856
  o.http_method = "PUT"
@@ -32,7 +32,7 @@ module Aws::KafkaConnect
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  return Aws::Endpoints::Endpoint.new(url: "https://kafkaconnect-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -82,6 +82,20 @@ module Aws::KafkaConnect
82
82
  end
83
83
  end
84
84
 
85
+ class DeleteWorkerConfiguration
86
+ def self.build(context)
87
+ unless context.config.regional_endpoint
88
+ endpoint = context.config.endpoint.to_s
89
+ end
90
+ Aws::KafkaConnect::EndpointParameters.new(
91
+ region: context.config.region,
92
+ use_dual_stack: context.config.use_dualstack_endpoint,
93
+ use_fips: context.config.use_fips_endpoint,
94
+ endpoint: endpoint,
95
+ )
96
+ end
97
+ end
98
+
85
99
  class DescribeConnector
86
100
  def self.build(context)
87
101
  unless context.config.regional_endpoint
@@ -152,6 +166,20 @@ module Aws::KafkaConnect
152
166
  end
153
167
  end
154
168
 
169
+ class ListTagsForResource
170
+ def self.build(context)
171
+ unless context.config.regional_endpoint
172
+ endpoint = context.config.endpoint.to_s
173
+ end
174
+ Aws::KafkaConnect::EndpointParameters.new(
175
+ region: context.config.region,
176
+ use_dual_stack: context.config.use_dualstack_endpoint,
177
+ use_fips: context.config.use_fips_endpoint,
178
+ endpoint: endpoint,
179
+ )
180
+ end
181
+ end
182
+
155
183
  class ListWorkerConfigurations
156
184
  def self.build(context)
157
185
  unless context.config.regional_endpoint
@@ -166,6 +194,34 @@ module Aws::KafkaConnect
166
194
  end
167
195
  end
168
196
 
197
+ class TagResource
198
+ def self.build(context)
199
+ unless context.config.regional_endpoint
200
+ endpoint = context.config.endpoint.to_s
201
+ end
202
+ Aws::KafkaConnect::EndpointParameters.new(
203
+ region: context.config.region,
204
+ use_dual_stack: context.config.use_dualstack_endpoint,
205
+ use_fips: context.config.use_fips_endpoint,
206
+ endpoint: endpoint,
207
+ )
208
+ end
209
+ end
210
+
211
+ class UntagResource
212
+ def self.build(context)
213
+ unless context.config.regional_endpoint
214
+ endpoint = context.config.endpoint.to_s
215
+ end
216
+ Aws::KafkaConnect::EndpointParameters.new(
217
+ region: context.config.region,
218
+ use_dual_stack: context.config.use_dualstack_endpoint,
219
+ use_fips: context.config.use_fips_endpoint,
220
+ endpoint: endpoint,
221
+ )
222
+ end
223
+ end
224
+
169
225
  class UpdateConnector
170
226
  def self.build(context)
171
227
  unless context.config.regional_endpoint
@@ -68,6 +68,8 @@ module Aws::KafkaConnect
68
68
  Aws::KafkaConnect::Endpoints::DeleteConnector.build(context)
69
69
  when :delete_custom_plugin
70
70
  Aws::KafkaConnect::Endpoints::DeleteCustomPlugin.build(context)
71
+ when :delete_worker_configuration
72
+ Aws::KafkaConnect::Endpoints::DeleteWorkerConfiguration.build(context)
71
73
  when :describe_connector
72
74
  Aws::KafkaConnect::Endpoints::DescribeConnector.build(context)
73
75
  when :describe_custom_plugin
@@ -78,8 +80,14 @@ module Aws::KafkaConnect
78
80
  Aws::KafkaConnect::Endpoints::ListConnectors.build(context)
79
81
  when :list_custom_plugins
80
82
  Aws::KafkaConnect::Endpoints::ListCustomPlugins.build(context)
83
+ when :list_tags_for_resource
84
+ Aws::KafkaConnect::Endpoints::ListTagsForResource.build(context)
81
85
  when :list_worker_configurations
82
86
  Aws::KafkaConnect::Endpoints::ListWorkerConfigurations.build(context)
87
+ when :tag_resource
88
+ Aws::KafkaConnect::Endpoints::TagResource.build(context)
89
+ when :untag_resource
90
+ Aws::KafkaConnect::Endpoints::UntagResource.build(context)
83
91
  when :update_connector
84
92
  Aws::KafkaConnect::Endpoints::UpdateConnector.build(context)
85
93
  end
@@ -415,7 +415,13 @@ module Aws::KafkaConnect
415
415
  # @return [Types::LogDelivery]
416
416
  #
417
417
  # @!attribute [rw] plugins
418
- # Specifies which plugins to use for the connector.
418
+ # Amazon MSK Connect does not currently support specifying multiple
419
+ # plugins as a list. To use more than one plugin for your connector,
420
+ # you can create a single custom plugin using a ZIP file that bundles
421
+ # multiple plugins together.
422
+ #
423
+ # Specifies which plugin to use for the connector. You must specify a
424
+ # single-element list containing one `customPlugin` object.
419
425
  # @return [Array<Types::Plugin>]
420
426
  #
421
427
  # @!attribute [rw] service_execution_role_arn
@@ -426,6 +432,10 @@ module Aws::KafkaConnect
426
432
  # that allow it to write to the S3 destination bucket.
427
433
  # @return [String]
428
434
  #
435
+ # @!attribute [rw] tags
436
+ # The tags you want to attach to the connector.
437
+ # @return [Hash<String,String>]
438
+ #
429
439
  # @!attribute [rw] worker_configuration
430
440
  # Specifies which worker configuration to use with the connector.
431
441
  # @return [Types::WorkerConfiguration]
@@ -444,6 +454,7 @@ module Aws::KafkaConnect
444
454
  :log_delivery,
445
455
  :plugins,
446
456
  :service_execution_role_arn,
457
+ :tags,
447
458
  :worker_configuration)
448
459
  SENSITIVE = [:connector_configuration]
449
460
  include Aws::Structure
@@ -488,13 +499,18 @@ module Aws::KafkaConnect
488
499
  # The name of the custom plugin.
489
500
  # @return [String]
490
501
  #
502
+ # @!attribute [rw] tags
503
+ # The tags you want to attach to the custom plugin.
504
+ # @return [Hash<String,String>]
505
+ #
491
506
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/CreateCustomPluginRequest AWS API Documentation
492
507
  #
493
508
  class CreateCustomPluginRequest < Struct.new(
494
509
  :content_type,
495
510
  :description,
496
511
  :location,
497
- :name)
512
+ :name,
513
+ :tags)
498
514
  SENSITIVE = []
499
515
  include Aws::Structure
500
516
  end
@@ -539,12 +555,17 @@ module Aws::KafkaConnect
539
555
  # Base64 encoded contents of connect-distributed.properties file.
540
556
  # @return [String]
541
557
  #
558
+ # @!attribute [rw] tags
559
+ # The tags you want to attach to the worker configuration.
560
+ # @return [Hash<String,String>]
561
+ #
542
562
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/CreateWorkerConfigurationRequest AWS API Documentation
543
563
  #
544
564
  class CreateWorkerConfigurationRequest < Struct.new(
545
565
  :description,
546
566
  :name,
547
- :properties_file_content)
567
+ :properties_file_content,
568
+ :tags)
548
569
  SENSITIVE = [:properties_file_content]
549
570
  include Aws::Structure
550
571
  end
@@ -566,19 +587,24 @@ module Aws::KafkaConnect
566
587
  # configuration.
567
588
  # @return [String]
568
589
  #
590
+ # @!attribute [rw] worker_configuration_state
591
+ # The state of the worker configuration.
592
+ # @return [String]
593
+ #
569
594
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/CreateWorkerConfigurationResponse AWS API Documentation
570
595
  #
571
596
  class CreateWorkerConfigurationResponse < Struct.new(
572
597
  :creation_time,
573
598
  :latest_revision,
574
599
  :name,
575
- :worker_configuration_arn)
600
+ :worker_configuration_arn,
601
+ :worker_configuration_state)
576
602
  SENSITIVE = []
577
603
  include Aws::Structure
578
604
  end
579
605
 
580
- # A plugin is an AWS resource that contains the code that defines a
581
- # connector's logic.
606
+ # A plugin is an Amazon Web Services resource that contains the code
607
+ # that defines a connector's logic.
582
608
  #
583
609
  # @!attribute [rw] custom_plugin_arn
584
610
  # The Amazon Resource Name (ARN) of the custom plugin.
@@ -812,6 +838,37 @@ module Aws::KafkaConnect
812
838
  include Aws::Structure
813
839
  end
814
840
 
841
+ # @!attribute [rw] worker_configuration_arn
842
+ # The Amazon Resource Name (ARN) of the worker configuration that you
843
+ # want to delete.
844
+ # @return [String]
845
+ #
846
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DeleteWorkerConfigurationRequest AWS API Documentation
847
+ #
848
+ class DeleteWorkerConfigurationRequest < Struct.new(
849
+ :worker_configuration_arn)
850
+ SENSITIVE = []
851
+ include Aws::Structure
852
+ end
853
+
854
+ # @!attribute [rw] worker_configuration_arn
855
+ # The Amazon Resource Name (ARN) of the worker configuration that you
856
+ # requested to delete.
857
+ # @return [String]
858
+ #
859
+ # @!attribute [rw] worker_configuration_state
860
+ # The state of the worker configuration.
861
+ # @return [String]
862
+ #
863
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DeleteWorkerConfigurationResponse AWS API Documentation
864
+ #
865
+ class DeleteWorkerConfigurationResponse < Struct.new(
866
+ :worker_configuration_arn,
867
+ :worker_configuration_state)
868
+ SENSITIVE = []
869
+ include Aws::Structure
870
+ end
871
+
815
872
  # @!attribute [rw] connector_arn
816
873
  # The Amazon Resource Name (ARN) of the connector that you want to
817
874
  # describe.
@@ -1012,6 +1069,10 @@ module Aws::KafkaConnect
1012
1069
  # The Amazon Resource Name (ARN) of the custom configuration.
1013
1070
  # @return [String]
1014
1071
  #
1072
+ # @!attribute [rw] worker_configuration_state
1073
+ # The state of the worker configuration.
1074
+ # @return [String]
1075
+ #
1015
1076
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/DescribeWorkerConfigurationResponse AWS API Documentation
1016
1077
  #
1017
1078
  class DescribeWorkerConfigurationResponse < Struct.new(
@@ -1019,7 +1080,8 @@ module Aws::KafkaConnect
1019
1080
  :description,
1020
1081
  :latest_revision,
1021
1082
  :name,
1022
- :worker_configuration_arn)
1083
+ :worker_configuration_arn,
1084
+ :worker_configuration_state)
1023
1085
  SENSITIVE = []
1024
1086
  include Aws::Structure
1025
1087
  end
@@ -1235,6 +1297,10 @@ module Aws::KafkaConnect
1235
1297
  # The maximum number of custom plugins to list in one response.
1236
1298
  # @return [Integer]
1237
1299
  #
1300
+ # @!attribute [rw] name_prefix
1301
+ # Lists custom plugin names that start with the specified text string.
1302
+ # @return [String]
1303
+ #
1238
1304
  # @!attribute [rw] next_token
1239
1305
  # If the response of a ListCustomPlugins operation is truncated, it
1240
1306
  # will include a NextToken. Send this NextToken in a subsequent
@@ -1246,6 +1312,7 @@ module Aws::KafkaConnect
1246
1312
  #
1247
1313
  class ListCustomPluginsRequest < Struct.new(
1248
1314
  :max_results,
1315
+ :name_prefix,
1249
1316
  :next_token)
1250
1317
  SENSITIVE = []
1251
1318
  include Aws::Structure
@@ -1271,10 +1338,41 @@ module Aws::KafkaConnect
1271
1338
  include Aws::Structure
1272
1339
  end
1273
1340
 
1341
+ # @!attribute [rw] resource_arn
1342
+ # The Amazon Resource Name (ARN) of the resource for which you want to
1343
+ # list all attached tags.
1344
+ # @return [String]
1345
+ #
1346
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ListTagsForResourceRequest AWS API Documentation
1347
+ #
1348
+ class ListTagsForResourceRequest < Struct.new(
1349
+ :resource_arn)
1350
+ SENSITIVE = []
1351
+ include Aws::Structure
1352
+ end
1353
+
1354
+ # @!attribute [rw] tags
1355
+ # Lists the tags attached to the specified resource in the
1356
+ # corresponding request.
1357
+ # @return [Hash<String,String>]
1358
+ #
1359
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/ListTagsForResourceResponse AWS API Documentation
1360
+ #
1361
+ class ListTagsForResourceResponse < Struct.new(
1362
+ :tags)
1363
+ SENSITIVE = []
1364
+ include Aws::Structure
1365
+ end
1366
+
1274
1367
  # @!attribute [rw] max_results
1275
1368
  # The maximum number of worker configurations to list in one response.
1276
1369
  # @return [Integer]
1277
1370
  #
1371
+ # @!attribute [rw] name_prefix
1372
+ # Lists worker configuration names that start with the specified text
1373
+ # string.
1374
+ # @return [String]
1375
+ #
1278
1376
  # @!attribute [rw] next_token
1279
1377
  # If the response of a ListWorkerConfigurations operation is
1280
1378
  # truncated, it will include a NextToken. Send this NextToken in a
@@ -1286,6 +1384,7 @@ module Aws::KafkaConnect
1286
1384
  #
1287
1385
  class ListWorkerConfigurationsRequest < Struct.new(
1288
1386
  :max_results,
1387
+ :name_prefix,
1289
1388
  :next_token)
1290
1389
  SENSITIVE = []
1291
1390
  include Aws::Structure
@@ -1355,8 +1454,8 @@ module Aws::KafkaConnect
1355
1454
  include Aws::Structure
1356
1455
  end
1357
1456
 
1358
- # A plugin is an AWS resource that contains the code that defines your
1359
- # connector logic.
1457
+ # A plugin is an Amazon Web Services resource that contains the code
1458
+ # that defines your connector logic.
1360
1459
  #
1361
1460
  # @!attribute [rw] custom_plugin
1362
1461
  # Details about a custom plugin.
@@ -1665,6 +1764,28 @@ module Aws::KafkaConnect
1665
1764
  include Aws::Structure
1666
1765
  end
1667
1766
 
1767
+ # @!attribute [rw] resource_arn
1768
+ # The Amazon Resource Name (ARN) of the resource to which you want to
1769
+ # attach tags.
1770
+ # @return [String]
1771
+ #
1772
+ # @!attribute [rw] tags
1773
+ # The tags that you want to attach to the resource.
1774
+ # @return [Hash<String,String>]
1775
+ #
1776
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/TagResourceRequest AWS API Documentation
1777
+ #
1778
+ class TagResourceRequest < Struct.new(
1779
+ :resource_arn,
1780
+ :tags)
1781
+ SENSITIVE = []
1782
+ include Aws::Structure
1783
+ end
1784
+
1785
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/TagResourceResponse AWS API Documentation
1786
+ #
1787
+ class TagResourceResponse < Aws::EmptyStructure; end
1788
+
1668
1789
  # HTTP Status Code 429: Limit exceeded. Resource limit reached.
1669
1790
  #
1670
1791
  # @!attribute [rw] message
@@ -1692,6 +1813,28 @@ module Aws::KafkaConnect
1692
1813
  include Aws::Structure
1693
1814
  end
1694
1815
 
1816
+ # @!attribute [rw] resource_arn
1817
+ # The Amazon Resource Name (ARN) of the resource from which you want
1818
+ # to remove tags.
1819
+ # @return [String]
1820
+ #
1821
+ # @!attribute [rw] tag_keys
1822
+ # The keys of the tags that you want to remove from the resource.
1823
+ # @return [Array<String>]
1824
+ #
1825
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/UntagResourceRequest AWS API Documentation
1826
+ #
1827
+ class UntagResourceRequest < Struct.new(
1828
+ :resource_arn,
1829
+ :tag_keys)
1830
+ SENSITIVE = []
1831
+ include Aws::Structure
1832
+ end
1833
+
1834
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/UntagResourceResponse AWS API Documentation
1835
+ #
1836
+ class UntagResourceResponse < Aws::EmptyStructure; end
1837
+
1695
1838
  # @!attribute [rw] capacity
1696
1839
  # The target capacity.
1697
1840
  # @return [Types::CapacityUpdate]
@@ -1884,6 +2027,10 @@ module Aws::KafkaConnect
1884
2027
  # The Amazon Resource Name (ARN) of the worker configuration.
1885
2028
  # @return [String]
1886
2029
  #
2030
+ # @!attribute [rw] worker_configuration_state
2031
+ # The state of the worker configuration.
2032
+ # @return [String]
2033
+ #
1887
2034
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafkaconnect-2021-09-14/WorkerConfigurationSummary AWS API Documentation
1888
2035
  #
1889
2036
  class WorkerConfigurationSummary < Struct.new(
@@ -1891,7 +2038,8 @@ module Aws::KafkaConnect
1891
2038
  :description,
1892
2039
  :latest_revision,
1893
2040
  :name,
1894
- :worker_configuration_arn)
2041
+ :worker_configuration_arn,
2042
+ :worker_configuration_state)
1895
2043
  SENSITIVE = []
1896
2044
  include Aws::Structure
1897
2045
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-kafkaconnect/customizations'
52
52
  # @!group service
53
53
  module Aws::KafkaConnect
54
54
 
55
- GEM_VERSION = '1.19.0'
55
+ GEM_VERSION = '1.21.0'
56
56
 
57
57
  end