aws-sdk-iot 1.139.0 → 1.140.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.
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.139.0'
57
+ GEM_VERSION = '1.140.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -363,6 +363,55 @@ module Aws
363
363
  ) -> _CreateCertificateProviderResponseSuccess
364
364
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCertificateProviderResponseSuccess
365
365
 
366
+ interface _CreateCommandResponseSuccess
367
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateCommandResponse]
368
+ def command_id: () -> ::String
369
+ def command_arn: () -> ::String
370
+ end
371
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#create_command-instance_method
372
+ def create_command: (
373
+ command_id: ::String,
374
+ ?namespace: ("AWS-IoT" | "AWS-IoT-FleetWise"),
375
+ ?display_name: ::String,
376
+ ?description: ::String,
377
+ ?payload: {
378
+ content: ::String?,
379
+ content_type: ::String?
380
+ },
381
+ ?mandatory_parameters: Array[
382
+ {
383
+ name: ::String,
384
+ value: {
385
+ s: ::String?,
386
+ b: bool?,
387
+ i: ::Integer?,
388
+ l: ::Integer?,
389
+ d: ::Float?,
390
+ bin: ::String?,
391
+ ul: ::String?
392
+ }?,
393
+ default_value: {
394
+ s: ::String?,
395
+ b: bool?,
396
+ i: ::Integer?,
397
+ l: ::Integer?,
398
+ d: ::Float?,
399
+ bin: ::String?,
400
+ ul: ::String?
401
+ }?,
402
+ description: ::String?
403
+ },
404
+ ],
405
+ ?role_arn: ::String,
406
+ ?tags: Array[
407
+ {
408
+ key: ::String,
409
+ value: ::String?
410
+ },
411
+ ]
412
+ ) -> _CreateCommandResponseSuccess
413
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateCommandResponseSuccess
414
+
366
415
  interface _CreateCustomMetricResponseSuccess
367
416
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateCustomMetricResponse]
368
417
  def metric_name: () -> ::String
@@ -1663,6 +1712,26 @@ module Aws
1663
1712
  ) -> _DeleteCertificateProviderResponseSuccess
1664
1713
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCertificateProviderResponseSuccess
1665
1714
 
1715
+ interface _DeleteCommandResponseSuccess
1716
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCommandResponse]
1717
+ def status_code: () -> ::Integer
1718
+ end
1719
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#delete_command-instance_method
1720
+ def delete_command: (
1721
+ command_id: ::String
1722
+ ) -> _DeleteCommandResponseSuccess
1723
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCommandResponseSuccess
1724
+
1725
+ interface _DeleteCommandExecutionResponseSuccess
1726
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCommandExecutionResponse]
1727
+ end
1728
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#delete_command_execution-instance_method
1729
+ def delete_command_execution: (
1730
+ execution_id: ::String,
1731
+ target_arn: ::String
1732
+ ) -> _DeleteCommandExecutionResponseSuccess
1733
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteCommandExecutionResponseSuccess
1734
+
1666
1735
  interface _DeleteCustomMetricResponseSuccess
1667
1736
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteCustomMetricResponse]
1668
1737
  end
@@ -2525,6 +2594,51 @@ module Aws
2525
2594
  ) -> _GetCardinalityResponseSuccess
2526
2595
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCardinalityResponseSuccess
2527
2596
 
2597
+ interface _GetCommandResponseSuccess
2598
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCommandResponse]
2599
+ def command_id: () -> ::String
2600
+ def command_arn: () -> ::String
2601
+ def namespace: () -> ("AWS-IoT" | "AWS-IoT-FleetWise")
2602
+ def display_name: () -> ::String
2603
+ def description: () -> ::String
2604
+ def mandatory_parameters: () -> ::Array[Types::CommandParameter]
2605
+ def payload: () -> Types::CommandPayload
2606
+ def role_arn: () -> ::String
2607
+ def created_at: () -> ::Time
2608
+ def last_updated_at: () -> ::Time
2609
+ def deprecated: () -> bool
2610
+ def pending_deletion: () -> bool
2611
+ end
2612
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#get_command-instance_method
2613
+ def get_command: (
2614
+ command_id: ::String
2615
+ ) -> _GetCommandResponseSuccess
2616
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCommandResponseSuccess
2617
+
2618
+ interface _GetCommandExecutionResponseSuccess
2619
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetCommandExecutionResponse]
2620
+ def execution_id: () -> ::String
2621
+ def command_arn: () -> ::String
2622
+ def target_arn: () -> ::String
2623
+ def status: () -> ("CREATED" | "IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "REJECTED" | "TIMED_OUT")
2624
+ def status_reason: () -> Types::StatusReason
2625
+ def result: () -> ::Hash[::String, Types::CommandExecutionResult]
2626
+ def parameters: () -> ::Hash[::String, Types::CommandParameterValue]
2627
+ def execution_timeout_seconds: () -> ::Integer
2628
+ def created_at: () -> ::Time
2629
+ def last_updated_at: () -> ::Time
2630
+ def started_at: () -> ::Time
2631
+ def completed_at: () -> ::Time
2632
+ def time_to_live: () -> ::Time
2633
+ end
2634
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#get_command_execution-instance_method
2635
+ def get_command_execution: (
2636
+ execution_id: ::String,
2637
+ target_arn: ::String,
2638
+ ?include_result: bool
2639
+ ) -> _GetCommandExecutionResponseSuccess
2640
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCommandExecutionResponseSuccess
2641
+
2528
2642
  interface _GetEffectivePoliciesResponseSuccess
2529
2643
  include ::Seahorse::Client::_ResponseSuccess[Types::GetEffectivePoliciesResponse]
2530
2644
  def effective_policies: () -> ::Array[Types::EffectivePolicy]
@@ -2955,6 +3069,46 @@ module Aws
2955
3069
  ) -> _ListCertificatesByCAResponseSuccess
2956
3070
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCertificatesByCAResponseSuccess
2957
3071
 
3072
+ interface _ListCommandExecutionsResponseSuccess
3073
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCommandExecutionsResponse]
3074
+ def command_executions: () -> ::Array[Types::CommandExecutionSummary]
3075
+ def next_token: () -> ::String
3076
+ end
3077
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#list_command_executions-instance_method
3078
+ def list_command_executions: (
3079
+ ?max_results: ::Integer,
3080
+ ?next_token: ::String,
3081
+ ?namespace: ("AWS-IoT" | "AWS-IoT-FleetWise"),
3082
+ ?status: ("CREATED" | "IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "REJECTED" | "TIMED_OUT"),
3083
+ ?sort_order: ("ASCENDING" | "DESCENDING"),
3084
+ ?started_time_filter: {
3085
+ after: ::String?,
3086
+ before: ::String?
3087
+ },
3088
+ ?completed_time_filter: {
3089
+ after: ::String?,
3090
+ before: ::String?
3091
+ },
3092
+ ?target_arn: ::String,
3093
+ ?command_arn: ::String
3094
+ ) -> _ListCommandExecutionsResponseSuccess
3095
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCommandExecutionsResponseSuccess
3096
+
3097
+ interface _ListCommandsResponseSuccess
3098
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListCommandsResponse]
3099
+ def commands: () -> ::Array[Types::CommandSummary]
3100
+ def next_token: () -> ::String
3101
+ end
3102
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#list_commands-instance_method
3103
+ def list_commands: (
3104
+ ?max_results: ::Integer,
3105
+ ?next_token: ::String,
3106
+ ?namespace: ("AWS-IoT" | "AWS-IoT-FleetWise"),
3107
+ ?command_parameter_name: ::String,
3108
+ ?sort_order: ("ASCENDING" | "DESCENDING")
3109
+ ) -> _ListCommandsResponseSuccess
3110
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCommandsResponseSuccess
3111
+
2958
3112
  interface _ListCustomMetricsResponseSuccess
2959
3113
  include ::Seahorse::Client::_ResponseSuccess[Types::ListCustomMetricsResponse]
2960
3114
  def metric_names: () -> ::Array[::String]
@@ -4492,6 +4646,23 @@ module Aws
4492
4646
  ) -> _UpdateCertificateProviderResponseSuccess
4493
4647
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCertificateProviderResponseSuccess
4494
4648
 
4649
+ interface _UpdateCommandResponseSuccess
4650
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCommandResponse]
4651
+ def command_id: () -> ::String
4652
+ def display_name: () -> ::String
4653
+ def description: () -> ::String
4654
+ def deprecated: () -> bool
4655
+ def last_updated_at: () -> ::Time
4656
+ end
4657
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/IoT/Client.html#update_command-instance_method
4658
+ def update_command: (
4659
+ command_id: ::String,
4660
+ ?display_name: ::String,
4661
+ ?description: ::String,
4662
+ ?deprecated: bool
4663
+ ) -> _UpdateCommandResponseSuccess
4664
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateCommandResponseSuccess
4665
+
4495
4666
  interface _UpdateCustomMetricResponseSuccess
4496
4667
  include ::Seahorse::Client::_ResponseSuccess[Types::UpdateCustomMetricResponse]
4497
4668
  def metric_name: () -> ::String
data/sig/types.rbs CHANGED
@@ -604,6 +604,60 @@ module Aws::IoT
604
604
  SENSITIVE: []
605
605
  end
606
606
 
607
+ class CommandExecutionResult
608
+ attr_accessor s: ::String
609
+ attr_accessor b: bool
610
+ attr_accessor bin: ::String
611
+ SENSITIVE: []
612
+ end
613
+
614
+ class CommandExecutionSummary
615
+ attr_accessor command_arn: ::String
616
+ attr_accessor execution_id: ::String
617
+ attr_accessor target_arn: ::String
618
+ attr_accessor status: ("CREATED" | "IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "REJECTED" | "TIMED_OUT")
619
+ attr_accessor created_at: ::Time
620
+ attr_accessor started_at: ::Time
621
+ attr_accessor completed_at: ::Time
622
+ SENSITIVE: []
623
+ end
624
+
625
+ class CommandParameter
626
+ attr_accessor name: ::String
627
+ attr_accessor value: Types::CommandParameterValue
628
+ attr_accessor default_value: Types::CommandParameterValue
629
+ attr_accessor description: ::String
630
+ SENSITIVE: []
631
+ end
632
+
633
+ class CommandParameterValue
634
+ attr_accessor s: ::String
635
+ attr_accessor b: bool
636
+ attr_accessor i: ::Integer
637
+ attr_accessor l: ::Integer
638
+ attr_accessor d: ::Float
639
+ attr_accessor bin: ::String
640
+ attr_accessor ul: ::String
641
+ SENSITIVE: []
642
+ end
643
+
644
+ class CommandPayload
645
+ attr_accessor content: ::String
646
+ attr_accessor content_type: ::String
647
+ SENSITIVE: []
648
+ end
649
+
650
+ class CommandSummary
651
+ attr_accessor command_arn: ::String
652
+ attr_accessor command_id: ::String
653
+ attr_accessor display_name: ::String
654
+ attr_accessor deprecated: bool
655
+ attr_accessor created_at: ::Time
656
+ attr_accessor last_updated_at: ::Time
657
+ attr_accessor pending_deletion: bool
658
+ SENSITIVE: []
659
+ end
660
+
607
661
  class Configuration
608
662
  attr_accessor enabled: bool
609
663
  SENSITIVE: []
@@ -701,6 +755,24 @@ module Aws::IoT
701
755
  SENSITIVE: []
702
756
  end
703
757
 
758
+ class CreateCommandRequest
759
+ attr_accessor command_id: ::String
760
+ attr_accessor namespace: ("AWS-IoT" | "AWS-IoT-FleetWise")
761
+ attr_accessor display_name: ::String
762
+ attr_accessor description: ::String
763
+ attr_accessor payload: Types::CommandPayload
764
+ attr_accessor mandatory_parameters: ::Array[Types::CommandParameter]
765
+ attr_accessor role_arn: ::String
766
+ attr_accessor tags: ::Array[Types::Tag]
767
+ SENSITIVE: []
768
+ end
769
+
770
+ class CreateCommandResponse
771
+ attr_accessor command_id: ::String
772
+ attr_accessor command_arn: ::String
773
+ SENSITIVE: []
774
+ end
775
+
704
776
  class CreateCustomMetricRequest
705
777
  attr_accessor metric_name: ::String
706
778
  attr_accessor display_name: ::String
@@ -1201,6 +1273,25 @@ module Aws::IoT
1201
1273
  SENSITIVE: []
1202
1274
  end
1203
1275
 
1276
+ class DeleteCommandExecutionRequest
1277
+ attr_accessor execution_id: ::String
1278
+ attr_accessor target_arn: ::String
1279
+ SENSITIVE: []
1280
+ end
1281
+
1282
+ class DeleteCommandExecutionResponse < Aws::EmptyStructure
1283
+ end
1284
+
1285
+ class DeleteCommandRequest
1286
+ attr_accessor command_id: ::String
1287
+ SENSITIVE: []
1288
+ end
1289
+
1290
+ class DeleteCommandResponse
1291
+ attr_accessor status_code: ::Integer
1292
+ SENSITIVE: []
1293
+ end
1294
+
1204
1295
  class DeleteConflictException
1205
1296
  attr_accessor message: ::String
1206
1297
  SENSITIVE: []
@@ -2167,6 +2258,51 @@ module Aws::IoT
2167
2258
  SENSITIVE: []
2168
2259
  end
2169
2260
 
2261
+ class GetCommandExecutionRequest
2262
+ attr_accessor execution_id: ::String
2263
+ attr_accessor target_arn: ::String
2264
+ attr_accessor include_result: bool
2265
+ SENSITIVE: []
2266
+ end
2267
+
2268
+ class GetCommandExecutionResponse
2269
+ attr_accessor execution_id: ::String
2270
+ attr_accessor command_arn: ::String
2271
+ attr_accessor target_arn: ::String
2272
+ attr_accessor status: ("CREATED" | "IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "REJECTED" | "TIMED_OUT")
2273
+ attr_accessor status_reason: Types::StatusReason
2274
+ attr_accessor result: ::Hash[::String, Types::CommandExecutionResult]
2275
+ attr_accessor parameters: ::Hash[::String, Types::CommandParameterValue]
2276
+ attr_accessor execution_timeout_seconds: ::Integer
2277
+ attr_accessor created_at: ::Time
2278
+ attr_accessor last_updated_at: ::Time
2279
+ attr_accessor started_at: ::Time
2280
+ attr_accessor completed_at: ::Time
2281
+ attr_accessor time_to_live: ::Time
2282
+ SENSITIVE: []
2283
+ end
2284
+
2285
+ class GetCommandRequest
2286
+ attr_accessor command_id: ::String
2287
+ SENSITIVE: []
2288
+ end
2289
+
2290
+ class GetCommandResponse
2291
+ attr_accessor command_id: ::String
2292
+ attr_accessor command_arn: ::String
2293
+ attr_accessor namespace: ("AWS-IoT" | "AWS-IoT-FleetWise")
2294
+ attr_accessor display_name: ::String
2295
+ attr_accessor description: ::String
2296
+ attr_accessor mandatory_parameters: ::Array[Types::CommandParameter]
2297
+ attr_accessor payload: Types::CommandPayload
2298
+ attr_accessor role_arn: ::String
2299
+ attr_accessor created_at: ::Time
2300
+ attr_accessor last_updated_at: ::Time
2301
+ attr_accessor deprecated: bool
2302
+ attr_accessor pending_deletion: bool
2303
+ SENSITIVE: []
2304
+ end
2305
+
2170
2306
  class GetEffectivePoliciesRequest
2171
2307
  attr_accessor principal: ::String
2172
2308
  attr_accessor cognito_identity_pool_id: ::String
@@ -2842,6 +2978,40 @@ module Aws::IoT
2842
2978
  SENSITIVE: []
2843
2979
  end
2844
2980
 
2981
+ class ListCommandExecutionsRequest
2982
+ attr_accessor max_results: ::Integer
2983
+ attr_accessor next_token: ::String
2984
+ attr_accessor namespace: ("AWS-IoT" | "AWS-IoT-FleetWise")
2985
+ attr_accessor status: ("CREATED" | "IN_PROGRESS" | "SUCCEEDED" | "FAILED" | "REJECTED" | "TIMED_OUT")
2986
+ attr_accessor sort_order: ("ASCENDING" | "DESCENDING")
2987
+ attr_accessor started_time_filter: Types::TimeFilter
2988
+ attr_accessor completed_time_filter: Types::TimeFilter
2989
+ attr_accessor target_arn: ::String
2990
+ attr_accessor command_arn: ::String
2991
+ SENSITIVE: []
2992
+ end
2993
+
2994
+ class ListCommandExecutionsResponse
2995
+ attr_accessor command_executions: ::Array[Types::CommandExecutionSummary]
2996
+ attr_accessor next_token: ::String
2997
+ SENSITIVE: []
2998
+ end
2999
+
3000
+ class ListCommandsRequest
3001
+ attr_accessor max_results: ::Integer
3002
+ attr_accessor next_token: ::String
3003
+ attr_accessor namespace: ("AWS-IoT" | "AWS-IoT-FleetWise")
3004
+ attr_accessor command_parameter_name: ::String
3005
+ attr_accessor sort_order: ("ASCENDING" | "DESCENDING")
3006
+ SENSITIVE: []
3007
+ end
3008
+
3009
+ class ListCommandsResponse
3010
+ attr_accessor commands: ::Array[Types::CommandSummary]
3011
+ attr_accessor next_token: ::String
3012
+ SENSITIVE: []
3013
+ end
3014
+
2845
3015
  class ListCustomMetricsRequest
2846
3016
  attr_accessor next_token: ::String
2847
3017
  attr_accessor max_results: ::Integer
@@ -4287,6 +4457,12 @@ module Aws::IoT
4287
4457
  SENSITIVE: []
4288
4458
  end
4289
4459
 
4460
+ class StatusReason
4461
+ attr_accessor reason_code: ::String
4462
+ attr_accessor reason_description: ::String
4463
+ SENSITIVE: []
4464
+ end
4465
+
4290
4466
  class StepFunctionsAction
4291
4467
  attr_accessor execution_name_prefix: ::String
4292
4468
  attr_accessor state_machine_name: ::String
@@ -4514,6 +4690,12 @@ module Aws::IoT
4514
4690
  SENSITIVE: []
4515
4691
  end
4516
4692
 
4693
+ class TimeFilter
4694
+ attr_accessor after: ::String
4695
+ attr_accessor before: ::String
4696
+ SENSITIVE: []
4697
+ end
4698
+
4517
4699
  class TimeoutConfig
4518
4700
  attr_accessor in_progress_timeout_in_minutes: ::Integer
4519
4701
  SENSITIVE: []
@@ -4737,6 +4919,23 @@ module Aws::IoT
4737
4919
  SENSITIVE: []
4738
4920
  end
4739
4921
 
4922
+ class UpdateCommandRequest
4923
+ attr_accessor command_id: ::String
4924
+ attr_accessor display_name: ::String
4925
+ attr_accessor description: ::String
4926
+ attr_accessor deprecated: bool
4927
+ SENSITIVE: []
4928
+ end
4929
+
4930
+ class UpdateCommandResponse
4931
+ attr_accessor command_id: ::String
4932
+ attr_accessor display_name: ::String
4933
+ attr_accessor description: ::String
4934
+ attr_accessor deprecated: bool
4935
+ attr_accessor last_updated_at: ::Time
4936
+ SENSITIVE: []
4937
+ end
4938
+
4740
4939
  class UpdateCustomMetricRequest
4741
4940
  attr_accessor metric_name: ::String
4742
4941
  attr_accessor display_name: ::String
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.139.0
4
+ version: 1.140.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-15 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core