Class CfnCampaign
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.connectcampaignsv2.CfnCampaign
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,ICampaignRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:37.627Z")
@Stability(Stable)
public class CfnCampaign
extends CfnResource
implements IInspectable, ICampaignRef, ITaggableV2
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.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connectcampaignsv2.*;
Object agentlessConfig;
CfnCampaign cfnCampaign = CfnCampaign.Builder.create(this, "MyCfnCampaign")
.channelSubtypeConfig(ChannelSubtypeConfigProperty.builder()
.email(EmailChannelSubtypeConfigProperty.builder()
.defaultOutboundConfig(EmailOutboundConfigProperty.builder()
.connectSourceEmailAddress("connectSourceEmailAddress")
.wisdomTemplateArn("wisdomTemplateArn")
// the properties below are optional
.sourceEmailAddressDisplayName("sourceEmailAddressDisplayName")
.build())
.outboundMode(EmailOutboundModeProperty.builder()
.agentlessConfig(agentlessConfig)
.build())
// the properties below are optional
.capacity(123)
.build())
.sms(SmsChannelSubtypeConfigProperty.builder()
.defaultOutboundConfig(SmsOutboundConfigProperty.builder()
.connectSourcePhoneNumberArn("connectSourcePhoneNumberArn")
.wisdomTemplateArn("wisdomTemplateArn")
.build())
.outboundMode(SmsOutboundModeProperty.builder()
.agentlessConfig(agentlessConfig)
.build())
// the properties below are optional
.capacity(123)
.build())
.telephony(TelephonyChannelSubtypeConfigProperty.builder()
.defaultOutboundConfig(TelephonyOutboundConfigProperty.builder()
.connectContactFlowId("connectContactFlowId")
// the properties below are optional
.answerMachineDetectionConfig(AnswerMachineDetectionConfigProperty.builder()
.enableAnswerMachineDetection(false)
// the properties below are optional
.awaitAnswerMachinePrompt(false)
.build())
.connectSourcePhoneNumber("connectSourcePhoneNumber")
.build())
.outboundMode(TelephonyOutboundModeProperty.builder()
.agentlessConfig(agentlessConfig)
.predictiveConfig(PredictiveConfigProperty.builder()
.bandwidthAllocation(123)
.build())
.progressiveConfig(ProgressiveConfigProperty.builder()
.bandwidthAllocation(123)
.build())
.build())
// the properties below are optional
.capacity(123)
.connectQueueId("connectQueueId")
.build())
.build())
.connectInstanceId("connectInstanceId")
.name("name")
// the properties below are optional
.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()
.localTimeZoneConfig(LocalTimeZoneConfigProperty.builder()
.defaultTimeZone("defaultTimeZone")
.localTimeZoneDetection(List.of("localTimeZoneDetection"))
.build())
// the properties below are optional
.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())
// the properties below are optional
.restrictedPeriods(RestrictedPeriodsProperty.builder()
.restrictedPeriodList(List.of(RestrictedPeriodProperty.builder()
.endDate("endDate")
.startDate("startDate")
// the properties below are optional
.name("name")
.build()))
.build())
.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())
// the properties below are optional
.restrictedPeriods(RestrictedPeriodsProperty.builder()
.restrictedPeriodList(List.of(RestrictedPeriodProperty.builder()
.endDate("endDate")
.startDate("startDate")
// the properties below are optional
.name("name")
.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())
// the properties below are optional
.restrictedPeriods(RestrictedPeriodsProperty.builder()
.restrictedPeriodList(List.of(RestrictedPeriodProperty.builder()
.endDate("endDate")
.startDate("startDate")
// the properties below are optional
.name("name")
.build()))
.build())
.build())
.build())
.connectCampaignFlowArn("connectCampaignFlowArn")
.schedule(ScheduleProperty.builder()
.endTime("endTime")
.startTime("startTime")
// the properties below are optional
.refreshFrequency("refreshFrequency")
.build())
.source(SourceProperty.builder()
.customerProfilesSegmentArn("customerProfilesSegmentArn")
.eventTrigger(EventTriggerProperty.builder()
.customerProfilesDomainArn("customerProfilesDomainArn")
.build())
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContains answering machine detection configuration.static final classA fluent builder forCfnCampaign.static interfaceContains channel subtype configuration for an outbound campaign.static interfaceContains information about a communication limit.static interfaceContains the communication limits configuration for an outbound campaign.static interfaceContains information about communication limits.static interfaceCommunication time configuration for an outbound campaign.static interfaceThe daily hours configuration.static interfaceThe configuration for the email channel subtype.static interfaceThe outbound configuration for email.static interfaceContains information about email outbound mode.static interfaceThe event trigger of the campaign.static interfaceThe configuration of timezone for recipient.static interfaceContains information about open hours.static interfaceContains predictive outbound mode configuration.static interfaceContains the progressive outbound mode configuration.static interfaceContains information about a restricted period.static interfaceContains information about restricted periods.static interfaceContains the schedule configuration.static interfaceThe configuration for the SMS channel subtype.static interfaceThe outbound configuration for SMS.static interfaceContains information about the SMS outbound mode.static interfaceContains source configuration.static interfaceThe configuration for the telephony channel subtype.static interfaceThe outbound configuration for telephony.static interfaceContains information about telephony outbound mode.static interfaceContains information about a time range.static interfaceContains information about a time window.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.connectcampaignsv2.ICampaignRef
ICampaignRef.Jsii$Default, ICampaignRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnCampaign(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnCampaign(software.amazon.jsii.JsiiObjectRef objRef) CfnCampaign(software.constructs.Construct scope, String id, CfnCampaignProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN).A reference to a Campaign resource.Tag Manager which manages the tags for this resource.Contains channel subtype configuration for an outbound campaign.Communication limits configuration for an outbound campaign.Contains communication time configuration for an outbound campaign.The Amazon Resource Name (ARN) of the Amazon Connect campaign flow associated with the outbound campaign.The identifier of the Amazon Connect instance.getName()The name of the outbound campaign.Contains the schedule configuration.Contains source configuration.getTags()The tags used to organize, track, or control access for this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidContains channel subtype configuration for an outbound campaign.voidContains channel subtype configuration for an outbound campaign.voidCommunication limits configuration for an outbound campaign.voidCommunication limits configuration for an outbound campaign.voidContains communication time configuration for an outbound campaign.voidContains communication time configuration for an outbound campaign.voidsetConnectCampaignFlowArn(String value) The Amazon Resource Name (ARN) of the Amazon Connect campaign flow associated with the outbound campaign.voidsetConnectInstanceId(String value) The identifier of the Amazon Connect instance.voidThe name of the outbound campaign.voidsetSchedule(IResolvable value) Contains the schedule configuration.voidContains the schedule configuration.voidsetSource(IResolvable value) Contains source configuration.voidContains source configuration.voidThe tags used to organize, track, or control access for this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnCampaign
protected CfnCampaign(software.amazon.jsii.JsiiObjectRef objRef) -
CfnCampaign
protected CfnCampaign(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnCampaign
@Stability(Stable) public CfnCampaign(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnCampaignProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN). -
getCampaignRef
A reference to a Campaign resource.- Specified by:
getCampaignRefin interfaceICampaignRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getChannelSubtypeConfig
Contains channel subtype configuration for an outbound campaign.Returns union: either
IResolvableorCfnCampaign.ChannelSubtypeConfigProperty -
setChannelSubtypeConfig
Contains channel subtype configuration for an outbound campaign. -
setChannelSubtypeConfig
@Stability(Stable) public void setChannelSubtypeConfig(@NotNull CfnCampaign.ChannelSubtypeConfigProperty value) Contains channel subtype configuration for an outbound campaign. -
getConnectInstanceId
The identifier of the Amazon Connect instance. -
setConnectInstanceId
The identifier of the Amazon Connect instance. -
getName
The name of the outbound campaign. -
setName
The name of the outbound campaign. -
getCommunicationLimitsOverride
Communication limits configuration for an outbound campaign.Returns union: either
IResolvableorCfnCampaign.CommunicationLimitsConfigProperty -
setCommunicationLimitsOverride
Communication limits configuration for an outbound campaign. -
setCommunicationLimitsOverride
@Stability(Stable) public void setCommunicationLimitsOverride(@Nullable CfnCampaign.CommunicationLimitsConfigProperty value) Communication limits configuration for an outbound campaign. -
getCommunicationTimeConfig
Contains communication time configuration for an outbound campaign.Returns union: either
IResolvableorCfnCampaign.CommunicationTimeConfigProperty -
setCommunicationTimeConfig
Contains communication time configuration for an outbound campaign. -
setCommunicationTimeConfig
@Stability(Stable) public void setCommunicationTimeConfig(@Nullable CfnCampaign.CommunicationTimeConfigProperty value) Contains communication time configuration for an outbound campaign. -
getConnectCampaignFlowArn
The Amazon Resource Name (ARN) of the Amazon Connect campaign flow associated with the outbound campaign. -
setConnectCampaignFlowArn
The Amazon Resource Name (ARN) of the Amazon Connect campaign flow associated with the outbound campaign. -
getSchedule
Contains the schedule configuration.Returns union: either
IResolvableorCfnCampaign.ScheduleProperty -
setSchedule
Contains the schedule configuration. -
setSchedule
Contains the schedule configuration. -
getSource
Contains source configuration.Returns union: either
IResolvableorCfnCampaign.SourceProperty -
setSource
Contains source configuration. -
setSource
Contains source configuration. -
getTags
The tags used to organize, track, or control access for this resource. -
setTags
The tags used to organize, track, or control access for this resource.
-