Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new endpoint for an application or updates the settings and attributes of an existing endpoint for an application. You can also use this operation to define custom attributes for an endpoint. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values.
Synopsis
- data UpdateEndpoint = UpdateEndpoint' {}
- newUpdateEndpoint :: Text -> Text -> EndpointRequest -> UpdateEndpoint
- updateEndpoint_applicationId :: Lens' UpdateEndpoint Text
- updateEndpoint_endpointId :: Lens' UpdateEndpoint Text
- updateEndpoint_endpointRequest :: Lens' UpdateEndpoint EndpointRequest
- data UpdateEndpointResponse = UpdateEndpointResponse' {}
- newUpdateEndpointResponse :: Int -> MessageBody -> UpdateEndpointResponse
- updateEndpointResponse_httpStatus :: Lens' UpdateEndpointResponse Int
- updateEndpointResponse_messageBody :: Lens' UpdateEndpointResponse MessageBody
Creating a Request
data UpdateEndpoint Source #
See: newUpdateEndpoint
smart constructor.
UpdateEndpoint' | |
|
Instances
:: Text | |
-> Text | |
-> EndpointRequest | |
-> UpdateEndpoint |
Create a value of UpdateEndpoint
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:applicationId:UpdateEndpoint'
, updateEndpoint_applicationId
- The unique identifier for the application. This identifier is displayed
as the Project ID on the Amazon Pinpoint console.
$sel:endpointId:UpdateEndpoint'
, updateEndpoint_endpointId
- The unique identifier for the endpoint.
$sel:endpointRequest:UpdateEndpoint'
, updateEndpoint_endpointRequest
- Undocumented member.
Request Lenses
updateEndpoint_applicationId :: Lens' UpdateEndpoint Text Source #
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
updateEndpoint_endpointId :: Lens' UpdateEndpoint Text Source #
The unique identifier for the endpoint.
updateEndpoint_endpointRequest :: Lens' UpdateEndpoint EndpointRequest Source #
Undocumented member.
Destructuring the Response
data UpdateEndpointResponse Source #
See: newUpdateEndpointResponse
smart constructor.
UpdateEndpointResponse' | |
|
Instances
newUpdateEndpointResponse Source #
:: Int | |
-> MessageBody | |
-> UpdateEndpointResponse |
Create a value of UpdateEndpointResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateEndpointResponse'
, updateEndpointResponse_httpStatus
- The response's http status code.
$sel:messageBody:UpdateEndpointResponse'
, updateEndpointResponse_messageBody
- Undocumented member.
Response Lenses
updateEndpointResponse_httpStatus :: Lens' UpdateEndpointResponse Int Source #
The response's http status code.
updateEndpointResponse_messageBody :: Lens' UpdateEndpointResponse MessageBody Source #
Undocumented member.