Skip to main content

config

Creates, updates, deletes, gets or lists a config resource.

Overview

Nameconfig
TypeResource
Idgoogle.dataform.config

Fields

NameDatatypeDescription
namestringIdentifier. The config name.
defaultKmsKeyNamestringOptional. The default KMS key that is used if no encryption key is provided when a repository is created.

Methods

NameAccessible byRequired ParamsDescription
get_configSELECTlocationsId, projectsIdGet default config for a given project and location.
update_configUPDATElocationsId, projectsIdUpdate default config for a given project and location.

SELECT examples

Get default config for a given project and location.

SELECT
name,
defaultKmsKeyName
FROM google.dataform.config
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

UPDATE example

Updates a config resource.

/*+ update */
UPDATE google.dataform.config
SET
name = '{{ name }}',
defaultKmsKeyName = '{{ defaultKmsKeyName }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';