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

  • idempotencyToken :: Maybe Text

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

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

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

Defined in Amazonka.SSMContacts.CreateContactChannel

Read CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Show CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Generic CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Associated Types

type Rep CreateContactChannel :: Type -> Type #

NFData CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Methods

rnf :: CreateContactChannel -> () #

Hashable CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

ToJSON CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

AWSRequest CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Associated Types

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

type Rep CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

type Rep CreateContactChannel = D1 ('MetaData "CreateContactChannel" "Amazonka.SSMContacts.CreateContactChannel" "libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts" 'False) (C1 ('MetaCons "CreateContactChannel'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "idempotencyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deferActivation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: 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)))))
type AWSResponse CreateContactChannel Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

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:idempotencyToken:CreateContactChannel', createContactChannel_idempotencyToken - A token ensuring that the operation is called only once with the specified details.

$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:contactId:CreateContactChannel', createContactChannel_contactId - The Amazon Resource Name (ARN) of the contact you are adding the contact channel to.

$sel:name:CreateContactChannel', createContactChannel_name - The name of the contact channel.

$sel:type':CreateContactChannel', createContactChannel_type - Incident Manager supports three types of contact channels:

  • SMS
  • VOICE
  • EMAIL

$sel:deliveryAddress: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_idempotencyToken :: Lens' CreateContactChannel (Maybe Text) Source #

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

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

Defined in Amazonka.SSMContacts.CreateContactChannel

Read CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Show CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Generic CreateContactChannelResponse Source # 
Instance details

Defined in Amazonka.SSMContacts.CreateContactChannel

Associated Types

type Rep CreateContactChannelResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-ssm-contactsZSamazonka-ssm-contacts" '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.

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