Skip to main content

vpc_endpoints

Operations on a vpc_endpoints resource.

Overview

Namevpc_endpoints
TypeResource
Iddatabricks_account.provisioning.vpc_endpoints

Fields

NameDatatype
account_idstring
aws_account_idstring
aws_endpoint_service_idstring
aws_vpc_endpoint_idstring
regionstring
statestring
use_casestring
vpc_endpoint_idstring
vpc_endpoint_namestring

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccount_id, vpc_endpoint_idGets a VPC endpoint configuration, which represents a
listSELECTaccount_idGets a list of all VPC endpoints for an account, specified by ID.
createINSERTaccount_idCreates a VPC endpoint configuration, which represents a
deleteDELETEaccount_id, vpc_endpoint_idDeletes a VPC endpoint configuration, which represents an

SELECT examples

SELECT
account_id,
aws_account_id,
aws_endpoint_service_id,
aws_vpc_endpoint_id,
region,
state,
use_case,
vpc_endpoint_id,
vpc_endpoint_name
FROM databricks_account.provisioning.vpc_endpoints
WHERE account_id = '{{ account_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new vpc_endpoints resource.

/*+ create */
INSERT INTO databricks_account.provisioning.vpc_endpoints (
account_id,
data__vpc_endpoint_name,
data__aws_vpc_endpoint_id,
data__region
)
SELECT
'{{ account_id }}',
'{{ vpc_endpoint_name }}',
'{{ aws_vpc_endpoint_id }}',
'{{ region }}'
;

DELETE example

Deletes a vpc_endpoints resource.

/*+ delete */
DELETE FROM databricks_account.provisioning.vpc_endpoints
WHERE account_id = '{{ account_id }}' AND
vpc_endpoint_id = '{{ vpc_endpoint_id }}';