You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::AlexaForBusiness::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::AlexaForBusiness::Client
- Defined in:
- (unknown)
Overview
An API client for Alexa For Business. To construct a client, you need to configure a :region
and :credentials
.
alexaforbusiness = Aws::AlexaForBusiness::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::AlexaForBusiness::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::AlexaForBusiness::Client
constructor
Constructs an API client.
API Operations collapse
-
#approve_skill(options = {}) ⇒ Struct
Associates a skill with the organization under the customer's AWS account.
-
#associate_contact_with_address_book(options = {}) ⇒ Struct
Associates a contact with a given address book.
.
-
#associate_device_with_network_profile(options = {}) ⇒ Struct
Associates a device with the specified network profile.
.
-
#associate_device_with_room(options = {}) ⇒ Struct
Associates a device with a given room.
-
#associate_skill_group_with_room(options = {}) ⇒ Struct
Associates a skill group with a given room.
-
#associate_skill_with_skill_group(options = {}) ⇒ Struct
Associates a skill with a skill group.
.
-
#associate_skill_with_users(options = {}) ⇒ Struct
Makes a private skill available for enrolled users to enable on their devices.
.
-
#create_address_book(options = {}) ⇒ Types::CreateAddressBookResponse
Creates an address book with the specified details.
.
-
#create_business_report_schedule(options = {}) ⇒ Types::CreateBusinessReportScheduleResponse
Creates a recurring schedule for usage reports to deliver to the specified S3 location with a specified daily or weekly interval.
.
-
#create_conference_provider(options = {}) ⇒ Types::CreateConferenceProviderResponse
Adds a new conference provider under the user's AWS account.
.
-
#create_contact(options = {}) ⇒ Types::CreateContactResponse
Creates a contact with the specified details.
.
-
#create_gateway_group(options = {}) ⇒ Types::CreateGatewayGroupResponse
Creates a gateway group with the specified details.
.
-
#create_network_profile(options = {}) ⇒ Types::CreateNetworkProfileResponse
Creates a network profile with the specified details.
.
-
#create_profile(options = {}) ⇒ Types::CreateProfileResponse
Creates a new room profile with the specified details.
.
-
#create_room(options = {}) ⇒ Types::CreateRoomResponse
Creates a room with the specified details.
.
-
#create_skill_group(options = {}) ⇒ Types::CreateSkillGroupResponse
Creates a skill group with a specified name and description.
.
-
#create_user(options = {}) ⇒ Types::CreateUserResponse
Creates a user.
.
-
#delete_address_book(options = {}) ⇒ Struct
Deletes an address book by the address book ARN.
.
-
#delete_business_report_schedule(options = {}) ⇒ Struct
Deletes the recurring report delivery schedule with the specified schedule ARN.
.
-
#delete_conference_provider(options = {}) ⇒ Struct
Deletes a conference provider.
.
-
#delete_contact(options = {}) ⇒ Struct
Deletes a contact by the contact ARN.
.
-
#delete_device(options = {}) ⇒ Struct
Removes a device from Alexa For Business.
.
-
#delete_device_usage_data(options = {}) ⇒ Struct
When this action is called for a specified shared device, it allows authorized users to delete the device's entire previous history of voice input data and associated response data.
-
#delete_gateway_group(options = {}) ⇒ Struct
Deletes a gateway group.
.
-
#delete_network_profile(options = {}) ⇒ Struct
Deletes a network profile by the network profile ARN.
.
-
#delete_profile(options = {}) ⇒ Struct
Deletes a room profile by the profile ARN.
.
-
#delete_room(options = {}) ⇒ Struct
Deletes a room by the room ARN.
.
-
#delete_room_skill_parameter(options = {}) ⇒ Struct
Deletes room skill parameter details by room, skill, and parameter key ID.
.
-
#delete_skill_authorization(options = {}) ⇒ Struct
Unlinks a third-party account from a skill.
.
-
#delete_skill_group(options = {}) ⇒ Struct
Deletes a skill group by skill group ARN.
.
-
#delete_user(options = {}) ⇒ Struct
Deletes a specified user by user ARN and enrollment ARN.
.
-
#disassociate_contact_from_address_book(options = {}) ⇒ Struct
Disassociates a contact from a given address book.
.
-
#disassociate_device_from_room(options = {}) ⇒ Struct
Disassociates a device from its current room.
-
#disassociate_skill_from_skill_group(options = {}) ⇒ Struct
Disassociates a skill from a skill group.
.
-
#disassociate_skill_from_users(options = {}) ⇒ Struct
Makes a private skill unavailable for enrolled users and prevents them from enabling it on their devices.
.
-
#disassociate_skill_group_from_room(options = {}) ⇒ Struct
Disassociates a skill group from a specified room.
-
#forget_smart_home_appliances(options = {}) ⇒ Struct
Forgets smart home appliances associated to a room.
.
-
#get_address_book(options = {}) ⇒ Types::GetAddressBookResponse
Gets address the book details by the address book ARN.
.
-
#get_conference_preference(options = {}) ⇒ Types::GetConferencePreferenceResponse
Retrieves the existing conference preferences.
.
-
#get_conference_provider(options = {}) ⇒ Types::GetConferenceProviderResponse
Gets details about a specific conference provider.
.
-
#get_contact(options = {}) ⇒ Types::GetContactResponse
Gets the contact details by the contact ARN.
.
-
#get_device(options = {}) ⇒ Types::GetDeviceResponse
Gets the details of a device by device ARN.
.
-
#get_gateway(options = {}) ⇒ Types::GetGatewayResponse
Retrieves the details of a gateway.
.
-
#get_gateway_group(options = {}) ⇒ Types::GetGatewayGroupResponse
Retrieves the details of a gateway group.
.
-
#get_invitation_configuration(options = {}) ⇒ Types::GetInvitationConfigurationResponse
Retrieves the configured values for the user enrollment invitation email template.
.
-
#get_network_profile(options = {}) ⇒ Types::GetNetworkProfileResponse
Gets the network profile details by the network profile ARN.
.
-
#get_profile(options = {}) ⇒ Types::GetProfileResponse
Gets the details of a room profile by profile ARN.
.
-
#get_room(options = {}) ⇒ Types::GetRoomResponse
Gets room details by room ARN.
.
-
#get_room_skill_parameter(options = {}) ⇒ Types::GetRoomSkillParameterResponse
Gets room skill parameter details by room, skill, and parameter key ARN.
.
-
#get_skill_group(options = {}) ⇒ Types::GetSkillGroupResponse
Gets skill group details by skill group ARN.
.
-
#list_business_report_schedules(options = {}) ⇒ Types::ListBusinessReportSchedulesResponse
Lists the details of the schedules that a user configured.
-
#list_conference_providers(options = {}) ⇒ Types::ListConferenceProvidersResponse
Lists conference providers under a specific AWS account.
.
-
#list_device_events(options = {}) ⇒ Types::ListDeviceEventsResponse
Lists the device event history, including device connection status, for up to 30 days.
.
-
#list_gateway_groups(options = {}) ⇒ Types::ListGatewayGroupsResponse
Retrieves a list of gateway group summaries.
-
#list_gateways(options = {}) ⇒ Types::ListGatewaysResponse
Retrieves a list of gateway summaries.
-
#list_skills(options = {}) ⇒ Types::ListSkillsResponse
Lists all enabled skills in a specific skill group.
.
-
#list_skills_store_categories(options = {}) ⇒ Types::ListSkillsStoreCategoriesResponse
Lists all categories in the Alexa skill store.
.
-
#list_skills_store_skills_by_category(options = {}) ⇒ Types::ListSkillsStoreSkillsByCategoryResponse
Lists all skills in the Alexa skill store by category.
.
-
#list_smart_home_appliances(options = {}) ⇒ Types::ListSmartHomeAppliancesResponse
Lists all of the smart home appliances associated with a room.
.
-
#list_tags(options = {}) ⇒ Types::ListTagsResponse
Lists all tags for the specified resource.
.
-
#put_conference_preference(options = {}) ⇒ Struct
Sets the conference preferences on a specific conference provider at the account level.
.
-
#put_invitation_configuration(options = {}) ⇒ Struct
Configures the email template for the user enrollment invitation with the specified attributes.
.
-
#put_room_skill_parameter(options = {}) ⇒ Struct
Updates room skill parameter details by room, skill, and parameter key ID.
-
#put_skill_authorization(options = {}) ⇒ Struct
Links a user's account to a third-party skill provider.
-
#register_avs_device(options = {}) ⇒ Types::RegisterAVSDeviceResponse
Registers an Alexa-enabled device built by an Original Equipment Manufacturer (OEM) using Alexa Voice Service (AVS).
.
-
#reject_skill(options = {}) ⇒ Struct
Disassociates a skill from the organization under a user's AWS account.
-
#resolve_room(options = {}) ⇒ Types::ResolveRoomResponse
Determines the details for the room from which a skill request was invoked.
-
#revoke_invitation(options = {}) ⇒ Struct
Revokes an invitation and invalidates the enrollment URL.
.
-
#search_address_books(options = {}) ⇒ Types::SearchAddressBooksResponse
Searches address books and lists the ones that meet a set of filter and sort criteria.
.
-
#search_contacts(options = {}) ⇒ Types::SearchContactsResponse
Searches contacts and lists the ones that meet a set of filter and sort criteria.
.
-
#search_devices(options = {}) ⇒ Types::SearchDevicesResponse
Searches devices and lists the ones that meet a set of filter criteria.
.
-
#search_network_profiles(options = {}) ⇒ Types::SearchNetworkProfilesResponse
Searches network profiles and lists the ones that meet a set of filter and sort criteria.
.
-
#search_profiles(options = {}) ⇒ Types::SearchProfilesResponse
Searches room profiles and lists the ones that meet a set of filter criteria.
.
-
#search_rooms(options = {}) ⇒ Types::SearchRoomsResponse
Searches rooms and lists the ones that meet a set of filter and sort criteria.
.
-
#search_skill_groups(options = {}) ⇒ Types::SearchSkillGroupsResponse
Searches skill groups and lists the ones that meet a set of filter and sort criteria.
.
-
#search_users(options = {}) ⇒ Types::SearchUsersResponse
Searches users and lists the ones that meet a set of filter and sort criteria.
.
-
#send_announcement(options = {}) ⇒ Types::SendAnnouncementResponse
Triggers an asynchronous flow to send text, SSML, or audio announcements to rooms that are identified by a search or filter.
-
#send_invitation(options = {}) ⇒ Struct
Sends an enrollment invitation email with a URL to a user.
-
#start_device_sync(options = {}) ⇒ Struct
Resets a device and its account to the known default settings.
-
#start_smart_home_appliance_discovery(options = {}) ⇒ Struct
Initiates the discovery of any smart home appliances associated with the room.
.
-
#tag_resource(options = {}) ⇒ Struct
Adds metadata tags to a specified resource.
.
-
#untag_resource(options = {}) ⇒ Struct
Removes metadata tags from a specified resource.
.
-
#update_address_book(options = {}) ⇒ Struct
Updates address book details by the address book ARN.
.
-
#update_business_report_schedule(options = {}) ⇒ Struct
Updates the configuration of the report delivery schedule with the specified schedule ARN.
.
-
#update_conference_provider(options = {}) ⇒ Struct
Updates an existing conference provider's settings.
.
-
#update_contact(options = {}) ⇒ Struct
Updates the contact details by the contact ARN.
.
-
#update_device(options = {}) ⇒ Struct
Updates the device name by device ARN.
.
-
#update_gateway(options = {}) ⇒ Struct
Updates the details of a gateway.
-
#update_gateway_group(options = {}) ⇒ Struct
Updates the details of a gateway group.
-
#update_network_profile(options = {}) ⇒ Struct
Updates a network profile by the network profile ARN.
.
-
#update_profile(options = {}) ⇒ Struct
Updates an existing room profile by room profile ARN.
.
-
#update_room(options = {}) ⇒ Struct
Updates room details by room ARN.
.
-
#update_skill_group(options = {}) ⇒ Struct
Updates skill group details by skill group ARN.
.
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::AlexaForBusiness::Client
Constructs an API client.
Instance Method Details
#approve_skill(options = {}) ⇒ Struct
Associates a skill with the organization under the customer's AWS account. If a skill is private, the user implicitly accepts access to this skill during enablement.
#associate_contact_with_address_book(options = {}) ⇒ Struct
Associates a contact with a given address book.
#associate_device_with_network_profile(options = {}) ⇒ Struct
Associates a device with the specified network profile.
#associate_device_with_room(options = {}) ⇒ Struct
Associates a device with a given room. This applies all the settings from the room profile to the device, and all the skills in any skill groups added to that room. This operation requires the device to be online, or else a manual sync is required.
#associate_skill_group_with_room(options = {}) ⇒ Struct
Associates a skill group with a given room. This enables all skills in the associated skill group on all devices in the room.
#associate_skill_with_skill_group(options = {}) ⇒ Struct
Associates a skill with a skill group.
#associate_skill_with_users(options = {}) ⇒ Struct
Makes a private skill available for enrolled users to enable on their devices.
#create_address_book(options = {}) ⇒ Types::CreateAddressBookResponse
Creates an address book with the specified details.
#create_business_report_schedule(options = {}) ⇒ Types::CreateBusinessReportScheduleResponse
Creates a recurring schedule for usage reports to deliver to the specified S3 location with a specified daily or weekly interval.
#create_conference_provider(options = {}) ⇒ Types::CreateConferenceProviderResponse
Adds a new conference provider under the user's AWS account.
#create_contact(options = {}) ⇒ Types::CreateContactResponse
Creates a contact with the specified details.
#create_gateway_group(options = {}) ⇒ Types::CreateGatewayGroupResponse
Creates a gateway group with the specified details.
#create_network_profile(options = {}) ⇒ Types::CreateNetworkProfileResponse
Creates a network profile with the specified details.
#create_profile(options = {}) ⇒ Types::CreateProfileResponse
Creates a new room profile with the specified details.
#create_room(options = {}) ⇒ Types::CreateRoomResponse
Creates a room with the specified details.
#create_skill_group(options = {}) ⇒ Types::CreateSkillGroupResponse
Creates a skill group with a specified name and description.
#create_user(options = {}) ⇒ Types::CreateUserResponse
Creates a user.
#delete_address_book(options = {}) ⇒ Struct
Deletes an address book by the address book ARN.
#delete_business_report_schedule(options = {}) ⇒ Struct
Deletes the recurring report delivery schedule with the specified schedule ARN.
#delete_conference_provider(options = {}) ⇒ Struct
Deletes a conference provider.
#delete_contact(options = {}) ⇒ Struct
Deletes a contact by the contact ARN.
#delete_device(options = {}) ⇒ Struct
Removes a device from Alexa For Business.
#delete_device_usage_data(options = {}) ⇒ Struct
When this action is called for a specified shared device, it allows authorized users to delete the device's entire previous history of voice input data and associated response data. This action can be called once every 24 hours for a specific shared device.
#delete_gateway_group(options = {}) ⇒ Struct
Deletes a gateway group.
#delete_network_profile(options = {}) ⇒ Struct
Deletes a network profile by the network profile ARN.
#delete_profile(options = {}) ⇒ Struct
Deletes a room profile by the profile ARN.
#delete_room(options = {}) ⇒ Struct
Deletes a room by the room ARN.
#delete_room_skill_parameter(options = {}) ⇒ Struct
Deletes room skill parameter details by room, skill, and parameter key ID.
#delete_skill_authorization(options = {}) ⇒ Struct
Unlinks a third-party account from a skill.
#delete_skill_group(options = {}) ⇒ Struct
Deletes a skill group by skill group ARN.
#delete_user(options = {}) ⇒ Struct
Deletes a specified user by user ARN and enrollment ARN.
#disassociate_contact_from_address_book(options = {}) ⇒ Struct
Disassociates a contact from a given address book.
#disassociate_device_from_room(options = {}) ⇒ Struct
Disassociates a device from its current room. The device continues to be connected to the Wi-Fi network and is still registered to the account. The device settings and skills are removed from the room.
#disassociate_skill_from_skill_group(options = {}) ⇒ Struct
Disassociates a skill from a skill group.
#disassociate_skill_from_users(options = {}) ⇒ Struct
Makes a private skill unavailable for enrolled users and prevents them from enabling it on their devices.
#disassociate_skill_group_from_room(options = {}) ⇒ Struct
Disassociates a skill group from a specified room. This disables all skills in the skill group on all devices in the room.
#forget_smart_home_appliances(options = {}) ⇒ Struct
Forgets smart home appliances associated to a room.
#get_address_book(options = {}) ⇒ Types::GetAddressBookResponse
Gets address the book details by the address book ARN.
#get_conference_preference(options = {}) ⇒ Types::GetConferencePreferenceResponse
Retrieves the existing conference preferences.
#get_conference_provider(options = {}) ⇒ Types::GetConferenceProviderResponse
Gets details about a specific conference provider.
#get_contact(options = {}) ⇒ Types::GetContactResponse
Gets the contact details by the contact ARN.
#get_device(options = {}) ⇒ Types::GetDeviceResponse
Gets the details of a device by device ARN.
#get_gateway(options = {}) ⇒ Types::GetGatewayResponse
Retrieves the details of a gateway.
#get_gateway_group(options = {}) ⇒ Types::GetGatewayGroupResponse
Retrieves the details of a gateway group.
#get_invitation_configuration(options = {}) ⇒ Types::GetInvitationConfigurationResponse
Retrieves the configured values for the user enrollment invitation email template.
#get_network_profile(options = {}) ⇒ Types::GetNetworkProfileResponse
Gets the network profile details by the network profile ARN.
#get_profile(options = {}) ⇒ Types::GetProfileResponse
Gets the details of a room profile by profile ARN.
#get_room(options = {}) ⇒ Types::GetRoomResponse
Gets room details by room ARN.
#get_room_skill_parameter(options = {}) ⇒ Types::GetRoomSkillParameterResponse
Gets room skill parameter details by room, skill, and parameter key ARN.
#get_skill_group(options = {}) ⇒ Types::GetSkillGroupResponse
Gets skill group details by skill group ARN.
#list_business_report_schedules(options = {}) ⇒ Types::ListBusinessReportSchedulesResponse
Lists the details of the schedules that a user configured. A download URL of the report associated with each schedule is returned every time this action is called. A new download URL is returned each time, and is valid for 24 hours.
#list_conference_providers(options = {}) ⇒ Types::ListConferenceProvidersResponse
Lists conference providers under a specific AWS account.
#list_device_events(options = {}) ⇒ Types::ListDeviceEventsResponse
Lists the device event history, including device connection status, for up to 30 days.
#list_gateway_groups(options = {}) ⇒ Types::ListGatewayGroupsResponse
Retrieves a list of gateway group summaries. Use GetGatewayGroup to retrieve details of a specific gateway group.
#list_gateways(options = {}) ⇒ Types::ListGatewaysResponse
Retrieves a list of gateway summaries. Use GetGateway to retrieve details of a specific gateway. An optional gateway group ARN can be provided to only retrieve gateway summaries of gateways that are associated with that gateway group ARN.
#list_skills(options = {}) ⇒ Types::ListSkillsResponse
Lists all enabled skills in a specific skill group.
#list_skills_store_categories(options = {}) ⇒ Types::ListSkillsStoreCategoriesResponse
Lists all categories in the Alexa skill store.
#list_skills_store_skills_by_category(options = {}) ⇒ Types::ListSkillsStoreSkillsByCategoryResponse
Lists all skills in the Alexa skill store by category.
#list_smart_home_appliances(options = {}) ⇒ Types::ListSmartHomeAppliancesResponse
Lists all of the smart home appliances associated with a room.
#list_tags(options = {}) ⇒ Types::ListTagsResponse
Lists all tags for the specified resource.
#put_conference_preference(options = {}) ⇒ Struct
Sets the conference preferences on a specific conference provider at the account level.
#put_invitation_configuration(options = {}) ⇒ Struct
Configures the email template for the user enrollment invitation with the specified attributes.
#put_room_skill_parameter(options = {}) ⇒ Struct
Updates room skill parameter details by room, skill, and parameter key ID. Not all skills have a room skill parameter.
#put_skill_authorization(options = {}) ⇒ Struct
Links a user's account to a third-party skill provider. If this API operation is called by an assumed IAM role, the skill being linked must be a private skill. Also, the skill must be owned by the AWS account that assumed the IAM role.
#register_avs_device(options = {}) ⇒ Types::RegisterAVSDeviceResponse
Registers an Alexa-enabled device built by an Original Equipment Manufacturer (OEM) using Alexa Voice Service (AVS).
#reject_skill(options = {}) ⇒ Struct
Disassociates a skill from the organization under a user's AWS account. If the skill is a private skill, it moves to an AcceptStatus of PENDING. Any private or public skill that is rejected can be added later by calling the ApproveSkill API.
#resolve_room(options = {}) ⇒ Types::ResolveRoomResponse
Determines the details for the room from which a skill request was invoked. This operation is used by skill developers.
#revoke_invitation(options = {}) ⇒ Struct
Revokes an invitation and invalidates the enrollment URL.
#search_address_books(options = {}) ⇒ Types::SearchAddressBooksResponse
Searches address books and lists the ones that meet a set of filter and sort criteria.
#search_contacts(options = {}) ⇒ Types::SearchContactsResponse
Searches contacts and lists the ones that meet a set of filter and sort criteria.
#search_devices(options = {}) ⇒ Types::SearchDevicesResponse
Searches devices and lists the ones that meet a set of filter criteria.
#search_network_profiles(options = {}) ⇒ Types::SearchNetworkProfilesResponse
Searches network profiles and lists the ones that meet a set of filter and sort criteria.
#search_profiles(options = {}) ⇒ Types::SearchProfilesResponse
Searches room profiles and lists the ones that meet a set of filter criteria.
#search_rooms(options = {}) ⇒ Types::SearchRoomsResponse
Searches rooms and lists the ones that meet a set of filter and sort criteria.
#search_skill_groups(options = {}) ⇒ Types::SearchSkillGroupsResponse
Searches skill groups and lists the ones that meet a set of filter and sort criteria.
#search_users(options = {}) ⇒ Types::SearchUsersResponse
Searches users and lists the ones that meet a set of filter and sort criteria.
#send_announcement(options = {}) ⇒ Types::SendAnnouncementResponse
Triggers an asynchronous flow to send text, SSML, or audio announcements to rooms that are identified by a search or filter.
#send_invitation(options = {}) ⇒ Struct
Sends an enrollment invitation email with a URL to a user. The URL is valid for 30 days or until you call this operation again, whichever comes first.
#start_device_sync(options = {}) ⇒ Struct
Resets a device and its account to the known default settings. This clears all information and settings set by previous users in the following ways:
-
Bluetooth - This unpairs all bluetooth devices paired with your echo device.
-
Volume - This resets the echo device's volume to the default value.
-
Notifications - This clears all notifications from your echo device.
-
Lists - This clears all to-do items from your echo device.
-
Settings - This internally syncs the room's profile (if the device is assigned to a room), contacts, address books, delegation access for account linking, and communications (if enabled on the room profile).
#start_smart_home_appliance_discovery(options = {}) ⇒ Struct
Initiates the discovery of any smart home appliances associated with the room.
#tag_resource(options = {}) ⇒ Struct
Adds metadata tags to a specified resource.
#untag_resource(options = {}) ⇒ Struct
Removes metadata tags from a specified resource.
#update_address_book(options = {}) ⇒ Struct
Updates address book details by the address book ARN.
#update_business_report_schedule(options = {}) ⇒ Struct
Updates the configuration of the report delivery schedule with the specified schedule ARN.
#update_conference_provider(options = {}) ⇒ Struct
Updates an existing conference provider's settings.
#update_contact(options = {}) ⇒ Struct
Updates the contact details by the contact ARN.
#update_device(options = {}) ⇒ Struct
Updates the device name by device ARN.
#update_gateway(options = {}) ⇒ Struct
Updates the details of a gateway. If any optional field is not provided, the existing corresponding value is left unmodified.
#update_gateway_group(options = {}) ⇒ Struct
Updates the details of a gateway group. If any optional field is not provided, the existing corresponding value is left unmodified.
#update_network_profile(options = {}) ⇒ Struct
Updates a network profile by the network profile ARN.
#update_profile(options = {}) ⇒ Struct
Updates an existing room profile by room profile ARN.
#update_room(options = {}) ⇒ Struct
Updates room details by room ARN.
#update_skill_group(options = {}) ⇒ Struct
Updates skill group details by skill group ARN.
#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: |
---|