R/personalize_service.R

Defines functions service personalize

Documented in personalize

# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common new_handlers new_service set_config merge_config
NULL

#' Amazon Personalize
#'
#' @description
#' Amazon Personalize is a machine learning service that makes it easy to
#' add individualized recommendations to customers.
#'
#' @param
#' config
#' Optional configuration of credentials, endpoint, and/or region.
#' \itemize{
#' \item{\strong{credentials}: \itemize{
#' \item{\strong{creds}: \itemize{
#' \item{\strong{access_key_id}: AWS access key ID}
#' \item{\strong{secret_access_key}: AWS secret access key}
#' \item{\strong{session_token}: AWS temporary session token}
#' }}
#' \item{\strong{profile}: The name of a profile to use. If not given, then the default profile is used.}
#' \item{\strong{anonymous}: Set anonymous credentials.}
#' }}
#' \item{\strong{endpoint}: The complete URL to use for the constructed client.}
#' \item{\strong{region}: The AWS Region used in instantiating the client.}
#' \item{\strong{close_connection}: Immediately close all HTTP connections.}
#' \item{\strong{timeout}: The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.}
#' \item{\strong{s3_force_path_style}: Set this to `true` to force the request to use path-style addressing, i.e. `http://s3.amazonaws.com/BUCKET/KEY`.}
#' \item{\strong{sts_regional_endpoint}: Set sts regional endpoint resolver to regional or legacy \url{https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html}}
#' }
#' @param
#' credentials
#' Optional credentials shorthand for the config parameter
#' \itemize{
#' \item{\strong{creds}: \itemize{
#' \item{\strong{access_key_id}: AWS access key ID}
#' \item{\strong{secret_access_key}: AWS secret access key}
#' \item{\strong{session_token}: AWS temporary session token}
#' }}
#' \item{\strong{profile}: The name of a profile to use. If not given, then the default profile is used.}
#' \item{\strong{anonymous}: Set anonymous credentials.}
#' }
#' @param
#' endpoint
#' Optional shorthand for complete URL to use for the constructed client.
#' @param
#' region
#' Optional shorthand for AWS Region used in instantiating the client.
#'
#' @section Service syntax:
#' ```
#' svc <- personalize(
#'   config = list(
#'     credentials = list(
#'       creds = list(
#'         access_key_id = "string",
#'         secret_access_key = "string",
#'         session_token = "string"
#'       ),
#'       profile = "string",
#'       anonymous = "logical"
#'     ),
#'     endpoint = "string",
#'     region = "string",
#'     close_connection = "logical",
#'     timeout = "numeric",
#'     s3_force_path_style = "logical",
#'     sts_regional_endpoint = "string"
#'   ),
#'   credentials = list(
#'     creds = list(
#'       access_key_id = "string",
#'       secret_access_key = "string",
#'       session_token = "string"
#'     ),
#'     profile = "string",
#'     anonymous = "logical"
#'   ),
#'   endpoint = "string",
#'   region = "string"
#' )
#' ```
#'
#' @examples
#' \dontrun{
#' svc <- personalize()
#' svc$create_batch_inference_job(
#'   Foo = 123
#' )
#' }
#'
#' @section Operations:
#' \tabular{ll}{
#'  \link[=personalize_create_batch_inference_job]{create_batch_inference_job} \tab Generates batch recommendations based on a list of items or users stored in Amazon S3 and exports the recommendations to an Amazon S3 bucket\cr
#'  \link[=personalize_create_batch_segment_job]{create_batch_segment_job} \tab Creates a batch segment job\cr
#'  \link[=personalize_create_campaign]{create_campaign} \tab You incur campaign costs while it is active\cr
#'  \link[=personalize_create_data_deletion_job]{create_data_deletion_job} \tab Creates a batch job that deletes all references to specific users from an Amazon Personalize dataset group in batches\cr
#'  \link[=personalize_create_dataset]{create_dataset} \tab Creates an empty dataset and adds it to the specified dataset group\cr
#'  \link[=personalize_create_dataset_export_job]{create_dataset_export_job} \tab Creates a job that exports data from your dataset to an Amazon S3 bucket\cr
#'  \link[=personalize_create_dataset_group]{create_dataset_group} \tab Creates an empty dataset group\cr
#'  \link[=personalize_create_dataset_import_job]{create_dataset_import_job} \tab Creates a job that imports training data from your data source (an Amazon S3 bucket) to an Amazon Personalize dataset\cr
#'  \link[=personalize_create_event_tracker]{create_event_tracker} \tab Creates an event tracker that you use when adding event data to a specified dataset group using the PutEvents API\cr
#'  \link[=personalize_create_filter]{create_filter} \tab Creates a recommendation filter\cr
#'  \link[=personalize_create_metric_attribution]{create_metric_attribution} \tab Creates a metric attribution\cr
#'  \link[=personalize_create_recommender]{create_recommender} \tab Creates a recommender with the recipe (a Domain dataset group use case) you specify\cr
#'  \link[=personalize_create_schema]{create_schema} \tab Creates an Amazon Personalize schema from the specified schema string\cr
#'  \link[=personalize_create_solution]{create_solution} \tab By default, all new solutions use automatic training\cr
#'  \link[=personalize_create_solution_version]{create_solution_version} \tab Trains or retrains an active solution in a Custom dataset group\cr
#'  \link[=personalize_delete_campaign]{delete_campaign} \tab Removes a campaign by deleting the solution deployment\cr
#'  \link[=personalize_delete_dataset]{delete_dataset} \tab Deletes a dataset\cr
#'  \link[=personalize_delete_dataset_group]{delete_dataset_group} \tab Deletes a dataset group\cr
#'  \link[=personalize_delete_event_tracker]{delete_event_tracker} \tab Deletes the event tracker\cr
#'  \link[=personalize_delete_filter]{delete_filter} \tab Deletes a filter\cr
#'  \link[=personalize_delete_metric_attribution]{delete_metric_attribution} \tab Deletes a metric attribution\cr
#'  \link[=personalize_delete_recommender]{delete_recommender} \tab Deactivates and removes a recommender\cr
#'  \link[=personalize_delete_schema]{delete_schema} \tab Deletes a schema\cr
#'  \link[=personalize_delete_solution]{delete_solution} \tab Deletes all versions of a solution and the Solution object itself\cr
#'  \link[=personalize_describe_algorithm]{describe_algorithm} \tab Describes the given algorithm\cr
#'  \link[=personalize_describe_batch_inference_job]{describe_batch_inference_job} \tab Gets the properties of a batch inference job including name, Amazon Resource Name (ARN), status, input and output configurations, and the ARN of the solution version used to generate the recommendations\cr
#'  \link[=personalize_describe_batch_segment_job]{describe_batch_segment_job} \tab Gets the properties of a batch segment job including name, Amazon Resource Name (ARN), status, input and output configurations, and the ARN of the solution version used to generate segments\cr
#'  \link[=personalize_describe_campaign]{describe_campaign} \tab Describes the given campaign, including its status\cr
#'  \link[=personalize_describe_data_deletion_job]{describe_data_deletion_job} \tab Describes the data deletion job created by CreateDataDeletionJob, including the job status\cr
#'  \link[=personalize_describe_dataset]{describe_dataset} \tab Describes the given dataset\cr
#'  \link[=personalize_describe_dataset_export_job]{describe_dataset_export_job} \tab Describes the dataset export job created by CreateDatasetExportJob, including the export job status\cr
#'  \link[=personalize_describe_dataset_group]{describe_dataset_group} \tab Describes the given dataset group\cr
#'  \link[=personalize_describe_dataset_import_job]{describe_dataset_import_job} \tab Describes the dataset import job created by CreateDatasetImportJob, including the import job status\cr
#'  \link[=personalize_describe_event_tracker]{describe_event_tracker} \tab Describes an event tracker\cr
#'  \link[=personalize_describe_feature_transformation]{describe_feature_transformation} \tab Describes the given feature transformation\cr
#'  \link[=personalize_describe_filter]{describe_filter} \tab Describes a filter's properties\cr
#'  \link[=personalize_describe_metric_attribution]{describe_metric_attribution} \tab Describes a metric attribution\cr
#'  \link[=personalize_describe_recipe]{describe_recipe} \tab Describes a recipe\cr
#'  \link[=personalize_describe_recommender]{describe_recommender} \tab Describes the given recommender, including its status\cr
#'  \link[=personalize_describe_schema]{describe_schema} \tab Describes a schema\cr
#'  \link[=personalize_describe_solution]{describe_solution} \tab Describes a solution\cr
#'  \link[=personalize_describe_solution_version]{describe_solution_version} \tab Describes a specific version of a solution\cr
#'  \link[=personalize_get_solution_metrics]{get_solution_metrics} \tab Gets the metrics for the specified solution version\cr
#'  \link[=personalize_list_batch_inference_jobs]{list_batch_inference_jobs} \tab Gets a list of the batch inference jobs that have been performed off of a solution version\cr
#'  \link[=personalize_list_batch_segment_jobs]{list_batch_segment_jobs} \tab Gets a list of the batch segment jobs that have been performed off of a solution version that you specify\cr
#'  \link[=personalize_list_campaigns]{list_campaigns} \tab Returns a list of campaigns that use the given solution\cr
#'  \link[=personalize_list_data_deletion_jobs]{list_data_deletion_jobs} \tab Returns a list of data deletion jobs for a dataset group ordered by creation time, with the most recent first\cr
#'  \link[=personalize_list_dataset_export_jobs]{list_dataset_export_jobs} \tab Returns a list of dataset export jobs that use the given dataset\cr
#'  \link[=personalize_list_dataset_groups]{list_dataset_groups} \tab Returns a list of dataset groups\cr
#'  \link[=personalize_list_dataset_import_jobs]{list_dataset_import_jobs} \tab Returns a list of dataset import jobs that use the given dataset\cr
#'  \link[=personalize_list_datasets]{list_datasets} \tab Returns the list of datasets contained in the given dataset group\cr
#'  \link[=personalize_list_event_trackers]{list_event_trackers} \tab Returns the list of event trackers associated with the account\cr
#'  \link[=personalize_list_filters]{list_filters} \tab Lists all filters that belong to a given dataset group\cr
#'  \link[=personalize_list_metric_attribution_metrics]{list_metric_attribution_metrics} \tab Lists the metrics for the metric attribution\cr
#'  \link[=personalize_list_metric_attributions]{list_metric_attributions} \tab Lists metric attributions\cr
#'  \link[=personalize_list_recipes]{list_recipes} \tab Returns a list of available recipes\cr
#'  \link[=personalize_list_recommenders]{list_recommenders} \tab Returns a list of recommenders in a given Domain dataset group\cr
#'  \link[=personalize_list_schemas]{list_schemas} \tab Returns the list of schemas associated with the account\cr
#'  \link[=personalize_list_solutions]{list_solutions} \tab Returns a list of solutions in a given dataset group\cr
#'  \link[=personalize_list_solution_versions]{list_solution_versions} \tab Returns a list of solution versions for the given solution\cr
#'  \link[=personalize_list_tags_for_resource]{list_tags_for_resource} \tab Get a list of tags attached to a resource\cr
#'  \link[=personalize_start_recommender]{start_recommender} \tab Starts a recommender that is INACTIVE\cr
#'  \link[=personalize_stop_recommender]{stop_recommender} \tab Stops a recommender that is ACTIVE\cr
#'  \link[=personalize_stop_solution_version_creation]{stop_solution_version_creation} \tab Stops creating a solution version that is in a state of CREATE_PENDING or CREATE IN_PROGRESS\cr
#'  \link[=personalize_tag_resource]{tag_resource} \tab Add a list of tags to a resource\cr
#'  \link[=personalize_untag_resource]{untag_resource} \tab Removes the specified tags that are attached to a resource\cr
#'  \link[=personalize_update_campaign]{update_campaign} \tab Updates a campaign to deploy a retrained solution version with an existing campaign, change your campaign's minProvisionedTPS, or modify your campaign's configuration\cr
#'  \link[=personalize_update_dataset]{update_dataset} \tab Update a dataset to replace its schema with a new or existing one\cr
#'  \link[=personalize_update_metric_attribution]{update_metric_attribution} \tab Updates a metric attribution\cr
#'  \link[=personalize_update_recommender]{update_recommender} \tab Updates the recommender to modify the recommender configuration\cr
#'  \link[=personalize_update_solution]{update_solution} \tab Updates an Amazon Personalize solution to use a different automatic training configuration
#' }
#'
#' @return
#' A client for the service. You can call the service's operations using
#' syntax like `svc$operation(...)`, where `svc` is the name you've assigned
#' to the client. The available operations are listed in the
#' Operations section.
#'
#' @rdname personalize
#' @export
personalize <- function(config = list(), credentials = list(), endpoint = NULL, region = NULL) {
  config <- merge_config(
    config,
    list(
      credentials = credentials,
      endpoint = endpoint,
      region = region
    )
  )
  svc <- .personalize$operations
  svc <- set_config(svc, config)
  return(svc)
}

# Private API objects: metadata, handlers, interfaces, etc.
.personalize <- list()

.personalize$operations <- list()

.personalize$metadata <- list(
  service_name = "personalize",
  endpoints = list("*" = list(endpoint = "personalize.{region}.amazonaws.com", global = FALSE), "cn-*" = list(endpoint = "personalize.{region}.amazonaws.com.cn", global = FALSE), "eu-isoe-*" = list(endpoint = "personalize.{region}.cloud.adc-e.uk", global = FALSE), "us-iso-*" = list(endpoint = "personalize.{region}.c2s.ic.gov", global = FALSE), "us-isob-*" = list(endpoint = "personalize.{region}.sc2s.sgov.gov", global = FALSE), "us-isof-*" = list(endpoint = "personalize.{region}.csp.hci.ic.gov", global = FALSE)),
  service_id = "Personalize",
  api_version = "2018-05-22",
  signing_name = "personalize",
  json_version = "1.1",
  target_prefix = "AmazonPersonalize"
)

.personalize$service <- function(config = list(), op = NULL) {
  handlers <- new_handlers("jsonrpc", "v4")
  new_service(.personalize$metadata, handlers, config, op)
}

Try the paws.machine.learning package in your browser

Any scripts or data that you put into this service are public.

paws.machine.learning documentation built on Sept. 12, 2024, 6:23 a.m.