Skip to main content

odb_networks

Creates, updates, deletes or gets an odb_network resource or lists odb_networks in a region

Overview

Nameodb_networks
TypeResource
DescriptionThe AWS::ODB::OdbNetwork resource creates an ODB Network
Idawscc.odb.odb_networks

Fields

NameDatatypeDescription
availability_zonestringThe AWS Availability Zone (AZ) where the ODB network is located.
availability_zone_idstringThe AZ ID of the AZ where the ODB network is located.
backup_subnet_cidrstringThe CIDR range of the backup subnet in the ODB network.
client_subnet_cidrstringThe CIDR range of the client subnet in the ODB network.
default_dns_prefixstringThe DNS prefix to the default DNS domain name. The default DNS domain name is oraclevcn.com.
delete_associated_resourcesbooleanSpecifies whether to delete associated OCI networking resources along with the ODB network.
display_namestringThe user-friendly name of the ODB network.
oci_network_anchor_idstringThe unique identifier of the OCI network anchor for the ODB network.
oci_resource_anchor_namestringThe name of the OCI resource anchor that's associated with the ODB network.
oci_vcn_urlstringThe URL for the VCN that's associated with the ODB network.
odb_network_arnstringThe Amazon Resource Name (ARN) of the ODB network.
odb_network_idstringThe unique identifier of the ODB network.
tagsarrayTags to assign to the Odb Network.
regionstringAWS region.

For more information, see AWS::ODB::OdbNetwork.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual odb_network.

SELECT
region,
availability_zone,
availability_zone_id,
backup_subnet_cidr,
client_subnet_cidr,
default_dns_prefix,
delete_associated_resources,
display_name,
oci_network_anchor_id,
oci_resource_anchor_name,
oci_vcn_url,
odb_network_arn,
odb_network_id,
tags
FROM awscc.odb.odb_networks
WHERE region = 'us-east-1' AND data__Identifier = '<OdbNetworkArn>';

INSERT example

Use the following StackQL query and manifest file to create a new odb_network resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.odb.odb_networks (
AvailabilityZone,
AvailabilityZoneId,
BackupSubnetCidr,
ClientSubnetCidr,
DefaultDnsPrefix,
DeleteAssociatedResources,
DisplayName,
Tags,
region
)
SELECT
'{{ AvailabilityZone }}',
'{{ AvailabilityZoneId }}',
'{{ BackupSubnetCidr }}',
'{{ ClientSubnetCidr }}',
'{{ DefaultDnsPrefix }}',
'{{ DeleteAssociatedResources }}',
'{{ DisplayName }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.odb.odb_networks
WHERE data__Identifier = '<OdbNetworkArn>'
AND region = 'us-east-1';

Permissions

To operate on the odb_networks resource, the following permissions are required:

Create

odb:CreateOdbNetwork,
odb:TagResource,
ec2:DescribeAvailabilityZones,
iam:CreateServiceLinkedRole,
ec2:DescribeVpcs,
ec2:CreateOdbNetworkPeering,
odb:ListTagsForResource,
sts:GetCallerIdentity,
odb:GetOdbNetwork,
odb:ListOdbNetworks,
odb:UpdateOdbNetwork,
vpc-lattice:CreateServiceNetwork,
vpc-lattice:GetServiceNetwork,
vpc-lattice:CreateServiceNetworkResourceAssociation,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:CreateResourceGateway,
vpc-lattice:GetResourceGateway,
vpc-lattice:CreateServiceNetworkVpcEndpointAssociation,
redshiftchannelmanagement:CreateChannel,
ec2:ModifyOdbNetworkPeering,
ec2:DescribeVpcEndpointAssociations,
ec2:CreateVpcEndpoint,
ec2:DescribeVpcEndpoints,
ec2:CreateTags

Read

odb:GetOdbNetwork,
odb:ListOdbNetworks,
odb:ListTagsForResource,
sts:GetCallerIdentity,
vpc-lattice:GetServiceNetwork,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:GetResourceGateway,
ec2:DescribeVpcEndpointAssociations,
ec2:DescribeVpcEndpoints

Update

odb:UpdateOdbNetwork,
odb:TagResource,
odb:UntagResource,
ec2:DescribeVpcs,
ec2:CreateOdbNetworkPeering,
ec2:DeleteOdbNetworkPeering,
odb:ListTagsForResource,
sts:GetCallerIdentity,
odb:GetOdbNetwork,
odb:ListOdbNetworks,
vpc-lattice:GetServiceNetwork,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:GetResourceGateway,
ec2:DescribeVpcEndpointAssociations,
ec2:DescribeVpcEndpoints

Delete

odb:DeleteOdbNetwork,
ec2:DeleteOdbNetworkPeering,
ec2:DescribeVpcs,
odb:ListTagsForResource,
sts:GetCallerIdentity,
odb:GetOdbNetwork,
odb:ListOdbNetworks,
vpc-lattice:DeleteServiceNetwork,
vpc-lattice:GetServiceNetwork,
vpc-lattice:DeleteServiceNetworkResourceAssociation,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:DeleteResourceGateway,
vpc-lattice:GetResourceGateway,
ec2:ModifyOdbNetworkPeering,
ec2:DescribeVpcEndpointAssociations,
ec2:DeleteVpcEndpoints,
ec2:DescribeVpcEndpoints

List

odb:ListOdbNetworks,
odb:ListTagsForResource,
sts:GetCallerIdentity,
vpc-lattice:GetServiceNetwork,
vpc-lattice:GetServiceNetworkResourceAssociation,
vpc-lattice:GetResourceGateway,
ec2:DescribeVpcEndpointAssociations,
ec2:DescribeVpcEndpoints