Skip to content

Commit

Permalink
Add Vertex ML Metadata Store (#4951) (#10657)
Browse files Browse the repository at this point in the history
Co-authored-by: upodroid <[email protected]>
Co-authored-by: Cameron Thornton <[email protected]>
Signed-off-by: Modular Magician <[email protected]>

Co-authored-by: upodroid <[email protected]>
Co-authored-by: Cameron Thornton <[email protected]>
  • Loading branch information
3 people authored Nov 30, 2021
1 parent f5c8bb9 commit acd5746
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/4951.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
`google_vertex_ai_metadata_store`
```
1 change: 1 addition & 0 deletions google/resource_vertex_ai_metadata_store_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package google
128 changes: 128 additions & 0 deletions website/docs/r/vertex_ai_metadata_store.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
---
# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** Type: MMv1 ***
#
# ----------------------------------------------------------------------------
#
# This file is automatically generated by Magic Modules and manual
# changes will be clobbered when the file is regenerated.
#
# Please read more about how to change this file in
# .github/CONTRIBUTING.md.
#
# ----------------------------------------------------------------------------
subcategory: "Vertex AI"
layout: "google"
page_title: "Google: google_vertex_ai_metadata_store"
sidebar_current: "docs-google-vertex-ai-metadata-store"
description: |-
Instance of a metadata store.
---

# google\_vertex\_ai\_metadata\_store

Instance of a metadata store. Contains a set of metadata that can be queried.

~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.

To get more information about MetadataStore, see:

* [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.metadataStores)
* How-to Guides
* [Official Documentation](https://cloud.google.com/vertex-ai/docs)

## Example Usage - Vertex Ai Metadata Store


```hcl
resource "google_vertex_ai_metadata_store" "dataset" {
name = "tf-test-"
description = "magic"
region = "us-central1"
}
```

## Argument Reference

The following arguments are supported:



- - -


* `name` -
(Optional)
The name of the MetadataStore. This value may be up to 60 characters, and valid characters are [a-z0-9_]. The first character cannot be a number.

* `description` -
(Optional)
Description of the MetadataStore.

* `encryption_spec` -
(Optional)
Customer-managed encryption key spec for a Dataset. If set, this MetadataStore and all sub-resources of this MetadataStore will be secured by this key.
Structure is [documented below](#nested_encryption_spec).

* `region` -
(Optional)
The region of the Metadata Store. eg us-central1

* `project` - (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.


<a name="nested_encryption_spec"></a>The `encryption_spec` block supports:

* `kms_key_name` -
(Optional)
Required. The Cloud KMS resource identifier of the customer managed encryption key used to protect a resource.
Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. The key needs to be in the same region as where the resource is created.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `id` - an identifier for the resource with format `{{name}}`

* `create_time` -
The timestamp of when the MetadataStore was created in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.

* `update_time` -
The timestamp of when the MetadataStore was last updated in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits.

* `state` -
State information of the MetadataStore.
Structure is [documented below](#nested_state).


<a name="nested_state"></a>The `state` block contains:

* `disk_utilization_bytes` -
The disk utilization of the MetadataStore in bytes.

## Timeouts

This resource provides the following
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:

- `create` - Default is 15 minutes.
- `delete` - Default is 15 minutes.

## Import


MetadataStore can be imported using any of these accepted formats:

```
$ terraform import google_vertex_ai_metadata_store.default projects/{{project}}/locations/{{region}}/metadataStores/{{name}}
$ terraform import google_vertex_ai_metadata_store.default {{project}}/{{region}}/{{name}}
$ terraform import google_vertex_ai_metadata_store.default {{region}}/{{name}}
$ terraform import google_vertex_ai_metadata_store.default {{name}}
```

## User Project Overrides

This resource supports [User Project Overrides](https://www.terraform.io/docs/providers/google/guides/provider_reference.html#user_project_override).
4 changes: 4 additions & 0 deletions website/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3141,6 +3141,10 @@
<a href="/docs/providers/google/r/vertex_ai_featurestore_entitytype.html">google_vertex_ai_featurestore_entitytype</a>
</li>

<li>
<a href="/docs/providers/google/r/vertex_ai_metadata_store.html">google_vertex_ai_metadata_store</a>
</li>

</ul>
</li>
</ul>
Expand Down

0 comments on commit acd5746

Please sign in to comment.