Pinpoint.Client.
remove_attributes
(**kwargs)¶Removes one or more attributes, of the same attribute type, from all the endpoints that are associated with an application.
See also: AWS API Documentation
Request Syntax
response = client.remove_attributes(
ApplicationId='string',
AttributeType='string',
UpdateAttributesRequest={
'Blacklist': [
'string',
]
}
)
[REQUIRED]
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
[REQUIRED]
The type of attribute or attributes to remove. Valid values are:
[REQUIRED]
Specifies one or more attributes to remove from all the endpoints that are associated with an application.
An array of the attributes to remove from all the endpoints that are associated with the application. The array can specify the complete, exact name of each attribute to remove or it can specify a glob pattern that an attribute name must match in order for the attribute to be removed.
dict
Response Syntax
{
'AttributesResource': {
'ApplicationId': 'string',
'AttributeType': 'string',
'Attributes': [
'string',
]
}
}
Response Structure
(dict) --
The request succeeded.
AttributesResource (dict) --
Provides information about the type and the names of attributes that were removed from all the endpoints that are associated with an application.
ApplicationId (string) --
The unique identifier for the application.
AttributeType (string) --
The type of attribute or attributes that were removed from the endpoints. Valid values are:
Attributes (list) --
An array that specifies the names of the attributes that were removed from the endpoints.
Exceptions
Pinpoint.Client.exceptions.BadRequestException
Pinpoint.Client.exceptions.InternalServerErrorException
Pinpoint.Client.exceptions.PayloadTooLargeException
Pinpoint.Client.exceptions.ForbiddenException
Pinpoint.Client.exceptions.NotFoundException
Pinpoint.Client.exceptions.MethodNotAllowedException
Pinpoint.Client.exceptions.TooManyRequestsException