pulumi-gcp 7.27.0__py3-none-any.whl → 7.27.0a1718086610__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. pulumi_gcp/__init__.py +0 -32
  2. pulumi_gcp/appengine/_inputs.py +0 -40
  3. pulumi_gcp/appengine/flexible_app_version.py +0 -47
  4. pulumi_gcp/appengine/outputs.py +0 -51
  5. pulumi_gcp/bigtable/instance.py +0 -47
  6. pulumi_gcp/clouddeploy/_inputs.py +0 -16
  7. pulumi_gcp/clouddeploy/outputs.py +0 -12
  8. pulumi_gcp/compute/__init__.py +0 -2
  9. pulumi_gcp/compute/_inputs.py +0 -84
  10. pulumi_gcp/compute/backend_service.py +0 -54
  11. pulumi_gcp/compute/disk.py +0 -68
  12. pulumi_gcp/compute/get_backend_service.py +1 -11
  13. pulumi_gcp/compute/get_disk.py +1 -11
  14. pulumi_gcp/compute/get_instance.py +1 -11
  15. pulumi_gcp/compute/get_instance_group_manager.py +1 -31
  16. pulumi_gcp/compute/get_instance_template.py +1 -11
  17. pulumi_gcp/compute/get_region_instance_template.py +1 -11
  18. pulumi_gcp/compute/instance.py +0 -47
  19. pulumi_gcp/compute/instance_from_machine_image.py +0 -47
  20. pulumi_gcp/compute/instance_from_template.py +0 -47
  21. pulumi_gcp/compute/instance_group_manager.py +0 -185
  22. pulumi_gcp/compute/instance_template.py +0 -47
  23. pulumi_gcp/compute/outputs.py +0 -1039
  24. pulumi_gcp/compute/region_instance_group_manager.py +0 -185
  25. pulumi_gcp/compute/region_instance_template.py +0 -47
  26. pulumi_gcp/config/__init__.pyi +0 -2
  27. pulumi_gcp/config/vars.py +0 -4
  28. pulumi_gcp/container/_inputs.py +4 -33
  29. pulumi_gcp/container/cluster.py +0 -61
  30. pulumi_gcp/container/get_cluster.py +1 -11
  31. pulumi_gcp/container/outputs.py +4 -48
  32. pulumi_gcp/dataloss/_inputs.py +19 -185
  33. pulumi_gcp/dataloss/outputs.py +17 -206
  34. pulumi_gcp/dataloss/prevention_inspect_template.py +0 -54
  35. pulumi_gcp/gkebackup/_inputs.py +7 -282
  36. pulumi_gcp/gkebackup/backup_plan.py +0 -100
  37. pulumi_gcp/gkebackup/outputs.py +7 -312
  38. pulumi_gcp/gkebackup/restore_plan.py +0 -326
  39. pulumi_gcp/gkebackup/restore_plan_iam_binding.py +0 -326
  40. pulumi_gcp/gkebackup/restore_plan_iam_member.py +0 -326
  41. pulumi_gcp/gkebackup/restore_plan_iam_policy.py +0 -326
  42. pulumi_gcp/healthcare/_inputs.py +1 -17
  43. pulumi_gcp/healthcare/dicom_store.py +0 -2
  44. pulumi_gcp/healthcare/fhir_store.py +60 -44
  45. pulumi_gcp/healthcare/outputs.py +1 -15
  46. pulumi_gcp/integrationconnectors/endpoint_attachment.py +0 -47
  47. pulumi_gcp/kms/crypto_key.py +7 -14
  48. pulumi_gcp/netapp/_inputs.py +0 -58
  49. pulumi_gcp/netapp/outputs.py +0 -67
  50. pulumi_gcp/netapp/volume.py +0 -54
  51. pulumi_gcp/networkservices/__init__.py +0 -1
  52. pulumi_gcp/networkservices/_inputs.py +0 -47
  53. pulumi_gcp/networkservices/outputs.py +0 -56
  54. pulumi_gcp/provider.py +0 -20
  55. pulumi_gcp/pulumi-plugin.json +1 -1
  56. pulumi_gcp/redis/_inputs.py +0 -44
  57. pulumi_gcp/redis/cluster.py +3 -128
  58. pulumi_gcp/redis/outputs.py +0 -36
  59. pulumi_gcp/secretmanager/_inputs.py +0 -20
  60. pulumi_gcp/secretmanager/outputs.py +0 -20
  61. pulumi_gcp/secretmanager/secret_iam_binding.py +0 -244
  62. pulumi_gcp/secretmanager/secret_iam_member.py +0 -244
  63. pulumi_gcp/secretmanager/secret_iam_policy.py +0 -224
  64. pulumi_gcp/securitycenter/__init__.py +0 -1
  65. pulumi_gcp/spanner/__init__.py +0 -1
  66. pulumi_gcp/spanner/_inputs.py +0 -68
  67. pulumi_gcp/spanner/outputs.py +0 -73
  68. pulumi_gcp/sql/_inputs.py +2 -8
  69. pulumi_gcp/sql/outputs.py +6 -9
  70. pulumi_gcp/workstations/_inputs.py +1 -51
  71. pulumi_gcp/workstations/outputs.py +2 -46
  72. pulumi_gcp/workstations/workstation_config.py +4 -10
  73. {pulumi_gcp-7.27.0.dist-info → pulumi_gcp-7.27.0a1718086610.dist-info}/METADATA +1 -1
  74. {pulumi_gcp-7.27.0.dist-info → pulumi_gcp-7.27.0a1718086610.dist-info}/RECORD +76 -81
  75. pulumi_gcp/compute/get_security_policy.py +0 -214
  76. pulumi_gcp/compute/project_cloud_armor_tier.py +0 -336
  77. pulumi_gcp/networkservices/service_lb_policies.py +0 -782
  78. pulumi_gcp/securitycenter/management_organization_event_threat_detection_custom_module.py +0 -568
  79. pulumi_gcp/spanner/instance_config.py +0 -569
  80. {pulumi_gcp-7.27.0.dist-info → pulumi_gcp-7.27.0a1718086610.dist-info}/WHEEL +0 -0
  81. {pulumi_gcp-7.27.0.dist-info → pulumi_gcp-7.27.0a1718086610.dist-info}/top_level.txt +0 -0
@@ -1,214 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import pulumi
8
- import pulumi.runtime
9
- from typing import Any, Mapping, Optional, Sequence, Union, overload
10
- from .. import _utilities
11
- from . import outputs
12
-
13
- __all__ = [
14
- 'GetSecurityPolicyResult',
15
- 'AwaitableGetSecurityPolicyResult',
16
- 'get_security_policy',
17
- 'get_security_policy_output',
18
- ]
19
-
20
- @pulumi.output_type
21
- class GetSecurityPolicyResult:
22
- """
23
- A collection of values returned by getSecurityPolicy.
24
- """
25
- def __init__(__self__, adaptive_protection_configs=None, advanced_options_configs=None, description=None, fingerprint=None, id=None, name=None, project=None, recaptcha_options_configs=None, rules=None, self_link=None, type=None):
26
- if adaptive_protection_configs and not isinstance(adaptive_protection_configs, list):
27
- raise TypeError("Expected argument 'adaptive_protection_configs' to be a list")
28
- pulumi.set(__self__, "adaptive_protection_configs", adaptive_protection_configs)
29
- if advanced_options_configs and not isinstance(advanced_options_configs, list):
30
- raise TypeError("Expected argument 'advanced_options_configs' to be a list")
31
- pulumi.set(__self__, "advanced_options_configs", advanced_options_configs)
32
- if description and not isinstance(description, str):
33
- raise TypeError("Expected argument 'description' to be a str")
34
- pulumi.set(__self__, "description", description)
35
- if fingerprint and not isinstance(fingerprint, str):
36
- raise TypeError("Expected argument 'fingerprint' to be a str")
37
- pulumi.set(__self__, "fingerprint", fingerprint)
38
- if id and not isinstance(id, str):
39
- raise TypeError("Expected argument 'id' to be a str")
40
- pulumi.set(__self__, "id", id)
41
- if name and not isinstance(name, str):
42
- raise TypeError("Expected argument 'name' to be a str")
43
- pulumi.set(__self__, "name", name)
44
- if project and not isinstance(project, str):
45
- raise TypeError("Expected argument 'project' to be a str")
46
- pulumi.set(__self__, "project", project)
47
- if recaptcha_options_configs and not isinstance(recaptcha_options_configs, list):
48
- raise TypeError("Expected argument 'recaptcha_options_configs' to be a list")
49
- pulumi.set(__self__, "recaptcha_options_configs", recaptcha_options_configs)
50
- if rules and not isinstance(rules, list):
51
- raise TypeError("Expected argument 'rules' to be a list")
52
- pulumi.set(__self__, "rules", rules)
53
- if self_link and not isinstance(self_link, str):
54
- raise TypeError("Expected argument 'self_link' to be a str")
55
- pulumi.set(__self__, "self_link", self_link)
56
- if type and not isinstance(type, str):
57
- raise TypeError("Expected argument 'type' to be a str")
58
- pulumi.set(__self__, "type", type)
59
-
60
- @property
61
- @pulumi.getter(name="adaptiveProtectionConfigs")
62
- def adaptive_protection_configs(self) -> Sequence['outputs.GetSecurityPolicyAdaptiveProtectionConfigResult']:
63
- return pulumi.get(self, "adaptive_protection_configs")
64
-
65
- @property
66
- @pulumi.getter(name="advancedOptionsConfigs")
67
- def advanced_options_configs(self) -> Sequence['outputs.GetSecurityPolicyAdvancedOptionsConfigResult']:
68
- return pulumi.get(self, "advanced_options_configs")
69
-
70
- @property
71
- @pulumi.getter
72
- def description(self) -> str:
73
- return pulumi.get(self, "description")
74
-
75
- @property
76
- @pulumi.getter
77
- def fingerprint(self) -> str:
78
- return pulumi.get(self, "fingerprint")
79
-
80
- @property
81
- @pulumi.getter
82
- def id(self) -> str:
83
- """
84
- The provider-assigned unique ID for this managed resource.
85
- """
86
- return pulumi.get(self, "id")
87
-
88
- @property
89
- @pulumi.getter
90
- def name(self) -> Optional[str]:
91
- return pulumi.get(self, "name")
92
-
93
- @property
94
- @pulumi.getter
95
- def project(self) -> Optional[str]:
96
- return pulumi.get(self, "project")
97
-
98
- @property
99
- @pulumi.getter(name="recaptchaOptionsConfigs")
100
- def recaptcha_options_configs(self) -> Sequence['outputs.GetSecurityPolicyRecaptchaOptionsConfigResult']:
101
- return pulumi.get(self, "recaptcha_options_configs")
102
-
103
- @property
104
- @pulumi.getter
105
- def rules(self) -> Sequence['outputs.GetSecurityPolicyRuleResult']:
106
- return pulumi.get(self, "rules")
107
-
108
- @property
109
- @pulumi.getter(name="selfLink")
110
- def self_link(self) -> Optional[str]:
111
- return pulumi.get(self, "self_link")
112
-
113
- @property
114
- @pulumi.getter
115
- def type(self) -> str:
116
- return pulumi.get(self, "type")
117
-
118
-
119
- class AwaitableGetSecurityPolicyResult(GetSecurityPolicyResult):
120
- # pylint: disable=using-constant-test
121
- def __await__(self):
122
- if False:
123
- yield self
124
- return GetSecurityPolicyResult(
125
- adaptive_protection_configs=self.adaptive_protection_configs,
126
- advanced_options_configs=self.advanced_options_configs,
127
- description=self.description,
128
- fingerprint=self.fingerprint,
129
- id=self.id,
130
- name=self.name,
131
- project=self.project,
132
- recaptcha_options_configs=self.recaptcha_options_configs,
133
- rules=self.rules,
134
- self_link=self.self_link,
135
- type=self.type)
136
-
137
-
138
- def get_security_policy(name: Optional[str] = None,
139
- project: Optional[str] = None,
140
- self_link: Optional[str] = None,
141
- opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityPolicyResult:
142
- """
143
- To get more information about Google Compute Security Policy, see:
144
-
145
- * [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/securityPolicies)
146
- * How-to Guides
147
- * [Official Documentation](https://cloud.google.com/armor/docs/configure-security-policies)
148
-
149
- ## Example Usage
150
-
151
- ```python
152
- import pulumi
153
- import pulumi_gcp as gcp
154
-
155
- sp1 = gcp.compute.get_security_policy(name="my-policy",
156
- project="my-project")
157
- sp2 = gcp.compute.get_security_policy(self_link="https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy")
158
- ```
159
-
160
-
161
- :param str name: The name of the security policy. Provide either this or a `self_link`.
162
- :param str project: The project in which the resource belongs. If it is not provided, the provider project is used.
163
- :param str self_link: The self_link of the security policy. Provide either this or a `name`
164
- """
165
- __args__ = dict()
166
- __args__['name'] = name
167
- __args__['project'] = project
168
- __args__['selfLink'] = self_link
169
- opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
170
- __ret__ = pulumi.runtime.invoke('gcp:compute/getSecurityPolicy:getSecurityPolicy', __args__, opts=opts, typ=GetSecurityPolicyResult).value
171
-
172
- return AwaitableGetSecurityPolicyResult(
173
- adaptive_protection_configs=pulumi.get(__ret__, 'adaptive_protection_configs'),
174
- advanced_options_configs=pulumi.get(__ret__, 'advanced_options_configs'),
175
- description=pulumi.get(__ret__, 'description'),
176
- fingerprint=pulumi.get(__ret__, 'fingerprint'),
177
- id=pulumi.get(__ret__, 'id'),
178
- name=pulumi.get(__ret__, 'name'),
179
- project=pulumi.get(__ret__, 'project'),
180
- recaptcha_options_configs=pulumi.get(__ret__, 'recaptcha_options_configs'),
181
- rules=pulumi.get(__ret__, 'rules'),
182
- self_link=pulumi.get(__ret__, 'self_link'),
183
- type=pulumi.get(__ret__, 'type'))
184
-
185
-
186
- @_utilities.lift_output_func(get_security_policy)
187
- def get_security_policy_output(name: Optional[pulumi.Input[Optional[str]]] = None,
188
- project: Optional[pulumi.Input[Optional[str]]] = None,
189
- self_link: Optional[pulumi.Input[Optional[str]]] = None,
190
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecurityPolicyResult]:
191
- """
192
- To get more information about Google Compute Security Policy, see:
193
-
194
- * [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/securityPolicies)
195
- * How-to Guides
196
- * [Official Documentation](https://cloud.google.com/armor/docs/configure-security-policies)
197
-
198
- ## Example Usage
199
-
200
- ```python
201
- import pulumi
202
- import pulumi_gcp as gcp
203
-
204
- sp1 = gcp.compute.get_security_policy(name="my-policy",
205
- project="my-project")
206
- sp2 = gcp.compute.get_security_policy(self_link="https://www.googleapis.com/compute/v1/projects/my-project/global/securityPolicies/my-policy")
207
- ```
208
-
209
-
210
- :param str name: The name of the security policy. Provide either this or a `self_link`.
211
- :param str project: The project in which the resource belongs. If it is not provided, the provider project is used.
212
- :param str self_link: The self_link of the security policy. Provide either this or a `name`
213
- """
214
- ...
@@ -1,336 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import pulumi
8
- import pulumi.runtime
9
- from typing import Any, Mapping, Optional, Sequence, Union, overload
10
- from .. import _utilities
11
-
12
- __all__ = ['ProjectCloudArmorTierArgs', 'ProjectCloudArmorTier']
13
-
14
- @pulumi.input_type
15
- class ProjectCloudArmorTierArgs:
16
- def __init__(__self__, *,
17
- cloud_armor_tier: pulumi.Input[str],
18
- project: Optional[pulumi.Input[str]] = None):
19
- """
20
- The set of arguments for constructing a ProjectCloudArmorTier resource.
21
- :param pulumi.Input[str] cloud_armor_tier: Managed protection tier to be set.
22
- Possible values are: `CA_STANDARD`, `CA_ENTERPRISE_PAYGO`.
23
-
24
-
25
- - - -
26
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
27
- If it is not provided, the provider project is used.
28
- """
29
- pulumi.set(__self__, "cloud_armor_tier", cloud_armor_tier)
30
- if project is not None:
31
- pulumi.set(__self__, "project", project)
32
-
33
- @property
34
- @pulumi.getter(name="cloudArmorTier")
35
- def cloud_armor_tier(self) -> pulumi.Input[str]:
36
- """
37
- Managed protection tier to be set.
38
- Possible values are: `CA_STANDARD`, `CA_ENTERPRISE_PAYGO`.
39
-
40
-
41
- - - -
42
- """
43
- return pulumi.get(self, "cloud_armor_tier")
44
-
45
- @cloud_armor_tier.setter
46
- def cloud_armor_tier(self, value: pulumi.Input[str]):
47
- pulumi.set(self, "cloud_armor_tier", value)
48
-
49
- @property
50
- @pulumi.getter
51
- def project(self) -> Optional[pulumi.Input[str]]:
52
- """
53
- The ID of the project in which the resource belongs.
54
- If it is not provided, the provider project is used.
55
- """
56
- return pulumi.get(self, "project")
57
-
58
- @project.setter
59
- def project(self, value: Optional[pulumi.Input[str]]):
60
- pulumi.set(self, "project", value)
61
-
62
-
63
- @pulumi.input_type
64
- class _ProjectCloudArmorTierState:
65
- def __init__(__self__, *,
66
- cloud_armor_tier: Optional[pulumi.Input[str]] = None,
67
- project: Optional[pulumi.Input[str]] = None):
68
- """
69
- Input properties used for looking up and filtering ProjectCloudArmorTier resources.
70
- :param pulumi.Input[str] cloud_armor_tier: Managed protection tier to be set.
71
- Possible values are: `CA_STANDARD`, `CA_ENTERPRISE_PAYGO`.
72
-
73
-
74
- - - -
75
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
76
- If it is not provided, the provider project is used.
77
- """
78
- if cloud_armor_tier is not None:
79
- pulumi.set(__self__, "cloud_armor_tier", cloud_armor_tier)
80
- if project is not None:
81
- pulumi.set(__self__, "project", project)
82
-
83
- @property
84
- @pulumi.getter(name="cloudArmorTier")
85
- def cloud_armor_tier(self) -> Optional[pulumi.Input[str]]:
86
- """
87
- Managed protection tier to be set.
88
- Possible values are: `CA_STANDARD`, `CA_ENTERPRISE_PAYGO`.
89
-
90
-
91
- - - -
92
- """
93
- return pulumi.get(self, "cloud_armor_tier")
94
-
95
- @cloud_armor_tier.setter
96
- def cloud_armor_tier(self, value: Optional[pulumi.Input[str]]):
97
- pulumi.set(self, "cloud_armor_tier", value)
98
-
99
- @property
100
- @pulumi.getter
101
- def project(self) -> Optional[pulumi.Input[str]]:
102
- """
103
- The ID of the project in which the resource belongs.
104
- If it is not provided, the provider project is used.
105
- """
106
- return pulumi.get(self, "project")
107
-
108
- @project.setter
109
- def project(self, value: Optional[pulumi.Input[str]]):
110
- pulumi.set(self, "project", value)
111
-
112
-
113
- class ProjectCloudArmorTier(pulumi.CustomResource):
114
- @overload
115
- def __init__(__self__,
116
- resource_name: str,
117
- opts: Optional[pulumi.ResourceOptions] = None,
118
- cloud_armor_tier: Optional[pulumi.Input[str]] = None,
119
- project: Optional[pulumi.Input[str]] = None,
120
- __props__=None):
121
- """
122
- Sets the Cloud Armor tier of the project.
123
-
124
- To get more information about ProjectCloudArmorTier, see:
125
-
126
- * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/projects/setCloudArmorTier)
127
- * How-to Guides
128
- * [Subscribing to Cloud Armor Enterprise](https://cloud.google.com/armor/docs/managed-protection-overview#subscribing_to_plus)
129
-
130
- ## Example Usage
131
-
132
- ### Compute Project Cloud Armor Tier Basic
133
-
134
- ```python
135
- import pulumi
136
- import pulumi_gcp as gcp
137
-
138
- cloud_armor_tier_config = gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config", cloud_armor_tier="CA_STANDARD")
139
- ```
140
- ### Compute Project Cloud Armor Tier Project Set
141
-
142
- ```python
143
- import pulumi
144
- import pulumi_gcp as gcp
145
-
146
- project = gcp.organizations.Project("project",
147
- project_id="your_project_id",
148
- name="your_project_id",
149
- org_id="123456789",
150
- billing_account="000000-0000000-0000000-000000")
151
- compute = gcp.projects.Service("compute",
152
- project=project.project_id,
153
- service="compute.googleapis.com")
154
- cloud_armor_tier_config = gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config",
155
- project=project.project_id,
156
- cloud_armor_tier="CA_STANDARD",
157
- opts=pulumi.ResourceOptions(depends_on=[compute]))
158
- ```
159
-
160
- ## Import
161
-
162
- ProjectCloudArmorTier can be imported using any of these accepted formats:
163
-
164
- * `projects/{{project}}`
165
-
166
- * `{{project}}`
167
-
168
- When using the `pulumi import` command, ProjectCloudArmorTier can be imported using one of the formats above. For example:
169
-
170
- ```sh
171
- $ pulumi import gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier default projects/{{project}}
172
- ```
173
-
174
- ```sh
175
- $ pulumi import gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier default {{project}}
176
- ```
177
-
178
- :param str resource_name: The name of the resource.
179
- :param pulumi.ResourceOptions opts: Options for the resource.
180
- :param pulumi.Input[str] cloud_armor_tier: Managed protection tier to be set.
181
- Possible values are: `CA_STANDARD`, `CA_ENTERPRISE_PAYGO`.
182
-
183
-
184
- - - -
185
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
186
- If it is not provided, the provider project is used.
187
- """
188
- ...
189
- @overload
190
- def __init__(__self__,
191
- resource_name: str,
192
- args: ProjectCloudArmorTierArgs,
193
- opts: Optional[pulumi.ResourceOptions] = None):
194
- """
195
- Sets the Cloud Armor tier of the project.
196
-
197
- To get more information about ProjectCloudArmorTier, see:
198
-
199
- * [API documentation](https://cloud.google.com/compute/docs/reference/rest/v1/projects/setCloudArmorTier)
200
- * How-to Guides
201
- * [Subscribing to Cloud Armor Enterprise](https://cloud.google.com/armor/docs/managed-protection-overview#subscribing_to_plus)
202
-
203
- ## Example Usage
204
-
205
- ### Compute Project Cloud Armor Tier Basic
206
-
207
- ```python
208
- import pulumi
209
- import pulumi_gcp as gcp
210
-
211
- cloud_armor_tier_config = gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config", cloud_armor_tier="CA_STANDARD")
212
- ```
213
- ### Compute Project Cloud Armor Tier Project Set
214
-
215
- ```python
216
- import pulumi
217
- import pulumi_gcp as gcp
218
-
219
- project = gcp.organizations.Project("project",
220
- project_id="your_project_id",
221
- name="your_project_id",
222
- org_id="123456789",
223
- billing_account="000000-0000000-0000000-000000")
224
- compute = gcp.projects.Service("compute",
225
- project=project.project_id,
226
- service="compute.googleapis.com")
227
- cloud_armor_tier_config = gcp.compute.ProjectCloudArmorTier("cloud_armor_tier_config",
228
- project=project.project_id,
229
- cloud_armor_tier="CA_STANDARD",
230
- opts=pulumi.ResourceOptions(depends_on=[compute]))
231
- ```
232
-
233
- ## Import
234
-
235
- ProjectCloudArmorTier can be imported using any of these accepted formats:
236
-
237
- * `projects/{{project}}`
238
-
239
- * `{{project}}`
240
-
241
- When using the `pulumi import` command, ProjectCloudArmorTier can be imported using one of the formats above. For example:
242
-
243
- ```sh
244
- $ pulumi import gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier default projects/{{project}}
245
- ```
246
-
247
- ```sh
248
- $ pulumi import gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier default {{project}}
249
- ```
250
-
251
- :param str resource_name: The name of the resource.
252
- :param ProjectCloudArmorTierArgs args: The arguments to use to populate this resource's properties.
253
- :param pulumi.ResourceOptions opts: Options for the resource.
254
- """
255
- ...
256
- def __init__(__self__, resource_name: str, *args, **kwargs):
257
- resource_args, opts = _utilities.get_resource_args_opts(ProjectCloudArmorTierArgs, pulumi.ResourceOptions, *args, **kwargs)
258
- if resource_args is not None:
259
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
260
- else:
261
- __self__._internal_init(resource_name, *args, **kwargs)
262
-
263
- def _internal_init(__self__,
264
- resource_name: str,
265
- opts: Optional[pulumi.ResourceOptions] = None,
266
- cloud_armor_tier: Optional[pulumi.Input[str]] = None,
267
- project: Optional[pulumi.Input[str]] = None,
268
- __props__=None):
269
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
270
- if not isinstance(opts, pulumi.ResourceOptions):
271
- raise TypeError('Expected resource options to be a ResourceOptions instance')
272
- if opts.id is None:
273
- if __props__ is not None:
274
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
275
- __props__ = ProjectCloudArmorTierArgs.__new__(ProjectCloudArmorTierArgs)
276
-
277
- if cloud_armor_tier is None and not opts.urn:
278
- raise TypeError("Missing required property 'cloud_armor_tier'")
279
- __props__.__dict__["cloud_armor_tier"] = cloud_armor_tier
280
- __props__.__dict__["project"] = project
281
- super(ProjectCloudArmorTier, __self__).__init__(
282
- 'gcp:compute/projectCloudArmorTier:ProjectCloudArmorTier',
283
- resource_name,
284
- __props__,
285
- opts)
286
-
287
- @staticmethod
288
- def get(resource_name: str,
289
- id: pulumi.Input[str],
290
- opts: Optional[pulumi.ResourceOptions] = None,
291
- cloud_armor_tier: Optional[pulumi.Input[str]] = None,
292
- project: Optional[pulumi.Input[str]] = None) -> 'ProjectCloudArmorTier':
293
- """
294
- Get an existing ProjectCloudArmorTier resource's state with the given name, id, and optional extra
295
- properties used to qualify the lookup.
296
-
297
- :param str resource_name: The unique name of the resulting resource.
298
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
299
- :param pulumi.ResourceOptions opts: Options for the resource.
300
- :param pulumi.Input[str] cloud_armor_tier: Managed protection tier to be set.
301
- Possible values are: `CA_STANDARD`, `CA_ENTERPRISE_PAYGO`.
302
-
303
-
304
- - - -
305
- :param pulumi.Input[str] project: The ID of the project in which the resource belongs.
306
- If it is not provided, the provider project is used.
307
- """
308
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
309
-
310
- __props__ = _ProjectCloudArmorTierState.__new__(_ProjectCloudArmorTierState)
311
-
312
- __props__.__dict__["cloud_armor_tier"] = cloud_armor_tier
313
- __props__.__dict__["project"] = project
314
- return ProjectCloudArmorTier(resource_name, opts=opts, __props__=__props__)
315
-
316
- @property
317
- @pulumi.getter(name="cloudArmorTier")
318
- def cloud_armor_tier(self) -> pulumi.Output[str]:
319
- """
320
- Managed protection tier to be set.
321
- Possible values are: `CA_STANDARD`, `CA_ENTERPRISE_PAYGO`.
322
-
323
-
324
- - - -
325
- """
326
- return pulumi.get(self, "cloud_armor_tier")
327
-
328
- @property
329
- @pulumi.getter
330
- def project(self) -> pulumi.Output[str]:
331
- """
332
- The ID of the project in which the resource belongs.
333
- If it is not provided, the provider project is used.
334
- """
335
- return pulumi.get(self, "project")
336
-