create_odb_peering_connection
async
¶
create_odb_peering_connection(
odb_network_id: ResourceIdOrArn,
peer_network_id: ResourceIdOrArn,
*,
config_overrides: Optional[AsyncodbClientConfig] = None,
display_name: Optional[ResourceDisplayName] = None,
peer_network_cidrs_to_be_added: Optional[PeeredCidrList] = None,
peer_network_route_table_ids: Optional[PeerNetworkRouteTableIdList] = None,
client_token: Optional[GeneralInputString] = None,
tags: Optional[RequestTagMap] = None,
) -> CreateOdbPeeringConnectionOutput
Creates a peering connection between an ODB network and a VPC.
A peering connection enables private connectivity between the networks for application-tier communication.
Parameters:
-
odb_network_id(ResourceIdOrArn) –The unique identifier of the ODB network that initiates the peering connection.
-
peer_network_id(ResourceIdOrArn) –The unique identifier of the peer network. This can be either a VPC ID or another ODB network ID.
-
display_name(Optional[ResourceDisplayName], default:None) –The display name for the ODB peering connection.
-
peer_network_cidrs_to_be_added(Optional[PeeredCidrList], default:None) –A list of CIDR blocks to add to the peering connection. These CIDR blocks define the IP address ranges that can communicate through the peering connection.
-
peer_network_route_table_ids(Optional[PeerNetworkRouteTableIdList], default:None) –The unique identifier of the VPC route table for which a route to the ODB network is automatically created during peering connection establishment.
-
client_token(Optional[GeneralInputString], default:None) –The client token for the ODB peering connection request.
Constraints:
-
Must be unique for each request.
-
-
tags(Optional[RequestTagMap], default:None) –The tags to assign to the ODB peering connection.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action. Make sure you have the required permissions and try again.
-
ConflictException–Occurs when a conflict with the current status of your resource. Fix any inconsistencies with your resource and try again.
-
InternalServerException–Occurs when there is an internal failure in the Oracle Database@Amazon Web Services service. Wait and try again.
-
ResourceNotFoundException–The operation tried to access a resource that doesn't exist. Make sure you provided the correct resource and try again.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The request has failed validation because it is missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_odb/_services/async_odb.py
6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 | |