aws-sdk-iot 1.85.0 → 1.88.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: 3b00cc4e38278e3c42f76359ab1b0eff840d425bd3fa054d9b3cffed8e920311
4
- data.tar.gz: d127bb0abcfacff9e1e03b8f79f968752feb2bab3a761325455ce88589d2a931
3
+ metadata.gz: 1f5eecdaf0afc42535b10c47d68bb1a50aafe0cb39eb284e1bb1ffbf5e003510
4
+ data.tar.gz: 21f4ebbc5bd2dcc5718395ba2749aaa30ef7e353ac7816a5e6d1a35b436b4d1a
5
5
  SHA512:
6
- metadata.gz: f11e273368c2f91ec00bebdd633cc5f5b35ea90e70f1e6cf2b2b0c06b416d67e5b31381ef332ff9207e39774463073e0e15d1dc9d6533b709ce0d011da96ebca
7
- data.tar.gz: c86ca1884a91b702090cd4d58264d00565e4ee5b4da1ac7d720c5c94eefa773f2a4a77215bff712696edec19004ac55ade04658019700a0e6c6e9124a59a6edb
6
+ metadata.gz: 8a999c2c56725a835b0d61a04edb63fa5d08615924f9c99653d0425a5843e17c1b6c7ceb40aeccd998c446346a547d4c292bb0311abee1e0f170b5e257af9d4f
7
+ data.tar.gz: 6ecdcd2cd1ff058c55f99a86d8e27668b92b09c607d4b423fdf30dab4a8ac8292fb4ab8786f32593e6cb23fe2ec5c5b5b511619a8c2ecba43305f7570ff108a2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.88.0 (2022-04-04)
5
+ ------------------
6
+
7
+ * Feature - AWS IoT - AWS IoT Device Defender adds support to list metric datapoints collected for IoT devices through the ListMetricValues API
8
+
9
+ 1.87.0 (2022-03-30)
10
+ ------------------
11
+
12
+ * Feature - Doc only update for IoT that fixes customer-reported issues.
13
+
14
+ 1.86.0 (2022-02-24)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
4
19
  1.85.0 (2022-02-03)
5
20
  ------------------
6
21
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.85.0
1
+ 1.88.0
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
30
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
31
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
32
33
  require 'aws-sdk-core/plugins/signature_v4.rb'
@@ -75,6 +76,7 @@ module Aws::IoT
75
76
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
76
77
  add_plugin(Aws::Plugins::TransferEncoding)
77
78
  add_plugin(Aws::Plugins::HttpChecksum)
79
+ add_plugin(Aws::Plugins::ChecksumAlgorithm)
78
80
  add_plugin(Aws::Plugins::DefaultsMode)
79
81
  add_plugin(Aws::Plugins::RecursionDetection)
80
82
  add_plugin(Aws::Plugins::SignatureV4)
@@ -1273,17 +1275,21 @@ module Aws::IoT
1273
1275
  #
1274
1276
  # @option params [required, String] :metric_name
1275
1277
  # The name of the custom metric. This will be used in the metric report
1276
- # submitted from the device/thing. Shouldn't begin with `aws:`. Cannot
1277
- # be updated once defined.
1278
+ # submitted from the device/thing. The name can't begin with `aws:`.
1279
+ # You can't change the name after you define it.
1278
1280
  #
1279
1281
  # @option params [String] :display_name
1280
- # Field represents a friendly name in the console for the custom metric;
1281
- # it doesn't have to be unique. Don't use this name as the metric
1282
- # identifier in the device metric report. Can be updated once defined.
1282
+ # The friendly name in the console for the custom metric. This name
1283
+ # doesn't have to be unique. Don't use this name as the metric
1284
+ # identifier in the device metric report. You can update the friendly
1285
+ # name after you define it.
1283
1286
  #
1284
1287
  # @option params [required, String] :metric_type
1285
- # The type of the custom metric. Types include `string-list`,
1286
- # `ip-address-list`, `number-list`, and `number`.
1288
+ # The type of the custom metric.
1289
+ #
1290
+ # The type `number` only takes a single metric value as an input, but
1291
+ # when you submit the metrics value in the DeviceMetrics report, you
1292
+ # must pass it as an array with a single value.
1287
1293
  #
1288
1294
  # @option params [Array<Types::Tag>] :tags
1289
1295
  # Metadata that can be used to manage the custom metric.
@@ -2573,6 +2579,9 @@ module Aws::IoT
2573
2579
  # How long (in seconds) the credentials will be valid. The default value
2574
2580
  # is 3,600 seconds.
2575
2581
  #
2582
+ # This value must be less than or equal to the maximum session duration
2583
+ # of the IAM role that the role alias references.
2584
+ #
2576
2585
  # @option params [Array<Types::Tag>] :tags
2577
2586
  # Metadata which can be used to manage the role alias.
2578
2587
  #
@@ -8870,6 +8879,78 @@ module Aws::IoT
8870
8879
  req.send_request(options)
8871
8880
  end
8872
8881
 
8882
+ # Lists the values reported for an IoT Device Defender metric
8883
+ # (device-side metric, cloud-side metric, or custom metric) by the given
8884
+ # thing during the specified time period.
8885
+ #
8886
+ # @option params [required, String] :thing_name
8887
+ # The name of the thing for which security profile metric values are
8888
+ # returned.
8889
+ #
8890
+ # @option params [required, String] :metric_name
8891
+ # The name of the security profile metric for which values are returned.
8892
+ #
8893
+ # @option params [String] :dimension_name
8894
+ # The dimension name.
8895
+ #
8896
+ # @option params [String] :dimension_value_operator
8897
+ # The dimension value operator.
8898
+ #
8899
+ # @option params [required, Time,DateTime,Date,Integer,String] :start_time
8900
+ # The start of the time period for which metric values are returned.
8901
+ #
8902
+ # @option params [required, Time,DateTime,Date,Integer,String] :end_time
8903
+ # The end of the time period for which metric values are returned.
8904
+ #
8905
+ # @option params [Integer] :max_results
8906
+ # The maximum number of results to return at one time.
8907
+ #
8908
+ # @option params [String] :next_token
8909
+ # The token for the next set of results.
8910
+ #
8911
+ # @return [Types::ListMetricValuesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
8912
+ #
8913
+ # * {Types::ListMetricValuesResponse#metric_datum_list #metric_datum_list} => Array&lt;Types::MetricDatum&gt;
8914
+ # * {Types::ListMetricValuesResponse#next_token #next_token} => String
8915
+ #
8916
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
8917
+ #
8918
+ # @example Request syntax with placeholder values
8919
+ #
8920
+ # resp = client.list_metric_values({
8921
+ # thing_name: "DeviceDefenderThingName", # required
8922
+ # metric_name: "BehaviorMetric", # required
8923
+ # dimension_name: "DimensionName",
8924
+ # dimension_value_operator: "IN", # accepts IN, NOT_IN
8925
+ # start_time: Time.now, # required
8926
+ # end_time: Time.now, # required
8927
+ # max_results: 1,
8928
+ # next_token: "NextToken",
8929
+ # })
8930
+ #
8931
+ # @example Response structure
8932
+ #
8933
+ # resp.metric_datum_list #=> Array
8934
+ # resp.metric_datum_list[0].timestamp #=> Time
8935
+ # resp.metric_datum_list[0].value.count #=> Integer
8936
+ # resp.metric_datum_list[0].value.cidrs #=> Array
8937
+ # resp.metric_datum_list[0].value.cidrs[0] #=> String
8938
+ # resp.metric_datum_list[0].value.ports #=> Array
8939
+ # resp.metric_datum_list[0].value.ports[0] #=> Integer
8940
+ # resp.metric_datum_list[0].value.number #=> Float
8941
+ # resp.metric_datum_list[0].value.numbers #=> Array
8942
+ # resp.metric_datum_list[0].value.numbers[0] #=> Float
8943
+ # resp.metric_datum_list[0].value.strings #=> Array
8944
+ # resp.metric_datum_list[0].value.strings[0] #=> String
8945
+ # resp.next_token #=> String
8946
+ #
8947
+ # @overload list_metric_values(params = {})
8948
+ # @param [Hash] params ({})
8949
+ def list_metric_values(params = {}, options = {})
8950
+ req = build_request(:list_metric_values, params)
8951
+ req.send_request(options)
8952
+ end
8953
+
8873
8954
  # Gets a list of all mitigation actions that match the specified filter
8874
8955
  # criteria.
8875
8956
  #
@@ -10557,6 +10638,8 @@ module Aws::IoT
10557
10638
  # @option params [Boolean] :set_as_active
10558
10639
  # A boolean value that specifies if the CA certificate is set to active.
10559
10640
  #
10641
+ # Valid values: `ACTIVE | INACTIVE`
10642
+ #
10560
10643
  # @option params [Boolean] :allow_auto_registration
10561
10644
  # Allows this CA certificate to be used for auto registration of device
10562
10645
  # certificates.
@@ -10635,8 +10718,11 @@ module Aws::IoT
10635
10718
  # @option params [Boolean] :set_as_active
10636
10719
  # A boolean value that specifies if the certificate is set to active.
10637
10720
  #
10721
+ # Valid values: `ACTIVE | INACTIVE`
10722
+ #
10638
10723
  # @option params [String] :status
10639
- # The status of the register certificate request.
10724
+ # The status of the register certificate request. Valid values that you
10725
+ # can use include `ACTIVE`, `INACTIVE`, and `REVOKED`.
10640
10726
  #
10641
10727
  # @return [Types::RegisterCertificateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
10642
10728
  #
@@ -12969,6 +13055,9 @@ module Aws::IoT
12969
13055
  # @option params [Integer] :credential_duration_seconds
12970
13056
  # The number of seconds the credential will be valid.
12971
13057
  #
13058
+ # This value must be less than or equal to the maximum session duration
13059
+ # of the IAM role that the role alias references.
13060
+ #
12972
13061
  # @return [Types::UpdateRoleAliasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
12973
13062
  #
12974
13063
  # * {Types::UpdateRoleAliasResponse#role_alias #role_alias} => String
@@ -13583,7 +13672,7 @@ module Aws::IoT
13583
13672
  params: params,
13584
13673
  config: config)
13585
13674
  context[:gem_name] = 'aws-sdk-iot'
13586
- context[:gem_version] = '1.85.0'
13675
+ context[:gem_version] = '1.88.0'
13587
13676
  Seahorse::Client::Request.new(handlers, context)
13588
13677
  end
13589
13678
 
@@ -700,6 +700,8 @@ module Aws::IoT
700
700
  ListJobsResponse = Shapes::StructureShape.new(name: 'ListJobsResponse')
701
701
  ListManagedJobTemplatesRequest = Shapes::StructureShape.new(name: 'ListManagedJobTemplatesRequest')
702
702
  ListManagedJobTemplatesResponse = Shapes::StructureShape.new(name: 'ListManagedJobTemplatesResponse')
703
+ ListMetricValuesRequest = Shapes::StructureShape.new(name: 'ListMetricValuesRequest')
704
+ ListMetricValuesResponse = Shapes::StructureShape.new(name: 'ListMetricValuesResponse')
703
705
  ListMitigationActionsRequest = Shapes::StructureShape.new(name: 'ListMitigationActionsRequest')
704
706
  ListMitigationActionsResponse = Shapes::StructureShape.new(name: 'ListMitigationActionsResponse')
705
707
  ListOTAUpdatesRequest = Shapes::StructureShape.new(name: 'ListOTAUpdatesRequest')
@@ -787,6 +789,8 @@ module Aws::IoT
787
789
  Message = Shapes::StringShape.new(name: 'Message')
788
790
  MessageFormat = Shapes::StringShape.new(name: 'MessageFormat')
789
791
  MessageId = Shapes::StringShape.new(name: 'MessageId')
792
+ MetricDatum = Shapes::StructureShape.new(name: 'MetricDatum')
793
+ MetricDatumList = Shapes::ListShape.new(name: 'MetricDatumList')
790
794
  MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
791
795
  MetricName = Shapes::StringShape.new(name: 'MetricName')
792
796
  MetricNames = Shapes::ListShape.new(name: 'MetricNames')
@@ -1332,7 +1336,7 @@ module Aws::IoT
1332
1336
  AddThingToThingGroupResponse.struct_class = Types::AddThingToThingGroupResponse
1333
1337
 
1334
1338
  AddThingsToThingGroupParams.add_member(:thing_group_names, Shapes::ShapeRef.new(shape: ThingGroupNames, required: true, location_name: "thingGroupNames"))
1335
- AddThingsToThingGroupParams.add_member(:override_dynamic_groups, Shapes::ShapeRef.new(shape: OverrideDynamicGroups, location_name: "overrideDynamicGroups"))
1339
+ AddThingsToThingGroupParams.add_member(:override_dynamic_groups, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "overrideDynamicGroups"))
1336
1340
  AddThingsToThingGroupParams.struct_class = Types::AddThingsToThingGroupParams
1337
1341
 
1338
1342
  AdditionalMetricsToRetainList.member = Shapes::ShapeRef.new(shape: BehaviorMetric)
@@ -3365,6 +3369,20 @@ module Aws::IoT
3365
3369
  ListManagedJobTemplatesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
3366
3370
  ListManagedJobTemplatesResponse.struct_class = Types::ListManagedJobTemplatesResponse
3367
3371
 
3372
+ ListMetricValuesRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: DeviceDefenderThingName, required: true, location: "querystring", location_name: "thingName"))
3373
+ ListMetricValuesRequest.add_member(:metric_name, Shapes::ShapeRef.new(shape: BehaviorMetric, required: true, location: "querystring", location_name: "metricName"))
3374
+ ListMetricValuesRequest.add_member(:dimension_name, Shapes::ShapeRef.new(shape: DimensionName, location: "querystring", location_name: "dimensionName"))
3375
+ ListMetricValuesRequest.add_member(:dimension_value_operator, Shapes::ShapeRef.new(shape: DimensionValueOperator, location: "querystring", location_name: "dimensionValueOperator"))
3376
+ ListMetricValuesRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "startTime"))
3377
+ ListMetricValuesRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location: "querystring", location_name: "endTime"))
3378
+ ListMetricValuesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
3379
+ ListMetricValuesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
3380
+ ListMetricValuesRequest.struct_class = Types::ListMetricValuesRequest
3381
+
3382
+ ListMetricValuesResponse.add_member(:metric_datum_list, Shapes::ShapeRef.new(shape: MetricDatumList, location_name: "metricDatumList"))
3383
+ ListMetricValuesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
3384
+ ListMetricValuesResponse.struct_class = Types::ListMetricValuesResponse
3385
+
3368
3386
  ListMitigationActionsRequest.add_member(:action_type, Shapes::ShapeRef.new(shape: MitigationActionType, location: "querystring", location_name: "actionType"))
3369
3387
  ListMitigationActionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
3370
3388
  ListMitigationActionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
@@ -3685,6 +3703,12 @@ module Aws::IoT
3685
3703
 
3686
3704
  ManagedJobTemplatesSummaryList.member = Shapes::ShapeRef.new(shape: ManagedJobTemplateSummary)
3687
3705
 
3706
+ MetricDatum.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
3707
+ MetricDatum.add_member(:value, Shapes::ShapeRef.new(shape: MetricValue, location_name: "value"))
3708
+ MetricDatum.struct_class = Types::MetricDatum
3709
+
3710
+ MetricDatumList.member = Shapes::ShapeRef.new(shape: MetricDatum)
3711
+
3688
3712
  MetricDimension.add_member(:dimension_name, Shapes::ShapeRef.new(shape: DimensionName, required: true, location_name: "dimensionName"))
3689
3713
  MetricDimension.add_member(:operator, Shapes::ShapeRef.new(shape: DimensionValueOperator, location_name: "operator"))
3690
3714
  MetricDimension.struct_class = Types::MetricDimension
@@ -7011,6 +7035,24 @@ module Aws::IoT
7011
7035
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
7012
7036
  end)
7013
7037
 
7038
+ api.add_operation(:list_metric_values, Seahorse::Model::Operation.new.tap do |o|
7039
+ o.name = "ListMetricValues"
7040
+ o.http_method = "GET"
7041
+ o.http_request_uri = "/metric-values"
7042
+ o.input = Shapes::ShapeRef.new(shape: ListMetricValuesRequest)
7043
+ o.output = Shapes::ShapeRef.new(shape: ListMetricValuesResponse)
7044
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
7045
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
7046
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
7047
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
7048
+ o[:pager] = Aws::Pager.new(
7049
+ limit_key: "max_results",
7050
+ tokens: {
7051
+ "next_token" => "next_token"
7052
+ }
7053
+ )
7054
+ end)
7055
+
7014
7056
  api.add_operation(:list_mitigation_actions, Seahorse::Model::Operation.new.tap do |o|
7015
7057
  o.name = "ListMitigationActions"
7016
7058
  o.http_method = "GET"
@@ -3041,20 +3041,23 @@ module Aws::IoT
3041
3041
  #
3042
3042
  # @!attribute [rw] metric_name
3043
3043
  # The name of the custom metric. This will be used in the metric
3044
- # report submitted from the device/thing. Shouldn't begin with
3045
- # `aws:`. Cannot be updated once defined.
3044
+ # report submitted from the device/thing. The name can't begin with
3045
+ # `aws:`. You can't change the name after you define it.
3046
3046
  # @return [String]
3047
3047
  #
3048
3048
  # @!attribute [rw] display_name
3049
- # Field represents a friendly name in the console for the custom
3050
- # metric; it doesn't have to be unique. Don't use this name as the
3051
- # metric identifier in the device metric report. Can be updated once
3052
- # defined.
3049
+ # The friendly name in the console for the custom metric. This name
3050
+ # doesn't have to be unique. Don't use this name as the metric
3051
+ # identifier in the device metric report. You can update the friendly
3052
+ # name after you define it.
3053
3053
  # @return [String]
3054
3054
  #
3055
3055
  # @!attribute [rw] metric_type
3056
- # The type of the custom metric. Types include `string-list`,
3057
- # `ip-address-list`, `number-list`, and `number`.
3056
+ # The type of the custom metric.
3057
+ #
3058
+ # The type `number` only takes a single metric value as an input, but
3059
+ # when you submit the metrics value in the DeviceMetrics report, you
3060
+ # must pass it as an array with a single value.
3058
3061
  # @return [String]
3059
3062
  #
3060
3063
  # @!attribute [rw] tags
@@ -3087,7 +3090,7 @@ module Aws::IoT
3087
3090
  # @return [String]
3088
3091
  #
3089
3092
  # @!attribute [rw] metric_arn
3090
- # The Amazon Resource Number (ARN) of the custom metric, e.g.
3093
+ # The Amazon Resource Number (ARN) of the custom metric. For example,
3091
3094
  # `arn:aws-partition:iot:region:accountId:custommetric/metricName `
3092
3095
  # @return [String]
3093
3096
  #
@@ -4521,6 +4524,9 @@ module Aws::IoT
4521
4524
  # @!attribute [rw] credential_duration_seconds
4522
4525
  # How long (in seconds) the credentials will be valid. The default
4523
4526
  # value is 3,600 seconds.
4527
+ #
4528
+ # This value must be less than or equal to the maximum session
4529
+ # duration of the IAM role that the role alias references.
4524
4530
  # @return [Integer]
4525
4531
  #
4526
4532
  # @!attribute [rw] tags
@@ -6792,8 +6798,11 @@ module Aws::IoT
6792
6798
  # @return [String]
6793
6799
  #
6794
6800
  # @!attribute [rw] metric_type
6795
- # The type of the custom metric. Types include `string-list`,
6796
- # `ip-address-list`, `number-list`, and `number`.
6801
+ # The type of the custom metric.
6802
+ #
6803
+ # The type `number` only takes a single metric value as an input, but
6804
+ # while submitting the metrics value in the DeviceMetrics report, it
6805
+ # must be passed as an array with a single value.
6797
6806
  # @return [String]
6798
6807
  #
6799
6808
  # @!attribute [rw] display_name
@@ -12089,6 +12098,84 @@ module Aws::IoT
12089
12098
  include Aws::Structure
12090
12099
  end
12091
12100
 
12101
+ # @note When making an API call, you may pass ListMetricValuesRequest
12102
+ # data as a hash:
12103
+ #
12104
+ # {
12105
+ # thing_name: "DeviceDefenderThingName", # required
12106
+ # metric_name: "BehaviorMetric", # required
12107
+ # dimension_name: "DimensionName",
12108
+ # dimension_value_operator: "IN", # accepts IN, NOT_IN
12109
+ # start_time: Time.now, # required
12110
+ # end_time: Time.now, # required
12111
+ # max_results: 1,
12112
+ # next_token: "NextToken",
12113
+ # }
12114
+ #
12115
+ # @!attribute [rw] thing_name
12116
+ # The name of the thing for which security profile metric values are
12117
+ # returned.
12118
+ # @return [String]
12119
+ #
12120
+ # @!attribute [rw] metric_name
12121
+ # The name of the security profile metric for which values are
12122
+ # returned.
12123
+ # @return [String]
12124
+ #
12125
+ # @!attribute [rw] dimension_name
12126
+ # The dimension name.
12127
+ # @return [String]
12128
+ #
12129
+ # @!attribute [rw] dimension_value_operator
12130
+ # The dimension value operator.
12131
+ # @return [String]
12132
+ #
12133
+ # @!attribute [rw] start_time
12134
+ # The start of the time period for which metric values are returned.
12135
+ # @return [Time]
12136
+ #
12137
+ # @!attribute [rw] end_time
12138
+ # The end of the time period for which metric values are returned.
12139
+ # @return [Time]
12140
+ #
12141
+ # @!attribute [rw] max_results
12142
+ # The maximum number of results to return at one time.
12143
+ # @return [Integer]
12144
+ #
12145
+ # @!attribute [rw] next_token
12146
+ # The token for the next set of results.
12147
+ # @return [String]
12148
+ #
12149
+ class ListMetricValuesRequest < Struct.new(
12150
+ :thing_name,
12151
+ :metric_name,
12152
+ :dimension_name,
12153
+ :dimension_value_operator,
12154
+ :start_time,
12155
+ :end_time,
12156
+ :max_results,
12157
+ :next_token)
12158
+ SENSITIVE = []
12159
+ include Aws::Structure
12160
+ end
12161
+
12162
+ # @!attribute [rw] metric_datum_list
12163
+ # The data the thing reports for the metric during the specified time
12164
+ # period.
12165
+ # @return [Array<Types::MetricDatum>]
12166
+ #
12167
+ # @!attribute [rw] next_token
12168
+ # A token that can be used to retrieve the next set of results, or
12169
+ # `null` if there are no additional results.
12170
+ # @return [String]
12171
+ #
12172
+ class ListMetricValuesResponse < Struct.new(
12173
+ :metric_datum_list,
12174
+ :next_token)
12175
+ SENSITIVE = []
12176
+ include Aws::Structure
12177
+ end
12178
+
12092
12179
  # @note When making an API call, you may pass ListMitigationActionsRequest
12093
12180
  # data as a hash:
12094
12181
  #
@@ -13773,6 +13860,23 @@ module Aws::IoT
13773
13860
  include Aws::Structure
13774
13861
  end
13775
13862
 
13863
+ # A metric.
13864
+ #
13865
+ # @!attribute [rw] timestamp
13866
+ # The time the metric value was reported.
13867
+ # @return [Time]
13868
+ #
13869
+ # @!attribute [rw] value
13870
+ # The value reported for the metric.
13871
+ # @return [Types::MetricValue]
13872
+ #
13873
+ class MetricDatum < Struct.new(
13874
+ :timestamp,
13875
+ :value)
13876
+ SENSITIVE = []
13877
+ include Aws::Structure
13878
+ end
13879
+
13776
13880
  # The dimension of a metric.
13777
13881
  #
13778
13882
  # @note When making an API call, you may pass MetricDimension
@@ -14764,6 +14868,8 @@ module Aws::IoT
14764
14868
  # @!attribute [rw] set_as_active
14765
14869
  # A boolean value that specifies if the CA certificate is set to
14766
14870
  # active.
14871
+ #
14872
+ # Valid values: `ACTIVE | INACTIVE`
14767
14873
  # @return [Boolean]
14768
14874
  #
14769
14875
  # @!attribute [rw] allow_auto_registration
@@ -14841,10 +14947,13 @@ module Aws::IoT
14841
14947
  #
14842
14948
  # @!attribute [rw] set_as_active
14843
14949
  # A boolean value that specifies if the certificate is set to active.
14950
+ #
14951
+ # Valid values: `ACTIVE | INACTIVE`
14844
14952
  # @return [Boolean]
14845
14953
  #
14846
14954
  # @!attribute [rw] status
14847
- # The status of the register certificate request.
14955
+ # The status of the register certificate request. Valid values that
14956
+ # you can use include `ACTIVE`, `INACTIVE`, and `REVOKED`.
14848
14957
  # @return [String]
14849
14958
  #
14850
14959
  class RegisterCertificateRequest < Struct.new(
@@ -18984,8 +19093,11 @@ module Aws::IoT
18984
19093
  # @return [String]
18985
19094
  #
18986
19095
  # @!attribute [rw] metric_type
18987
- # The type of the custom metric. Types include `string-list`,
18988
- # `ip-address-list`, `number-list`, and `number`.
19096
+ # The type of the custom metric.
19097
+ #
19098
+ # The type `number` only takes a single metric value as an input, but
19099
+ # while submitting the metrics value in the DeviceMetrics report, it
19100
+ # must be passed as an array with a single value.
18989
19101
  # @return [String]
18990
19102
  #
18991
19103
  # @!attribute [rw] display_name
@@ -19634,6 +19746,9 @@ module Aws::IoT
19634
19746
  #
19635
19747
  # @!attribute [rw] credential_duration_seconds
19636
19748
  # The number of seconds the credential will be valid.
19749
+ #
19750
+ # This value must be less than or equal to the maximum session
19751
+ # duration of the IAM role that the role alias references.
19637
19752
  # @return [Integer]
19638
19753
  #
19639
19754
  class UpdateRoleAliasRequest < Struct.new(
data/lib/aws-sdk-iot.rb CHANGED
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-iot/customizations'
48
48
  # @!group service
49
49
  module Aws::IoT
50
50
 
51
- GEM_VERSION = '1.85.0'
51
+ GEM_VERSION = '1.88.0'
52
52
 
53
53
  end
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.85.0
4
+ version: 1.88.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: 2022-02-03 00:00:00.000000000 Z
11
+ date: 2022-04-04 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.126.0
22
+ version: 3.127.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.126.0
32
+ version: 3.127.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement