Skip to content

Commit 7a78213

Browse files
Add support for parameter manager regional parameters datasource google_parameter_manager_regional_parameters (#12651) (#20958)
[upstream:eae83792920ab7e4acc6f5e65c06413c8ecbd7d9] Signed-off-by: Modular Magician <[email protected]>
1 parent b06c600 commit 7a78213

File tree

4 files changed

+76
-0
lines changed

4 files changed

+76
-0
lines changed

.changelog/12651.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:new-datasource
2+
`google_parameter_manager_regional_parameters`
3+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
package parametermanagerregional
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
package parametermanagerregional_test
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
subcategory: "Parameter Manager"
3+
description: |-
4+
List the Parameter Manager Regional Parameters.
5+
---
6+
7+
# google_parameter_manager_regional_parameters
8+
9+
Use this data source to list the Parameter Manager Regional Parameters
10+
11+
~> **Warning:** This datasource is in beta, and should be used with the terraform-provider-google-beta provider.
12+
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta datasources.
13+
14+
## Example Usage
15+
16+
```hcl
17+
data "google_parameter_manager_regional_parameters" "regional-parameters" {
18+
location = "us-central1"
19+
}
20+
```
21+
22+
## Argument Reference
23+
24+
The following arguments are supported:
25+
26+
- `project` - (optional) The ID of the project.
27+
28+
- `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.
29+
30+
- `location` - (Required) The location of regional parameter.
31+
32+
33+
## Attributes Reference
34+
35+
In addition to the arguments listed above, the following computed attributes are
36+
exported:
37+
38+
- `parameters` - A list of regional parameters matching the filter. Structure is [defined below](#nested_parameters).
39+
40+
<a name="nested_parameters"></a>The `parameters` block supports:
41+
42+
- `format` - The format type of the regional parameter.
43+
44+
- `labels` - The labels assigned to the regional parameter.
45+
46+
- `create_time` - The time at which the regional parameter was created.
47+
48+
- `update_time` - The time at which the regional parameter was updated.
49+
50+
- `project` - The ID of the project in which the resource belongs.
51+
52+
- `parameter_id` - The unique name of the resource.
53+
54+
- `name` - The resource name of the regional parameter. Format: `projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}`
55+
56+
- `policy_member` - An object containing a unique resource identity tied to the regional parameter. Structure is [documented below](#nested_policy_member).
57+
58+
<a name="nested_policy_member"></a>The `policy_member` block contains:
59+
60+
* `iam_policy_uid_principal` - IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier.
61+
If a resource is deleted and recreated with the same name, the binding will not be applicable to the
62+
new resource. Format:
63+
`principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}`
64+
65+
* `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
66+
new resource. Format:
67+
`principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}`

0 commit comments

Comments
 (0)