Skip to content

Commit a7baf6f

Browse files
feat: implementation for iam resources on google_iam_workforce_pool (#13861)
1 parent 19eaf72 commit a7baf6f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

mmv1/products/iamworkforcepool/WorkforcePool.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,32 @@ custom_code:
5050
exclude_sweeper: true
5151
examples:
5252
- name: 'iam_workforce_pool_basic'
53+
primary_resource_name: 'fmt.Sprintf("tf-test-example-pool%s", context["random_suffix"])'
5354
primary_resource_id: 'example'
55+
region_override: 'global'
5456
vars:
5557
workforce_pool_id: 'example-pool'
5658
test_env_vars:
5759
org_id: 'ORG_ID'
5860
- name: 'iam_workforce_pool_full'
61+
primary_resource_name: 'fmt.Sprintf("tf-test-example-pool%s", context["random_suffix"])'
5962
primary_resource_id: 'example'
63+
region_override: 'global'
6064
vars:
6165
workforce_pool_id: 'example-pool'
6266
test_env_vars:
6367
org_id: 'ORG_ID'
68+
iam_policy:
69+
parent_resource_attribute: 'workforce_pool_id'
70+
method_name_separator: ':'
71+
example_config_body: 'templates/terraform/iam/iam_attributes.go.tmpl'
72+
allowed_iam_role: 'roles/iam.workforcePoolViewer'
73+
admin_iam_role: 'roles/iam.workforcePoolAdmin'
74+
fetch_iam_policy_verb: 'POST'
75+
import_format:
76+
- 'locations/{{location}}/workforcePools/{{workforce_pool_id}}'
77+
- '{{workforce_pool_id}}'
6478
parameters:
65-
properties:
6679
- name: 'location'
6780
type: String
6881
description: The location for the resource.
@@ -80,6 +93,7 @@ properties:
8093
immutable: true
8194
validation:
8295
function: 'ValidateWorkforcePoolId'
96+
properties:
8397
- name: 'name'
8498
type: String
8599
description: |

0 commit comments

Comments
 (0)