vpc_endpoints
Operations on a vpc_endpoints
resource.
Overview
Name | vpc_endpoints |
Type | Resource |
Id | databricks_account.provisioning.vpc_endpoints |
Fields
Name | Datatype |
---|---|
account_id | string |
aws_account_id | string |
aws_endpoint_service_id | string |
aws_vpc_endpoint_id | string |
region | string |
state | string |
use_case | string |
vpc_endpoint_id | string |
vpc_endpoint_name | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | account_id, vpc_endpoint_id | Gets a VPC endpoint configuration, which represents a |
list | SELECT | account_id | Gets a list of all VPC endpoints for an account, specified by ID. |
create | INSERT | account_id | Creates a VPC endpoint configuration, which represents a |
delete | DELETE | account_id, vpc_endpoint_id | Deletes a VPC endpoint configuration, which represents an |
SELECT
examples
- vpc_endpoints (list)
- vpc_endpoints (get)
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 }}';
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 }}' AND
vpc_endpoint_id = '{{ vpc_endpoint_id }}';
INSERT
example
Use the following StackQL query and manifest file to create a new vpc_endpoints
resource.
- vpc_endpoints
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: vpc_endpoint_name
value: string
- name: aws_vpc_endpoint_id
value: string
- name: region
value: string
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 }}';