create_campaign
async
¶
create_campaign(
name: CampaignName,
connect_instance_id: InstanceId,
*,
config_overrides: Optional[AsyncConnectCampaignsV2ClientConfig] = None,
channel_subtype_config: Optional[ChannelSubtypeConfig] = None,
type: Optional[ExternalCampaignType] = None,
source: Optional[Source] = None,
connect_campaign_flow_arn: Optional[Arn] = None,
schedule: Optional[Schedule] = None,
entry_limits_config: Optional[EntryLimitsConfig] = None,
communication_time_config: Optional[CommunicationTimeConfig] = None,
communication_limits_override: Optional[CommunicationLimitsConfig] = None,
tags: Optional[TagMap] = None,
) -> CreateCampaignResponse
Creates a campaign for the specified Amazon Connect account. This API is idempotent.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be processed because of conflict in the current state of the resource.
-
InternalServerException–Request processing failed because of an error or failure with the service.
-
ResourceNotFoundException–The specified resource was not found.
-
ServiceQuotaExceededException–Request would cause a service quota to be exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connectcampaignsv2/_services/async_connect_campaigns_v2.py
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 | |