Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Associates a flow with a phone number claimed to your Amazon Connect instance.
If the number is claimed to a traffic distribution group, and you are
calling this API using an instance in the Amazon Web Services Region
where the traffic distribution group was created, you can use either a
full phone number ARN or UUID value for the PhoneNumberId
URI request
parameter. However, if the number is claimed to a traffic distribution
group and you are calling this API using an instance in the alternate
Amazon Web Services Region associated with the traffic distribution
group, you must provide a full phone number ARN. If a UUID is provided
in this scenario, you will receive a ResourceNotFoundException
.
Synopsis
- data AssociatePhoneNumberContactFlow = AssociatePhoneNumberContactFlow' {
- phoneNumberId :: Text
- instanceId :: Text
- contactFlowId :: Text
- newAssociatePhoneNumberContactFlow :: Text -> Text -> Text -> AssociatePhoneNumberContactFlow
- associatePhoneNumberContactFlow_phoneNumberId :: Lens' AssociatePhoneNumberContactFlow Text
- associatePhoneNumberContactFlow_instanceId :: Lens' AssociatePhoneNumberContactFlow Text
- associatePhoneNumberContactFlow_contactFlowId :: Lens' AssociatePhoneNumberContactFlow Text
- data AssociatePhoneNumberContactFlowResponse = AssociatePhoneNumberContactFlowResponse' {
- newAssociatePhoneNumberContactFlowResponse :: AssociatePhoneNumberContactFlowResponse
Creating a Request
data AssociatePhoneNumberContactFlow Source #
See: newAssociatePhoneNumberContactFlow
smart constructor.
AssociatePhoneNumberContactFlow' | |
|
Instances
newAssociatePhoneNumberContactFlow Source #
:: Text | |
-> Text | |
-> Text | |
-> AssociatePhoneNumberContactFlow |
Create a value of AssociatePhoneNumberContactFlow
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:
AssociatePhoneNumberContactFlow
, associatePhoneNumberContactFlow_phoneNumberId
- A unique identifier for the phone number.
AssociatePhoneNumberContactFlow
, associatePhoneNumberContactFlow_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
AssociatePhoneNumberContactFlow
, associatePhoneNumberContactFlow_contactFlowId
- The identifier of the flow.
Request Lenses
associatePhoneNumberContactFlow_phoneNumberId :: Lens' AssociatePhoneNumberContactFlow Text Source #
A unique identifier for the phone number.
associatePhoneNumberContactFlow_instanceId :: Lens' AssociatePhoneNumberContactFlow Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
associatePhoneNumberContactFlow_contactFlowId :: Lens' AssociatePhoneNumberContactFlow Text Source #
The identifier of the flow.
Destructuring the Response
data AssociatePhoneNumberContactFlowResponse Source #
See: newAssociatePhoneNumberContactFlowResponse
smart constructor.
Instances
Generic AssociatePhoneNumberContactFlowResponse Source # | |
Defined in Amazonka.Connect.AssociatePhoneNumberContactFlow type Rep AssociatePhoneNumberContactFlowResponse :: Type -> Type # | |
Read AssociatePhoneNumberContactFlowResponse Source # | |
Show AssociatePhoneNumberContactFlowResponse Source # | |
NFData AssociatePhoneNumberContactFlowResponse Source # | |
Defined in Amazonka.Connect.AssociatePhoneNumberContactFlow rnf :: AssociatePhoneNumberContactFlowResponse -> () # | |
Eq AssociatePhoneNumberContactFlowResponse Source # | |
type Rep AssociatePhoneNumberContactFlowResponse Source # | |
Defined in Amazonka.Connect.AssociatePhoneNumberContactFlow type Rep AssociatePhoneNumberContactFlowResponse = D1 ('MetaData "AssociatePhoneNumberContactFlowResponse" "Amazonka.Connect.AssociatePhoneNumberContactFlow" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "AssociatePhoneNumberContactFlowResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newAssociatePhoneNumberContactFlowResponse :: AssociatePhoneNumberContactFlowResponse Source #
Create a value of AssociatePhoneNumberContactFlowResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.