| 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.SSMContacts.GetContact
Description
Retrieves information about the specified contact or escalation plan.
Synopsis
- data GetContact = GetContact' {}
- newGetContact :: Text -> GetContact
- getContact_contactId :: Lens' GetContact Text
- data GetContactResponse = GetContactResponse' {
- displayName :: Maybe Text
- httpStatus :: Int
- contactArn :: Text
- alias :: Text
- type' :: ContactType
- plan :: Plan
- newGetContactResponse :: Int -> Text -> Text -> ContactType -> Plan -> GetContactResponse
- getContactResponse_displayName :: Lens' GetContactResponse (Maybe Text)
- getContactResponse_httpStatus :: Lens' GetContactResponse Int
- getContactResponse_contactArn :: Lens' GetContactResponse Text
- getContactResponse_alias :: Lens' GetContactResponse Text
- getContactResponse_type :: Lens' GetContactResponse ContactType
- getContactResponse_plan :: Lens' GetContactResponse Plan
Creating a Request
data GetContact Source #
See: newGetContact smart constructor.
Constructors
| GetContact' | |
Instances
Arguments
| :: Text | |
| -> GetContact |
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:
GetContact, getContact_contactId - The Amazon Resource Name (ARN) of the contact or escalation plan.
Request Lenses
getContact_contactId :: Lens' GetContact Text Source #
The Amazon Resource Name (ARN) of the contact or escalation plan.
Destructuring the Response
data GetContactResponse Source #
See: newGetContactResponse smart constructor.
Constructors
| GetContactResponse' | |
Fields
| |
Instances
newGetContactResponse Source #
Arguments
| :: Int | |
| -> Text | |
| -> Text | |
| -> ContactType | |
| -> Plan | |
| -> GetContactResponse |
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:
GetContactResponse, getContactResponse_displayName - The full name of the contact or escalation plan.
$sel:httpStatus:GetContactResponse', getContactResponse_httpStatus - The response's http status code.
GetContactResponse, getContactResponse_contactArn - The ARN of the contact or escalation plan.
GetContactResponse, getContactResponse_alias - The alias of the contact or escalation plan. The alias is unique and
identifiable.
GetContactResponse, getContactResponse_type - The type of contact, either PERSONAL or ESCALATION.
$sel:plan:GetContactResponse', getContactResponse_plan - Details about the specific timing or stages and targets of the
escalation plan or engagement plan.
Response Lenses
getContactResponse_displayName :: Lens' GetContactResponse (Maybe Text) Source #
The full name of the contact or escalation plan.
getContactResponse_httpStatus :: Lens' GetContactResponse Int Source #
The response's http status code.
getContactResponse_contactArn :: Lens' GetContactResponse Text Source #
The ARN of the contact or escalation plan.
getContactResponse_alias :: Lens' GetContactResponse Text Source #
The alias of the contact or escalation plan. The alias is unique and identifiable.
getContactResponse_type :: Lens' GetContactResponse ContactType Source #
The type of contact, either PERSONAL or ESCALATION.
getContactResponse_plan :: Lens' GetContactResponse Plan Source #
Details about the specific timing or stages and targets of the escalation plan or engagement plan.