aws-sdk-iot 1.27.0 → 1.28.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
  SHA1:
3
- metadata.gz: efdd153930e54bae43e1eeaa0d90cc519bbeb765
4
- data.tar.gz: 4db4e822cd8f6ad6df18405abd7b641d4197d7dc
3
+ metadata.gz: 073b8d33a7af1864dc147256d09aacd565d0cc54
4
+ data.tar.gz: e65dffb408fd522f5edadbf9f557275811b3a665
5
5
  SHA512:
6
- metadata.gz: af8df7b0eee14ac837ae1e8a4fc80ac3948cda8a9a2d7fbf017aff1758024ab5f19fdae3fb884051f05bf6f30a3d75451a0cf033d2a51065727fb926c8ca08ee
7
- data.tar.gz: 720f953d9ee44b17487c63aab96f5dff4c17e43f2d78758731907deccf0020250856503a7c3220d14cfacc3d9d6e78cd29a93af96d1c49a9eb716898b1376b50
6
+ metadata.gz: 7c6ea0273873890a70eb87f5bd3d2b48ec4fec650ed27cd99d97857aa135cab40eda18b442df6e9a897aa74a2251d28f675f5175e9d772d37c0f274219ecaa42
7
+ data.tar.gz: 5c9af5e3b0b7b491055e920ebeb83ddf0ff8c6d4cef6a3f241632e3b86c89ca061b85ff2d9c17efbcf7bc90da1f7625ae0473c12176804ed41654f7c5c472b79
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-iot/customizations'
42
42
  # @service
43
43
  module Aws::IoT
44
44
 
45
- GEM_VERSION = '1.27.0'
45
+ GEM_VERSION = '1.28.0'
46
46
 
47
47
  end
@@ -1523,7 +1523,10 @@ module Aws::IoT
1523
1523
  req.send_request(options)
1524
1524
  end
1525
1525
 
1526
- # Creates a thing record in the registry.
1526
+ # Creates a thing record in the registry. If this call is made multiple
1527
+ # times using the same thing name and configuration, the call will
1528
+ # succeed. If this call is made with the same thing name but different
1529
+ # configuration a `ResourceAlreadyExistsException` is thrown.
1527
1530
  #
1528
1531
  # <note markdown="1"> This is a control plane operation. See [Authorization][1] for
1529
1532
  # information about authorizing control plane actions.
@@ -3729,6 +3732,45 @@ module Aws::IoT
3729
3732
  req.send_request(options)
3730
3733
  end
3731
3734
 
3735
+ # Gets statistics about things that match the specified query.
3736
+ #
3737
+ # @option params [String] :index_name
3738
+ # The name of the index to search. The default value is `AWS_Things`.
3739
+ #
3740
+ # @option params [required, String] :query_string
3741
+ # The query used to search. You can specify "*" for the query string
3742
+ # to get the count of all indexed things in your AWS account.
3743
+ #
3744
+ # @option params [String] :aggregation_field
3745
+ # The aggregation field name. Currently not supported.
3746
+ #
3747
+ # @option params [String] :query_version
3748
+ # The version of the query used to search.
3749
+ #
3750
+ # @return [Types::GetStatisticsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3751
+ #
3752
+ # * {Types::GetStatisticsResponse#statistics #statistics} => Types::Statistics
3753
+ #
3754
+ # @example Request syntax with placeholder values
3755
+ #
3756
+ # resp = client.get_statistics({
3757
+ # index_name: "IndexName",
3758
+ # query_string: "QueryString", # required
3759
+ # aggregation_field: "AggregationField",
3760
+ # query_version: "QueryVersion",
3761
+ # })
3762
+ #
3763
+ # @example Response structure
3764
+ #
3765
+ # resp.statistics.count #=> Integer
3766
+ #
3767
+ # @overload get_statistics(params = {})
3768
+ # @param [Hash] params ({})
3769
+ def get_statistics(params = {}, options = {})
3770
+ req = build_request(:get_statistics, params)
3771
+ req.send_request(options)
3772
+ end
3773
+
3732
3774
  # Gets information about the rule.
3733
3775
  #
3734
3776
  # @option params [required, String] :rule_name
@@ -4377,8 +4419,8 @@ module Aws::IoT
4377
4419
  # Lists the search indices.
4378
4420
  #
4379
4421
  # @option params [String] :next_token
4380
- # The token used to get the next set of results, or **null** if there
4381
- # are no additional results.
4422
+ # The token used to get the next set of results, or null if there are no
4423
+ # additional results.
4382
4424
  #
4383
4425
  # @option params [Integer] :max_results
4384
4426
  # The maximum number of results to return at one time.
@@ -5758,7 +5800,7 @@ module Aws::IoT
5758
5800
  # registered.
5759
5801
  #
5760
5802
  # @option params [Boolean] :set_as_active
5761
- # A boolean value that specifies if the CA certificate is set to active.
5803
+ # A boolean value that specifies if the certificate is set to active.
5762
5804
  #
5763
5805
  # @option params [String] :status
5764
5806
  # The status of the register certificate request.
@@ -6161,8 +6203,8 @@ module Aws::IoT
6161
6203
  # The search query string.
6162
6204
  #
6163
6205
  # @option params [String] :next_token
6164
- # The token used to get the next set of results, or **null** if there
6165
- # are no additional results.
6206
+ # The token used to get the next set of results, or null if there are no
6207
+ # additional results.
6166
6208
  #
6167
6209
  # @option params [Integer] :max_results
6168
6210
  # The maximum number of results to return at one time.
@@ -7529,7 +7571,7 @@ module Aws::IoT
7529
7571
  params: params,
7530
7572
  config: config)
7531
7573
  context[:gem_name] = 'aws-sdk-iot'
7532
- context[:gem_version] = '1.27.0'
7574
+ context[:gem_version] = '1.28.0'
7533
7575
  Seahorse::Client::Request.new(handlers, context)
7534
7576
  end
7535
7577
 
@@ -28,6 +28,7 @@ module Aws::IoT
28
28
  AddThingToThingGroupResponse = Shapes::StructureShape.new(name: 'AddThingToThingGroupResponse')
29
29
  AdditionalMetricsToRetainList = Shapes::ListShape.new(name: 'AdditionalMetricsToRetainList')
30
30
  AdditionalParameterMap = Shapes::MapShape.new(name: 'AdditionalParameterMap')
31
+ AggregationField = Shapes::StringShape.new(name: 'AggregationField')
31
32
  AlarmName = Shapes::StringShape.new(name: 'AlarmName')
32
33
  AlertTarget = Shapes::StructureShape.new(name: 'AlertTarget')
33
34
  AlertTargetArn = Shapes::StringShape.new(name: 'AlertTargetArn')
@@ -352,6 +353,8 @@ module Aws::IoT
352
353
  GetPolicyVersionResponse = Shapes::StructureShape.new(name: 'GetPolicyVersionResponse')
353
354
  GetRegistrationCodeRequest = Shapes::StructureShape.new(name: 'GetRegistrationCodeRequest')
354
355
  GetRegistrationCodeResponse = Shapes::StructureShape.new(name: 'GetRegistrationCodeResponse')
356
+ GetStatisticsRequest = Shapes::StructureShape.new(name: 'GetStatisticsRequest')
357
+ GetStatisticsResponse = Shapes::StructureShape.new(name: 'GetStatisticsResponse')
355
358
  GetTopicRuleRequest = Shapes::StructureShape.new(name: 'GetTopicRuleRequest')
356
359
  GetTopicRuleResponse = Shapes::StructureShape.new(name: 'GetTopicRuleResponse')
357
360
  GetV2LoggingOptionsRequest = Shapes::StructureShape.new(name: 'GetV2LoggingOptionsRequest')
@@ -374,6 +377,7 @@ module Aws::IoT
374
377
  InputName = Shapes::StringShape.new(name: 'InputName')
375
378
  InternalException = Shapes::StructureShape.new(name: 'InternalException')
376
379
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
380
+ InvalidAggregationException = Shapes::StructureShape.new(name: 'InvalidAggregationException')
377
381
  InvalidQueryException = Shapes::StructureShape.new(name: 'InvalidQueryException')
378
382
  InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
379
383
  InvalidResponseException = Shapes::StructureShape.new(name: 'InvalidResponseException')
@@ -683,6 +687,7 @@ module Aws::IoT
683
687
  StateReason = Shapes::StringShape.new(name: 'StateReason')
684
688
  StateValue = Shapes::StringShape.new(name: 'StateValue')
685
689
  StatisticalThreshold = Shapes::StructureShape.new(name: 'StatisticalThreshold')
690
+ Statistics = Shapes::StructureShape.new(name: 'Statistics')
686
691
  Status = Shapes::StringShape.new(name: 'Status')
687
692
  StepFunctionsAction = Shapes::StructureShape.new(name: 'StepFunctionsAction')
688
693
  StopThingRegistrationTaskRequest = Shapes::StructureShape.new(name: 'StopThingRegistrationTaskRequest')
@@ -1804,6 +1809,15 @@ module Aws::IoT
1804
1809
  GetRegistrationCodeResponse.add_member(:registration_code, Shapes::ShapeRef.new(shape: RegistrationCode, location_name: "registrationCode"))
1805
1810
  GetRegistrationCodeResponse.struct_class = Types::GetRegistrationCodeResponse
1806
1811
 
1812
+ GetStatisticsRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "indexName"))
1813
+ GetStatisticsRequest.add_member(:query_string, Shapes::ShapeRef.new(shape: QueryString, required: true, location_name: "queryString"))
1814
+ GetStatisticsRequest.add_member(:aggregation_field, Shapes::ShapeRef.new(shape: AggregationField, location_name: "aggregationField"))
1815
+ GetStatisticsRequest.add_member(:query_version, Shapes::ShapeRef.new(shape: QueryVersion, location_name: "queryVersion"))
1816
+ GetStatisticsRequest.struct_class = Types::GetStatisticsRequest
1817
+
1818
+ GetStatisticsResponse.add_member(:statistics, Shapes::ShapeRef.new(shape: Statistics, location_name: "statistics"))
1819
+ GetStatisticsResponse.struct_class = Types::GetStatisticsResponse
1820
+
1807
1821
  GetTopicRuleRequest.add_member(:rule_name, Shapes::ShapeRef.new(shape: RuleName, required: true, location: "uri", location_name: "ruleName"))
1808
1822
  GetTopicRuleRequest.struct_class = Types::GetTopicRuleRequest
1809
1823
 
@@ -2644,6 +2658,9 @@ module Aws::IoT
2644
2658
  StatisticalThreshold.add_member(:statistic, Shapes::ShapeRef.new(shape: EvaluationStatistic, location_name: "statistic"))
2645
2659
  StatisticalThreshold.struct_class = Types::StatisticalThreshold
2646
2660
 
2661
+ Statistics.add_member(:count, Shapes::ShapeRef.new(shape: Count, location_name: "count"))
2662
+ Statistics.struct_class = Types::Statistics
2663
+
2647
2664
  StepFunctionsAction.add_member(:execution_name_prefix, Shapes::ShapeRef.new(shape: ExecutionNamePrefix, location_name: "executionNamePrefix"))
2648
2665
  StepFunctionsAction.add_member(:state_machine_name, Shapes::ShapeRef.new(shape: StateMachineName, required: true, location_name: "stateMachineName"))
2649
2666
  StepFunctionsAction.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, required: true, location_name: "roleArn"))
@@ -4206,6 +4223,23 @@ module Aws::IoT
4206
4223
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
4207
4224
  end)
4208
4225
 
4226
+ api.add_operation(:get_statistics, Seahorse::Model::Operation.new.tap do |o|
4227
+ o.name = "GetStatistics"
4228
+ o.http_method = "POST"
4229
+ o.http_request_uri = "/indices/statistics"
4230
+ o.input = Shapes::ShapeRef.new(shape: GetStatisticsRequest)
4231
+ o.output = Shapes::ShapeRef.new(shape: GetStatisticsResponse)
4232
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
4233
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
4234
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
4235
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
4236
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
4237
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
4238
+ o.errors << Shapes::ShapeRef.new(shape: InvalidQueryException)
4239
+ o.errors << Shapes::ShapeRef.new(shape: InvalidAggregationException)
4240
+ o.errors << Shapes::ShapeRef.new(shape: IndexNotReadyException)
4241
+ end)
4242
+
4209
4243
  api.add_operation(:get_topic_rule, Seahorse::Model::Operation.new.tap do |o|
4210
4244
  o.name = "GetTopicRule"
4211
4245
  o.http_method = "GET"
@@ -4039,17 +4039,17 @@ module Aws::IoT
4039
4039
  # Contains a value that specifies the type of indexing performed.
4040
4040
  # Valid values are:
4041
4041
  #
4042
- # * REGISTRY – Your thing index will contain only registry data.
4042
+ # * REGISTRY – Your thing index contains only registry data.
4043
4043
  #
4044
- # * REGISTRY\_AND\_SHADOW - Your thing index will contain registry
4045
- # data and shadow data.
4044
+ # * REGISTRY\_AND\_SHADOW - Your thing index contains registry data
4045
+ # and shadow data.
4046
4046
  #
4047
- # * REGISTRY\_AND\_CONNECTIVITY\_STATUS - Your thing index will
4048
- # contain registry data and thing connectivity status data.
4047
+ # * REGISTRY\_AND\_CONNECTIVITY\_STATUS - Your thing index contains
4048
+ # registry data and thing connectivity status data.
4049
4049
  #
4050
4050
  # * REGISTRY\_AND\_SHADOW\_AND\_CONNECTIVITY\_STATUS - Your thing
4051
- # index will contain registry data, shadow data, and thing
4052
- # connectivity status data.
4051
+ # index contains registry data, shadow data, and thing connectivity
4052
+ # status data.
4053
4053
  # @return [String]
4054
4054
  #
4055
4055
  class DescribeIndexResponse < Struct.new(
@@ -5339,6 +5339,51 @@ module Aws::IoT
5339
5339
  include Aws::Structure
5340
5340
  end
5341
5341
 
5342
+ # @note When making an API call, you may pass GetStatisticsRequest
5343
+ # data as a hash:
5344
+ #
5345
+ # {
5346
+ # index_name: "IndexName",
5347
+ # query_string: "QueryString", # required
5348
+ # aggregation_field: "AggregationField",
5349
+ # query_version: "QueryVersion",
5350
+ # }
5351
+ #
5352
+ # @!attribute [rw] index_name
5353
+ # The name of the index to search. The default value is `AWS_Things`.
5354
+ # @return [String]
5355
+ #
5356
+ # @!attribute [rw] query_string
5357
+ # The query used to search. You can specify "*" for the query
5358
+ # string to get the count of all indexed things in your AWS account.
5359
+ # @return [String]
5360
+ #
5361
+ # @!attribute [rw] aggregation_field
5362
+ # The aggregation field name. Currently not supported.
5363
+ # @return [String]
5364
+ #
5365
+ # @!attribute [rw] query_version
5366
+ # The version of the query used to search.
5367
+ # @return [String]
5368
+ #
5369
+ class GetStatisticsRequest < Struct.new(
5370
+ :index_name,
5371
+ :query_string,
5372
+ :aggregation_field,
5373
+ :query_version)
5374
+ include Aws::Structure
5375
+ end
5376
+
5377
+ # @!attribute [rw] statistics
5378
+ # The statistics returned by the Fleet Indexing service based on the
5379
+ # query and aggregation field.
5380
+ # @return [Types::Statistics]
5381
+ #
5382
+ class GetStatisticsResponse < Struct.new(
5383
+ :statistics)
5384
+ include Aws::Structure
5385
+ end
5386
+
5342
5387
  # The input for the GetTopicRule operation.
5343
5388
  #
5344
5389
  # @note When making an API call, you may pass GetTopicRuleRequest
@@ -6462,8 +6507,8 @@ module Aws::IoT
6462
6507
  # }
6463
6508
  #
6464
6509
  # @!attribute [rw] next_token
6465
- # The token used to get the next set of results, or **null** if there
6466
- # are no additional results.
6510
+ # The token used to get the next set of results, or null if there are
6511
+ # no additional results.
6467
6512
  # @return [String]
6468
6513
  #
6469
6514
  # @!attribute [rw] max_results
@@ -6481,8 +6526,8 @@ module Aws::IoT
6481
6526
  # @return [Array<String>]
6482
6527
  #
6483
6528
  # @!attribute [rw] next_token
6484
- # The token used to get the next set of results, or **null** if there
6485
- # are no additional results.
6529
+ # The token used to get the next set of results, or null if there are
6530
+ # no additional results.
6486
6531
  # @return [String]
6487
6532
  #
6488
6533
  class ListIndicesResponse < Struct.new(
@@ -8458,8 +8503,7 @@ module Aws::IoT
8458
8503
  # @return [String]
8459
8504
  #
8460
8505
  # @!attribute [rw] set_as_active
8461
- # A boolean value that specifies if the CA certificate is set to
8462
- # active.
8506
+ # A boolean value that specifies if the certificate is set to active.
8463
8507
  # @return [Boolean]
8464
8508
  #
8465
8509
  # @!attribute [rw] status
@@ -9193,8 +9237,8 @@ module Aws::IoT
9193
9237
  # @return [String]
9194
9238
  #
9195
9239
  # @!attribute [rw] next_token
9196
- # The token used to get the next set of results, or **null** if there
9197
- # are no additional results.
9240
+ # The token used to get the next set of results, or null if there are
9241
+ # no additional results.
9198
9242
  # @return [String]
9199
9243
  #
9200
9244
  # @!attribute [rw] max_results
@@ -9215,8 +9259,8 @@ module Aws::IoT
9215
9259
  end
9216
9260
 
9217
9261
  # @!attribute [rw] next_token
9218
- # The token used to get the next set of results, or **null** if there
9219
- # are no additional results.
9262
+ # The token used to get the next set of results, or null if there are
9263
+ # no additional results.
9220
9264
  # @return [String]
9221
9265
  #
9222
9266
  # @!attribute [rw] things
@@ -9650,6 +9694,18 @@ module Aws::IoT
9650
9694
  include Aws::Structure
9651
9695
  end
9652
9696
 
9697
+ # A map of key-value pairs for all supported statistics. Currently, only
9698
+ # count is supported.
9699
+ #
9700
+ # @!attribute [rw] count
9701
+ # The count of things that match the query.
9702
+ # @return [Integer]
9703
+ #
9704
+ class Statistics < Struct.new(
9705
+ :count)
9706
+ include Aws::Structure
9707
+ end
9708
+
9653
9709
  # Starts execution of a Step Functions state machine.
9654
9710
  #
9655
9711
  # @note When making an API call, you may pass StepFunctionsAction
@@ -10081,14 +10137,14 @@ module Aws::IoT
10081
10137
  # The connectivity status of the thing.
10082
10138
  #
10083
10139
  # @!attribute [rw] connected
10084
- # True if the thing is connected to the AWS IoT service, false if it
10140
+ # True if the thing is connected to the AWS IoT service; false if it
10085
10141
  # is not connected.
10086
10142
  # @return [Boolean]
10087
10143
  #
10088
10144
  # @!attribute [rw] timestamp
10089
10145
  # The epoch time (in milliseconds) when the thing last connected or
10090
- # disconnected. Note that if the thing has been disconnected for more
10091
- # than a few weeks, the time value can be missing.
10146
+ # disconnected. If the thing has been disconnected for more than a few
10147
+ # weeks, the time value might be missing.
10092
10148
  # @return [Integer]
10093
10149
  #
10094
10150
  class ThingConnectivity < Struct.new(
@@ -10124,8 +10180,7 @@ module Aws::IoT
10124
10180
  # @return [String]
10125
10181
  #
10126
10182
  # @!attribute [rw] connectivity
10127
- # Indicates whether or not the thing is connected to the AWS IoT
10128
- # service.
10183
+ # Indicates whether the thing is connected to the AWS IoT service.
10129
10184
  # @return [Types::ThingConnectivity]
10130
10185
  #
10131
10186
  class ThingDocument < Struct.new(
@@ -10256,9 +10311,9 @@ module Aws::IoT
10256
10311
  # @!attribute [rw] thing_indexing_mode
10257
10312
  # Thing indexing mode. Valid values are:
10258
10313
  #
10259
- # * REGISTRY – Your thing index will contain only registry data.
10314
+ # * REGISTRY – Your thing index contains registry data only.
10260
10315
  #
10261
- # * REGISTRY\_AND\_SHADOW - Your thing index will contain registry and
10316
+ # * REGISTRY\_AND\_SHADOW - Your thing index contains registry and
10262
10317
  # shadow data.
10263
10318
  #
10264
10319
  # * OFF - Thing indexing is disabled.
@@ -10267,9 +10322,9 @@ module Aws::IoT
10267
10322
  # @!attribute [rw] thing_connectivity_indexing_mode
10268
10323
  # Thing connectivity indexing mode. Valid values are:
10269
10324
  #
10270
- # * STATUS – Your thing index will contain connectivity status. In
10271
- # order to enable thing connectivity indexing, thingIndexMode must
10272
- # not be set to OFF.
10325
+ # * STATUS – Your thing index contains connectivity status. To enable
10326
+ # thing connectivity indexing, thingIndexMode must not be set to
10327
+ # OFF.
10273
10328
  #
10274
10329
  # * OFF - Thing connectivity status indexing is disabled.
10275
10330
  # @return [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.27.0
4
+ version: 1.28.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: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core