-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for parameter manager regional parameters datasource `goo…
…gle_parameter_manager_regional_parameters` (#12651) (#20958) [upstream:eae83792920ab7e4acc6f5e65c06413c8ecbd7d9] Signed-off-by: Modular Magician <magic-modules@google.com>
- Loading branch information
1 parent
b06c600
commit 7a78213
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:new-datasource | ||
`google_parameter_manager_regional_parameters` | ||
``` |
3 changes: 3 additions & 0 deletions
3
...le/services/parametermanagerregional/data_source_parameter_manager_regional_parameters.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
3 changes: 3 additions & 0 deletions
3
...rvices/parametermanagerregional/data_source_parameter_manager_regional_parameters_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
67
website/docs/d/parameter_manager_regional_parameters.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}` |