Skip to content

Commit 92b1068

Browse files
add support to sac-attachment (#15766)
1 parent 217501f commit 92b1068

File tree

2 files changed

+117
-0
lines changed

2 files changed

+117
-0
lines changed
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Copyright 2025 Google Inc.
2+
# Licensed under the Apache License, Version 2.0 (the "License");
3+
# you may not use this file except in compliance with the License.
4+
# You may obtain a copy of the License at
5+
#
6+
# http://www.apache.org/licenses/LICENSE-2.0
7+
#
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
14+
---
15+
name: 'SacAttachment'
16+
description: |
17+
Represents a Secure Access Connect (SAC) attachment resource
18+
references:
19+
guides:
20+
'QUICKSTART_TITLE': 'https://cloud.google.com/secure-access-connect/docs/overview'
21+
api: 'https://cloud.google.com/secure-access-connect/docs/reference/network-security/rest/v1beta1/projects.locations.sacAttachments'
22+
min_version: beta
23+
base_url: 'projects/{{project}}/locations/{{location}}/sacAttachments'
24+
self_link: 'projects/{{project}}/locations/{{location}}/sacAttachments/{{name}}'
25+
immutable: true
26+
create_url: 'projects/{{project}}/locations/{{location}}/sacAttachments?sacAttachmentId={{name}}'
27+
autogen_async: true
28+
async:
29+
operation:
30+
base_url: '{{op_id}}'
31+
examples:
32+
- name: 'sac_attachment_prisma_access'
33+
min_version: beta
34+
exclude_test: true
35+
primary_resource_id: 'default'
36+
vars:
37+
resource_name: 'sac-attachment-name'
38+
ncc_gateway: 'ncc_gateway_spoke_name'
39+
sac_realm: 'sac_realm_name'
40+
parameters:
41+
- name: 'location'
42+
type: String
43+
required: true
44+
immutable: true
45+
url_param_only: true
46+
description: |
47+
The location of the SACAttachment resource. eg us-central1
48+
properties:
49+
- name: 'name'
50+
type: String
51+
required: true
52+
immutable: true
53+
description: |
54+
Identifier. Resource name
55+
custom_flatten: 'templates/terraform/custom_flatten/id_from_name.tmpl'
56+
- name: 'createTime'
57+
type: String
58+
description: Timestamp when the realm was created.
59+
output: true
60+
- name: 'updateTime'
61+
type: String
62+
description: Timestamp when the realm was last updated.
63+
output: true
64+
- name: 'labels'
65+
type: KeyValueLabels
66+
description: |
67+
Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements).
68+
- name: 'sacRealm'
69+
type: String
70+
description: |
71+
SAC Realm which owns the attachment. This can be input as an ID or a full resource name.
72+
required: true
73+
- name: 'nccGateway'
74+
type: String
75+
description: |
76+
NCC Gateway associated with the attachment. This can be input as an ID or a full resource name.
77+
required: true
78+
- name: 'country'
79+
type: String
80+
description: |
81+
Case-insensitive ISO-3166 alpha-2 country code used for localization. Only valid for Symantec attachments.
82+
- name: 'timeZone'
83+
type: String
84+
description: |
85+
Case-sensitive tzinfo identifier used for localization. Only valid for Symantec attachments.
86+
- name: 'symantecOptions'
87+
type: NestedObject
88+
description: Configuration required for Symantec attachments.
89+
properties:
90+
- name: 'symantecSite'
91+
type: String
92+
description: Symantec data center identifier that this attachment will connect to.
93+
immutable: true
94+
- name: 'symantecLocationName'
95+
type: String
96+
description: |
97+
Name to be used when creating a location on the customer's behalf in Symantec's Location API. Not to be confused with Google Cloud locations.
98+
immutable: true
99+
- name: 'state'
100+
type: Enum
101+
description: State of the attachment.
102+
output: true
103+
enum_values:
104+
- 'STATE_UNSPECIFIED'
105+
- 'PENDING_PARTNER_ATTACHMENT'
106+
- 'PARTNER_ATTACHED'
107+
- 'PARTNER_DETACHED'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
resource "google_network_security_sac_attachment" "{{$.PrimaryResourceId}}" {
2+
provider = google-beta
3+
name = "{{index $.Vars "resource_name"}}"
4+
location = "us-central1"
5+
labels = {
6+
label-one = "value-one"
7+
}
8+
ncc_gateway = "{{index $.Vars "ncc_gateway"}}"
9+
sac_realm = "{{index $.Vars "sac_realm"}}"
10+
}

0 commit comments

Comments
 (0)