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 |
Gets the contact details by the contact ARN.
Synopsis
- data GetContact = GetContact' {
- contactArn :: Text
- newGetContact :: Text -> GetContact
- getContact_contactArn :: Lens' GetContact Text
- data GetContactResponse = GetContactResponse' {
- contact :: Maybe Contact
- httpStatus :: Int
- newGetContactResponse :: Int -> GetContactResponse
- getContactResponse_contact :: Lens' GetContactResponse (Maybe Contact)
- getContactResponse_httpStatus :: Lens' GetContactResponse Int
Creating a Request
data GetContact Source #
See: newGetContact
smart constructor.
GetContact' | |
|
Instances
Create a value of GetContact
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:contactArn:GetContact'
, getContact_contactArn
- The ARN of the contact for which to request details.
Request Lenses
getContact_contactArn :: Lens' GetContact Text Source #
The ARN of the contact for which to request details.
Destructuring the Response
data GetContactResponse Source #
See: newGetContactResponse
smart constructor.
GetContactResponse' | |
|
Instances
newGetContactResponse Source #
Create a value of GetContactResponse
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:contact:GetContactResponse'
, getContactResponse_contact
- The details of the requested contact.
$sel:httpStatus:GetContactResponse'
, getContactResponse_httpStatus
- The response's http status code.
Response Lenses
getContactResponse_contact :: Lens' GetContactResponse (Maybe Contact) Source #
The details of the requested contact.
getContactResponse_httpStatus :: Lens' GetContactResponse Int Source #
The response's http status code.