Skip to content

Commit 6b6a987

Browse files
Add Intercept Deployment Group resource to Network Security. (#12486) (#20615)
[upstream:a958fc42816f98b5df72cfde47ffa52ba578f923] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 1f8da7d commit 6b6a987

File tree

3 files changed

+177
-0
lines changed

3 files changed

+177
-0
lines changed

.changelog/12486.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:new-resource
2+
`google_network_security_intercept_deployment_group`
3+
```
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 networksecurity_test
Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
---
2+
# ----------------------------------------------------------------------------
3+
#
4+
# *** AUTO GENERATED CODE *** Type: MMv1 ***
5+
#
6+
# ----------------------------------------------------------------------------
7+
#
8+
# This file is automatically generated by Magic Modules and manual
9+
# changes will be clobbered when the file is regenerated.
10+
#
11+
# Please read more about how to change this file in
12+
# .github/CONTRIBUTING.md.
13+
#
14+
# ----------------------------------------------------------------------------
15+
subcategory: "Network security"
16+
description: |-
17+
A Deployment Group represents the collector deployments across different zones within an organization.
18+
---
19+
20+
# google_network_security_intercept_deployment_group
21+
22+
A Deployment Group represents the collector deployments across different zones within an organization.
23+
24+
~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider.
25+
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta resources.
26+
27+
28+
<div class = "oics-button" style="float: right; margin: 0 0 -15px">
29+
<a href="https://console.cloud.google.com/cloudshell/open?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Fterraform-google-modules%2Fdocs-examples.git&cloudshell_image=gcr.io%2Fcloudshell-images%2Fcloudshell%3Alatest&cloudshell_print=.%2Fmotd&cloudshell_tutorial=.%2Ftutorial.md&cloudshell_working_dir=network_security_intercept_deployment_group_basic&open_in_editor=main.tf" target="_blank">
30+
<img alt="Open in Cloud Shell" src="//gstatic.com/cloudssh/images/open-btn.svg" style="max-height: 44px; margin: 32px auto; max-width: 100%;">
31+
</a>
32+
</div>
33+
## Example Usage - Network Security Intercept Deployment Group Basic
34+
35+
36+
```hcl
37+
resource "google_compute_network" "network" {
38+
provider = google-beta
39+
name = "example-network"
40+
auto_create_subnetworks = false
41+
}
42+
43+
resource "google_network_security_intercept_deployment_group" "default" {
44+
provider = google-beta
45+
intercept_deployment_group_id = "example-dg"
46+
location = "global"
47+
network = google_compute_network.network.id
48+
labels = {
49+
foo = "bar"
50+
}
51+
}
52+
```
53+
54+
## Argument Reference
55+
56+
The following arguments are supported:
57+
58+
59+
* `network` -
60+
(Required)
61+
Required. Immutable. The network that is being used for the deployment. Format is:
62+
projects/{project}/global/networks/{network}.
63+
64+
* `location` -
65+
(Required)
66+
Resource ID segment making up resource `name`. It identifies the resource within its parent collection as described in https://google.aip.dev/122. See documentation for resource type `networksecurity.googleapis.com/InterceptDeploymentGroup`.
67+
68+
* `intercept_deployment_group_id` -
69+
(Required)
70+
Required. Id of the requesting object
71+
If auto-generating Id server-side, remove this field and
72+
intercept_deployment_group_id from the method_signature of Create RPC
73+
74+
75+
- - -
76+
77+
78+
* `labels` -
79+
(Optional)
80+
Optional. Labels as key value pairs
81+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
82+
Please refer to the field `effective_labels` for all of the labels present on the resource.
83+
84+
* `project` - (Optional) The ID of the project in which the resource belongs.
85+
If it is not provided, the provider project is used.
86+
87+
88+
## Attributes Reference
89+
90+
In addition to the arguments listed above, the following computed attributes are exported:
91+
92+
* `id` - an identifier for the resource with format `projects/{{project}}/locations/{{location}}/interceptDeploymentGroups/{{intercept_deployment_group_id}}`
93+
94+
* `name` -
95+
Output only. Identifier. Then name of the InterceptDeploymentGroup.
96+
97+
* `create_time` -
98+
Output only. [Output only] Create time stamp
99+
100+
* `update_time` -
101+
Output only. [Output only] Update time stamp
102+
103+
* `connected_endpoint_groups` -
104+
Output only. The list of Intercept Endpoint Groups that are connected to this resource.
105+
Structure is [documented below](#nested_connected_endpoint_groups).
106+
107+
* `state` -
108+
Output only. Current state of the deployment group.
109+
Possible values:
110+
STATE_UNSPECIFIED
111+
ACTIVE
112+
CREATING
113+
DELETING
114+
115+
* `reconciling` -
116+
Output only. Whether reconciling is in progress, recommended per
117+
https://google.aip.dev/128.
118+
119+
* `terraform_labels` -
120+
The combination of labels configured directly on the resource
121+
and default labels configured on the provider.
122+
123+
* `effective_labels` -
124+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
125+
126+
127+
<a name="nested_connected_endpoint_groups"></a>The `connected_endpoint_groups` block contains:
128+
129+
* `name` -
130+
(Output)
131+
Output only. A connected intercept endpoint group.
132+
133+
## Timeouts
134+
135+
This resource provides the following
136+
[Timeouts](https://developer.hashicorp.com/terraform/plugin/sdkv2/resources/retries-and-customizable-timeouts) configuration options:
137+
138+
- `create` - Default is 20 minutes.
139+
- `update` - Default is 20 minutes.
140+
- `delete` - Default is 20 minutes.
141+
142+
## Import
143+
144+
145+
InterceptDeploymentGroup can be imported using any of these accepted formats:
146+
147+
* `projects/{{project}}/locations/{{location}}/interceptDeploymentGroups/{{intercept_deployment_group_id}}`
148+
* `{{project}}/{{location}}/{{intercept_deployment_group_id}}`
149+
* `{{location}}/{{intercept_deployment_group_id}}`
150+
151+
152+
In Terraform v1.5.0 and later, use an [`import` block](https://developer.hashicorp.com/terraform/language/import) to import InterceptDeploymentGroup using one of the formats above. For example:
153+
154+
```tf
155+
import {
156+
id = "projects/{{project}}/locations/{{location}}/interceptDeploymentGroups/{{intercept_deployment_group_id}}"
157+
to = google_network_security_intercept_deployment_group.default
158+
}
159+
```
160+
161+
When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), InterceptDeploymentGroup can be imported using one of the formats above. For example:
162+
163+
```
164+
$ terraform import google_network_security_intercept_deployment_group.default projects/{{project}}/locations/{{location}}/interceptDeploymentGroups/{{intercept_deployment_group_id}}
165+
$ terraform import google_network_security_intercept_deployment_group.default {{project}}/{{location}}/{{intercept_deployment_group_id}}
166+
$ terraform import google_network_security_intercept_deployment_group.default {{location}}/{{intercept_deployment_group_id}}
167+
```
168+
169+
## User Project Overrides
170+
171+
This resource supports [User Project Overrides](https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/provider_reference#user_project_override).

0 commit comments

Comments
 (0)