amazonka-ssm-contacts-2.0: Amazon Systems Manager Incident Manager Contacts SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSMContacts.GetContact

Description

Retrieves information about the specified contact or escalation plan.

Synopsis

Creating a Request

data GetContact Source #

See: newGetContact smart constructor.

Constructors

GetContact' 

Fields

  • contactId :: Text

    The Amazon Resource Name (ARN) of the contact or escalation plan.

Instances

Instances details
ToJSON GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

ToHeaders GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Methods

toHeaders :: GetContact -> [Header] #

ToPath GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

ToQuery GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

AWSRequest GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Associated Types

type AWSResponse GetContact #

Generic GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Associated Types

type Rep GetContact :: Type -> Type #

Read GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Show GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

NFData GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Methods

rnf :: GetContact -> () #

Eq GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Hashable GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

type AWSResponse GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

type Rep GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

type Rep GetContact = D1 ('MetaData "GetContact" "Amazonka.SSMContacts.GetContact" "amazonka-ssm-contacts-2.0-ItNmOyIH300HIsnE5QTEXx" 'False) (C1 ('MetaCons "GetContact'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contactId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetContact Source #

Arguments

:: Text

GetContact

-> 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

  • displayName :: Maybe Text

    The full name of the contact or escalation plan.

  • httpStatus :: Int

    The response's http status code.

  • contactArn :: Text

    The ARN of the contact or escalation plan.

  • alias :: Text

    The alias of the contact or escalation plan. The alias is unique and identifiable.

  • type' :: ContactType

    The type of contact, either PERSONAL or ESCALATION.

  • plan :: Plan

    Details about the specific timing or stages and targets of the escalation plan or engagement plan.

Instances

Instances details
Generic GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Associated Types

type Rep GetContactResponse :: Type -> Type #

Read GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Show GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

NFData GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Methods

rnf :: GetContactResponse -> () #

Eq GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

type Rep GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

type Rep GetContactResponse = D1 ('MetaData "GetContactResponse" "Amazonka.SSMContacts.GetContact" "amazonka-ssm-contacts-2.0-ItNmOyIH300HIsnE5QTEXx" 'False) (C1 ('MetaCons "GetContactResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "contactArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "alias") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContactType) :*: S1 ('MetaSel ('Just "plan") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Plan)))))

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:

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_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.