stratosphere-connectcampaignsv2-1.0.0: gen/Stratosphere/ConnectCampaignsV2/Campaign/SmsOutboundConfigProperty.hs
module Stratosphere.ConnectCampaignsV2.Campaign.SmsOutboundConfigProperty (
SmsOutboundConfigProperty(..), mkSmsOutboundConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SmsOutboundConfigProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-smsoutboundconfig.html>
SmsOutboundConfigProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-smsoutboundconfig.html#cfn-connectcampaignsv2-campaign-smsoutboundconfig-connectsourcephonenumberarn>
connectSourcePhoneNumberArn :: (Value Prelude.Text),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connectcampaignsv2-campaign-smsoutboundconfig.html#cfn-connectcampaignsv2-campaign-smsoutboundconfig-wisdomtemplatearn>
wisdomTemplateArn :: (Value Prelude.Text)}
deriving stock (Prelude.Eq, Prelude.Show)
mkSmsOutboundConfigProperty ::
Value Prelude.Text
-> Value Prelude.Text -> SmsOutboundConfigProperty
mkSmsOutboundConfigProperty
connectSourcePhoneNumberArn
wisdomTemplateArn
= SmsOutboundConfigProperty
{haddock_workaround_ = (),
connectSourcePhoneNumberArn = connectSourcePhoneNumberArn,
wisdomTemplateArn = wisdomTemplateArn}
instance ToResourceProperties SmsOutboundConfigProperty where
toResourceProperties SmsOutboundConfigProperty {..}
= ResourceProperties
{awsType = "AWS::ConnectCampaignsV2::Campaign.SmsOutboundConfig",
supportsTags = Prelude.False,
properties = ["ConnectSourcePhoneNumberArn"
JSON..= connectSourcePhoneNumberArn,
"WisdomTemplateArn" JSON..= wisdomTemplateArn]}
instance JSON.ToJSON SmsOutboundConfigProperty where
toJSON SmsOutboundConfigProperty {..}
= JSON.object
["ConnectSourcePhoneNumberArn" JSON..= connectSourcePhoneNumberArn,
"WisdomTemplateArn" JSON..= wisdomTemplateArn]
instance Property "ConnectSourcePhoneNumberArn" SmsOutboundConfigProperty where
type PropertyType "ConnectSourcePhoneNumberArn" SmsOutboundConfigProperty = Value Prelude.Text
set newValue SmsOutboundConfigProperty {..}
= SmsOutboundConfigProperty
{connectSourcePhoneNumberArn = newValue, ..}
instance Property "WisdomTemplateArn" SmsOutboundConfigProperty where
type PropertyType "WisdomTemplateArn" SmsOutboundConfigProperty = Value Prelude.Text
set newValue SmsOutboundConfigProperty {..}
= SmsOutboundConfigProperty {wisdomTemplateArn = newValue, ..}