You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Greengrass::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Greengrass::Client
- Defined in:
- (unknown)
Overview
An API client for AWS Greengrass. To construct a client, you need to configure a :region
and :credentials
.
greengrass = Aws::Greengrass::Client.new(
region: region_name,
credentials: credentials,
# ...
)
See #initialize for a full list of supported configuration options.
Region
You can configure a default region in the following locations:
ENV['AWS_REGION']
Aws.config[:region]
Go here for a list of supported regions.
Credentials
Default credentials are loaded automatically from the following locations:
ENV['AWS_ACCESS_KEY_ID']
andENV['AWS_SECRET_ACCESS_KEY']
Aws.config[:credentials]
- The shared credentials ini file at
~/.aws/credentials
(more information) - From an instance profile when running on EC2
You can also construct a credentials object from one of the following classes:
Alternatively, you configure credentials with :access_key_id
and
:secret_access_key
:
# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))
Aws::Greengrass::Client.new(
access_key_id: creds['access_key_id'],
secret_access_key: creds['secret_access_key']
)
Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
Constructor collapse
-
#initialize(options = {}) ⇒ Aws::Greengrass::Client
constructor
Constructs an API client.
API Operations collapse
-
#associate_role_to_group(options = {}) ⇒ Types::AssociateRoleToGroupResponse
Associates a role with a group.
-
#associate_service_role_to_account(options = {}) ⇒ Types::AssociateServiceRoleToAccountResponse
Associates a role with your account.
-
#create_connector_definition(options = {}) ⇒ Types::CreateConnectorDefinitionResponse
Creates a connector definition.
-
#create_connector_definition_version(options = {}) ⇒ Types::CreateConnectorDefinitionVersionResponse
Creates a version of a connector definition which has already been defined.
-
#create_core_definition(options = {}) ⇒ Types::CreateCoreDefinitionResponse
Creates a core definition.
-
#create_core_definition_version(options = {}) ⇒ Types::CreateCoreDefinitionVersionResponse
Creates a version of a core definition that has already been defined.
-
#create_deployment(options = {}) ⇒ Types::CreateDeploymentResponse
Creates a deployment.
-
#create_device_definition(options = {}) ⇒ Types::CreateDeviceDefinitionResponse
Creates a device definition.
-
#create_device_definition_version(options = {}) ⇒ Types::CreateDeviceDefinitionVersionResponse
Creates a version of a device definition that has already been defined.
-
#create_function_definition(options = {}) ⇒ Types::CreateFunctionDefinitionResponse
Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be used in a group.
-
#create_function_definition_version(options = {}) ⇒ Types::CreateFunctionDefinitionVersionResponse
Creates a version of a Lambda function definition that has already been defined.
-
#create_group(options = {}) ⇒ Types::CreateGroupResponse
Creates a group.
-
#create_group_certificate_authority(options = {}) ⇒ Types::CreateGroupCertificateAuthorityResponse
Creates a CA for the group.
-
#create_group_version(options = {}) ⇒ Types::CreateGroupVersionResponse
Creates a version of a group which has already been defined.
-
#create_logger_definition(options = {}) ⇒ Types::CreateLoggerDefinitionResponse
Creates a logger definition.
-
#create_logger_definition_version(options = {}) ⇒ Types::CreateLoggerDefinitionVersionResponse
Creates a version of a logger definition that has already been defined.
-
#create_resource_definition(options = {}) ⇒ Types::CreateResourceDefinitionResponse
Creates a resource definition which contains a list of resources to be used in a group.
-
#create_resource_definition_version(options = {}) ⇒ Types::CreateResourceDefinitionVersionResponse
Creates a version of a resource definition that has already been defined.
-
#create_software_update_job(options = {}) ⇒ Types::CreateSoftwareUpdateJobResponse
Creates a software update for a core or group of cores (specified as an IoT thing group.) Use this to update the OTA Agent as well as the Greengrass core software.
-
#create_subscription_definition(options = {}) ⇒ Types::CreateSubscriptionDefinitionResponse
Creates a subscription definition.
-
#create_subscription_definition_version(options = {}) ⇒ Types::CreateSubscriptionDefinitionVersionResponse
Creates a version of a subscription definition which has already been defined.
-
#delete_connector_definition(options = {}) ⇒ Struct
Deletes a connector definition.
-
#delete_core_definition(options = {}) ⇒ Struct
Deletes a core definition.
-
#delete_device_definition(options = {}) ⇒ Struct
Deletes a device definition.
-
#delete_function_definition(options = {}) ⇒ Struct
Deletes a Lambda function definition.
-
#delete_group(options = {}) ⇒ Struct
Deletes a group.
-
#delete_logger_definition(options = {}) ⇒ Struct
Deletes a logger definition.
-
#delete_resource_definition(options = {}) ⇒ Struct
Deletes a resource definition.
-
#delete_subscription_definition(options = {}) ⇒ Struct
Deletes a subscription definition.
-
#disassociate_role_from_group(options = {}) ⇒ Types::DisassociateRoleFromGroupResponse
Disassociates the role from a group.
-
#disassociate_service_role_from_account(options = {}) ⇒ Types::DisassociateServiceRoleFromAccountResponse
Disassociates the service role from your account.
-
#get_associated_role(options = {}) ⇒ Types::GetAssociatedRoleResponse
Retrieves the role associated with a particular group.
-
#get_bulk_deployment_status(options = {}) ⇒ Types::GetBulkDeploymentStatusResponse
Returns the status of a bulk deployment.
-
#get_connectivity_info(options = {}) ⇒ Types::GetConnectivityInfoResponse
Retrieves the connectivity information for a core.
-
#get_connector_definition(options = {}) ⇒ Types::GetConnectorDefinitionResponse
Retrieves information about a connector definition.
-
#get_connector_definition_version(options = {}) ⇒ Types::GetConnectorDefinitionVersionResponse
Retrieves information about a connector definition version, including the connectors that the version contains.
-
#get_core_definition(options = {}) ⇒ Types::GetCoreDefinitionResponse
Retrieves information about a core definition version.
-
#get_core_definition_version(options = {}) ⇒ Types::GetCoreDefinitionVersionResponse
Retrieves information about a core definition version.
-
#get_deployment_status(options = {}) ⇒ Types::GetDeploymentStatusResponse
Returns the status of a deployment.
-
#get_device_definition(options = {}) ⇒ Types::GetDeviceDefinitionResponse
Retrieves information about a device definition.
-
#get_device_definition_version(options = {}) ⇒ Types::GetDeviceDefinitionVersionResponse
Retrieves information about a device definition version.
-
#get_function_definition(options = {}) ⇒ Types::GetFunctionDefinitionResponse
Retrieves information about a Lambda function definition, including its creation time and latest version.
-
#get_function_definition_version(options = {}) ⇒ Types::GetFunctionDefinitionVersionResponse
Retrieves information about a Lambda function definition version, including which Lambda functions are included in the version and their configurations.
-
#get_group(options = {}) ⇒ Types::GetGroupResponse
Retrieves information about a group.
-
#get_group_certificate_authority(options = {}) ⇒ Types::GetGroupCertificateAuthorityResponse
Retreives the CA associated with a group.
-
#get_group_certificate_configuration(options = {}) ⇒ Types::GetGroupCertificateConfigurationResponse
Retrieves the current configuration for the CA used by the group.
-
#get_group_version(options = {}) ⇒ Types::GetGroupVersionResponse
Retrieves information about a group version.
-
#get_logger_definition(options = {}) ⇒ Types::GetLoggerDefinitionResponse
Retrieves information about a logger definition.
-
#get_logger_definition_version(options = {}) ⇒ Types::GetLoggerDefinitionVersionResponse
Retrieves information about a logger definition version.
-
#get_resource_definition(options = {}) ⇒ Types::GetResourceDefinitionResponse
Retrieves information about a resource definition, including its creation time and latest version.
-
#get_resource_definition_version(options = {}) ⇒ Types::GetResourceDefinitionVersionResponse
Retrieves information about a resource definition version, including which resources are included in the version.
-
#get_service_role_for_account(options = {}) ⇒ Types::GetServiceRoleForAccountResponse
Retrieves the service role that is attached to your account.
-
#get_subscription_definition(options = {}) ⇒ Types::GetSubscriptionDefinitionResponse
Retrieves information about a subscription definition.
-
#get_subscription_definition_version(options = {}) ⇒ Types::GetSubscriptionDefinitionVersionResponse
Retrieves information about a subscription definition version.
-
#get_thing_runtime_configuration(options = {}) ⇒ Types::GetThingRuntimeConfigurationResponse
Get the runtime configuration of a thing.
-
#list_bulk_deployment_detailed_reports(options = {}) ⇒ Types::ListBulkDeploymentDetailedReportsResponse
Gets a paginated list of the deployments that have been started in a bulk deployment operation, and their current deployment status.
-
#list_bulk_deployments(options = {}) ⇒ Types::ListBulkDeploymentsResponse
Returns a list of bulk deployments.
-
#list_connector_definition_versions(options = {}) ⇒ Types::ListConnectorDefinitionVersionsResponse
Lists the versions of a connector definition, which are containers for connectors.
-
#list_connector_definitions(options = {}) ⇒ Types::ListConnectorDefinitionsResponse
Retrieves a list of connector definitions.
-
#list_core_definition_versions(options = {}) ⇒ Types::ListCoreDefinitionVersionsResponse
Lists the versions of a core definition.
-
#list_core_definitions(options = {}) ⇒ Types::ListCoreDefinitionsResponse
Retrieves a list of core definitions.
-
#list_deployments(options = {}) ⇒ Types::ListDeploymentsResponse
Returns a history of deployments for the group.
-
#list_device_definition_versions(options = {}) ⇒ Types::ListDeviceDefinitionVersionsResponse
Lists the versions of a device definition.
-
#list_device_definitions(options = {}) ⇒ Types::ListDeviceDefinitionsResponse
Retrieves a list of device definitions.
-
#list_function_definition_versions(options = {}) ⇒ Types::ListFunctionDefinitionVersionsResponse
Lists the versions of a Lambda function definition.
-
#list_function_definitions(options = {}) ⇒ Types::ListFunctionDefinitionsResponse
Retrieves a list of Lambda function definitions.
-
#list_group_certificate_authorities(options = {}) ⇒ Types::ListGroupCertificateAuthoritiesResponse
Retrieves the current CAs for a group.
-
#list_group_versions(options = {}) ⇒ Types::ListGroupVersionsResponse
Lists the versions of a group.
-
#list_groups(options = {}) ⇒ Types::ListGroupsResponse
Retrieves a list of groups.
-
#list_logger_definition_versions(options = {}) ⇒ Types::ListLoggerDefinitionVersionsResponse
Lists the versions of a logger definition.
-
#list_logger_definitions(options = {}) ⇒ Types::ListLoggerDefinitionsResponse
Retrieves a list of logger definitions.
-
#list_resource_definition_versions(options = {}) ⇒ Types::ListResourceDefinitionVersionsResponse
Lists the versions of a resource definition.
-
#list_resource_definitions(options = {}) ⇒ Types::ListResourceDefinitionsResponse
Retrieves a list of resource definitions.
-
#list_subscription_definition_versions(options = {}) ⇒ Types::ListSubscriptionDefinitionVersionsResponse
Lists the versions of a subscription definition.
-
#list_subscription_definitions(options = {}) ⇒ Types::ListSubscriptionDefinitionsResponse
Retrieves a list of subscription definitions.
-
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves a list of resource tags for a resource arn.
-
#reset_deployments(options = {}) ⇒ Types::ResetDeploymentsResponse
Resets a group's deployments.
-
#start_bulk_deployment(options = {}) ⇒ Types::StartBulkDeploymentResponse
Deploys multiple groups in one operation.
-
#stop_bulk_deployment(options = {}) ⇒ Struct
Stops the execution of a bulk deployment.
-
#tag_resource(options = {}) ⇒ Struct
Adds tags to a Greengrass resource.
-
#untag_resource(options = {}) ⇒ Struct
Remove resource tags from a Greengrass Resource.
-
#update_connectivity_info(options = {}) ⇒ Types::UpdateConnectivityInfoResponse
Updates the connectivity information for the core.
-
#update_connector_definition(options = {}) ⇒ Struct
Updates a connector definition.
-
#update_core_definition(options = {}) ⇒ Struct
Updates a core definition.
-
#update_device_definition(options = {}) ⇒ Struct
Updates a device definition.
-
#update_function_definition(options = {}) ⇒ Struct
Updates a Lambda function definition.
-
#update_group(options = {}) ⇒ Struct
Updates a group.
-
#update_group_certificate_configuration(options = {}) ⇒ Types::UpdateGroupCertificateConfigurationResponse
Updates the Certificate expiry time for a group.
-
#update_logger_definition(options = {}) ⇒ Struct
Updates a logger definition.
-
#update_resource_definition(options = {}) ⇒ Struct
Updates a resource definition.
-
#update_subscription_definition(options = {}) ⇒ Struct
Updates a subscription definition.
-
#update_thing_runtime_configuration(options = {}) ⇒ Struct
Updates the runtime configuration of a thing.
Instance Method Summary collapse
-
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
-
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters.
Methods inherited from Seahorse::Client::Base
add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options = {}) ⇒ Aws::Greengrass::Client
Constructs an API client.
Instance Method Details
#associate_role_to_group(options = {}) ⇒ Types::AssociateRoleToGroupResponse
Associates a role with a group. Your Greengrass core will use the role to access AWS cloud services. The role's permissions should allow Greengrass core Lambda functions to perform actions against the cloud.
#associate_service_role_to_account(options = {}) ⇒ Types::AssociateServiceRoleToAccountResponse
Associates a role with your account. AWS IoT Greengrass will use the role to access your Lambda functions and AWS IoT resources. This is necessary for deployments to succeed. The role must have at least minimum permissions in the policy ''AWSGreengrassResourceAccessRolePolicy''.
#create_connector_definition(options = {}) ⇒ Types::CreateConnectorDefinitionResponse
Creates a connector definition. You may provide the initial version of the connector definition now or use ''CreateConnectorDefinitionVersion'' at a later time.
#create_connector_definition_version(options = {}) ⇒ Types::CreateConnectorDefinitionVersionResponse
Creates a version of a connector definition which has already been defined.
#create_core_definition(options = {}) ⇒ Types::CreateCoreDefinitionResponse
Creates a core definition. You may provide the initial version of the core definition now or use ''CreateCoreDefinitionVersion'' at a later time. Greengrass groups must each contain exactly one Greengrass core.
#create_core_definition_version(options = {}) ⇒ Types::CreateCoreDefinitionVersionResponse
Creates a version of a core definition that has already been defined. Greengrass groups must each contain exactly one Greengrass core.
#create_deployment(options = {}) ⇒ Types::CreateDeploymentResponse
Creates a deployment. ''CreateDeployment'' requests are idempotent with respect to the ''X-Amzn-Client-Token'' token and the request parameters.
#create_device_definition(options = {}) ⇒ Types::CreateDeviceDefinitionResponse
Creates a device definition. You may provide the initial version of the device definition now or use ''CreateDeviceDefinitionVersion'' at a later time.
#create_device_definition_version(options = {}) ⇒ Types::CreateDeviceDefinitionVersionResponse
Creates a version of a device definition that has already been defined.
#create_function_definition(options = {}) ⇒ Types::CreateFunctionDefinitionResponse
Creates a Lambda function definition which contains a list of Lambda functions and their configurations to be used in a group. You can create an initial version of the definition by providing a list of Lambda functions and their configurations now, or use ''CreateFunctionDefinitionVersion'' later.
#create_function_definition_version(options = {}) ⇒ Types::CreateFunctionDefinitionVersionResponse
Creates a version of a Lambda function definition that has already been defined.
#create_group(options = {}) ⇒ Types::CreateGroupResponse
Creates a group. You may provide the initial version of the group or use ''CreateGroupVersion'' at a later time. Tip: You can use the ''gg_group_setup'' package (https://github.com/awslabs/aws-greengrass-group-setup) as a library or command-line application to create and deploy Greengrass groups.
#create_group_certificate_authority(options = {}) ⇒ Types::CreateGroupCertificateAuthorityResponse
Creates a CA for the group. If a CA already exists, it will rotate the existing CA.
#create_group_version(options = {}) ⇒ Types::CreateGroupVersionResponse
Creates a version of a group which has already been defined.
#create_logger_definition(options = {}) ⇒ Types::CreateLoggerDefinitionResponse
Creates a logger definition. You may provide the initial version of the logger definition now or use ''CreateLoggerDefinitionVersion'' at a later time.
#create_logger_definition_version(options = {}) ⇒ Types::CreateLoggerDefinitionVersionResponse
Creates a version of a logger definition that has already been defined.
#create_resource_definition(options = {}) ⇒ Types::CreateResourceDefinitionResponse
Creates a resource definition which contains a list of resources to be used in a group. You can create an initial version of the definition by providing a list of resources now, or use ''CreateResourceDefinitionVersion'' later.
#create_resource_definition_version(options = {}) ⇒ Types::CreateResourceDefinitionVersionResponse
Creates a version of a resource definition that has already been defined.
#create_software_update_job(options = {}) ⇒ Types::CreateSoftwareUpdateJobResponse
Creates a software update for a core or group of cores (specified as an IoT thing group.) Use this to update the OTA Agent as well as the Greengrass core software. It makes use of the IoT Jobs feature which provides additional commands to manage a Greengrass core software update job.
#create_subscription_definition(options = {}) ⇒ Types::CreateSubscriptionDefinitionResponse
Creates a subscription definition. You may provide the initial version of the subscription definition now or use ''CreateSubscriptionDefinitionVersion'' at a later time.
#create_subscription_definition_version(options = {}) ⇒ Types::CreateSubscriptionDefinitionVersionResponse
Creates a version of a subscription definition which has already been defined.
#delete_connector_definition(options = {}) ⇒ Struct
Deletes a connector definition.
#delete_core_definition(options = {}) ⇒ Struct
Deletes a core definition.
#delete_device_definition(options = {}) ⇒ Struct
Deletes a device definition.
#delete_function_definition(options = {}) ⇒ Struct
Deletes a Lambda function definition.
#delete_group(options = {}) ⇒ Struct
Deletes a group.
#delete_logger_definition(options = {}) ⇒ Struct
Deletes a logger definition.
#delete_resource_definition(options = {}) ⇒ Struct
Deletes a resource definition.
#delete_subscription_definition(options = {}) ⇒ Struct
Deletes a subscription definition.
#disassociate_role_from_group(options = {}) ⇒ Types::DisassociateRoleFromGroupResponse
Disassociates the role from a group.
#disassociate_service_role_from_account(options = {}) ⇒ Types::DisassociateServiceRoleFromAccountResponse
Disassociates the service role from your account. Without a service role, deployments will not work.
#get_associated_role(options = {}) ⇒ Types::GetAssociatedRoleResponse
Retrieves the role associated with a particular group.
#get_bulk_deployment_status(options = {}) ⇒ Types::GetBulkDeploymentStatusResponse
Returns the status of a bulk deployment.
#get_connectivity_info(options = {}) ⇒ Types::GetConnectivityInfoResponse
Retrieves the connectivity information for a core.
#get_connector_definition(options = {}) ⇒ Types::GetConnectorDefinitionResponse
Retrieves information about a connector definition.
#get_connector_definition_version(options = {}) ⇒ Types::GetConnectorDefinitionVersionResponse
Retrieves information about a connector definition version, including the connectors that the version contains. Connectors are prebuilt modules that interact with local infrastructure, device protocols, AWS, and other cloud services.
#get_core_definition(options = {}) ⇒ Types::GetCoreDefinitionResponse
Retrieves information about a core definition version.
#get_core_definition_version(options = {}) ⇒ Types::GetCoreDefinitionVersionResponse
Retrieves information about a core definition version.
#get_deployment_status(options = {}) ⇒ Types::GetDeploymentStatusResponse
Returns the status of a deployment.
#get_device_definition(options = {}) ⇒ Types::GetDeviceDefinitionResponse
Retrieves information about a device definition.
#get_device_definition_version(options = {}) ⇒ Types::GetDeviceDefinitionVersionResponse
Retrieves information about a device definition version.
#get_function_definition(options = {}) ⇒ Types::GetFunctionDefinitionResponse
Retrieves information about a Lambda function definition, including its creation time and latest version.
#get_function_definition_version(options = {}) ⇒ Types::GetFunctionDefinitionVersionResponse
Retrieves information about a Lambda function definition version, including which Lambda functions are included in the version and their configurations.
#get_group(options = {}) ⇒ Types::GetGroupResponse
Retrieves information about a group.
#get_group_certificate_authority(options = {}) ⇒ Types::GetGroupCertificateAuthorityResponse
Retreives the CA associated with a group. Returns the public key of the CA.
#get_group_certificate_configuration(options = {}) ⇒ Types::GetGroupCertificateConfigurationResponse
Retrieves the current configuration for the CA used by the group.
#get_group_version(options = {}) ⇒ Types::GetGroupVersionResponse
Retrieves information about a group version.
#get_logger_definition(options = {}) ⇒ Types::GetLoggerDefinitionResponse
Retrieves information about a logger definition.
#get_logger_definition_version(options = {}) ⇒ Types::GetLoggerDefinitionVersionResponse
Retrieves information about a logger definition version.
#get_resource_definition(options = {}) ⇒ Types::GetResourceDefinitionResponse
Retrieves information about a resource definition, including its creation time and latest version.
#get_resource_definition_version(options = {}) ⇒ Types::GetResourceDefinitionVersionResponse
Retrieves information about a resource definition version, including which resources are included in the version.
#get_service_role_for_account(options = {}) ⇒ Types::GetServiceRoleForAccountResponse
Retrieves the service role that is attached to your account.
#get_subscription_definition(options = {}) ⇒ Types::GetSubscriptionDefinitionResponse
Retrieves information about a subscription definition.
#get_subscription_definition_version(options = {}) ⇒ Types::GetSubscriptionDefinitionVersionResponse
Retrieves information about a subscription definition version.
#get_thing_runtime_configuration(options = {}) ⇒ Types::GetThingRuntimeConfigurationResponse
Get the runtime configuration of a thing.
#list_bulk_deployment_detailed_reports(options = {}) ⇒ Types::ListBulkDeploymentDetailedReportsResponse
Gets a paginated list of the deployments that have been started in a bulk deployment operation, and their current deployment status.
#list_bulk_deployments(options = {}) ⇒ Types::ListBulkDeploymentsResponse
Returns a list of bulk deployments.
#list_connector_definition_versions(options = {}) ⇒ Types::ListConnectorDefinitionVersionsResponse
Lists the versions of a connector definition, which are containers for connectors. Connectors run on the Greengrass core and contain built-in integration with local infrastructure, device protocols, AWS, and other cloud services.
#list_connector_definitions(options = {}) ⇒ Types::ListConnectorDefinitionsResponse
Retrieves a list of connector definitions.
#list_core_definition_versions(options = {}) ⇒ Types::ListCoreDefinitionVersionsResponse
Lists the versions of a core definition.
#list_core_definitions(options = {}) ⇒ Types::ListCoreDefinitionsResponse
Retrieves a list of core definitions.
#list_deployments(options = {}) ⇒ Types::ListDeploymentsResponse
Returns a history of deployments for the group.
#list_device_definition_versions(options = {}) ⇒ Types::ListDeviceDefinitionVersionsResponse
Lists the versions of a device definition.
#list_device_definitions(options = {}) ⇒ Types::ListDeviceDefinitionsResponse
Retrieves a list of device definitions.
#list_function_definition_versions(options = {}) ⇒ Types::ListFunctionDefinitionVersionsResponse
Lists the versions of a Lambda function definition.
#list_function_definitions(options = {}) ⇒ Types::ListFunctionDefinitionsResponse
Retrieves a list of Lambda function definitions.
#list_group_certificate_authorities(options = {}) ⇒ Types::ListGroupCertificateAuthoritiesResponse
Retrieves the current CAs for a group.
#list_group_versions(options = {}) ⇒ Types::ListGroupVersionsResponse
Lists the versions of a group.
#list_groups(options = {}) ⇒ Types::ListGroupsResponse
Retrieves a list of groups.
#list_logger_definition_versions(options = {}) ⇒ Types::ListLoggerDefinitionVersionsResponse
Lists the versions of a logger definition.
#list_logger_definitions(options = {}) ⇒ Types::ListLoggerDefinitionsResponse
Retrieves a list of logger definitions.
#list_resource_definition_versions(options = {}) ⇒ Types::ListResourceDefinitionVersionsResponse
Lists the versions of a resource definition.
#list_resource_definitions(options = {}) ⇒ Types::ListResourceDefinitionsResponse
Retrieves a list of resource definitions.
#list_subscription_definition_versions(options = {}) ⇒ Types::ListSubscriptionDefinitionVersionsResponse
Lists the versions of a subscription definition.
#list_subscription_definitions(options = {}) ⇒ Types::ListSubscriptionDefinitionsResponse
Retrieves a list of subscription definitions.
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves a list of resource tags for a resource arn.
#reset_deployments(options = {}) ⇒ Types::ResetDeploymentsResponse
Resets a group's deployments.
#start_bulk_deployment(options = {}) ⇒ Types::StartBulkDeploymentResponse
Deploys multiple groups in one operation. This action starts the bulk deployment of a specified set of group versions. Each group version deployment will be triggered with an adaptive rate that has a fixed upper limit. We recommend that you include an ''X-Amzn-Client-Token'' token in every ''StartBulkDeployment'' request. These requests are idempotent with respect to the token and the request parameters.
#stop_bulk_deployment(options = {}) ⇒ Struct
Stops the execution of a bulk deployment. This action returns a status of ''Stopping'' until the deployment is stopped. You cannot start a new bulk deployment while a previous deployment is in the ''Stopping'' state. This action doesn't rollback completed deployments or cancel pending deployments.
#tag_resource(options = {}) ⇒ Struct
Adds tags to a Greengrass resource. Valid resources are 'Group', 'ConnectorDefinition', 'CoreDefinition', 'DeviceDefinition', 'FunctionDefinition', 'LoggerDefinition', 'SubscriptionDefinition', 'ResourceDefinition', and 'BulkDeployment'.
#untag_resource(options = {}) ⇒ Struct
Remove resource tags from a Greengrass Resource.
#update_connectivity_info(options = {}) ⇒ Types::UpdateConnectivityInfoResponse
Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it.
#update_connector_definition(options = {}) ⇒ Struct
Updates a connector definition.
#update_core_definition(options = {}) ⇒ Struct
Updates a core definition.
#update_device_definition(options = {}) ⇒ Struct
Updates a device definition.
#update_function_definition(options = {}) ⇒ Struct
Updates a Lambda function definition.
#update_group(options = {}) ⇒ Struct
Updates a group.
#update_group_certificate_configuration(options = {}) ⇒ Types::UpdateGroupCertificateConfigurationResponse
Updates the Certificate expiry time for a group.
#update_logger_definition(options = {}) ⇒ Struct
Updates a logger definition.
#update_resource_definition(options = {}) ⇒ Struct
Updates a resource definition.
#update_subscription_definition(options = {}) ⇒ Struct
Updates a subscription definition.
#update_thing_runtime_configuration(options = {}) ⇒ Struct
Updates the runtime configuration of a thing.
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
Basic Usage
Waiters will poll until they are succesful, they fail by entering a terminal state, or until a maximum number of attempts are made.
# polls in a loop, sleeping between attempts client.waiter_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You configure waiters by passing a block to #wait_until:
# poll for ~25 seconds
client.wait_until(...) do |w|
w.max_attempts = 5
w.delay = 5
end
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success
or :failure
from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(...) do |w|
# disable max attempts
w.max_attempts = nil
# poll for 1 hour, instead of a number of attempts
w.before_wait do |attempts, response|
throw :failure if Time.now - started_at > 3600
end
end
Handling Errors
When a waiter is successful, it returns true
. When a waiter
fails, it raises an error. All errors raised extend from
Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters. The following table lists the supported waiters and the client method they call:
Waiter Name | Client Method | Default Delay: | Default Max Attempts: |
---|