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

Description

A contact channel is the method that Incident Manager uses to engage your contact.

Synopsis

Creating a Request

data CreateContactChannel Source #

See: newCreateContactChannel smart constructor.

Constructors

CreateContactChannel' 

Fields

  • deferActivation :: Maybe Bool

    If you want to activate the channel at a later time, you can choose to defer activation. Incident Manager can't engage your contact channel until it has been activated.

  • idempotencyToken :: Maybe Text

    A token ensuring that the operation is called only once with the specified details.

  • contactId :: Text

    The Amazon Resource Name (ARN) of the contact you are adding the contact channel to.

  • name :: Text

    The name of the contact channel.

  • type' :: ChannelType

    Incident Manager supports three types of contact channels:

    • SMS
    • VOICE
    • EMAIL
  • deliveryAddress :: ContactChannelAddress

    The details that Incident Manager uses when trying to engage the contact channel. The format is dependent on the type of the contact channel. The following are the expected formats:

    • SMS - '+' followed by the country code and phone number
    • VOICE - '+' followed by the country code and phone number
    • EMAIL - any standard email format

Instances

Instances details
ToJSON CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

ToHeaders CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

ToPath CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

ToQuery CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

AWSRequest CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Associated Types

type AWSResponse CreateContactChannel #

Generic CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Associated Types

type Rep CreateContactChannel :: Type -> Type #

Read CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Show CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

NFData CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Methods

rnf :: CreateContactChannel -> () #

Eq CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Hashable CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

type AWSResponse CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

type Rep CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

type Rep CreateContactChannel = D1 ('MetaData "CreateContactChannel" "Amazonka.SSMContacts.CreateContactChannel" "amazonka-ssm-contacts-2.0-ItNmOyIH300HIsnE5QTEXx" 'False) (C1 ('MetaCons "CreateContactChannel'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deferActivation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "idempotencyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "contactId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ChannelType) :*: S1 ('MetaSel ('Just "deliveryAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContactChannelAddress)))))

newCreateContactChannel Source #

Create a value of CreateContactChannel 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:deferActivation:CreateContactChannel', createContactChannel_deferActivation - If you want to activate the channel at a later time, you can choose to defer activation. Incident Manager can't engage your contact channel until it has been activated.

$sel:idempotencyToken:CreateContactChannel', createContactChannel_idempotencyToken - A token ensuring that the operation is called only once with the specified details.

CreateContactChannel, createContactChannel_contactId - The Amazon Resource Name (ARN) of the contact you are adding the contact channel to.

CreateContactChannel, createContactChannel_name - The name of the contact channel.

CreateContactChannel, createContactChannel_type - Incident Manager supports three types of contact channels:

  • SMS
  • VOICE
  • EMAIL

CreateContactChannel, createContactChannel_deliveryAddress - The details that Incident Manager uses when trying to engage the contact channel. The format is dependent on the type of the contact channel. The following are the expected formats:

  • SMS - '+' followed by the country code and phone number
  • VOICE - '+' followed by the country code and phone number
  • EMAIL - any standard email format

Request Lenses

createContactChannel_deferActivation :: Lens' CreateContactChannel (Maybe Bool) Source #

If you want to activate the channel at a later time, you can choose to defer activation. Incident Manager can't engage your contact channel until it has been activated.

createContactChannel_idempotencyToken :: Lens' CreateContactChannel (Maybe Text) Source #

A token ensuring that the operation is called only once with the specified details.

createContactChannel_contactId :: Lens' CreateContactChannel Text Source #

The Amazon Resource Name (ARN) of the contact you are adding the contact channel to.

createContactChannel_type :: Lens' CreateContactChannel ChannelType Source #

Incident Manager supports three types of contact channels:

  • SMS
  • VOICE
  • EMAIL

createContactChannel_deliveryAddress :: Lens' CreateContactChannel ContactChannelAddress Source #

The details that Incident Manager uses when trying to engage the contact channel. The format is dependent on the type of the contact channel. The following are the expected formats:

  • SMS - '+' followed by the country code and phone number
  • VOICE - '+' followed by the country code and phone number
  • EMAIL - any standard email format

Destructuring the Response

data CreateContactChannelResponse Source #

See: newCreateContactChannelResponse smart constructor.

Constructors

CreateContactChannelResponse' 

Fields

Instances

Instances details
Generic CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Associated Types

type Rep CreateContactChannelResponse :: Type -> Type #

Read CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Show CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

NFData CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Eq CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

type Rep CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

type Rep CreateContactChannelResponse = D1 ('MetaData "CreateContactChannelResponse" "Amazonka.SSMContacts.CreateContactChannel" "amazonka-ssm-contacts-2.0-ItNmOyIH300HIsnE5QTEXx" 'False) (C1 ('MetaCons "CreateContactChannelResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "contactChannelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateContactChannelResponse Source #

Create a value of CreateContactChannelResponse 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:CreateContactChannelResponse', createContactChannelResponse_httpStatus - The response's http status code.

CreateContactChannelResponse, createContactChannelResponse_contactChannelArn - The Amazon Resource Name (ARN) of the contact channel.

Response Lenses

createContactChannelResponse_contactChannelArn :: Lens' CreateContactChannelResponse Text Source #

The Amazon Resource Name (ARN) of the contact channel.