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

Description

Updates the configuration of an existing pool. You can update the opt-out list, enable or disable two-way messaging, change the TwoWayChannelArn, enable or disable self-managed opt-outs, enable or disable deletion protection, and enable or disable shared routes.

Synopsis

Creating a Request

data UpdatePool Source #

See: newUpdatePool smart constructor.

Constructors

UpdatePool' 

Fields

  • deletionProtectionEnabled :: Maybe Bool

    When set to true the pool can't be deleted.

  • optOutListName :: Maybe Text

    The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.

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

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

  • poolId :: Text

    The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.

Instances

Instances details
ToJSON UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

ToHeaders UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Methods

toHeaders :: UpdatePool -> [Header] #

ToPath UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

ToQuery UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

AWSRequest UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Associated Types

type AWSResponse UpdatePool #

Generic UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Associated Types

type Rep UpdatePool :: Type -> Type #

Read UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Show UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

NFData UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Methods

rnf :: UpdatePool -> () #

Eq UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Hashable UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

type AWSResponse UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

type Rep UpdatePool Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

type Rep UpdatePool = D1 ('MetaData "UpdatePool" "Amazonka.PinpointSmsVoiceV2.UpdatePool" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "UpdatePool'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "deletionProtectionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "optOutListName") '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 "twoWayChannelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "twoWayEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "poolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdatePool Source #

Arguments

:: Text

UpdatePool

-> UpdatePool 

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

UpdatePool, updatePool_deletionProtectionEnabled - When set to true the pool can't be deleted.

UpdatePool, updatePool_optOutListName - The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.

UpdatePool, updatePool_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.

UpdatePool, updatePool_sharedRoutesEnabled - Indicates whether shared routes are enabled for the pool.

UpdatePool, updatePool_twoWayChannelArn - The Amazon Resource Name (ARN) of the two way channel.

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

UpdatePool, updatePool_poolId - The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.

Request Lenses

updatePool_deletionProtectionEnabled :: Lens' UpdatePool (Maybe Bool) Source #

When set to true the pool can't be deleted.

updatePool_optOutListName :: Lens' UpdatePool (Maybe Text) Source #

The OptOutList to associate with the pool. Valid values are either OptOutListName or OptOutListArn.

updatePool_selfManagedOptOutsEnabled :: Lens' UpdatePool (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.

updatePool_sharedRoutesEnabled :: Lens' UpdatePool (Maybe Bool) Source #

Indicates whether shared routes are enabled for the pool.

updatePool_twoWayChannelArn :: Lens' UpdatePool (Maybe Text) Source #

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

updatePool_twoWayEnabled :: Lens' UpdatePool (Maybe Bool) Source #

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

updatePool_poolId :: Lens' UpdatePool Text Source #

The unique identifier of the pool to update. Valid values are either the PoolId or PoolArn.

Destructuring the Response

data UpdatePoolResponse Source #

See: newUpdatePoolResponse smart constructor.

Constructors

UpdatePoolResponse' 

Fields

Instances

Instances details
Generic UpdatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Associated Types

type Rep UpdatePoolResponse :: Type -> Type #

Read UpdatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Show UpdatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

NFData UpdatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

Methods

rnf :: UpdatePoolResponse -> () #

Eq UpdatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

type Rep UpdatePoolResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.UpdatePool

type Rep UpdatePoolResponse = D1 ('MetaData "UpdatePoolResponse" "Amazonka.PinpointSmsVoiceV2.UpdatePool" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "UpdatePoolResponse'" '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 "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))))))

newUpdatePoolResponse Source #

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

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

UpdatePool, updatePoolResponse_deletionProtectionEnabled - When set to true the pool can't be deleted.

UpdatePoolResponse, updatePoolResponse_messageType - The type of message for the pool to use.

UpdatePool, updatePoolResponse_optOutListName - The name of the OptOutList associated with the pool.

UpdatePoolResponse, updatePoolResponse_poolArn - The ARN of the pool.

UpdatePool, updatePoolResponse_poolId - The unique identifier of the pool.

UpdatePool, updatePoolResponse_selfManagedOptOutsEnabled - 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.

UpdatePool, updatePoolResponse_sharedRoutesEnabled - Indicates whether shared routes are enabled for the pool.

UpdatePoolResponse, updatePoolResponse_status - The current status of the pool update request.

UpdatePool, updatePoolResponse_twoWayChannelArn - The Amazon Resource Name (ARN) of the two way channel.

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

$sel:httpStatus:UpdatePoolResponse', updatePoolResponse_httpStatus - The response's http status code.

Response Lenses

updatePoolResponse_messageType :: Lens' UpdatePoolResponse (Maybe MessageType) Source #

The type of message for the pool to use.

updatePoolResponse_optOutListName :: Lens' UpdatePoolResponse (Maybe Text) Source #

The name of the OptOutList associated with the pool.

updatePoolResponse_poolId :: Lens' UpdatePoolResponse (Maybe Text) Source #

The unique identifier of the pool.

updatePoolResponse_selfManagedOptOutsEnabled :: Lens' UpdatePoolResponse (Maybe Bool) Source #

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.

updatePoolResponse_sharedRoutesEnabled :: Lens' UpdatePoolResponse (Maybe Bool) Source #

Indicates whether shared routes are enabled for the pool.

updatePoolResponse_status :: Lens' UpdatePoolResponse (Maybe PoolStatus) Source #

The current status of the pool update request.

updatePoolResponse_twoWayChannelArn :: Lens' UpdatePoolResponse (Maybe Text) Source #

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

updatePoolResponse_twoWayEnabled :: Lens' UpdatePoolResponse (Maybe Bool) Source #

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