libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Read GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Show GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Generic GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Associated Types

type Rep GetContact :: Type -> Type #

NFData GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Methods

rnf :: GetContact -> () #

Hashable GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

ToJSON GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

AWSRequest GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Associated Types

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

type Rep GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

type Rep GetContact = D1 ('MetaData "GetContact" "Amazonka.SSMContacts.GetContact" "libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts" 'False) (C1 ('MetaCons "GetContact'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contactId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetContact Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

newGetContact Source #

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:contactId: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
Eq GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Read GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Show GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Generic GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Associated Types

type Rep GetContactResponse :: Type -> Type #

NFData GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

Methods

rnf :: GetContactResponse -> () #

type Rep GetContactResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.GetContact

type Rep GetContactResponse = D1 ('MetaData "GetContactResponse" "Amazonka.SSMContacts.GetContact" "libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts" '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:

$sel:displayName:GetContactResponse', getContactResponse_displayName - The full name of the contact or escalation plan.

$sel:httpStatus:GetContactResponse', getContactResponse_httpStatus - The response's http status code.

$sel:contactArn:GetContactResponse', getContactResponse_contactArn - The ARN of the contact or escalation plan.

$sel:alias:GetContactResponse', getContactResponse_alias - The alias of the contact or escalation plan. The alias is unique and identifiable.

$sel:type':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.