java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.connectcampaignsv2.CfnCampaignPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-14T18:32:10.638Z") @Stability(Stable) public class CfnCampaignPropsMixin extends Mixin implements software.constructs.IMixin
Creates an outbound campaign.

  • For users to be able to view or edit a campaign at a later date by using the Amazon Connect user interface, you must add the instance ID as a tag. For example, { "tags": {"owner": "arn:aws:connect:{REGION}:{AWS_ACCOUNT_ID}:instance/{CONNECT_INSTANCE_ID}"}} .
  • After a campaign is created, you can't add/remove source.
  • Configuring maximum ring time is not supported for the Preview dial mode.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.connectcampaignsv2.*;
 import software.amazon.awscdk.*;
 Object agentlessConfig;
 IMergeStrategy mergeStrategy;
 CfnCampaignPropsMixin cfnCampaignPropsMixin = CfnCampaignPropsMixin.Builder.create(CfnCampaignMixinProps.builder()
         .channelSubtypeConfig(ChannelSubtypeConfigProperty.builder()
                 .email(EmailChannelSubtypeConfigProperty.builder()
                         .capacity(123)
                         .defaultOutboundConfig(EmailOutboundConfigProperty.builder()
                                 .connectSourceEmailAddress("connectSourceEmailAddress")
                                 .sourceEmailAddressDisplayName("sourceEmailAddressDisplayName")
                                 .wisdomTemplateArn("wisdomTemplateArn")
                                 .build())
                         .outboundMode(EmailOutboundModeProperty.builder()
                                 .agentlessConfig(agentlessConfig)
                                 .build())
                         .build())
                 .sms(SmsChannelSubtypeConfigProperty.builder()
                         .capacity(123)
                         .defaultOutboundConfig(SmsOutboundConfigProperty.builder()
                                 .connectSourcePhoneNumberArn("connectSourcePhoneNumberArn")
                                 .wisdomTemplateArn("wisdomTemplateArn")
                                 .build())
                         .outboundMode(SmsOutboundModeProperty.builder()
                                 .agentlessConfig(agentlessConfig)
                                 .build())
                         .build())
                 .telephony(TelephonyChannelSubtypeConfigProperty.builder()
                         .capacity(123)
                         .connectQueueId("connectQueueId")
                         .defaultOutboundConfig(TelephonyOutboundConfigProperty.builder()
                                 .answerMachineDetectionConfig(AnswerMachineDetectionConfigProperty.builder()
                                         .awaitAnswerMachinePrompt(false)
                                         .enableAnswerMachineDetection(false)
                                         .build())
                                 .connectContactFlowId("connectContactFlowId")
                                 .connectSourcePhoneNumber("connectSourcePhoneNumber")
                                 .ringTimeout(123)
                                 .build())
                         .outboundMode(TelephonyOutboundModeProperty.builder()
                                 .agentlessConfig(agentlessConfig)
                                 .predictiveConfig(PredictiveConfigProperty.builder()
                                         .bandwidthAllocation(123)
                                         .build())
                                 .previewConfig(PreviewConfigProperty.builder()
                                         .agentActions(List.of("agentActions"))
                                         .bandwidthAllocation(123)
                                         .timeoutConfig(TimeoutConfigProperty.builder()
                                                 .durationInSeconds(123)
                                                 .build())
                                         .build())
                                 .progressiveConfig(ProgressiveConfigProperty.builder()
                                         .bandwidthAllocation(123)
                                         .build())
                                 .build())
                         .build())
                 .whatsApp(WhatsAppChannelSubtypeConfigProperty.builder()
                         .capacity(123)
                         .defaultOutboundConfig(WhatsAppOutboundConfigProperty.builder()
                                 .connectSourcePhoneNumberArn("connectSourcePhoneNumberArn")
                                 .wisdomTemplateArn("wisdomTemplateArn")
                                 .build())
                         .outboundMode(WhatsAppOutboundModeProperty.builder()
                                 .agentlessConfig(agentlessConfig)
                                 .build())
                         .build())
                 .build())
         .communicationLimitsOverride(CommunicationLimitsConfigProperty.builder()
                 .allChannelsSubtypes(CommunicationLimitsProperty.builder()
                         .communicationLimitList(List.of(CommunicationLimitProperty.builder()
                                 .frequency(123)
                                 .maxCountPerRecipient(123)
                                 .unit("unit")
                                 .build()))
                         .build())
                 .instanceLimitsHandling("instanceLimitsHandling")
                 .build())
         .communicationTimeConfig(CommunicationTimeConfigProperty.builder()
                 .email(TimeWindowProperty.builder()
                         .openHours(OpenHoursProperty.builder()
                                 .dailyHours(List.of(DailyHourProperty.builder()
                                         .key("key")
                                         .value(List.of(TimeRangeProperty.builder()
                                                 .endTime("endTime")
                                                 .startTime("startTime")
                                                 .build()))
                                         .build()))
                                 .build())
                         .restrictedPeriods(RestrictedPeriodsProperty.builder()
                                 .restrictedPeriodList(List.of(RestrictedPeriodProperty.builder()
                                         .endDate("endDate")
                                         .name("name")
                                         .startDate("startDate")
                                         .build()))
                                 .build())
                         .build())
                 .localTimeZoneConfig(LocalTimeZoneConfigProperty.builder()
                         .defaultTimeZone("defaultTimeZone")
                         .localTimeZoneDetection(List.of("localTimeZoneDetection"))
                         .build())
                 .sms(TimeWindowProperty.builder()
                         .openHours(OpenHoursProperty.builder()
                                 .dailyHours(List.of(DailyHourProperty.builder()
                                         .key("key")
                                         .value(List.of(TimeRangeProperty.builder()
                                                 .endTime("endTime")
                                                 .startTime("startTime")
                                                 .build()))
                                         .build()))
                                 .build())
                         .restrictedPeriods(RestrictedPeriodsProperty.builder()
                                 .restrictedPeriodList(List.of(RestrictedPeriodProperty.builder()
                                         .endDate("endDate")
                                         .name("name")
                                         .startDate("startDate")
                                         .build()))
                                 .build())
                         .build())
                 .telephony(TimeWindowProperty.builder()
                         .openHours(OpenHoursProperty.builder()
                                 .dailyHours(List.of(DailyHourProperty.builder()
                                         .key("key")
                                         .value(List.of(TimeRangeProperty.builder()
                                                 .endTime("endTime")
                                                 .startTime("startTime")
                                                 .build()))
                                         .build()))
                                 .build())
                         .restrictedPeriods(RestrictedPeriodsProperty.builder()
                                 .restrictedPeriodList(List.of(RestrictedPeriodProperty.builder()
                                         .endDate("endDate")
                                         .name("name")
                                         .startDate("startDate")
                                         .build()))
                                 .build())
                         .build())
                 .whatsApp(TimeWindowProperty.builder()
                         .openHours(OpenHoursProperty.builder()
                                 .dailyHours(List.of(DailyHourProperty.builder()
                                         .key("key")
                                         .value(List.of(TimeRangeProperty.builder()
                                                 .endTime("endTime")
                                                 .startTime("startTime")
                                                 .build()))
                                         .build()))
                                 .build())
                         .restrictedPeriods(RestrictedPeriodsProperty.builder()
                                 .restrictedPeriodList(List.of(RestrictedPeriodProperty.builder()
                                         .endDate("endDate")
                                         .name("name")
                                         .startDate("startDate")
                                         .build()))
                                 .build())
                         .build())
                 .build())
         .connectCampaignFlowArn("connectCampaignFlowArn")
         .connectInstanceId("connectInstanceId")
         .entryLimitsConfig(EntryLimitsConfigProperty.builder()
                 .maxEntryCount(123)
                 .minEntryInterval("minEntryInterval")
                 .build())
         .name("name")
         .schedule(ScheduleProperty.builder()
                 .endTime("endTime")
                 .refreshFrequency("refreshFrequency")
                 .startTime("startTime")
                 .build())
         .source(SourceProperty.builder()
                 .customerProfilesSegmentArn("customerProfilesSegmentArn")
                 .eventTrigger(EventTriggerProperty.builder()
                         .customerProfilesDomainArn("customerProfilesDomainArn")
                         .build())
                 .build())
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .type("type")
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnCampaignPropsMixin

      protected CfnCampaignPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnCampaignPropsMixin

      protected CfnCampaignPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnCampaignPropsMixin

      @Stability(Stable) public CfnCampaignPropsMixin(@NotNull CfnCampaignMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::ConnectCampaignsV2::Campaign.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnCampaignPropsMixin

      @Stability(Stable) public CfnCampaignPropsMixin(@NotNull CfnCampaignMixinProps props)
      Create a mixin to apply properties to AWS::ConnectCampaignsV2::Campaign.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnCampaignMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()