aws-sdk-greengrass 1.16.0 → 1.17.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.
@@ -198,6 +198,8 @@ module Aws::Greengrass
198
198
  ListSubscriptionDefinitionVersionsResponse = Shapes::StructureShape.new(name: 'ListSubscriptionDefinitionVersionsResponse')
199
199
  ListSubscriptionDefinitionsRequest = Shapes::StructureShape.new(name: 'ListSubscriptionDefinitionsRequest')
200
200
  ListSubscriptionDefinitionsResponse = Shapes::StructureShape.new(name: 'ListSubscriptionDefinitionsResponse')
201
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
202
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
201
203
  ListVersionsResponse = Shapes::StructureShape.new(name: 'ListVersionsResponse')
202
204
  LocalDeviceResourceData = Shapes::StructureShape.new(name: 'LocalDeviceResourceData')
203
205
  LocalVolumeResourceData = Shapes::StructureShape.new(name: 'LocalVolumeResourceData')
@@ -224,6 +226,9 @@ module Aws::Greengrass
224
226
  StopBulkDeploymentResponse = Shapes::StructureShape.new(name: 'StopBulkDeploymentResponse')
225
227
  Subscription = Shapes::StructureShape.new(name: 'Subscription')
226
228
  SubscriptionDefinitionVersion = Shapes::StructureShape.new(name: 'SubscriptionDefinitionVersion')
229
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
230
+ Tags = Shapes::MapShape.new(name: 'Tags')
231
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
227
232
  UpdateAgentLogLevel = Shapes::StringShape.new(name: 'UpdateAgentLogLevel')
228
233
  UpdateConnectivityInfoRequest = Shapes::StructureShape.new(name: 'UpdateConnectivityInfoRequest')
229
234
  UpdateConnectivityInfoResponse = Shapes::StructureShape.new(name: 'UpdateConnectivityInfoResponse')
@@ -335,6 +340,7 @@ module Aws::Greengrass
335
340
  CreateConnectorDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
336
341
  CreateConnectorDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: ConnectorDefinitionVersion, location_name: "InitialVersion"))
337
342
  CreateConnectorDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
343
+ CreateConnectorDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
338
344
  CreateConnectorDefinitionRequest.struct_class = Types::CreateConnectorDefinitionRequest
339
345
 
340
346
  CreateConnectorDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -360,6 +366,7 @@ module Aws::Greengrass
360
366
  CreateCoreDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
361
367
  CreateCoreDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: CoreDefinitionVersion, location_name: "InitialVersion"))
362
368
  CreateCoreDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
369
+ CreateCoreDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
363
370
  CreateCoreDefinitionRequest.struct_class = Types::CreateCoreDefinitionRequest
364
371
 
365
372
  CreateCoreDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -396,6 +403,7 @@ module Aws::Greengrass
396
403
  CreateDeviceDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
397
404
  CreateDeviceDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: DeviceDefinitionVersion, location_name: "InitialVersion"))
398
405
  CreateDeviceDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
406
+ CreateDeviceDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
399
407
  CreateDeviceDefinitionRequest.struct_class = Types::CreateDeviceDefinitionRequest
400
408
 
401
409
  CreateDeviceDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -421,6 +429,7 @@ module Aws::Greengrass
421
429
  CreateFunctionDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
422
430
  CreateFunctionDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: FunctionDefinitionVersion, location_name: "InitialVersion"))
423
431
  CreateFunctionDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
432
+ CreateFunctionDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
424
433
  CreateFunctionDefinitionRequest.struct_class = Types::CreateFunctionDefinitionRequest
425
434
 
426
435
  CreateFunctionDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -454,6 +463,7 @@ module Aws::Greengrass
454
463
  CreateGroupRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
455
464
  CreateGroupRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: GroupVersion, location_name: "InitialVersion"))
456
465
  CreateGroupRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
466
+ CreateGroupRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
457
467
  CreateGroupRequest.struct_class = Types::CreateGroupRequest
458
468
 
459
469
  CreateGroupResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -485,6 +495,7 @@ module Aws::Greengrass
485
495
  CreateLoggerDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
486
496
  CreateLoggerDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: LoggerDefinitionVersion, location_name: "InitialVersion"))
487
497
  CreateLoggerDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
498
+ CreateLoggerDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
488
499
  CreateLoggerDefinitionRequest.struct_class = Types::CreateLoggerDefinitionRequest
489
500
 
490
501
  CreateLoggerDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -510,6 +521,7 @@ module Aws::Greengrass
510
521
  CreateResourceDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
511
522
  CreateResourceDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: ResourceDefinitionVersion, location_name: "InitialVersion"))
512
523
  CreateResourceDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
524
+ CreateResourceDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
513
525
  CreateResourceDefinitionRequest.struct_class = Types::CreateResourceDefinitionRequest
514
526
 
515
527
  CreateResourceDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -548,6 +560,7 @@ module Aws::Greengrass
548
560
  CreateSubscriptionDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
549
561
  CreateSubscriptionDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: SubscriptionDefinitionVersion, location_name: "InitialVersion"))
550
562
  CreateSubscriptionDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
563
+ CreateSubscriptionDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
551
564
  CreateSubscriptionDefinitionRequest.struct_class = Types::CreateSubscriptionDefinitionRequest
552
565
 
553
566
  CreateSubscriptionDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
@@ -577,6 +590,7 @@ module Aws::Greengrass
577
590
  DefinitionInformation.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
578
591
  DefinitionInformation.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
579
592
  DefinitionInformation.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
593
+ DefinitionInformation.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
580
594
  DefinitionInformation.struct_class = Types::DefinitionInformation
581
595
 
582
596
  DeleteConnectorDefinitionRequest.add_member(:connector_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ConnectorDefinitionId"))
@@ -714,6 +728,7 @@ module Aws::Greengrass
714
728
  GetBulkDeploymentStatusResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: __string, location_name: "CreatedAt"))
715
729
  GetBulkDeploymentStatusResponse.add_member(:error_details, Shapes::ShapeRef.new(shape: ErrorDetails, location_name: "ErrorDetails"))
716
730
  GetBulkDeploymentStatusResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: __string, location_name: "ErrorMessage"))
731
+ GetBulkDeploymentStatusResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
717
732
  GetBulkDeploymentStatusResponse.struct_class = Types::GetBulkDeploymentStatusResponse
718
733
 
719
734
  GetConnectivityInfoRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ThingName"))
@@ -733,6 +748,7 @@ module Aws::Greengrass
733
748
  GetConnectorDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
734
749
  GetConnectorDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
735
750
  GetConnectorDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
751
+ GetConnectorDefinitionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
736
752
  GetConnectorDefinitionResponse.struct_class = Types::GetConnectorDefinitionResponse
737
753
 
738
754
  GetConnectorDefinitionVersionRequest.add_member(:connector_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ConnectorDefinitionId"))
@@ -758,6 +774,7 @@ module Aws::Greengrass
758
774
  GetCoreDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
759
775
  GetCoreDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
760
776
  GetCoreDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
777
+ GetCoreDefinitionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
761
778
  GetCoreDefinitionResponse.struct_class = Types::GetCoreDefinitionResponse
762
779
 
763
780
  GetCoreDefinitionVersionRequest.add_member(:core_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "CoreDefinitionId"))
@@ -793,6 +810,7 @@ module Aws::Greengrass
793
810
  GetDeviceDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
794
811
  GetDeviceDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
795
812
  GetDeviceDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
813
+ GetDeviceDefinitionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
796
814
  GetDeviceDefinitionResponse.struct_class = Types::GetDeviceDefinitionResponse
797
815
 
798
816
  GetDeviceDefinitionVersionRequest.add_member(:device_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "DeviceDefinitionId"))
@@ -818,6 +836,7 @@ module Aws::Greengrass
818
836
  GetFunctionDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
819
837
  GetFunctionDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
820
838
  GetFunctionDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
839
+ GetFunctionDefinitionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
821
840
  GetFunctionDefinitionResponse.struct_class = Types::GetFunctionDefinitionResponse
822
841
 
823
842
  GetFunctionDefinitionVersionRequest.add_member(:function_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "FunctionDefinitionId"))
@@ -860,6 +879,7 @@ module Aws::Greengrass
860
879
  GetGroupResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
861
880
  GetGroupResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
862
881
  GetGroupResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
882
+ GetGroupResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
863
883
  GetGroupResponse.struct_class = Types::GetGroupResponse
864
884
 
865
885
  GetGroupVersionRequest.add_member(:group_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "GroupId"))
@@ -883,6 +903,7 @@ module Aws::Greengrass
883
903
  GetLoggerDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
884
904
  GetLoggerDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
885
905
  GetLoggerDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
906
+ GetLoggerDefinitionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
886
907
  GetLoggerDefinitionResponse.struct_class = Types::GetLoggerDefinitionResponse
887
908
 
888
909
  GetLoggerDefinitionVersionRequest.add_member(:logger_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "LoggerDefinitionId"))
@@ -907,6 +928,7 @@ module Aws::Greengrass
907
928
  GetResourceDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
908
929
  GetResourceDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
909
930
  GetResourceDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
931
+ GetResourceDefinitionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
910
932
  GetResourceDefinitionResponse.struct_class = Types::GetResourceDefinitionResponse
911
933
 
912
934
  GetResourceDefinitionVersionRequest.add_member(:resource_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionId"))
@@ -936,6 +958,7 @@ module Aws::Greengrass
936
958
  GetSubscriptionDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
937
959
  GetSubscriptionDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
938
960
  GetSubscriptionDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
961
+ GetSubscriptionDefinitionResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "tags"))
939
962
  GetSubscriptionDefinitionResponse.struct_class = Types::GetSubscriptionDefinitionResponse
940
963
 
941
964
  GetSubscriptionDefinitionVersionRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "NextToken"))
@@ -1154,6 +1177,12 @@ module Aws::Greengrass
1154
1177
  ListSubscriptionDefinitionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
1155
1178
  ListSubscriptionDefinitionsResponse.struct_class = Types::ListSubscriptionDefinitionsResponse
1156
1179
 
1180
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn"))
1181
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
1182
+
1183
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, location_name: "Tags"))
1184
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
1185
+
1157
1186
  ListVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
1158
1187
  ListVersionsResponse.add_member(:versions, Shapes::ShapeRef.new(shape: __listOfVersionInformation, location_name: "Versions"))
1159
1188
  ListVersionsResponse.struct_class = Types::ListVersionsResponse
@@ -1220,6 +1249,7 @@ module Aws::Greengrass
1220
1249
  StartBulkDeploymentRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
1221
1250
  StartBulkDeploymentRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: __string, location_name: "ExecutionRoleArn"))
1222
1251
  StartBulkDeploymentRequest.add_member(:input_file_uri, Shapes::ShapeRef.new(shape: __string, location_name: "InputFileUri"))
1252
+ StartBulkDeploymentRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1223
1253
  StartBulkDeploymentRequest.struct_class = Types::StartBulkDeploymentRequest
1224
1254
 
1225
1255
  StartBulkDeploymentResponse.add_member(:bulk_deployment_arn, Shapes::ShapeRef.new(shape: __string, location_name: "BulkDeploymentArn"))
@@ -1240,6 +1270,17 @@ module Aws::Greengrass
1240
1270
  SubscriptionDefinitionVersion.add_member(:subscriptions, Shapes::ShapeRef.new(shape: __listOfSubscription, location_name: "Subscriptions"))
1241
1271
  SubscriptionDefinitionVersion.struct_class = Types::SubscriptionDefinitionVersion
1242
1272
 
1273
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn"))
1274
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: __mapOf__string, required: true, location_name: "tags"))
1275
+ TagResourceRequest.struct_class = Types::TagResourceRequest
1276
+
1277
+ Tags.key = Shapes::ShapeRef.new(shape: __string)
1278
+ Tags.value = Shapes::ShapeRef.new(shape: __string)
1279
+
1280
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "resource-arn"))
1281
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: __listOf__string, required: true, location: "querystring", location_name: "tagKeys"))
1282
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
1283
+
1243
1284
  UpdateConnectivityInfoRequest.add_member(:connectivity_info, Shapes::ShapeRef.new(shape: __listOfConnectivityInfo, location_name: "ConnectivityInfo"))
1244
1285
  UpdateConnectivityInfoRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ThingName"))
1245
1286
  UpdateConnectivityInfoRequest.struct_class = Types::UpdateConnectivityInfoRequest
@@ -1555,6 +1596,15 @@ module Aws::Greengrass
1555
1596
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1556
1597
  end)
1557
1598
 
1599
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1600
+ o.name = "TagResource"
1601
+ o.http_method = "POST"
1602
+ o.http_request_uri = "/tags/{resource-arn}"
1603
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
1604
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1605
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1606
+ end)
1607
+
1558
1608
  api.add_operation(:delete_connector_definition, Seahorse::Model::Operation.new.tap do |o|
1559
1609
  o.name = "DeleteConnectorDefinition"
1560
1610
  o.http_method = "DELETE"
@@ -1627,6 +1677,15 @@ module Aws::Greengrass
1627
1677
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1628
1678
  end)
1629
1679
 
1680
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1681
+ o.name = "UntagResource"
1682
+ o.http_method = "DELETE"
1683
+ o.http_request_uri = "/tags/{resource-arn}"
1684
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
1685
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1686
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1687
+ end)
1688
+
1630
1689
  api.add_operation(:disassociate_role_from_group, Seahorse::Model::Operation.new.tap do |o|
1631
1690
  o.name = "DisassociateRoleFromGroup"
1632
1691
  o.http_method = "DELETE"
@@ -2030,6 +2089,15 @@ module Aws::Greengrass
2030
2089
  o.output = Shapes::ShapeRef.new(shape: ListSubscriptionDefinitionsResponse)
2031
2090
  end)
2032
2091
 
2092
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
2093
+ o.name = "ListTagsForResource"
2094
+ o.http_method = "GET"
2095
+ o.http_request_uri = "/tags/{resource-arn}"
2096
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
2097
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
2098
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
2099
+ end)
2100
+
2033
2101
  api.add_operation(:reset_deployments, Seahorse::Model::Operation.new.tap do |o|
2034
2102
  o.name = "ResetDeployments"
2035
2103
  o.http_method = "POST"
@@ -369,6 +369,9 @@ module Aws::Greengrass
369
369
  # ],
370
370
  # },
371
371
  # name: "__string",
372
+ # tags: {
373
+ # "__string" => "__string",
374
+ # },
372
375
  # }
373
376
  #
374
377
  # @!attribute [rw] amzn_client_token
@@ -382,12 +385,16 @@ module Aws::Greengrass
382
385
  # @!attribute [rw] name
383
386
  # @return [String]
384
387
  #
388
+ # @!attribute [rw] tags
389
+ # @return [Hash<String,String>]
390
+ #
385
391
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateConnectorDefinitionRequest AWS API Documentation
386
392
  #
387
393
  class CreateConnectorDefinitionRequest < Struct.new(
388
394
  :amzn_client_token,
389
395
  :initial_version,
390
- :name)
396
+ :name,
397
+ :tags)
391
398
  include Aws::Structure
392
399
  end
393
400
 
@@ -498,6 +505,9 @@ module Aws::Greengrass
498
505
  # ],
499
506
  # },
500
507
  # name: "__string",
508
+ # tags: {
509
+ # "__string" => "__string",
510
+ # },
501
511
  # }
502
512
  #
503
513
  # @!attribute [rw] amzn_client_token
@@ -510,12 +520,16 @@ module Aws::Greengrass
510
520
  # @!attribute [rw] name
511
521
  # @return [String]
512
522
  #
523
+ # @!attribute [rw] tags
524
+ # @return [Hash<String,String>]
525
+ #
513
526
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateCoreDefinitionRequest AWS API Documentation
514
527
  #
515
528
  class CreateCoreDefinitionRequest < Struct.new(
516
529
  :amzn_client_token,
517
530
  :initial_version,
518
- :name)
531
+ :name,
532
+ :tags)
519
533
  include Aws::Structure
520
534
  end
521
535
 
@@ -685,6 +699,9 @@ module Aws::Greengrass
685
699
  # ],
686
700
  # },
687
701
  # name: "__string",
702
+ # tags: {
703
+ # "__string" => "__string",
704
+ # },
688
705
  # }
689
706
  #
690
707
  # @!attribute [rw] amzn_client_token
@@ -697,12 +714,16 @@ module Aws::Greengrass
697
714
  # @!attribute [rw] name
698
715
  # @return [String]
699
716
  #
717
+ # @!attribute [rw] tags
718
+ # @return [Hash<String,String>]
719
+ #
700
720
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateDeviceDefinitionRequest AWS API Documentation
701
721
  #
702
722
  class CreateDeviceDefinitionRequest < Struct.new(
703
723
  :amzn_client_token,
704
724
  :initial_version,
705
- :name)
725
+ :name,
726
+ :tags)
706
727
  include Aws::Structure
707
728
  end
708
729
 
@@ -846,6 +867,9 @@ module Aws::Greengrass
846
867
  # ],
847
868
  # },
848
869
  # name: "__string",
870
+ # tags: {
871
+ # "__string" => "__string",
872
+ # },
849
873
  # }
850
874
  #
851
875
  # @!attribute [rw] amzn_client_token
@@ -858,12 +882,16 @@ module Aws::Greengrass
858
882
  # @!attribute [rw] name
859
883
  # @return [String]
860
884
  #
885
+ # @!attribute [rw] tags
886
+ # @return [Hash<String,String>]
887
+ #
861
888
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateFunctionDefinitionRequest AWS API Documentation
862
889
  #
863
890
  class CreateFunctionDefinitionRequest < Struct.new(
864
891
  :amzn_client_token,
865
892
  :initial_version,
866
- :name)
893
+ :name,
894
+ :tags)
867
895
  include Aws::Structure
868
896
  end
869
897
 
@@ -1045,6 +1073,9 @@ module Aws::Greengrass
1045
1073
  # subscription_definition_version_arn: "__string",
1046
1074
  # },
1047
1075
  # name: "__string",
1076
+ # tags: {
1077
+ # "__string" => "__string",
1078
+ # },
1048
1079
  # }
1049
1080
  #
1050
1081
  # @!attribute [rw] amzn_client_token
@@ -1057,12 +1088,16 @@ module Aws::Greengrass
1057
1088
  # @!attribute [rw] name
1058
1089
  # @return [String]
1059
1090
  #
1091
+ # @!attribute [rw] tags
1092
+ # @return [Hash<String,String>]
1093
+ #
1060
1094
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateGroupRequest AWS API Documentation
1061
1095
  #
1062
1096
  class CreateGroupRequest < Struct.new(
1063
1097
  :amzn_client_token,
1064
1098
  :initial_version,
1065
- :name)
1099
+ :name,
1100
+ :tags)
1066
1101
  include Aws::Structure
1067
1102
  end
1068
1103
 
@@ -1196,6 +1231,9 @@ module Aws::Greengrass
1196
1231
  # ],
1197
1232
  # },
1198
1233
  # name: "__string",
1234
+ # tags: {
1235
+ # "__string" => "__string",
1236
+ # },
1199
1237
  # }
1200
1238
  #
1201
1239
  # @!attribute [rw] amzn_client_token
@@ -1208,12 +1246,16 @@ module Aws::Greengrass
1208
1246
  # @!attribute [rw] name
1209
1247
  # @return [String]
1210
1248
  #
1249
+ # @!attribute [rw] tags
1250
+ # @return [Hash<String,String>]
1251
+ #
1211
1252
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateLoggerDefinitionRequest AWS API Documentation
1212
1253
  #
1213
1254
  class CreateLoggerDefinitionRequest < Struct.new(
1214
1255
  :amzn_client_token,
1215
1256
  :initial_version,
1216
- :name)
1257
+ :name,
1258
+ :tags)
1217
1259
  include Aws::Structure
1218
1260
  end
1219
1261
 
@@ -1351,6 +1393,9 @@ module Aws::Greengrass
1351
1393
  # ],
1352
1394
  # },
1353
1395
  # name: "__string",
1396
+ # tags: {
1397
+ # "__string" => "__string",
1398
+ # },
1354
1399
  # }
1355
1400
  #
1356
1401
  # @!attribute [rw] amzn_client_token
@@ -1363,12 +1408,16 @@ module Aws::Greengrass
1363
1408
  # @!attribute [rw] name
1364
1409
  # @return [String]
1365
1410
  #
1411
+ # @!attribute [rw] tags
1412
+ # @return [Hash<String,String>]
1413
+ #
1366
1414
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionRequest AWS API Documentation
1367
1415
  #
1368
1416
  class CreateResourceDefinitionRequest < Struct.new(
1369
1417
  :amzn_client_token,
1370
1418
  :initial_version,
1371
- :name)
1419
+ :name,
1420
+ :tags)
1372
1421
  include Aws::Structure
1373
1422
  end
1374
1423
 
@@ -1580,6 +1629,9 @@ module Aws::Greengrass
1580
1629
  # ],
1581
1630
  # },
1582
1631
  # name: "__string",
1632
+ # tags: {
1633
+ # "__string" => "__string",
1634
+ # },
1583
1635
  # }
1584
1636
  #
1585
1637
  # @!attribute [rw] amzn_client_token
@@ -1592,12 +1644,16 @@ module Aws::Greengrass
1592
1644
  # @!attribute [rw] name
1593
1645
  # @return [String]
1594
1646
  #
1647
+ # @!attribute [rw] tags
1648
+ # @return [Hash<String,String>]
1649
+ #
1595
1650
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSubscriptionDefinitionRequest AWS API Documentation
1596
1651
  #
1597
1652
  class CreateSubscriptionDefinitionRequest < Struct.new(
1598
1653
  :amzn_client_token,
1599
1654
  :initial_version,
1600
- :name)
1655
+ :name,
1656
+ :tags)
1601
1657
  include Aws::Structure
1602
1658
  end
1603
1659
 
@@ -1691,6 +1747,30 @@ module Aws::Greengrass
1691
1747
  include Aws::Structure
1692
1748
  end
1693
1749
 
1750
+ # @note When making an API call, you may pass TagResourceRequest
1751
+ # data as a hash:
1752
+ #
1753
+ # {
1754
+ # resource_arn: "__string", # required
1755
+ # tags: { # required
1756
+ # "__string" => "__string",
1757
+ # },
1758
+ # }
1759
+ #
1760
+ # @!attribute [rw] resource_arn
1761
+ # @return [String]
1762
+ #
1763
+ # @!attribute [rw] tags
1764
+ # @return [Hash<String,String>]
1765
+ #
1766
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/TagResourceRequest AWS API Documentation
1767
+ #
1768
+ class TagResourceRequest < Struct.new(
1769
+ :resource_arn,
1770
+ :tags)
1771
+ include Aws::Structure
1772
+ end
1773
+
1694
1774
  # Information about a definition.
1695
1775
  #
1696
1776
  # @!attribute [rw] arn
@@ -1723,6 +1803,9 @@ module Aws::Greengrass
1723
1803
  # The name of the definition.
1724
1804
  # @return [String]
1725
1805
  #
1806
+ # @!attribute [rw] tags
1807
+ # @return [Hash<String,String>]
1808
+ #
1726
1809
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DefinitionInformation AWS API Documentation
1727
1810
  #
1728
1811
  class DefinitionInformation < Struct.new(
@@ -1732,7 +1815,8 @@ module Aws::Greengrass
1732
1815
  :last_updated_timestamp,
1733
1816
  :latest_version,
1734
1817
  :latest_version_arn,
1735
- :name)
1818
+ :name,
1819
+ :tags)
1736
1820
  include Aws::Structure
1737
1821
  end
1738
1822
 
@@ -1904,6 +1988,28 @@ module Aws::Greengrass
1904
1988
  #
1905
1989
  class DeleteSubscriptionDefinitionResponse < Aws::EmptyStructure; end
1906
1990
 
1991
+ # @note When making an API call, you may pass UntagResourceRequest
1992
+ # data as a hash:
1993
+ #
1994
+ # {
1995
+ # resource_arn: "__string", # required
1996
+ # tag_keys: ["__string"], # required
1997
+ # }
1998
+ #
1999
+ # @!attribute [rw] resource_arn
2000
+ # @return [String]
2001
+ #
2002
+ # @!attribute [rw] tag_keys
2003
+ # @return [Array<String>]
2004
+ #
2005
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UntagResourceRequest AWS API Documentation
2006
+ #
2007
+ class UntagResourceRequest < Struct.new(
2008
+ :resource_arn,
2009
+ :tag_keys)
2010
+ include Aws::Structure
2011
+ end
2012
+
1907
2013
  # Information about a deployment.
1908
2014
  #
1909
2015
  # @!attribute [rw] created_at
@@ -2572,6 +2678,9 @@ module Aws::Greengrass
2572
2678
  # Error message
2573
2679
  # @return [String]
2574
2680
  #
2681
+ # @!attribute [rw] tags
2682
+ # @return [Hash<String,String>]
2683
+ #
2575
2684
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetBulkDeploymentStatusResponse AWS API Documentation
2576
2685
  #
2577
2686
  class GetBulkDeploymentStatusResponse < Struct.new(
@@ -2579,7 +2688,8 @@ module Aws::Greengrass
2579
2688
  :bulk_deployment_status,
2580
2689
  :created_at,
2581
2690
  :error_details,
2582
- :error_message)
2691
+ :error_message,
2692
+ :tags)
2583
2693
  include Aws::Structure
2584
2694
  end
2585
2695
 
@@ -2656,6 +2766,9 @@ module Aws::Greengrass
2656
2766
  # @!attribute [rw] name
2657
2767
  # @return [String]
2658
2768
  #
2769
+ # @!attribute [rw] tags
2770
+ # @return [Hash<String,String>]
2771
+ #
2659
2772
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectorDefinitionResponse AWS API Documentation
2660
2773
  #
2661
2774
  class GetConnectorDefinitionResponse < Struct.new(
@@ -2665,7 +2778,8 @@ module Aws::Greengrass
2665
2778
  :last_updated_timestamp,
2666
2779
  :latest_version,
2667
2780
  :latest_version_arn,
2668
- :name)
2781
+ :name,
2782
+ :tags)
2669
2783
  include Aws::Structure
2670
2784
  end
2671
2785
 
@@ -2774,6 +2888,9 @@ module Aws::Greengrass
2774
2888
  # @!attribute [rw] name
2775
2889
  # @return [String]
2776
2890
  #
2891
+ # @!attribute [rw] tags
2892
+ # @return [Hash<String,String>]
2893
+ #
2777
2894
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetCoreDefinitionResponse AWS API Documentation
2778
2895
  #
2779
2896
  class GetCoreDefinitionResponse < Struct.new(
@@ -2783,7 +2900,8 @@ module Aws::Greengrass
2783
2900
  :last_updated_timestamp,
2784
2901
  :latest_version,
2785
2902
  :latest_version_arn,
2786
- :name)
2903
+ :name,
2904
+ :tags)
2787
2905
  include Aws::Structure
2788
2906
  end
2789
2907
 
@@ -2942,6 +3060,9 @@ module Aws::Greengrass
2942
3060
  # @!attribute [rw] name
2943
3061
  # @return [String]
2944
3062
  #
3063
+ # @!attribute [rw] tags
3064
+ # @return [Hash<String,String>]
3065
+ #
2945
3066
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetDeviceDefinitionResponse AWS API Documentation
2946
3067
  #
2947
3068
  class GetDeviceDefinitionResponse < Struct.new(
@@ -2951,7 +3072,8 @@ module Aws::Greengrass
2951
3072
  :last_updated_timestamp,
2952
3073
  :latest_version,
2953
3074
  :latest_version_arn,
2954
- :name)
3075
+ :name,
3076
+ :tags)
2955
3077
  include Aws::Structure
2956
3078
  end
2957
3079
 
@@ -3058,6 +3180,9 @@ module Aws::Greengrass
3058
3180
  # @!attribute [rw] name
3059
3181
  # @return [String]
3060
3182
  #
3183
+ # @!attribute [rw] tags
3184
+ # @return [Hash<String,String>]
3185
+ #
3061
3186
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetFunctionDefinitionResponse AWS API Documentation
3062
3187
  #
3063
3188
  class GetFunctionDefinitionResponse < Struct.new(
@@ -3067,7 +3192,8 @@ module Aws::Greengrass
3067
3192
  :last_updated_timestamp,
3068
3193
  :latest_version,
3069
3194
  :latest_version_arn,
3070
- :name)
3195
+ :name,
3196
+ :tags)
3071
3197
  include Aws::Structure
3072
3198
  end
3073
3199
 
@@ -3256,6 +3382,9 @@ module Aws::Greengrass
3256
3382
  # @!attribute [rw] name
3257
3383
  # @return [String]
3258
3384
  #
3385
+ # @!attribute [rw] tags
3386
+ # @return [Hash<String,String>]
3387
+ #
3259
3388
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetGroupResponse AWS API Documentation
3260
3389
  #
3261
3390
  class GetGroupResponse < Struct.new(
@@ -3265,7 +3394,8 @@ module Aws::Greengrass
3265
3394
  :last_updated_timestamp,
3266
3395
  :latest_version,
3267
3396
  :latest_version_arn,
3268
- :name)
3397
+ :name,
3398
+ :tags)
3269
3399
  include Aws::Structure
3270
3400
  end
3271
3401
 
@@ -3363,6 +3493,9 @@ module Aws::Greengrass
3363
3493
  # @!attribute [rw] name
3364
3494
  # @return [String]
3365
3495
  #
3496
+ # @!attribute [rw] tags
3497
+ # @return [Hash<String,String>]
3498
+ #
3366
3499
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetLoggerDefinitionResponse AWS API Documentation
3367
3500
  #
3368
3501
  class GetLoggerDefinitionResponse < Struct.new(
@@ -3372,7 +3505,8 @@ module Aws::Greengrass
3372
3505
  :last_updated_timestamp,
3373
3506
  :latest_version,
3374
3507
  :latest_version_arn,
3375
- :name)
3508
+ :name,
3509
+ :tags)
3376
3510
  include Aws::Structure
3377
3511
  end
3378
3512
 
@@ -3475,6 +3609,9 @@ module Aws::Greengrass
3475
3609
  # @!attribute [rw] name
3476
3610
  # @return [String]
3477
3611
  #
3612
+ # @!attribute [rw] tags
3613
+ # @return [Hash<String,String>]
3614
+ #
3478
3615
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionResponse AWS API Documentation
3479
3616
  #
3480
3617
  class GetResourceDefinitionResponse < Struct.new(
@@ -3484,7 +3621,8 @@ module Aws::Greengrass
3484
3621
  :last_updated_timestamp,
3485
3622
  :latest_version,
3486
3623
  :latest_version_arn,
3487
- :name)
3624
+ :name,
3625
+ :tags)
3488
3626
  include Aws::Structure
3489
3627
  end
3490
3628
 
@@ -3604,6 +3742,9 @@ module Aws::Greengrass
3604
3742
  # @!attribute [rw] name
3605
3743
  # @return [String]
3606
3744
  #
3745
+ # @!attribute [rw] tags
3746
+ # @return [Hash<String,String>]
3747
+ #
3607
3748
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetSubscriptionDefinitionResponse AWS API Documentation
3608
3749
  #
3609
3750
  class GetSubscriptionDefinitionResponse < Struct.new(
@@ -3613,7 +3754,8 @@ module Aws::Greengrass
3613
3754
  :last_updated_timestamp,
3614
3755
  :latest_version,
3615
3756
  :latest_version_arn,
3616
- :name)
3757
+ :name,
3758
+ :tags)
3617
3759
  include Aws::Structure
3618
3760
  end
3619
3761
 
@@ -4652,6 +4794,33 @@ module Aws::Greengrass
4652
4794
  include Aws::Structure
4653
4795
  end
4654
4796
 
4797
+ # @note When making an API call, you may pass ListTagsForResourceRequest
4798
+ # data as a hash:
4799
+ #
4800
+ # {
4801
+ # resource_arn: "__string", # required
4802
+ # }
4803
+ #
4804
+ # @!attribute [rw] resource_arn
4805
+ # @return [String]
4806
+ #
4807
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListTagsForResourceRequest AWS API Documentation
4808
+ #
4809
+ class ListTagsForResourceRequest < Struct.new(
4810
+ :resource_arn)
4811
+ include Aws::Structure
4812
+ end
4813
+
4814
+ # @!attribute [rw] tags
4815
+ # @return [Hash<String,String>]
4816
+ #
4817
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListTagsForResourceResponse AWS API Documentation
4818
+ #
4819
+ class ListTagsForResourceResponse < Struct.new(
4820
+ :tags)
4821
+ include Aws::Structure
4822
+ end
4823
+
4655
4824
  # A list of versions.
4656
4825
  #
4657
4826
  # @!attribute [rw] next_token
@@ -5182,6 +5351,9 @@ module Aws::Greengrass
5182
5351
  # amzn_client_token: "__string",
5183
5352
  # execution_role_arn: "__string",
5184
5353
  # input_file_uri: "__string",
5354
+ # tags: {
5355
+ # "__string" => "__string",
5356
+ # },
5185
5357
  # }
5186
5358
  #
5187
5359
  # @!attribute [rw] amzn_client_token
@@ -5205,12 +5377,16 @@ module Aws::Greengrass
5205
5377
  # ''NewDeployment'' deployment types.
5206
5378
  # @return [String]
5207
5379
  #
5380
+ # @!attribute [rw] tags
5381
+ # @return [Hash<String,String>]
5382
+ #
5208
5383
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StartBulkDeploymentRequest AWS API Documentation
5209
5384
  #
5210
5385
  class StartBulkDeploymentRequest < Struct.new(
5211
5386
  :amzn_client_token,
5212
5387
  :execution_role_arn,
5213
- :input_file_uri)
5388
+ :input_file_uri,
5389
+ :tags)
5214
5390
  include Aws::Structure
5215
5391
  end
5216
5392