aws-sdk-kafka 1.23.0 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a328f4d7fb601718cf817217069d1fa958ca53dc01d0c44ef0c3b874d9ca26f
4
- data.tar.gz: 60e7808e7d995601805fbc30d99c7a53d26c721d004e87a9d2579e60539fa02a
3
+ metadata.gz: 7a5611814c943c4e6e5b92964deea7b3172351ec9711f9c375b74a7f658e03b9
4
+ data.tar.gz: 16e3f829485f7d16031c3f10530ec41b48eab9a779c431a2fa12b1fd4793f71e
5
5
  SHA512:
6
- metadata.gz: 54e57715dc7b5a0a5fd256710904a172ceb0f71fdf4d75f3c68e6f8d953c2b1e4b5b3bbd1d209c5b3e872da745ce9a45f0cfb0666602bf87cb05be899d937890
7
- data.tar.gz: a0bd560858150d245c03132d40d7d84d26ee0399bc78a89f7fe35bd49d9a943194eb102cc453b13f9747401d6a2108b824d0ce6adb7224e573caad01783ef1a3
6
+ metadata.gz: 8090c00dd81335e19b299a55f6872ff1591923278b5d24a67d3eb3a369c0a3ed2e0643206071d25bf4a665ff6bb09a70b5910c013adcad7b3826d49e17e54bdf
7
+ data.tar.gz: 51e0c6eb80594cc3ee16ceb0fd1927656433afe791fb8f4e1ca5cef873002b205049cc6d81d5e646fd94c84bb2c32518c594c2651dbd6d27a72fcf6a4d81b98f
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -27,7 +28,7 @@ require_relative 'aws-sdk-kafka/customizations'
27
28
  # structure.
28
29
  #
29
30
  # kafka = Aws::Kafka::Client.new
30
- # resp = kafka.create_cluster(params)
31
+ # resp = kafka.batch_associate_scram_secret(params)
31
32
  #
32
33
  # See {Client} for more information.
33
34
  #
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-kafka/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::Kafka
49
50
 
50
- GEM_VERSION = '1.23.0'
51
+ GEM_VERSION = '1.29.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::Kafka
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::Kafka
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -312,6 +327,42 @@ module Aws::Kafka
312
327
 
313
328
  # @!group API Operations
314
329
 
330
+ # Associates one or more Scram Secrets with an Amazon MSK cluster.
331
+ #
332
+ # @option params [required, String] :cluster_arn
333
+ #
334
+ # @option params [required, Array<String>] :secret_arn_list
335
+ # List of AWS Secrets Manager secret ARNs.
336
+ #
337
+ # @return [Types::BatchAssociateScramSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
338
+ #
339
+ # * {Types::BatchAssociateScramSecretResponse#cluster_arn #cluster_arn} => String
340
+ # * {Types::BatchAssociateScramSecretResponse#unprocessed_scram_secrets #unprocessed_scram_secrets} => Array&lt;Types::UnprocessedScramSecret&gt;
341
+ #
342
+ # @example Request syntax with placeholder values
343
+ #
344
+ # resp = client.batch_associate_scram_secret({
345
+ # cluster_arn: "__string", # required
346
+ # secret_arn_list: ["__string"], # required
347
+ # })
348
+ #
349
+ # @example Response structure
350
+ #
351
+ # resp.cluster_arn #=> String
352
+ # resp.unprocessed_scram_secrets #=> Array
353
+ # resp.unprocessed_scram_secrets[0].error_code #=> String
354
+ # resp.unprocessed_scram_secrets[0].error_message #=> String
355
+ # resp.unprocessed_scram_secrets[0].secret_arn #=> String
356
+ #
357
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchAssociateScramSecret AWS API Documentation
358
+ #
359
+ # @overload batch_associate_scram_secret(params = {})
360
+ # @param [Hash] params ({})
361
+ def batch_associate_scram_secret(params = {}, options = {})
362
+ req = build_request(:batch_associate_scram_secret, params)
363
+ req.send_request(options)
364
+ end
365
+
315
366
  # Creates a new MSK cluster.
316
367
  #
317
368
  # @option params [required, Types::BrokerNodeGroupInfo] :broker_node_group_info
@@ -369,6 +420,11 @@ module Aws::Kafka
369
420
  # },
370
421
  # },
371
422
  # client_authentication: {
423
+ # sasl: {
424
+ # scram: {
425
+ # enabled: false,
426
+ # },
427
+ # },
372
428
  # tls: {
373
429
  # certificate_authority_arn_list: ["__string"],
374
430
  # },
@@ -450,7 +506,7 @@ module Aws::Kafka
450
506
  # The name of the configuration. Configuration names are strings that
451
507
  # match the regex "^\[0-9A-Za-z-\]+$".
452
508
  #
453
- # @option params [required, String, IO] :server_properties
509
+ # @option params [required, String, StringIO, File] :server_properties
454
510
  #
455
511
  # @return [Types::CreateConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
456
512
  #
@@ -458,6 +514,7 @@ module Aws::Kafka
458
514
  # * {Types::CreateConfigurationResponse#creation_time #creation_time} => Time
459
515
  # * {Types::CreateConfigurationResponse#latest_revision #latest_revision} => Types::ConfigurationRevision
460
516
  # * {Types::CreateConfigurationResponse#name #name} => String
517
+ # * {Types::CreateConfigurationResponse#state #state} => String
461
518
  #
462
519
  # @example Request syntax with placeholder values
463
520
  #
@@ -476,6 +533,7 @@ module Aws::Kafka
476
533
  # resp.latest_revision.description #=> String
477
534
  # resp.latest_revision.revision #=> Integer
478
535
  # resp.name #=> String
536
+ # resp.state #=> String, one of "ACTIVE", "DELETING", "DELETE_FAILED"
479
537
  #
480
538
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/CreateConfiguration AWS API Documentation
481
539
  #
@@ -519,6 +577,37 @@ module Aws::Kafka
519
577
  req.send_request(options)
520
578
  end
521
579
 
580
+ # Deletes the specified MSK configuration. The configuration must be in
581
+ # the ACTIVE or DELETE\_FAILED state.
582
+ #
583
+ # @option params [required, String] :arn
584
+ # The Amazon Resource Name (ARN) of the configuration.
585
+ #
586
+ # @return [Types::DeleteConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
587
+ #
588
+ # * {Types::DeleteConfigurationResponse#arn #arn} => String
589
+ # * {Types::DeleteConfigurationResponse#state #state} => String
590
+ #
591
+ # @example Request syntax with placeholder values
592
+ #
593
+ # resp = client.delete_configuration({
594
+ # arn: "__string", # required
595
+ # })
596
+ #
597
+ # @example Response structure
598
+ #
599
+ # resp.arn #=> String
600
+ # resp.state #=> String, one of "ACTIVE", "DELETING", "DELETE_FAILED"
601
+ #
602
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DeleteConfiguration AWS API Documentation
603
+ #
604
+ # @overload delete_configuration(params = {})
605
+ # @param [Hash] params ({})
606
+ def delete_configuration(params = {}, options = {})
607
+ req = build_request(:delete_configuration, params)
608
+ req.send_request(options)
609
+ end
610
+
522
611
  # Returns a description of the MSK cluster whose Amazon Resource Name
523
612
  # (ARN) is specified in the request.
524
613
  #
@@ -544,6 +633,7 @@ module Aws::Kafka
544
633
  # resp.cluster_info.broker_node_group_info.security_groups #=> Array
545
634
  # resp.cluster_info.broker_node_group_info.security_groups[0] #=> String
546
635
  # resp.cluster_info.broker_node_group_info.storage_info.ebs_storage_info.volume_size #=> Integer
636
+ # resp.cluster_info.client_authentication.sasl.scram.enabled #=> Boolean
547
637
  # resp.cluster_info.client_authentication.tls.certificate_authority_arn_list #=> Array
548
638
  # resp.cluster_info.client_authentication.tls.certificate_authority_arn_list[0] #=> String
549
639
  # resp.cluster_info.cluster_arn #=> String
@@ -571,6 +661,7 @@ module Aws::Kafka
571
661
  # resp.cluster_info.tags #=> Hash
572
662
  # resp.cluster_info.tags["__string"] #=> String
573
663
  # resp.cluster_info.zookeeper_connect_string #=> String
664
+ # resp.cluster_info.zookeeper_connect_string_tls #=> String
574
665
  #
575
666
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeCluster AWS API Documentation
576
667
  #
@@ -665,6 +756,7 @@ module Aws::Kafka
665
756
  # * {Types::DescribeConfigurationResponse#kafka_versions #kafka_versions} => Array&lt;String&gt;
666
757
  # * {Types::DescribeConfigurationResponse#latest_revision #latest_revision} => Types::ConfigurationRevision
667
758
  # * {Types::DescribeConfigurationResponse#name #name} => String
759
+ # * {Types::DescribeConfigurationResponse#state #state} => String
668
760
  #
669
761
  # @example Request syntax with placeholder values
670
762
  #
@@ -683,6 +775,7 @@ module Aws::Kafka
683
775
  # resp.latest_revision.description #=> String
684
776
  # resp.latest_revision.revision #=> Integer
685
777
  # resp.name #=> String
778
+ # resp.state #=> String, one of "ACTIVE", "DELETING", "DELETE_FAILED"
686
779
  #
687
780
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/DescribeConfiguration AWS API Documentation
688
781
  #
@@ -731,6 +824,42 @@ module Aws::Kafka
731
824
  req.send_request(options)
732
825
  end
733
826
 
827
+ # Disassociates one or more Scram Secrets from an Amazon MSK cluster.
828
+ #
829
+ # @option params [required, String] :cluster_arn
830
+ #
831
+ # @option params [required, Array<String>] :secret_arn_list
832
+ # List of AWS Secrets Manager secret ARNs.
833
+ #
834
+ # @return [Types::BatchDisassociateScramSecretResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
835
+ #
836
+ # * {Types::BatchDisassociateScramSecretResponse#cluster_arn #cluster_arn} => String
837
+ # * {Types::BatchDisassociateScramSecretResponse#unprocessed_scram_secrets #unprocessed_scram_secrets} => Array&lt;Types::UnprocessedScramSecret&gt;
838
+ #
839
+ # @example Request syntax with placeholder values
840
+ #
841
+ # resp = client.batch_disassociate_scram_secret({
842
+ # cluster_arn: "__string", # required
843
+ # secret_arn_list: ["__string"], # required
844
+ # })
845
+ #
846
+ # @example Response structure
847
+ #
848
+ # resp.cluster_arn #=> String
849
+ # resp.unprocessed_scram_secrets #=> Array
850
+ # resp.unprocessed_scram_secrets[0].error_code #=> String
851
+ # resp.unprocessed_scram_secrets[0].error_message #=> String
852
+ # resp.unprocessed_scram_secrets[0].secret_arn #=> String
853
+ #
854
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/BatchDisassociateScramSecret AWS API Documentation
855
+ #
856
+ # @overload batch_disassociate_scram_secret(params = {})
857
+ # @param [Hash] params ({})
858
+ def batch_disassociate_scram_secret(params = {}, options = {})
859
+ req = build_request(:batch_disassociate_scram_secret, params)
860
+ req.send_request(options)
861
+ end
862
+
734
863
  # A list of brokers that a client application can use to bootstrap.
735
864
  #
736
865
  # @option params [required, String] :cluster_arn
@@ -739,6 +868,7 @@ module Aws::Kafka
739
868
  #
740
869
  # * {Types::GetBootstrapBrokersResponse#bootstrap_broker_string #bootstrap_broker_string} => String
741
870
  # * {Types::GetBootstrapBrokersResponse#bootstrap_broker_string_tls #bootstrap_broker_string_tls} => String
871
+ # * {Types::GetBootstrapBrokersResponse#bootstrap_broker_string_sasl_scram #bootstrap_broker_string_sasl_scram} => String
742
872
  #
743
873
  # @example Request syntax with placeholder values
744
874
  #
@@ -750,6 +880,7 @@ module Aws::Kafka
750
880
  #
751
881
  # resp.bootstrap_broker_string #=> String
752
882
  # resp.bootstrap_broker_string_tls #=> String
883
+ # resp.bootstrap_broker_string_sasl_scram #=> String
753
884
  #
754
885
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/GetBootstrapBrokers AWS API Documentation
755
886
  #
@@ -909,6 +1040,7 @@ module Aws::Kafka
909
1040
  # resp.cluster_info_list[0].broker_node_group_info.security_groups #=> Array
910
1041
  # resp.cluster_info_list[0].broker_node_group_info.security_groups[0] #=> String
911
1042
  # resp.cluster_info_list[0].broker_node_group_info.storage_info.ebs_storage_info.volume_size #=> Integer
1043
+ # resp.cluster_info_list[0].client_authentication.sasl.scram.enabled #=> Boolean
912
1044
  # resp.cluster_info_list[0].client_authentication.tls.certificate_authority_arn_list #=> Array
913
1045
  # resp.cluster_info_list[0].client_authentication.tls.certificate_authority_arn_list[0] #=> String
914
1046
  # resp.cluster_info_list[0].cluster_arn #=> String
@@ -936,6 +1068,7 @@ module Aws::Kafka
936
1068
  # resp.cluster_info_list[0].tags #=> Hash
937
1069
  # resp.cluster_info_list[0].tags["__string"] #=> String
938
1070
  # resp.cluster_info_list[0].zookeeper_connect_string #=> String
1071
+ # resp.cluster_info_list[0].zookeeper_connect_string_tls #=> String
939
1072
  # resp.next_token #=> String
940
1073
  #
941
1074
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListClusters AWS API Documentation
@@ -1019,6 +1152,7 @@ module Aws::Kafka
1019
1152
  # resp.configurations[0].latest_revision.description #=> String
1020
1153
  # resp.configurations[0].latest_revision.revision #=> Integer
1021
1154
  # resp.configurations[0].name #=> String
1155
+ # resp.configurations[0].state #=> String, one of "ACTIVE", "DELETING", "DELETE_FAILED"
1022
1156
  # resp.next_token #=> String
1023
1157
  #
1024
1158
  # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListConfigurations AWS API Documentation
@@ -1122,6 +1256,45 @@ module Aws::Kafka
1122
1256
  req.send_request(options)
1123
1257
  end
1124
1258
 
1259
+ # Returns a list of the Scram Secrets associated with an Amazon MSK
1260
+ # cluster.
1261
+ #
1262
+ # @option params [required, String] :cluster_arn
1263
+ #
1264
+ # @option params [Integer] :max_results
1265
+ #
1266
+ # @option params [String] :next_token
1267
+ #
1268
+ # @return [Types::ListScramSecretsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1269
+ #
1270
+ # * {Types::ListScramSecretsResponse#next_token #next_token} => String
1271
+ # * {Types::ListScramSecretsResponse#secret_arn_list #secret_arn_list} => Array&lt;String&gt;
1272
+ #
1273
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1274
+ #
1275
+ # @example Request syntax with placeholder values
1276
+ #
1277
+ # resp = client.list_scram_secrets({
1278
+ # cluster_arn: "__string", # required
1279
+ # max_results: 1,
1280
+ # next_token: "__string",
1281
+ # })
1282
+ #
1283
+ # @example Response structure
1284
+ #
1285
+ # resp.next_token #=> String
1286
+ # resp.secret_arn_list #=> Array
1287
+ # resp.secret_arn_list[0] #=> String
1288
+ #
1289
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListScramSecrets AWS API Documentation
1290
+ #
1291
+ # @overload list_scram_secrets(params = {})
1292
+ # @param [Hash] params ({})
1293
+ def list_scram_secrets(params = {}, options = {})
1294
+ req = build_request(:list_scram_secrets, params)
1295
+ req.send_request(options)
1296
+ end
1297
+
1125
1298
  # Returns a list of the tags associated with the specified resource.
1126
1299
  #
1127
1300
  # @option params [required, String] :resource_arn
@@ -1150,6 +1323,39 @@ module Aws::Kafka
1150
1323
  req.send_request(options)
1151
1324
  end
1152
1325
 
1326
+ # Executes a reboot on a broker.
1327
+ #
1328
+ # @option params [required, Array<String>] :broker_ids
1329
+ # The list of broker ids to be rebooted.
1330
+ #
1331
+ # @option params [required, String] :cluster_arn
1332
+ #
1333
+ # @return [Types::RebootBrokerResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1334
+ #
1335
+ # * {Types::RebootBrokerResponse#cluster_arn #cluster_arn} => String
1336
+ # * {Types::RebootBrokerResponse#cluster_operation_arn #cluster_operation_arn} => String
1337
+ #
1338
+ # @example Request syntax with placeholder values
1339
+ #
1340
+ # resp = client.reboot_broker({
1341
+ # broker_ids: ["__string"], # required
1342
+ # cluster_arn: "__string", # required
1343
+ # })
1344
+ #
1345
+ # @example Response structure
1346
+ #
1347
+ # resp.cluster_arn #=> String
1348
+ # resp.cluster_operation_arn #=> String
1349
+ #
1350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/RebootBroker AWS API Documentation
1351
+ #
1352
+ # @overload reboot_broker(params = {})
1353
+ # @param [Hash] params ({})
1354
+ def reboot_broker(params = {}, options = {})
1355
+ req = build_request(:reboot_broker, params)
1356
+ req.send_request(options)
1357
+ end
1358
+
1153
1359
  # Adds tags to the specified MSK resource.
1154
1360
  #
1155
1361
  # @option params [required, String] :resource_arn
@@ -1292,6 +1498,46 @@ module Aws::Kafka
1292
1498
  req.send_request(options)
1293
1499
  end
1294
1500
 
1501
+ # Updates an existing MSK configuration. The configuration must be in
1502
+ # the Active state.
1503
+ #
1504
+ # @option params [required, String] :arn
1505
+ # The Amazon Resource Name (ARN) of the configuration.
1506
+ #
1507
+ # @option params [String] :description
1508
+ # The description of the configuration.
1509
+ #
1510
+ # @option params [required, String, StringIO, File] :server_properties
1511
+ #
1512
+ # @return [Types::UpdateConfigurationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1513
+ #
1514
+ # * {Types::UpdateConfigurationResponse#arn #arn} => String
1515
+ # * {Types::UpdateConfigurationResponse#latest_revision #latest_revision} => Types::ConfigurationRevision
1516
+ #
1517
+ # @example Request syntax with placeholder values
1518
+ #
1519
+ # resp = client.update_configuration({
1520
+ # arn: "__string", # required
1521
+ # description: "__string",
1522
+ # server_properties: "data", # required
1523
+ # })
1524
+ #
1525
+ # @example Response structure
1526
+ #
1527
+ # resp.arn #=> String
1528
+ # resp.latest_revision.creation_time #=> Time
1529
+ # resp.latest_revision.description #=> String
1530
+ # resp.latest_revision.revision #=> Integer
1531
+ #
1532
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/UpdateConfiguration AWS API Documentation
1533
+ #
1534
+ # @overload update_configuration(params = {})
1535
+ # @param [Hash] params ({})
1536
+ def update_configuration(params = {}, options = {})
1537
+ req = build_request(:update_configuration, params)
1538
+ req.send_request(options)
1539
+ end
1540
+
1295
1541
  # Updates the cluster with the configuration that is specified in the
1296
1542
  # request body.
1297
1543
  #
@@ -1465,7 +1711,7 @@ module Aws::Kafka
1465
1711
  params: params,
1466
1712
  config: config)
1467
1713
  context[:gem_name] = 'aws-sdk-kafka'
1468
- context[:gem_version] = '1.23.0'
1714
+ context[:gem_version] = '1.29.0'
1469
1715
  Seahorse::Client::Request.new(handlers, context)
1470
1716
  end
1471
1717