amazonka-pinpoint-sms-voice-v2-2.0: Amazon Pinpoint SMS Voice V2 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.PinpointSmsVoiceV2.CreatePool

Description

Creates a new pool and associates the specified origination identity to the pool. A pool can include one or more phone numbers and SenderIds that are associated with your Amazon Web Services account.

The new pool inherits its configuration from the specified origination identity. This includes keywords, message type, opt-out list, two-way configuration, and self-managed opt-out configuration. Deletion protection isn't inherited from the origination identity and defaults to false.

If the origination identity is a phone number and is already associated with another pool, an Error is returned. A sender ID can be associated with multiple pools.

Synopsis

Creating a Request

data CreatePool Source #

See: newCreatePool smart constructor.

Constructors

CreatePool' 

Fields

  • clientToken :: Maybe Text

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

  • deletionProtectionEnabled :: Maybe Bool

    By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.

  • tags :: Maybe [Tag]

    An array of tags (key and value pairs) associated with the pool.

  • originationIdentity :: Text

    The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

  • isoCountryCode :: Text

    The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.

  • messageType :: MessageType

    The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

Instances

Instances details
ToJSON CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

ToHeaders CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Methods

toHeaders :: CreatePool -> [Header] #

ToPath CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

ToQuery CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

AWSRequest CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Associated Types

type AWSResponse CreatePool #

Generic CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Associated Types

type Rep CreatePool :: Type -> Type #

Read CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Show CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

NFData CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Methods

rnf :: CreatePool -> () #

Eq CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Hashable CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

type AWSResponse CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

type Rep CreatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

type Rep CreatePool = D1 ('MetaData "CreatePool" "Amazonka.PinpointSmsVoiceV2.CreatePool" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "CreatePool'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "deletionProtectionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: (S1 ('MetaSel ('Just "originationIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "isoCountryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MessageType)))))

newCreatePool Source #

Create a value of CreatePool 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:clientToken:CreatePool', createPool_clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

CreatePool, createPool_deletionProtectionEnabled - By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.

CreatePool, createPool_tags - An array of tags (key and value pairs) associated with the pool.

CreatePool, createPool_originationIdentity - The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

CreatePool, createPool_isoCountryCode - The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.

CreatePool, createPool_messageType - The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

Request Lenses

createPool_clientToken :: Lens' CreatePool (Maybe Text) Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.

createPool_deletionProtectionEnabled :: Lens' CreatePool (Maybe Bool) Source #

By default this is set to false. When set to true the pool can't be deleted. You can change this value using the UpdatePool action.

createPool_tags :: Lens' CreatePool (Maybe [Tag]) Source #

An array of tags (key and value pairs) associated with the pool.

createPool_originationIdentity :: Lens' CreatePool Text Source #

The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers to find the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.

createPool_isoCountryCode :: Lens' CreatePool Text Source #

The new two-character code, in ISO 3166-1 alpha-2 format, for the country or region of the new pool.

createPool_messageType :: Lens' CreatePool MessageType Source #

The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

Destructuring the Response

data CreatePoolResponse Source #

See: newCreatePoolResponse smart constructor.

Constructors

CreatePoolResponse' 

Fields

  • createdTimestamp :: Maybe POSIX

    The time when the pool was created, in UNIX epoch time format.

  • deletionProtectionEnabled :: Maybe Bool

    When set to true deletion protection is enabled. By default this is set to false.

  • messageType :: Maybe MessageType

    The type of message for the pool to use.

  • optOutListName :: Maybe Text

    The name of the OptOutList associated with the pool.

  • poolArn :: Maybe Text

    The Amazon Resource Name (ARN) for the pool.

  • poolId :: Maybe Text

    The unique identifier for the pool.

  • selfManagedOptOutsEnabled :: Maybe Bool

    By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

  • sharedRoutesEnabled :: Maybe Bool

    Indicates whether shared routes are enabled for the pool.

  • status :: Maybe PoolStatus

    The current status of the pool.

    • CREATING: The pool is currently being created and isn't yet available for use.
    • ACTIVE: The pool is active and available for use.
    • DELETING: The pool is being deleted.
  • tags :: Maybe [Tag]

    An array of tags (key and value pairs) associated with the pool.

  • twoWayChannelArn :: Maybe Text

    The Amazon Resource Name (ARN) of the two way channel.

  • twoWayEnabled :: Maybe Bool

    By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CreatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Associated Types

type Rep CreatePoolResponse :: Type -> Type #

Read CreatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Show CreatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

NFData CreatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

Methods

rnf :: CreatePoolResponse -> () #

Eq CreatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

type Rep CreatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.CreatePool

type Rep CreatePoolResponse = D1 ('MetaData "CreatePoolResponse" "Amazonka.PinpointSmsVoiceV2.CreatePool" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "CreatePoolResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "createdTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "deletionProtectionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageType)))) :*: (S1 ('MetaSel ('Just "optOutListName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "poolArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "poolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "selfManagedOptOutsEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "sharedRoutesEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PoolStatus)))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "twoWayChannelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "twoWayEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newCreatePoolResponse Source #

Create a value of CreatePoolResponse 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:

CreatePoolResponse, createPoolResponse_createdTimestamp - The time when the pool was created, in UNIX epoch time format.

CreatePool, createPoolResponse_deletionProtectionEnabled - When set to true deletion protection is enabled. By default this is set to false.

CreatePool, createPoolResponse_messageType - The type of message for the pool to use.

CreatePoolResponse, createPoolResponse_optOutListName - The name of the OptOutList associated with the pool.

CreatePoolResponse, createPoolResponse_poolArn - The Amazon Resource Name (ARN) for the pool.

CreatePoolResponse, createPoolResponse_poolId - The unique identifier for the pool.

CreatePoolResponse, createPoolResponse_selfManagedOptOutsEnabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

CreatePoolResponse, createPoolResponse_sharedRoutesEnabled - Indicates whether shared routes are enabled for the pool.

CreatePoolResponse, createPoolResponse_status - The current status of the pool.

  • CREATING: The pool is currently being created and isn't yet available for use.
  • ACTIVE: The pool is active and available for use.
  • DELETING: The pool is being deleted.

CreatePool, createPoolResponse_tags - An array of tags (key and value pairs) associated with the pool.

CreatePoolResponse, createPoolResponse_twoWayChannelArn - The Amazon Resource Name (ARN) of the two way channel.

CreatePoolResponse, createPoolResponse_twoWayEnabled - By default this is set to false. When set to true you can receive incoming text messages from your end recipients.

$sel:httpStatus:CreatePoolResponse', createPoolResponse_httpStatus - The response's http status code.

Response Lenses

createPoolResponse_deletionProtectionEnabled :: Lens' CreatePoolResponse (Maybe Bool) Source #

When set to true deletion protection is enabled. By default this is set to false.

createPoolResponse_messageType :: Lens' CreatePoolResponse (Maybe MessageType) Source #

The type of message for the pool to use.

createPoolResponse_optOutListName :: Lens' CreatePoolResponse (Maybe Text) Source #

The name of the OptOutList associated with the pool.

createPoolResponse_poolArn :: Lens' CreatePoolResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) for the pool.

createPoolResponse_poolId :: Lens' CreatePoolResponse (Maybe Text) Source #

The unique identifier for the pool.

createPoolResponse_selfManagedOptOutsEnabled :: Lens' CreatePoolResponse (Maybe Bool) Source #

By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.

createPoolResponse_sharedRoutesEnabled :: Lens' CreatePoolResponse (Maybe Bool) Source #

Indicates whether shared routes are enabled for the pool.

createPoolResponse_status :: Lens' CreatePoolResponse (Maybe PoolStatus) Source #

The current status of the pool.

  • CREATING: The pool is currently being created and isn't yet available for use.
  • ACTIVE: The pool is active and available for use.
  • DELETING: The pool is being deleted.

createPoolResponse_tags :: Lens' CreatePoolResponse (Maybe [Tag]) Source #

An array of tags (key and value pairs) associated with the pool.

createPoolResponse_twoWayChannelArn :: Lens' CreatePoolResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the two way channel.

createPoolResponse_twoWayEnabled :: Lens' CreatePoolResponse (Maybe Bool) Source #

By default this is set to false. When set to true you can receive incoming text messages from your end recipients.