Skip to content
v2.278.0

CfnCampaignProps Struct ​

Properties for defining a CfnCampaign.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_connectcampaigns as connectcampaigns } from 'aws-cdk-lib';
const cfnCampaignProps: connectcampaigns.CfnCampaignProps = {
  connectInstanceArn: 'connectInstanceArn',
  dialerConfig: {
    agentlessDialerConfig: {
      dialingCapacity: 123,
    },
    predictiveDialerConfig: {
      bandwidthAllocation: 123,

      // the properties below are optional
      dialingCapacity: 123,
    },
    progressiveDialerConfig: {
      bandwidthAllocation: 123,

      // the properties below are optional
      dialingCapacity: 123,
    },
  },
  name: 'name',
  outboundCallConfig: {
    connectContactFlowArn: 'connectContactFlowArn',

    // the properties below are optional
    answerMachineDetectionConfig: {
      enableAnswerMachineDetection: false,

      // the properties below are optional
      awaitAnswerMachinePrompt: false,
    },
    connectQueueArn: 'connectQueueArn',
    connectSourcePhoneNumber: 'connectSourcePhoneNumber',
  },

  // the properties below are optional
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_connectcampaigns as connectcampaigns

cfn_campaign_props = connectcampaigns.CfnCampaignProps(
    connect_instance_arn="connectInstanceArn",
    dialer_config=connectcampaigns.CfnCampaign.DialerConfigProperty(
        agentless_dialer_config=connectcampaigns.CfnCampaign.AgentlessDialerConfigProperty(
            dialing_capacity=123
        ),
        predictive_dialer_config=connectcampaigns.CfnCampaign.PredictiveDialerConfigProperty(
            bandwidth_allocation=123,

            # the properties below are optional
            dialing_capacity=123
        ),
        progressive_dialer_config=connectcampaigns.CfnCampaign.ProgressiveDialerConfigProperty(
            bandwidth_allocation=123,

            # the properties below are optional
            dialing_capacity=123
        )
    ),
    name="name",
    outbound_call_config=connectcampaigns.CfnCampaign.OutboundCallConfigProperty(
        connect_contact_flow_arn="connectContactFlowArn",

        # the properties below are optional
        answer_machine_detection_config=connectcampaigns.CfnCampaign.AnswerMachineDetectionConfigProperty(
            enable_answer_machine_detection=False,

            # the properties below are optional
            await_answer_machine_prompt=False
        ),
        connect_queue_arn="connectQueueArn",
        connect_source_phone_number="connectSourcePhoneNumber"
    ),

    # the properties below are optional
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.connectcampaigns.*;

CfnCampaignProps cfnCampaignProps = CfnCampaignProps.builder()
        .connectInstanceArn("connectInstanceArn")
        .dialerConfig(DialerConfigProperty.builder()
                .agentlessDialerConfig(AgentlessDialerConfigProperty.builder()
                        .dialingCapacity(123)
                        .build())
                .predictiveDialerConfig(PredictiveDialerConfigProperty.builder()
                        .bandwidthAllocation(123)

                        // the properties below are optional
                        .dialingCapacity(123)
                        .build())
                .progressiveDialerConfig(ProgressiveDialerConfigProperty.builder()
                        .bandwidthAllocation(123)

                        // the properties below are optional
                        .dialingCapacity(123)
                        .build())
                .build())
        .name("name")
        .outboundCallConfig(OutboundCallConfigProperty.builder()
                .connectContactFlowArn("connectContactFlowArn")

                // the properties below are optional
                .answerMachineDetectionConfig(AnswerMachineDetectionConfigProperty.builder()
                        .enableAnswerMachineDetection(false)

                        // the properties below are optional
                        .awaitAnswerMachinePrompt(false)
                        .build())
                .connectQueueArn("connectQueueArn")
                .connectSourcePhoneNumber("connectSourcePhoneNumber")
                .build())

        // the properties below are optional
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ConnectCampaigns;

var cfnCampaignProps = new CfnCampaignProps {
    ConnectInstanceArn = "connectInstanceArn",
    DialerConfig = new DialerConfigProperty {
        AgentlessDialerConfig = new AgentlessDialerConfigProperty {
            DialingCapacity = 123
        },
        PredictiveDialerConfig = new PredictiveDialerConfigProperty {
            BandwidthAllocation = 123,

            // the properties below are optional
            DialingCapacity = 123
        },
        ProgressiveDialerConfig = new ProgressiveDialerConfigProperty {
            BandwidthAllocation = 123,

            // the properties below are optional
            DialingCapacity = 123
        }
    },
    Name = "name",
    OutboundCallConfig = new OutboundCallConfigProperty {
        ConnectContactFlowArn = "connectContactFlowArn",

        // the properties below are optional
        AnswerMachineDetectionConfig = new AnswerMachineDetectionConfigProperty {
            EnableAnswerMachineDetection = false,

            // the properties below are optional
            AwaitAnswerMachinePrompt = false
        },
        ConnectQueueArn = "connectQueueArn",
        ConnectSourcePhoneNumber = "connectSourcePhoneNumber"
    },

    // the properties below are optional
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnCampaignProps := &CfnCampaignProps{
	ConnectInstanceArn: jsii.String("connectInstanceArn"),
	DialerConfig: &DialerConfigProperty{
		AgentlessDialerConfig: &AgentlessDialerConfigProperty{
			DialingCapacity: jsii.Number(123),
		},
		PredictiveDialerConfig: &PredictiveDialerConfigProperty{
			BandwidthAllocation: jsii.Number(123),

			// the properties below are optional
			DialingCapacity: jsii.Number(123),
		},
		ProgressiveDialerConfig: &ProgressiveDialerConfigProperty{
			BandwidthAllocation: jsii.Number(123),

			// the properties below are optional
			DialingCapacity: jsii.Number(123),
		},
	},
	Name: jsii.String("name"),
	OutboundCallConfig: &OutboundCallConfigProperty{
		ConnectContactFlowArn: jsii.String("connectContactFlowArn"),

		// the properties below are optional
		AnswerMachineDetectionConfig: &AnswerMachineDetectionConfigProperty{
			EnableAnswerMachineDetection: jsii.Boolean(false),

			// the properties below are optional
			AwaitAnswerMachinePrompt: jsii.Boolean(false),
		},
		ConnectQueueArn: jsii.String("connectQueueArn"),
		ConnectSourcePhoneNumber: jsii.String("connectSourcePhoneNumber"),
	},

	// the properties below are optional
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

connectInstanceArnstringconnect_instance_arnstrconnectInstanceArnStringConnectInstanceArnstringConnectInstanceArn*string required #
The Amazon Resource Name (ARN) of the Amazon Connect instance.
dialerConfigIResolvable | CfnCampaign.DialerConfigPropertydialer_configtyping.Union[IResolvable, DialerConfigProperty]dialerConfigIResolvableDialerConfigIResolvableDialerConfiginterface{} required #
Contains information about the dialer configuration.
namestringnamestrnameStringNamestringName*string required #
The name of the campaign.
outboundCallConfigIResolvable | CfnCampaign.OutboundCallConfigPropertyoutbound_call_configtyping.Union[IResolvable, OutboundCallConfigProperty]outboundCallConfigIResolvableOutboundCallConfigIResolvableOutboundCallConfiginterface{} required #
Contains information about the outbound call configuration.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags used to organize, track, or control access for this resource.

For example, { "tags": {"key1":"value1", "key2":"value2"} }.