aws-sdk-greengrassv2 1.3.0 → 1.4.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: 412675f0990fe64f3b9831d6de75502625b7906defc35abc8c694c07075eeb2c
4
- data.tar.gz: c9d6d56406459ad23640a16dc92d7fd2e35a9f3a49850519c68310484ab151e2
3
+ metadata.gz: a434dbb52d7e1768936a96773aeb08bf96565b8f2a9114648a644abecdb451b3
4
+ data.tar.gz: e4562d509a0175f7abb39c52506fb6513e96d4d9ff0332ad1e10b2ba564bbe02
5
5
  SHA512:
6
- metadata.gz: 8bb859d3bb6d14a8053fac494a6f216e08c91573e278ac53346a8a2534ab09c13069706e18c21201962181c48abc06a86067948a1f5075391085d117f16e49cd
7
- data.tar.gz: 2caf939e8f3c54089eb6ee640204c7f796d71c644a0bd31a7cf96c58115bb7348db13ee9eaaf75c8bc91adcfdd9beaee046350e1ca6848186106d43da608bd26
6
+ metadata.gz: 5fab79aae4f2943205a8e15b98f211cd2db8af19c97540628af3df89b0b1da16f51cfc7be713016c0f5a576ed019be4d9519531315a19e11dc28058a6ea383cb
7
+ data.tar.gz: e113db0a5980da980e0806ede52279f44e3905eb76141082dc97594dd062b632d2bb57d003c2e8c98e29afbb1fe3e4e3811120f20a68f5e9c5ce0a0c963ce579
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.4.0 (2021-06-14)
5
+ ------------------
6
+
7
+ * Feature - We have verified the APIs being released here and are ready to release
8
+
4
9
  1.3.0 (2021-03-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.4.0
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-greengrassv2/customizations'
28
28
  # structure.
29
29
  #
30
30
  # greengrass_v2 = Aws::GreengrassV2::Client.new
31
- # resp = greengrass_v2.cancel_deployment(params)
31
+ # resp = greengrass_v2.batch_associate_client_device_with_core_device(params)
32
32
  #
33
33
  # See {Client} for more information.
34
34
  #
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-greengrassv2/customizations'
48
48
  # @!group service
49
49
  module Aws::GreengrassV2
50
50
 
51
- GEM_VERSION = '1.3.0'
51
+ GEM_VERSION = '1.4.0'
52
52
 
53
53
  end
@@ -327,6 +327,109 @@ module Aws::GreengrassV2
327
327
 
328
328
  # @!group API Operations
329
329
 
330
+ # Associate a list of client devices with a core device. Use this API
331
+ # operation to specify which client devices can discover a core device
332
+ # through cloud discovery. With cloud discovery, client devices connect
333
+ # to AWS IoT Greengrass to retrieve associated core devices'
334
+ # connectivity information and certificates. For more information, see
335
+ # [Configure cloud discovery][1] in the *AWS IoT Greengrass V2 Developer
336
+ # Guide*.
337
+ #
338
+ # <note markdown="1"> Client devices are local IoT devices that connect to and communicate
339
+ # with an AWS IoT Greengrass core device over MQTT. You can connect
340
+ # client devices to a core device to sync MQTT messages and data to AWS
341
+ # IoT Core and interact with client devices in AWS IoT Greengrass
342
+ # components. For more information, see [Interact with local IoT
343
+ # devices][2] in the *AWS IoT Greengrass V2 Developer Guide*.
344
+ #
345
+ # </note>
346
+ #
347
+ #
348
+ #
349
+ # [1]: https://docs.aws.amazon.com/greengrass/v2/developerguide/configure-cloud-discovery.html
350
+ # [2]: https://docs.aws.amazon.com/greengrass/v2/developerguide/interact-with-local-iot-devices.html
351
+ #
352
+ # @option params [Array<Types::AssociateClientDeviceWithCoreDeviceEntry>] :entries
353
+ # The list of client devices to associate.
354
+ #
355
+ # @option params [required, String] :core_device_thing_name
356
+ # The name of the core device. This is also the name of the AWS IoT
357
+ # thing.
358
+ #
359
+ # @return [Types::BatchAssociateClientDeviceWithCoreDeviceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
360
+ #
361
+ # * {Types::BatchAssociateClientDeviceWithCoreDeviceResponse#error_entries #error_entries} => Array&lt;Types::AssociateClientDeviceWithCoreDeviceErrorEntry&gt;
362
+ #
363
+ # @example Request syntax with placeholder values
364
+ #
365
+ # resp = client.batch_associate_client_device_with_core_device({
366
+ # entries: [
367
+ # {
368
+ # thing_name: "IoTThingName", # required
369
+ # },
370
+ # ],
371
+ # core_device_thing_name: "IoTThingName", # required
372
+ # })
373
+ #
374
+ # @example Response structure
375
+ #
376
+ # resp.error_entries #=> Array
377
+ # resp.error_entries[0].thing_name #=> String
378
+ # resp.error_entries[0].code #=> String
379
+ # resp.error_entries[0].message #=> String
380
+ #
381
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/BatchAssociateClientDeviceWithCoreDevice AWS API Documentation
382
+ #
383
+ # @overload batch_associate_client_device_with_core_device(params = {})
384
+ # @param [Hash] params ({})
385
+ def batch_associate_client_device_with_core_device(params = {}, options = {})
386
+ req = build_request(:batch_associate_client_device_with_core_device, params)
387
+ req.send_request(options)
388
+ end
389
+
390
+ # Disassociate a list of client devices from a core device. After you
391
+ # disassociate a client device from a core device, the client device
392
+ # won't be able to use cloud discovery to retrieve the core device's
393
+ # connectivity information and certificates.
394
+ #
395
+ # @option params [Array<Types::DisassociateClientDeviceFromCoreDeviceEntry>] :entries
396
+ # The list of client devices to disassociate.
397
+ #
398
+ # @option params [required, String] :core_device_thing_name
399
+ # The name of the core device. This is also the name of the AWS IoT
400
+ # thing.
401
+ #
402
+ # @return [Types::BatchDisassociateClientDeviceFromCoreDeviceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
403
+ #
404
+ # * {Types::BatchDisassociateClientDeviceFromCoreDeviceResponse#error_entries #error_entries} => Array&lt;Types::DisassociateClientDeviceFromCoreDeviceErrorEntry&gt;
405
+ #
406
+ # @example Request syntax with placeholder values
407
+ #
408
+ # resp = client.batch_disassociate_client_device_from_core_device({
409
+ # entries: [
410
+ # {
411
+ # thing_name: "IoTThingName", # required
412
+ # },
413
+ # ],
414
+ # core_device_thing_name: "IoTThingName", # required
415
+ # })
416
+ #
417
+ # @example Response structure
418
+ #
419
+ # resp.error_entries #=> Array
420
+ # resp.error_entries[0].thing_name #=> String
421
+ # resp.error_entries[0].code #=> String
422
+ # resp.error_entries[0].message #=> String
423
+ #
424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/BatchDisassociateClientDeviceFromCoreDevice AWS API Documentation
425
+ #
426
+ # @overload batch_disassociate_client_device_from_core_device(params = {})
427
+ # @param [Hash] params ({})
428
+ def batch_disassociate_client_device_from_core_device(params = {}, options = {})
429
+ req = build_request(:batch_disassociate_client_device_from_core_device, params)
430
+ req.send_request(options)
431
+ end
432
+
330
433
  # Cancels a deployment. This operation cancels the deployment for
331
434
  # devices that haven't yet received it. If a device already received
332
435
  # the deployment, this operation doesn't change anything for that
@@ -990,7 +1093,52 @@ module Aws::GreengrassV2
990
1093
  req.send_request(options)
991
1094
  end
992
1095
 
993
- # Retrieves a paginated list of all versions for a component.
1096
+ # Retrieves a paginated list of client devices that are associated with
1097
+ # a core device.
1098
+ #
1099
+ # @option params [required, String] :core_device_thing_name
1100
+ # The name of the core device. This is also the name of the AWS IoT
1101
+ # thing.
1102
+ #
1103
+ # @option params [Integer] :max_results
1104
+ # The maximum number of results to be returned per paginated request.
1105
+ #
1106
+ # @option params [String] :next_token
1107
+ # The token to be used for the next set of paginated results.
1108
+ #
1109
+ # @return [Types::ListClientDevicesAssociatedWithCoreDeviceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1110
+ #
1111
+ # * {Types::ListClientDevicesAssociatedWithCoreDeviceResponse#associated_client_devices #associated_client_devices} => Array&lt;Types::AssociatedClientDevice&gt;
1112
+ # * {Types::ListClientDevicesAssociatedWithCoreDeviceResponse#next_token #next_token} => String
1113
+ #
1114
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1115
+ #
1116
+ # @example Request syntax with placeholder values
1117
+ #
1118
+ # resp = client.list_client_devices_associated_with_core_device({
1119
+ # core_device_thing_name: "IoTThingName", # required
1120
+ # max_results: 1,
1121
+ # next_token: "NextTokenString",
1122
+ # })
1123
+ #
1124
+ # @example Response structure
1125
+ #
1126
+ # resp.associated_client_devices #=> Array
1127
+ # resp.associated_client_devices[0].thing_name #=> String
1128
+ # resp.associated_client_devices[0].association_timestamp #=> Time
1129
+ # resp.next_token #=> String
1130
+ #
1131
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/ListClientDevicesAssociatedWithCoreDevice AWS API Documentation
1132
+ #
1133
+ # @overload list_client_devices_associated_with_core_device(params = {})
1134
+ # @param [Hash] params ({})
1135
+ def list_client_devices_associated_with_core_device(params = {}, options = {})
1136
+ req = build_request(:list_client_devices_associated_with_core_device, params)
1137
+ req.send_request(options)
1138
+ end
1139
+
1140
+ # Retrieves a paginated list of all versions for a component. Greater
1141
+ # versions are listed first.
994
1142
  #
995
1143
  # @option params [required, String] :arn
996
1144
  # The [ARN][1] of the component version.
@@ -1501,7 +1649,7 @@ module Aws::GreengrassV2
1501
1649
  params: params,
1502
1650
  config: config)
1503
1651
  context[:gem_name] = 'aws-sdk-greengrassv2'
1504
- context[:gem_version] = '1.3.0'
1652
+ context[:gem_version] = '1.4.0'
1505
1653
  Seahorse::Client::Request.new(handlers, context)
1506
1654
  end
1507
1655
 
@@ -14,6 +14,16 @@ module Aws::GreengrassV2
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AssociateClientDeviceWithCoreDeviceEntry = Shapes::StructureShape.new(name: 'AssociateClientDeviceWithCoreDeviceEntry')
18
+ AssociateClientDeviceWithCoreDeviceEntryList = Shapes::ListShape.new(name: 'AssociateClientDeviceWithCoreDeviceEntryList')
19
+ AssociateClientDeviceWithCoreDeviceErrorEntry = Shapes::StructureShape.new(name: 'AssociateClientDeviceWithCoreDeviceErrorEntry')
20
+ AssociateClientDeviceWithCoreDeviceErrorList = Shapes::ListShape.new(name: 'AssociateClientDeviceWithCoreDeviceErrorList')
21
+ AssociatedClientDevice = Shapes::StructureShape.new(name: 'AssociatedClientDevice')
22
+ AssociatedClientDeviceList = Shapes::ListShape.new(name: 'AssociatedClientDeviceList')
23
+ BatchAssociateClientDeviceWithCoreDeviceRequest = Shapes::StructureShape.new(name: 'BatchAssociateClientDeviceWithCoreDeviceRequest')
24
+ BatchAssociateClientDeviceWithCoreDeviceResponse = Shapes::StructureShape.new(name: 'BatchAssociateClientDeviceWithCoreDeviceResponse')
25
+ BatchDisassociateClientDeviceFromCoreDeviceRequest = Shapes::StructureShape.new(name: 'BatchDisassociateClientDeviceFromCoreDeviceRequest')
26
+ BatchDisassociateClientDeviceFromCoreDeviceResponse = Shapes::StructureShape.new(name: 'BatchDisassociateClientDeviceFromCoreDeviceResponse')
17
27
  CancelDeploymentRequest = Shapes::StructureShape.new(name: 'CancelDeploymentRequest')
18
28
  CancelDeploymentResponse = Shapes::StructureShape.new(name: 'CancelDeploymentResponse')
19
29
  CloudComponentState = Shapes::StringShape.new(name: 'CloudComponentState')
@@ -73,6 +83,10 @@ module Aws::GreengrassV2
73
83
  DescribeComponentResponse = Shapes::StructureShape.new(name: 'DescribeComponentResponse')
74
84
  Description = Shapes::StringShape.new(name: 'Description')
75
85
  DescriptionString = Shapes::StringShape.new(name: 'DescriptionString')
86
+ DisassociateClientDeviceFromCoreDeviceEntry = Shapes::StructureShape.new(name: 'DisassociateClientDeviceFromCoreDeviceEntry')
87
+ DisassociateClientDeviceFromCoreDeviceEntryList = Shapes::ListShape.new(name: 'DisassociateClientDeviceFromCoreDeviceEntryList')
88
+ DisassociateClientDeviceFromCoreDeviceErrorEntry = Shapes::StructureShape.new(name: 'DisassociateClientDeviceFromCoreDeviceErrorEntry')
89
+ DisassociateClientDeviceFromCoreDeviceErrorList = Shapes::ListShape.new(name: 'DisassociateClientDeviceFromCoreDeviceErrorList')
76
90
  EffectiveDeployment = Shapes::StructureShape.new(name: 'EffectiveDeployment')
77
91
  EffectiveDeploymentExecutionStatus = Shapes::StringShape.new(name: 'EffectiveDeploymentExecutionStatus')
78
92
  EffectiveDeploymentsList = Shapes::ListShape.new(name: 'EffectiveDeploymentsList')
@@ -109,6 +123,7 @@ module Aws::GreengrassV2
109
123
  IoTJobRolloutBaseRatePerMinute = Shapes::IntegerShape.new(name: 'IoTJobRolloutBaseRatePerMinute')
110
124
  IoTJobRolloutIncrementFactor = Shapes::FloatShape.new(name: 'IoTJobRolloutIncrementFactor')
111
125
  IoTJobTimeoutConfig = Shapes::StructureShape.new(name: 'IoTJobTimeoutConfig')
126
+ IoTThingName = Shapes::StringShape.new(name: 'IoTThingName')
112
127
  IsLatestForTarget = Shapes::BooleanShape.new(name: 'IsLatestForTarget')
113
128
  IsRoot = Shapes::BooleanShape.new(name: 'IsRoot')
114
129
  LambdaContainerParams = Shapes::StructureShape.new(name: 'LambdaContainerParams')
@@ -130,6 +145,8 @@ module Aws::GreengrassV2
130
145
  LambdaVolumeList = Shapes::ListShape.new(name: 'LambdaVolumeList')
131
146
  LambdaVolumeMount = Shapes::StructureShape.new(name: 'LambdaVolumeMount')
132
147
  LifecycleStateDetails = Shapes::StringShape.new(name: 'LifecycleStateDetails')
148
+ ListClientDevicesAssociatedWithCoreDeviceRequest = Shapes::StructureShape.new(name: 'ListClientDevicesAssociatedWithCoreDeviceRequest')
149
+ ListClientDevicesAssociatedWithCoreDeviceResponse = Shapes::StructureShape.new(name: 'ListClientDevicesAssociatedWithCoreDeviceResponse')
133
150
  ListComponentVersionsRequest = Shapes::StructureShape.new(name: 'ListComponentVersionsRequest')
134
151
  ListComponentVersionsResponse = Shapes::StructureShape.new(name: 'ListComponentVersionsResponse')
135
152
  ListComponentsRequest = Shapes::StructureShape.new(name: 'ListComponentsRequest')
@@ -184,6 +201,38 @@ module Aws::GreengrassV2
184
201
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
185
202
  AccessDeniedException.struct_class = Types::AccessDeniedException
186
203
 
204
+ AssociateClientDeviceWithCoreDeviceEntry.add_member(:thing_name, Shapes::ShapeRef.new(shape: IoTThingName, required: true, location_name: "thingName"))
205
+ AssociateClientDeviceWithCoreDeviceEntry.struct_class = Types::AssociateClientDeviceWithCoreDeviceEntry
206
+
207
+ AssociateClientDeviceWithCoreDeviceEntryList.member = Shapes::ShapeRef.new(shape: AssociateClientDeviceWithCoreDeviceEntry)
208
+
209
+ AssociateClientDeviceWithCoreDeviceErrorEntry.add_member(:thing_name, Shapes::ShapeRef.new(shape: IoTThingName, location_name: "thingName"))
210
+ AssociateClientDeviceWithCoreDeviceErrorEntry.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "code"))
211
+ AssociateClientDeviceWithCoreDeviceErrorEntry.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "message"))
212
+ AssociateClientDeviceWithCoreDeviceErrorEntry.struct_class = Types::AssociateClientDeviceWithCoreDeviceErrorEntry
213
+
214
+ AssociateClientDeviceWithCoreDeviceErrorList.member = Shapes::ShapeRef.new(shape: AssociateClientDeviceWithCoreDeviceErrorEntry)
215
+
216
+ AssociatedClientDevice.add_member(:thing_name, Shapes::ShapeRef.new(shape: IoTThingName, location_name: "thingName"))
217
+ AssociatedClientDevice.add_member(:association_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "associationTimestamp"))
218
+ AssociatedClientDevice.struct_class = Types::AssociatedClientDevice
219
+
220
+ AssociatedClientDeviceList.member = Shapes::ShapeRef.new(shape: AssociatedClientDevice)
221
+
222
+ BatchAssociateClientDeviceWithCoreDeviceRequest.add_member(:entries, Shapes::ShapeRef.new(shape: AssociateClientDeviceWithCoreDeviceEntryList, location_name: "entries"))
223
+ BatchAssociateClientDeviceWithCoreDeviceRequest.add_member(:core_device_thing_name, Shapes::ShapeRef.new(shape: IoTThingName, required: true, location: "uri", location_name: "coreDeviceThingName"))
224
+ BatchAssociateClientDeviceWithCoreDeviceRequest.struct_class = Types::BatchAssociateClientDeviceWithCoreDeviceRequest
225
+
226
+ BatchAssociateClientDeviceWithCoreDeviceResponse.add_member(:error_entries, Shapes::ShapeRef.new(shape: AssociateClientDeviceWithCoreDeviceErrorList, location_name: "errorEntries"))
227
+ BatchAssociateClientDeviceWithCoreDeviceResponse.struct_class = Types::BatchAssociateClientDeviceWithCoreDeviceResponse
228
+
229
+ BatchDisassociateClientDeviceFromCoreDeviceRequest.add_member(:entries, Shapes::ShapeRef.new(shape: DisassociateClientDeviceFromCoreDeviceEntryList, location_name: "entries"))
230
+ BatchDisassociateClientDeviceFromCoreDeviceRequest.add_member(:core_device_thing_name, Shapes::ShapeRef.new(shape: IoTThingName, required: true, location: "uri", location_name: "coreDeviceThingName"))
231
+ BatchDisassociateClientDeviceFromCoreDeviceRequest.struct_class = Types::BatchDisassociateClientDeviceFromCoreDeviceRequest
232
+
233
+ BatchDisassociateClientDeviceFromCoreDeviceResponse.add_member(:error_entries, Shapes::ShapeRef.new(shape: DisassociateClientDeviceFromCoreDeviceErrorList, location_name: "errorEntries"))
234
+ BatchDisassociateClientDeviceFromCoreDeviceResponse.struct_class = Types::BatchDisassociateClientDeviceFromCoreDeviceResponse
235
+
187
236
  CancelDeploymentRequest.add_member(:deployment_id, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location: "uri", location_name: "deploymentId"))
188
237
  CancelDeploymentRequest.struct_class = Types::CancelDeploymentRequest
189
238
 
@@ -342,6 +391,18 @@ module Aws::GreengrassV2
342
391
  DescribeComponentResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
343
392
  DescribeComponentResponse.struct_class = Types::DescribeComponentResponse
344
393
 
394
+ DisassociateClientDeviceFromCoreDeviceEntry.add_member(:thing_name, Shapes::ShapeRef.new(shape: IoTThingName, required: true, location_name: "thingName"))
395
+ DisassociateClientDeviceFromCoreDeviceEntry.struct_class = Types::DisassociateClientDeviceFromCoreDeviceEntry
396
+
397
+ DisassociateClientDeviceFromCoreDeviceEntryList.member = Shapes::ShapeRef.new(shape: DisassociateClientDeviceFromCoreDeviceEntry)
398
+
399
+ DisassociateClientDeviceFromCoreDeviceErrorEntry.add_member(:thing_name, Shapes::ShapeRef.new(shape: IoTThingName, location_name: "thingName"))
400
+ DisassociateClientDeviceFromCoreDeviceErrorEntry.add_member(:code, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "code"))
401
+ DisassociateClientDeviceFromCoreDeviceErrorEntry.add_member(:message, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "message"))
402
+ DisassociateClientDeviceFromCoreDeviceErrorEntry.struct_class = Types::DisassociateClientDeviceFromCoreDeviceErrorEntry
403
+
404
+ DisassociateClientDeviceFromCoreDeviceErrorList.member = Shapes::ShapeRef.new(shape: DisassociateClientDeviceFromCoreDeviceErrorEntry)
405
+
345
406
  EffectiveDeployment.add_member(:deployment_id, Shapes::ShapeRef.new(shape: DeploymentID, required: true, location_name: "deploymentId"))
346
407
  EffectiveDeployment.add_member(:deployment_name, Shapes::ShapeRef.new(shape: DeploymentName, required: true, location_name: "deploymentName"))
347
408
  EffectiveDeployment.add_member(:iot_job_id, Shapes::ShapeRef.new(shape: IoTJobId, location_name: "iotJobId"))
@@ -499,6 +560,15 @@ module Aws::GreengrassV2
499
560
  LambdaVolumeMount.add_member(:add_group_owner, Shapes::ShapeRef.new(shape: OptionalBoolean, location_name: "addGroupOwner", metadata: {"box"=>true}))
500
561
  LambdaVolumeMount.struct_class = Types::LambdaVolumeMount
501
562
 
563
+ ListClientDevicesAssociatedWithCoreDeviceRequest.add_member(:core_device_thing_name, Shapes::ShapeRef.new(shape: IoTThingName, required: true, location: "uri", location_name: "coreDeviceThingName"))
564
+ ListClientDevicesAssociatedWithCoreDeviceRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DefaultMaxResults, location: "querystring", location_name: "maxResults", metadata: {"box"=>true}))
565
+ ListClientDevicesAssociatedWithCoreDeviceRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenString, location: "querystring", location_name: "nextToken", metadata: {"box"=>true}))
566
+ ListClientDevicesAssociatedWithCoreDeviceRequest.struct_class = Types::ListClientDevicesAssociatedWithCoreDeviceRequest
567
+
568
+ ListClientDevicesAssociatedWithCoreDeviceResponse.add_member(:associated_client_devices, Shapes::ShapeRef.new(shape: AssociatedClientDeviceList, location_name: "associatedClientDevices"))
569
+ ListClientDevicesAssociatedWithCoreDeviceResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenString, location_name: "nextToken", metadata: {"box"=>true}))
570
+ ListClientDevicesAssociatedWithCoreDeviceResponse.struct_class = Types::ListClientDevicesAssociatedWithCoreDeviceResponse
571
+
502
572
  ListComponentVersionsRequest.add_member(:arn, Shapes::ShapeRef.new(shape: ComponentARN, required: true, location: "uri", location_name: "arn"))
503
573
  ListComponentVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DefaultMaxResults, location: "querystring", location_name: "maxResults", metadata: {"box"=>true}))
504
574
  ListComponentVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenString, location: "querystring", location_name: "nextToken", metadata: {"box"=>true}))
@@ -646,6 +716,32 @@ module Aws::GreengrassV2
646
716
  "uid" => "greengrassv2-2020-11-30",
647
717
  }
648
718
 
719
+ api.add_operation(:batch_associate_client_device_with_core_device, Seahorse::Model::Operation.new.tap do |o|
720
+ o.name = "BatchAssociateClientDeviceWithCoreDevice"
721
+ o.http_method = "POST"
722
+ o.http_request_uri = "/greengrass/v2/coreDevices/{coreDeviceThingName}/associateClientDevices"
723
+ o.input = Shapes::ShapeRef.new(shape: BatchAssociateClientDeviceWithCoreDeviceRequest)
724
+ o.output = Shapes::ShapeRef.new(shape: BatchAssociateClientDeviceWithCoreDeviceResponse)
725
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
726
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
727
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
728
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
729
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
730
+ end)
731
+
732
+ api.add_operation(:batch_disassociate_client_device_from_core_device, Seahorse::Model::Operation.new.tap do |o|
733
+ o.name = "BatchDisassociateClientDeviceFromCoreDevice"
734
+ o.http_method = "POST"
735
+ o.http_request_uri = "/greengrass/v2/coreDevices/{coreDeviceThingName}/disassociateClientDevices"
736
+ o.input = Shapes::ShapeRef.new(shape: BatchDisassociateClientDeviceFromCoreDeviceRequest)
737
+ o.output = Shapes::ShapeRef.new(shape: BatchDisassociateClientDeviceFromCoreDeviceResponse)
738
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
739
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
740
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
741
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
742
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
743
+ end)
744
+
649
745
  api.add_operation(:cancel_deployment, Seahorse::Model::Operation.new.tap do |o|
650
746
  o.name = "CancelDeployment"
651
747
  o.http_method = "POST"
@@ -780,6 +876,25 @@ module Aws::GreengrassV2
780
876
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
781
877
  end)
782
878
 
879
+ api.add_operation(:list_client_devices_associated_with_core_device, Seahorse::Model::Operation.new.tap do |o|
880
+ o.name = "ListClientDevicesAssociatedWithCoreDevice"
881
+ o.http_method = "GET"
882
+ o.http_request_uri = "/greengrass/v2/coreDevices/{coreDeviceThingName}/associatedClientDevices"
883
+ o.input = Shapes::ShapeRef.new(shape: ListClientDevicesAssociatedWithCoreDeviceRequest)
884
+ o.output = Shapes::ShapeRef.new(shape: ListClientDevicesAssociatedWithCoreDeviceResponse)
885
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
886
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
887
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
888
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
889
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
890
+ o[:pager] = Aws::Pager.new(
891
+ limit_key: "max_results",
892
+ tokens: {
893
+ "next_token" => "next_token"
894
+ }
895
+ )
896
+ end)
897
+
783
898
  api.add_operation(:list_component_versions, Seahorse::Model::Operation.new.tap do |o|
784
899
  o.name = "ListComponentVersions"
785
900
  o.http_method = "GET"
@@ -23,6 +23,175 @@ module Aws::GreengrassV2
23
23
  include Aws::Structure
24
24
  end
25
25
 
26
+ # Contains a request to associate a client device with a core device.
27
+ # The [BatchAssociateClientDeviceWithCoreDevice][1] operation consumes a
28
+ # list of these requests.
29
+ #
30
+ #
31
+ #
32
+ # [1]: https://docs.aws.amazon.com/greengrass/v2/APIReference/API_BatchAssociateClientDeviceWithCoreDevice.html
33
+ #
34
+ # @note When making an API call, you may pass AssociateClientDeviceWithCoreDeviceEntry
35
+ # data as a hash:
36
+ #
37
+ # {
38
+ # thing_name: "IoTThingName", # required
39
+ # }
40
+ #
41
+ # @!attribute [rw] thing_name
42
+ # The name of the AWS IoT thing that represents the client device to
43
+ # associate.
44
+ # @return [String]
45
+ #
46
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/AssociateClientDeviceWithCoreDeviceEntry AWS API Documentation
47
+ #
48
+ class AssociateClientDeviceWithCoreDeviceEntry < Struct.new(
49
+ :thing_name)
50
+ SENSITIVE = []
51
+ include Aws::Structure
52
+ end
53
+
54
+ # Contains an error that occurs from a request to associate a client
55
+ # device with a core device. The
56
+ # [BatchAssociateClientDeviceWithCoreDevice][1] operation returns a list
57
+ # of these errors.
58
+ #
59
+ #
60
+ #
61
+ # [1]: https://docs.aws.amazon.com/greengrass/v2/APIReference/API_BatchAssociateClientDeviceWithCoreDevice.html
62
+ #
63
+ # @!attribute [rw] thing_name
64
+ # The name of the AWS IoT thing whose associate request failed.
65
+ # @return [String]
66
+ #
67
+ # @!attribute [rw] code
68
+ # The error code for the request.
69
+ # @return [String]
70
+ #
71
+ # @!attribute [rw] message
72
+ # A message that provides additional information about the error.
73
+ # @return [String]
74
+ #
75
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/AssociateClientDeviceWithCoreDeviceErrorEntry AWS API Documentation
76
+ #
77
+ class AssociateClientDeviceWithCoreDeviceErrorEntry < Struct.new(
78
+ :thing_name,
79
+ :code,
80
+ :message)
81
+ SENSITIVE = []
82
+ include Aws::Structure
83
+ end
84
+
85
+ # Contains information about a client device that is associated to a
86
+ # core device for cloud discovery.
87
+ #
88
+ # @!attribute [rw] thing_name
89
+ # The name of the AWS IoT thing that represents the associated client
90
+ # device.
91
+ # @return [String]
92
+ #
93
+ # @!attribute [rw] association_timestamp
94
+ # The time that the client device was associated, expressed in ISO
95
+ # 8601 format.
96
+ # @return [Time]
97
+ #
98
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/AssociatedClientDevice AWS API Documentation
99
+ #
100
+ class AssociatedClientDevice < Struct.new(
101
+ :thing_name,
102
+ :association_timestamp)
103
+ SENSITIVE = []
104
+ include Aws::Structure
105
+ end
106
+
107
+ # @note When making an API call, you may pass BatchAssociateClientDeviceWithCoreDeviceRequest
108
+ # data as a hash:
109
+ #
110
+ # {
111
+ # entries: [
112
+ # {
113
+ # thing_name: "IoTThingName", # required
114
+ # },
115
+ # ],
116
+ # core_device_thing_name: "IoTThingName", # required
117
+ # }
118
+ #
119
+ # @!attribute [rw] entries
120
+ # The list of client devices to associate.
121
+ # @return [Array<Types::AssociateClientDeviceWithCoreDeviceEntry>]
122
+ #
123
+ # @!attribute [rw] core_device_thing_name
124
+ # The name of the core device. This is also the name of the AWS IoT
125
+ # thing.
126
+ # @return [String]
127
+ #
128
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/BatchAssociateClientDeviceWithCoreDeviceRequest AWS API Documentation
129
+ #
130
+ class BatchAssociateClientDeviceWithCoreDeviceRequest < Struct.new(
131
+ :entries,
132
+ :core_device_thing_name)
133
+ SENSITIVE = []
134
+ include Aws::Structure
135
+ end
136
+
137
+ # @!attribute [rw] error_entries
138
+ # The list of any errors for the entries in the request. Each error
139
+ # entry contains the name of the AWS IoT thing that failed to
140
+ # associate.
141
+ # @return [Array<Types::AssociateClientDeviceWithCoreDeviceErrorEntry>]
142
+ #
143
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/BatchAssociateClientDeviceWithCoreDeviceResponse AWS API Documentation
144
+ #
145
+ class BatchAssociateClientDeviceWithCoreDeviceResponse < Struct.new(
146
+ :error_entries)
147
+ SENSITIVE = []
148
+ include Aws::Structure
149
+ end
150
+
151
+ # @note When making an API call, you may pass BatchDisassociateClientDeviceFromCoreDeviceRequest
152
+ # data as a hash:
153
+ #
154
+ # {
155
+ # entries: [
156
+ # {
157
+ # thing_name: "IoTThingName", # required
158
+ # },
159
+ # ],
160
+ # core_device_thing_name: "IoTThingName", # required
161
+ # }
162
+ #
163
+ # @!attribute [rw] entries
164
+ # The list of client devices to disassociate.
165
+ # @return [Array<Types::DisassociateClientDeviceFromCoreDeviceEntry>]
166
+ #
167
+ # @!attribute [rw] core_device_thing_name
168
+ # The name of the core device. This is also the name of the AWS IoT
169
+ # thing.
170
+ # @return [String]
171
+ #
172
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/BatchDisassociateClientDeviceFromCoreDeviceRequest AWS API Documentation
173
+ #
174
+ class BatchDisassociateClientDeviceFromCoreDeviceRequest < Struct.new(
175
+ :entries,
176
+ :core_device_thing_name)
177
+ SENSITIVE = []
178
+ include Aws::Structure
179
+ end
180
+
181
+ # @!attribute [rw] error_entries
182
+ # The list of errors (if any) for the entries in the request. Each
183
+ # error entry contains the name of the AWS IoT thing that failed to
184
+ # disassociate.
185
+ # @return [Array<Types::DisassociateClientDeviceFromCoreDeviceErrorEntry>]
186
+ #
187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/BatchDisassociateClientDeviceFromCoreDeviceResponse AWS API Documentation
188
+ #
189
+ class BatchDisassociateClientDeviceFromCoreDeviceResponse < Struct.new(
190
+ :error_entries)
191
+ SENSITIVE = []
192
+ include Aws::Structure
193
+ end
194
+
26
195
  # @note When making an API call, you may pass CancelDeploymentRequest
27
196
  # data as a hash:
28
197
  #
@@ -1188,6 +1357,65 @@ module Aws::GreengrassV2
1188
1357
  include Aws::Structure
1189
1358
  end
1190
1359
 
1360
+ # Contains a request to disassociate a client device from a core device.
1361
+ # The [BatchDisassociateClientDeviceWithCoreDevice][1] operation
1362
+ # consumes a list of these requests.
1363
+ #
1364
+ #
1365
+ #
1366
+ # [1]: https://docs.aws.amazon.com/greengrass/v2/APIReference/API_BatchDisassociateClientDeviceWithCoreDevice.html
1367
+ #
1368
+ # @note When making an API call, you may pass DisassociateClientDeviceFromCoreDeviceEntry
1369
+ # data as a hash:
1370
+ #
1371
+ # {
1372
+ # thing_name: "IoTThingName", # required
1373
+ # }
1374
+ #
1375
+ # @!attribute [rw] thing_name
1376
+ # The name of the AWS IoT thing that represents the client device to
1377
+ # disassociate.
1378
+ # @return [String]
1379
+ #
1380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/DisassociateClientDeviceFromCoreDeviceEntry AWS API Documentation
1381
+ #
1382
+ class DisassociateClientDeviceFromCoreDeviceEntry < Struct.new(
1383
+ :thing_name)
1384
+ SENSITIVE = []
1385
+ include Aws::Structure
1386
+ end
1387
+
1388
+ # Contains an error that occurs from a request to disassociate a client
1389
+ # device from a core device. The
1390
+ # [BatchDisassociateClientDeviceWithCoreDevice][1] operation returns a
1391
+ # list of these errors.
1392
+ #
1393
+ #
1394
+ #
1395
+ # [1]: https://docs.aws.amazon.com/greengrass/v2/APIReference/API_BatchDisassociateClientDeviceWithCoreDevice.html
1396
+ #
1397
+ # @!attribute [rw] thing_name
1398
+ # The name of the AWS IoT thing whose disassociate request failed.
1399
+ # @return [String]
1400
+ #
1401
+ # @!attribute [rw] code
1402
+ # The error code for the request.
1403
+ # @return [String]
1404
+ #
1405
+ # @!attribute [rw] message
1406
+ # A message that provides additional information about the error.
1407
+ # @return [String]
1408
+ #
1409
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/DisassociateClientDeviceFromCoreDeviceErrorEntry AWS API Documentation
1410
+ #
1411
+ class DisassociateClientDeviceFromCoreDeviceErrorEntry < Struct.new(
1412
+ :thing_name,
1413
+ :code,
1414
+ :message)
1415
+ SENSITIVE = []
1416
+ include Aws::Structure
1417
+ end
1418
+
1191
1419
  # Contains information about a deployment job that AWS IoT Greengrass
1192
1420
  # sends to a AWS IoT Greengrass core device.
1193
1421
  #
@@ -2338,6 +2566,57 @@ module Aws::GreengrassV2
2338
2566
  include Aws::Structure
2339
2567
  end
2340
2568
 
2569
+ # @note When making an API call, you may pass ListClientDevicesAssociatedWithCoreDeviceRequest
2570
+ # data as a hash:
2571
+ #
2572
+ # {
2573
+ # core_device_thing_name: "IoTThingName", # required
2574
+ # max_results: 1,
2575
+ # next_token: "NextTokenString",
2576
+ # }
2577
+ #
2578
+ # @!attribute [rw] core_device_thing_name
2579
+ # The name of the core device. This is also the name of the AWS IoT
2580
+ # thing.
2581
+ # @return [String]
2582
+ #
2583
+ # @!attribute [rw] max_results
2584
+ # The maximum number of results to be returned per paginated request.
2585
+ # @return [Integer]
2586
+ #
2587
+ # @!attribute [rw] next_token
2588
+ # The token to be used for the next set of paginated results.
2589
+ # @return [String]
2590
+ #
2591
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/ListClientDevicesAssociatedWithCoreDeviceRequest AWS API Documentation
2592
+ #
2593
+ class ListClientDevicesAssociatedWithCoreDeviceRequest < Struct.new(
2594
+ :core_device_thing_name,
2595
+ :max_results,
2596
+ :next_token)
2597
+ SENSITIVE = []
2598
+ include Aws::Structure
2599
+ end
2600
+
2601
+ # @!attribute [rw] associated_client_devices
2602
+ # A list that describes the client devices that are associated with
2603
+ # the core device.
2604
+ # @return [Array<Types::AssociatedClientDevice>]
2605
+ #
2606
+ # @!attribute [rw] next_token
2607
+ # The token for the next set of results, or null if there are no
2608
+ # additional results.
2609
+ # @return [String]
2610
+ #
2611
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/ListClientDevicesAssociatedWithCoreDeviceResponse AWS API Documentation
2612
+ #
2613
+ class ListClientDevicesAssociatedWithCoreDeviceResponse < Struct.new(
2614
+ :associated_client_devices,
2615
+ :next_token)
2616
+ SENSITIVE = []
2617
+ include Aws::Structure
2618
+ end
2619
+
2341
2620
  # @note When making an API call, you may pass ListComponentVersionsRequest
2342
2621
  # data as a hash:
2343
2622
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-greengrassv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.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: 2021-03-10 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -66,8 +66,8 @@ homepage: https://github.com/aws/aws-sdk-ruby
66
66
  licenses:
67
67
  - Apache-2.0
68
68
  metadata:
69
- source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-greengrassv2
70
- changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-greengrassv2/CHANGELOG.md
69
+ source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-greengrassv2
70
+ changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-greengrassv2/CHANGELOG.md
71
71
  post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.7.6.2
86
+ rubygems_version: 3.1.6
88
87
  signing_key:
89
88
  specification_version: 4
90
89
  summary: AWS SDK for Ruby - AWS GreengrassV2