Interface PersonalizeEventsClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface PersonalizeEventsClient extends AwsClient
Service client for accessing Amazon Personalize Events. This can be created using the staticbuilder()method.Amazon Personalize can consume real-time user event data, such as stream or click data, and use it for model training either alone or combined with historical data. For more information see Recording item interaction events.
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static PersonalizeEventsClientBuilderbuilder()Create a builder that can be used to configure and create aPersonalizeEventsClient.static PersonalizeEventsClientcreate()Create aPersonalizeEventsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default PutActionInteractionsResponseputActionInteractions(Consumer<PutActionInteractionsRequest.Builder> putActionInteractionsRequest)Records action interaction event data.default PutActionInteractionsResponseputActionInteractions(PutActionInteractionsRequest putActionInteractionsRequest)Records action interaction event data.default PutActionsResponseputActions(Consumer<PutActionsRequest.Builder> putActionsRequest)Adds one or more actions to an Actions dataset.default PutActionsResponseputActions(PutActionsRequest putActionsRequest)Adds one or more actions to an Actions dataset.default PutEventsResponseputEvents(Consumer<PutEventsRequest.Builder> putEventsRequest)Records item interaction event data.default PutEventsResponseputEvents(PutEventsRequest putEventsRequest)Records item interaction event data.default PutItemsResponseputItems(Consumer<PutItemsRequest.Builder> putItemsRequest)Adds one or more items to an Items dataset.default PutItemsResponseputItems(PutItemsRequest putItemsRequest)Adds one or more items to an Items dataset.default PutUsersResponseputUsers(Consumer<PutUsersRequest.Builder> putUsersRequest)Adds one or more users to a Users dataset.default PutUsersResponseputUsers(PutUsersRequest putUsersRequest)Adds one or more users to a Users dataset.default PersonalizeEventsServiceClientConfigurationserviceClientConfiguration()static ServiceMetadataserviceMetadata()-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
putActionInteractions
default PutActionInteractionsResponse putActionInteractions(PutActionInteractionsRequest putActionInteractionsRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Records action interaction event data. An action interaction event is an interaction between a user and an action. For example, a user taking an action, such a enrolling in a membership program or downloading your app.
For more information about recording action interactions, see Recording action interaction events. For more information about actions in an Actions dataset, see Actions dataset.
- Parameters:
putActionInteractionsRequest-- Returns:
- Result of the PutActionInteractions operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putActionInteractions
default PutActionInteractionsResponse putActionInteractions(Consumer<PutActionInteractionsRequest.Builder> putActionInteractionsRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Records action interaction event data. An action interaction event is an interaction between a user and an action. For example, a user taking an action, such a enrolling in a membership program or downloading your app.
For more information about recording action interactions, see Recording action interaction events. For more information about actions in an Actions dataset, see Actions dataset.
This is a convenience which creates an instance of the
PutActionInteractionsRequest.Builderavoiding the need to create one manually viaPutActionInteractionsRequest.builder()- Parameters:
putActionInteractionsRequest- AConsumerthat will call methods onPutActionInteractionsRequest.Builderto create a request.- Returns:
- Result of the PutActionInteractions operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putActions
default PutActionsResponse putActions(PutActionsRequest putActionsRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Adds one or more actions to an Actions dataset. For more information see Importing actions individually.
- Parameters:
putActionsRequest-- Returns:
- Result of the PutActions operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putActions
default PutActionsResponse putActions(Consumer<PutActionsRequest.Builder> putActionsRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Adds one or more actions to an Actions dataset. For more information see Importing actions individually.
This is a convenience which creates an instance of the
PutActionsRequest.Builderavoiding the need to create one manually viaPutActionsRequest.builder()- Parameters:
putActionsRequest- AConsumerthat will call methods onPutActionsRequest.Builderto create a request.- Returns:
- Result of the PutActions operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putEvents
default PutEventsResponse putEvents(PutEventsRequest putEventsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, PersonalizeEventsException
Records item interaction event data. For more information see Recording item interaction events.
- Parameters:
putEventsRequest-- Returns:
- Result of the PutEvents operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putEvents
default PutEventsResponse putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) throws InvalidInputException, AwsServiceException, SdkClientException, PersonalizeEventsException
Records item interaction event data. For more information see Recording item interaction events.
This is a convenience which creates an instance of the
PutEventsRequest.Builderavoiding the need to create one manually viaPutEventsRequest.builder()- Parameters:
putEventsRequest- AConsumerthat will call methods onPutEventsRequest.Builderto create a request.- Returns:
- Result of the PutEvents operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putItems
default PutItemsResponse putItems(PutItemsRequest putItemsRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Adds one or more items to an Items dataset. For more information see Importing items individually.
- Parameters:
putItemsRequest-- Returns:
- Result of the PutItems operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putItems
default PutItemsResponse putItems(Consumer<PutItemsRequest.Builder> putItemsRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Adds one or more items to an Items dataset. For more information see Importing items individually.
This is a convenience which creates an instance of the
PutItemsRequest.Builderavoiding the need to create one manually viaPutItemsRequest.builder()- Parameters:
putItemsRequest- AConsumerthat will call methods onPutItemsRequest.Builderto create a request.- Returns:
- Result of the PutItems operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putUsers
default PutUsersResponse putUsers(PutUsersRequest putUsersRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Adds one or more users to a Users dataset. For more information see Importing users individually.
- Parameters:
putUsersRequest-- Returns:
- Result of the PutUsers operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putUsers
default PutUsersResponse putUsers(Consumer<PutUsersRequest.Builder> putUsersRequest) throws InvalidInputException, ResourceNotFoundException, ResourceInUseException, AwsServiceException, SdkClientException, PersonalizeEventsException
Adds one or more users to a Users dataset. For more information see Importing users individually.
This is a convenience which creates an instance of the
PutUsersRequest.Builderavoiding the need to create one manually viaPutUsersRequest.builder()- Parameters:
putUsersRequest- AConsumerthat will call methods onPutUsersRequest.Builderto create a request.- Returns:
- Result of the PutUsers operation returned by the service.
- Throws:
InvalidInputException- Provide a valid value for the field or parameter.ResourceNotFoundException- Could not find the specified resource.ResourceInUseException- The specified resource is in use.SdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.PersonalizeEventsException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
create
static PersonalizeEventsClient create()
Create aPersonalizeEventsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static PersonalizeEventsClientBuilder builder()
Create a builder that can be used to configure and create aPersonalizeEventsClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default PersonalizeEventsServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-