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
6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 | |