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 |
Deletes a segment from an application.
Synopsis
- data DeleteSegment = DeleteSegment' {
- segmentId :: Text
- applicationId :: Text
- newDeleteSegment :: Text -> Text -> DeleteSegment
- deleteSegment_segmentId :: Lens' DeleteSegment Text
- deleteSegment_applicationId :: Lens' DeleteSegment Text
- data DeleteSegmentResponse = DeleteSegmentResponse' {}
- newDeleteSegmentResponse :: Int -> SegmentResponse -> DeleteSegmentResponse
- deleteSegmentResponse_httpStatus :: Lens' DeleteSegmentResponse Int
- deleteSegmentResponse_segmentResponse :: Lens' DeleteSegmentResponse SegmentResponse
Creating a Request
data DeleteSegment Source #
See: newDeleteSegment
smart constructor.
DeleteSegment' | |
|
Instances
Create a value of DeleteSegment
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:DeleteSegment'
, deleteSegment_segmentId
- The unique identifier for the segment.
$sel:applicationId:DeleteSegment'
, deleteSegment_applicationId
- The unique identifier for the application. This identifier is displayed
as the Project ID on the Amazon Pinpoint console.
Request Lenses
deleteSegment_segmentId :: Lens' DeleteSegment Text Source #
The unique identifier for the segment.
deleteSegment_applicationId :: Lens' DeleteSegment Text Source #
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Destructuring the Response
data DeleteSegmentResponse Source #
See: newDeleteSegmentResponse
smart constructor.
DeleteSegmentResponse' | |
|
Instances
newDeleteSegmentResponse Source #
Create a value of DeleteSegmentResponse
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:DeleteSegmentResponse'
, deleteSegmentResponse_httpStatus
- The response's http status code.
$sel:segmentResponse:DeleteSegmentResponse'
, deleteSegmentResponse_segmentResponse
- Undocumented member.
Response Lenses
deleteSegmentResponse_httpStatus :: Lens' DeleteSegmentResponse Int Source #
The response's http status code.
deleteSegmentResponse_segmentResponse :: Lens' DeleteSegmentResponse SegmentResponse Source #
Undocumented member.