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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-greengrass.rb +1 -1
- data/lib/aws-sdk-greengrass/client.rb +426 -1
- data/lib/aws-sdk-greengrass/client_api.rb +243 -0
- data/lib/aws-sdk-greengrass/types.rb +773 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61179dc7d3c537f311ed4cea0bc5f8d6d4e282b2
|
4
|
+
data.tar.gz: e8245a62707a271fe874766a7851ce34fd471255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03c7c57f28be62535e5c62868c4ed1ad927d5b71171158e7b199b71e7979dca6acaa50d461b11c5018435ed3f84e4a05dc9536ed51616c2abbbe043e4e7b3917
|
7
|
+
data.tar.gz: 09bf22f5723940ad597973b505a16854261428feb620750f7371d4121daf74876674b2a9a551923141d50a9064ce79a9a09eba0472f6505cd6454b33c9851ca1
|
data/lib/aws-sdk-greengrass.rb
CHANGED
@@ -497,6 +497,13 @@ module Aws::Greengrass
|
|
497
497
|
# function_arn: "__string",
|
498
498
|
# function_configuration: {
|
499
499
|
# environment: {
|
500
|
+
# access_sysfs: false,
|
501
|
+
# resource_access_policies: [
|
502
|
+
# {
|
503
|
+
# permission: "ro", # accepts ro, rw
|
504
|
+
# resource_id: "__string",
|
505
|
+
# },
|
506
|
+
# ],
|
500
507
|
# variables: {
|
501
508
|
# "__string" => "__string",
|
502
509
|
# },
|
@@ -559,6 +566,13 @@ module Aws::Greengrass
|
|
559
566
|
# function_arn: "__string",
|
560
567
|
# function_configuration: {
|
561
568
|
# environment: {
|
569
|
+
# access_sysfs: false,
|
570
|
+
# resource_access_policies: [
|
571
|
+
# {
|
572
|
+
# permission: "ro", # accepts ro, rw
|
573
|
+
# resource_id: "__string",
|
574
|
+
# },
|
575
|
+
# ],
|
562
576
|
# variables: {
|
563
577
|
# "__string" => "__string",
|
564
578
|
# },
|
@@ -619,6 +633,7 @@ module Aws::Greengrass
|
|
619
633
|
# device_definition_version_arn: "__string",
|
620
634
|
# function_definition_version_arn: "__string",
|
621
635
|
# logger_definition_version_arn: "__string",
|
636
|
+
# resource_definition_version_arn: "__string",
|
622
637
|
# subscription_definition_version_arn: "__string",
|
623
638
|
# },
|
624
639
|
# name: "__string",
|
@@ -688,6 +703,8 @@ module Aws::Greengrass
|
|
688
703
|
#
|
689
704
|
# @option params [String] :logger_definition_version_arn
|
690
705
|
#
|
706
|
+
# @option params [String] :resource_definition_version_arn
|
707
|
+
#
|
691
708
|
# @option params [String] :subscription_definition_version_arn
|
692
709
|
#
|
693
710
|
# @return [Types::CreateGroupVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -706,6 +723,7 @@ module Aws::Greengrass
|
|
706
723
|
# function_definition_version_arn: "__string",
|
707
724
|
# group_id: "__string", # required
|
708
725
|
# logger_definition_version_arn: "__string",
|
726
|
+
# resource_definition_version_arn: "__string",
|
709
727
|
# subscription_definition_version_arn: "__string",
|
710
728
|
# })
|
711
729
|
#
|
@@ -831,6 +849,197 @@ module Aws::Greengrass
|
|
831
849
|
req.send_request(options)
|
832
850
|
end
|
833
851
|
|
852
|
+
# Creates a resource definition which contains a list of resources to be
|
853
|
+
# used in a group. You can create an initial version of the definition
|
854
|
+
# by providing a list of resources now, or use
|
855
|
+
# ``CreateResourceDefinitionVersion`` later.
|
856
|
+
#
|
857
|
+
# @option params [String] :amzn_client_token
|
858
|
+
#
|
859
|
+
# @option params [Types::ResourceDefinitionVersion] :initial_version
|
860
|
+
# Information on resource definition version
|
861
|
+
#
|
862
|
+
# @option params [String] :name
|
863
|
+
#
|
864
|
+
# @return [Types::CreateResourceDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
865
|
+
#
|
866
|
+
# * {Types::CreateResourceDefinitionResponse#arn #arn} => String
|
867
|
+
# * {Types::CreateResourceDefinitionResponse#creation_timestamp #creation_timestamp} => String
|
868
|
+
# * {Types::CreateResourceDefinitionResponse#id #id} => String
|
869
|
+
# * {Types::CreateResourceDefinitionResponse#last_updated_timestamp #last_updated_timestamp} => String
|
870
|
+
# * {Types::CreateResourceDefinitionResponse#latest_version #latest_version} => String
|
871
|
+
# * {Types::CreateResourceDefinitionResponse#latest_version_arn #latest_version_arn} => String
|
872
|
+
# * {Types::CreateResourceDefinitionResponse#name #name} => String
|
873
|
+
#
|
874
|
+
# @example Request syntax with placeholder values
|
875
|
+
#
|
876
|
+
# resp = client.create_resource_definition({
|
877
|
+
# amzn_client_token: "__string",
|
878
|
+
# initial_version: {
|
879
|
+
# resources: [
|
880
|
+
# {
|
881
|
+
# id: "__string",
|
882
|
+
# name: "__string",
|
883
|
+
# resource_data_container: {
|
884
|
+
# local_device_resource_data: {
|
885
|
+
# group_owner_setting: {
|
886
|
+
# auto_add_group_owner: false,
|
887
|
+
# group_owner: "__string",
|
888
|
+
# },
|
889
|
+
# source_path: "__string",
|
890
|
+
# },
|
891
|
+
# local_volume_resource_data: {
|
892
|
+
# destination_path: "__string",
|
893
|
+
# group_owner_setting: {
|
894
|
+
# auto_add_group_owner: false,
|
895
|
+
# group_owner: "__string",
|
896
|
+
# },
|
897
|
+
# source_path: "__string",
|
898
|
+
# },
|
899
|
+
# },
|
900
|
+
# },
|
901
|
+
# ],
|
902
|
+
# },
|
903
|
+
# name: "__string",
|
904
|
+
# })
|
905
|
+
#
|
906
|
+
# @example Response structure
|
907
|
+
#
|
908
|
+
# resp.arn #=> String
|
909
|
+
# resp.creation_timestamp #=> String
|
910
|
+
# resp.id #=> String
|
911
|
+
# resp.last_updated_timestamp #=> String
|
912
|
+
# resp.latest_version #=> String
|
913
|
+
# resp.latest_version_arn #=> String
|
914
|
+
# resp.name #=> String
|
915
|
+
#
|
916
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinition AWS API Documentation
|
917
|
+
#
|
918
|
+
# @overload create_resource_definition(params = {})
|
919
|
+
# @param [Hash] params ({})
|
920
|
+
def create_resource_definition(params = {}, options = {})
|
921
|
+
req = build_request(:create_resource_definition, params)
|
922
|
+
req.send_request(options)
|
923
|
+
end
|
924
|
+
|
925
|
+
# Create a version of a resource definition that has already been
|
926
|
+
# defined.
|
927
|
+
#
|
928
|
+
# @option params [String] :amzn_client_token
|
929
|
+
#
|
930
|
+
# @option params [required, String] :resource_definition_id
|
931
|
+
#
|
932
|
+
# @option params [Array<Types::Resource>] :resources
|
933
|
+
#
|
934
|
+
# @return [Types::CreateResourceDefinitionVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
935
|
+
#
|
936
|
+
# * {Types::CreateResourceDefinitionVersionResponse#arn #arn} => String
|
937
|
+
# * {Types::CreateResourceDefinitionVersionResponse#creation_timestamp #creation_timestamp} => String
|
938
|
+
# * {Types::CreateResourceDefinitionVersionResponse#id #id} => String
|
939
|
+
# * {Types::CreateResourceDefinitionVersionResponse#version #version} => String
|
940
|
+
#
|
941
|
+
# @example Request syntax with placeholder values
|
942
|
+
#
|
943
|
+
# resp = client.create_resource_definition_version({
|
944
|
+
# amzn_client_token: "__string",
|
945
|
+
# resource_definition_id: "__string", # required
|
946
|
+
# resources: [
|
947
|
+
# {
|
948
|
+
# id: "__string",
|
949
|
+
# name: "__string",
|
950
|
+
# resource_data_container: {
|
951
|
+
# local_device_resource_data: {
|
952
|
+
# group_owner_setting: {
|
953
|
+
# auto_add_group_owner: false,
|
954
|
+
# group_owner: "__string",
|
955
|
+
# },
|
956
|
+
# source_path: "__string",
|
957
|
+
# },
|
958
|
+
# local_volume_resource_data: {
|
959
|
+
# destination_path: "__string",
|
960
|
+
# group_owner_setting: {
|
961
|
+
# auto_add_group_owner: false,
|
962
|
+
# group_owner: "__string",
|
963
|
+
# },
|
964
|
+
# source_path: "__string",
|
965
|
+
# },
|
966
|
+
# },
|
967
|
+
# },
|
968
|
+
# ],
|
969
|
+
# })
|
970
|
+
#
|
971
|
+
# @example Response structure
|
972
|
+
#
|
973
|
+
# resp.arn #=> String
|
974
|
+
# resp.creation_timestamp #=> String
|
975
|
+
# resp.id #=> String
|
976
|
+
# resp.version #=> String
|
977
|
+
#
|
978
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateResourceDefinitionVersion AWS API Documentation
|
979
|
+
#
|
980
|
+
# @overload create_resource_definition_version(params = {})
|
981
|
+
# @param [Hash] params ({})
|
982
|
+
def create_resource_definition_version(params = {}, options = {})
|
983
|
+
req = build_request(:create_resource_definition_version, params)
|
984
|
+
req.send_request(options)
|
985
|
+
end
|
986
|
+
|
987
|
+
# Creates an Iot Job that will trigger your Greengrass Cores to update
|
988
|
+
# the software they are running.
|
989
|
+
#
|
990
|
+
# @option params [String] :amzn_client_token
|
991
|
+
#
|
992
|
+
# @option params [String] :s3_url_signer_role
|
993
|
+
# The IAM Role that Greengrass will use to create pre-signed URLs
|
994
|
+
# pointing towards the update artifact.
|
995
|
+
#
|
996
|
+
# @option params [String] :software_to_update
|
997
|
+
# The piece of software on the Greengrass Core that will be updated.
|
998
|
+
#
|
999
|
+
# @option params [String] :update_agent_log_level
|
1000
|
+
# The minimum level of log statements that should be logged by the OTA
|
1001
|
+
# Agent during an update.
|
1002
|
+
#
|
1003
|
+
# @option params [Array<String>] :update_targets
|
1004
|
+
# The target arns that this update will be applied to.
|
1005
|
+
#
|
1006
|
+
# @option params [String] :update_targets_architecture
|
1007
|
+
# The architecture of the Cores in the targets of an update
|
1008
|
+
#
|
1009
|
+
# @option params [String] :update_targets_operating_system
|
1010
|
+
# The operating system of the Cores in the targets of an update
|
1011
|
+
#
|
1012
|
+
# @return [Types::CreateSoftwareUpdateJobResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1013
|
+
#
|
1014
|
+
# * {Types::CreateSoftwareUpdateJobResponse#iot_job_arn #iot_job_arn} => String
|
1015
|
+
# * {Types::CreateSoftwareUpdateJobResponse#iot_job_id #iot_job_id} => String
|
1016
|
+
#
|
1017
|
+
# @example Request syntax with placeholder values
|
1018
|
+
#
|
1019
|
+
# resp = client.create_software_update_job({
|
1020
|
+
# amzn_client_token: "__string",
|
1021
|
+
# s3_url_signer_role: "S3UrlSignerRole",
|
1022
|
+
# software_to_update: "core", # accepts core, ota_agent
|
1023
|
+
# update_agent_log_level: "NONE", # accepts NONE, TRACE, DEBUG, VERBOSE, INFO, WARN, ERROR, FATAL
|
1024
|
+
# update_targets: ["__string"],
|
1025
|
+
# update_targets_architecture: "armv7l", # accepts armv7l, x86_64, aarch64
|
1026
|
+
# update_targets_operating_system: "ubuntu", # accepts ubuntu, raspbian, amazon_linux
|
1027
|
+
# })
|
1028
|
+
#
|
1029
|
+
# @example Response structure
|
1030
|
+
#
|
1031
|
+
# resp.iot_job_arn #=> String
|
1032
|
+
# resp.iot_job_id #=> String
|
1033
|
+
#
|
1034
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/CreateSoftwareUpdateJob AWS API Documentation
|
1035
|
+
#
|
1036
|
+
# @overload create_software_update_job(params = {})
|
1037
|
+
# @param [Hash] params ({})
|
1038
|
+
def create_software_update_job(params = {}, options = {})
|
1039
|
+
req = build_request(:create_software_update_job, params)
|
1040
|
+
req.send_request(options)
|
1041
|
+
end
|
1042
|
+
|
834
1043
|
# Creates a subscription definition. You may optionally provide the
|
835
1044
|
# initial version of the subscription definition or use
|
836
1045
|
# ``CreateSubscriptionDefinitionVersion`` at a later time.
|
@@ -1044,6 +1253,27 @@ module Aws::Greengrass
|
|
1044
1253
|
req.send_request(options)
|
1045
1254
|
end
|
1046
1255
|
|
1256
|
+
# Deletes a resource definition.
|
1257
|
+
#
|
1258
|
+
# @option params [required, String] :resource_definition_id
|
1259
|
+
#
|
1260
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1261
|
+
#
|
1262
|
+
# @example Request syntax with placeholder values
|
1263
|
+
#
|
1264
|
+
# resp = client.delete_resource_definition({
|
1265
|
+
# resource_definition_id: "__string", # required
|
1266
|
+
# })
|
1267
|
+
#
|
1268
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/DeleteResourceDefinition AWS API Documentation
|
1269
|
+
#
|
1270
|
+
# @overload delete_resource_definition(params = {})
|
1271
|
+
# @param [Hash] params ({})
|
1272
|
+
def delete_resource_definition(params = {}, options = {})
|
1273
|
+
req = build_request(:delete_resource_definition, params)
|
1274
|
+
req.send_request(options)
|
1275
|
+
end
|
1276
|
+
|
1047
1277
|
# Deletes a subscription definition. The subscription definition must
|
1048
1278
|
# not have been used in a deployment.
|
1049
1279
|
#
|
@@ -1446,6 +1676,10 @@ module Aws::Greengrass
|
|
1446
1676
|
# resp.creation_timestamp #=> String
|
1447
1677
|
# resp.definition.functions #=> Array
|
1448
1678
|
# resp.definition.functions[0].function_arn #=> String
|
1679
|
+
# resp.definition.functions[0].function_configuration.environment.access_sysfs #=> Boolean
|
1680
|
+
# resp.definition.functions[0].function_configuration.environment.resource_access_policies #=> Array
|
1681
|
+
# resp.definition.functions[0].function_configuration.environment.resource_access_policies[0].permission #=> String, one of "ro", "rw"
|
1682
|
+
# resp.definition.functions[0].function_configuration.environment.resource_access_policies[0].resource_id #=> String
|
1449
1683
|
# resp.definition.functions[0].function_configuration.environment.variables #=> Hash
|
1450
1684
|
# resp.definition.functions[0].function_configuration.environment.variables["__string"] #=> String
|
1451
1685
|
# resp.definition.functions[0].function_configuration.exec_args #=> String
|
@@ -1600,6 +1834,7 @@ module Aws::Greengrass
|
|
1600
1834
|
# resp.definition.device_definition_version_arn #=> String
|
1601
1835
|
# resp.definition.function_definition_version_arn #=> String
|
1602
1836
|
# resp.definition.logger_definition_version_arn #=> String
|
1837
|
+
# resp.definition.resource_definition_version_arn #=> String
|
1603
1838
|
# resp.definition.subscription_definition_version_arn #=> String
|
1604
1839
|
# resp.id #=> String
|
1605
1840
|
# resp.version #=> String
|
@@ -1695,6 +1930,94 @@ module Aws::Greengrass
|
|
1695
1930
|
req.send_request(options)
|
1696
1931
|
end
|
1697
1932
|
|
1933
|
+
# Retrieves information about a resource definition, such as its
|
1934
|
+
# creation time and latest version.
|
1935
|
+
#
|
1936
|
+
# @option params [required, String] :resource_definition_id
|
1937
|
+
#
|
1938
|
+
# @return [Types::GetResourceDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1939
|
+
#
|
1940
|
+
# * {Types::GetResourceDefinitionResponse#arn #arn} => String
|
1941
|
+
# * {Types::GetResourceDefinitionResponse#creation_timestamp #creation_timestamp} => String
|
1942
|
+
# * {Types::GetResourceDefinitionResponse#id #id} => String
|
1943
|
+
# * {Types::GetResourceDefinitionResponse#last_updated_timestamp #last_updated_timestamp} => String
|
1944
|
+
# * {Types::GetResourceDefinitionResponse#latest_version #latest_version} => String
|
1945
|
+
# * {Types::GetResourceDefinitionResponse#latest_version_arn #latest_version_arn} => String
|
1946
|
+
# * {Types::GetResourceDefinitionResponse#name #name} => String
|
1947
|
+
#
|
1948
|
+
# @example Request syntax with placeholder values
|
1949
|
+
#
|
1950
|
+
# resp = client.get_resource_definition({
|
1951
|
+
# resource_definition_id: "__string", # required
|
1952
|
+
# })
|
1953
|
+
#
|
1954
|
+
# @example Response structure
|
1955
|
+
#
|
1956
|
+
# resp.arn #=> String
|
1957
|
+
# resp.creation_timestamp #=> String
|
1958
|
+
# resp.id #=> String
|
1959
|
+
# resp.last_updated_timestamp #=> String
|
1960
|
+
# resp.latest_version #=> String
|
1961
|
+
# resp.latest_version_arn #=> String
|
1962
|
+
# resp.name #=> String
|
1963
|
+
#
|
1964
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinition AWS API Documentation
|
1965
|
+
#
|
1966
|
+
# @overload get_resource_definition(params = {})
|
1967
|
+
# @param [Hash] params ({})
|
1968
|
+
def get_resource_definition(params = {}, options = {})
|
1969
|
+
req = build_request(:get_resource_definition, params)
|
1970
|
+
req.send_request(options)
|
1971
|
+
end
|
1972
|
+
|
1973
|
+
# Retrieves information about a resource definition version, such as
|
1974
|
+
# which resources are included in the version.
|
1975
|
+
#
|
1976
|
+
# @option params [required, String] :resource_definition_id
|
1977
|
+
#
|
1978
|
+
# @option params [required, String] :resource_definition_version_id
|
1979
|
+
#
|
1980
|
+
# @return [Types::GetResourceDefinitionVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1981
|
+
#
|
1982
|
+
# * {Types::GetResourceDefinitionVersionResponse#arn #arn} => String
|
1983
|
+
# * {Types::GetResourceDefinitionVersionResponse#creation_timestamp #creation_timestamp} => String
|
1984
|
+
# * {Types::GetResourceDefinitionVersionResponse#definition #definition} => Types::ResourceDefinitionVersion
|
1985
|
+
# * {Types::GetResourceDefinitionVersionResponse#id #id} => String
|
1986
|
+
# * {Types::GetResourceDefinitionVersionResponse#version #version} => String
|
1987
|
+
#
|
1988
|
+
# @example Request syntax with placeholder values
|
1989
|
+
#
|
1990
|
+
# resp = client.get_resource_definition_version({
|
1991
|
+
# resource_definition_id: "__string", # required
|
1992
|
+
# resource_definition_version_id: "__string", # required
|
1993
|
+
# })
|
1994
|
+
#
|
1995
|
+
# @example Response structure
|
1996
|
+
#
|
1997
|
+
# resp.arn #=> String
|
1998
|
+
# resp.creation_timestamp #=> String
|
1999
|
+
# resp.definition.resources #=> Array
|
2000
|
+
# resp.definition.resources[0].id #=> String
|
2001
|
+
# resp.definition.resources[0].name #=> String
|
2002
|
+
# resp.definition.resources[0].resource_data_container.local_device_resource_data.group_owner_setting.auto_add_group_owner #=> Boolean
|
2003
|
+
# resp.definition.resources[0].resource_data_container.local_device_resource_data.group_owner_setting.group_owner #=> String
|
2004
|
+
# resp.definition.resources[0].resource_data_container.local_device_resource_data.source_path #=> String
|
2005
|
+
# resp.definition.resources[0].resource_data_container.local_volume_resource_data.destination_path #=> String
|
2006
|
+
# resp.definition.resources[0].resource_data_container.local_volume_resource_data.group_owner_setting.auto_add_group_owner #=> Boolean
|
2007
|
+
# resp.definition.resources[0].resource_data_container.local_volume_resource_data.group_owner_setting.group_owner #=> String
|
2008
|
+
# resp.definition.resources[0].resource_data_container.local_volume_resource_data.source_path #=> String
|
2009
|
+
# resp.id #=> String
|
2010
|
+
# resp.version #=> String
|
2011
|
+
#
|
2012
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionVersion AWS API Documentation
|
2013
|
+
#
|
2014
|
+
# @overload get_resource_definition_version(params = {})
|
2015
|
+
# @param [Hash] params ({})
|
2016
|
+
def get_resource_definition_version(params = {}, options = {})
|
2017
|
+
req = build_request(:get_resource_definition_version, params)
|
2018
|
+
req.send_request(options)
|
2019
|
+
end
|
2020
|
+
|
1698
2021
|
# Retrieves the service role that is attached to the account.
|
1699
2022
|
#
|
1700
2023
|
# @return [Types::GetServiceRoleForAccountResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -2256,6 +2579,84 @@ module Aws::Greengrass
|
|
2256
2579
|
req.send_request(options)
|
2257
2580
|
end
|
2258
2581
|
|
2582
|
+
# Lists the versions of a resource definition.
|
2583
|
+
#
|
2584
|
+
# @option params [String] :max_results
|
2585
|
+
#
|
2586
|
+
# @option params [String] :next_token
|
2587
|
+
#
|
2588
|
+
# @option params [required, String] :resource_definition_id
|
2589
|
+
#
|
2590
|
+
# @return [Types::ListResourceDefinitionVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2591
|
+
#
|
2592
|
+
# * {Types::ListResourceDefinitionVersionsResponse#next_token #next_token} => String
|
2593
|
+
# * {Types::ListResourceDefinitionVersionsResponse#versions #versions} => Array<Types::VersionInformation>
|
2594
|
+
#
|
2595
|
+
# @example Request syntax with placeholder values
|
2596
|
+
#
|
2597
|
+
# resp = client.list_resource_definition_versions({
|
2598
|
+
# max_results: "__string",
|
2599
|
+
# next_token: "__string",
|
2600
|
+
# resource_definition_id: "__string", # required
|
2601
|
+
# })
|
2602
|
+
#
|
2603
|
+
# @example Response structure
|
2604
|
+
#
|
2605
|
+
# resp.next_token #=> String
|
2606
|
+
# resp.versions #=> Array
|
2607
|
+
# resp.versions[0].arn #=> String
|
2608
|
+
# resp.versions[0].creation_timestamp #=> String
|
2609
|
+
# resp.versions[0].id #=> String
|
2610
|
+
# resp.versions[0].version #=> String
|
2611
|
+
#
|
2612
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersions AWS API Documentation
|
2613
|
+
#
|
2614
|
+
# @overload list_resource_definition_versions(params = {})
|
2615
|
+
# @param [Hash] params ({})
|
2616
|
+
def list_resource_definition_versions(params = {}, options = {})
|
2617
|
+
req = build_request(:list_resource_definition_versions, params)
|
2618
|
+
req.send_request(options)
|
2619
|
+
end
|
2620
|
+
|
2621
|
+
# Retrieves a list of resource definitions.
|
2622
|
+
#
|
2623
|
+
# @option params [String] :max_results
|
2624
|
+
#
|
2625
|
+
# @option params [String] :next_token
|
2626
|
+
#
|
2627
|
+
# @return [Types::ListResourceDefinitionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2628
|
+
#
|
2629
|
+
# * {Types::ListResourceDefinitionsResponse#definitions #definitions} => Array<Types::DefinitionInformation>
|
2630
|
+
# * {Types::ListResourceDefinitionsResponse#next_token #next_token} => String
|
2631
|
+
#
|
2632
|
+
# @example Request syntax with placeholder values
|
2633
|
+
#
|
2634
|
+
# resp = client.list_resource_definitions({
|
2635
|
+
# max_results: "__string",
|
2636
|
+
# next_token: "__string",
|
2637
|
+
# })
|
2638
|
+
#
|
2639
|
+
# @example Response structure
|
2640
|
+
#
|
2641
|
+
# resp.definitions #=> Array
|
2642
|
+
# resp.definitions[0].arn #=> String
|
2643
|
+
# resp.definitions[0].creation_timestamp #=> String
|
2644
|
+
# resp.definitions[0].id #=> String
|
2645
|
+
# resp.definitions[0].last_updated_timestamp #=> String
|
2646
|
+
# resp.definitions[0].latest_version #=> String
|
2647
|
+
# resp.definitions[0].latest_version_arn #=> String
|
2648
|
+
# resp.definitions[0].name #=> String
|
2649
|
+
# resp.next_token #=> String
|
2650
|
+
#
|
2651
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitions AWS API Documentation
|
2652
|
+
#
|
2653
|
+
# @overload list_resource_definitions(params = {})
|
2654
|
+
# @param [Hash] params ({})
|
2655
|
+
def list_resource_definitions(params = {}, options = {})
|
2656
|
+
req = build_request(:list_resource_definitions, params)
|
2657
|
+
req.send_request(options)
|
2658
|
+
end
|
2659
|
+
|
2259
2660
|
# Lists the versions of a subscription definition.
|
2260
2661
|
#
|
2261
2662
|
# @option params [String] :max_results
|
@@ -2567,6 +2968,30 @@ module Aws::Greengrass
|
|
2567
2968
|
req.send_request(options)
|
2568
2969
|
end
|
2569
2970
|
|
2971
|
+
# Updates a resource definition.
|
2972
|
+
#
|
2973
|
+
# @option params [String] :name
|
2974
|
+
#
|
2975
|
+
# @option params [required, String] :resource_definition_id
|
2976
|
+
#
|
2977
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2978
|
+
#
|
2979
|
+
# @example Request syntax with placeholder values
|
2980
|
+
#
|
2981
|
+
# resp = client.update_resource_definition({
|
2982
|
+
# name: "__string",
|
2983
|
+
# resource_definition_id: "__string", # required
|
2984
|
+
# })
|
2985
|
+
#
|
2986
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinition AWS API Documentation
|
2987
|
+
#
|
2988
|
+
# @overload update_resource_definition(params = {})
|
2989
|
+
# @param [Hash] params ({})
|
2990
|
+
def update_resource_definition(params = {}, options = {})
|
2991
|
+
req = build_request(:update_resource_definition, params)
|
2992
|
+
req.send_request(options)
|
2993
|
+
end
|
2994
|
+
|
2570
2995
|
# Updates a subscription definition.
|
2571
2996
|
#
|
2572
2997
|
# @option params [String] :name
|
@@ -2604,7 +3029,7 @@ module Aws::Greengrass
|
|
2604
3029
|
params: params,
|
2605
3030
|
config: config)
|
2606
3031
|
context[:gem_name] = 'aws-sdk-greengrass'
|
2607
|
-
context[:gem_version] = '1.
|
3032
|
+
context[:gem_version] = '1.2.0'
|
2608
3033
|
Seahorse::Client::Request.new(handlers, context)
|
2609
3034
|
end
|
2610
3035
|
|