update_pipe
async
¶
update_pipe(
name: PipeName,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncPipesClientConfig] = None,
description: Optional[PipeDescription] = None,
desired_state: Optional[RequestedPipeState] = None,
source_parameters: Optional[UpdatePipeSourceParameters] = None,
enrichment: Optional[OptionalArn] = None,
enrichment_parameters: Optional[PipeEnrichmentParameters] = None,
target: Optional[Arn] = None,
target_parameters: Optional[PipeTargetParameters] = None,
log_configuration: Optional[PipeLogConfigurationParameters] = None,
kms_key_identifier: Optional[KmsKeyIdentifier] = None,
) -> UpdatePipeResponse
Update an existing pipe. When you call UpdatePipe, EventBridge only the updates fields you have specified in the request; the rest remain unchanged. The exception to this is if you modify any Amazon Web Services-service specific fields in the SourceParameters, EnrichmentParameters, or TargetParameters objects. For example, DynamoDBStreamParameters or EventBridgeEventBusParameters. EventBridge updates the fields in these objects atomically as one and overrides existing values. This is by design, and means that if you don't specify an optional field in one of these Parameters objects, EventBridge sets that field to its system-default value during the update.
For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
Parameters:
-
name(PipeName) –The name of the pipe.
-
description(Optional[PipeDescription], default:None) –A description of the pipe.
-
desired_state(Optional[RequestedPipeState], default:None) –The state the pipe should be in.
-
source_parameters(Optional[UpdatePipeSourceParameters], default:None) –The parameters required to set up a source for your pipe.
-
enrichment(Optional[OptionalArn], default:None) –The ARN of the enrichment resource.
-
enrichment_parameters(Optional[PipeEnrichmentParameters], default:None) –The parameters required to set up enrichment on your pipe.
-
target(Optional[Arn], default:None) –The ARN of the target resource.
-
target_parameters(Optional[PipeTargetParameters], default:None) –The parameters required to set up a target for your pipe.
For more information about pipe target parameters, including how to use dynamic path parameters, see Target parameters in the Amazon EventBridge User Guide.
-
role_arn(RoleArn) –The ARN of the role that allows the pipe to send data to the target.
-
log_configuration(Optional[PipeLogConfigurationParameters], default:None) –The logging configuration settings for the pipe.
-
kms_key_identifier(Optional[KmsKeyIdentifier], default:None) –The identifier of the KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt pipe data. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN.
To update a pipe that is using the default Amazon Web Services owned key to use a customer managed key instead, or update a pipe that is using a customer managed key to use a different customer managed key, specify a customer managed key identifier.
To update a pipe that is using a customer managed key to use the default Amazon Web Services owned key, specify an empty string.
For more information, see Managing keys in the Key Management Service Developer Guide.
Raises:
-
ConflictException–An action you attempted resulted in an exception.
-
InternalException–This exception occurs due to unexpected causes.
-
NotFoundException–An entity that you specified does not exist.
-
ThrottlingException–An action was throttled.
-
ValidationException–Indicates that an error has occurred while performing a validate operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pipes/_services/async_pipes.py
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 | |