aws-sdk-iot 1.39.0 → 1.40.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
  SHA1:
3
- metadata.gz: b48cacc2e154ba0af2840a52c76829aa636d4b04
4
- data.tar.gz: d8da743c0bc8af4ac878d07c43e4df973e46d06e
3
+ metadata.gz: 032c88a4f05b0468f6d51621d93a4a83be5c68f0
4
+ data.tar.gz: 465c22b4863c0663c6e98c0eeb5bd345e165c58c
5
5
  SHA512:
6
- metadata.gz: d71b58a216142f1a3fdf7766bf3ab0ae7ee9dff11cf95d299821535b40aa9facbaf397feb8f7d09e06cccb31cbd6674f30b49fe7de0d6adc0cbcc4baa523239a
7
- data.tar.gz: 792618c989b0532439a35baf37cbf257af037fa61b651dc03aa05d30c3bf25c1489c614bc74dfa3ac0ada24ea9d8a310a49e513ca5d68e1fd1d529db48d9af46
6
+ metadata.gz: 47d0995e1136cfb8af53dbd72e448004d91e8b4fbd07594052807f3d5b0f192b3707c3050dcfa4b559418e817f0874748434bebe3bd01c75a875084880ada9fb
7
+ data.tar.gz: abad231a86b4493bbee2f3f80e3dd0f2161deccf64fb03caef345d09e0f53cea1f2954edae8f9a2ec963ec08e60a5c99a9c1d69636cd73d313ddedf2137d1ea1
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-iot/customizations'
42
42
  # @service
43
43
  module Aws::IoT
44
44
 
45
- GEM_VERSION = '1.39.0'
45
+ GEM_VERSION = '1.40.0'
46
46
 
47
47
  end
@@ -702,6 +702,31 @@ module Aws::IoT
702
702
  req.send_request(options)
703
703
  end
704
704
 
705
+ # Confirms a topic rule destination. When you create a rule requiring a
706
+ # destination, AWS IoT sends a confirmation message to the endpoint or
707
+ # base address you specify. The message includes a token which you pass
708
+ # back when calling `ConfirmTopicRuleDestination` to confirm that you
709
+ # own or have access to the endpoint.
710
+ #
711
+ # @option params [required, String] :confirmation_token
712
+ # The token used to confirm ownership or access to the topic rule
713
+ # confirmation URL.
714
+ #
715
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
716
+ #
717
+ # @example Request syntax with placeholder values
718
+ #
719
+ # resp = client.confirm_topic_rule_destination({
720
+ # confirmation_token: "ConfirmationToken", # required
721
+ # })
722
+ #
723
+ # @overload confirm_topic_rule_destination(params = {})
724
+ # @param [Hash] params ({})
725
+ def confirm_topic_rule_destination(params = {}, options = {})
726
+ req = build_request(:confirm_topic_rule_destination, params)
727
+ req.send_request(options)
728
+ end
729
+
705
730
  # Creates an authorizer.
706
731
  #
707
732
  # @option params [required, String] :authorizer_name
@@ -1960,6 +1985,23 @@ module Aws::IoT
1960
1985
  # state_machine_name: "StateMachineName", # required
1961
1986
  # role_arn: "AwsArn", # required
1962
1987
  # },
1988
+ # http: {
1989
+ # url: "Url", # required
1990
+ # confirmation_url: "Url",
1991
+ # headers: [
1992
+ # {
1993
+ # key: "HeaderKey", # required
1994
+ # value: "HeaderValue", # required
1995
+ # },
1996
+ # ],
1997
+ # auth: {
1998
+ # sigv4: {
1999
+ # signing_region: "SigningRegion", # required
2000
+ # service_name: "ServiceName", # required
2001
+ # role_arn: "AwsArn", # required
2002
+ # },
2003
+ # },
2004
+ # },
1963
2005
  # },
1964
2006
  # ],
1965
2007
  # rule_disabled: false,
@@ -2057,6 +2099,23 @@ module Aws::IoT
2057
2099
  # state_machine_name: "StateMachineName", # required
2058
2100
  # role_arn: "AwsArn", # required
2059
2101
  # },
2102
+ # http: {
2103
+ # url: "Url", # required
2104
+ # confirmation_url: "Url",
2105
+ # headers: [
2106
+ # {
2107
+ # key: "HeaderKey", # required
2108
+ # value: "HeaderValue", # required
2109
+ # },
2110
+ # ],
2111
+ # auth: {
2112
+ # sigv4: {
2113
+ # signing_region: "SigningRegion", # required
2114
+ # service_name: "ServiceName", # required
2115
+ # role_arn: "AwsArn", # required
2116
+ # },
2117
+ # },
2118
+ # },
2060
2119
  # },
2061
2120
  # },
2062
2121
  # tags: "String",
@@ -2069,6 +2128,40 @@ module Aws::IoT
2069
2128
  req.send_request(options)
2070
2129
  end
2071
2130
 
2131
+ # Creates a topic rule destination. The destination must be confirmed
2132
+ # prior to use.
2133
+ #
2134
+ # @option params [required, Types::TopicRuleDestinationConfiguration] :destination_configuration
2135
+ # The topic rule destination configuration.
2136
+ #
2137
+ # @return [Types::CreateTopicRuleDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2138
+ #
2139
+ # * {Types::CreateTopicRuleDestinationResponse#topic_rule_destination #topic_rule_destination} => Types::TopicRuleDestination
2140
+ #
2141
+ # @example Request syntax with placeholder values
2142
+ #
2143
+ # resp = client.create_topic_rule_destination({
2144
+ # destination_configuration: { # required
2145
+ # http_url_configuration: {
2146
+ # confirmation_url: "Url", # required
2147
+ # },
2148
+ # },
2149
+ # })
2150
+ #
2151
+ # @example Response structure
2152
+ #
2153
+ # resp.topic_rule_destination.arn #=> String
2154
+ # resp.topic_rule_destination.status #=> String, one of "ENABLED", "IN_PROGRESS", "DISABLED", "ERROR"
2155
+ # resp.topic_rule_destination.status_reason #=> String
2156
+ # resp.topic_rule_destination.http_url_properties.confirmation_url #=> String
2157
+ #
2158
+ # @overload create_topic_rule_destination(params = {})
2159
+ # @param [Hash] params ({})
2160
+ def create_topic_rule_destination(params = {}, options = {})
2161
+ req = build_request(:create_topic_rule_destination, params)
2162
+ req.send_request(options)
2163
+ end
2164
+
2072
2165
  # Restores the default settings for Device Defender audits for this
2073
2166
  # account. Any configuration data you entered is deleted and all audit
2074
2167
  # checks are reset to disabled.
@@ -2615,6 +2708,26 @@ module Aws::IoT
2615
2708
  req.send_request(options)
2616
2709
  end
2617
2710
 
2711
+ # Deletes a topic rule destination.
2712
+ #
2713
+ # @option params [required, String] :arn
2714
+ # The ARN of the topic rule destination to delete.
2715
+ #
2716
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2717
+ #
2718
+ # @example Request syntax with placeholder values
2719
+ #
2720
+ # resp = client.delete_topic_rule_destination({
2721
+ # arn: "AwsArn", # required
2722
+ # })
2723
+ #
2724
+ # @overload delete_topic_rule_destination(params = {})
2725
+ # @param [Hash] params ({})
2726
+ def delete_topic_rule_destination(params = {}, options = {})
2727
+ req = build_request(:delete_topic_rule_destination, params)
2728
+ req.send_request(options)
2729
+ end
2730
+
2618
2731
  # Deletes a logging level.
2619
2732
  #
2620
2733
  # @option params [required, String] :target_type
@@ -3791,8 +3904,7 @@ module Aws::IoT
3791
3904
  req.send_request(options)
3792
3905
  end
3793
3906
 
3794
- # Returns the number of things with distinct values for the aggregation
3795
- # field.
3907
+ # Returns the approximate count of unique values that match the query.
3796
3908
  #
3797
3909
  # @option params [String] :index_name
3798
3910
  # The name of the index to search.
@@ -4012,10 +4124,17 @@ module Aws::IoT
4012
4124
  req.send_request(options)
4013
4125
  end
4014
4126
 
4015
- # Returns the percentile values for the aggregation field. The results
4016
- # from GetPercentiles is an approximation. The default percentile
4017
- # groupings are: 1,5,25,50,75,95,99. You can specify custom percentile
4018
- # grouping using the percents argument to the GetPercentiles API.
4127
+ # Groups the aggregated values that match the query into percentile
4128
+ # groupings. The default percentile groupings are: 1,5,25,50,75,95,99,
4129
+ # although you can specify your own when you call `GetPercentiles`. This
4130
+ # function returns a value for each percentile group specified (or the
4131
+ # default percentile groupings). The percentile group "1" contains the
4132
+ # aggregated field value that occurs in approximately one percent of the
4133
+ # values that match the query. The percentile group "5" contains the
4134
+ # aggregated field value that occurs in approximately five percent of
4135
+ # the values that match the query, and so on. The result is an
4136
+ # approximation, the more values that match the query, the more accurate
4137
+ # the percentile values.
4019
4138
  #
4020
4139
  # @option params [String] :index_name
4021
4140
  # The name of the index to search.
@@ -4160,10 +4279,7 @@ module Aws::IoT
4160
4279
  req.send_request(options)
4161
4280
  end
4162
4281
 
4163
- # Gets statistics returns the count, average, sum, minimum, maximum,
4164
- # sumOfSquares, variance, and standard deviation for the specified
4165
- # aggregated field. If the aggregation field is of type String, only the
4166
- # count statistic is returned.
4282
+ # Gets statistics about things that match the specified query.
4167
4283
  #
4168
4284
  # @option params [String] :index_name
4169
4285
  # The name of the index to search. The default value is `AWS_Things`.
@@ -4173,7 +4289,7 @@ module Aws::IoT
4173
4289
  # to get the count of all indexed things in your AWS account.
4174
4290
  #
4175
4291
  # @option params [String] :aggregation_field
4176
- # The aggregation field name.
4292
+ # The aggregation field name. Currently not supported.
4177
4293
  #
4178
4294
  # @option params [String] :query_version
4179
4295
  # The version of the query used to search.
@@ -4291,6 +4407,14 @@ module Aws::IoT
4291
4407
  # resp.rule.actions[0].step_functions.execution_name_prefix #=> String
4292
4408
  # resp.rule.actions[0].step_functions.state_machine_name #=> String
4293
4409
  # resp.rule.actions[0].step_functions.role_arn #=> String
4410
+ # resp.rule.actions[0].http.url #=> String
4411
+ # resp.rule.actions[0].http.confirmation_url #=> String
4412
+ # resp.rule.actions[0].http.headers #=> Array
4413
+ # resp.rule.actions[0].http.headers[0].key #=> String
4414
+ # resp.rule.actions[0].http.headers[0].value #=> String
4415
+ # resp.rule.actions[0].http.auth.sigv4.signing_region #=> String
4416
+ # resp.rule.actions[0].http.auth.sigv4.service_name #=> String
4417
+ # resp.rule.actions[0].http.auth.sigv4.role_arn #=> String
4294
4418
  # resp.rule.rule_disabled #=> Boolean
4295
4419
  # resp.rule.aws_iot_sql_version #=> String
4296
4420
  # resp.rule.error_action.dynamo_db.table_name #=> String
@@ -4351,6 +4475,14 @@ module Aws::IoT
4351
4475
  # resp.rule.error_action.step_functions.execution_name_prefix #=> String
4352
4476
  # resp.rule.error_action.step_functions.state_machine_name #=> String
4353
4477
  # resp.rule.error_action.step_functions.role_arn #=> String
4478
+ # resp.rule.error_action.http.url #=> String
4479
+ # resp.rule.error_action.http.confirmation_url #=> String
4480
+ # resp.rule.error_action.http.headers #=> Array
4481
+ # resp.rule.error_action.http.headers[0].key #=> String
4482
+ # resp.rule.error_action.http.headers[0].value #=> String
4483
+ # resp.rule.error_action.http.auth.sigv4.signing_region #=> String
4484
+ # resp.rule.error_action.http.auth.sigv4.service_name #=> String
4485
+ # resp.rule.error_action.http.auth.sigv4.role_arn #=> String
4354
4486
  #
4355
4487
  # @overload get_topic_rule(params = {})
4356
4488
  # @param [Hash] params ({})
@@ -4359,6 +4491,35 @@ module Aws::IoT
4359
4491
  req.send_request(options)
4360
4492
  end
4361
4493
 
4494
+ # Gets information about a topic rule destination.
4495
+ #
4496
+ # @option params [required, String] :arn
4497
+ # The ARN of the topic rule destination.
4498
+ #
4499
+ # @return [Types::GetTopicRuleDestinationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4500
+ #
4501
+ # * {Types::GetTopicRuleDestinationResponse#topic_rule_destination #topic_rule_destination} => Types::TopicRuleDestination
4502
+ #
4503
+ # @example Request syntax with placeholder values
4504
+ #
4505
+ # resp = client.get_topic_rule_destination({
4506
+ # arn: "AwsArn", # required
4507
+ # })
4508
+ #
4509
+ # @example Response structure
4510
+ #
4511
+ # resp.topic_rule_destination.arn #=> String
4512
+ # resp.topic_rule_destination.status #=> String, one of "ENABLED", "IN_PROGRESS", "DISABLED", "ERROR"
4513
+ # resp.topic_rule_destination.status_reason #=> String
4514
+ # resp.topic_rule_destination.http_url_properties.confirmation_url #=> String
4515
+ #
4516
+ # @overload get_topic_rule_destination(params = {})
4517
+ # @param [Hash] params ({})
4518
+ def get_topic_rule_destination(params = {}, options = {})
4519
+ req = build_request(:get_topic_rule_destination, params)
4520
+ req.send_request(options)
4521
+ end
4522
+
4362
4523
  # Gets the fine grained logging options.
4363
4524
  #
4364
4525
  # @return [Types::GetV2LoggingOptionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -6172,6 +6333,42 @@ module Aws::IoT
6172
6333
  req.send_request(options)
6173
6334
  end
6174
6335
 
6336
+ # Lists all the topic rule destinations in your AWS account.
6337
+ #
6338
+ # @option params [Integer] :max_results
6339
+ # The maximum number of results to return at one time.
6340
+ #
6341
+ # @option params [String] :next_token
6342
+ # The token to retrieve the next set of results.
6343
+ #
6344
+ # @return [Types::ListTopicRuleDestinationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6345
+ #
6346
+ # * {Types::ListTopicRuleDestinationsResponse#destination_summaries #destination_summaries} => Array<Types::TopicRuleDestinationSummary>
6347
+ # * {Types::ListTopicRuleDestinationsResponse#next_token #next_token} => String
6348
+ #
6349
+ # @example Request syntax with placeholder values
6350
+ #
6351
+ # resp = client.list_topic_rule_destinations({
6352
+ # max_results: 1,
6353
+ # next_token: "NextToken",
6354
+ # })
6355
+ #
6356
+ # @example Response structure
6357
+ #
6358
+ # resp.destination_summaries #=> Array
6359
+ # resp.destination_summaries[0].arn #=> String
6360
+ # resp.destination_summaries[0].status #=> String, one of "ENABLED", "IN_PROGRESS", "DISABLED", "ERROR"
6361
+ # resp.destination_summaries[0].status_reason #=> String
6362
+ # resp.destination_summaries[0].http_url_summary.confirmation_url #=> String
6363
+ # resp.next_token #=> String
6364
+ #
6365
+ # @overload list_topic_rule_destinations(params = {})
6366
+ # @param [Hash] params ({})
6367
+ def list_topic_rule_destinations(params = {}, options = {})
6368
+ req = build_request(:list_topic_rule_destinations, params)
6369
+ req.send_request(options)
6370
+ end
6371
+
6175
6372
  # Lists the rules for the specific topic.
6176
6373
  #
6177
6374
  # @option params [String] :topic
@@ -6432,16 +6629,7 @@ module Aws::IoT
6432
6629
  req.send_request(options)
6433
6630
  end
6434
6631
 
6435
- # Provisions a thing in the device registry. RegisterThing calls other
6436
- # AWS IoT control plane APIs. These calls might exceed your account
6437
- # level [ AWS IoT Throttling Limits][1] and cause throttle errors.
6438
- # Please contact [AWS Customer Support][2] to raise your throttling
6439
- # limits if necessary.
6440
- #
6441
- #
6442
- #
6443
- # [1]: https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_iot
6444
- # [2]: https://console.aws.amazon.com/support/home
6632
+ # Provisions a thing.
6445
6633
  #
6446
6634
  # @option params [required, String] :template_body
6447
6635
  # The provisioning template. See [Programmatic Provisioning][1] for more
@@ -6698,6 +6886,23 @@ module Aws::IoT
6698
6886
  # state_machine_name: "StateMachineName", # required
6699
6887
  # role_arn: "AwsArn", # required
6700
6888
  # },
6889
+ # http: {
6890
+ # url: "Url", # required
6891
+ # confirmation_url: "Url",
6892
+ # headers: [
6893
+ # {
6894
+ # key: "HeaderKey", # required
6895
+ # value: "HeaderValue", # required
6896
+ # },
6897
+ # ],
6898
+ # auth: {
6899
+ # sigv4: {
6900
+ # signing_region: "SigningRegion", # required
6901
+ # service_name: "ServiceName", # required
6902
+ # role_arn: "AwsArn", # required
6903
+ # },
6904
+ # },
6905
+ # },
6701
6906
  # },
6702
6907
  # ],
6703
6908
  # rule_disabled: false,
@@ -6795,6 +7000,23 @@ module Aws::IoT
6795
7000
  # state_machine_name: "StateMachineName", # required
6796
7001
  # role_arn: "AwsArn", # required
6797
7002
  # },
7003
+ # http: {
7004
+ # url: "Url", # required
7005
+ # confirmation_url: "Url",
7006
+ # headers: [
7007
+ # {
7008
+ # key: "HeaderKey", # required
7009
+ # value: "HeaderValue", # required
7010
+ # },
7011
+ # ],
7012
+ # auth: {
7013
+ # sigv4: {
7014
+ # signing_region: "SigningRegion", # required
7015
+ # service_name: "ServiceName", # required
7016
+ # role_arn: "AwsArn", # required
7017
+ # },
7018
+ # },
7019
+ # },
6798
7020
  # },
6799
7021
  # },
6800
7022
  # })
@@ -8261,6 +8483,60 @@ module Aws::IoT
8261
8483
  req.send_request(options)
8262
8484
  end
8263
8485
 
8486
+ # Updates a topic rule destination. You use this to change the status,
8487
+ # endpoint URL, or confirmation URL of the destination.
8488
+ #
8489
+ # @option params [required, String] :arn
8490
+ # The ARN of the topic rule destination.
8491
+ #
8492
+ # @option params [required, String] :status
8493
+ # The status of the topic rule destination. Valid values are:
8494
+ #
8495
+ # IN\_PROGRESS
8496
+ #
8497
+ # : A topic rule destination was created but has not been confirmed. You
8498
+ # can set `status` to `IN_PROGRESS` by calling
8499
+ # `UpdateTopicRuleDestination`. Calling `UpdateTopicRuleDestination`
8500
+ # causes a new confirmation challenge to be sent to your confirmation
8501
+ # endpoint.
8502
+ #
8503
+ # ENABLED
8504
+ #
8505
+ # : Confirmation was completed, and traffic to this destination is
8506
+ # allowed. You can set `status` to `DISABLED` by calling
8507
+ # `UpdateTopicRuleDestination`.
8508
+ #
8509
+ # DISABLED
8510
+ #
8511
+ # : Confirmation was completed, and traffic to this destination is not
8512
+ # allowed. You can set `status` to `ENABLED` by calling
8513
+ # `UpdateTopicRuleDestination`.
8514
+ #
8515
+ # ERROR
8516
+ #
8517
+ # : Confirmation could not be completed, for example if the confirmation
8518
+ # timed out. You can call `GetTopicRuleDestination` for details about
8519
+ # the error. You can set `status` to `IN_PROGRESS` by calling
8520
+ # `UpdateTopicRuleDestination`. Calling `UpdateTopicRuleDestination`
8521
+ # causes a new confirmation challenge to be sent to your confirmation
8522
+ # endpoint.
8523
+ #
8524
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
8525
+ #
8526
+ # @example Request syntax with placeholder values
8527
+ #
8528
+ # resp = client.update_topic_rule_destination({
8529
+ # arn: "AwsArn", # required
8530
+ # status: "ENABLED", # required, accepts ENABLED, IN_PROGRESS, DISABLED, ERROR
8531
+ # })
8532
+ #
8533
+ # @overload update_topic_rule_destination(params = {})
8534
+ # @param [Hash] params ({})
8535
+ def update_topic_rule_destination(params = {}, options = {})
8536
+ req = build_request(:update_topic_rule_destination, params)
8537
+ req.send_request(options)
8538
+ end
8539
+
8264
8540
  # Validates a Device Defender security profile behaviors specification.
8265
8541
  #
8266
8542
  # @option params [required, Array<Types::Behavior>] :behaviors
@@ -8323,7 +8599,7 @@ module Aws::IoT
8323
8599
  params: params,
8324
8600
  config: config)
8325
8601
  context[:gem_name] = 'aws-sdk-iot'
8326
- context[:gem_version] = '1.39.0'
8602
+ context[:gem_version] = '1.40.0'
8327
8603
  Seahorse::Client::Request.new(handlers, context)
8328
8604
  end
8329
8605