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 segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.
Synopsis
- data UpdateSegment = UpdateSegment' {}
- newUpdateSegment :: Text -> Text -> WriteSegmentRequest -> UpdateSegment
- updateSegment_segmentId :: Lens' UpdateSegment Text
- updateSegment_applicationId :: Lens' UpdateSegment Text
- updateSegment_writeSegmentRequest :: Lens' UpdateSegment WriteSegmentRequest
- data UpdateSegmentResponse = UpdateSegmentResponse' {}
- newUpdateSegmentResponse :: Int -> SegmentResponse -> UpdateSegmentResponse
- updateSegmentResponse_httpStatus :: Lens' UpdateSegmentResponse Int
- updateSegmentResponse_segmentResponse :: Lens' UpdateSegmentResponse SegmentResponse
Creating a Request
data UpdateSegment Source #
See: newUpdateSegment
smart constructor.
UpdateSegment' | |
|
Instances
:: Text | |
-> Text | |
-> WriteSegmentRequest | |
-> UpdateSegment |
Create a value of UpdateSegment
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:segmentId:UpdateSegment'
, updateSegment_segmentId
- The unique identifier for the segment.
$sel:applicationId:UpdateSegment'
, updateSegment_applicationId
- The unique identifier for the application. This identifier is displayed
as the Project ID on the Amazon Pinpoint console.
$sel:writeSegmentRequest:UpdateSegment'
, updateSegment_writeSegmentRequest
- Undocumented member.
Request Lenses
updateSegment_segmentId :: Lens' UpdateSegment Text Source #
The unique identifier for the segment.
updateSegment_applicationId :: Lens' UpdateSegment Text Source #
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
updateSegment_writeSegmentRequest :: Lens' UpdateSegment WriteSegmentRequest Source #
Undocumented member.
Destructuring the Response
data UpdateSegmentResponse Source #
See: newUpdateSegmentResponse
smart constructor.
UpdateSegmentResponse' | |
|
Instances
newUpdateSegmentResponse Source #
Create a value of UpdateSegmentResponse
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:UpdateSegmentResponse'
, updateSegmentResponse_httpStatus
- The response's http status code.
$sel:segmentResponse:UpdateSegmentResponse'
, updateSegmentResponse_segmentResponse
- Undocumented member.
Response Lenses
updateSegmentResponse_httpStatus :: Lens' UpdateSegmentResponse Int Source #
The response's http status code.
updateSegmentResponse_segmentResponse :: Lens' UpdateSegmentResponse SegmentResponse Source #
Undocumented member.