aws-sdk-iot 1.158.0 → 1.160.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: 0e10ebdad95b1a29e3f98d3abb270e9a59120374064441cc1901c9e1a7e1b1c0
4
- data.tar.gz: 8267795bd471aeeb16e1e482282f68a222220d6173d31ff598fddfc5c1da1f74
3
+ metadata.gz: d670039495b814c64e0159cb27ab613f0db09bc692f207cadc75f1949865ee40
4
+ data.tar.gz: 6357fe9f365ea76e944c7f9d8882ef906253008aea92923faef232ab9f6eb230
5
5
  SHA512:
6
- metadata.gz: 135b4face451a2601c09a3d365be7db79a04284e2912ecaf03e8dfe8fb077f648bdf2aaa4ddf84164f73e6df797919f5d3875490e971b46cc0a6ca51c0f13e7b
7
- data.tar.gz: 7d8b9997b255b3f4da66633aec1036c11ce87c65208a8dae2e2841ae31c7b548cf21920e829b0c6e44b6d42c88108c784fa0063607d440be6bde3df1bcf69e62
6
+ metadata.gz: b0626c271aeb10965aa28d8d70d26231ff7578fd1267c43b0966e59a54ade695dee98d7cb28a63312ad1a661aaf2082b9881ae9185defa8fd9d44e47a4977888
7
+ data.tar.gz: 8714c86181c48a573422816b6cb818f569d5900ec6b01909a31093fba03b62e1b09771e5a35328af6f4ff97f9e133ce922970a43f233f38e23ecb4c42a92538e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.160.0 (2025-12-19)
5
+ ------------------
6
+
7
+ * Feature - This release adds event-based logging feature that enables granular event logging controls for AWS IoT logs.
8
+
9
+ 1.159.0 (2025-12-18)
10
+ ------------------
11
+
12
+ * Feature - This release adds message batching for the IoT Rules Engine HTTP action.
13
+
4
14
  1.158.0 (2025-12-16)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.158.0
1
+ 1.160.0
@@ -4100,6 +4100,12 @@ module Aws::IoT
4100
4100
  # role_arn: "AwsArn", # required
4101
4101
  # },
4102
4102
  # },
4103
+ # enable_batching: false,
4104
+ # batch_config: {
4105
+ # max_batch_open_ms: 1,
4106
+ # max_batch_size: 1,
4107
+ # max_batch_size_bytes: 1,
4108
+ # },
4103
4109
  # },
4104
4110
  # kafka: {
4105
4111
  # destination_arn: "AwsArn", # required
@@ -4309,6 +4315,12 @@ module Aws::IoT
4309
4315
  # role_arn: "AwsArn", # required
4310
4316
  # },
4311
4317
  # },
4318
+ # enable_batching: false,
4319
+ # batch_config: {
4320
+ # max_batch_open_ms: 1,
4321
+ # max_batch_size: 1,
4322
+ # max_batch_size_bytes: 1,
4323
+ # },
4312
4324
  # },
4313
4325
  # kafka: {
4314
4326
  # destination_arn: "AwsArn", # required
@@ -8795,6 +8807,10 @@ module Aws::IoT
8795
8807
  # resp.rule.actions[0].http.auth.sigv4.signing_region #=> String
8796
8808
  # resp.rule.actions[0].http.auth.sigv4.service_name #=> String
8797
8809
  # resp.rule.actions[0].http.auth.sigv4.role_arn #=> String
8810
+ # resp.rule.actions[0].http.enable_batching #=> Boolean
8811
+ # resp.rule.actions[0].http.batch_config.max_batch_open_ms #=> Integer
8812
+ # resp.rule.actions[0].http.batch_config.max_batch_size #=> Integer
8813
+ # resp.rule.actions[0].http.batch_config.max_batch_size_bytes #=> Integer
8798
8814
  # resp.rule.actions[0].kafka.destination_arn #=> String
8799
8815
  # resp.rule.actions[0].kafka.topic #=> String
8800
8816
  # resp.rule.actions[0].kafka.key #=> String
@@ -8920,6 +8936,10 @@ module Aws::IoT
8920
8936
  # resp.rule.error_action.http.auth.sigv4.signing_region #=> String
8921
8937
  # resp.rule.error_action.http.auth.sigv4.service_name #=> String
8922
8938
  # resp.rule.error_action.http.auth.sigv4.role_arn #=> String
8939
+ # resp.rule.error_action.http.enable_batching #=> Boolean
8940
+ # resp.rule.error_action.http.batch_config.max_batch_open_ms #=> Integer
8941
+ # resp.rule.error_action.http.batch_config.max_batch_size #=> Integer
8942
+ # resp.rule.error_action.http.batch_config.max_batch_size_bytes #=> Integer
8923
8943
  # resp.rule.error_action.kafka.destination_arn #=> String
8924
8944
  # resp.rule.error_action.kafka.topic #=> String
8925
8945
  # resp.rule.error_action.kafka.key #=> String
@@ -9000,17 +9020,32 @@ module Aws::IoT
9000
9020
  #
9001
9021
  # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
9002
9022
  #
9023
+ # @option params [Boolean] :verbose
9024
+ # The flag is used to get all the event types and their respective
9025
+ # configuration that event-based logging supports.
9026
+ #
9003
9027
  # @return [Types::GetV2LoggingOptionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
9004
9028
  #
9005
9029
  # * {Types::GetV2LoggingOptionsResponse#role_arn #role_arn} => String
9006
9030
  # * {Types::GetV2LoggingOptionsResponse#default_log_level #default_log_level} => String
9007
9031
  # * {Types::GetV2LoggingOptionsResponse#disable_all_logs #disable_all_logs} => Boolean
9032
+ # * {Types::GetV2LoggingOptionsResponse#event_configurations #event_configurations} => Array<Types::LogEventConfiguration>
9033
+ #
9034
+ # @example Request syntax with placeholder values
9035
+ #
9036
+ # resp = client.get_v2_logging_options({
9037
+ # verbose: false,
9038
+ # })
9008
9039
  #
9009
9040
  # @example Response structure
9010
9041
  #
9011
9042
  # resp.role_arn #=> String
9012
9043
  # resp.default_log_level #=> String, one of "DEBUG", "INFO", "ERROR", "WARN", "DISABLED"
9013
9044
  # resp.disable_all_logs #=> Boolean
9045
+ # resp.event_configurations #=> Array
9046
+ # resp.event_configurations[0].event_type #=> String
9047
+ # resp.event_configurations[0].log_level #=> String, one of "DEBUG", "INFO", "ERROR", "WARN", "DISABLED"
9048
+ # resp.event_configurations[0].log_destination #=> String
9014
9049
  #
9015
9050
  # @overload get_v2_logging_options(params = {})
9016
9051
  # @param [Hash] params ({})
@@ -13487,6 +13522,12 @@ module Aws::IoT
13487
13522
  # role_arn: "AwsArn", # required
13488
13523
  # },
13489
13524
  # },
13525
+ # enable_batching: false,
13526
+ # batch_config: {
13527
+ # max_batch_open_ms: 1,
13528
+ # max_batch_size: 1,
13529
+ # max_batch_size_bytes: 1,
13530
+ # },
13490
13531
  # },
13491
13532
  # kafka: {
13492
13533
  # destination_arn: "AwsArn", # required
@@ -13696,6 +13737,12 @@ module Aws::IoT
13696
13737
  # role_arn: "AwsArn", # required
13697
13738
  # },
13698
13739
  # },
13740
+ # enable_batching: false,
13741
+ # batch_config: {
13742
+ # max_batch_open_ms: 1,
13743
+ # max_batch_size: 1,
13744
+ # max_batch_size_bytes: 1,
13745
+ # },
13699
13746
  # },
13700
13747
  # kafka: {
13701
13748
  # destination_arn: "AwsArn", # required
@@ -13975,6 +14022,9 @@ module Aws::IoT
13975
14022
  # @option params [Boolean] :disable_all_logs
13976
14023
  # If true all logs are disabled. The default is false.
13977
14024
  #
14025
+ # @option params [Array<Types::LogEventConfiguration>] :event_configurations
14026
+ # The list of event configurations that override account-level logging.
14027
+ #
13978
14028
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
13979
14029
  #
13980
14030
  # @example Request syntax with placeholder values
@@ -13983,6 +14033,13 @@ module Aws::IoT
13983
14033
  # role_arn: "AwsArn",
13984
14034
  # default_log_level: "DEBUG", # accepts DEBUG, INFO, ERROR, WARN, DISABLED
13985
14035
  # disable_all_logs: false,
14036
+ # event_configurations: [
14037
+ # {
14038
+ # event_type: "LogEventType", # required
14039
+ # log_level: "DEBUG", # accepts DEBUG, INFO, ERROR, WARN, DISABLED
14040
+ # log_destination: "LogDestination",
14041
+ # },
14042
+ # ],
13986
14043
  # })
13987
14044
  #
13988
14045
  # @overload set_v2_logging_options(params = {})
@@ -16601,7 +16658,7 @@ module Aws::IoT
16601
16658
  tracer: tracer
16602
16659
  )
16603
16660
  context[:gem_name] = 'aws-sdk-iot'
16604
- context[:gem_version] = '1.158.0'
16661
+ context[:gem_version] = '1.160.0'
16605
16662
  Seahorse::Client::Request.new(handlers, context)
16606
16663
  end
16607
16664
 
@@ -150,6 +150,7 @@ module Aws::IoT
150
150
  AwsJobTimeoutConfig = Shapes::StructureShape.new(name: 'AwsJobTimeoutConfig')
151
151
  AwsJobTimeoutInProgressTimeoutInMinutes = Shapes::IntegerShape.new(name: 'AwsJobTimeoutInProgressTimeoutInMinutes')
152
152
  AwsJsonSubstitutionCommandPreprocessorConfig = Shapes::StructureShape.new(name: 'AwsJsonSubstitutionCommandPreprocessorConfig')
153
+ BatchConfig = Shapes::StructureShape.new(name: 'BatchConfig')
153
154
  BatchMode = Shapes::BooleanShape.new(name: 'BatchMode')
154
155
  BeforeSubstitutionFlag = Shapes::BooleanShape.new(name: 'BeforeSubstitutionFlag')
155
156
  Behavior = Shapes::StructureShape.new(name: 'Behavior')
@@ -580,6 +581,7 @@ module Aws::IoT
580
581
  ElasticsearchId = Shapes::StringShape.new(name: 'ElasticsearchId')
581
582
  ElasticsearchIndex = Shapes::StringShape.new(name: 'ElasticsearchIndex')
582
583
  ElasticsearchType = Shapes::StringShape.new(name: 'ElasticsearchType')
584
+ EnableBatching = Shapes::BooleanShape.new(name: 'EnableBatching')
583
585
  EnableCachingForHttp = Shapes::BooleanShape.new(name: 'EnableCachingForHttp')
584
586
  EnableIoTLoggingParams = Shapes::StructureShape.new(name: 'EnableIoTLoggingParams')
585
587
  EnableOCSPCheck = Shapes::BooleanShape.new(name: 'EnableOCSPCheck')
@@ -912,6 +914,10 @@ module Aws::IoT
912
914
  ListViolationEventsResponse = Shapes::StructureShape.new(name: 'ListViolationEventsResponse')
913
915
  LocationAction = Shapes::StructureShape.new(name: 'LocationAction')
914
916
  LocationTimestamp = Shapes::StructureShape.new(name: 'LocationTimestamp')
917
+ LogDestination = Shapes::StringShape.new(name: 'LogDestination')
918
+ LogEventConfiguration = Shapes::StructureShape.new(name: 'LogEventConfiguration')
919
+ LogEventConfigurations = Shapes::ListShape.new(name: 'LogEventConfigurations')
920
+ LogEventType = Shapes::StringShape.new(name: 'LogEventType')
915
921
  LogGroupName = Shapes::StringShape.new(name: 'LogGroupName')
916
922
  LogLevel = Shapes::StringShape.new(name: 'LogLevel')
917
923
  LogTarget = Shapes::StructureShape.new(name: 'LogTarget')
@@ -930,6 +936,9 @@ module Aws::IoT
930
936
  ManagedJobTemplatesSummaryList = Shapes::ListShape.new(name: 'ManagedJobTemplatesSummaryList')
931
937
  ManagedTemplateVersion = Shapes::StringShape.new(name: 'ManagedTemplateVersion')
932
938
  Marker = Shapes::StringShape.new(name: 'Marker')
939
+ MaxBatchOpenMs = Shapes::IntegerShape.new(name: 'MaxBatchOpenMs')
940
+ MaxBatchSize = Shapes::IntegerShape.new(name: 'MaxBatchSize')
941
+ MaxBatchSizeBytes = Shapes::IntegerShape.new(name: 'MaxBatchSizeBytes')
933
942
  MaxBuckets = Shapes::IntegerShape.new(name: 'MaxBuckets')
934
943
  MaxJobExecutionsPerMin = Shapes::IntegerShape.new(name: 'MaxJobExecutionsPerMin')
935
944
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
@@ -1475,6 +1484,7 @@ module Aws::IoT
1475
1484
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
1476
1485
  Value = Shapes::StringShape.new(name: 'Value')
1477
1486
  Variance = Shapes::FloatShape.new(name: 'Variance')
1487
+ VerboseFlag = Shapes::BooleanShape.new(name: 'VerboseFlag')
1478
1488
  VerificationState = Shapes::StringShape.new(name: 'VerificationState')
1479
1489
  VerificationStateDescription = Shapes::StringShape.new(name: 'VerificationStateDescription')
1480
1490
  Version = Shapes::IntegerShape.new(name: 'Version')
@@ -1833,6 +1843,11 @@ module Aws::IoT
1833
1843
  AwsJsonSubstitutionCommandPreprocessorConfig.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, required: true, location_name: "outputFormat"))
1834
1844
  AwsJsonSubstitutionCommandPreprocessorConfig.struct_class = Types::AwsJsonSubstitutionCommandPreprocessorConfig
1835
1845
 
1846
+ BatchConfig.add_member(:max_batch_open_ms, Shapes::ShapeRef.new(shape: MaxBatchOpenMs, location_name: "maxBatchOpenMs"))
1847
+ BatchConfig.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
1848
+ BatchConfig.add_member(:max_batch_size_bytes, Shapes::ShapeRef.new(shape: MaxBatchSizeBytes, location_name: "maxBatchSizeBytes"))
1849
+ BatchConfig.struct_class = Types::BatchConfig
1850
+
1836
1851
  Behavior.add_member(:name, Shapes::ShapeRef.new(shape: BehaviorName, required: true, location_name: "name"))
1837
1852
  Behavior.add_member(:metric, Shapes::ShapeRef.new(shape: BehaviorMetric, location_name: "metric"))
1838
1853
  Behavior.add_member(:metric_dimension, Shapes::ShapeRef.new(shape: MetricDimension, location_name: "metricDimension"))
@@ -3494,11 +3509,13 @@ module Aws::IoT
3494
3509
  GetTopicRuleResponse.add_member(:rule, Shapes::ShapeRef.new(shape: TopicRule, location_name: "rule"))
3495
3510
  GetTopicRuleResponse.struct_class = Types::GetTopicRuleResponse
3496
3511
 
3512
+ GetV2LoggingOptionsRequest.add_member(:verbose, Shapes::ShapeRef.new(shape: VerboseFlag, location: "querystring", location_name: "verbose"))
3497
3513
  GetV2LoggingOptionsRequest.struct_class = Types::GetV2LoggingOptionsRequest
3498
3514
 
3499
3515
  GetV2LoggingOptionsResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, location_name: "roleArn"))
3500
3516
  GetV2LoggingOptionsResponse.add_member(:default_log_level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "defaultLogLevel"))
3501
3517
  GetV2LoggingOptionsResponse.add_member(:disable_all_logs, Shapes::ShapeRef.new(shape: DisableAllLogs, location_name: "disableAllLogs"))
3518
+ GetV2LoggingOptionsResponse.add_member(:event_configurations, Shapes::ShapeRef.new(shape: LogEventConfigurations, location_name: "eventConfigurations"))
3502
3519
  GetV2LoggingOptionsResponse.struct_class = Types::GetV2LoggingOptionsResponse
3503
3520
 
3504
3521
  GroupNameAndArn.add_member(:group_name, Shapes::ShapeRef.new(shape: ThingGroupName, location_name: "groupName"))
@@ -3511,6 +3528,8 @@ module Aws::IoT
3511
3528
  HttpAction.add_member(:confirmation_url, Shapes::ShapeRef.new(shape: Url, location_name: "confirmationUrl"))
3512
3529
  HttpAction.add_member(:headers, Shapes::ShapeRef.new(shape: HeaderList, location_name: "headers"))
3513
3530
  HttpAction.add_member(:auth, Shapes::ShapeRef.new(shape: HttpAuthorization, location_name: "auth"))
3531
+ HttpAction.add_member(:enable_batching, Shapes::ShapeRef.new(shape: EnableBatching, location_name: "enableBatching"))
3532
+ HttpAction.add_member(:batch_config, Shapes::ShapeRef.new(shape: BatchConfig, location_name: "batchConfig"))
3514
3533
  HttpAction.struct_class = Types::HttpAction
3515
3534
 
3516
3535
  HttpActionHeader.add_member(:key, Shapes::ShapeRef.new(shape: HeaderKey, required: true, location_name: "key"))
@@ -4383,6 +4402,13 @@ module Aws::IoT
4383
4402
  LocationTimestamp.add_member(:unit, Shapes::ShapeRef.new(shape: String, location_name: "unit"))
4384
4403
  LocationTimestamp.struct_class = Types::LocationTimestamp
4385
4404
 
4405
+ LogEventConfiguration.add_member(:event_type, Shapes::ShapeRef.new(shape: LogEventType, required: true, location_name: "eventType"))
4406
+ LogEventConfiguration.add_member(:log_level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "logLevel"))
4407
+ LogEventConfiguration.add_member(:log_destination, Shapes::ShapeRef.new(shape: LogDestination, location_name: "logDestination"))
4408
+ LogEventConfiguration.struct_class = Types::LogEventConfiguration
4409
+
4410
+ LogEventConfigurations.member = Shapes::ShapeRef.new(shape: LogEventConfiguration)
4411
+
4386
4412
  LogTarget.add_member(:target_type, Shapes::ShapeRef.new(shape: LogTargetType, required: true, location_name: "targetType"))
4387
4413
  LogTarget.add_member(:target_name, Shapes::ShapeRef.new(shape: LogTargetName, location_name: "targetName"))
4388
4414
  LogTarget.struct_class = Types::LogTarget
@@ -4954,6 +4980,7 @@ module Aws::IoT
4954
4980
  SetV2LoggingOptionsRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, location_name: "roleArn"))
4955
4981
  SetV2LoggingOptionsRequest.add_member(:default_log_level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "defaultLogLevel"))
4956
4982
  SetV2LoggingOptionsRequest.add_member(:disable_all_logs, Shapes::ShapeRef.new(shape: DisableAllLogs, location_name: "disableAllLogs"))
4983
+ SetV2LoggingOptionsRequest.add_member(:event_configurations, Shapes::ShapeRef.new(shape: LogEventConfigurations, location_name: "eventConfigurations"))
4957
4984
  SetV2LoggingOptionsRequest.struct_class = Types::SetV2LoggingOptionsRequest
4958
4985
 
4959
4986
  SigV4Authorization.add_member(:signing_region, Shapes::ShapeRef.new(shape: SigningRegion, required: true, location_name: "signingRegion"))
@@ -1373,6 +1373,32 @@ module Aws::IoT
1373
1373
  include Aws::Structure
1374
1374
  end
1375
1375
 
1376
+ # Configuration settings for batching.
1377
+ #
1378
+ # @!attribute [rw] max_batch_open_ms
1379
+ # The maximum amount of time (in milliseconds) that an outgoing call
1380
+ # waits for other calls with which it batches messages of the same
1381
+ # type. The higher the setting, the longer the latency of the batched
1382
+ # HTTP Action will be.
1383
+ # @return [Integer]
1384
+ #
1385
+ # @!attribute [rw] max_batch_size
1386
+ # The maximum number of messages that are batched together in a single
1387
+ # action execution.
1388
+ # @return [Integer]
1389
+ #
1390
+ # @!attribute [rw] max_batch_size_bytes
1391
+ # Maximum size of a message batch, in bytes.
1392
+ # @return [Integer]
1393
+ #
1394
+ class BatchConfig < Struct.new(
1395
+ :max_batch_open_ms,
1396
+ :max_batch_size,
1397
+ :max_batch_size_bytes)
1398
+ SENSITIVE = []
1399
+ include Aws::Structure
1400
+ end
1401
+
1376
1402
  # A Device Defender security profile behavior.
1377
1403
  #
1378
1404
  # @!attribute [rw] name
@@ -8973,9 +8999,16 @@ module Aws::IoT
8973
8999
  include Aws::Structure
8974
9000
  end
8975
9001
 
8976
- # @api private
9002
+ # @!attribute [rw] verbose
9003
+ # The flag is used to get all the event types and their respective
9004
+ # configuration that event-based logging supports.
9005
+ # @return [Boolean]
8977
9006
  #
8978
- class GetV2LoggingOptionsRequest < Aws::EmptyStructure; end
9007
+ class GetV2LoggingOptionsRequest < Struct.new(
9008
+ :verbose)
9009
+ SENSITIVE = []
9010
+ include Aws::Structure
9011
+ end
8979
9012
 
8980
9013
  # @!attribute [rw] role_arn
8981
9014
  # The IAM role ARN IoT uses to write to your CloudWatch logs.
@@ -8989,10 +9022,16 @@ module Aws::IoT
8989
9022
  # Disables all logs.
8990
9023
  # @return [Boolean]
8991
9024
  #
9025
+ # @!attribute [rw] event_configurations
9026
+ # The list of event configurations that override account-level
9027
+ # logging.
9028
+ # @return [Array<Types::LogEventConfiguration>]
9029
+ #
8992
9030
  class GetV2LoggingOptionsResponse < Struct.new(
8993
9031
  :role_arn,
8994
9032
  :default_log_level,
8995
- :disable_all_logs)
9033
+ :disable_all_logs,
9034
+ :event_configurations)
8996
9035
  SENSITIVE = []
8997
9036
  include Aws::Structure
8998
9037
  end
@@ -9041,11 +9080,27 @@ module Aws::IoT
9041
9080
  # endpoint.
9042
9081
  # @return [Types::HttpAuthorization]
9043
9082
  #
9083
+ # @!attribute [rw] enable_batching
9084
+ # Whether to process the HTTP action messages into a single request.
9085
+ # Value can be true or false.
9086
+ # @return [Boolean]
9087
+ #
9088
+ # @!attribute [rw] batch_config
9089
+ # The configuration settings for batching. For more information, see [
9090
+ # Batching HTTP action messages][1].
9091
+ #
9092
+ #
9093
+ #
9094
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/http_batching.html
9095
+ # @return [Types::BatchConfig]
9096
+ #
9044
9097
  class HttpAction < Struct.new(
9045
9098
  :url,
9046
9099
  :confirmation_url,
9047
9100
  :headers,
9048
- :auth)
9101
+ :auth,
9102
+ :enable_batching,
9103
+ :batch_config)
9049
9104
  SENSITIVE = []
9050
9105
  include Aws::Structure
9051
9106
  end
@@ -13112,6 +13167,35 @@ module Aws::IoT
13112
13167
  include Aws::Structure
13113
13168
  end
13114
13169
 
13170
+ # Configuration for event-based logging that specifies which event types
13171
+ # to log and their logging settings. Used for account-level logging
13172
+ # overrides.
13173
+ #
13174
+ # @!attribute [rw] event_type
13175
+ # The type of event to log. These include event types like Connect,
13176
+ # Publish, and Disconnect.
13177
+ # @return [String]
13178
+ #
13179
+ # @!attribute [rw] log_level
13180
+ # The logging level for the specified event type. Determines the
13181
+ # verbosity of log messages generated for this event type.
13182
+ # @return [String]
13183
+ #
13184
+ # @!attribute [rw] log_destination
13185
+ # CloudWatch Log Group for event-based logging. Specifies where log
13186
+ # events should be sent. The log destination for event-based logging
13187
+ # overrides default Log Group for the specified event type and applies
13188
+ # to all resources associated with that event.
13189
+ # @return [String]
13190
+ #
13191
+ class LogEventConfiguration < Struct.new(
13192
+ :event_type,
13193
+ :log_level,
13194
+ :log_destination)
13195
+ SENSITIVE = []
13196
+ include Aws::Structure
13197
+ end
13198
+
13115
13199
  # A log target.
13116
13200
  #
13117
13201
  # @!attribute [rw] target_type
@@ -15417,10 +15501,16 @@ module Aws::IoT
15417
15501
  # If true all logs are disabled. The default is false.
15418
15502
  # @return [Boolean]
15419
15503
  #
15504
+ # @!attribute [rw] event_configurations
15505
+ # The list of event configurations that override account-level
15506
+ # logging.
15507
+ # @return [Array<Types::LogEventConfiguration>]
15508
+ #
15420
15509
  class SetV2LoggingOptionsRequest < Struct.new(
15421
15510
  :role_arn,
15422
15511
  :default_log_level,
15423
- :disable_all_logs)
15512
+ :disable_all_logs,
15513
+ :event_configurations)
15424
15514
  SENSITIVE = []
15425
15515
  include Aws::Structure
15426
15516
  end
data/lib/aws-sdk-iot.rb CHANGED
@@ -54,7 +54,7 @@ module Aws::IoT
54
54
  autoload :EndpointProvider, 'aws-sdk-iot/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-iot/endpoints'
56
56
 
57
- GEM_VERSION = '1.158.0'
57
+ GEM_VERSION = '1.160.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -1390,6 +1390,12 @@ module Aws
1390
1390
  service_name: ::String,
1391
1391
  role_arn: ::String
1392
1392
  }?
1393
+ }?,
1394
+ enable_batching: bool?,
1395
+ batch_config: {
1396
+ max_batch_open_ms: ::Integer?,
1397
+ max_batch_size: ::Integer?,
1398
+ max_batch_size_bytes: ::Integer?
1393
1399
  }?
1394
1400
  }?,
1395
1401
  kafka: {
@@ -1597,6 +1603,12 @@ module Aws
1597
1603
  service_name: ::String,
1598
1604
  role_arn: ::String
1599
1605
  }?
1606
+ }?,
1607
+ enable_batching: bool?,
1608
+ batch_config: {
1609
+ max_batch_open_ms: ::Integer?,
1610
+ max_batch_size: ::Integer?,
1611
+ max_batch_size_bytes: ::Integer?
1600
1612
  }?
1601
1613
  }?,
1602
1614
  kafka: {
@@ -2888,9 +2900,11 @@ module Aws
2888
2900
  def role_arn: () -> ::String
2889
2901
  def default_log_level: () -> ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")
2890
2902
  def disable_all_logs: () -> bool
2903
+ def event_configurations: () -> ::Array[Types::LogEventConfiguration]
2891
2904
  end
2892
2905
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#get_v2_logging_options-instance_method
2893
2906
  def get_v2_logging_options: (
2907
+ ?verbose: bool
2894
2908
  ) -> _GetV2LoggingOptionsResponseSuccess
2895
2909
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetV2LoggingOptionsResponseSuccess
2896
2910
 
@@ -4124,6 +4138,12 @@ module Aws
4124
4138
  service_name: ::String,
4125
4139
  role_arn: ::String
4126
4140
  }?
4141
+ }?,
4142
+ enable_batching: bool?,
4143
+ batch_config: {
4144
+ max_batch_open_ms: ::Integer?,
4145
+ max_batch_size: ::Integer?,
4146
+ max_batch_size_bytes: ::Integer?
4127
4147
  }?
4128
4148
  }?,
4129
4149
  kafka: {
@@ -4331,6 +4351,12 @@ module Aws
4331
4351
  service_name: ::String,
4332
4352
  role_arn: ::String
4333
4353
  }?
4354
+ }?,
4355
+ enable_batching: bool?,
4356
+ batch_config: {
4357
+ max_batch_open_ms: ::Integer?,
4358
+ max_batch_size: ::Integer?,
4359
+ max_batch_size_bytes: ::Integer?
4334
4360
  }?
4335
4361
  }?,
4336
4362
  kafka: {
@@ -4426,7 +4452,14 @@ module Aws
4426
4452
  def set_v2_logging_options: (
4427
4453
  ?role_arn: ::String,
4428
4454
  ?default_log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED"),
4429
- ?disable_all_logs: bool
4455
+ ?disable_all_logs: bool,
4456
+ ?event_configurations: Array[
4457
+ {
4458
+ event_type: ::String,
4459
+ log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")?,
4460
+ log_destination: ::String?
4461
+ },
4462
+ ]
4430
4463
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
4431
4464
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
4432
4465
 
data/sig/types.rbs CHANGED
@@ -373,6 +373,13 @@ module Aws::IoT
373
373
  SENSITIVE: []
374
374
  end
375
375
 
376
+ class BatchConfig
377
+ attr_accessor max_batch_open_ms: ::Integer
378
+ attr_accessor max_batch_size: ::Integer
379
+ attr_accessor max_batch_size_bytes: ::Integer
380
+ SENSITIVE: []
381
+ end
382
+
376
383
  class Behavior
377
384
  attr_accessor name: ::String
378
385
  attr_accessor metric: ::String
@@ -2560,13 +2567,16 @@ module Aws::IoT
2560
2567
  SENSITIVE: []
2561
2568
  end
2562
2569
 
2563
- class GetV2LoggingOptionsRequest < Aws::EmptyStructure
2570
+ class GetV2LoggingOptionsRequest
2571
+ attr_accessor verbose: bool
2572
+ SENSITIVE: []
2564
2573
  end
2565
2574
 
2566
2575
  class GetV2LoggingOptionsResponse
2567
2576
  attr_accessor role_arn: ::String
2568
2577
  attr_accessor default_log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")
2569
2578
  attr_accessor disable_all_logs: bool
2579
+ attr_accessor event_configurations: ::Array[Types::LogEventConfiguration]
2570
2580
  SENSITIVE: []
2571
2581
  end
2572
2582
 
@@ -2581,6 +2591,8 @@ module Aws::IoT
2581
2591
  attr_accessor confirmation_url: ::String
2582
2592
  attr_accessor headers: ::Array[Types::HttpActionHeader]
2583
2593
  attr_accessor auth: Types::HttpAuthorization
2594
+ attr_accessor enable_batching: bool
2595
+ attr_accessor batch_config: Types::BatchConfig
2584
2596
  SENSITIVE: []
2585
2597
  end
2586
2598
 
@@ -3777,6 +3789,13 @@ module Aws::IoT
3777
3789
  SENSITIVE: []
3778
3790
  end
3779
3791
 
3792
+ class LogEventConfiguration
3793
+ attr_accessor event_type: ::String
3794
+ attr_accessor log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")
3795
+ attr_accessor log_destination: ::String
3796
+ SENSITIVE: []
3797
+ end
3798
+
3780
3799
  class LogTarget
3781
3800
  attr_accessor target_type: ("DEFAULT" | "THING_GROUP" | "CLIENT_ID" | "SOURCE_IP" | "PRINCIPAL_ID")
3782
3801
  attr_accessor target_name: ::String
@@ -4415,6 +4434,7 @@ module Aws::IoT
4415
4434
  attr_accessor role_arn: ::String
4416
4435
  attr_accessor default_log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")
4417
4436
  attr_accessor disable_all_logs: bool
4437
+ attr_accessor event_configurations: ::Array[Types::LogEventConfiguration]
4418
4438
  SENSITIVE: []
4419
4439
  end
4420
4440
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.158.0
4
+ version: 1.160.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services