Skip to content

Commit

Permalink
Add support for parameter manager regional parameters datasource `goo…
Browse files Browse the repository at this point in the history
…gle_parameter_manager_regional_parameters` (#12651) (#20958)

[upstream:eae83792920ab7e4acc6f5e65c06413c8ecbd7d9]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Jan 17, 2025
1 parent b06c600 commit 7a78213
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/12651.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-datasource
`google_parameter_manager_regional_parameters`
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package parametermanagerregional
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package parametermanagerregional_test
67 changes: 67 additions & 0 deletions website/docs/d/parameter_manager_regional_parameters.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
---
subcategory: "Parameter Manager"
description: |-
List the Parameter Manager Regional Parameters.
---

# google_parameter_manager_regional_parameters

Use this data source to list the Parameter Manager Regional Parameters

~> **Warning:** This datasource 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 datasources.

## Example Usage

```hcl
data "google_parameter_manager_regional_parameters" "regional-parameters" {
location = "us-central1"
}
```

## Argument Reference

The following arguments are supported:

- `project` - (optional) The ID of the project.

- `filter` - (optional) Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all regional parameters are listed.

- `location` - (Required) The location of regional parameter.


## Attributes Reference

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

- `parameters` - A list of regional parameters matching the filter. Structure is [defined below](#nested_parameters).

<a name="nested_parameters"></a>The `parameters` block supports:

- `format` - The format type of the regional parameter.

- `labels` - The labels assigned to the regional parameter.

- `create_time` - The time at which the regional parameter was created.

- `update_time` - The time at which the regional parameter was updated.

- `project` - The ID of the project in which the resource belongs.

- `parameter_id` - The unique name of the resource.

- `name` - The resource name of the regional parameter. Format: `projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}`

- `policy_member` - An object containing a unique resource identity tied to the regional parameter. Structure is [documented below](#nested_policy_member).

<a name="nested_policy_member"></a>The `policy_member` block contains:

* `iam_policy_uid_principal` - IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier.
If a resource is deleted and recreated with the same name, the binding will not be applicable to the
new resource. Format:
`principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}`

* `iam_policy_name_principal` - AM policy binding member referring to a Google Cloud resource by user-assigned name. If a resource is deleted and recreated with the same name, the binding will be applicable to the
new resource. Format:
`principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}`

0 comments on commit 7a78213

Please sign in to comment.