aws-sdk-iot 1.98.0 → 1.100.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: 98abdf790987147b8ee5938ad15028e56f0bc2717a3a60e7b70278faa3948359
4
- data.tar.gz: 917059501d2307233af16a81b10321ae79dad8e5d117e3e6b6166e248fb559b8
3
+ metadata.gz: a2ce5d3794d27ca0e3ec42661d0cd377e460f3fce246e515606a3098a272b078
4
+ data.tar.gz: 0f0cac12014418d2e4a53ff54250799a37431596acbf4fcb7b46e895ba47dc89
5
5
  SHA512:
6
- metadata.gz: 35dad2d1c3b526ae4ff36f0a198313da42703d47eb5a03d26ece19b559efea359d6eeac3e39dd04268da2c5c940913de57555e26b139d3a63e6438412ce9ee77
7
- data.tar.gz: d496604ba52eb0f5954407f619ac114ef223d33b217a123740494ae3432e2731ce5988c31de0ffec3b22325a2368ee35944e4ffa9d390967f7d9bf4b2739acb1
6
+ metadata.gz: b5d9ab463fe7db463cdc4500ad683311061527103ab7fd19a7248542f39fe05d6e1729c55bd51016564b7d48886922cdfc8a070c05cc9e06775cbf830259785e
7
+ data.tar.gz: 61aa63f3914268ec53b5c69401d57d10c257e63a6b6ccdc710d91789f7f1ce67c4666df944774f287c1ba13ddfe5691f8d9ae80538e369b51877adb341d07c89
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.100.0 (2023-01-31)
5
+ ------------------
6
+
7
+ * Feature - Added support for IoT Rules Engine Cloudwatch Logs action batch mode.
8
+
9
+ 1.99.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.98.0 (2022-11-28)
5
17
  ------------------
6
18
 
@@ -555,4 +567,4 @@ Unreleased Changes
555
567
  1.0.0.rc1 (2016-12-05)
556
568
  ------------------
557
569
 
558
- * Feature - Initial preview release of the `aws-sdk-iot` gem.
570
+ * Feature - Initial preview release of the `aws-sdk-iot` gem.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.98.0
1
+ 1.100.0
@@ -3266,6 +3266,7 @@ module Aws::IoT
3266
3266
  # cloudwatch_logs: {
3267
3267
  # role_arn: "AwsArn", # required
3268
3268
  # log_group_name: "LogGroupName", # required
3269
+ # batch_mode: false,
3269
3270
  # },
3270
3271
  # elasticsearch: {
3271
3272
  # role_arn: "AwsArn", # required
@@ -3468,6 +3469,7 @@ module Aws::IoT
3468
3469
  # cloudwatch_logs: {
3469
3470
  # role_arn: "AwsArn", # required
3470
3471
  # log_group_name: "LogGroupName", # required
3472
+ # batch_mode: false,
3471
3473
  # },
3472
3474
  # elasticsearch: {
3473
3475
  # role_arn: "AwsArn", # required
@@ -7292,6 +7294,7 @@ module Aws::IoT
7292
7294
  # resp.rule.actions[0].cloudwatch_alarm.state_value #=> String
7293
7295
  # resp.rule.actions[0].cloudwatch_logs.role_arn #=> String
7294
7296
  # resp.rule.actions[0].cloudwatch_logs.log_group_name #=> String
7297
+ # resp.rule.actions[0].cloudwatch_logs.batch_mode #=> Boolean
7295
7298
  # resp.rule.actions[0].elasticsearch.role_arn #=> String
7296
7299
  # resp.rule.actions[0].elasticsearch.endpoint #=> String
7297
7300
  # resp.rule.actions[0].elasticsearch.index #=> String
@@ -7413,6 +7416,7 @@ module Aws::IoT
7413
7416
  # resp.rule.error_action.cloudwatch_alarm.state_value #=> String
7414
7417
  # resp.rule.error_action.cloudwatch_logs.role_arn #=> String
7415
7418
  # resp.rule.error_action.cloudwatch_logs.log_group_name #=> String
7419
+ # resp.rule.error_action.cloudwatch_logs.batch_mode #=> Boolean
7416
7420
  # resp.rule.error_action.elasticsearch.role_arn #=> String
7417
7421
  # resp.rule.error_action.elasticsearch.endpoint #=> String
7418
7422
  # resp.rule.error_action.elasticsearch.index #=> String
@@ -11404,6 +11408,7 @@ module Aws::IoT
11404
11408
  # cloudwatch_logs: {
11405
11409
  # role_arn: "AwsArn", # required
11406
11410
  # log_group_name: "LogGroupName", # required
11411
+ # batch_mode: false,
11407
11412
  # },
11408
11413
  # elasticsearch: {
11409
11414
  # role_arn: "AwsArn", # required
@@ -11606,6 +11611,7 @@ module Aws::IoT
11606
11611
  # cloudwatch_logs: {
11607
11612
  # role_arn: "AwsArn", # required
11608
11613
  # log_group_name: "LogGroupName", # required
11614
+ # batch_mode: false,
11609
11615
  # },
11610
11616
  # elasticsearch: {
11611
11617
  # role_arn: "AwsArn", # required
@@ -14061,7 +14067,7 @@ module Aws::IoT
14061
14067
  params: params,
14062
14068
  config: config)
14063
14069
  context[:gem_name] = 'aws-sdk-iot'
14064
- context[:gem_version] = '1.98.0'
14070
+ context[:gem_version] = '1.100.0'
14065
14071
  Seahorse::Client::Request.new(handlers, context)
14066
14072
  end
14067
14073
 
@@ -1763,6 +1763,7 @@ module Aws::IoT
1763
1763
 
1764
1764
  CloudwatchLogsAction.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, required: true, location_name: "roleArn"))
1765
1765
  CloudwatchLogsAction.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
1766
+ CloudwatchLogsAction.add_member(:batch_mode, Shapes::ShapeRef.new(shape: BatchMode, location_name: "batchMode"))
1766
1767
  CloudwatchLogsAction.struct_class = Types::CloudwatchLogsAction
1767
1768
 
1768
1769
  CloudwatchMetricAction.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, required: true, location_name: "roleArn"))
@@ -9,103 +9,43 @@
9
9
 
10
10
  module Aws::IoT
11
11
  class EndpointProvider
12
- def initialize(rule_set = nil)
13
- @@rule_set ||= begin
14
- endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
- Aws::Endpoints::RuleSet.new(
16
- version: endpoint_rules['version'],
17
- service_id: endpoint_rules['serviceId'],
18
- parameters: endpoint_rules['parameters'],
19
- rules: endpoint_rules['rules']
20
- )
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://iot-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://iot-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
- YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
- ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
- aWx0SW4iOiJBV1M6OlVzZUR1YWxTdGFjayIsInJlcXVpcmVkIjp0cnVlLCJk
36
- ZWZhdWx0IjpmYWxzZSwiZG9jdW1lbnRhdGlvbiI6IldoZW4gdHJ1ZSwgdXNl
37
- IHRoZSBkdWFsLXN0YWNrIGVuZHBvaW50LiBJZiB0aGUgY29uZmlndXJlZCBl
38
- bmRwb2ludCBkb2VzIG5vdCBzdXBwb3J0IGR1YWwtc3RhY2ssIGRpc3BhdGNo
39
- aW5nIHRoZSByZXF1ZXN0IE1BWSByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6
40
- IkJvb2xlYW4ifSwiVXNlRklQUyI6eyJidWlsdEluIjoiQVdTOjpVc2VGSVBT
41
- IiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZhbHNlLCJ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