| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.Pinpoint.CreateSegment
Description
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 CreateSegment = CreateSegment' {}
 - newCreateSegment :: Text -> WriteSegmentRequest -> CreateSegment
 - createSegment_applicationId :: Lens' CreateSegment Text
 - createSegment_writeSegmentRequest :: Lens' CreateSegment WriteSegmentRequest
 - data CreateSegmentResponse = CreateSegmentResponse' {}
 - newCreateSegmentResponse :: Int -> SegmentResponse -> CreateSegmentResponse
 - createSegmentResponse_httpStatus :: Lens' CreateSegmentResponse Int
 - createSegmentResponse_segmentResponse :: Lens' CreateSegmentResponse SegmentResponse
 
Creating a Request
data CreateSegment Source #
See: newCreateSegment smart constructor.
Constructors
| CreateSegment' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> WriteSegmentRequest | |
| -> CreateSegment | 
Create a value of CreateSegment 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:
CreateSegment, createSegment_applicationId - The unique identifier for the application. This identifier is displayed
 as the Project ID on the Amazon Pinpoint console.
$sel:writeSegmentRequest:CreateSegment', createSegment_writeSegmentRequest - Undocumented member.
Request Lenses
createSegment_applicationId :: Lens' CreateSegment Text Source #
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
createSegment_writeSegmentRequest :: Lens' CreateSegment WriteSegmentRequest Source #
Undocumented member.
Destructuring the Response
data CreateSegmentResponse Source #
See: newCreateSegmentResponse smart constructor.
Constructors
| CreateSegmentResponse' | |
Fields 
  | |
Instances
newCreateSegmentResponse Source #
Arguments
| :: Int | |
| -> SegmentResponse | |
| -> CreateSegmentResponse | 
Create a value of CreateSegmentResponse 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:CreateSegmentResponse', createSegmentResponse_httpStatus - The response's http status code.
$sel:segmentResponse:CreateSegmentResponse', createSegmentResponse_segmentResponse - Undocumented member.
Response Lenses
createSegmentResponse_httpStatus :: Lens' CreateSegmentResponse Int Source #
The response's http status code.
createSegmentResponse_segmentResponse :: Lens' CreateSegmentResponse SegmentResponse Source #
Undocumented member.