Skip to main content

odb_peering_connections

Creates, updates, deletes, gets or lists an odb_peering_connections resource.

Overview

Nameodb_peering_connections
TypeResource
Idaws.odb.odb_peering_connections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp when the ODB peering connection was created.
display_namestringThe display name of the ODB peering connection.
odb_network_arnstringThe Amazon Resource Name (ARN) of the ODB network that initiated the peering connection.
odb_peering_connection_arnstringThe Amazon Resource Name (ARN) of the ODB peering connection. Example: arn:aws:odb:us-east-1:123456789012:odb-peering-connection/odbpcx-abcdefgh12345678
odb_peering_connection_idstringThe unique identifier of the ODB peering connection. A sample ID is odbpcx-abcdefgh12345678. (pattern: <code>(arn:(?:aws|aws-cn|aws-us-gov|aws-iso-{0,1}[a-z]{0,1}):[a-z0-9-]+:[a-z0-9-]*:[0-9]+:[a-z0-9-]+/[a-zA-Z0-9_.-]{6,64}|[a-zA-Z0-9_.-]{6,64})</code>)
odb_peering_connection_typestringThe type of the ODB peering connection. Valid Values: ODB-VPC | ODB-ODB
peer_network_arnstringThe Amazon Resource Name (ARN) of the peer network.
peer_network_cidrsarrayThe CIDR blocks associated with the peering connection. These CIDR blocks define the IP address ranges that can communicate through the peering connection.
percent_progressnumber (float)The percentage progress of the ODB peering connection creation or deletion.
statusstringThe status of the ODB peering connection. (AVAILABLE, FAILED, PROVISIONING, TERMINATED, TERMINATING, UPDATING, MAINTENANCE_IN_PROGRESS)
status_reasonstringThe reason for the current status of the ODB peering connection.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_odb_peering_connectionselectregionRetrieves information about an ODB peering connection.
list_odb_peering_connectionsselectregionLists all ODB peering connections or those associated with a specific ODB network.
create_odb_peering_connectioninsertregion, odbNetworkId, peerNetworkIdCreates a peering connection between an ODB network and a VPC. A peering connection enables private connectivity between the networks for application-tier communication.
update_odb_peering_connectionupdateregion, odbPeeringConnectionIdModifies the settings of an Oracle Database@Amazon Web Services peering connection. You can update the display name and add or remove CIDR blocks from the peering connection.
delete_odb_peering_connectiondeleteregionDeletes an ODB peering connection. When you delete an ODB peering connection, the underlying VPC peering connection is also deleted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about an ODB peering connection.

SELECT
created_at,
display_name,
odb_network_arn,
odb_peering_connection_arn,
odb_peering_connection_id,
odb_peering_connection_type,
peer_network_arn,
peer_network_cidrs,
percent_progress,
status,
status_reason
FROM aws.odb.odb_peering_connections
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a peering connection between an ODB network and a VPC. A peering connection enables private connectivity between the networks for application-tier communication.

INSERT INTO aws.odb.odb_peering_connections (
odbNetworkId,
peerNetworkId,
displayName,
peerNetworkCidrsToBeAdded,
peerNetworkRouteTableIds,
clientToken,
tags,
region
)
SELECT
'{{ odbNetworkId }}' /* required */,
'{{ peerNetworkId }}' /* required */,
'{{ displayName }}',
'{{ peerNetworkCidrsToBeAdded }}',
'{{ peerNetworkRouteTableIds }}',
'{{ clientToken }}',
'{{ tags }}',
'{{ region }}'
RETURNING
display_name,
odb_peering_connection_id,
status,
status_reason
;

UPDATE examples

Modifies the settings of an Oracle Database@Amazon Web Services peering connection. You can update the display name and add or remove CIDR blocks from the peering connection.

UPDATE aws.odb.odb_peering_connections
SET
odbPeeringConnectionId = '{{ odbPeeringConnectionId }}',
displayName = '{{ displayName }}',
peerNetworkCidrsToBeAdded = '{{ peerNetworkCidrsToBeAdded }}',
peerNetworkCidrsToBeRemoved = '{{ peerNetworkCidrsToBeRemoved }}'
WHERE
region = '{{ region }}' --required
AND odbPeeringConnectionId = '{{ odbPeeringConnectionId }}' --required
RETURNING
display_name,
odb_peering_connection_id,
status,
status_reason;

DELETE examples

Deletes an ODB peering connection. When you delete an ODB peering connection, the underlying VPC peering connection is also deleted.

DELETE FROM aws.odb.odb_peering_connections
WHERE region = '{{ region }}' --required
;