aws-sdk-iot 1.93.0 → 1.94.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iot/client.rb +58 -35
- data/lib/aws-sdk-iot/client_api.rb +7 -0
- data/lib/aws-sdk-iot/types.rb +104 -54
- data/lib/aws-sdk-iot.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48af15b064378f429ba5c7af2e343845baaa6e8ff643090a9d6dfc911304fe3a
|
4
|
+
data.tar.gz: 4e4224f2afa3e3e5722419a42e8cbed95b61fbf3a6881fc224e171e93ca7fbb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d38399f5d0101674324018a06ed7d8e4ab33ec02697055bf465c89ae3ab92cd1fed6de0d3a442dc0194a8198c1d4ced89ecb09f52e461a6d2fc11e1474b2b893
|
7
|
+
data.tar.gz: 83ff5efb5cc00f8b51f842b26c0b8252171cd4f2ae59c0423461b3899ab52349b6f4424e1bcc63d8a9be46f1536727bc4a08535e1a1065132456f3bc95260604
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.94.0 (2022-08-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - The release is to support attach a provisioning template to CACert for JITP function, Customer now doesn't have to hardcode a roleArn and templateBody during register a CACert to enable JITP.
|
8
|
+
|
4
9
|
1.93.0 (2022-07-20)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.94.0
|
data/lib/aws-sdk-iot/client.rb
CHANGED
@@ -2447,7 +2447,7 @@ module Aws::IoT
|
|
2447
2447
|
req.send_request(options)
|
2448
2448
|
end
|
2449
2449
|
|
2450
|
-
# Creates a
|
2450
|
+
# Creates a provisioning template.
|
2451
2451
|
#
|
2452
2452
|
# Requires permission to access the [CreateProvisioningTemplate][1]
|
2453
2453
|
# action.
|
@@ -2457,26 +2457,26 @@ module Aws::IoT
|
|
2457
2457
|
# [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
|
2458
2458
|
#
|
2459
2459
|
# @option params [required, String] :template_name
|
2460
|
-
# The name of the
|
2460
|
+
# The name of the provisioning template.
|
2461
2461
|
#
|
2462
2462
|
# @option params [String] :description
|
2463
|
-
# The description of the
|
2463
|
+
# The description of the provisioning template.
|
2464
2464
|
#
|
2465
2465
|
# @option params [required, String] :template_body
|
2466
|
-
# The JSON formatted contents of the
|
2466
|
+
# The JSON formatted contents of the provisioning template.
|
2467
2467
|
#
|
2468
2468
|
# @option params [Boolean] :enabled
|
2469
|
-
# True to enable the
|
2469
|
+
# True to enable the provisioning template, otherwise false.
|
2470
2470
|
#
|
2471
2471
|
# @option params [required, String] :provisioning_role_arn
|
2472
|
-
# The role ARN for the role associated with the
|
2473
|
-
#
|
2472
|
+
# The role ARN for the role associated with the provisioning template.
|
2473
|
+
# This IoT role grants permission to provision a device.
|
2474
2474
|
#
|
2475
2475
|
# @option params [Types::ProvisioningHook] :pre_provisioning_hook
|
2476
2476
|
# Creates a pre-provisioning hook template.
|
2477
2477
|
#
|
2478
2478
|
# @option params [Array<Types::Tag>] :tags
|
2479
|
-
# Metadata which can be used to manage the
|
2479
|
+
# Metadata which can be used to manage the provisioning template.
|
2480
2480
|
#
|
2481
2481
|
# <note markdown="1"> For URI Request parameters use format:
|
2482
2482
|
# ...key1=value1&key2=value2...
|
@@ -2489,6 +2489,17 @@ module Aws::IoT
|
|
2489
2489
|
#
|
2490
2490
|
# </note>
|
2491
2491
|
#
|
2492
|
+
# @option params [String] :type
|
2493
|
+
# The type you define in a provisioning template. You can create a
|
2494
|
+
# template with only one type. You can't change the template type after
|
2495
|
+
# its creation. The default value is `FLEET_PROVISIONING`. For more
|
2496
|
+
# information about provisioning template, see: [Provisioning
|
2497
|
+
# template][1].
|
2498
|
+
#
|
2499
|
+
#
|
2500
|
+
#
|
2501
|
+
# [1]: https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html
|
2502
|
+
#
|
2492
2503
|
# @return [Types::CreateProvisioningTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2493
2504
|
#
|
2494
2505
|
# * {Types::CreateProvisioningTemplateResponse#template_arn #template_arn} => String
|
@@ -2513,6 +2524,7 @@ module Aws::IoT
|
|
2513
2524
|
# value: "TagValue",
|
2514
2525
|
# },
|
2515
2526
|
# ],
|
2527
|
+
# type: "FLEET_PROVISIONING", # accepts FLEET_PROVISIONING, JITP
|
2516
2528
|
# })
|
2517
2529
|
#
|
2518
2530
|
# @example Response structure
|
@@ -2528,7 +2540,7 @@ module Aws::IoT
|
|
2528
2540
|
req.send_request(options)
|
2529
2541
|
end
|
2530
2542
|
|
2531
|
-
# Creates a new version of a
|
2543
|
+
# Creates a new version of a provisioning template.
|
2532
2544
|
#
|
2533
2545
|
# Requires permission to access the
|
2534
2546
|
# [CreateProvisioningTemplateVersion][1] action.
|
@@ -2538,10 +2550,10 @@ module Aws::IoT
|
|
2538
2550
|
# [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
|
2539
2551
|
#
|
2540
2552
|
# @option params [required, String] :template_name
|
2541
|
-
# The name of the
|
2553
|
+
# The name of the provisioning template.
|
2542
2554
|
#
|
2543
2555
|
# @option params [required, String] :template_body
|
2544
|
-
# The JSON formatted contents of the
|
2556
|
+
# The JSON formatted contents of the provisioning template.
|
2545
2557
|
#
|
2546
2558
|
# @option params [Boolean] :set_as_default
|
2547
2559
|
# Sets a fleet provision template version as the default version.
|
@@ -4198,7 +4210,7 @@ module Aws::IoT
|
|
4198
4210
|
req.send_request(options)
|
4199
4211
|
end
|
4200
4212
|
|
4201
|
-
# Deletes a
|
4213
|
+
# Deletes a provisioning template.
|
4202
4214
|
#
|
4203
4215
|
# Requires permission to access the [DeleteProvisioningTemplate][1]
|
4204
4216
|
# action.
|
@@ -4225,7 +4237,7 @@ module Aws::IoT
|
|
4225
4237
|
req.send_request(options)
|
4226
4238
|
end
|
4227
4239
|
|
4228
|
-
# Deletes a
|
4240
|
+
# Deletes a provisioning template version.
|
4229
4241
|
#
|
4230
4242
|
# Requires permission to access the
|
4231
4243
|
# [DeleteProvisioningTemplateVersion][1] action.
|
@@ -4235,10 +4247,10 @@ module Aws::IoT
|
|
4235
4247
|
# [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
|
4236
4248
|
#
|
4237
4249
|
# @option params [required, String] :template_name
|
4238
|
-
# The name of the
|
4250
|
+
# The name of the provisioning template version to delete.
|
4239
4251
|
#
|
4240
4252
|
# @option params [required, Integer] :version_id
|
4241
|
-
# The
|
4253
|
+
# The provisioning template version ID to delete.
|
4242
4254
|
#
|
4243
4255
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
4244
4256
|
#
|
@@ -5002,6 +5014,7 @@ module Aws::IoT
|
|
5002
5014
|
# resp.certificate_description.certificate_mode #=> String, one of "DEFAULT", "SNI_ONLY"
|
5003
5015
|
# resp.registration_config.template_body #=> String
|
5004
5016
|
# resp.registration_config.role_arn #=> String
|
5017
|
+
# resp.registration_config.template_name #=> String
|
5005
5018
|
#
|
5006
5019
|
# @overload describe_ca_certificate(params = {})
|
5007
5020
|
# @param [Hash] params ({})
|
@@ -5764,7 +5777,7 @@ module Aws::IoT
|
|
5764
5777
|
req.send_request(options)
|
5765
5778
|
end
|
5766
5779
|
|
5767
|
-
# Returns information about a
|
5780
|
+
# Returns information about a provisioning template.
|
5768
5781
|
#
|
5769
5782
|
# Requires permission to access the [DescribeProvisioningTemplate][1]
|
5770
5783
|
# action.
|
@@ -5774,7 +5787,7 @@ module Aws::IoT
|
|
5774
5787
|
# [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
|
5775
5788
|
#
|
5776
5789
|
# @option params [required, String] :template_name
|
5777
|
-
# The name of the
|
5790
|
+
# The name of the provisioning template.
|
5778
5791
|
#
|
5779
5792
|
# @return [Types::DescribeProvisioningTemplateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5780
5793
|
#
|
@@ -5788,6 +5801,7 @@ module Aws::IoT
|
|
5788
5801
|
# * {Types::DescribeProvisioningTemplateResponse#enabled #enabled} => Boolean
|
5789
5802
|
# * {Types::DescribeProvisioningTemplateResponse#provisioning_role_arn #provisioning_role_arn} => String
|
5790
5803
|
# * {Types::DescribeProvisioningTemplateResponse#pre_provisioning_hook #pre_provisioning_hook} => Types::ProvisioningHook
|
5804
|
+
# * {Types::DescribeProvisioningTemplateResponse#type #type} => String
|
5791
5805
|
#
|
5792
5806
|
# @example Request syntax with placeholder values
|
5793
5807
|
#
|
@@ -5808,6 +5822,7 @@ module Aws::IoT
|
|
5808
5822
|
# resp.provisioning_role_arn #=> String
|
5809
5823
|
# resp.pre_provisioning_hook.payload_version #=> String
|
5810
5824
|
# resp.pre_provisioning_hook.target_arn #=> String
|
5825
|
+
# resp.type #=> String, one of "FLEET_PROVISIONING", "JITP"
|
5811
5826
|
#
|
5812
5827
|
# @overload describe_provisioning_template(params = {})
|
5813
5828
|
# @param [Hash] params ({})
|
@@ -5816,7 +5831,7 @@ module Aws::IoT
|
|
5816
5831
|
req.send_request(options)
|
5817
5832
|
end
|
5818
5833
|
|
5819
|
-
# Returns information about a
|
5834
|
+
# Returns information about a provisioning template version.
|
5820
5835
|
#
|
5821
5836
|
# Requires permission to access the
|
5822
5837
|
# [DescribeProvisioningTemplateVersion][1] action.
|
@@ -5829,7 +5844,7 @@ module Aws::IoT
|
|
5829
5844
|
# The template name.
|
5830
5845
|
#
|
5831
5846
|
# @option params [required, Integer] :version_id
|
5832
|
-
# The
|
5847
|
+
# The provisioning template version ID.
|
5833
5848
|
#
|
5834
5849
|
# @return [Types::DescribeProvisioningTemplateVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5835
5850
|
#
|
@@ -6301,9 +6316,9 @@ module Aws::IoT
|
|
6301
6316
|
|
6302
6317
|
# Removes the specified policy from the specified certificate.
|
6303
6318
|
#
|
6304
|
-
#
|
6305
|
-
#
|
6306
|
-
#
|
6319
|
+
# **Note:** This action is deprecated and works as expected for backward
|
6320
|
+
# compatibility, but we won't add enhancements. Use DetachPolicy
|
6321
|
+
# instead.
|
6307
6322
|
#
|
6308
6323
|
# Requires permission to access the [DetachPrincipalPolicy][1] action.
|
6309
6324
|
#
|
@@ -8080,6 +8095,9 @@ module Aws::IoT
|
|
8080
8095
|
# @option params [Boolean] :ascending_order
|
8081
8096
|
# Determines the order of the results.
|
8082
8097
|
#
|
8098
|
+
# @option params [String] :template_name
|
8099
|
+
# The name of the provisioning template.
|
8100
|
+
#
|
8083
8101
|
# @return [Types::ListCACertificatesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8084
8102
|
#
|
8085
8103
|
# * {Types::ListCACertificatesResponse#certificates #certificates} => Array<Types::CACertificate>
|
@@ -8093,6 +8111,7 @@ module Aws::IoT
|
|
8093
8111
|
# page_size: 1,
|
8094
8112
|
# marker: "Marker",
|
8095
8113
|
# ascending_order: false,
|
8114
|
+
# template_name: "TemplateName",
|
8096
8115
|
# })
|
8097
8116
|
#
|
8098
8117
|
# @example Response structure
|
@@ -9176,8 +9195,9 @@ module Aws::IoT
|
|
9176
9195
|
|
9177
9196
|
# Lists the principals associated with the specified policy.
|
9178
9197
|
#
|
9179
|
-
# **Note:** This action is deprecated
|
9180
|
-
#
|
9198
|
+
# **Note:** This action is deprecated and works as expected for backward
|
9199
|
+
# compatibility, but we won't add enhancements. Use
|
9200
|
+
# ListTargetsForPolicy instead.
|
9181
9201
|
#
|
9182
9202
|
# Requires permission to access the [ListPolicyPrincipals][1] action.
|
9183
9203
|
#
|
@@ -9267,8 +9287,9 @@ module Aws::IoT
|
|
9267
9287
|
# Cognito identity, the ID must be in [AmazonCognito Identity
|
9268
9288
|
# format][1].
|
9269
9289
|
#
|
9270
|
-
# **Note:** This action is deprecated
|
9271
|
-
#
|
9290
|
+
# **Note:** This action is deprecated and works as expected for backward
|
9291
|
+
# compatibility, but we won't add enhancements. Use
|
9292
|
+
# ListAttachedPolicies instead.
|
9272
9293
|
#
|
9273
9294
|
# Requires permission to access the [ListPrincipalPolicies][2] action.
|
9274
9295
|
#
|
@@ -9373,7 +9394,7 @@ module Aws::IoT
|
|
9373
9394
|
req.send_request(options)
|
9374
9395
|
end
|
9375
9396
|
|
9376
|
-
# A list of
|
9397
|
+
# A list of provisioning template versions.
|
9377
9398
|
#
|
9378
9399
|
# Requires permission to access the
|
9379
9400
|
# [ListProvisioningTemplateVersions][1] action.
|
@@ -9383,7 +9404,7 @@ module Aws::IoT
|
|
9383
9404
|
# [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
|
9384
9405
|
#
|
9385
9406
|
# @option params [required, String] :template_name
|
9386
|
-
# The name of the
|
9407
|
+
# The name of the provisioning template.
|
9387
9408
|
#
|
9388
9409
|
# @option params [Integer] :max_results
|
9389
9410
|
# The maximum number of results to return at one time.
|
@@ -9421,8 +9442,7 @@ module Aws::IoT
|
|
9421
9442
|
req.send_request(options)
|
9422
9443
|
end
|
9423
9444
|
|
9424
|
-
# Lists the
|
9425
|
-
# account.
|
9445
|
+
# Lists the provisioning templates in your Amazon Web Services account.
|
9426
9446
|
#
|
9427
9447
|
# Requires permission to access the [ListProvisioningTemplates][1]
|
9428
9448
|
# action.
|
@@ -9460,6 +9480,7 @@ module Aws::IoT
|
|
9460
9480
|
# resp.templates[0].creation_date #=> Time
|
9461
9481
|
# resp.templates[0].last_modified_date #=> Time
|
9462
9482
|
# resp.templates[0].enabled #=> Boolean
|
9483
|
+
# resp.templates[0].type #=> String, one of "FLEET_PROVISIONING", "JITP"
|
9463
9484
|
# resp.next_token #=> String
|
9464
9485
|
#
|
9465
9486
|
# @overload list_provisioning_templates(params = {})
|
@@ -10717,6 +10738,7 @@ module Aws::IoT
|
|
10717
10738
|
# registration_config: {
|
10718
10739
|
# template_body: "TemplateBody",
|
10719
10740
|
# role_arn: "RoleArn",
|
10741
|
+
# template_name: "TemplateName",
|
10720
10742
|
# },
|
10721
10743
|
# tags: [
|
10722
10744
|
# {
|
@@ -12425,6 +12447,7 @@ module Aws::IoT
|
|
12425
12447
|
# registration_config: {
|
12426
12448
|
# template_body: "TemplateBody",
|
12427
12449
|
# role_arn: "RoleArn",
|
12450
|
+
# template_name: "TemplateName",
|
12428
12451
|
# },
|
12429
12452
|
# remove_auto_registration: false,
|
12430
12453
|
# })
|
@@ -13034,7 +13057,7 @@ module Aws::IoT
|
|
13034
13057
|
req.send_request(options)
|
13035
13058
|
end
|
13036
13059
|
|
13037
|
-
# Updates a
|
13060
|
+
# Updates a provisioning template.
|
13038
13061
|
#
|
13039
13062
|
# Requires permission to access the [UpdateProvisioningTemplate][1]
|
13040
13063
|
# action.
|
@@ -13044,13 +13067,13 @@ module Aws::IoT
|
|
13044
13067
|
# [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
|
13045
13068
|
#
|
13046
13069
|
# @option params [required, String] :template_name
|
13047
|
-
# The name of the
|
13070
|
+
# The name of the provisioning template.
|
13048
13071
|
#
|
13049
13072
|
# @option params [String] :description
|
13050
|
-
# The description of the
|
13073
|
+
# The description of the provisioning template.
|
13051
13074
|
#
|
13052
13075
|
# @option params [Boolean] :enabled
|
13053
|
-
# True to enable the
|
13076
|
+
# True to enable the provisioning template, otherwise false.
|
13054
13077
|
#
|
13055
13078
|
# @option params [Integer] :default_version_id
|
13056
13079
|
# The ID of the default provisioning template version.
|
@@ -13723,7 +13746,7 @@ module Aws::IoT
|
|
13723
13746
|
params: params,
|
13724
13747
|
config: config)
|
13725
13748
|
context[:gem_name] = 'aws-sdk-iot'
|
13726
|
-
context[:gem_version] = '1.
|
13749
|
+
context[:gem_version] = '1.94.0'
|
13727
13750
|
Seahorse::Client::Request.new(handlers, context)
|
13728
13751
|
end
|
13729
13752
|
|
@@ -1104,6 +1104,7 @@ module Aws::IoT
|
|
1104
1104
|
TemplateBody = Shapes::StringShape.new(name: 'TemplateBody')
|
1105
1105
|
TemplateDescription = Shapes::StringShape.new(name: 'TemplateDescription')
|
1106
1106
|
TemplateName = Shapes::StringShape.new(name: 'TemplateName')
|
1107
|
+
TemplateType = Shapes::StringShape.new(name: 'TemplateType')
|
1107
1108
|
TemplateVersionId = Shapes::IntegerShape.new(name: 'TemplateVersionId')
|
1108
1109
|
TermsAggregation = Shapes::StructureShape.new(name: 'TermsAggregation')
|
1109
1110
|
TestAuthorizationRequest = Shapes::StructureShape.new(name: 'TestAuthorizationRequest')
|
@@ -2004,6 +2005,7 @@ module Aws::IoT
|
|
2004
2005
|
CreateProvisioningTemplateRequest.add_member(:provisioning_role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "provisioningRoleArn"))
|
2005
2006
|
CreateProvisioningTemplateRequest.add_member(:pre_provisioning_hook, Shapes::ShapeRef.new(shape: ProvisioningHook, location_name: "preProvisioningHook"))
|
2006
2007
|
CreateProvisioningTemplateRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
2008
|
+
CreateProvisioningTemplateRequest.add_member(:type, Shapes::ShapeRef.new(shape: TemplateType, location_name: "type"))
|
2007
2009
|
CreateProvisioningTemplateRequest.struct_class = Types::CreateProvisioningTemplateRequest
|
2008
2010
|
|
2009
2011
|
CreateProvisioningTemplateResponse.add_member(:template_arn, Shapes::ShapeRef.new(shape: TemplateArn, location_name: "templateArn"))
|
@@ -2521,6 +2523,7 @@ module Aws::IoT
|
|
2521
2523
|
DescribeProvisioningTemplateResponse.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "enabled"))
|
2522
2524
|
DescribeProvisioningTemplateResponse.add_member(:provisioning_role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "provisioningRoleArn"))
|
2523
2525
|
DescribeProvisioningTemplateResponse.add_member(:pre_provisioning_hook, Shapes::ShapeRef.new(shape: ProvisioningHook, location_name: "preProvisioningHook"))
|
2526
|
+
DescribeProvisioningTemplateResponse.add_member(:type, Shapes::ShapeRef.new(shape: TemplateType, location_name: "type"))
|
2524
2527
|
DescribeProvisioningTemplateResponse.struct_class = Types::DescribeProvisioningTemplateResponse
|
2525
2528
|
|
2526
2529
|
DescribeProvisioningTemplateVersionRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location: "uri", location_name: "templateName"))
|
@@ -3238,6 +3241,7 @@ module Aws::IoT
|
|
3238
3241
|
ListCACertificatesRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: PageSize, location: "querystring", location_name: "pageSize"))
|
3239
3242
|
ListCACertificatesRequest.add_member(:marker, Shapes::ShapeRef.new(shape: Marker, location: "querystring", location_name: "marker"))
|
3240
3243
|
ListCACertificatesRequest.add_member(:ascending_order, Shapes::ShapeRef.new(shape: AscendingOrder, location: "querystring", location_name: "isAscendingOrder"))
|
3244
|
+
ListCACertificatesRequest.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, location: "querystring", location_name: "templateName"))
|
3241
3245
|
ListCACertificatesRequest.struct_class = Types::ListCACertificatesRequest
|
3242
3246
|
|
3243
3247
|
ListCACertificatesResponse.add_member(:certificates, Shapes::ShapeRef.new(shape: CACertificates, location_name: "certificates"))
|
@@ -3894,6 +3898,7 @@ module Aws::IoT
|
|
3894
3898
|
ProvisioningTemplateSummary.add_member(:creation_date, Shapes::ShapeRef.new(shape: DateType, location_name: "creationDate"))
|
3895
3899
|
ProvisioningTemplateSummary.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: DateType, location_name: "lastModifiedDate"))
|
3896
3900
|
ProvisioningTemplateSummary.add_member(:enabled, Shapes::ShapeRef.new(shape: Enabled, location_name: "enabled"))
|
3901
|
+
ProvisioningTemplateSummary.add_member(:type, Shapes::ShapeRef.new(shape: TemplateType, location_name: "type"))
|
3897
3902
|
ProvisioningTemplateSummary.struct_class = Types::ProvisioningTemplateSummary
|
3898
3903
|
|
3899
3904
|
ProvisioningTemplateVersionListing.member = Shapes::ShapeRef.new(shape: ProvisioningTemplateVersionSummary)
|
@@ -3978,6 +3983,7 @@ module Aws::IoT
|
|
3978
3983
|
|
3979
3984
|
RegistrationConfig.add_member(:template_body, Shapes::ShapeRef.new(shape: TemplateBody, location_name: "templateBody"))
|
3980
3985
|
RegistrationConfig.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
|
3986
|
+
RegistrationConfig.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "templateName"))
|
3981
3987
|
RegistrationConfig.struct_class = Types::RegistrationConfig
|
3982
3988
|
|
3983
3989
|
RejectCertificateTransferRequest.add_member(:certificate_id, Shapes::ShapeRef.new(shape: CertificateId, required: true, location: "uri", location_name: "certificateId"))
|
@@ -7655,6 +7661,7 @@ module Aws::IoT
|
|
7655
7661
|
o.http_request_uri = "/cacertificate"
|
7656
7662
|
o.input = Shapes::ShapeRef.new(shape: RegisterCACertificateRequest)
|
7657
7663
|
o.output = Shapes::ShapeRef.new(shape: RegisterCACertificateResponse)
|
7664
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
7658
7665
|
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
7659
7666
|
o.errors << Shapes::ShapeRef.new(shape: RegistrationCodeValidationException)
|
7660
7667
|
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
data/lib/aws-sdk-iot/types.rb
CHANGED
@@ -4426,27 +4426,28 @@ module Aws::IoT
|
|
4426
4426
|
# value: "TagValue",
|
4427
4427
|
# },
|
4428
4428
|
# ],
|
4429
|
+
# type: "FLEET_PROVISIONING", # accepts FLEET_PROVISIONING, JITP
|
4429
4430
|
# }
|
4430
4431
|
#
|
4431
4432
|
# @!attribute [rw] template_name
|
4432
|
-
# The name of the
|
4433
|
+
# The name of the provisioning template.
|
4433
4434
|
# @return [String]
|
4434
4435
|
#
|
4435
4436
|
# @!attribute [rw] description
|
4436
|
-
# The description of the
|
4437
|
+
# The description of the provisioning template.
|
4437
4438
|
# @return [String]
|
4438
4439
|
#
|
4439
4440
|
# @!attribute [rw] template_body
|
4440
|
-
# The JSON formatted contents of the
|
4441
|
+
# The JSON formatted contents of the provisioning template.
|
4441
4442
|
# @return [String]
|
4442
4443
|
#
|
4443
4444
|
# @!attribute [rw] enabled
|
4444
|
-
# True to enable the
|
4445
|
+
# True to enable the provisioning template, otherwise false.
|
4445
4446
|
# @return [Boolean]
|
4446
4447
|
#
|
4447
4448
|
# @!attribute [rw] provisioning_role_arn
|
4448
|
-
# The role ARN for the role associated with the
|
4449
|
-
#
|
4449
|
+
# The role ARN for the role associated with the provisioning template.
|
4450
|
+
# This IoT role grants permission to provision a device.
|
4450
4451
|
# @return [String]
|
4451
4452
|
#
|
4452
4453
|
# @!attribute [rw] pre_provisioning_hook
|
@@ -4454,8 +4455,7 @@ module Aws::IoT
|
|
4454
4455
|
# @return [Types::ProvisioningHook]
|
4455
4456
|
#
|
4456
4457
|
# @!attribute [rw] tags
|
4457
|
-
# Metadata which can be used to manage the
|
4458
|
-
# template.
|
4458
|
+
# Metadata which can be used to manage the provisioning template.
|
4459
4459
|
#
|
4460
4460
|
# <note markdown="1"> For URI Request parameters use format:
|
4461
4461
|
# ...key1=value1&key2=value2...
|
@@ -4469,6 +4469,18 @@ module Aws::IoT
|
|
4469
4469
|
# </note>
|
4470
4470
|
# @return [Array<Types::Tag>]
|
4471
4471
|
#
|
4472
|
+
# @!attribute [rw] type
|
4473
|
+
# The type you define in a provisioning template. You can create a
|
4474
|
+
# template with only one type. You can't change the template type
|
4475
|
+
# after its creation. The default value is `FLEET_PROVISIONING`. For
|
4476
|
+
# more information about provisioning template, see: [Provisioning
|
4477
|
+
# template][1].
|
4478
|
+
#
|
4479
|
+
#
|
4480
|
+
#
|
4481
|
+
# [1]: https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html
|
4482
|
+
# @return [String]
|
4483
|
+
#
|
4472
4484
|
class CreateProvisioningTemplateRequest < Struct.new(
|
4473
4485
|
:template_name,
|
4474
4486
|
:description,
|
@@ -4476,7 +4488,8 @@ module Aws::IoT
|
|
4476
4488
|
:enabled,
|
4477
4489
|
:provisioning_role_arn,
|
4478
4490
|
:pre_provisioning_hook,
|
4479
|
-
:tags
|
4491
|
+
:tags,
|
4492
|
+
:type)
|
4480
4493
|
SENSITIVE = []
|
4481
4494
|
include Aws::Structure
|
4482
4495
|
end
|
@@ -4486,11 +4499,11 @@ module Aws::IoT
|
|
4486
4499
|
# @return [String]
|
4487
4500
|
#
|
4488
4501
|
# @!attribute [rw] template_name
|
4489
|
-
# The name of the
|
4502
|
+
# The name of the provisioning template.
|
4490
4503
|
# @return [String]
|
4491
4504
|
#
|
4492
4505
|
# @!attribute [rw] default_version_id
|
4493
|
-
# The default version of the
|
4506
|
+
# The default version of the provisioning template.
|
4494
4507
|
# @return [Integer]
|
4495
4508
|
#
|
4496
4509
|
class CreateProvisioningTemplateResponse < Struct.new(
|
@@ -4511,11 +4524,11 @@ module Aws::IoT
|
|
4511
4524
|
# }
|
4512
4525
|
#
|
4513
4526
|
# @!attribute [rw] template_name
|
4514
|
-
# The name of the
|
4527
|
+
# The name of the provisioning template.
|
4515
4528
|
# @return [String]
|
4516
4529
|
#
|
4517
4530
|
# @!attribute [rw] template_body
|
4518
|
-
# The JSON formatted contents of the
|
4531
|
+
# The JSON formatted contents of the provisioning template.
|
4519
4532
|
# @return [String]
|
4520
4533
|
#
|
4521
4534
|
# @!attribute [rw] set_as_default
|
@@ -4535,16 +4548,16 @@ module Aws::IoT
|
|
4535
4548
|
# @return [String]
|
4536
4549
|
#
|
4537
4550
|
# @!attribute [rw] template_name
|
4538
|
-
# The name of the
|
4551
|
+
# The name of the provisioning template.
|
4539
4552
|
# @return [String]
|
4540
4553
|
#
|
4541
4554
|
# @!attribute [rw] version_id
|
4542
|
-
# The version of the
|
4555
|
+
# The version of the provisioning template.
|
4543
4556
|
# @return [Integer]
|
4544
4557
|
#
|
4545
4558
|
# @!attribute [rw] is_default_version
|
4546
|
-
# True if the
|
4547
|
-
#
|
4559
|
+
# True if the provisioning template version is the default version,
|
4560
|
+
# otherwise false.
|
4548
4561
|
# @return [Boolean]
|
4549
4562
|
#
|
4550
4563
|
class CreateProvisioningTemplateVersionResponse < Struct.new(
|
@@ -6144,11 +6157,11 @@ module Aws::IoT
|
|
6144
6157
|
# }
|
6145
6158
|
#
|
6146
6159
|
# @!attribute [rw] template_name
|
6147
|
-
# The name of the
|
6160
|
+
# The name of the provisioning template version to delete.
|
6148
6161
|
# @return [String]
|
6149
6162
|
#
|
6150
6163
|
# @!attribute [rw] version_id
|
6151
|
-
# The
|
6164
|
+
# The provisioning template version ID to delete.
|
6152
6165
|
# @return [Integer]
|
6153
6166
|
#
|
6154
6167
|
class DeleteProvisioningTemplateVersionRequest < Struct.new(
|
@@ -7594,7 +7607,7 @@ module Aws::IoT
|
|
7594
7607
|
# }
|
7595
7608
|
#
|
7596
7609
|
# @!attribute [rw] template_name
|
7597
|
-
# The name of the
|
7610
|
+
# The name of the provisioning template.
|
7598
7611
|
# @return [String]
|
7599
7612
|
#
|
7600
7613
|
class DescribeProvisioningTemplateRequest < Struct.new(
|
@@ -7604,23 +7617,23 @@ module Aws::IoT
|
|
7604
7617
|
end
|
7605
7618
|
|
7606
7619
|
# @!attribute [rw] template_arn
|
7607
|
-
# The ARN of the
|
7620
|
+
# The ARN of the provisioning template.
|
7608
7621
|
# @return [String]
|
7609
7622
|
#
|
7610
7623
|
# @!attribute [rw] template_name
|
7611
|
-
# The name of the
|
7624
|
+
# The name of the provisioning template.
|
7612
7625
|
# @return [String]
|
7613
7626
|
#
|
7614
7627
|
# @!attribute [rw] description
|
7615
|
-
# The description of the
|
7628
|
+
# The description of the provisioning template.
|
7616
7629
|
# @return [String]
|
7617
7630
|
#
|
7618
7631
|
# @!attribute [rw] creation_date
|
7619
|
-
# The date when the
|
7632
|
+
# The date when the provisioning template was created.
|
7620
7633
|
# @return [Time]
|
7621
7634
|
#
|
7622
7635
|
# @!attribute [rw] last_modified_date
|
7623
|
-
# The date when the
|
7636
|
+
# The date when the provisioning template was last modified.
|
7624
7637
|
# @return [Time]
|
7625
7638
|
#
|
7626
7639
|
# @!attribute [rw] default_version_id
|
@@ -7628,11 +7641,11 @@ module Aws::IoT
|
|
7628
7641
|
# @return [Integer]
|
7629
7642
|
#
|
7630
7643
|
# @!attribute [rw] template_body
|
7631
|
-
# The JSON formatted contents of the
|
7644
|
+
# The JSON formatted contents of the provisioning template.
|
7632
7645
|
# @return [String]
|
7633
7646
|
#
|
7634
7647
|
# @!attribute [rw] enabled
|
7635
|
-
# True if the
|
7648
|
+
# True if the provisioning template is enabled, otherwise false.
|
7636
7649
|
# @return [Boolean]
|
7637
7650
|
#
|
7638
7651
|
# @!attribute [rw] provisioning_role_arn
|
@@ -7644,6 +7657,18 @@ module Aws::IoT
|
|
7644
7657
|
# Gets information about a pre-provisioned hook.
|
7645
7658
|
# @return [Types::ProvisioningHook]
|
7646
7659
|
#
|
7660
|
+
# @!attribute [rw] type
|
7661
|
+
# The type you define in a provisioning template. You can create a
|
7662
|
+
# template with only one type. You can't change the template type
|
7663
|
+
# after its creation. The default value is `FLEET_PROVISIONING`. For
|
7664
|
+
# more information about provisioning template, see: [Provisioning
|
7665
|
+
# template][1].
|
7666
|
+
#
|
7667
|
+
#
|
7668
|
+
#
|
7669
|
+
# [1]: https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html
|
7670
|
+
# @return [String]
|
7671
|
+
#
|
7647
7672
|
class DescribeProvisioningTemplateResponse < Struct.new(
|
7648
7673
|
:template_arn,
|
7649
7674
|
:template_name,
|
@@ -7654,7 +7679,8 @@ module Aws::IoT
|
|
7654
7679
|
:template_body,
|
7655
7680
|
:enabled,
|
7656
7681
|
:provisioning_role_arn,
|
7657
|
-
:pre_provisioning_hook
|
7682
|
+
:pre_provisioning_hook,
|
7683
|
+
:type)
|
7658
7684
|
SENSITIVE = []
|
7659
7685
|
include Aws::Structure
|
7660
7686
|
end
|
@@ -7672,7 +7698,7 @@ module Aws::IoT
|
|
7672
7698
|
# @return [String]
|
7673
7699
|
#
|
7674
7700
|
# @!attribute [rw] version_id
|
7675
|
-
# The
|
7701
|
+
# The provisioning template version ID.
|
7676
7702
|
# @return [Integer]
|
7677
7703
|
#
|
7678
7704
|
class DescribeProvisioningTemplateVersionRequest < Struct.new(
|
@@ -7683,21 +7709,19 @@ module Aws::IoT
|
|
7683
7709
|
end
|
7684
7710
|
|
7685
7711
|
# @!attribute [rw] version_id
|
7686
|
-
# The
|
7712
|
+
# The provisioning template version ID.
|
7687
7713
|
# @return [Integer]
|
7688
7714
|
#
|
7689
7715
|
# @!attribute [rw] creation_date
|
7690
|
-
# The date when the
|
7716
|
+
# The date when the provisioning template version was created.
|
7691
7717
|
# @return [Time]
|
7692
7718
|
#
|
7693
7719
|
# @!attribute [rw] template_body
|
7694
|
-
# The JSON formatted contents of the
|
7695
|
-
# version.
|
7720
|
+
# The JSON formatted contents of the provisioning template version.
|
7696
7721
|
# @return [String]
|
7697
7722
|
#
|
7698
7723
|
# @!attribute [rw] is_default_version
|
7699
|
-
# True if the
|
7700
|
-
# version.
|
7724
|
+
# True if the provisioning template version is the default version.
|
7701
7725
|
# @return [Boolean]
|
7702
7726
|
#
|
7703
7727
|
class DescribeProvisioningTemplateVersionResponse < Struct.new(
|
@@ -11464,6 +11488,7 @@ module Aws::IoT
|
|
11464
11488
|
# page_size: 1,
|
11465
11489
|
# marker: "Marker",
|
11466
11490
|
# ascending_order: false,
|
11491
|
+
# template_name: "TemplateName",
|
11467
11492
|
# }
|
11468
11493
|
#
|
11469
11494
|
# @!attribute [rw] page_size
|
@@ -11478,10 +11503,15 @@ module Aws::IoT
|
|
11478
11503
|
# Determines the order of the results.
|
11479
11504
|
# @return [Boolean]
|
11480
11505
|
#
|
11506
|
+
# @!attribute [rw] template_name
|
11507
|
+
# The name of the provisioning template.
|
11508
|
+
# @return [String]
|
11509
|
+
#
|
11481
11510
|
class ListCACertificatesRequest < Struct.new(
|
11482
11511
|
:page_size,
|
11483
11512
|
:marker,
|
11484
|
-
:ascending_order
|
11513
|
+
:ascending_order,
|
11514
|
+
:template_name)
|
11485
11515
|
SENSITIVE = []
|
11486
11516
|
include Aws::Structure
|
11487
11517
|
end
|
@@ -12725,7 +12755,7 @@ module Aws::IoT
|
|
12725
12755
|
# }
|
12726
12756
|
#
|
12727
12757
|
# @!attribute [rw] template_name
|
12728
|
-
# The name of the
|
12758
|
+
# The name of the provisioning template.
|
12729
12759
|
# @return [String]
|
12730
12760
|
#
|
12731
12761
|
# @!attribute [rw] max_results
|
@@ -12745,7 +12775,7 @@ module Aws::IoT
|
|
12745
12775
|
end
|
12746
12776
|
|
12747
12777
|
# @!attribute [rw] versions
|
12748
|
-
# The list of
|
12778
|
+
# The list of provisioning template versions.
|
12749
12779
|
# @return [Array<Types::ProvisioningTemplateVersionSummary>]
|
12750
12780
|
#
|
12751
12781
|
# @!attribute [rw] next_token
|
@@ -12783,7 +12813,7 @@ module Aws::IoT
|
|
12783
12813
|
end
|
12784
12814
|
|
12785
12815
|
# @!attribute [rw] templates
|
12786
|
-
# A list of
|
12816
|
+
# A list of provisioning templates
|
12787
12817
|
# @return [Array<Types::ProvisioningTemplateSummary>]
|
12788
12818
|
#
|
12789
12819
|
# @!attribute [rw] next_token
|
@@ -14767,40 +14797,52 @@ module Aws::IoT
|
|
14767
14797
|
include Aws::Structure
|
14768
14798
|
end
|
14769
14799
|
|
14770
|
-
# A summary of information about a
|
14800
|
+
# A summary of information about a provisioning template.
|
14771
14801
|
#
|
14772
14802
|
# @!attribute [rw] template_arn
|
14773
|
-
# The ARN of the
|
14803
|
+
# The ARN of the provisioning template.
|
14774
14804
|
# @return [String]
|
14775
14805
|
#
|
14776
14806
|
# @!attribute [rw] template_name
|
14777
|
-
# The name of the
|
14807
|
+
# The name of the provisioning template.
|
14778
14808
|
# @return [String]
|
14779
14809
|
#
|
14780
14810
|
# @!attribute [rw] description
|
14781
|
-
# The description of the
|
14811
|
+
# The description of the provisioning template.
|
14782
14812
|
# @return [String]
|
14783
14813
|
#
|
14784
14814
|
# @!attribute [rw] creation_date
|
14785
|
-
# The date when the
|
14815
|
+
# The date when the provisioning template summary was created.
|
14786
14816
|
# @return [Time]
|
14787
14817
|
#
|
14788
14818
|
# @!attribute [rw] last_modified_date
|
14789
|
-
# The date when the
|
14790
|
-
# modified.
|
14819
|
+
# The date when the provisioning template summary was last modified.
|
14791
14820
|
# @return [Time]
|
14792
14821
|
#
|
14793
14822
|
# @!attribute [rw] enabled
|
14794
14823
|
# True if the fleet provision template is enabled, otherwise false.
|
14795
14824
|
# @return [Boolean]
|
14796
14825
|
#
|
14826
|
+
# @!attribute [rw] type
|
14827
|
+
# The type you define in a provisioning template. You can create a
|
14828
|
+
# template with only one type. You can't change the template type
|
14829
|
+
# after its creation. The default value is `FLEET_PROVISIONING`. For
|
14830
|
+
# more information about provisioning template, see: [Provisioning
|
14831
|
+
# template][1].
|
14832
|
+
#
|
14833
|
+
#
|
14834
|
+
#
|
14835
|
+
# [1]: https://docs.aws.amazon.com/iot/latest/developerguide/provision-template.html
|
14836
|
+
# @return [String]
|
14837
|
+
#
|
14797
14838
|
class ProvisioningTemplateSummary < Struct.new(
|
14798
14839
|
:template_arn,
|
14799
14840
|
:template_name,
|
14800
14841
|
:description,
|
14801
14842
|
:creation_date,
|
14802
14843
|
:last_modified_date,
|
14803
|
-
:enabled
|
14844
|
+
:enabled,
|
14845
|
+
:type)
|
14804
14846
|
SENSITIVE = []
|
14805
14847
|
include Aws::Structure
|
14806
14848
|
end
|
@@ -14812,12 +14854,12 @@ module Aws::IoT
|
|
14812
14854
|
# @return [Integer]
|
14813
14855
|
#
|
14814
14856
|
# @!attribute [rw] creation_date
|
14815
|
-
# The date when the
|
14857
|
+
# The date when the provisioning template version was created
|
14816
14858
|
# @return [Time]
|
14817
14859
|
#
|
14818
14860
|
# @!attribute [rw] is_default_version
|
14819
|
-
# True if the
|
14820
|
-
#
|
14861
|
+
# True if the provisioning template version is the default version,
|
14862
|
+
# otherwise false.
|
14821
14863
|
# @return [Boolean]
|
14822
14864
|
#
|
14823
14865
|
class ProvisioningTemplateVersionSummary < Struct.new(
|
@@ -15008,6 +15050,7 @@ module Aws::IoT
|
|
15008
15050
|
# registration_config: {
|
15009
15051
|
# template_body: "TemplateBody",
|
15010
15052
|
# role_arn: "RoleArn",
|
15053
|
+
# template_name: "TemplateName",
|
15011
15054
|
# },
|
15012
15055
|
# tags: [
|
15013
15056
|
# {
|
@@ -15272,6 +15315,7 @@ module Aws::IoT
|
|
15272
15315
|
# {
|
15273
15316
|
# template_body: "TemplateBody",
|
15274
15317
|
# role_arn: "RoleArn",
|
15318
|
+
# template_name: "TemplateName",
|
15275
15319
|
# }
|
15276
15320
|
#
|
15277
15321
|
# @!attribute [rw] template_body
|
@@ -15282,9 +15326,14 @@ module Aws::IoT
|
|
15282
15326
|
# The ARN of the role.
|
15283
15327
|
# @return [String]
|
15284
15328
|
#
|
15329
|
+
# @!attribute [rw] template_name
|
15330
|
+
# The name of the provisioning template.
|
15331
|
+
# @return [String]
|
15332
|
+
#
|
15285
15333
|
class RegistrationConfig < Struct.new(
|
15286
15334
|
:template_body,
|
15287
|
-
:role_arn
|
15335
|
+
:role_arn,
|
15336
|
+
:template_name)
|
15288
15337
|
SENSITIVE = []
|
15289
15338
|
include Aws::Structure
|
15290
15339
|
end
|
@@ -19185,6 +19234,7 @@ module Aws::IoT
|
|
19185
19234
|
# registration_config: {
|
19186
19235
|
# template_body: "TemplateBody",
|
19187
19236
|
# role_arn: "RoleArn",
|
19237
|
+
# template_name: "TemplateName",
|
19188
19238
|
# },
|
19189
19239
|
# remove_auto_registration: false,
|
19190
19240
|
# }
|
@@ -19886,15 +19936,15 @@ module Aws::IoT
|
|
19886
19936
|
# }
|
19887
19937
|
#
|
19888
19938
|
# @!attribute [rw] template_name
|
19889
|
-
# The name of the
|
19939
|
+
# The name of the provisioning template.
|
19890
19940
|
# @return [String]
|
19891
19941
|
#
|
19892
19942
|
# @!attribute [rw] description
|
19893
|
-
# The description of the
|
19943
|
+
# The description of the provisioning template.
|
19894
19944
|
# @return [String]
|
19895
19945
|
#
|
19896
19946
|
# @!attribute [rw] enabled
|
19897
|
-
# True to enable the
|
19947
|
+
# True to enable the provisioning template, otherwise false.
|
19898
19948
|
# @return [Boolean]
|
19899
19949
|
#
|
19900
19950
|
# @!attribute [rw] default_version_id
|
data/lib/aws-sdk-iot.rb
CHANGED
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.
|
4
|
+
version: 1.94.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-
|
11
|
+
date: 2022-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|