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

Description

Associates the specified origination identity with a pool.

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.

If the origination identity configuration doesn't match the pool's configuration, an Error is returned.

Synopsis

Creating a Request

data AssociateOriginationIdentity Source #

See: newAssociateOriginationIdentity smart constructor.

Constructors

AssociateOriginationIdentity' 

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.

  • poolId :: Text

    The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using DescribePools.

  • originationIdentity :: Text

    The origination identity to use, such as 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 origination identity.

Instances

Instances details
ToJSON AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

ToHeaders AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

ToPath AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

ToQuery AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

AWSRequest AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Generic AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Associated Types

type Rep AssociateOriginationIdentity :: Type -> Type #

Read AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Show AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

NFData AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Eq AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Hashable AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

type AWSResponse AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

type Rep AssociateOriginationIdentity Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

type Rep AssociateOriginationIdentity = D1 ('MetaData "AssociateOriginationIdentity" "Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "AssociateOriginationIdentity'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "poolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "originationIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "isoCountryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newAssociateOriginationIdentity Source #

Create a value of AssociateOriginationIdentity 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:AssociateOriginationIdentity', associateOriginationIdentity_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.

AssociateOriginationIdentity, associateOriginationIdentity_poolId - The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using DescribePools.

AssociateOriginationIdentity, associateOriginationIdentity_originationIdentity - The origination identity to use, such as 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.

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

Request Lenses

associateOriginationIdentity_clientToken :: Lens' AssociateOriginationIdentity (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.

associateOriginationIdentity_poolId :: Lens' AssociateOriginationIdentity Text Source #

The pool to update with the new Identity. This value can be either the PoolId or PoolArn, and you can find these values using DescribePools.

associateOriginationIdentity_originationIdentity :: Lens' AssociateOriginationIdentity Text Source #

The origination identity to use, such as 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.

associateOriginationIdentity_isoCountryCode :: Lens' AssociateOriginationIdentity Text Source #

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

Destructuring the Response

data AssociateOriginationIdentityResponse Source #

Constructors

AssociateOriginationIdentityResponse' 

Fields

Instances

Instances details
Generic AssociateOriginationIdentityResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Read AssociateOriginationIdentityResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Show AssociateOriginationIdentityResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

NFData AssociateOriginationIdentityResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

Eq AssociateOriginationIdentityResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

type Rep AssociateOriginationIdentityResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity

type Rep AssociateOriginationIdentityResponse = D1 ('MetaData "AssociateOriginationIdentityResponse" "Amazonka.PinpointSmsVoiceV2.AssociateOriginationIdentity" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "AssociateOriginationIdentityResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "isoCountryCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "originationIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "originationIdentityArn") '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 "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newAssociateOriginationIdentityResponse Source #

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

AssociateOriginationIdentity, associateOriginationIdentityResponse_isoCountryCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

AssociateOriginationIdentity, associateOriginationIdentityResponse_originationIdentity - The PhoneNumberId or SenderId of the origination identity.

AssociateOriginationIdentityResponse, associateOriginationIdentityResponse_originationIdentityArn - The PhoneNumberArn or SenderIdArn of the origination identity.

AssociateOriginationIdentityResponse, associateOriginationIdentityResponse_poolArn - The Amazon Resource Name (ARN) of the pool that is now associated with the origination identity.

AssociateOriginationIdentity, associateOriginationIdentityResponse_poolId - The PoolId of the pool that is now associated with the origination identity.

$sel:httpStatus:AssociateOriginationIdentityResponse', associateOriginationIdentityResponse_httpStatus - The response's http status code.

Response Lenses

associateOriginationIdentityResponse_isoCountryCode :: Lens' AssociateOriginationIdentityResponse (Maybe Text) Source #

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

associateOriginationIdentityResponse_poolArn :: Lens' AssociateOriginationIdentityResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the pool that is now associated with the origination identity.

associateOriginationIdentityResponse_poolId :: Lens' AssociateOriginationIdentityResponse (Maybe Text) Source #

The PoolId of the pool that is now associated with the origination identity.