create_subscriber
async
¶
create_subscriber(
name: SubscriberName,
event_bus_arn: EventBusArn,
invoke_configuration: InvokeConfiguration,
*,
config_overrides: Optional[AsyncEventBridgeV2ClientConfig] = None,
description: Optional[Description] = None,
filter_configuration: Optional[FilterConfiguration] = None,
type: Optional[OrderingType] = None,
starting_position: Optional[StartingPosition] = None,
point_in_time_configuration: Optional[PointInTimeConfiguration] = None,
batch_configuration: Optional[BatchConfiguration] = None,
transformer: Optional[Transformer] = None,
retry_policy: Optional[RetryPolicy] = None,
on_failure_configuration: Optional[OnFailureConfiguration] = None,
log_configuration: Optional[LogConfiguration] = None,
state: Optional[SubscriberState] = None,
tags: Optional[TagMap] = None,
client_token: Optional[ClientToken] = None,
) -> CreateSubscriberResponse
Creates a subscriber on an event bus, which delivers matching events to the configured target. The bus must be ACTIVE. Retries carrying the same ClientToken are idempotent.
Parameters:
-
transformer(Optional[Transformer], default:None) –Not applicable to universal (aws-sdk) targets, whose input transformation is UniversalTargetParameters.Input; a Transformer on such a target is rejected.
Raises:
-
AccessDeniedException–The caller does not have the permissions required to perform the operation. This error is also returned when the operation cannot use the AWS KMS key for the event bus.
-
InternalException–The request failed because of an internal service error. Retry the request.
-
InvalidInputException–A request parameter is missing or not valid.
-
ThrottlingException–The request was throttled because it exceeds a request rate limit. Retry the request with backoff.
-
ConcurrentModificationException–Another change to the resource is already in progress. Retry the request.
-
IdempotentParameterMismatchException–The request reuses the client token of an earlier request with different parameters. Use a new client token, or resend the earlier request unchanged.
-
InvalidStateException–The resource is not in a state that allows the operation. For example, an event bus that is still being created cannot accept events.
-
LimitExceededException–The request would exceed a service quota for the account.
-
ResourceAlreadyExistsException–A resource with the same name already exists.
-
ResourceNotFoundException–The resource does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_eventbridgev2/_services/async_event_bridge_v2.py
407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 | |