aws-sdk-iot 1.159.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iot/client.rb +26 -1
- data/lib/aws-sdk-iot/client_api.rb +15 -0
- data/lib/aws-sdk-iot/types.rb +58 -7
- data/lib/aws-sdk-iot.rb +1 -1
- data/sig/client.rbs +10 -1
- data/sig/types.rbs +12 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d670039495b814c64e0159cb27ab613f0db09bc692f207cadc75f1949865ee40
|
|
4
|
+
data.tar.gz: 6357fe9f365ea76e944c7f9d8882ef906253008aea92923faef232ab9f6eb230
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0626c271aeb10965aa28d8d70d26231ff7578fd1267c43b0966e59a54ade695dee98d7cb28a63312ad1a661aaf2082b9881ae9185defa8fd9d44e47a4977888
|
|
7
|
+
data.tar.gz: 8714c86181c48a573422816b6cb818f569d5900ec6b01909a31093fba03b62e1b09771e5a35328af6f4ff97f9e133ce922970a43f233f38e23ecb4c42a92538e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
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
|
+
|
|
4
9
|
1.159.0 (2025-12-18)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.160.0
|
data/lib/aws-sdk-iot/client.rb
CHANGED
|
@@ -9020,17 +9020,32 @@ module Aws::IoT
|
|
|
9020
9020
|
#
|
|
9021
9021
|
# [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
|
|
9022
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
|
+
#
|
|
9023
9027
|
# @return [Types::GetV2LoggingOptionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
9024
9028
|
#
|
|
9025
9029
|
# * {Types::GetV2LoggingOptionsResponse#role_arn #role_arn} => String
|
|
9026
9030
|
# * {Types::GetV2LoggingOptionsResponse#default_log_level #default_log_level} => String
|
|
9027
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
|
+
# })
|
|
9028
9039
|
#
|
|
9029
9040
|
# @example Response structure
|
|
9030
9041
|
#
|
|
9031
9042
|
# resp.role_arn #=> String
|
|
9032
9043
|
# resp.default_log_level #=> String, one of "DEBUG", "INFO", "ERROR", "WARN", "DISABLED"
|
|
9033
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
|
|
9034
9049
|
#
|
|
9035
9050
|
# @overload get_v2_logging_options(params = {})
|
|
9036
9051
|
# @param [Hash] params ({})
|
|
@@ -14007,6 +14022,9 @@ module Aws::IoT
|
|
|
14007
14022
|
# @option params [Boolean] :disable_all_logs
|
|
14008
14023
|
# If true all logs are disabled. The default is false.
|
|
14009
14024
|
#
|
|
14025
|
+
# @option params [Array<Types::LogEventConfiguration>] :event_configurations
|
|
14026
|
+
# The list of event configurations that override account-level logging.
|
|
14027
|
+
#
|
|
14010
14028
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
14011
14029
|
#
|
|
14012
14030
|
# @example Request syntax with placeholder values
|
|
@@ -14015,6 +14033,13 @@ module Aws::IoT
|
|
|
14015
14033
|
# role_arn: "AwsArn",
|
|
14016
14034
|
# default_log_level: "DEBUG", # accepts DEBUG, INFO, ERROR, WARN, DISABLED
|
|
14017
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
|
+
# ],
|
|
14018
14043
|
# })
|
|
14019
14044
|
#
|
|
14020
14045
|
# @overload set_v2_logging_options(params = {})
|
|
@@ -16633,7 +16658,7 @@ module Aws::IoT
|
|
|
16633
16658
|
tracer: tracer
|
|
16634
16659
|
)
|
|
16635
16660
|
context[:gem_name] = 'aws-sdk-iot'
|
|
16636
|
-
context[:gem_version] = '1.
|
|
16661
|
+
context[:gem_version] = '1.160.0'
|
|
16637
16662
|
Seahorse::Client::Request.new(handlers, context)
|
|
16638
16663
|
end
|
|
16639
16664
|
|
|
@@ -914,6 +914,10 @@ module Aws::IoT
|
|
|
914
914
|
ListViolationEventsResponse = Shapes::StructureShape.new(name: 'ListViolationEventsResponse')
|
|
915
915
|
LocationAction = Shapes::StructureShape.new(name: 'LocationAction')
|
|
916
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')
|
|
917
921
|
LogGroupName = Shapes::StringShape.new(name: 'LogGroupName')
|
|
918
922
|
LogLevel = Shapes::StringShape.new(name: 'LogLevel')
|
|
919
923
|
LogTarget = Shapes::StructureShape.new(name: 'LogTarget')
|
|
@@ -1480,6 +1484,7 @@ module Aws::IoT
|
|
|
1480
1484
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
1481
1485
|
Value = Shapes::StringShape.new(name: 'Value')
|
|
1482
1486
|
Variance = Shapes::FloatShape.new(name: 'Variance')
|
|
1487
|
+
VerboseFlag = Shapes::BooleanShape.new(name: 'VerboseFlag')
|
|
1483
1488
|
VerificationState = Shapes::StringShape.new(name: 'VerificationState')
|
|
1484
1489
|
VerificationStateDescription = Shapes::StringShape.new(name: 'VerificationStateDescription')
|
|
1485
1490
|
Version = Shapes::IntegerShape.new(name: 'Version')
|
|
@@ -3504,11 +3509,13 @@ module Aws::IoT
|
|
|
3504
3509
|
GetTopicRuleResponse.add_member(:rule, Shapes::ShapeRef.new(shape: TopicRule, location_name: "rule"))
|
|
3505
3510
|
GetTopicRuleResponse.struct_class = Types::GetTopicRuleResponse
|
|
3506
3511
|
|
|
3512
|
+
GetV2LoggingOptionsRequest.add_member(:verbose, Shapes::ShapeRef.new(shape: VerboseFlag, location: "querystring", location_name: "verbose"))
|
|
3507
3513
|
GetV2LoggingOptionsRequest.struct_class = Types::GetV2LoggingOptionsRequest
|
|
3508
3514
|
|
|
3509
3515
|
GetV2LoggingOptionsResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, location_name: "roleArn"))
|
|
3510
3516
|
GetV2LoggingOptionsResponse.add_member(:default_log_level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "defaultLogLevel"))
|
|
3511
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"))
|
|
3512
3519
|
GetV2LoggingOptionsResponse.struct_class = Types::GetV2LoggingOptionsResponse
|
|
3513
3520
|
|
|
3514
3521
|
GroupNameAndArn.add_member(:group_name, Shapes::ShapeRef.new(shape: ThingGroupName, location_name: "groupName"))
|
|
@@ -4395,6 +4402,13 @@ module Aws::IoT
|
|
|
4395
4402
|
LocationTimestamp.add_member(:unit, Shapes::ShapeRef.new(shape: String, location_name: "unit"))
|
|
4396
4403
|
LocationTimestamp.struct_class = Types::LocationTimestamp
|
|
4397
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
|
+
|
|
4398
4412
|
LogTarget.add_member(:target_type, Shapes::ShapeRef.new(shape: LogTargetType, required: true, location_name: "targetType"))
|
|
4399
4413
|
LogTarget.add_member(:target_name, Shapes::ShapeRef.new(shape: LogTargetName, location_name: "targetName"))
|
|
4400
4414
|
LogTarget.struct_class = Types::LogTarget
|
|
@@ -4966,6 +4980,7 @@ module Aws::IoT
|
|
|
4966
4980
|
SetV2LoggingOptionsRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, location_name: "roleArn"))
|
|
4967
4981
|
SetV2LoggingOptionsRequest.add_member(:default_log_level, Shapes::ShapeRef.new(shape: LogLevel, location_name: "defaultLogLevel"))
|
|
4968
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"))
|
|
4969
4984
|
SetV2LoggingOptionsRequest.struct_class = Types::SetV2LoggingOptionsRequest
|
|
4970
4985
|
|
|
4971
4986
|
SigV4Authorization.add_member(:signing_region, Shapes::ShapeRef.new(shape: SigningRegion, required: true, location_name: "signingRegion"))
|
data/lib/aws-sdk-iot/types.rb
CHANGED
|
@@ -8999,9 +8999,16 @@ module Aws::IoT
|
|
|
8999
8999
|
include Aws::Structure
|
|
9000
9000
|
end
|
|
9001
9001
|
|
|
9002
|
-
#
|
|
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]
|
|
9003
9006
|
#
|
|
9004
|
-
class GetV2LoggingOptionsRequest <
|
|
9007
|
+
class GetV2LoggingOptionsRequest < Struct.new(
|
|
9008
|
+
:verbose)
|
|
9009
|
+
SENSITIVE = []
|
|
9010
|
+
include Aws::Structure
|
|
9011
|
+
end
|
|
9005
9012
|
|
|
9006
9013
|
# @!attribute [rw] role_arn
|
|
9007
9014
|
# The IAM role ARN IoT uses to write to your CloudWatch logs.
|
|
@@ -9015,10 +9022,16 @@ module Aws::IoT
|
|
|
9015
9022
|
# Disables all logs.
|
|
9016
9023
|
# @return [Boolean]
|
|
9017
9024
|
#
|
|
9025
|
+
# @!attribute [rw] event_configurations
|
|
9026
|
+
# The list of event configurations that override account-level
|
|
9027
|
+
# logging.
|
|
9028
|
+
# @return [Array<Types::LogEventConfiguration>]
|
|
9029
|
+
#
|
|
9018
9030
|
class GetV2LoggingOptionsResponse < Struct.new(
|
|
9019
9031
|
:role_arn,
|
|
9020
9032
|
:default_log_level,
|
|
9021
|
-
:disable_all_logs
|
|
9033
|
+
:disable_all_logs,
|
|
9034
|
+
:event_configurations)
|
|
9022
9035
|
SENSITIVE = []
|
|
9023
9036
|
include Aws::Structure
|
|
9024
9037
|
end
|
|
@@ -9073,9 +9086,12 @@ module Aws::IoT
|
|
|
9073
9086
|
# @return [Boolean]
|
|
9074
9087
|
#
|
|
9075
9088
|
# @!attribute [rw] batch_config
|
|
9076
|
-
# The configuration settings for batching. For more information, see
|
|
9077
|
-
#
|
|
9078
|
-
#
|
|
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
|
|
9079
9095
|
# @return [Types::BatchConfig]
|
|
9080
9096
|
#
|
|
9081
9097
|
class HttpAction < Struct.new(
|
|
@@ -13151,6 +13167,35 @@ module Aws::IoT
|
|
|
13151
13167
|
include Aws::Structure
|
|
13152
13168
|
end
|
|
13153
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
|
+
|
|
13154
13199
|
# A log target.
|
|
13155
13200
|
#
|
|
13156
13201
|
# @!attribute [rw] target_type
|
|
@@ -15456,10 +15501,16 @@ module Aws::IoT
|
|
|
15456
15501
|
# If true all logs are disabled. The default is false.
|
|
15457
15502
|
# @return [Boolean]
|
|
15458
15503
|
#
|
|
15504
|
+
# @!attribute [rw] event_configurations
|
|
15505
|
+
# The list of event configurations that override account-level
|
|
15506
|
+
# logging.
|
|
15507
|
+
# @return [Array<Types::LogEventConfiguration>]
|
|
15508
|
+
#
|
|
15459
15509
|
class SetV2LoggingOptionsRequest < Struct.new(
|
|
15460
15510
|
:role_arn,
|
|
15461
15511
|
:default_log_level,
|
|
15462
|
-
:disable_all_logs
|
|
15512
|
+
:disable_all_logs,
|
|
15513
|
+
:event_configurations)
|
|
15463
15514
|
SENSITIVE = []
|
|
15464
15515
|
include Aws::Structure
|
|
15465
15516
|
end
|
data/lib/aws-sdk-iot.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -2900,9 +2900,11 @@ module Aws
|
|
|
2900
2900
|
def role_arn: () -> ::String
|
|
2901
2901
|
def default_log_level: () -> ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")
|
|
2902
2902
|
def disable_all_logs: () -> bool
|
|
2903
|
+
def event_configurations: () -> ::Array[Types::LogEventConfiguration]
|
|
2903
2904
|
end
|
|
2904
2905
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#get_v2_logging_options-instance_method
|
|
2905
2906
|
def get_v2_logging_options: (
|
|
2907
|
+
?verbose: bool
|
|
2906
2908
|
) -> _GetV2LoggingOptionsResponseSuccess
|
|
2907
2909
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetV2LoggingOptionsResponseSuccess
|
|
2908
2910
|
|
|
@@ -4450,7 +4452,14 @@ module Aws
|
|
|
4450
4452
|
def set_v2_logging_options: (
|
|
4451
4453
|
?role_arn: ::String,
|
|
4452
4454
|
?default_log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED"),
|
|
4453
|
-
?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
|
+
]
|
|
4454
4463
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
4455
4464
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
|
4456
4465
|
|
data/sig/types.rbs
CHANGED
|
@@ -2567,13 +2567,16 @@ module Aws::IoT
|
|
|
2567
2567
|
SENSITIVE: []
|
|
2568
2568
|
end
|
|
2569
2569
|
|
|
2570
|
-
class GetV2LoggingOptionsRequest
|
|
2570
|
+
class GetV2LoggingOptionsRequest
|
|
2571
|
+
attr_accessor verbose: bool
|
|
2572
|
+
SENSITIVE: []
|
|
2571
2573
|
end
|
|
2572
2574
|
|
|
2573
2575
|
class GetV2LoggingOptionsResponse
|
|
2574
2576
|
attr_accessor role_arn: ::String
|
|
2575
2577
|
attr_accessor default_log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")
|
|
2576
2578
|
attr_accessor disable_all_logs: bool
|
|
2579
|
+
attr_accessor event_configurations: ::Array[Types::LogEventConfiguration]
|
|
2577
2580
|
SENSITIVE: []
|
|
2578
2581
|
end
|
|
2579
2582
|
|
|
@@ -3786,6 +3789,13 @@ module Aws::IoT
|
|
|
3786
3789
|
SENSITIVE: []
|
|
3787
3790
|
end
|
|
3788
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
|
+
|
|
3789
3799
|
class LogTarget
|
|
3790
3800
|
attr_accessor target_type: ("DEFAULT" | "THING_GROUP" | "CLIENT_ID" | "SOURCE_IP" | "PRINCIPAL_ID")
|
|
3791
3801
|
attr_accessor target_name: ::String
|
|
@@ -4424,6 +4434,7 @@ module Aws::IoT
|
|
|
4424
4434
|
attr_accessor role_arn: ::String
|
|
4425
4435
|
attr_accessor default_log_level: ("DEBUG" | "INFO" | "ERROR" | "WARN" | "DISABLED")
|
|
4426
4436
|
attr_accessor disable_all_logs: bool
|
|
4437
|
+
attr_accessor event_configurations: ::Array[Types::LogEventConfiguration]
|
|
4427
4438
|
SENSITIVE: []
|
|
4428
4439
|
end
|
|
4429
4440
|
|