aws-sdk-iot 1.99.0 → 1.101.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: 44067f3125ce33aa321e981987eb97ba919ed1638c0367144f9ad24fab9b386a
4
- data.tar.gz: 3721a84965df24762a2dddd1406200ea405fd068572de94f243a470c99043121
3
+ metadata.gz: 96636d17e491b5c5c4903497dc0c157d33547001dfac12c7bb3ffd17a9f3a737
4
+ data.tar.gz: 127d488f7ef299d5822ea0634b2f3ef679613ab28ebdca9d1dd7844247361460
5
5
  SHA512:
6
- metadata.gz: d865713df153f2ce1e3460832f77dadcb50a105f6e4113435c4a1b7082fb2d81d4d9a371e2b8e3bc182908d28d9b3b4a88b74b95f9c98adbf0b7913c4b197902
7
- data.tar.gz: 5de11a6806de24d3fe4cf550c190336a1de7a51125aa5a7cd1336961451bcef71dc43e578432b5058c227ab1d4bf04c4c4f49d84d6d2b1cc2046ef3674d0be69
6
+ metadata.gz: 59f0ac3f5b57edbf8a24583082a51e89c0d349308d7644596b2b9f94ed126cc923e9833ae8c6782013f51dda4f0da97d6532f9a82e3c018eed2f2c129b6442c7
7
+ data.tar.gz: 300bf8291fce0f89843c63df3191461b5e2fbe6bcf7e3c19f76f8a94750611c138c44cd7616b23de2cbefb8fd00f4430fbaf8b51bf58a206b27d7acaf82ea54d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.101.0 (2023-03-02)
5
+ ------------------
6
+
7
+ * Feature - A recurring maintenance window is an optional configuration used for rolling out the job document to all devices in the target group observing a predetermined start time, duration, and frequency that the maintenance window occurs.
8
+
9
+ 1.100.0 (2023-01-31)
10
+ ------------------
11
+
12
+ * Feature - Added support for IoT Rules Engine Cloudwatch Logs action batch mode.
13
+
4
14
  1.99.0 (2023-01-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.99.0
1
+ 1.101.0
@@ -1201,61 +1201,63 @@ module Aws::IoT
1201
1201
  # Creates an X.509 certificate using the specified certificate signing
1202
1202
  # request.
1203
1203
  #
1204
- # **Note:** The CSR must include a public key that is either an RSA key
1205
- # with a length of at least 2048 bits or an ECC key from NIST P-256,
1206
- # NIST P-384, or NIST P-512 curves. For supported certificates, consult
1207
- # [ Certificate signing algorithms supported by IoT][1].
1204
+ # Requires permission to access the [CreateCertificateFromCsr][1]
1205
+ # action.
1208
1206
  #
1209
- # **Note:** Reusing the same certificate signing request (CSR) results
1210
- # in a distinct certificate.
1207
+ # <note markdown="1"> The CSR must include a public key that is either an RSA key with a
1208
+ # length of at least 2048 bits or an ECC key from NIST P-25 or NIST
1209
+ # P-384 curves. For supported certificates, consult [ Certificate
1210
+ # signing algorithms supported by IoT][2].
1211
1211
  #
1212
- # Requires permission to access the [CreateCertificateFromCsr][2]
1213
- # action.
1212
+ # </note>
1213
+ #
1214
+ # <note markdown="1"> Reusing the same certificate signing request (CSR) results in a
1215
+ # distinct certificate.
1216
+ #
1217
+ # </note>
1214
1218
  #
1215
1219
  # You can create multiple certificates in a batch by creating a
1216
- # directory, copying multiple .csr files into that directory, and then
1220
+ # directory, copying multiple `.csr` files into that directory, and then
1217
1221
  # specifying that directory on the command line. The following commands
1218
- # show how to create a batch of certificates given a batch of CSRs.
1219
- #
1220
- # Assuming a set of CSRs are located inside of the directory
1221
- # my-csr-directory:
1222
+ # show how to create a batch of certificates given a batch of CSRs. In
1223
+ # the following commands, we assume that a set of CSRs are located
1224
+ # inside of the directory my-csr-directory:
1222
1225
  #
1223
1226
  # On Linux and OS X, the command is:
1224
1227
  #
1225
- # $ ls my-csr-directory/ \| xargs -I \\\{\\} aws iot
1228
+ # `$ ls my-csr-directory/ | xargs -I \{\} aws iot
1226
1229
  # create-certificate-from-csr --certificate-signing-request
1227
- # file://my-csr-directory/\\\{\\}
1230
+ # file://my-csr-directory/\{\}`
1228
1231
  #
1229
1232
  # This command lists all of the CSRs in my-csr-directory and pipes each
1230
- # CSR file name to the aws iot create-certificate-from-csr Amazon Web
1233
+ # CSR file name to the `aws iot create-certificate-from-csr` Amazon Web
1231
1234
  # Services CLI command to create a certificate for the corresponding
1232
1235
  # CSR.
1233
1236
  #
1234
- # The aws iot create-certificate-from-csr part of the command can also
1235
- # be run in parallel to speed up the certificate creation process:
1237
+ # You can also run the `aws iot create-certificate-from-csr` part of the
1238
+ # command in parallel to speed up the certificate creation process:
1236
1239
  #
1237
- # $ ls my-csr-directory/ \| xargs -P 10 -I \\\{\\} aws iot
1240
+ # `$ ls my-csr-directory/ | xargs -P 10 -I \{\} aws iot
1238
1241
  # create-certificate-from-csr --certificate-signing-request
1239
- # file://my-csr-directory/\\\{\\}
1242
+ # file://my-csr-directory/\{\} `
1240
1243
  #
1241
1244
  # On Windows PowerShell, the command to create certificates for all CSRs
1242
1245
  # in my-csr-directory is:
1243
1246
  #
1244
- # &gt; ls -Name my-csr-directory \| %\\\{aws iot
1245
- # create-certificate-from-csr --certificate-signing-request
1246
- # file://my-csr-directory/$\_\\}
1247
+ # `> ls -Name my-csr-directory | %\{aws iot create-certificate-from-csr
1248
+ # --certificate-signing-request file://my-csr-directory/$_\} `
1247
1249
  #
1248
1250
  # On a Windows command prompt, the command to create certificates for
1249
1251
  # all CSRs in my-csr-directory is:
1250
1252
  #
1251
- # &gt; forfiles /p my-csr-directory /c "cmd /c aws iot
1253
+ # `> forfiles /p my-csr-directory /c "cmd /c aws iot
1252
1254
  # create-certificate-from-csr --certificate-signing-request
1253
- # file://@path"
1255
+ # file://@path" `
1254
1256
  #
1255
1257
  #
1256
1258
  #
1257
- # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms
1258
- # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
1259
+ # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
1260
+ # [2]: https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms
1259
1261
  #
1260
1262
  # @option params [required, String] :certificate_signing_request
1261
1263
  # The certificate signing request (CSR).
@@ -1646,7 +1648,7 @@ module Aws::IoT
1646
1648
  #
1647
1649
  #
1648
1650
  #
1649
- # [1]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
1651
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
1650
1652
  #
1651
1653
  # @option params [Array<Types::Tag>] :tags
1652
1654
  # Metadata, which can be used to manage the fleet metric.
@@ -1864,6 +1866,12 @@ module Aws::IoT
1864
1866
  # start_time: "StringDateTime",
1865
1867
  # end_time: "StringDateTime",
1866
1868
  # end_behavior: "STOP_ROLLOUT", # accepts STOP_ROLLOUT, CANCEL, FORCE_CANCEL
1869
+ # maintenance_windows: [
1870
+ # {
1871
+ # start_time: "CronExpression", # required
1872
+ # duration_in_minutes: 1, # required
1873
+ # },
1874
+ # ],
1867
1875
  # },
1868
1876
  # })
1869
1877
  #
@@ -1940,6 +1948,10 @@ module Aws::IoT
1940
1948
  # @option params [Types::JobExecutionsRetryConfig] :job_executions_retry_config
1941
1949
  # Allows you to create the criteria to retry a job.
1942
1950
  #
1951
+ # @option params [Array<Types::MaintenanceWindow>] :maintenance_windows
1952
+ # Allows you to configure an optional maintenance window for the rollout
1953
+ # of a job document to all devices in the target group for a job.
1954
+ #
1943
1955
  # @return [Types::CreateJobTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1944
1956
  #
1945
1957
  # * {Types::CreateJobTemplateResponse#job_template_arn #job_template_arn} => String
@@ -1995,6 +2007,12 @@ module Aws::IoT
1995
2007
  # },
1996
2008
  # ],
1997
2009
  # },
2010
+ # maintenance_windows: [
2011
+ # {
2012
+ # start_time: "CronExpression", # required
2013
+ # duration_in_minutes: 1, # required
2014
+ # },
2015
+ # ],
1998
2016
  # })
1999
2017
  #
2000
2018
  # @example Response structure
@@ -3266,6 +3284,7 @@ module Aws::IoT
3266
3284
  # cloudwatch_logs: {
3267
3285
  # role_arn: "AwsArn", # required
3268
3286
  # log_group_name: "LogGroupName", # required
3287
+ # batch_mode: false,
3269
3288
  # },
3270
3289
  # elasticsearch: {
3271
3290
  # role_arn: "AwsArn", # required
@@ -3468,6 +3487,7 @@ module Aws::IoT
3468
3487
  # cloudwatch_logs: {
3469
3488
  # role_arn: "AwsArn", # required
3470
3489
  # log_group_name: "LogGroupName", # required
3490
+ # batch_mode: false,
3471
3491
  # },
3472
3492
  # elasticsearch: {
3473
3493
  # role_arn: "AwsArn", # required
@@ -5670,6 +5690,11 @@ module Aws::IoT
5670
5690
  # resp.job.scheduling_config.start_time #=> String
5671
5691
  # resp.job.scheduling_config.end_time #=> String
5672
5692
  # resp.job.scheduling_config.end_behavior #=> String, one of "STOP_ROLLOUT", "CANCEL", "FORCE_CANCEL"
5693
+ # resp.job.scheduling_config.maintenance_windows #=> Array
5694
+ # resp.job.scheduling_config.maintenance_windows[0].start_time #=> String
5695
+ # resp.job.scheduling_config.maintenance_windows[0].duration_in_minutes #=> Integer
5696
+ # resp.job.scheduled_job_rollouts #=> Array
5697
+ # resp.job.scheduled_job_rollouts[0].start_time #=> String
5673
5698
  #
5674
5699
  # @overload describe_job(params = {})
5675
5700
  # @param [Hash] params ({})
@@ -5748,6 +5773,7 @@ module Aws::IoT
5748
5773
  # * {Types::DescribeJobTemplateResponse#abort_config #abort_config} => Types::AbortConfig
5749
5774
  # * {Types::DescribeJobTemplateResponse#timeout_config #timeout_config} => Types::TimeoutConfig
5750
5775
  # * {Types::DescribeJobTemplateResponse#job_executions_retry_config #job_executions_retry_config} => Types::JobExecutionsRetryConfig
5776
+ # * {Types::DescribeJobTemplateResponse#maintenance_windows #maintenance_windows} => Array&lt;Types::MaintenanceWindow&gt;
5751
5777
  #
5752
5778
  # @example Request syntax with placeholder values
5753
5779
  #
@@ -5779,6 +5805,9 @@ module Aws::IoT
5779
5805
  # resp.job_executions_retry_config.criteria_list #=> Array
5780
5806
  # resp.job_executions_retry_config.criteria_list[0].failure_type #=> String, one of "FAILED", "TIMED_OUT", "ALL"
5781
5807
  # resp.job_executions_retry_config.criteria_list[0].number_of_retries #=> Integer
5808
+ # resp.maintenance_windows #=> Array
5809
+ # resp.maintenance_windows[0].start_time #=> String
5810
+ # resp.maintenance_windows[0].duration_in_minutes #=> Integer
5782
5811
  #
5783
5812
  # @overload describe_job_template(params = {})
5784
5813
  # @param [Hash] params ({})
@@ -7292,6 +7321,7 @@ module Aws::IoT
7292
7321
  # resp.rule.actions[0].cloudwatch_alarm.state_value #=> String
7293
7322
  # resp.rule.actions[0].cloudwatch_logs.role_arn #=> String
7294
7323
  # resp.rule.actions[0].cloudwatch_logs.log_group_name #=> String
7324
+ # resp.rule.actions[0].cloudwatch_logs.batch_mode #=> Boolean
7295
7325
  # resp.rule.actions[0].elasticsearch.role_arn #=> String
7296
7326
  # resp.rule.actions[0].elasticsearch.endpoint #=> String
7297
7327
  # resp.rule.actions[0].elasticsearch.index #=> String
@@ -7413,6 +7443,7 @@ module Aws::IoT
7413
7443
  # resp.rule.error_action.cloudwatch_alarm.state_value #=> String
7414
7444
  # resp.rule.error_action.cloudwatch_logs.role_arn #=> String
7415
7445
  # resp.rule.error_action.cloudwatch_logs.log_group_name #=> String
7446
+ # resp.rule.error_action.cloudwatch_logs.batch_mode #=> Boolean
7416
7447
  # resp.rule.error_action.elasticsearch.role_arn #=> String
7417
7448
  # resp.rule.error_action.elasticsearch.endpoint #=> String
7418
7449
  # resp.rule.error_action.elasticsearch.index #=> String
@@ -11404,6 +11435,7 @@ module Aws::IoT
11404
11435
  # cloudwatch_logs: {
11405
11436
  # role_arn: "AwsArn", # required
11406
11437
  # log_group_name: "LogGroupName", # required
11438
+ # batch_mode: false,
11407
11439
  # },
11408
11440
  # elasticsearch: {
11409
11441
  # role_arn: "AwsArn", # required
@@ -11606,6 +11638,7 @@ module Aws::IoT
11606
11638
  # cloudwatch_logs: {
11607
11639
  # role_arn: "AwsArn", # required
11608
11640
  # log_group_name: "LogGroupName", # required
11641
+ # batch_mode: false,
11609
11642
  # },
11610
11643
  # elasticsearch: {
11611
11644
  # role_arn: "AwsArn", # required
@@ -14061,7 +14094,7 @@ module Aws::IoT
14061
14094
  params: params,
14062
14095
  config: config)
14063
14096
  context[:gem_name] = 'aws-sdk-iot'
14064
- context[:gem_version] = '1.99.0'
14097
+ context[:gem_version] = '1.101.0'
14065
14098
  Seahorse::Client::Request.new(handlers, context)
14066
14099
  end
14067
14100
 
@@ -293,6 +293,7 @@ module Aws::IoT
293
293
  CreatedAtDate = Shapes::TimestampShape.new(name: 'CreatedAtDate')
294
294
  CreationDate = Shapes::TimestampShape.new(name: 'CreationDate')
295
295
  CredentialDurationSeconds = Shapes::IntegerShape.new(name: 'CredentialDurationSeconds')
296
+ CronExpression = Shapes::StringShape.new(name: 'CronExpression')
296
297
  CustomCodeSigning = Shapes::StructureShape.new(name: 'CustomCodeSigning')
297
298
  CustomMetricArn = Shapes::StringShape.new(name: 'CustomMetricArn')
298
299
  CustomMetricDisplayName = Shapes::StringShape.new(name: 'CustomMetricDisplayName')
@@ -475,6 +476,7 @@ module Aws::IoT
475
476
  DomainConfigurations = Shapes::ListShape.new(name: 'DomainConfigurations')
476
477
  DomainName = Shapes::StringShape.new(name: 'DomainName')
477
478
  DomainType = Shapes::StringShape.new(name: 'DomainType')
479
+ DurationInMinutes = Shapes::IntegerShape.new(name: 'DurationInMinutes')
478
480
  DurationSeconds = Shapes::IntegerShape.new(name: 'DurationSeconds')
479
481
  DynamicGroupStatus = Shapes::StringShape.new(name: 'DynamicGroupStatus')
480
482
  DynamoDBAction = Shapes::StructureShape.new(name: 'DynamoDBAction')
@@ -788,6 +790,8 @@ module Aws::IoT
788
790
  LogTargetType = Shapes::StringShape.new(name: 'LogTargetType')
789
791
  LoggingOptionsPayload = Shapes::StructureShape.new(name: 'LoggingOptionsPayload')
790
792
  MachineLearningDetectionConfig = Shapes::StructureShape.new(name: 'MachineLearningDetectionConfig')
793
+ MaintenanceWindow = Shapes::StructureShape.new(name: 'MaintenanceWindow')
794
+ MaintenanceWindows = Shapes::ListShape.new(name: 'MaintenanceWindows')
791
795
  MalformedPolicyException = Shapes::StructureShape.new(name: 'MalformedPolicyException')
792
796
  ManagedJobTemplateName = Shapes::StringShape.new(name: 'ManagedJobTemplateName')
793
797
  ManagedJobTemplateSummary = Shapes::StructureShape.new(name: 'ManagedJobTemplateSummary')
@@ -1006,6 +1010,8 @@ module Aws::IoT
1006
1010
  ScheduledAuditMetadata = Shapes::StructureShape.new(name: 'ScheduledAuditMetadata')
1007
1011
  ScheduledAuditMetadataList = Shapes::ListShape.new(name: 'ScheduledAuditMetadataList')
1008
1012
  ScheduledAuditName = Shapes::StringShape.new(name: 'ScheduledAuditName')
1013
+ ScheduledJobRollout = Shapes::StructureShape.new(name: 'ScheduledJobRollout')
1014
+ ScheduledJobRolloutList = Shapes::ListShape.new(name: 'ScheduledJobRolloutList')
1009
1015
  SchedulingConfig = Shapes::StructureShape.new(name: 'SchedulingConfig')
1010
1016
  SearchIndexRequest = Shapes::StructureShape.new(name: 'SearchIndexRequest')
1011
1017
  SearchIndexResponse = Shapes::StructureShape.new(name: 'SearchIndexResponse')
@@ -1763,6 +1769,7 @@ module Aws::IoT
1763
1769
 
1764
1770
  CloudwatchLogsAction.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, required: true, location_name: "roleArn"))
1765
1771
  CloudwatchLogsAction.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
1772
+ CloudwatchLogsAction.add_member(:batch_mode, Shapes::ShapeRef.new(shape: BatchMode, location_name: "batchMode"))
1766
1773
  CloudwatchLogsAction.struct_class = Types::CloudwatchLogsAction
1767
1774
 
1768
1775
  CloudwatchMetricAction.add_member(:role_arn, Shapes::ShapeRef.new(shape: AwsArn, required: true, location_name: "roleArn"))
@@ -1943,6 +1950,7 @@ module Aws::IoT
1943
1950
  CreateJobTemplateRequest.add_member(:timeout_config, Shapes::ShapeRef.new(shape: TimeoutConfig, location_name: "timeoutConfig"))
1944
1951
  CreateJobTemplateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
1945
1952
  CreateJobTemplateRequest.add_member(:job_executions_retry_config, Shapes::ShapeRef.new(shape: JobExecutionsRetryConfig, location_name: "jobExecutionsRetryConfig"))
1953
+ CreateJobTemplateRequest.add_member(:maintenance_windows, Shapes::ShapeRef.new(shape: MaintenanceWindows, location_name: "maintenanceWindows"))
1946
1954
  CreateJobTemplateRequest.struct_class = Types::CreateJobTemplateRequest
1947
1955
 
1948
1956
  CreateJobTemplateResponse.add_member(:job_template_arn, Shapes::ShapeRef.new(shape: JobTemplateArn, location_name: "jobTemplateArn"))
@@ -2505,6 +2513,7 @@ module Aws::IoT
2505
2513
  DescribeJobTemplateResponse.add_member(:abort_config, Shapes::ShapeRef.new(shape: AbortConfig, location_name: "abortConfig"))
2506
2514
  DescribeJobTemplateResponse.add_member(:timeout_config, Shapes::ShapeRef.new(shape: TimeoutConfig, location_name: "timeoutConfig"))
2507
2515
  DescribeJobTemplateResponse.add_member(:job_executions_retry_config, Shapes::ShapeRef.new(shape: JobExecutionsRetryConfig, location_name: "jobExecutionsRetryConfig"))
2516
+ DescribeJobTemplateResponse.add_member(:maintenance_windows, Shapes::ShapeRef.new(shape: MaintenanceWindows, location_name: "maintenanceWindows"))
2508
2517
  DescribeJobTemplateResponse.struct_class = Types::DescribeJobTemplateResponse
2509
2518
 
2510
2519
  DescribeManagedJobTemplateRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: ManagedJobTemplateName, required: true, location: "uri", location_name: "templateName"))
@@ -3063,6 +3072,7 @@ module Aws::IoT
3063
3072
  Job.add_member(:document_parameters, Shapes::ShapeRef.new(shape: ParameterMap, location_name: "documentParameters"))
3064
3073
  Job.add_member(:is_concurrent, Shapes::ShapeRef.new(shape: BooleanWrapperObject, location_name: "isConcurrent"))
3065
3074
  Job.add_member(:scheduling_config, Shapes::ShapeRef.new(shape: SchedulingConfig, location_name: "schedulingConfig"))
3075
+ Job.add_member(:scheduled_job_rollouts, Shapes::ShapeRef.new(shape: ScheduledJobRolloutList, location_name: "scheduledJobRollouts"))
3066
3076
  Job.struct_class = Types::Job
3067
3077
 
3068
3078
  JobExecution.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "jobId"))
@@ -3755,6 +3765,12 @@ module Aws::IoT
3755
3765
  MachineLearningDetectionConfig.add_member(:confidence_level, Shapes::ShapeRef.new(shape: ConfidenceLevel, required: true, location_name: "confidenceLevel"))
3756
3766
  MachineLearningDetectionConfig.struct_class = Types::MachineLearningDetectionConfig
3757
3767
 
3768
+ MaintenanceWindow.add_member(:start_time, Shapes::ShapeRef.new(shape: CronExpression, required: true, location_name: "startTime"))
3769
+ MaintenanceWindow.add_member(:duration_in_minutes, Shapes::ShapeRef.new(shape: DurationInMinutes, required: true, location_name: "durationInMinutes"))
3770
+ MaintenanceWindow.struct_class = Types::MaintenanceWindow
3771
+
3772
+ MaintenanceWindows.member = Shapes::ShapeRef.new(shape: MaintenanceWindow)
3773
+
3758
3774
  MalformedPolicyException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
3759
3775
  MalformedPolicyException.struct_class = Types::MalformedPolicyException
3760
3776
 
@@ -4161,9 +4177,15 @@ module Aws::IoT
4161
4177
 
4162
4178
  ScheduledAuditMetadataList.member = Shapes::ShapeRef.new(shape: ScheduledAuditMetadata)
4163
4179
 
4180
+ ScheduledJobRollout.add_member(:start_time, Shapes::ShapeRef.new(shape: StringDateTime, location_name: "startTime"))
4181
+ ScheduledJobRollout.struct_class = Types::ScheduledJobRollout
4182
+
4183
+ ScheduledJobRolloutList.member = Shapes::ShapeRef.new(shape: ScheduledJobRollout)
4184
+
4164
4185
  SchedulingConfig.add_member(:start_time, Shapes::ShapeRef.new(shape: StringDateTime, location_name: "startTime"))
4165
4186
  SchedulingConfig.add_member(:end_time, Shapes::ShapeRef.new(shape: StringDateTime, location_name: "endTime"))
4166
4187
  SchedulingConfig.add_member(:end_behavior, Shapes::ShapeRef.new(shape: JobEndBehavior, location_name: "endBehavior"))
4188
+ SchedulingConfig.add_member(:maintenance_windows, Shapes::ShapeRef.new(shape: MaintenanceWindows, location_name: "maintenanceWindows"))
4167
4189
  SchedulingConfig.struct_class = Types::SchedulingConfig
4168
4190
 
4169
4191
  SearchIndexRequest.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "indexName"))
@@ -50,9 +50,6 @@ module Aws::IoT
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,48 @@ module Aws::IoT
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
+ end
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ 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"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://iot-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
19
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://iot-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
21
39
  end
22
40
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
24
45
  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: {})
46
+ if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
47
+ return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.amazonaws.com", headers: {}, properties: {})
30
48
  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: {})
49
+ if Aws::Endpoints::Matchers.string_equals?("aws-cn", Aws::Endpoints::Matchers.attr(partition_result, "name"))
50
+ return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.amazonaws.com.cn", headers: {}, properties: {})
36
51
  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: {})
52
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
53
+ return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.amazonaws.com", headers: {}, properties: {})
42
54
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
55
+ return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
56
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://iot.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
57
  end
58
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
59
  raise ArgumentError, 'No endpoint could be resolved'
48
60
 
49
61
  end
@@ -1969,9 +1969,16 @@ module Aws::IoT
1969
1969
  # The CloudWatch log group to which the action sends data.
1970
1970
  # @return [String]
1971
1971
  #
1972
+ # @!attribute [rw] batch_mode
1973
+ # Indicates whether batches of log records will be extracted and
1974
+ # uploaded into CloudWatch. Values include `true` or `false`
1975
+ # *(default)*.
1976
+ # @return [Boolean]
1977
+ #
1972
1978
  class CloudwatchLogsAction < Struct.new(
1973
1979
  :role_arn,
1974
- :log_group_name)
1980
+ :log_group_name,
1981
+ :batch_mode)
1975
1982
  SENSITIVE = []
1976
1983
  include Aws::Structure
1977
1984
  end
@@ -2652,7 +2659,7 @@ module Aws::IoT
2652
2659
  #
2653
2660
  #
2654
2661
  #
2655
- # [1]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
2662
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
2656
2663
  # @return [String]
2657
2664
  #
2658
2665
  # @!attribute [rw] tags
@@ -2908,6 +2915,12 @@ module Aws::IoT
2908
2915
  # Allows you to create the criteria to retry a job.
2909
2916
  # @return [Types::JobExecutionsRetryConfig]
2910
2917
  #
2918
+ # @!attribute [rw] maintenance_windows
2919
+ # Allows you to configure an optional maintenance window for the
2920
+ # rollout of a job document to all devices in the target group for a
2921
+ # job.
2922
+ # @return [Array<Types::MaintenanceWindow>]
2923
+ #
2911
2924
  class CreateJobTemplateRequest < Struct.new(
2912
2925
  :job_template_id,
2913
2926
  :job_arn,
@@ -2919,7 +2932,8 @@ module Aws::IoT
2919
2932
  :abort_config,
2920
2933
  :timeout_config,
2921
2934
  :tags,
2922
- :job_executions_retry_config)
2935
+ :job_executions_retry_config,
2936
+ :maintenance_windows)
2923
2937
  SENSITIVE = []
2924
2938
  include Aws::Structure
2925
2939
  end
@@ -5152,7 +5166,7 @@ module Aws::IoT
5152
5166
  #
5153
5167
  #
5154
5168
  #
5155
- # [1]: https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
5169
+ # [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html
5156
5170
  # @return [String]
5157
5171
  #
5158
5172
  # @!attribute [rw] version
@@ -5347,6 +5361,12 @@ module Aws::IoT
5347
5361
  # each failure type for a job.
5348
5362
  # @return [Types::JobExecutionsRetryConfig]
5349
5363
  #
5364
+ # @!attribute [rw] maintenance_windows
5365
+ # Allows you to configure an optional maintenance window for the
5366
+ # rollout of a job document to all devices in the target group for a
5367
+ # job.
5368
+ # @return [Array<Types::MaintenanceWindow>]
5369
+ #
5350
5370
  class DescribeJobTemplateResponse < Struct.new(
5351
5371
  :job_template_arn,
5352
5372
  :job_template_id,
@@ -5358,7 +5378,8 @@ module Aws::IoT
5358
5378
  :job_executions_rollout_config,
5359
5379
  :abort_config,
5360
5380
  :timeout_config,
5361
- :job_executions_retry_config)
5381
+ :job_executions_retry_config,
5382
+ :maintenance_windows)
5362
5383
  SENSITIVE = []
5363
5384
  include Aws::Structure
5364
5385
  end
@@ -7809,6 +7830,11 @@ module Aws::IoT
7809
7830
  # job execution.
7810
7831
  # @return [Types::SchedulingConfig]
7811
7832
  #
7833
+ # @!attribute [rw] scheduled_job_rollouts
7834
+ # Displays the next seven maintenance window occurrences and their
7835
+ # start times.
7836
+ # @return [Array<Types::ScheduledJobRollout>]
7837
+ #
7812
7838
  class Job < Struct.new(
7813
7839
  :job_arn,
7814
7840
  :job_id,
@@ -7832,7 +7858,8 @@ module Aws::IoT
7832
7858
  :job_executions_retry_config,
7833
7859
  :document_parameters,
7834
7860
  :is_concurrent,
7835
- :scheduling_config)
7861
+ :scheduling_config,
7862
+ :scheduled_job_rollouts)
7836
7863
  SENSITIVE = []
7837
7864
  include Aws::Structure
7838
7865
  end
@@ -10910,6 +10937,26 @@ module Aws::IoT
10910
10937
  include Aws::Structure
10911
10938
  end
10912
10939
 
10940
+ # An optional configuration within the `SchedulingConfig` to setup a
10941
+ # recurring maintenance window with a predetermined start time and
10942
+ # duration for the rollout of a job document to all devices in a target
10943
+ # group for a job.
10944
+ #
10945
+ # @!attribute [rw] start_time
10946
+ # Displays the start time of the next maintenance window.
10947
+ # @return [String]
10948
+ #
10949
+ # @!attribute [rw] duration_in_minutes
10950
+ # Displays the duration of the next maintenance window.
10951
+ # @return [Integer]
10952
+ #
10953
+ class MaintenanceWindow < Struct.new(
10954
+ :start_time,
10955
+ :duration_in_minutes)
10956
+ SENSITIVE = []
10957
+ include Aws::Structure
10958
+ end
10959
+
10913
10960
  # The policy documentation is not valid.
10914
10961
  #
10915
10962
  # @!attribute [rw] message
@@ -12549,6 +12596,20 @@ module Aws::IoT
12549
12596
  include Aws::Structure
12550
12597
  end
12551
12598
 
12599
+ # Displays the next seven maintenance window occurrences and their start
12600
+ # times.
12601
+ #
12602
+ # @!attribute [rw] start_time
12603
+ # Displays the start times of the next seven maintenance window
12604
+ # occurrences.
12605
+ # @return [String]
12606
+ #
12607
+ class ScheduledJobRollout < Struct.new(
12608
+ :start_time)
12609
+ SENSITIVE = []
12610
+ include Aws::Structure
12611
+ end
12612
+
12552
12613
  # Specifies the date and time that a job will begin the rollout of the
12553
12614
  # job document to all devices in the target group. Additionally, you can
12554
12615
  # specify the end behavior for each job execution when it reaches the
@@ -12558,7 +12619,8 @@ module Aws::IoT
12558
12619
  # The time a job will begin rollout of the job document to all devices
12559
12620
  # in the target group for a job. The `startTime` can be scheduled up
12560
12621
  # to a year in advance and must be scheduled a minimum of thirty
12561
- # minutes from the current time.
12622
+ # minutes from the current time. The date and time format for the
12623
+ # `startTime` is YYYY-MM-DD for the date and HH:MM for the time.
12562
12624
  # @return [String]
12563
12625
  #
12564
12626
  # @!attribute [rw] end_time
@@ -12567,7 +12629,9 @@ module Aws::IoT
12567
12629
  # later than two years from the current time and be scheduled a
12568
12630
  # minimum of thirty minutes from the current time. The minimum
12569
12631
  # duration between `startTime` and `endTime` is thirty minutes. The
12570
- # maximum duration between `startTime` and `endTime` is two years.
12632
+ # maximum duration between `startTime` and `endTime` is two years. The
12633
+ # date and time format for the `endTime` is YYYY-MM-DD for the date
12634
+ # and HH:MM for the time.
12571
12635
  # @return [String]
12572
12636
  #
12573
12637
  # @!attribute [rw] end_behavior
@@ -12576,10 +12640,18 @@ module Aws::IoT
12576
12640
  # creating the job, then `endBehavior` does not apply.
12577
12641
  # @return [String]
12578
12642
  #
12643
+ # @!attribute [rw] maintenance_windows
12644
+ # An optional configuration within the `SchedulingConfig` to setup a
12645
+ # recurring maintenance window with a predetermined start time and
12646
+ # duration for the rollout of a job document to all devices in a
12647
+ # target group for a job.
12648
+ # @return [Array<Types::MaintenanceWindow>]
12649
+ #
12579
12650
  class SchedulingConfig < Struct.new(
12580
12651
  :start_time,
12581
12652
  :end_time,
12582
- :end_behavior)
12653
+ :end_behavior,
12654
+ :maintenance_windows)
12583
12655
  SENSITIVE = []
12584
12656
  include Aws::Structure
12585
12657
  end
data/lib/aws-sdk-iot.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-iot/customizations'
52
52
  # @!group service
53
53
  module Aws::IoT
54
54
 
55
- GEM_VERSION = '1.99.0'
55
+ GEM_VERSION = '1.101.0'
56
56
 
57
57
  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.99.0
4
+ version: 1.101.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: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core