aws-sdk-greengrass 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,6 +43,12 @@ module Aws::Greengrass
43
43
  CreateLoggerDefinitionResponse = Shapes::StructureShape.new(name: 'CreateLoggerDefinitionResponse')
44
44
  CreateLoggerDefinitionVersionRequest = Shapes::StructureShape.new(name: 'CreateLoggerDefinitionVersionRequest')
45
45
  CreateLoggerDefinitionVersionResponse = Shapes::StructureShape.new(name: 'CreateLoggerDefinitionVersionResponse')
46
+ CreateResourceDefinitionRequest = Shapes::StructureShape.new(name: 'CreateResourceDefinitionRequest')
47
+ CreateResourceDefinitionResponse = Shapes::StructureShape.new(name: 'CreateResourceDefinitionResponse')
48
+ CreateResourceDefinitionVersionRequest = Shapes::StructureShape.new(name: 'CreateResourceDefinitionVersionRequest')
49
+ CreateResourceDefinitionVersionResponse = Shapes::StructureShape.new(name: 'CreateResourceDefinitionVersionResponse')
50
+ CreateSoftwareUpdateJobRequest = Shapes::StructureShape.new(name: 'CreateSoftwareUpdateJobRequest')
51
+ CreateSoftwareUpdateJobResponse = Shapes::StructureShape.new(name: 'CreateSoftwareUpdateJobResponse')
46
52
  CreateSubscriptionDefinitionRequest = Shapes::StructureShape.new(name: 'CreateSubscriptionDefinitionRequest')
47
53
  CreateSubscriptionDefinitionResponse = Shapes::StructureShape.new(name: 'CreateSubscriptionDefinitionResponse')
48
54
  CreateSubscriptionDefinitionVersionRequest = Shapes::StructureShape.new(name: 'CreateSubscriptionDefinitionVersionRequest')
@@ -58,6 +64,8 @@ module Aws::Greengrass
58
64
  DeleteGroupResponse = Shapes::StructureShape.new(name: 'DeleteGroupResponse')
59
65
  DeleteLoggerDefinitionRequest = Shapes::StructureShape.new(name: 'DeleteLoggerDefinitionRequest')
60
66
  DeleteLoggerDefinitionResponse = Shapes::StructureShape.new(name: 'DeleteLoggerDefinitionResponse')
67
+ DeleteResourceDefinitionRequest = Shapes::StructureShape.new(name: 'DeleteResourceDefinitionRequest')
68
+ DeleteResourceDefinitionResponse = Shapes::StructureShape.new(name: 'DeleteResourceDefinitionResponse')
61
69
  DeleteSubscriptionDefinitionRequest = Shapes::StructureShape.new(name: 'DeleteSubscriptionDefinitionRequest')
62
70
  DeleteSubscriptionDefinitionResponse = Shapes::StructureShape.new(name: 'DeleteSubscriptionDefinitionResponse')
63
71
  Deployment = Shapes::StructureShape.new(name: 'Deployment')
@@ -107,6 +115,10 @@ module Aws::Greengrass
107
115
  GetLoggerDefinitionResponse = Shapes::StructureShape.new(name: 'GetLoggerDefinitionResponse')
108
116
  GetLoggerDefinitionVersionRequest = Shapes::StructureShape.new(name: 'GetLoggerDefinitionVersionRequest')
109
117
  GetLoggerDefinitionVersionResponse = Shapes::StructureShape.new(name: 'GetLoggerDefinitionVersionResponse')
118
+ GetResourceDefinitionRequest = Shapes::StructureShape.new(name: 'GetResourceDefinitionRequest')
119
+ GetResourceDefinitionResponse = Shapes::StructureShape.new(name: 'GetResourceDefinitionResponse')
120
+ GetResourceDefinitionVersionRequest = Shapes::StructureShape.new(name: 'GetResourceDefinitionVersionRequest')
121
+ GetResourceDefinitionVersionResponse = Shapes::StructureShape.new(name: 'GetResourceDefinitionVersionResponse')
110
122
  GetServiceRoleForAccountRequest = Shapes::StructureShape.new(name: 'GetServiceRoleForAccountRequest')
111
123
  GetServiceRoleForAccountResponse = Shapes::StructureShape.new(name: 'GetServiceRoleForAccountResponse')
112
124
  GetSubscriptionDefinitionRequest = Shapes::StructureShape.new(name: 'GetSubscriptionDefinitionRequest')
@@ -116,6 +128,7 @@ module Aws::Greengrass
116
128
  GroupCertificateAuthorityProperties = Shapes::StructureShape.new(name: 'GroupCertificateAuthorityProperties')
117
129
  GroupCertificateConfiguration = Shapes::StructureShape.new(name: 'GroupCertificateConfiguration')
118
130
  GroupInformation = Shapes::StructureShape.new(name: 'GroupInformation')
131
+ GroupOwnerSetting = Shapes::StructureShape.new(name: 'GroupOwnerSetting')
119
132
  GroupVersion = Shapes::StructureShape.new(name: 'GroupVersion')
120
133
  InternalServerErrorException = Shapes::StructureShape.new(name: 'InternalServerErrorException')
121
134
  ListCoreDefinitionVersionsRequest = Shapes::StructureShape.new(name: 'ListCoreDefinitionVersionsRequest')
@@ -151,23 +164,39 @@ module Aws::Greengrass
151
164
  ListOfGroupCertificateAuthorityProperties = Shapes::ListShape.new(name: 'ListOfGroupCertificateAuthorityProperties')
152
165
  ListOfGroupInformation = Shapes::ListShape.new(name: 'ListOfGroupInformation')
153
166
  ListOfLogger = Shapes::ListShape.new(name: 'ListOfLogger')
167
+ ListOfResource = Shapes::ListShape.new(name: 'ListOfResource')
168
+ ListOfResourceAccessPolicy = Shapes::ListShape.new(name: 'ListOfResourceAccessPolicy')
154
169
  ListOfSubscription = Shapes::ListShape.new(name: 'ListOfSubscription')
155
170
  ListOfVersionInformation = Shapes::ListShape.new(name: 'ListOfVersionInformation')
171
+ ListResourceDefinitionVersionsRequest = Shapes::StructureShape.new(name: 'ListResourceDefinitionVersionsRequest')
172
+ ListResourceDefinitionVersionsResponse = Shapes::StructureShape.new(name: 'ListResourceDefinitionVersionsResponse')
173
+ ListResourceDefinitionsRequest = Shapes::StructureShape.new(name: 'ListResourceDefinitionsRequest')
174
+ ListResourceDefinitionsResponse = Shapes::StructureShape.new(name: 'ListResourceDefinitionsResponse')
156
175
  ListSubscriptionDefinitionVersionsRequest = Shapes::StructureShape.new(name: 'ListSubscriptionDefinitionVersionsRequest')
157
176
  ListSubscriptionDefinitionVersionsResponse = Shapes::StructureShape.new(name: 'ListSubscriptionDefinitionVersionsResponse')
158
177
  ListSubscriptionDefinitionsRequest = Shapes::StructureShape.new(name: 'ListSubscriptionDefinitionsRequest')
159
178
  ListSubscriptionDefinitionsResponse = Shapes::StructureShape.new(name: 'ListSubscriptionDefinitionsResponse')
160
179
  ListVersionsResponse = Shapes::StructureShape.new(name: 'ListVersionsResponse')
180
+ LocalDeviceResourceData = Shapes::StructureShape.new(name: 'LocalDeviceResourceData')
181
+ LocalVolumeResourceData = Shapes::StructureShape.new(name: 'LocalVolumeResourceData')
161
182
  Logger = Shapes::StructureShape.new(name: 'Logger')
162
183
  LoggerComponent = Shapes::StringShape.new(name: 'LoggerComponent')
163
184
  LoggerDefinitionVersion = Shapes::StructureShape.new(name: 'LoggerDefinitionVersion')
164
185
  LoggerLevel = Shapes::StringShape.new(name: 'LoggerLevel')
165
186
  LoggerType = Shapes::StringShape.new(name: 'LoggerType')
166
187
  MapOf__string = Shapes::MapShape.new(name: 'MapOf__string')
188
+ Permission = Shapes::StringShape.new(name: 'Permission')
167
189
  ResetDeploymentsRequest = Shapes::StructureShape.new(name: 'ResetDeploymentsRequest')
168
190
  ResetDeploymentsResponse = Shapes::StructureShape.new(name: 'ResetDeploymentsResponse')
191
+ Resource = Shapes::StructureShape.new(name: 'Resource')
192
+ ResourceAccessPolicy = Shapes::StructureShape.new(name: 'ResourceAccessPolicy')
193
+ ResourceDataContainer = Shapes::StructureShape.new(name: 'ResourceDataContainer')
194
+ ResourceDefinitionVersion = Shapes::StructureShape.new(name: 'ResourceDefinitionVersion')
195
+ S3UrlSignerRole = Shapes::StringShape.new(name: 'S3UrlSignerRole')
196
+ SoftwareToUpdate = Shapes::StringShape.new(name: 'SoftwareToUpdate')
169
197
  Subscription = Shapes::StructureShape.new(name: 'Subscription')
170
198
  SubscriptionDefinitionVersion = Shapes::StructureShape.new(name: 'SubscriptionDefinitionVersion')
199
+ UpdateAgentLogLevel = Shapes::StringShape.new(name: 'UpdateAgentLogLevel')
171
200
  UpdateConnectivityInfoRequest = Shapes::StructureShape.new(name: 'UpdateConnectivityInfoRequest')
172
201
  UpdateConnectivityInfoResponse = Shapes::StructureShape.new(name: 'UpdateConnectivityInfoResponse')
173
202
  UpdateCoreDefinitionRequest = Shapes::StructureShape.new(name: 'UpdateCoreDefinitionRequest')
@@ -182,8 +211,13 @@ module Aws::Greengrass
182
211
  UpdateGroupResponse = Shapes::StructureShape.new(name: 'UpdateGroupResponse')
183
212
  UpdateLoggerDefinitionRequest = Shapes::StructureShape.new(name: 'UpdateLoggerDefinitionRequest')
184
213
  UpdateLoggerDefinitionResponse = Shapes::StructureShape.new(name: 'UpdateLoggerDefinitionResponse')
214
+ UpdateResourceDefinitionRequest = Shapes::StructureShape.new(name: 'UpdateResourceDefinitionRequest')
215
+ UpdateResourceDefinitionResponse = Shapes::StructureShape.new(name: 'UpdateResourceDefinitionResponse')
185
216
  UpdateSubscriptionDefinitionRequest = Shapes::StructureShape.new(name: 'UpdateSubscriptionDefinitionRequest')
186
217
  UpdateSubscriptionDefinitionResponse = Shapes::StructureShape.new(name: 'UpdateSubscriptionDefinitionResponse')
218
+ UpdateTargets = Shapes::ListShape.new(name: 'UpdateTargets')
219
+ UpdateTargetsArchitecture = Shapes::StringShape.new(name: 'UpdateTargetsArchitecture')
220
+ UpdateTargetsOperatingSystem = Shapes::StringShape.new(name: 'UpdateTargetsOperatingSystem')
187
221
  VersionInformation = Shapes::StructureShape.new(name: 'VersionInformation')
188
222
  __boolean = Shapes::BooleanShape.new(name: '__boolean')
189
223
  __double = Shapes::FloatShape.new(name: '__double')
@@ -332,6 +366,7 @@ module Aws::Greengrass
332
366
  CreateGroupVersionRequest.add_member(:function_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "FunctionDefinitionVersionArn"))
333
367
  CreateGroupVersionRequest.add_member(:group_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "GroupId"))
334
368
  CreateGroupVersionRequest.add_member(:logger_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LoggerDefinitionVersionArn"))
369
+ CreateGroupVersionRequest.add_member(:resource_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "ResourceDefinitionVersionArn"))
335
370
  CreateGroupVersionRequest.add_member(:subscription_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "SubscriptionDefinitionVersionArn"))
336
371
  CreateGroupVersionRequest.struct_class = Types::CreateGroupVersionRequest
337
372
 
@@ -366,6 +401,44 @@ module Aws::Greengrass
366
401
  CreateLoggerDefinitionVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: __string, location_name: "Version"))
367
402
  CreateLoggerDefinitionVersionResponse.struct_class = Types::CreateLoggerDefinitionVersionResponse
368
403
 
404
+ CreateResourceDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
405
+ CreateResourceDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: ResourceDefinitionVersion, location_name: "InitialVersion"))
406
+ CreateResourceDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
407
+ CreateResourceDefinitionRequest.struct_class = Types::CreateResourceDefinitionRequest
408
+
409
+ CreateResourceDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
410
+ CreateResourceDefinitionResponse.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "CreationTimestamp"))
411
+ CreateResourceDefinitionResponse.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
412
+ CreateResourceDefinitionResponse.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "LastUpdatedTimestamp"))
413
+ CreateResourceDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
414
+ CreateResourceDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
415
+ CreateResourceDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
416
+ CreateResourceDefinitionResponse.struct_class = Types::CreateResourceDefinitionResponse
417
+
418
+ CreateResourceDefinitionVersionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
419
+ CreateResourceDefinitionVersionRequest.add_member(:resource_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionId"))
420
+ CreateResourceDefinitionVersionRequest.add_member(:resources, Shapes::ShapeRef.new(shape: ListOfResource, location_name: "Resources"))
421
+ CreateResourceDefinitionVersionRequest.struct_class = Types::CreateResourceDefinitionVersionRequest
422
+
423
+ CreateResourceDefinitionVersionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
424
+ CreateResourceDefinitionVersionResponse.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "CreationTimestamp"))
425
+ CreateResourceDefinitionVersionResponse.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
426
+ CreateResourceDefinitionVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: __string, location_name: "Version"))
427
+ CreateResourceDefinitionVersionResponse.struct_class = Types::CreateResourceDefinitionVersionResponse
428
+
429
+ CreateSoftwareUpdateJobRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
430
+ CreateSoftwareUpdateJobRequest.add_member(:s3_url_signer_role, Shapes::ShapeRef.new(shape: S3UrlSignerRole, location_name: "S3UrlSignerRole"))
431
+ CreateSoftwareUpdateJobRequest.add_member(:software_to_update, Shapes::ShapeRef.new(shape: SoftwareToUpdate, location_name: "SoftwareToUpdate"))
432
+ CreateSoftwareUpdateJobRequest.add_member(:update_agent_log_level, Shapes::ShapeRef.new(shape: UpdateAgentLogLevel, location_name: "UpdateAgentLogLevel"))
433
+ CreateSoftwareUpdateJobRequest.add_member(:update_targets, Shapes::ShapeRef.new(shape: UpdateTargets, location_name: "UpdateTargets"))
434
+ CreateSoftwareUpdateJobRequest.add_member(:update_targets_architecture, Shapes::ShapeRef.new(shape: UpdateTargetsArchitecture, location_name: "UpdateTargetsArchitecture"))
435
+ CreateSoftwareUpdateJobRequest.add_member(:update_targets_operating_system, Shapes::ShapeRef.new(shape: UpdateTargetsOperatingSystem, location_name: "UpdateTargetsOperatingSystem"))
436
+ CreateSoftwareUpdateJobRequest.struct_class = Types::CreateSoftwareUpdateJobRequest
437
+
438
+ CreateSoftwareUpdateJobResponse.add_member(:iot_job_arn, Shapes::ShapeRef.new(shape: __string, location_name: "IotJobArn"))
439
+ CreateSoftwareUpdateJobResponse.add_member(:iot_job_id, Shapes::ShapeRef.new(shape: __string, location_name: "IotJobId"))
440
+ CreateSoftwareUpdateJobResponse.struct_class = Types::CreateSoftwareUpdateJobResponse
441
+
369
442
  CreateSubscriptionDefinitionRequest.add_member(:amzn_client_token, Shapes::ShapeRef.new(shape: __string, location: "header", location_name: "X-Amzn-Client-Token"))
370
443
  CreateSubscriptionDefinitionRequest.add_member(:initial_version, Shapes::ShapeRef.new(shape: SubscriptionDefinitionVersion, location_name: "InitialVersion"))
371
444
  CreateSubscriptionDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
@@ -425,6 +498,11 @@ module Aws::Greengrass
425
498
 
426
499
  DeleteLoggerDefinitionResponse.struct_class = Types::DeleteLoggerDefinitionResponse
427
500
 
501
+ DeleteResourceDefinitionRequest.add_member(:resource_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionId"))
502
+ DeleteResourceDefinitionRequest.struct_class = Types::DeleteResourceDefinitionRequest
503
+
504
+ DeleteResourceDefinitionResponse.struct_class = Types::DeleteResourceDefinitionResponse
505
+
428
506
  DeleteSubscriptionDefinitionRequest.add_member(:subscription_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "SubscriptionDefinitionId"))
429
507
  DeleteSubscriptionDefinitionRequest.struct_class = Types::DeleteSubscriptionDefinitionRequest
430
508
 
@@ -480,6 +558,8 @@ module Aws::Greengrass
480
558
  FunctionConfiguration.add_member(:timeout, Shapes::ShapeRef.new(shape: __integer, location_name: "Timeout"))
481
559
  FunctionConfiguration.struct_class = Types::FunctionConfiguration
482
560
 
561
+ FunctionConfigurationEnvironment.add_member(:access_sysfs, Shapes::ShapeRef.new(shape: __boolean, location_name: "AccessSysfs"))
562
+ FunctionConfigurationEnvironment.add_member(:resource_access_policies, Shapes::ShapeRef.new(shape: ListOfResourceAccessPolicy, location_name: "ResourceAccessPolicies"))
483
563
  FunctionConfigurationEnvironment.add_member(:variables, Shapes::ShapeRef.new(shape: MapOf__string, location_name: "Variables"))
484
564
  FunctionConfigurationEnvironment.struct_class = Types::FunctionConfigurationEnvironment
485
565
 
@@ -647,6 +727,29 @@ module Aws::Greengrass
647
727
  GetLoggerDefinitionVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: __string, location_name: "Version"))
648
728
  GetLoggerDefinitionVersionResponse.struct_class = Types::GetLoggerDefinitionVersionResponse
649
729
 
730
+ GetResourceDefinitionRequest.add_member(:resource_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionId"))
731
+ GetResourceDefinitionRequest.struct_class = Types::GetResourceDefinitionRequest
732
+
733
+ GetResourceDefinitionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
734
+ GetResourceDefinitionResponse.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "CreationTimestamp"))
735
+ GetResourceDefinitionResponse.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
736
+ GetResourceDefinitionResponse.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "LastUpdatedTimestamp"))
737
+ GetResourceDefinitionResponse.add_member(:latest_version, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersion"))
738
+ GetResourceDefinitionResponse.add_member(:latest_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LatestVersionArn"))
739
+ GetResourceDefinitionResponse.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
740
+ GetResourceDefinitionResponse.struct_class = Types::GetResourceDefinitionResponse
741
+
742
+ GetResourceDefinitionVersionRequest.add_member(:resource_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionId"))
743
+ GetResourceDefinitionVersionRequest.add_member(:resource_definition_version_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionVersionId"))
744
+ GetResourceDefinitionVersionRequest.struct_class = Types::GetResourceDefinitionVersionRequest
745
+
746
+ GetResourceDefinitionVersionResponse.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
747
+ GetResourceDefinitionVersionResponse.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "CreationTimestamp"))
748
+ GetResourceDefinitionVersionResponse.add_member(:definition, Shapes::ShapeRef.new(shape: ResourceDefinitionVersion, location_name: "Definition"))
749
+ GetResourceDefinitionVersionResponse.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
750
+ GetResourceDefinitionVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: __string, location_name: "Version"))
751
+ GetResourceDefinitionVersionResponse.struct_class = Types::GetResourceDefinitionVersionResponse
752
+
650
753
  GetServiceRoleForAccountRequest.struct_class = Types::GetServiceRoleForAccountRequest
651
754
 
652
755
  GetServiceRoleForAccountResponse.add_member(:associated_at, Shapes::ShapeRef.new(shape: __string, location_name: "AssociatedAt"))
@@ -694,10 +797,15 @@ module Aws::Greengrass
694
797
  GroupInformation.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
695
798
  GroupInformation.struct_class = Types::GroupInformation
696
799
 
800
+ GroupOwnerSetting.add_member(:auto_add_group_owner, Shapes::ShapeRef.new(shape: __boolean, location_name: "AutoAddGroupOwner"))
801
+ GroupOwnerSetting.add_member(:group_owner, Shapes::ShapeRef.new(shape: __string, location_name: "GroupOwner"))
802
+ GroupOwnerSetting.struct_class = Types::GroupOwnerSetting
803
+
697
804
  GroupVersion.add_member(:core_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "CoreDefinitionVersionArn"))
698
805
  GroupVersion.add_member(:device_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "DeviceDefinitionVersionArn"))
699
806
  GroupVersion.add_member(:function_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "FunctionDefinitionVersionArn"))
700
807
  GroupVersion.add_member(:logger_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "LoggerDefinitionVersionArn"))
808
+ GroupVersion.add_member(:resource_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "ResourceDefinitionVersionArn"))
701
809
  GroupVersion.add_member(:subscription_definition_version_arn, Shapes::ShapeRef.new(shape: __string, location_name: "SubscriptionDefinitionVersionArn"))
702
810
  GroupVersion.struct_class = Types::GroupVersion
703
811
 
@@ -821,10 +929,31 @@ module Aws::Greengrass
821
929
 
822
930
  ListOfLogger.member = Shapes::ShapeRef.new(shape: Logger)
823
931
 
932
+ ListOfResource.member = Shapes::ShapeRef.new(shape: Resource)
933
+
934
+ ListOfResourceAccessPolicy.member = Shapes::ShapeRef.new(shape: ResourceAccessPolicy)
935
+
824
936
  ListOfSubscription.member = Shapes::ShapeRef.new(shape: Subscription)
825
937
 
826
938
  ListOfVersionInformation.member = Shapes::ShapeRef.new(shape: VersionInformation)
827
939
 
940
+ ListResourceDefinitionVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "MaxResults"))
941
+ ListResourceDefinitionVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "NextToken"))
942
+ ListResourceDefinitionVersionsRequest.add_member(:resource_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionId"))
943
+ ListResourceDefinitionVersionsRequest.struct_class = Types::ListResourceDefinitionVersionsRequest
944
+
945
+ ListResourceDefinitionVersionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
946
+ ListResourceDefinitionVersionsResponse.add_member(:versions, Shapes::ShapeRef.new(shape: ListOfVersionInformation, location_name: "Versions"))
947
+ ListResourceDefinitionVersionsResponse.struct_class = Types::ListResourceDefinitionVersionsResponse
948
+
949
+ ListResourceDefinitionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "MaxResults"))
950
+ ListResourceDefinitionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "NextToken"))
951
+ ListResourceDefinitionsRequest.struct_class = Types::ListResourceDefinitionsRequest
952
+
953
+ ListResourceDefinitionsResponse.add_member(:definitions, Shapes::ShapeRef.new(shape: ListOfDefinitionInformation, location_name: "Definitions"))
954
+ ListResourceDefinitionsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location_name: "NextToken"))
955
+ ListResourceDefinitionsResponse.struct_class = Types::ListResourceDefinitionsResponse
956
+
828
957
  ListSubscriptionDefinitionVersionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "MaxResults"))
829
958
  ListSubscriptionDefinitionVersionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: __string, location: "querystring", location_name: "NextToken"))
830
959
  ListSubscriptionDefinitionVersionsRequest.add_member(:subscription_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "SubscriptionDefinitionId"))
@@ -846,6 +975,15 @@ module Aws::Greengrass
846
975
  ListVersionsResponse.add_member(:versions, Shapes::ShapeRef.new(shape: ListOfVersionInformation, location_name: "Versions"))
847
976
  ListVersionsResponse.struct_class = Types::ListVersionsResponse
848
977
 
978
+ LocalDeviceResourceData.add_member(:group_owner_setting, Shapes::ShapeRef.new(shape: GroupOwnerSetting, location_name: "GroupOwnerSetting"))
979
+ LocalDeviceResourceData.add_member(:source_path, Shapes::ShapeRef.new(shape: __string, location_name: "SourcePath"))
980
+ LocalDeviceResourceData.struct_class = Types::LocalDeviceResourceData
981
+
982
+ LocalVolumeResourceData.add_member(:destination_path, Shapes::ShapeRef.new(shape: __string, location_name: "DestinationPath"))
983
+ LocalVolumeResourceData.add_member(:group_owner_setting, Shapes::ShapeRef.new(shape: GroupOwnerSetting, location_name: "GroupOwnerSetting"))
984
+ LocalVolumeResourceData.add_member(:source_path, Shapes::ShapeRef.new(shape: __string, location_name: "SourcePath"))
985
+ LocalVolumeResourceData.struct_class = Types::LocalVolumeResourceData
986
+
849
987
  Logger.add_member(:component, Shapes::ShapeRef.new(shape: LoggerComponent, location_name: "Component"))
850
988
  Logger.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
851
989
  Logger.add_member(:level, Shapes::ShapeRef.new(shape: LoggerLevel, location_name: "Level"))
@@ -868,6 +1006,22 @@ module Aws::Greengrass
868
1006
  ResetDeploymentsResponse.add_member(:deployment_id, Shapes::ShapeRef.new(shape: __string, location_name: "DeploymentId"))
869
1007
  ResetDeploymentsResponse.struct_class = Types::ResetDeploymentsResponse
870
1008
 
1009
+ Resource.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
1010
+ Resource.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
1011
+ Resource.add_member(:resource_data_container, Shapes::ShapeRef.new(shape: ResourceDataContainer, location_name: "ResourceDataContainer"))
1012
+ Resource.struct_class = Types::Resource
1013
+
1014
+ ResourceAccessPolicy.add_member(:permission, Shapes::ShapeRef.new(shape: Permission, location_name: "Permission"))
1015
+ ResourceAccessPolicy.add_member(:resource_id, Shapes::ShapeRef.new(shape: __string, location_name: "ResourceId"))
1016
+ ResourceAccessPolicy.struct_class = Types::ResourceAccessPolicy
1017
+
1018
+ ResourceDataContainer.add_member(:local_device_resource_data, Shapes::ShapeRef.new(shape: LocalDeviceResourceData, location_name: "LocalDeviceResourceData"))
1019
+ ResourceDataContainer.add_member(:local_volume_resource_data, Shapes::ShapeRef.new(shape: LocalVolumeResourceData, location_name: "LocalVolumeResourceData"))
1020
+ ResourceDataContainer.struct_class = Types::ResourceDataContainer
1021
+
1022
+ ResourceDefinitionVersion.add_member(:resources, Shapes::ShapeRef.new(shape: ListOfResource, location_name: "Resources"))
1023
+ ResourceDefinitionVersion.struct_class = Types::ResourceDefinitionVersion
1024
+
871
1025
  Subscription.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
872
1026
  Subscription.add_member(:source, Shapes::ShapeRef.new(shape: __string, location_name: "Source"))
873
1027
  Subscription.add_member(:subject, Shapes::ShapeRef.new(shape: __string, location_name: "Subject"))
@@ -924,12 +1078,20 @@ module Aws::Greengrass
924
1078
 
925
1079
  UpdateLoggerDefinitionResponse.struct_class = Types::UpdateLoggerDefinitionResponse
926
1080
 
1081
+ UpdateResourceDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
1082
+ UpdateResourceDefinitionRequest.add_member(:resource_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "ResourceDefinitionId"))
1083
+ UpdateResourceDefinitionRequest.struct_class = Types::UpdateResourceDefinitionRequest
1084
+
1085
+ UpdateResourceDefinitionResponse.struct_class = Types::UpdateResourceDefinitionResponse
1086
+
927
1087
  UpdateSubscriptionDefinitionRequest.add_member(:name, Shapes::ShapeRef.new(shape: __string, location_name: "Name"))
928
1088
  UpdateSubscriptionDefinitionRequest.add_member(:subscription_definition_id, Shapes::ShapeRef.new(shape: __string, required: true, location: "uri", location_name: "SubscriptionDefinitionId"))
929
1089
  UpdateSubscriptionDefinitionRequest.struct_class = Types::UpdateSubscriptionDefinitionRequest
930
1090
 
931
1091
  UpdateSubscriptionDefinitionResponse.struct_class = Types::UpdateSubscriptionDefinitionResponse
932
1092
 
1093
+ UpdateTargets.member = Shapes::ShapeRef.new(shape: __string)
1094
+
933
1095
  VersionInformation.add_member(:arn, Shapes::ShapeRef.new(shape: __string, location_name: "Arn"))
934
1096
  VersionInformation.add_member(:creation_timestamp, Shapes::ShapeRef.new(shape: __string, location_name: "CreationTimestamp"))
935
1097
  VersionInformation.add_member(:id, Shapes::ShapeRef.new(shape: __string, location_name: "Id"))
@@ -1080,6 +1242,34 @@ module Aws::Greengrass
1080
1242
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1081
1243
  end)
1082
1244
 
1245
+ api.add_operation(:create_resource_definition, Seahorse::Model::Operation.new.tap do |o|
1246
+ o.name = "CreateResourceDefinition"
1247
+ o.http_method = "POST"
1248
+ o.http_request_uri = "/greengrass/definition/resources"
1249
+ o.input = Shapes::ShapeRef.new(shape: CreateResourceDefinitionRequest)
1250
+ o.output = Shapes::ShapeRef.new(shape: CreateResourceDefinitionResponse)
1251
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1252
+ end)
1253
+
1254
+ api.add_operation(:create_resource_definition_version, Seahorse::Model::Operation.new.tap do |o|
1255
+ o.name = "CreateResourceDefinitionVersion"
1256
+ o.http_method = "POST"
1257
+ o.http_request_uri = "/greengrass/definition/resources/{ResourceDefinitionId}/versions"
1258
+ o.input = Shapes::ShapeRef.new(shape: CreateResourceDefinitionVersionRequest)
1259
+ o.output = Shapes::ShapeRef.new(shape: CreateResourceDefinitionVersionResponse)
1260
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1261
+ end)
1262
+
1263
+ api.add_operation(:create_software_update_job, Seahorse::Model::Operation.new.tap do |o|
1264
+ o.name = "CreateSoftwareUpdateJob"
1265
+ o.http_method = "POST"
1266
+ o.http_request_uri = "/greengrass/updates"
1267
+ o.input = Shapes::ShapeRef.new(shape: CreateSoftwareUpdateJobRequest)
1268
+ o.output = Shapes::ShapeRef.new(shape: CreateSoftwareUpdateJobResponse)
1269
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1270
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
1271
+ end)
1272
+
1083
1273
  api.add_operation(:create_subscription_definition, Seahorse::Model::Operation.new.tap do |o|
1084
1274
  o.name = "CreateSubscriptionDefinition"
1085
1275
  o.http_method = "POST"
@@ -1143,6 +1333,15 @@ module Aws::Greengrass
1143
1333
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1144
1334
  end)
1145
1335
 
1336
+ api.add_operation(:delete_resource_definition, Seahorse::Model::Operation.new.tap do |o|
1337
+ o.name = "DeleteResourceDefinition"
1338
+ o.http_method = "DELETE"
1339
+ o.http_request_uri = "/greengrass/definition/resources/{ResourceDefinitionId}"
1340
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourceDefinitionRequest)
1341
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourceDefinitionResponse)
1342
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1343
+ end)
1344
+
1146
1345
  api.add_operation(:delete_subscription_definition, Seahorse::Model::Operation.new.tap do |o|
1147
1346
  o.name = "DeleteSubscriptionDefinition"
1148
1347
  o.http_method = "DELETE"
@@ -1310,6 +1509,24 @@ module Aws::Greengrass
1310
1509
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1311
1510
  end)
1312
1511
 
1512
+ api.add_operation(:get_resource_definition, Seahorse::Model::Operation.new.tap do |o|
1513
+ o.name = "GetResourceDefinition"
1514
+ o.http_method = "GET"
1515
+ o.http_request_uri = "/greengrass/definition/resources/{ResourceDefinitionId}"
1516
+ o.input = Shapes::ShapeRef.new(shape: GetResourceDefinitionRequest)
1517
+ o.output = Shapes::ShapeRef.new(shape: GetResourceDefinitionResponse)
1518
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1519
+ end)
1520
+
1521
+ api.add_operation(:get_resource_definition_version, Seahorse::Model::Operation.new.tap do |o|
1522
+ o.name = "GetResourceDefinitionVersion"
1523
+ o.http_method = "GET"
1524
+ o.http_request_uri = "/greengrass/definition/resources/{ResourceDefinitionId}/versions/{ResourceDefinitionVersionId}"
1525
+ o.input = Shapes::ShapeRef.new(shape: GetResourceDefinitionVersionRequest)
1526
+ o.output = Shapes::ShapeRef.new(shape: GetResourceDefinitionVersionResponse)
1527
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1528
+ end)
1529
+
1313
1530
  api.add_operation(:get_service_role_for_account, Seahorse::Model::Operation.new.tap do |o|
1314
1531
  o.name = "GetServiceRoleForAccount"
1315
1532
  o.http_method = "GET"
@@ -1441,6 +1658,23 @@ module Aws::Greengrass
1441
1658
  o.output = Shapes::ShapeRef.new(shape: ListLoggerDefinitionsResponse)
1442
1659
  end)
1443
1660
 
1661
+ api.add_operation(:list_resource_definition_versions, Seahorse::Model::Operation.new.tap do |o|
1662
+ o.name = "ListResourceDefinitionVersions"
1663
+ o.http_method = "GET"
1664
+ o.http_request_uri = "/greengrass/definition/resources/{ResourceDefinitionId}/versions"
1665
+ o.input = Shapes::ShapeRef.new(shape: ListResourceDefinitionVersionsRequest)
1666
+ o.output = Shapes::ShapeRef.new(shape: ListResourceDefinitionVersionsResponse)
1667
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1668
+ end)
1669
+
1670
+ api.add_operation(:list_resource_definitions, Seahorse::Model::Operation.new.tap do |o|
1671
+ o.name = "ListResourceDefinitions"
1672
+ o.http_method = "GET"
1673
+ o.http_request_uri = "/greengrass/definition/resources"
1674
+ o.input = Shapes::ShapeRef.new(shape: ListResourceDefinitionsRequest)
1675
+ o.output = Shapes::ShapeRef.new(shape: ListResourceDefinitionsResponse)
1676
+ end)
1677
+
1444
1678
  api.add_operation(:list_subscription_definition_versions, Seahorse::Model::Operation.new.tap do |o|
1445
1679
  o.name = "ListSubscriptionDefinitionVersions"
1446
1680
  o.http_method = "GET"
@@ -1532,6 +1766,15 @@ module Aws::Greengrass
1532
1766
  o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1533
1767
  end)
1534
1768
 
1769
+ api.add_operation(:update_resource_definition, Seahorse::Model::Operation.new.tap do |o|
1770
+ o.name = "UpdateResourceDefinition"
1771
+ o.http_method = "PUT"
1772
+ o.http_request_uri = "/greengrass/definition/resources/{ResourceDefinitionId}"
1773
+ o.input = Shapes::ShapeRef.new(shape: UpdateResourceDefinitionRequest)
1774
+ o.output = Shapes::ShapeRef.new(shape: UpdateResourceDefinitionResponse)
1775
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1776
+ end)
1777
+
1535
1778
  api.add_operation(:update_subscription_definition, Seahorse::Model::Operation.new.tap do |o|
1536
1779
  o.name = "UpdateSubscriptionDefinition"
1537
1780
  o.http_method = "PUT"
@@ -499,6 +499,13 @@ module Aws::Greengrass
499
499
  # function_arn: "__string",
500
500
  # function_configuration: {
501
501
  # environment: {
502
+ # access_sysfs: false,
503
+ # resource_access_policies: [
504
+ # {
505
+ # permission: "ro", # accepts ro, rw
506
+ # resource_id: "__string",
507
+ # },
508
+ # ],
502
509
  # variables: {
503
510
  # "__string" => "__string",
504
511
  # },
@@ -580,6 +587,13 @@ module Aws::Greengrass
580
587
  # function_arn: "__string",
581
588
  # function_configuration: {
582
589
  # environment: {
590
+ # access_sysfs: false,
591
+ # resource_access_policies: [
592
+ # {
593
+ # permission: "ro", # accepts ro, rw
594
+ # resource_id: "__string",
595
+ # },
596
+ # ],
583
597
  # variables: {
584
598
  # "__string" => "__string",
585
599
  # },
@@ -678,6 +692,7 @@ module Aws::Greengrass
678
692
  # device_definition_version_arn: "__string",
679
693
  # function_definition_version_arn: "__string",
680
694
  # logger_definition_version_arn: "__string",
695
+ # resource_definition_version_arn: "__string",
681
696
  # subscription_definition_version_arn: "__string",
682
697
  # },
683
698
  # name: "__string",
@@ -746,6 +761,7 @@ module Aws::Greengrass
746
761
  # function_definition_version_arn: "__string",
747
762
  # group_id: "__string", # required
748
763
  # logger_definition_version_arn: "__string",
764
+ # resource_definition_version_arn: "__string",
749
765
  # subscription_definition_version_arn: "__string",
750
766
  # }
751
767
  #
@@ -767,6 +783,9 @@ module Aws::Greengrass
767
783
  # @!attribute [rw] logger_definition_version_arn
768
784
  # @return [String]
769
785
  #
786
+ # @!attribute [rw] resource_definition_version_arn
787
+ # @return [String]
788
+ #
770
789
  # @!attribute [rw] subscription_definition_version_arn
771
790
  # @return [String]
772
791
  #
@@ -779,6 +798,7 @@ module Aws::Greengrass
779
798
  :function_definition_version_arn,
780
799
  :group_id,
781
800
  :logger_definition_version_arn,
801
+ :resource_definition_version_arn,
782
802
  :subscription_definition_version_arn)
783
803
  include Aws::Structure
784
804
  end
@@ -934,6 +954,236 @@ module Aws::Greengrass
934
954
  include Aws::Structure
935
955
  end
936
956
 
957
+ # @note When making an API call, you may pass CreateResourceDefinitionRequest
958
+ # data as a hash:
959
+ #
960
+ # {
961
+ # amzn_client_token: "__string",
962
+ # initial_version: {
963
+ # resources: [
964
+ # {
965
+ # id: "__string",
966
+ # name: "__string",
967
+ # resource_data_container: {
968
+ # local_device_resource_data: {
969
+ # group_owner_setting: {
970
+ # auto_add_group_owner: false,
971
+ # group_owner: "__string",
972
+ # },
973
+ # source_path: "__string",
974
+ # },
975
+ # local_volume_resource_data: {
976
+ # destination_path: "__string",
977
+ # group_owner_setting: {
978
+ # auto_add_group_owner: false,
979
+ # group_owner: "__string",
980
+ # },
981
+ # source_path: "__string",
982
+ # },
983
+ # },
984
+ # },
985
+ # ],
986
+ # },
987
+ # name: "__string",
988
+ # }
989
+ #
990
+ # @!attribute [rw] amzn_client_token
991
+ # @return [String]
992
+ #
993
+ # @!attribute [rw] initial_version
994
+ # Information on resource definition version
995
+ # @return [Types::ResourceDefinitionVersion]
996
+ #
997
+ # @!attribute [rw] name
998
+ # @return [String]
999
+ #
1000
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionRequest AWS API Documentation
1001
+ #
1002
+ class CreateResourceDefinitionRequest < Struct.new(
1003
+ :amzn_client_token,
1004
+ :initial_version,
1005
+ :name)
1006
+ include Aws::Structure
1007
+ end
1008
+
1009
+ # @!attribute [rw] arn
1010
+ # @return [String]
1011
+ #
1012
+ # @!attribute [rw] creation_timestamp
1013
+ # @return [String]
1014
+ #
1015
+ # @!attribute [rw] id
1016
+ # @return [String]
1017
+ #
1018
+ # @!attribute [rw] last_updated_timestamp
1019
+ # @return [String]
1020
+ #
1021
+ # @!attribute [rw] latest_version
1022
+ # @return [String]
1023
+ #
1024
+ # @!attribute [rw] latest_version_arn
1025
+ # @return [String]
1026
+ #
1027
+ # @!attribute [rw] name
1028
+ # @return [String]
1029
+ #
1030
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionResponse AWS API Documentation
1031
+ #
1032
+ class CreateResourceDefinitionResponse < Struct.new(
1033
+ :arn,
1034
+ :creation_timestamp,
1035
+ :id,
1036
+ :last_updated_timestamp,
1037
+ :latest_version,
1038
+ :latest_version_arn,
1039
+ :name)
1040
+ include Aws::Structure
1041
+ end
1042
+
1043
+ # @note When making an API call, you may pass CreateResourceDefinitionVersionRequest
1044
+ # data as a hash:
1045
+ #
1046
+ # {
1047
+ # amzn_client_token: "__string",
1048
+ # resource_definition_id: "__string", # required
1049
+ # resources: [
1050
+ # {
1051
+ # id: "__string",
1052
+ # name: "__string",
1053
+ # resource_data_container: {
1054
+ # local_device_resource_data: {
1055
+ # group_owner_setting: {
1056
+ # auto_add_group_owner: false,
1057
+ # group_owner: "__string",
1058
+ # },
1059
+ # source_path: "__string",
1060
+ # },
1061
+ # local_volume_resource_data: {
1062
+ # destination_path: "__string",
1063
+ # group_owner_setting: {
1064
+ # auto_add_group_owner: false,
1065
+ # group_owner: "__string",
1066
+ # },
1067
+ # source_path: "__string",
1068
+ # },
1069
+ # },
1070
+ # },
1071
+ # ],
1072
+ # }
1073
+ #
1074
+ # @!attribute [rw] amzn_client_token
1075
+ # @return [String]
1076
+ #
1077
+ # @!attribute [rw] resource_definition_id
1078
+ # @return [String]
1079
+ #
1080
+ # @!attribute [rw] resources
1081
+ # @return [Array<Types::Resource>]
1082
+ #
1083
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionVersionRequest AWS API Documentation
1084
+ #
1085
+ class CreateResourceDefinitionVersionRequest < Struct.new(
1086
+ :amzn_client_token,
1087
+ :resource_definition_id,
1088
+ :resources)
1089
+ include Aws::Structure
1090
+ end
1091
+
1092
+ # @!attribute [rw] arn
1093
+ # @return [String]
1094
+ #
1095
+ # @!attribute [rw] creation_timestamp
1096
+ # @return [String]
1097
+ #
1098
+ # @!attribute [rw] id
1099
+ # @return [String]
1100
+ #
1101
+ # @!attribute [rw] version
1102
+ # @return [String]
1103
+ #
1104
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionVersionResponse AWS API Documentation
1105
+ #
1106
+ class CreateResourceDefinitionVersionResponse < Struct.new(
1107
+ :arn,
1108
+ :creation_timestamp,
1109
+ :id,
1110
+ :version)
1111
+ include Aws::Structure
1112
+ end
1113
+
1114
+ # Request for the CreateSoftwareUpdateJob API
1115
+ #
1116
+ # @note When making an API call, you may pass CreateSoftwareUpdateJobRequest
1117
+ # data as a hash:
1118
+ #
1119
+ # {
1120
+ # amzn_client_token: "__string",
1121
+ # s3_url_signer_role: "S3UrlSignerRole",
1122
+ # software_to_update: "core", # accepts core, ota_agent
1123
+ # update_agent_log_level: "NONE", # accepts NONE, TRACE, DEBUG, VERBOSE, INFO, WARN, ERROR, FATAL
1124
+ # update_targets: ["__string"],
1125
+ # update_targets_architecture: "armv7l", # accepts armv7l, x86_64, aarch64
1126
+ # update_targets_operating_system: "ubuntu", # accepts ubuntu, raspbian, amazon_linux
1127
+ # }
1128
+ #
1129
+ # @!attribute [rw] amzn_client_token
1130
+ # @return [String]
1131
+ #
1132
+ # @!attribute [rw] s3_url_signer_role
1133
+ # The IAM Role that Greengrass will use to create pre-signed URLs
1134
+ # pointing towards the update artifact.
1135
+ # @return [String]
1136
+ #
1137
+ # @!attribute [rw] software_to_update
1138
+ # The piece of software on the Greengrass Core that will be updated.
1139
+ # @return [String]
1140
+ #
1141
+ # @!attribute [rw] update_agent_log_level
1142
+ # The minimum level of log statements that should be logged by the OTA
1143
+ # Agent during an update.
1144
+ # @return [String]
1145
+ #
1146
+ # @!attribute [rw] update_targets
1147
+ # The target arns that this update will be applied to.
1148
+ # @return [Array<String>]
1149
+ #
1150
+ # @!attribute [rw] update_targets_architecture
1151
+ # The architecture of the Cores in the targets of an update
1152
+ # @return [String]
1153
+ #
1154
+ # @!attribute [rw] update_targets_operating_system
1155
+ # The operating system of the Cores in the targets of an update
1156
+ # @return [String]
1157
+ #
1158
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSoftwareUpdateJobRequest AWS API Documentation
1159
+ #
1160
+ class CreateSoftwareUpdateJobRequest < Struct.new(
1161
+ :amzn_client_token,
1162
+ :s3_url_signer_role,
1163
+ :software_to_update,
1164
+ :update_agent_log_level,
1165
+ :update_targets,
1166
+ :update_targets_architecture,
1167
+ :update_targets_operating_system)
1168
+ include Aws::Structure
1169
+ end
1170
+
1171
+ # @!attribute [rw] iot_job_arn
1172
+ # The Iot Job Arn corresponding to this update.
1173
+ # @return [String]
1174
+ #
1175
+ # @!attribute [rw] iot_job_id
1176
+ # The Iot Job Id corresponding to this update.
1177
+ # @return [String]
1178
+ #
1179
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSoftwareUpdateJobResponse AWS API Documentation
1180
+ #
1181
+ class CreateSoftwareUpdateJobResponse < Struct.new(
1182
+ :iot_job_arn,
1183
+ :iot_job_id)
1184
+ include Aws::Structure
1185
+ end
1186
+
937
1187
  # @note When making an API call, you may pass CreateSubscriptionDefinitionRequest
938
1188
  # data as a hash:
939
1189
  #
@@ -1209,6 +1459,27 @@ module Aws::Greengrass
1209
1459
  #
1210
1460
  class DeleteLoggerDefinitionResponse < Aws::EmptyStructure; end
1211
1461
 
1462
+ # @note When making an API call, you may pass DeleteResourceDefinitionRequest
1463
+ # data as a hash:
1464
+ #
1465
+ # {
1466
+ # resource_definition_id: "__string", # required
1467
+ # }
1468
+ #
1469
+ # @!attribute [rw] resource_definition_id
1470
+ # @return [String]
1471
+ #
1472
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteResourceDefinitionRequest AWS API Documentation
1473
+ #
1474
+ class DeleteResourceDefinitionRequest < Struct.new(
1475
+ :resource_definition_id)
1476
+ include Aws::Structure
1477
+ end
1478
+
1479
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteResourceDefinitionResponse AWS API Documentation
1480
+ #
1481
+ class DeleteResourceDefinitionResponse < Aws::EmptyStructure; end
1482
+
1212
1483
  # @note When making an API call, you may pass DeleteSubscriptionDefinitionRequest
1213
1484
  # data as a hash:
1214
1485
  #
@@ -1407,6 +1678,13 @@ module Aws::Greengrass
1407
1678
  # function_arn: "__string",
1408
1679
  # function_configuration: {
1409
1680
  # environment: {
1681
+ # access_sysfs: false,
1682
+ # resource_access_policies: [
1683
+ # {
1684
+ # permission: "ro", # accepts ro, rw
1685
+ # resource_id: "__string",
1686
+ # },
1687
+ # ],
1410
1688
  # variables: {
1411
1689
  # "__string" => "__string",
1412
1690
  # },
@@ -1448,6 +1726,13 @@ module Aws::Greengrass
1448
1726
  #
1449
1727
  # {
1450
1728
  # environment: {
1729
+ # access_sysfs: false,
1730
+ # resource_access_policies: [
1731
+ # {
1732
+ # permission: "ro", # accepts ro, rw
1733
+ # resource_id: "__string",
1734
+ # },
1735
+ # ],
1451
1736
  # variables: {
1452
1737
  # "__string" => "__string",
1453
1738
  # },
@@ -1504,17 +1789,34 @@ module Aws::Greengrass
1504
1789
  # data as a hash:
1505
1790
  #
1506
1791
  # {
1792
+ # access_sysfs: false,
1793
+ # resource_access_policies: [
1794
+ # {
1795
+ # permission: "ro", # accepts ro, rw
1796
+ # resource_id: "__string",
1797
+ # },
1798
+ # ],
1507
1799
  # variables: {
1508
1800
  # "__string" => "__string",
1509
1801
  # },
1510
1802
  # }
1511
1803
  #
1804
+ # @!attribute [rw] access_sysfs
1805
+ # Flag to allow lambda access sys filesystem.
1806
+ # @return [Boolean]
1807
+ #
1808
+ # @!attribute [rw] resource_access_policies
1809
+ # Policies for the function to access resources.
1810
+ # @return [Array<Types::ResourceAccessPolicy>]
1811
+ #
1512
1812
  # @!attribute [rw] variables
1513
1813
  # @return [Hash<String,String>]
1514
1814
  #
1515
1815
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/FunctionConfigurationEnvironment AWS API Documentation
1516
1816
  #
1517
1817
  class FunctionConfigurationEnvironment < Struct.new(
1818
+ :access_sysfs,
1819
+ :resource_access_policies,
1518
1820
  :variables)
1519
1821
  include Aws::Structure
1520
1822
  end
@@ -1530,6 +1832,13 @@ module Aws::Greengrass
1530
1832
  # function_arn: "__string",
1531
1833
  # function_configuration: {
1532
1834
  # environment: {
1835
+ # access_sysfs: false,
1836
+ # resource_access_policies: [
1837
+ # {
1838
+ # permission: "ro", # accepts ro, rw
1839
+ # resource_id: "__string",
1840
+ # },
1841
+ # ],
1533
1842
  # variables: {
1534
1843
  # "__string" => "__string",
1535
1844
  # },
@@ -1631,6 +1940,7 @@ module Aws::Greengrass
1631
1940
  # @return [Array<Types::ConnectivityInfo>]
1632
1941
  #
1633
1942
  # @!attribute [rw] message
1943
+ # Response Text
1634
1944
  # @return [String]
1635
1945
  #
1636
1946
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetConnectivityInfoResponse AWS API Documentation
@@ -1988,7 +2298,7 @@ module Aws::Greengrass
1988
2298
  # @return [String]
1989
2299
  #
1990
2300
  # @!attribute [rw] definition
1991
- # Information on the definition
2301
+ # Information on the definition.
1992
2302
  # @return [Types::FunctionDefinitionVersion]
1993
2303
  #
1994
2304
  # @!attribute [rw] id
@@ -2302,6 +2612,112 @@ module Aws::Greengrass
2302
2612
  include Aws::Structure
2303
2613
  end
2304
2614
 
2615
+ # @note When making an API call, you may pass GetResourceDefinitionRequest
2616
+ # data as a hash:
2617
+ #
2618
+ # {
2619
+ # resource_definition_id: "__string", # required
2620
+ # }
2621
+ #
2622
+ # @!attribute [rw] resource_definition_id
2623
+ # @return [String]
2624
+ #
2625
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionRequest AWS API Documentation
2626
+ #
2627
+ class GetResourceDefinitionRequest < Struct.new(
2628
+ :resource_definition_id)
2629
+ include Aws::Structure
2630
+ end
2631
+
2632
+ # @!attribute [rw] arn
2633
+ # @return [String]
2634
+ #
2635
+ # @!attribute [rw] creation_timestamp
2636
+ # @return [String]
2637
+ #
2638
+ # @!attribute [rw] id
2639
+ # @return [String]
2640
+ #
2641
+ # @!attribute [rw] last_updated_timestamp
2642
+ # @return [String]
2643
+ #
2644
+ # @!attribute [rw] latest_version
2645
+ # @return [String]
2646
+ #
2647
+ # @!attribute [rw] latest_version_arn
2648
+ # @return [String]
2649
+ #
2650
+ # @!attribute [rw] name
2651
+ # @return [String]
2652
+ #
2653
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionResponse AWS API Documentation
2654
+ #
2655
+ class GetResourceDefinitionResponse < Struct.new(
2656
+ :arn,
2657
+ :creation_timestamp,
2658
+ :id,
2659
+ :last_updated_timestamp,
2660
+ :latest_version,
2661
+ :latest_version_arn,
2662
+ :name)
2663
+ include Aws::Structure
2664
+ end
2665
+
2666
+ # @note When making an API call, you may pass GetResourceDefinitionVersionRequest
2667
+ # data as a hash:
2668
+ #
2669
+ # {
2670
+ # resource_definition_id: "__string", # required
2671
+ # resource_definition_version_id: "__string", # required
2672
+ # }
2673
+ #
2674
+ # @!attribute [rw] resource_definition_id
2675
+ # @return [String]
2676
+ #
2677
+ # @!attribute [rw] resource_definition_version_id
2678
+ # @return [String]
2679
+ #
2680
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionVersionRequest AWS API Documentation
2681
+ #
2682
+ class GetResourceDefinitionVersionRequest < Struct.new(
2683
+ :resource_definition_id,
2684
+ :resource_definition_version_id)
2685
+ include Aws::Structure
2686
+ end
2687
+
2688
+ # Information on resource definition version response
2689
+ #
2690
+ # @!attribute [rw] arn
2691
+ # Arn of the resource definition version.
2692
+ # @return [String]
2693
+ #
2694
+ # @!attribute [rw] creation_timestamp
2695
+ # Timestamp of when the resource definition version was created.
2696
+ # @return [String]
2697
+ #
2698
+ # @!attribute [rw] definition
2699
+ # Information on definition.
2700
+ # @return [Types::ResourceDefinitionVersion]
2701
+ #
2702
+ # @!attribute [rw] id
2703
+ # Id of the resource definition the version belongs to.
2704
+ # @return [String]
2705
+ #
2706
+ # @!attribute [rw] version
2707
+ # Version of the resource definition version.
2708
+ # @return [String]
2709
+ #
2710
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionVersionResponse AWS API Documentation
2711
+ #
2712
+ class GetResourceDefinitionVersionResponse < Struct.new(
2713
+ :arn,
2714
+ :creation_timestamp,
2715
+ :definition,
2716
+ :id,
2717
+ :version)
2718
+ include Aws::Structure
2719
+ end
2720
+
2305
2721
  # @api private
2306
2722
  #
2307
2723
  # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetServiceRoleForAccountRequest AWS API Documentation
@@ -2515,6 +2931,32 @@ module Aws::Greengrass
2515
2931
  include Aws::Structure
2516
2932
  end
2517
2933
 
2934
+ # Group owner related settings for local resources.
2935
+ #
2936
+ # @note When making an API call, you may pass GroupOwnerSetting
2937
+ # data as a hash:
2938
+ #
2939
+ # {
2940
+ # auto_add_group_owner: false,
2941
+ # group_owner: "__string",
2942
+ # }
2943
+ #
2944
+ # @!attribute [rw] auto_add_group_owner
2945
+ # Eanble the auto added group owner.
2946
+ # @return [Boolean]
2947
+ #
2948
+ # @!attribute [rw] group_owner
2949
+ # Name of the group owner.
2950
+ # @return [String]
2951
+ #
2952
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GroupOwnerSetting AWS API Documentation
2953
+ #
2954
+ class GroupOwnerSetting < Struct.new(
2955
+ :auto_add_group_owner,
2956
+ :group_owner)
2957
+ include Aws::Structure
2958
+ end
2959
+
2518
2960
  # Information on group version
2519
2961
  #
2520
2962
  # @note When making an API call, you may pass GroupVersion
@@ -2525,6 +2967,7 @@ module Aws::Greengrass
2525
2967
  # device_definition_version_arn: "__string",
2526
2968
  # function_definition_version_arn: "__string",
2527
2969
  # logger_definition_version_arn: "__string",
2970
+ # resource_definition_version_arn: "__string",
2528
2971
  # subscription_definition_version_arn: "__string",
2529
2972
  # }
2530
2973
  #
@@ -2541,7 +2984,11 @@ module Aws::Greengrass
2541
2984
  # @return [String]
2542
2985
  #
2543
2986
  # @!attribute [rw] logger_definition_version_arn
2544
- # Logger definitionv ersion arn for this group.
2987
+ # Logger definition version arn for this group.
2988
+ # @return [String]
2989
+ #
2990
+ # @!attribute [rw] resource_definition_version_arn
2991
+ # Resource definition version arn for this group.
2545
2992
  # @return [String]
2546
2993
  #
2547
2994
  # @!attribute [rw] subscription_definition_version_arn
@@ -2555,6 +3002,7 @@ module Aws::Greengrass
2555
3002
  :device_definition_version_arn,
2556
3003
  :function_definition_version_arn,
2557
3004
  :logger_definition_version_arn,
3005
+ :resource_definition_version_arn,
2558
3006
  :subscription_definition_version_arn)
2559
3007
  include Aws::Structure
2560
3008
  end
@@ -3038,6 +3486,83 @@ module Aws::Greengrass
3038
3486
  include Aws::Structure
3039
3487
  end
3040
3488
 
3489
+ # @note When making an API call, you may pass ListResourceDefinitionVersionsRequest
3490
+ # data as a hash:
3491
+ #
3492
+ # {
3493
+ # max_results: "__string",
3494
+ # next_token: "__string",
3495
+ # resource_definition_id: "__string", # required
3496
+ # }
3497
+ #
3498
+ # @!attribute [rw] max_results
3499
+ # @return [String]
3500
+ #
3501
+ # @!attribute [rw] next_token
3502
+ # @return [String]
3503
+ #
3504
+ # @!attribute [rw] resource_definition_id
3505
+ # @return [String]
3506
+ #
3507
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersionsRequest AWS API Documentation
3508
+ #
3509
+ class ListResourceDefinitionVersionsRequest < Struct.new(
3510
+ :max_results,
3511
+ :next_token,
3512
+ :resource_definition_id)
3513
+ include Aws::Structure
3514
+ end
3515
+
3516
+ # @!attribute [rw] next_token
3517
+ # @return [String]
3518
+ #
3519
+ # @!attribute [rw] versions
3520
+ # @return [Array<Types::VersionInformation>]
3521
+ #
3522
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersionsResponse AWS API Documentation
3523
+ #
3524
+ class ListResourceDefinitionVersionsResponse < Struct.new(
3525
+ :next_token,
3526
+ :versions)
3527
+ include Aws::Structure
3528
+ end
3529
+
3530
+ # @note When making an API call, you may pass ListResourceDefinitionsRequest
3531
+ # data as a hash:
3532
+ #
3533
+ # {
3534
+ # max_results: "__string",
3535
+ # next_token: "__string",
3536
+ # }
3537
+ #
3538
+ # @!attribute [rw] max_results
3539
+ # @return [String]
3540
+ #
3541
+ # @!attribute [rw] next_token
3542
+ # @return [String]
3543
+ #
3544
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionsRequest AWS API Documentation
3545
+ #
3546
+ class ListResourceDefinitionsRequest < Struct.new(
3547
+ :max_results,
3548
+ :next_token)
3549
+ include Aws::Structure
3550
+ end
3551
+
3552
+ # @!attribute [rw] definitions
3553
+ # @return [Array<Types::DefinitionInformation>]
3554
+ #
3555
+ # @!attribute [rw] next_token
3556
+ # @return [String]
3557
+ #
3558
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionsResponse AWS API Documentation
3559
+ #
3560
+ class ListResourceDefinitionsResponse < Struct.new(
3561
+ :definitions,
3562
+ :next_token)
3563
+ include Aws::Structure
3564
+ end
3565
+
3041
3566
  # @note When making an API call, you may pass ListSubscriptionDefinitionVersionsRequest
3042
3567
  # data as a hash:
3043
3568
  #
@@ -3134,6 +3659,70 @@ module Aws::Greengrass
3134
3659
  include Aws::Structure
3135
3660
  end
3136
3661
 
3662
+ # Attributes that define the Local Device Resource.
3663
+ #
3664
+ # @note When making an API call, you may pass LocalDeviceResourceData
3665
+ # data as a hash:
3666
+ #
3667
+ # {
3668
+ # group_owner_setting: {
3669
+ # auto_add_group_owner: false,
3670
+ # group_owner: "__string",
3671
+ # },
3672
+ # source_path: "__string",
3673
+ # }
3674
+ #
3675
+ # @!attribute [rw] group_owner_setting
3676
+ # Group owner related settings for local resources.
3677
+ # @return [Types::GroupOwnerSetting]
3678
+ #
3679
+ # @!attribute [rw] source_path
3680
+ # Local source path of the resource.
3681
+ # @return [String]
3682
+ #
3683
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/LocalDeviceResourceData AWS API Documentation
3684
+ #
3685
+ class LocalDeviceResourceData < Struct.new(
3686
+ :group_owner_setting,
3687
+ :source_path)
3688
+ include Aws::Structure
3689
+ end
3690
+
3691
+ # Attributes that define the Local Volume Resource.
3692
+ #
3693
+ # @note When making an API call, you may pass LocalVolumeResourceData
3694
+ # data as a hash:
3695
+ #
3696
+ # {
3697
+ # destination_path: "__string",
3698
+ # group_owner_setting: {
3699
+ # auto_add_group_owner: false,
3700
+ # group_owner: "__string",
3701
+ # },
3702
+ # source_path: "__string",
3703
+ # }
3704
+ #
3705
+ # @!attribute [rw] destination_path
3706
+ # Local destination path of the resource.
3707
+ # @return [String]
3708
+ #
3709
+ # @!attribute [rw] group_owner_setting
3710
+ # Group owner related settings for local resources.
3711
+ # @return [Types::GroupOwnerSetting]
3712
+ #
3713
+ # @!attribute [rw] source_path
3714
+ # Local source path of the resource.
3715
+ # @return [String]
3716
+ #
3717
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/LocalVolumeResourceData AWS API Documentation
3718
+ #
3719
+ class LocalVolumeResourceData < Struct.new(
3720
+ :destination_path,
3721
+ :group_owner_setting,
3722
+ :source_path)
3723
+ include Aws::Structure
3724
+ end
3725
+
3137
3726
  # Information on the Logger
3138
3727
  #
3139
3728
  # @note When making an API call, you may pass Logger
@@ -3253,6 +3842,161 @@ module Aws::Greengrass
3253
3842
  include Aws::Structure
3254
3843
  end
3255
3844
 
3845
+ # Information on the resource.
3846
+ #
3847
+ # @note When making an API call, you may pass Resource
3848
+ # data as a hash:
3849
+ #
3850
+ # {
3851
+ # id: "__string",
3852
+ # name: "__string",
3853
+ # resource_data_container: {
3854
+ # local_device_resource_data: {
3855
+ # group_owner_setting: {
3856
+ # auto_add_group_owner: false,
3857
+ # group_owner: "__string",
3858
+ # },
3859
+ # source_path: "__string",
3860
+ # },
3861
+ # local_volume_resource_data: {
3862
+ # destination_path: "__string",
3863
+ # group_owner_setting: {
3864
+ # auto_add_group_owner: false,
3865
+ # group_owner: "__string",
3866
+ # },
3867
+ # source_path: "__string",
3868
+ # },
3869
+ # },
3870
+ # }
3871
+ #
3872
+ # @!attribute [rw] id
3873
+ # Resource Id.
3874
+ # @return [String]
3875
+ #
3876
+ # @!attribute [rw] name
3877
+ # A descriptive resource name.
3878
+ # @return [String]
3879
+ #
3880
+ # @!attribute [rw] resource_data_container
3881
+ # A container of data for all resource types.
3882
+ # @return [Types::ResourceDataContainer]
3883
+ #
3884
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/Resource AWS API Documentation
3885
+ #
3886
+ class Resource < Struct.new(
3887
+ :id,
3888
+ :name,
3889
+ :resource_data_container)
3890
+ include Aws::Structure
3891
+ end
3892
+
3893
+ # Policy for the function to access a resource.
3894
+ #
3895
+ # @note When making an API call, you may pass ResourceAccessPolicy
3896
+ # data as a hash:
3897
+ #
3898
+ # {
3899
+ # permission: "ro", # accepts ro, rw
3900
+ # resource_id: "__string",
3901
+ # }
3902
+ #
3903
+ # @!attribute [rw] permission
3904
+ # The function's access permission to the resource.
3905
+ # @return [String]
3906
+ #
3907
+ # @!attribute [rw] resource_id
3908
+ # Id of the resource. A reference to the resource definiton.
3909
+ # @return [String]
3910
+ #
3911
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResourceAccessPolicy AWS API Documentation
3912
+ #
3913
+ class ResourceAccessPolicy < Struct.new(
3914
+ :permission,
3915
+ :resource_id)
3916
+ include Aws::Structure
3917
+ end
3918
+
3919
+ # A container of data for all resource types.
3920
+ #
3921
+ # @note When making an API call, you may pass ResourceDataContainer
3922
+ # data as a hash:
3923
+ #
3924
+ # {
3925
+ # local_device_resource_data: {
3926
+ # group_owner_setting: {
3927
+ # auto_add_group_owner: false,
3928
+ # group_owner: "__string",
3929
+ # },
3930
+ # source_path: "__string",
3931
+ # },
3932
+ # local_volume_resource_data: {
3933
+ # destination_path: "__string",
3934
+ # group_owner_setting: {
3935
+ # auto_add_group_owner: false,
3936
+ # group_owner: "__string",
3937
+ # },
3938
+ # source_path: "__string",
3939
+ # },
3940
+ # }
3941
+ #
3942
+ # @!attribute [rw] local_device_resource_data
3943
+ # Attributes that define the Local Device Resource.
3944
+ # @return [Types::LocalDeviceResourceData]
3945
+ #
3946
+ # @!attribute [rw] local_volume_resource_data
3947
+ # Attributes that define the Local Volume Resource.
3948
+ # @return [Types::LocalVolumeResourceData]
3949
+ #
3950
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResourceDataContainer AWS API Documentation
3951
+ #
3952
+ class ResourceDataContainer < Struct.new(
3953
+ :local_device_resource_data,
3954
+ :local_volume_resource_data)
3955
+ include Aws::Structure
3956
+ end
3957
+
3958
+ # Information on resource definition version
3959
+ #
3960
+ # @note When making an API call, you may pass ResourceDefinitionVersion
3961
+ # data as a hash:
3962
+ #
3963
+ # {
3964
+ # resources: [
3965
+ # {
3966
+ # id: "__string",
3967
+ # name: "__string",
3968
+ # resource_data_container: {
3969
+ # local_device_resource_data: {
3970
+ # group_owner_setting: {
3971
+ # auto_add_group_owner: false,
3972
+ # group_owner: "__string",
3973
+ # },
3974
+ # source_path: "__string",
3975
+ # },
3976
+ # local_volume_resource_data: {
3977
+ # destination_path: "__string",
3978
+ # group_owner_setting: {
3979
+ # auto_add_group_owner: false,
3980
+ # group_owner: "__string",
3981
+ # },
3982
+ # source_path: "__string",
3983
+ # },
3984
+ # },
3985
+ # },
3986
+ # ],
3987
+ # }
3988
+ #
3989
+ # @!attribute [rw] resources
3990
+ # List of resources.
3991
+ # @return [Array<Types::Resource>]
3992
+ #
3993
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResourceDefinitionVersion AWS API Documentation
3994
+ #
3995
+ class ResourceDefinitionVersion < Struct.new(
3996
+ :resources)
3997
+ include Aws::Structure
3998
+ end
3999
+
3256
4000
  # Information on subscription
3257
4001
  #
3258
4002
  # @note When making an API call, you may pass Subscription
@@ -3353,6 +4097,7 @@ module Aws::Greengrass
3353
4097
  end
3354
4098
 
3355
4099
  # @!attribute [rw] message
4100
+ # Response Text
3356
4101
  # @return [String]
3357
4102
  #
3358
4103
  # @!attribute [rw] version
@@ -3538,6 +4283,32 @@ module Aws::Greengrass
3538
4283
  #
3539
4284
  class UpdateLoggerDefinitionResponse < Aws::EmptyStructure; end
3540
4285
 
4286
+ # @note When making an API call, you may pass UpdateResourceDefinitionRequest
4287
+ # data as a hash:
4288
+ #
4289
+ # {
4290
+ # name: "__string",
4291
+ # resource_definition_id: "__string", # required
4292
+ # }
4293
+ #
4294
+ # @!attribute [rw] name
4295
+ # @return [String]
4296
+ #
4297
+ # @!attribute [rw] resource_definition_id
4298
+ # @return [String]
4299
+ #
4300
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinitionRequest AWS API Documentation
4301
+ #
4302
+ class UpdateResourceDefinitionRequest < Struct.new(
4303
+ :name,
4304
+ :resource_definition_id)
4305
+ include Aws::Structure
4306
+ end
4307
+
4308
+ # @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinitionResponse AWS API Documentation
4309
+ #
4310
+ class UpdateResourceDefinitionResponse < Aws::EmptyStructure; end
4311
+
3541
4312
  # @note When making an API call, you may pass UpdateSubscriptionDefinitionRequest
3542
4313
  # data as a hash:
3543
4314
  #