aws-sdk-iot 1.140.0 → 1.141.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: 18ed550997651dc40a4b02646548042373efe25728d0dd6740d9ddcfdfab9865
4
- data.tar.gz: 85b773dfc422142b20c81835bdfbb277f67ca16e7dd44bf74cee177624bceca1
3
+ metadata.gz: 5ff823b18af39585071ae9c4927ae848970348d59621ca6baee7087fecc345fd
4
+ data.tar.gz: 27d39b408ebb1127619ed0488087915eea1637e071de24b4df923e186038ce48
5
5
  SHA512:
6
- metadata.gz: 12e6cdc2862247a8a4aa4b803ed408a561c77d645c6eafb34e2bda8dd48e36d281dc6c1c47e6ddd7654220c113ae068be840635b49bb09761396224334bbe1da
7
- data.tar.gz: e4b3f472a45de41d0658b292363ba8b12a52ad9f3f1bcf5fcc7a718153fa3fbb40cfea565a81f422c3a45c491d2b2ac0da78efcd0d42eaf4dd4fdf19ef8eaa3f
6
+ metadata.gz: 130dcccb9ee1b603e042c2c95a954a8382d69ba0a89225af206f74cecb818890abec7fc4a0c2cbba4b03267eace65d69a6053abd101fdebdc68ff4776385a51b
7
+ data.tar.gz: a44ad986149c657949e9cbc34e0d86088e2e4cccc9079351c020b38e0e5b8e7365ec35cb4bfbd975cb927b5483759d9dd3abc1f1b6357c3da0087af135b69b1a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.141.0 (2024-12-18)
5
+ ------------------
6
+
7
+ * 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.
8
+
4
9
  1.140.0 (2024-11-21)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.140.0
1
+ 1.141.0
@@ -1575,7 +1575,11 @@ module Aws::IoT
1575
1575
  # when running the command using the `StartCommandExecution` API.
1576
1576
  #
1577
1577
  # @option params [String] :role_arn
1578
- # The IAM role that allows access to create the command.
1578
+ # The IAM role that you must provide when using the `AWS-IoT-FleetWise`
1579
+ # namespace. The role grants IoT Device Management the permission to
1580
+ # access IoT FleetWise resources for generating the payload for the
1581
+ # command. This field is not required when you use the `AWS-IoT`
1582
+ # namespace.
1579
1583
  #
1580
1584
  # @option params [Array<Types::Tag>] :tags
1581
1585
  # Name-value pairs that are used as metadata to manage a command.
@@ -8491,6 +8495,38 @@ module Aws::IoT
8491
8495
  req.send_request(options)
8492
8496
  end
8493
8497
 
8498
+ # Retrieves the live connectivity status per device.
8499
+ #
8500
+ # @option params [required, String] :thing_name
8501
+ # The name of your IoT thing.
8502
+ #
8503
+ # @return [Types::GetThingConnectivityDataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8504
+ #
8505
+ # * {Types::GetThingConnectivityDataResponse#thing_name #thing_name} => String
8506
+ # * {Types::GetThingConnectivityDataResponse#connected #connected} => Boolean
8507
+ # * {Types::GetThingConnectivityDataResponse#timestamp #timestamp} => Time
8508
+ # * {Types::GetThingConnectivityDataResponse#disconnect_reason #disconnect_reason} => String
8509
+ #
8510
+ # @example Request syntax with placeholder values
8511
+ #
8512
+ # resp = client.get_thing_connectivity_data({
8513
+ # thing_name: "ConnectivityApiThingName", # required
8514
+ # })
8515
+ #
8516
+ # @example Response structure
8517
+ #
8518
+ # resp.thing_name #=> String
8519
+ # resp.connected #=> Boolean
8520
+ # resp.timestamp #=> Time
8521
+ # 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"
8522
+ #
8523
+ # @overload get_thing_connectivity_data(params = {})
8524
+ # @param [Hash] params ({})
8525
+ def get_thing_connectivity_data(params = {}, options = {})
8526
+ req = build_request(:get_thing_connectivity_data, params)
8527
+ req.send_request(options)
8528
+ end
8529
+
8494
8530
  # Gets information about the rule.
8495
8531
  #
8496
8532
  # Requires permission to access the [GetTopicRule][1] action.
@@ -9742,10 +9778,22 @@ module Aws::IoT
9742
9778
 
9743
9779
  # List all command executions.
9744
9780
  #
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.
9781
+ # * You must provide only the `startedTimeFilter` or the
9782
+ # `completedTimeFilter` information. If you provide both time filters,
9783
+ # the API will generate an error. You can use this information to
9784
+ # retrieve a list of command executions within a specific timeframe.
9785
+ #
9786
+ # * You must provide only the `commandArn` or the `thingArn` information
9787
+ # depending on whether you want to list executions for a specific
9788
+ # command or an IoT thing. If you provide both fields, the API will
9789
+ # generate an error.
9790
+ #
9791
+ # For more information about considerations for using this API, see
9792
+ # [List command executions in your account (CLI)][1].
9793
+ #
9794
+ #
9795
+ #
9796
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/iot-remote-command-execution-start-monitor.html#iot-remote-command-execution-list-cli
9749
9797
  #
9750
9798
  # @option params [Integer] :max_results
9751
9799
  # The maximum number of results to return in this operation.
@@ -16336,7 +16384,7 @@ module Aws::IoT
16336
16384
  tracer: tracer
16337
16385
  )
16338
16386
  context[:gem_name] = 'aws-sdk-iot'
16339
- context[:gem_version] = '1.140.0'
16387
+ context[:gem_version] = '1.141.0'
16340
16388
  Seahorse::Client::Request.new(handlers, context)
16341
16389
  end
16342
16390
 
@@ -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.141.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -2809,6 +2809,19 @@ module Aws
2809
2809
  ) -> _GetStatisticsResponseSuccess
2810
2810
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetStatisticsResponseSuccess
2811
2811
 
2812
+ interface _GetThingConnectivityDataResponseSuccess
2813
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetThingConnectivityDataResponse]
2814
+ def thing_name: () -> ::String
2815
+ def connected: () -> bool
2816
+ def timestamp: () -> ::Time
2817
+ 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")
2818
+ end
2819
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#get_thing_connectivity_data-instance_method
2820
+ def get_thing_connectivity_data: (
2821
+ thing_name: ::String
2822
+ ) -> _GetThingConnectivityDataResponseSuccess
2823
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetThingConnectivityDataResponseSuccess
2824
+
2812
2825
  interface _GetTopicRuleResponseSuccess
2813
2826
  include ::Seahorse::Client::_ResponseSuccess[Types::GetTopicRuleResponse]
2814
2827
  def rule_arn: () -> ::String
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.141.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: 2024-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core