remove_attributes
async
¶
remove_attributes(
application_id: __string,
attribute_type: __string,
*,
config_overrides: Optional[AsyncPinpointClientConfig] = None,
update_attributes_request: Optional[UpdateAttributesRequest] = None,
) -> RemoveAttributesResponse
Removes one or more custom attributes, of the same attribute type, from the application. Existing endpoints still have the attributes but Amazon Pinpoint will stop capturing new or changed values for these attributes.
Parameters:
-
application_id(__string) –The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
-
attribute_type(__string) –The type of attribute or attributes to remove. Valid values are:
endpoint-custom-attributes - Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.
endpoint-metric-attributes - Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.
endpoint-user-attributes - Custom attributes that describe users, such as first name, last name, and age.
Raises:
-
BadRequestException–Provides information about an API request or response.
-
ForbiddenException–Provides information about an API request or response.
-
InternalServerErrorException–Provides information about an API request or response.
-
MethodNotAllowedException–Provides information about an API request or response.
-
NotFoundException–Provides information about an API request or response.
-
PayloadTooLargeException–Provides information about an API request or response.
-
TooManyRequestsException–Provides information about an API request or response.
-
UnknownServiceError–The service returned an error code this client does not model.