aws-sdk-iot 1.0.0.rc5 → 1.0.0.rc6
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/lib/aws-sdk-iot.rb +1 -1
- data/lib/aws-sdk-iot/client.rb +25 -10
- data/lib/aws-sdk-iot/client_api.rb +12 -3
- data/lib/aws-sdk-iot/types.rb +59 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 994047f27a2fe6cfdb0d83e2afc40555a092523d
|
4
|
+
data.tar.gz: 1083cdaf1e799546536d8b27524db975fceed75d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a84fa4137a6a5bcd4bb1e4b9eaf2f2e85c652ee42db7d8363f48e43299a012fa47ba02999759872498ddadb822b4719a9c160bf991d4435b45deedaebbdcd2b2
|
7
|
+
data.tar.gz: cc2288d94109afffe75f7f96fbef64902dcda3d166ef2f889fd79294f344abd5d38aca06fb411674c82e4ab41307f2bf9fbd7fbf2856aad4bd47ff888fa985d1
|
data/lib/aws-sdk-iot.rb
CHANGED
data/lib/aws-sdk-iot/client.rb
CHANGED
@@ -256,8 +256,12 @@ module Aws::IoT
|
|
256
256
|
# Creates an X.509 certificate using the specified certificate signing
|
257
257
|
# request.
|
258
258
|
#
|
259
|
-
# **Note
|
260
|
-
# a
|
259
|
+
# **Note:** The CSR must include a public key that is either an RSA key
|
260
|
+
# with a length of at least 2048 bits or an ECC key from NIST P-256 or
|
261
|
+
# NIST P-384 curves.
|
262
|
+
#
|
263
|
+
# **Note:** Reusing the same certificate signing request (CSR) results
|
264
|
+
# in a distinct certificate.
|
261
265
|
#
|
262
266
|
# You can create multiple certificates in a batch by creating a
|
263
267
|
# directory, copying multiple .csr files into that directory, and then
|
@@ -474,7 +478,7 @@ module Aws::IoT
|
|
474
478
|
# The attribute payload, which consists of up to three name/value pairs
|
475
479
|
# in a JSON document. For example:
|
476
480
|
#
|
477
|
-
# `\{"attributes":\{"string1":"string2"\}\}
|
481
|
+
# `\{"attributes":\{"string1":"string2"\}\}`
|
478
482
|
#
|
479
483
|
# @return [Types::CreateThingResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
480
484
|
#
|
@@ -636,6 +640,10 @@ module Aws::IoT
|
|
636
640
|
# type: "ElasticsearchType", # required
|
637
641
|
# id: "ElasticsearchId", # required
|
638
642
|
# },
|
643
|
+
# salesforce: {
|
644
|
+
# token: "SalesforceToken", # required
|
645
|
+
# url: "SalesforceEndpoint", # required
|
646
|
+
# },
|
639
647
|
# },
|
640
648
|
# ],
|
641
649
|
# rule_disabled: false,
|
@@ -1292,6 +1300,8 @@ module Aws::IoT
|
|
1292
1300
|
# resp.rule.actions[0].elasticsearch.index #=> String
|
1293
1301
|
# resp.rule.actions[0].elasticsearch.type #=> String
|
1294
1302
|
# resp.rule.actions[0].elasticsearch.id #=> String
|
1303
|
+
# resp.rule.actions[0].salesforce.token #=> String
|
1304
|
+
# resp.rule.actions[0].salesforce.url #=> String
|
1295
1305
|
# resp.rule.rule_disabled #=> Boolean
|
1296
1306
|
# resp.rule.aws_iot_sql_version #=> String
|
1297
1307
|
#
|
@@ -1849,11 +1859,11 @@ module Aws::IoT
|
|
1849
1859
|
# Registers a CA certificate with AWS IoT. This CA certificate can then
|
1850
1860
|
# be used to sign device certificates, which can be then registered with
|
1851
1861
|
# AWS IoT. You can register up to 10 CA certificates per AWS account
|
1852
|
-
# that have the same subject field
|
1853
|
-
#
|
1854
|
-
#
|
1855
|
-
#
|
1856
|
-
#
|
1862
|
+
# that have the same subject field. This enables you to have up to 10
|
1863
|
+
# certificate authorities sign your device certificates. If you have
|
1864
|
+
# more than one CA certificate registered, make sure you pass the CA
|
1865
|
+
# certificate when you register your device certificates with the
|
1866
|
+
# RegisterCertificate API.
|
1857
1867
|
#
|
1858
1868
|
# @option params [required, String] :ca_certificate
|
1859
1869
|
# The CA certificate.
|
@@ -1910,6 +1920,7 @@ module Aws::IoT
|
|
1910
1920
|
# A boolean value that specifies if the CA certificate is set to active.
|
1911
1921
|
#
|
1912
1922
|
# @option params [String] :status
|
1923
|
+
# The status of the register certificate request.
|
1913
1924
|
#
|
1914
1925
|
# @return [Types::RegisterCertificateResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1915
1926
|
#
|
@@ -2064,6 +2075,10 @@ module Aws::IoT
|
|
2064
2075
|
# type: "ElasticsearchType", # required
|
2065
2076
|
# id: "ElasticsearchId", # required
|
2066
2077
|
# },
|
2078
|
+
# salesforce: {
|
2079
|
+
# token: "SalesforceToken", # required
|
2080
|
+
# url: "SalesforceEndpoint", # required
|
2081
|
+
# },
|
2067
2082
|
# },
|
2068
2083
|
# ],
|
2069
2084
|
# rule_disabled: false,
|
@@ -2256,7 +2271,7 @@ module Aws::IoT
|
|
2256
2271
|
# A list of thing attributes, a JSON string containing name-value pairs.
|
2257
2272
|
# For example:
|
2258
2273
|
#
|
2259
|
-
# `\{"attributes":\{"name1":"value2"\}\}
|
2274
|
+
# `\{"attributes":\{"name1":"value2"\}\}`
|
2260
2275
|
#
|
2261
2276
|
# This data is used to add new attributes or update existing attributes.
|
2262
2277
|
#
|
@@ -2307,7 +2322,7 @@ module Aws::IoT
|
|
2307
2322
|
params: params,
|
2308
2323
|
config: config)
|
2309
2324
|
context[:gem_name] = 'aws-sdk-iot'
|
2310
|
-
context[:gem_version] = '1.0.0.
|
2325
|
+
context[:gem_version] = '1.0.0.rc6'
|
2311
2326
|
Seahorse::Client::Request.new(handlers, context)
|
2312
2327
|
end
|
2313
2328
|
|
@@ -203,6 +203,7 @@ module Aws::IoT
|
|
203
203
|
RegisterCertificateResponse = Shapes::StructureShape.new(name: 'RegisterCertificateResponse')
|
204
204
|
RegistrationCode = Shapes::StringShape.new(name: 'RegistrationCode')
|
205
205
|
RegistrationCodeValidationException = Shapes::StructureShape.new(name: 'RegistrationCodeValidationException')
|
206
|
+
RegistryMaxResults = Shapes::IntegerShape.new(name: 'RegistryMaxResults')
|
206
207
|
RejectCertificateTransferRequest = Shapes::StructureShape.new(name: 'RejectCertificateTransferRequest')
|
207
208
|
RemoveThingType = Shapes::BooleanShape.new(name: 'RemoveThingType')
|
208
209
|
ReplaceTopicRuleRequest = Shapes::StructureShape.new(name: 'ReplaceTopicRuleRequest')
|
@@ -213,6 +214,9 @@ module Aws::IoT
|
|
213
214
|
RuleName = Shapes::StringShape.new(name: 'RuleName')
|
214
215
|
S3Action = Shapes::StructureShape.new(name: 'S3Action')
|
215
216
|
SQL = Shapes::StringShape.new(name: 'SQL')
|
217
|
+
SalesforceAction = Shapes::StructureShape.new(name: 'SalesforceAction')
|
218
|
+
SalesforceEndpoint = Shapes::StringShape.new(name: 'SalesforceEndpoint')
|
219
|
+
SalesforceToken = Shapes::StringShape.new(name: 'SalesforceToken')
|
216
220
|
SearchableAttributes = Shapes::ListShape.new(name: 'SearchableAttributes')
|
217
221
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
218
222
|
SetAsActive = Shapes::BooleanShape.new(name: 'SetAsActive')
|
@@ -281,6 +285,7 @@ module Aws::IoT
|
|
281
285
|
Action.add_member(:cloudwatch_metric, Shapes::ShapeRef.new(shape: CloudwatchMetricAction, location_name: "cloudwatchMetric"))
|
282
286
|
Action.add_member(:cloudwatch_alarm, Shapes::ShapeRef.new(shape: CloudwatchAlarmAction, location_name: "cloudwatchAlarm"))
|
283
287
|
Action.add_member(:elasticsearch, Shapes::ShapeRef.new(shape: ElasticsearchAction, location_name: "elasticsearch"))
|
288
|
+
Action.add_member(:salesforce, Shapes::ShapeRef.new(shape: SalesforceAction, location_name: "salesforce"))
|
284
289
|
Action.struct_class = Types::Action
|
285
290
|
|
286
291
|
ActionList.member = Shapes::ShapeRef.new(shape: Action)
|
@@ -659,7 +664,7 @@ module Aws::IoT
|
|
659
664
|
ListPrincipalPoliciesResponse.struct_class = Types::ListPrincipalPoliciesResponse
|
660
665
|
|
661
666
|
ListPrincipalThingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
662
|
-
ListPrincipalThingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape:
|
667
|
+
ListPrincipalThingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: RegistryMaxResults, location: "querystring", location_name: "maxResults"))
|
663
668
|
ListPrincipalThingsRequest.add_member(:principal, Shapes::ShapeRef.new(shape: Principal, required: true, location: "header", location_name: "x-amzn-principal"))
|
664
669
|
ListPrincipalThingsRequest.struct_class = Types::ListPrincipalThingsRequest
|
665
670
|
|
@@ -674,7 +679,7 @@ module Aws::IoT
|
|
674
679
|
ListThingPrincipalsResponse.struct_class = Types::ListThingPrincipalsResponse
|
675
680
|
|
676
681
|
ListThingTypesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
677
|
-
ListThingTypesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape:
|
682
|
+
ListThingTypesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: RegistryMaxResults, location: "querystring", location_name: "maxResults"))
|
678
683
|
ListThingTypesRequest.add_member(:thing_type_name, Shapes::ShapeRef.new(shape: ThingTypeName, location: "querystring", location_name: "thingTypeName"))
|
679
684
|
ListThingTypesRequest.struct_class = Types::ListThingTypesRequest
|
680
685
|
|
@@ -683,7 +688,7 @@ module Aws::IoT
|
|
683
688
|
ListThingTypesResponse.struct_class = Types::ListThingTypesResponse
|
684
689
|
|
685
690
|
ListThingsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
686
|
-
ListThingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape:
|
691
|
+
ListThingsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: RegistryMaxResults, location: "querystring", location_name: "maxResults"))
|
687
692
|
ListThingsRequest.add_member(:attribute_name, Shapes::ShapeRef.new(shape: AttributeName, location: "querystring", location_name: "attributeName"))
|
688
693
|
ListThingsRequest.add_member(:attribute_value, Shapes::ShapeRef.new(shape: AttributeValue, location: "querystring", location_name: "attributeValue"))
|
689
694
|
ListThingsRequest.add_member(:thing_type_name, Shapes::ShapeRef.new(shape: ThingTypeName, location: "querystring", location_name: "thingTypeName"))
|
@@ -775,6 +780,10 @@ module Aws::IoT
|
|
775
780
|
S3Action.add_member(:canned_acl, Shapes::ShapeRef.new(shape: CannedAccessControlList, location_name: "cannedAcl"))
|
776
781
|
S3Action.struct_class = Types::S3Action
|
777
782
|
|
783
|
+
SalesforceAction.add_member(:token, Shapes::ShapeRef.new(shape: SalesforceToken, required: true, location_name: "token"))
|
784
|
+
SalesforceAction.add_member(:url, Shapes::ShapeRef.new(shape: SalesforceEndpoint, required: true, location_name: "url"))
|
785
|
+
SalesforceAction.struct_class = Types::SalesforceAction
|
786
|
+
|
778
787
|
SearchableAttributes.member = Shapes::ShapeRef.new(shape: AttributeName)
|
779
788
|
|
780
789
|
SetDefaultPolicyVersionRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, required: true, location: "uri", location_name: "policyName"))
|
data/lib/aws-sdk-iot/types.rb
CHANGED
@@ -110,6 +110,10 @@ module Aws::IoT
|
|
110
110
|
# type: "ElasticsearchType", # required
|
111
111
|
# id: "ElasticsearchId", # required
|
112
112
|
# },
|
113
|
+
# salesforce: {
|
114
|
+
# token: "SalesforceToken", # required
|
115
|
+
# url: "SalesforceEndpoint", # required
|
116
|
+
# },
|
113
117
|
# }
|
114
118
|
#
|
115
119
|
# @!attribute [rw] dynamo_db
|
@@ -162,6 +166,10 @@ module Aws::IoT
|
|
162
166
|
# Write data to an Amazon Elasticsearch Service domain.
|
163
167
|
# @return [Types::ElasticsearchAction]
|
164
168
|
#
|
169
|
+
# @!attribute [rw] salesforce
|
170
|
+
# Send a message to a Salesforce IoT Cloud Input Stream.
|
171
|
+
# @return [Types::SalesforceAction]
|
172
|
+
#
|
165
173
|
class Action < Struct.new(
|
166
174
|
:dynamo_db,
|
167
175
|
:dynamo_d_bv_2,
|
@@ -174,7 +182,8 @@ module Aws::IoT
|
|
174
182
|
:firehose,
|
175
183
|
:cloudwatch_metric,
|
176
184
|
:cloudwatch_alarm,
|
177
|
-
:elasticsearch
|
185
|
+
:elasticsearch,
|
186
|
+
:salesforce)
|
178
187
|
include Aws::Structure
|
179
188
|
end
|
180
189
|
|
@@ -247,7 +256,7 @@ module Aws::IoT
|
|
247
256
|
# A JSON string containing up to three key-value pair in JSON format.
|
248
257
|
# For example:
|
249
258
|
#
|
250
|
-
# `\{"attributes":\{"string1":"string2"\}\}
|
259
|
+
# `\{"attributes":\{"string1":"string2"\}\}`
|
251
260
|
# @return [Hash<String,String>]
|
252
261
|
#
|
253
262
|
# @!attribute [rw] merge
|
@@ -769,7 +778,7 @@ module Aws::IoT
|
|
769
778
|
# The attribute payload, which consists of up to three name/value
|
770
779
|
# pairs in a JSON document. For example:
|
771
780
|
#
|
772
|
-
# `\{"attributes":\{"string1":"string2"\}\}
|
781
|
+
# `\{"attributes":\{"string1":"string2"\}\}`
|
773
782
|
# @return [Types::AttributePayload]
|
774
783
|
#
|
775
784
|
class CreateThingRequest < Struct.new(
|
@@ -924,6 +933,10 @@ module Aws::IoT
|
|
924
933
|
# type: "ElasticsearchType", # required
|
925
934
|
# id: "ElasticsearchId", # required
|
926
935
|
# },
|
936
|
+
# salesforce: {
|
937
|
+
# token: "SalesforceToken", # required
|
938
|
+
# url: "SalesforceEndpoint", # required
|
939
|
+
# },
|
927
940
|
# },
|
928
941
|
# ],
|
929
942
|
# rule_disabled: false,
|
@@ -1302,7 +1315,7 @@ module Aws::IoT
|
|
1302
1315
|
# @!attribute [rw] thing_type_metadata
|
1303
1316
|
# The ThingTypeMetadata contains additional information about the
|
1304
1317
|
# thing type including: creation date and time, a value indicating
|
1305
|
-
# whether the thing type is deprecated, and a date and time when
|
1318
|
+
# whether the thing type is deprecated, and a date and time when it
|
1306
1319
|
# was deprecated.
|
1307
1320
|
# @return [Types::ThingTypeMetadata]
|
1308
1321
|
#
|
@@ -2664,6 +2677,7 @@ module Aws::IoT
|
|
2664
2677
|
# @return [Boolean]
|
2665
2678
|
#
|
2666
2679
|
# @!attribute [rw] status
|
2680
|
+
# The status of the register certificate request.
|
2667
2681
|
# @return [String]
|
2668
2682
|
#
|
2669
2683
|
class RegisterCertificateRequest < Struct.new(
|
@@ -2798,6 +2812,10 @@ module Aws::IoT
|
|
2798
2812
|
# type: "ElasticsearchType", # required
|
2799
2813
|
# id: "ElasticsearchId", # required
|
2800
2814
|
# },
|
2815
|
+
# salesforce: {
|
2816
|
+
# token: "SalesforceToken", # required
|
2817
|
+
# url: "SalesforceEndpoint", # required
|
2818
|
+
# },
|
2801
2819
|
# },
|
2802
2820
|
# ],
|
2803
2821
|
# rule_disabled: false,
|
@@ -2885,6 +2903,35 @@ module Aws::IoT
|
|
2885
2903
|
include Aws::Structure
|
2886
2904
|
end
|
2887
2905
|
|
2906
|
+
# Describes an action to write a message to a Salesforce IoT Cloud Input
|
2907
|
+
# Stream.
|
2908
|
+
#
|
2909
|
+
# @note When making an API call, you may pass SalesforceAction
|
2910
|
+
# data as a hash:
|
2911
|
+
#
|
2912
|
+
# {
|
2913
|
+
# token: "SalesforceToken", # required
|
2914
|
+
# url: "SalesforceEndpoint", # required
|
2915
|
+
# }
|
2916
|
+
#
|
2917
|
+
# @!attribute [rw] token
|
2918
|
+
# The token used to authenticate access to the Salesforce IoT Cloud
|
2919
|
+
# Input Stream. The token is available from the Salesforce IoT Cloud
|
2920
|
+
# platform after creation of the Input Stream.
|
2921
|
+
# @return [String]
|
2922
|
+
#
|
2923
|
+
# @!attribute [rw] url
|
2924
|
+
# The URL exposed by the Salesforce IoT Cloud Input Stream. The URL is
|
2925
|
+
# available from the Salesforce IoT Cloud platform after creation of
|
2926
|
+
# the Input Stream.
|
2927
|
+
# @return [String]
|
2928
|
+
#
|
2929
|
+
class SalesforceAction < Struct.new(
|
2930
|
+
:token,
|
2931
|
+
:url)
|
2932
|
+
include Aws::Structure
|
2933
|
+
end
|
2934
|
+
|
2888
2935
|
# The input for the SetDefaultPolicyVersion operation.
|
2889
2936
|
#
|
2890
2937
|
# @note When making an API call, you may pass SetDefaultPolicyVersionRequest
|
@@ -2954,7 +3001,8 @@ module Aws::IoT
|
|
2954
3001
|
# values are "JSON" and "RAW". The default value of the attribute
|
2955
3002
|
# is "RAW". SNS uses this setting to determine if the payload should
|
2956
3003
|
# be parsed and relevant platform-specific bits of the payload should
|
2957
|
-
# be extracted. To read more about SNS message formats, see
|
3004
|
+
# be extracted. To read more about SNS message formats, see
|
3005
|
+
# [http://docs.aws.amazon.com/sns/latest/dg/json-formats.html][1]
|
2958
3006
|
# refer to their official documentation.
|
2959
3007
|
#
|
2960
3008
|
#
|
@@ -3041,7 +3089,7 @@ module Aws::IoT
|
|
3041
3089
|
# @!attribute [rw] thing_type_metadata
|
3042
3090
|
# The ThingTypeMetadata contains additional information about the
|
3043
3091
|
# thing type including: creation date and time, a value indicating
|
3044
|
-
# whether the thing type is deprecated, and a date and time when
|
3092
|
+
# whether the thing type is deprecated, and a date and time when it
|
3045
3093
|
# was deprecated.
|
3046
3094
|
# @return [Types::ThingTypeMetadata]
|
3047
3095
|
#
|
@@ -3258,6 +3306,10 @@ module Aws::IoT
|
|
3258
3306
|
# type: "ElasticsearchType", # required
|
3259
3307
|
# id: "ElasticsearchId", # required
|
3260
3308
|
# },
|
3309
|
+
# salesforce: {
|
3310
|
+
# token: "SalesforceToken", # required
|
3311
|
+
# url: "SalesforceEndpoint", # required
|
3312
|
+
# },
|
3261
3313
|
# },
|
3262
3314
|
# ],
|
3263
3315
|
# rule_disabled: false,
|
@@ -3465,7 +3517,7 @@ module Aws::IoT
|
|
3465
3517
|
# A list of thing attributes, a JSON string containing name-value
|
3466
3518
|
# pairs. For example:
|
3467
3519
|
#
|
3468
|
-
# `\{"attributes":\{"name1":"value2"\}\}
|
3520
|
+
# `\{"attributes":\{"name1":"value2"\}\}`
|
3469
3521
|
#
|
3470
3522
|
# This data is used to add new attributes or update existing
|
3471
3523
|
# attributes.
|
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.0.0.
|
4
|
+
version: 1.0.0.rc6
|
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: 2017-
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.0.0.
|
19
|
+
version: 3.0.0.rc13
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.0.0.
|
26
|
+
version: 3.0.0.rc13
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: aws-sigv4
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|