aws-sdk-iot 1.140.0 → 1.142.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: 18ed550997651dc40a4b02646548042373efe25728d0dd6740d9ddcfdfab9865
4
- data.tar.gz: 85b773dfc422142b20c81835bdfbb277f67ca16e7dd44bf74cee177624bceca1
3
+ metadata.gz: 0d9a17e8ec8a0f64162746df298301c66d0175e67de0efcbe9495519a097257c
4
+ data.tar.gz: 26ac4bc739d5d322b00baf95736e826e8bbaf18d80be9a3c274f4ffea7374ac1
5
5
  SHA512:
6
- metadata.gz: 12e6cdc2862247a8a4aa4b803ed408a561c77d645c6eafb34e2bda8dd48e36d281dc6c1c47e6ddd7654220c113ae068be840635b49bb09761396224334bbe1da
7
- data.tar.gz: e4b3f472a45de41d0658b292363ba8b12a52ad9f3f1bcf5fcc7a718153fa3fbb40cfea565a81f422c3a45c491d2b2ac0da78efcd0d42eaf4dd4fdf19ef8eaa3f
6
+ metadata.gz: '0682a505746d19b91d5d8bd450b6e4e310577fee3f4587c4befdfccc6f3f28618019137de78e0351ad180c7f52474dd8b4f80d29c179f745465f35d6371286cb'
7
+ data.tar.gz: 538472dbf08fd046169cb46148c3600932c01706e5e73cbeec43c2db40b7f69ecd885fbcf2b6b0e5b57afdce7915e02b21b48afcaa63fc8fb9512545164b7a09
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.142.0 (2025-01-15)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.141.0 (2024-12-18)
10
+ ------------------
11
+
12
+ * Feature - Release connectivity status query API which is a dedicated high throughput(TPS) API to query a specific device's most recent connectivity state and metadata.
13
+
4
14
  1.140.0 (2024-11-21)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.140.0
1
+ 1.142.0
@@ -257,11 +257,34 @@ module Aws::IoT
257
257
  # Used when loading credentials from the shared credentials file
258
258
  # at HOME/.aws/credentials. When not specified, 'default' is used.
259
259
  #
260
+ # @option options [String] :request_checksum_calculation ("when_supported")
261
+ # Determines when a checksum will be calculated for request payloads. Values are:
262
+ #
263
+ # * `when_supported` - (default) When set, a checksum will be
264
+ # calculated for all request payloads of operations modeled with the
265
+ # `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
266
+ # `requestAlgorithmMember` is modeled.
267
+ # * `when_required` - When set, a checksum will only be calculated for
268
+ # request payloads of operations modeled with the `httpChecksum` trait where
269
+ # `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
270
+ # is modeled and supplied.
271
+ #
260
272
  # @option options [Integer] :request_min_compression_size_bytes (10240)
261
273
  # The minimum size in bytes that triggers compression for request
262
274
  # bodies. The value must be non-negative integer value between 0
263
275
  # and 10485780 bytes inclusive.
264
276
  #
277
+ # @option options [String] :response_checksum_validation ("when_supported")
278
+ # Determines when checksum validation will be performed on response payloads. Values are:
279
+ #
280
+ # * `when_supported` - (default) When set, checksum validation is performed on all
281
+ # response payloads of operations modeled with the `httpChecksum` trait where
282
+ # `responseAlgorithms` is modeled, except when no modeled checksum algorithms
283
+ # are supported.
284
+ # * `when_required` - When set, checksum validation is not performed on
285
+ # response payloads of operations unless the checksum algorithm is supported and
286
+ # the `requestValidationModeMember` member is set to `ENABLED`.
287
+ #
265
288
  # @option options [Proc] :retry_backoff
266
289
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
267
290
  # This option is only used in the `legacy` retry mode.
@@ -1575,7 +1598,11 @@ module Aws::IoT
1575
1598
  # when running the command using the `StartCommandExecution` API.
1576
1599
  #
1577
1600
  # @option params [String] :role_arn
1578
- # The IAM role that allows access to create the command.
1601
+ # The IAM role that you must provide when using the `AWS-IoT-FleetWise`
1602
+ # namespace. The role grants IoT Device Management the permission to
1603
+ # access IoT FleetWise resources for generating the payload for the
1604
+ # command. This field is not required when you use the `AWS-IoT`
1605
+ # namespace.
1579
1606
  #
1580
1607
  # @option params [Array<Types::Tag>] :tags
1581
1608
  # Name-value pairs that are used as metadata to manage a command.
@@ -8491,6 +8518,38 @@ module Aws::IoT
8491
8518
  req.send_request(options)
8492
8519
  end
8493
8520
 
8521
+ # Retrieves the live connectivity status per device.
8522
+ #
8523
+ # @option params [required, String] :thing_name
8524
+ # The name of your IoT thing.
8525
+ #
8526
+ # @return [Types::GetThingConnectivityDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8527
+ #
8528
+ # * {Types::GetThingConnectivityDataResponse#thing_name #thing_name} => String
8529
+ # * {Types::GetThingConnectivityDataResponse#connected #connected} => Boolean
8530
+ # * {Types::GetThingConnectivityDataResponse#timestamp #timestamp} => Time
8531
+ # * {Types::GetThingConnectivityDataResponse#disconnect_reason #disconnect_reason} => String
8532
+ #
8533
+ # @example Request syntax with placeholder values
8534
+ #
8535
+ # resp = client.get_thing_connectivity_data({
8536
+ # thing_name: "ConnectivityApiThingName", # required
8537
+ # })
8538
+ #
8539
+ # @example Response structure
8540
+ #
8541
+ # resp.thing_name #=> String
8542
+ # resp.connected #=> Boolean
8543
+ # resp.timestamp #=> Time
8544
+ # resp.disconnect_reason #=> String, one of "AUTH_ERROR", "CLIENT_INITIATED_DISCONNECT", "CLIENT_ERROR", "CONNECTION_LOST", "DUPLICATE_CLIENTID", "FORBIDDEN_ACCESS", "MQTT_KEEP_ALIVE_TIMEOUT", "SERVER_ERROR", "SERVER_INITIATED_DISCONNECT", "THROTTLED", "WEBSOCKET_TTL_EXPIRATION", "CUSTOMAUTH_TTL_EXPIRATION", "UNKNOWN", "NONE"
8545
+ #
8546
+ # @overload get_thing_connectivity_data(params = {})
8547
+ # @param [Hash] params ({})
8548
+ def get_thing_connectivity_data(params = {}, options = {})
8549
+ req = build_request(:get_thing_connectivity_data, params)
8550
+ req.send_request(options)
8551
+ end
8552
+
8494
8553
  # Gets information about the rule.
8495
8554
  #
8496
8555
  # Requires permission to access the [GetTopicRule][1] action.
@@ -9742,10 +9801,22 @@ module Aws::IoT
9742
9801
 
9743
9802
  # List all command executions.
9744
9803
  #
9745
- # You must provide only the `startedTimeFilter` or the
9746
- # `completedTimeFilter` information. If you provide both time filters,
9747
- # the API will generate an error. You can use this information to find
9748
- # command executions that started within a specific timeframe.
9804
+ # * You must provide only the `startedTimeFilter` or the
9805
+ # `completedTimeFilter` information. If you provide both time filters,
9806
+ # the API will generate an error. You can use this information to
9807
+ # retrieve a list of command executions within a specific timeframe.
9808
+ #
9809
+ # * You must provide only the `commandArn` or the `thingArn` information
9810
+ # depending on whether you want to list executions for a specific
9811
+ # command or an IoT thing. If you provide both fields, the API will
9812
+ # generate an error.
9813
+ #
9814
+ # For more information about considerations for using this API, see
9815
+ # [List command executions in your account (CLI)][1].
9816
+ #
9817
+ #
9818
+ #
9819
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/iot-remote-command-execution-start-monitor.html#iot-remote-command-execution-list-cli
9749
9820
  #
9750
9821
  # @option params [Integer] :max_results
9751
9822
  # The maximum number of results to return in this operation.
@@ -16336,7 +16407,7 @@ module Aws::IoT
16336
16407
  tracer: tracer
16337
16408
  )
16338
16409
  context[:gem_name] = 'aws-sdk-iot'
16339
- context[:gem_version] = '1.140.0'
16410
+ context[:gem_version] = '1.142.0'
16340
16411
  Seahorse::Client::Request.new(handlers, context)
16341
16412
  end
16342
16413
 
@@ -273,6 +273,7 @@ module Aws::IoT
273
273
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
274
274
  ConflictingResourceUpdateException = Shapes::StructureShape.new(name: 'ConflictingResourceUpdateException')
275
275
  ConnectionAttributeName = Shapes::StringShape.new(name: 'ConnectionAttributeName')
276
+ ConnectivityApiThingName = Shapes::StringShape.new(name: 'ConnectivityApiThingName')
276
277
  ConnectivityTimestamp = Shapes::IntegerShape.new(name: 'ConnectivityTimestamp')
277
278
  ConsecutiveDatapointsToAlarm = Shapes::IntegerShape.new(name: 'ConsecutiveDatapointsToAlarm')
278
279
  ConsecutiveDatapointsToClear = Shapes::IntegerShape.new(name: 'ConsecutiveDatapointsToClear')
@@ -536,6 +537,7 @@ module Aws::IoT
536
537
  DisassociateSbomFromPackageVersionRequest = Shapes::StructureShape.new(name: 'DisassociateSbomFromPackageVersionRequest')
537
538
  DisassociateSbomFromPackageVersionResponse = Shapes::StructureShape.new(name: 'DisassociateSbomFromPackageVersionResponse')
538
539
  DisconnectReason = Shapes::StringShape.new(name: 'DisconnectReason')
540
+ DisconnectReasonValue = Shapes::StringShape.new(name: 'DisconnectReasonValue')
539
541
  DisplayName = Shapes::StringShape.new(name: 'DisplayName')
540
542
  DocumentParameter = Shapes::StructureShape.new(name: 'DocumentParameter')
541
543
  DocumentParameters = Shapes::ListShape.new(name: 'DocumentParameters')
@@ -654,6 +656,8 @@ module Aws::IoT
654
656
  GetRegistrationCodeResponse = Shapes::StructureShape.new(name: 'GetRegistrationCodeResponse')
655
657
  GetStatisticsRequest = Shapes::StructureShape.new(name: 'GetStatisticsRequest')
656
658
  GetStatisticsResponse = Shapes::StructureShape.new(name: 'GetStatisticsResponse')
659
+ GetThingConnectivityDataRequest = Shapes::StructureShape.new(name: 'GetThingConnectivityDataRequest')
660
+ GetThingConnectivityDataResponse = Shapes::StructureShape.new(name: 'GetThingConnectivityDataResponse')
657
661
  GetTopicRuleDestinationRequest = Shapes::StructureShape.new(name: 'GetTopicRuleDestinationRequest')
658
662
  GetTopicRuleDestinationResponse = Shapes::StructureShape.new(name: 'GetTopicRuleDestinationResponse')
659
663
  GetTopicRuleRequest = Shapes::StructureShape.new(name: 'GetTopicRuleRequest')
@@ -3396,6 +3400,15 @@ module Aws::IoT
3396
3400
  GetStatisticsResponse.add_member(:statistics, Shapes::ShapeRef.new(shape: Statistics, location_name: "statistics"))
3397
3401
  GetStatisticsResponse.struct_class = Types::GetStatisticsResponse
3398
3402
 
3403
+ GetThingConnectivityDataRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ConnectivityApiThingName, required: true, location: "uri", location_name: "thingName"))
3404
+ GetThingConnectivityDataRequest.struct_class = Types::GetThingConnectivityDataRequest
3405
+
3406
+ GetThingConnectivityDataResponse.add_member(:thing_name, Shapes::ShapeRef.new(shape: ConnectivityApiThingName, location_name: "thingName"))
3407
+ GetThingConnectivityDataResponse.add_member(:connected, Shapes::ShapeRef.new(shape: Boolean, location_name: "connected"))
3408
+ GetThingConnectivityDataResponse.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
3409
+ GetThingConnectivityDataResponse.add_member(:disconnect_reason, Shapes::ShapeRef.new(shape: DisconnectReasonValue, location_name: "disconnectReason"))
3410
+ GetThingConnectivityDataResponse.struct_class = Types::GetThingConnectivityDataResponse
3411
+
3399
3412
  GetTopicRuleDestinationRequest.add_member(:arn, Shapes::ShapeRef.new(shape: AwsArn, required: true, location: "uri", location_name: "arn"))
3400
3413
  GetTopicRuleDestinationRequest.struct_class = Types::GetTopicRuleDestinationRequest
3401
3414
 
@@ -7609,6 +7622,21 @@ module Aws::IoT
7609
7622
  o.errors << Shapes::ShapeRef.new(shape: IndexNotReadyException)
7610
7623
  end)
7611
7624
 
7625
+ api.add_operation(:get_thing_connectivity_data, Seahorse::Model::Operation.new.tap do |o|
7626
+ o.name = "GetThingConnectivityData"
7627
+ o.http_method = "POST"
7628
+ o.http_request_uri = "/things/{thingName}/connectivity-data"
7629
+ o.input = Shapes::ShapeRef.new(shape: GetThingConnectivityDataRequest)
7630
+ o.output = Shapes::ShapeRef.new(shape: GetThingConnectivityDataResponse)
7631
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
7632
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
7633
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
7634
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
7635
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
7636
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
7637
+ o.errors << Shapes::ShapeRef.new(shape: IndexNotReadyException)
7638
+ end)
7639
+
7612
7640
  api.add_operation(:get_topic_rule, Seahorse::Model::Operation.new.tap do |o|
7613
7641
  o.name = "GetTopicRule"
7614
7642
  o.http_method = "GET"
@@ -2795,7 +2795,11 @@ module Aws::IoT
2795
2795
  # @return [Array<Types::CommandParameter>]
2796
2796
  #
2797
2797
  # @!attribute [rw] role_arn
2798
- # The IAM role that allows access to create the command.
2798
+ # The IAM role that you must provide when using the
2799
+ # `AWS-IoT-FleetWise` namespace. The role grants IoT Device Management
2800
+ # the permission to access IoT FleetWise resources for generating the
2801
+ # payload for the command. This field is not required when you use the
2802
+ # `AWS-IoT` namespace.
2799
2803
  # @return [String]
2800
2804
  #
2801
2805
  # @!attribute [rw] tags
@@ -8084,7 +8088,9 @@ module Aws::IoT
8084
8088
  # @return [Time]
8085
8089
  #
8086
8090
  # @!attribute [rw] time_to_live
8087
- # The time to live (TTL) parameter for the `GetCommandExecution` API.
8091
+ # The time to live (TTL) parameter that indicates the duration for
8092
+ # which executions will be retained in your account. The default value
8093
+ # is six months.
8088
8094
  # @return [Time]
8089
8095
  #
8090
8096
  class GetCommandExecutionResponse < Struct.new(
@@ -8146,8 +8152,8 @@ module Aws::IoT
8146
8152
  # @return [Types::CommandPayload]
8147
8153
  #
8148
8154
  # @!attribute [rw] role_arn
8149
- # The IAM role that allows access to retrieve information about the
8150
- # command.
8155
+ # The IAM role that you provided when creating the command with
8156
+ # `AWS-IoT-FleetWise` as the namespace.
8151
8157
  # @return [String]
8152
8158
  #
8153
8159
  # @!attribute [rw] created_at
@@ -8672,6 +8678,41 @@ module Aws::IoT
8672
8678
  include Aws::Structure
8673
8679
  end
8674
8680
 
8681
+ # @!attribute [rw] thing_name
8682
+ # The name of your IoT thing.
8683
+ # @return [String]
8684
+ #
8685
+ class GetThingConnectivityDataRequest < Struct.new(
8686
+ :thing_name)
8687
+ SENSITIVE = [:thing_name]
8688
+ include Aws::Structure
8689
+ end
8690
+
8691
+ # @!attribute [rw] thing_name
8692
+ # The name of your IoT thing.
8693
+ # @return [String]
8694
+ #
8695
+ # @!attribute [rw] connected
8696
+ # A Boolean that indicates the connectivity status.
8697
+ # @return [Boolean]
8698
+ #
8699
+ # @!attribute [rw] timestamp
8700
+ # The timestamp of when the event occurred.
8701
+ # @return [Time]
8702
+ #
8703
+ # @!attribute [rw] disconnect_reason
8704
+ # The reason why the client is disconnecting.
8705
+ # @return [String]
8706
+ #
8707
+ class GetThingConnectivityDataResponse < Struct.new(
8708
+ :thing_name,
8709
+ :connected,
8710
+ :timestamp,
8711
+ :disconnect_reason)
8712
+ SENSITIVE = [:thing_name]
8713
+ include Aws::Structure
8714
+ end
8715
+
8675
8716
  # @!attribute [rw] arn
8676
8717
  # The ARN of the topic rule destination.
8677
8718
  # @return [String]
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.140.0'
57
+ GEM_VERSION = '1.142.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -39,7 +39,9 @@ module Aws
39
39
  ?logger: untyped,
40
40
  ?max_attempts: Integer,
41
41
  ?profile: String,
42
+ ?request_checksum_calculation: String,
42
43
  ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
43
45
  ?retry_backoff: Proc,
44
46
  ?retry_base_delay: Float,
45
47
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -2809,6 +2811,19 @@ module Aws
2809
2811
  ) -> _GetStatisticsResponseSuccess
2810
2812
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetStatisticsResponseSuccess
2811
2813
 
2814
+ interface _GetThingConnectivityDataResponseSuccess
2815
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetThingConnectivityDataResponse]
2816
+ def thing_name: () -> ::String
2817
+ def connected: () -> bool
2818
+ def timestamp: () -> ::Time
2819
+ def disconnect_reason: () -> ("AUTH_ERROR" | "CLIENT_INITIATED_DISCONNECT" | "CLIENT_ERROR" | "CONNECTION_LOST" | "DUPLICATE_CLIENTID" | "FORBIDDEN_ACCESS" | "MQTT_KEEP_ALIVE_TIMEOUT" | "SERVER_ERROR" | "SERVER_INITIATED_DISCONNECT" | "THROTTLED" | "WEBSOCKET_TTL_EXPIRATION" | "CUSTOMAUTH_TTL_EXPIRATION" | "UNKNOWN" | "NONE")
2820
+ end
2821
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#get_thing_connectivity_data-instance_method
2822
+ def get_thing_connectivity_data: (
2823
+ thing_name: ::String
2824
+ ) -> _GetThingConnectivityDataResponseSuccess
2825
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetThingConnectivityDataResponseSuccess
2826
+
2812
2827
  interface _GetTopicRuleResponseSuccess
2813
2828
  include ::Seahorse::Client::_ResponseSuccess[Types::GetTopicRuleResponse]
2814
2829
  def rule_arn: () -> ::String
data/sig/resource.rbs CHANGED
@@ -39,7 +39,9 @@ module Aws
39
39
  ?logger: untyped,
40
40
  ?max_attempts: Integer,
41
41
  ?profile: String,
42
+ ?request_checksum_calculation: String,
42
43
  ?request_min_compression_size_bytes: Integer,
44
+ ?response_checksum_validation: String,
43
45
  ?retry_backoff: Proc,
44
46
  ?retry_base_delay: Float,
45
47
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
data/sig/types.rbs CHANGED
@@ -2469,6 +2469,19 @@ module Aws::IoT
2469
2469
  SENSITIVE: []
2470
2470
  end
2471
2471
 
2472
+ class GetThingConnectivityDataRequest
2473
+ attr_accessor thing_name: ::String
2474
+ SENSITIVE: [:thing_name]
2475
+ end
2476
+
2477
+ class GetThingConnectivityDataResponse
2478
+ attr_accessor thing_name: ::String
2479
+ attr_accessor connected: bool
2480
+ attr_accessor timestamp: ::Time
2481
+ attr_accessor disconnect_reason: ("AUTH_ERROR" | "CLIENT_INITIATED_DISCONNECT" | "CLIENT_ERROR" | "CONNECTION_LOST" | "DUPLICATE_CLIENTID" | "FORBIDDEN_ACCESS" | "MQTT_KEEP_ALIVE_TIMEOUT" | "SERVER_ERROR" | "SERVER_INITIATED_DISCONNECT" | "THROTTLED" | "WEBSOCKET_TTL_EXPIRATION" | "CUSTOMAUTH_TTL_EXPIRATION" | "UNKNOWN" | "NONE")
2482
+ SENSITIVE: [:thing_name]
2483
+ end
2484
+
2472
2485
  class GetTopicRuleDestinationRequest
2473
2486
  attr_accessor arn: ::String
2474
2487
  SENSITIVE: []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.140.0
4
+ version: 1.142.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.210.0
22
+ version: 3.216.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.210.0
32
+ version: 3.216.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement