gcp.spanner-database-instance

GCP resource: https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases

Filters

Actions

delete

The action is used for databases deleting.

GCP action is https://cloud.google.com/spanner/docs

/reference/rest/v1/projects.instances.databases/dropDatabase.

Example

policies:
  - name: gcp-spanner-instance-databases-delete
    resource: gcp.spanner-database-instance
    filters:
      - type: value
        key: name
        op: contains
        value: dev
    actions:
      - type: delete
properties:
  type:
    enum:
    - delete
required:
- type