pulumi-newrelic 5.24.0a1715356536__py3-none-any.whl → 5.24.1__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 (64) hide show
  1. pulumi_newrelic/_inputs.py +63 -63
  2. pulumi_newrelic/alert_channel.py +14 -14
  3. pulumi_newrelic/alert_condition.py +28 -28
  4. pulumi_newrelic/alert_muting_rule.py +14 -14
  5. pulumi_newrelic/alert_policy.py +24 -24
  6. pulumi_newrelic/alert_policy_channel.py +42 -42
  7. pulumi_newrelic/api_access_key.py +28 -28
  8. pulumi_newrelic/browser_application.py +14 -14
  9. pulumi_newrelic/cloud/aws_govcloud_integrations.py +28 -28
  10. pulumi_newrelic/cloud/aws_govcloud_link_account.py +14 -14
  11. pulumi_newrelic/cloud/aws_integrations.py +28 -28
  12. pulumi_newrelic/cloud/aws_link_account.py +14 -14
  13. pulumi_newrelic/cloud/azure_integrations.py +28 -28
  14. pulumi_newrelic/cloud/azure_link_account.py +14 -14
  15. pulumi_newrelic/cloud/gcp_integrations.py +28 -28
  16. pulumi_newrelic/cloud/gcp_link_account.py +14 -14
  17. pulumi_newrelic/config/__init__.pyi +1 -1
  18. pulumi_newrelic/config/vars.py +2 -2
  19. pulumi_newrelic/data_partition_rule.py +14 -14
  20. pulumi_newrelic/events_to_metrics_rule.py +16 -16
  21. pulumi_newrelic/get_account.py +7 -7
  22. pulumi_newrelic/get_alert_channel.py +8 -8
  23. pulumi_newrelic/get_alert_policy.py +7 -7
  24. pulumi_newrelic/get_application.py +2 -2
  25. pulumi_newrelic/get_cloud_account.py +9 -9
  26. pulumi_newrelic/get_entity.py +15 -15
  27. pulumi_newrelic/get_notification_destination.py +7 -7
  28. pulumi_newrelic/get_obfuscation_expression.py +9 -9
  29. pulumi_newrelic/get_service_level_alert_helper.py +10 -10
  30. pulumi_newrelic/get_test_grok_pattern.py +7 -7
  31. pulumi_newrelic/infra_alert_condition.py +14 -14
  32. pulumi_newrelic/log_parsing_rule.py +14 -14
  33. pulumi_newrelic/monitor_downtime.py +14 -14
  34. pulumi_newrelic/notification_channel.py +36 -36
  35. pulumi_newrelic/notification_destination.py +14 -14
  36. pulumi_newrelic/nrql_alert_condition.py +32 -32
  37. pulumi_newrelic/nrql_drop_rule.py +20 -20
  38. pulumi_newrelic/obfuscation_expression.py +16 -16
  39. pulumi_newrelic/obfuscation_rule.py +14 -14
  40. pulumi_newrelic/one_dashboard.py +14 -14
  41. pulumi_newrelic/one_dashboard_json.py +14 -14
  42. pulumi_newrelic/one_dashboard_raw.py +14 -14
  43. pulumi_newrelic/outputs.py +47 -47
  44. pulumi_newrelic/plugins/workload.py +55 -55
  45. pulumi_newrelic/provider.py +14 -9
  46. pulumi_newrelic/pulumi-plugin.json +2 -1
  47. pulumi_newrelic/service_level.py +6 -6
  48. pulumi_newrelic/synthetics/alert_condition.py +14 -14
  49. pulumi_newrelic/synthetics/broken_links_monitor.py +32 -14
  50. pulumi_newrelic/synthetics/cert_check_monitor.py +32 -14
  51. pulumi_newrelic/synthetics/get_private_location.py +11 -11
  52. pulumi_newrelic/synthetics/get_secure_credential.py +5 -5
  53. pulumi_newrelic/synthetics/monitor.py +18 -14
  54. pulumi_newrelic/synthetics/multi_location_alert_condition.py +14 -14
  55. pulumi_newrelic/synthetics/private_location.py +14 -14
  56. pulumi_newrelic/synthetics/script_monitor.py +18 -14
  57. pulumi_newrelic/synthetics/secure_credential.py +14 -14
  58. pulumi_newrelic/synthetics/step_monitor.py +32 -14
  59. pulumi_newrelic/workflow.py +14 -14
  60. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.24.1.dist-info}/METADATA +1 -1
  61. pulumi_newrelic-5.24.1.dist-info/RECORD +89 -0
  62. pulumi_newrelic-5.24.0a1715356536.dist-info/RECORD +0 -89
  63. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.24.1.dist-info}/WHEEL +0 -0
  64. {pulumi_newrelic-5.24.0a1715356536.dist-info → pulumi_newrelic-5.24.1.dist-info}/top_level.txt +0 -0
@@ -22,8 +22,8 @@ class GetAccountResult:
22
22
  A collection of values returned by getAccount.
23
23
  """
24
24
  def __init__(__self__, account_id=None, id=None, name=None, scope=None):
25
- if account_id and not isinstance(account_id, int):
26
- raise TypeError("Expected argument 'account_id' to be a int")
25
+ if account_id and not isinstance(account_id, str):
26
+ raise TypeError("Expected argument 'account_id' to be a str")
27
27
  pulumi.set(__self__, "account_id", account_id)
28
28
  if id and not isinstance(id, str):
29
29
  raise TypeError("Expected argument 'id' to be a str")
@@ -37,7 +37,7 @@ class GetAccountResult:
37
37
 
38
38
  @property
39
39
  @pulumi.getter(name="accountId")
40
- def account_id(self) -> Optional[int]:
40
+ def account_id(self) -> Optional[str]:
41
41
  return pulumi.get(self, "account_id")
42
42
 
43
43
  @property
@@ -71,7 +71,7 @@ class AwaitableGetAccountResult(GetAccountResult):
71
71
  scope=self.scope)
72
72
 
73
73
 
74
- def get_account(account_id: Optional[int] = None,
74
+ def get_account(account_id: Optional[str] = None,
75
75
  name: Optional[str] = None,
76
76
  scope: Optional[str] = None,
77
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountResult:
@@ -90,7 +90,7 @@ def get_account(account_id: Optional[int] = None,
90
90
  ```
91
91
 
92
92
 
93
- :param int account_id: The account ID in New Relic.
93
+ :param str account_id: The account ID in New Relic.
94
94
  :param str name: The account name in New Relic.
95
95
  :param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
96
96
  """
@@ -109,7 +109,7 @@ def get_account(account_id: Optional[int] = None,
109
109
 
110
110
 
111
111
  @_utilities.lift_output_func(get_account)
112
- def get_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
112
+ def get_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
113
113
  name: Optional[pulumi.Input[Optional[str]]] = None,
114
114
  scope: Optional[pulumi.Input[Optional[str]]] = None,
115
115
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountResult]:
@@ -128,7 +128,7 @@ def get_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
128
128
  ```
129
129
 
130
130
 
131
- :param int account_id: The account ID in New Relic.
131
+ :param str account_id: The account ID in New Relic.
132
132
  :param str name: The account name in New Relic.
133
133
  :param str scope: The scope of the account in New Relic. Valid values are "global" and "in_region". Defaults to "in_region".
134
134
  """
@@ -23,8 +23,8 @@ class GetAlertChannelResult:
23
23
  A collection of values returned by getAlertChannel.
24
24
  """
25
25
  def __init__(__self__, account_id=None, config=None, id=None, name=None, policy_ids=None, type=None):
26
- if account_id and not isinstance(account_id, int):
27
- raise TypeError("Expected argument 'account_id' to be a int")
26
+ if account_id and not isinstance(account_id, str):
27
+ raise TypeError("Expected argument 'account_id' to be a str")
28
28
  pulumi.set(__self__, "account_id", account_id)
29
29
  if config and not isinstance(config, dict):
30
30
  raise TypeError("Expected argument 'config' to be a dict")
@@ -44,7 +44,7 @@ class GetAlertChannelResult:
44
44
 
45
45
  @property
46
46
  @pulumi.getter(name="accountId")
47
- def account_id(self) -> int:
47
+ def account_id(self) -> str:
48
48
  return pulumi.get(self, "account_id")
49
49
 
50
50
  @property
@@ -70,7 +70,7 @@ class GetAlertChannelResult:
70
70
 
71
71
  @property
72
72
  @pulumi.getter(name="policyIds")
73
- def policy_ids(self) -> Sequence[int]:
73
+ def policy_ids(self) -> Sequence[str]:
74
74
  """
75
75
  A list of policy IDs associated with the alert channel.
76
76
  """
@@ -99,7 +99,7 @@ class AwaitableGetAlertChannelResult(GetAlertChannelResult):
99
99
  type=self.type)
100
100
 
101
101
 
102
- def get_alert_channel(account_id: Optional[int] = None,
102
+ def get_alert_channel(account_id: Optional[str] = None,
103
103
  name: Optional[str] = None,
104
104
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertChannelResult:
105
105
  """
@@ -108,7 +108,7 @@ def get_alert_channel(account_id: Optional[int] = None,
108
108
  > **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
109
109
 
110
110
 
111
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
111
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
112
112
  :param str name: The name of the alert channel in New Relic.
113
113
  """
114
114
  __args__ = dict()
@@ -127,7 +127,7 @@ def get_alert_channel(account_id: Optional[int] = None,
127
127
 
128
128
 
129
129
  @_utilities.lift_output_func(get_alert_channel)
130
- def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
130
+ def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
131
131
  name: Optional[pulumi.Input[str]] = None,
132
132
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertChannelResult]:
133
133
  """
@@ -136,7 +136,7 @@ def get_alert_channel_output(account_id: Optional[pulumi.Input[Optional[int]]] =
136
136
  > **WARNING:** The `AlertChannel` data source is deprecated and will be removed in the next major release.
137
137
 
138
138
 
139
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
139
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
140
140
  :param str name: The name of the alert channel in New Relic.
141
141
  """
142
142
  ...
@@ -22,8 +22,8 @@ class GetAlertPolicyResult:
22
22
  A collection of values returned by getAlertPolicy.
23
23
  """
24
24
  def __init__(__self__, account_id=None, created_at=None, id=None, incident_preference=None, name=None, updated_at=None):
25
- if account_id and not isinstance(account_id, int):
26
- raise TypeError("Expected argument 'account_id' to be a int")
25
+ if account_id and not isinstance(account_id, str):
26
+ raise TypeError("Expected argument 'account_id' to be a str")
27
27
  pulumi.set(__self__, "account_id", account_id)
28
28
  if created_at and not isinstance(created_at, str):
29
29
  raise TypeError("Expected argument 'created_at' to be a str")
@@ -43,7 +43,7 @@ class GetAlertPolicyResult:
43
43
 
44
44
  @property
45
45
  @pulumi.getter(name="accountId")
46
- def account_id(self) -> int:
46
+ def account_id(self) -> str:
47
47
  return pulumi.get(self, "account_id")
48
48
 
49
49
  @property
@@ -98,7 +98,7 @@ class AwaitableGetAlertPolicyResult(GetAlertPolicyResult):
98
98
  updated_at=self.updated_at)
99
99
 
100
100
 
101
- def get_alert_policy(account_id: Optional[int] = None,
101
+ def get_alert_policy(account_id: Optional[str] = None,
102
102
  incident_preference: Optional[str] = None,
103
103
  name: Optional[str] = None,
104
104
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertPolicyResult:
@@ -106,7 +106,7 @@ def get_alert_policy(account_id: Optional[int] = None,
106
106
  Use this data source to get information about a specific alert policy in New Relic that already exists.
107
107
 
108
108
 
109
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
109
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
110
110
  :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
111
111
  :param str name: The name of the alert policy in New Relic.
112
112
  """
@@ -127,7 +127,7 @@ def get_alert_policy(account_id: Optional[int] = None,
127
127
 
128
128
 
129
129
  @_utilities.lift_output_func(get_alert_policy)
130
- def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
130
+ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
131
131
  incident_preference: Optional[pulumi.Input[Optional[str]]] = None,
132
132
  name: Optional[pulumi.Input[str]] = None,
133
133
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertPolicyResult]:
@@ -135,7 +135,7 @@ def get_alert_policy_output(account_id: Optional[pulumi.Input[Optional[int]]] =
135
135
  Use this data source to get information about a specific alert policy in New Relic that already exists.
136
136
 
137
137
 
138
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
138
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
139
139
  :param str incident_preference: The rollup strategy for the policy, which can have one of the following values:
140
140
  :param str name: The name of the alert policy in New Relic.
141
141
  """
@@ -37,7 +37,7 @@ class GetApplicationResult:
37
37
 
38
38
  @property
39
39
  @pulumi.getter(name="hostIds")
40
- def host_ids(self) -> Sequence[int]:
40
+ def host_ids(self) -> Sequence[str]:
41
41
  """
42
42
  A list of host IDs associated with the application.
43
43
  """
@@ -53,7 +53,7 @@ class GetApplicationResult:
53
53
 
54
54
  @property
55
55
  @pulumi.getter(name="instanceIds")
56
- def instance_ids(self) -> Sequence[int]:
56
+ def instance_ids(self) -> Sequence[str]:
57
57
  """
58
58
  A list of instance IDs associated with the application.
59
59
  """
@@ -22,8 +22,8 @@ class GetCloudAccountResult:
22
22
  A collection of values returned by getCloudAccount.
23
23
  """
24
24
  def __init__(__self__, account_id=None, cloud_provider=None, id=None, name=None):
25
- if account_id and not isinstance(account_id, int):
26
- raise TypeError("Expected argument 'account_id' to be a int")
25
+ if account_id and not isinstance(account_id, str):
26
+ raise TypeError("Expected argument 'account_id' to be a str")
27
27
  pulumi.set(__self__, "account_id", account_id)
28
28
  if cloud_provider and not isinstance(cloud_provider, str):
29
29
  raise TypeError("Expected argument 'cloud_provider' to be a str")
@@ -37,7 +37,7 @@ class GetCloudAccountResult:
37
37
 
38
38
  @property
39
39
  @pulumi.getter(name="accountId")
40
- def account_id(self) -> Optional[int]:
40
+ def account_id(self) -> Optional[str]:
41
41
  return pulumi.get(self, "account_id")
42
42
 
43
43
  @property
@@ -71,7 +71,7 @@ class AwaitableGetCloudAccountResult(GetCloudAccountResult):
71
71
  name=self.name)
72
72
 
73
73
 
74
- def get_cloud_account(account_id: Optional[int] = None,
74
+ def get_cloud_account(account_id: Optional[str] = None,
75
75
  cloud_provider: Optional[str] = None,
76
76
  name: Optional[str] = None,
77
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCloudAccountResult:
@@ -85,13 +85,13 @@ def get_cloud_account(account_id: Optional[int] = None,
85
85
  import pulumi
86
86
  import pulumi_newrelic as newrelic
87
87
 
88
- account = newrelic.get_cloud_account(account_id=12345,
88
+ account = newrelic.get_cloud_account(account_id="12345",
89
89
  cloud_provider="aws",
90
90
  name="my aws account")
91
91
  ```
92
92
 
93
93
 
94
- :param int account_id: The account ID in New Relic.
94
+ :param str account_id: The account ID in New Relic.
95
95
  :param str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
96
96
  :param str name: The cloud account name in New Relic.
97
97
  """
@@ -110,7 +110,7 @@ def get_cloud_account(account_id: Optional[int] = None,
110
110
 
111
111
 
112
112
  @_utilities.lift_output_func(get_cloud_account)
113
- def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
113
+ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
114
114
  cloud_provider: Optional[pulumi.Input[str]] = None,
115
115
  name: Optional[pulumi.Input[str]] = None,
116
116
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCloudAccountResult]:
@@ -124,13 +124,13 @@ def get_cloud_account_output(account_id: Optional[pulumi.Input[Optional[int]]] =
124
124
  import pulumi
125
125
  import pulumi_newrelic as newrelic
126
126
 
127
- account = newrelic.get_cloud_account(account_id=12345,
127
+ account = newrelic.get_cloud_account(account_id="12345",
128
128
  cloud_provider="aws",
129
129
  name="my aws account")
130
130
  ```
131
131
 
132
132
 
133
- :param int account_id: The account ID in New Relic.
133
+ :param str account_id: The account ID in New Relic.
134
134
  :param str cloud_provider: The cloud provider of the account (aws, gcp, azure, etc)
135
135
  :param str name: The cloud account name in New Relic.
136
136
  """
@@ -24,11 +24,11 @@ class GetEntityResult:
24
24
  A collection of values returned by getEntity.
25
25
  """
26
26
  def __init__(__self__, account_id=None, application_id=None, domain=None, guid=None, id=None, ignore_case=None, ignore_not_found=None, name=None, serving_apm_application_id=None, tags=None, type=None):
27
- if account_id and not isinstance(account_id, int):
28
- raise TypeError("Expected argument 'account_id' to be a int")
27
+ if account_id and not isinstance(account_id, str):
28
+ raise TypeError("Expected argument 'account_id' to be a str")
29
29
  pulumi.set(__self__, "account_id", account_id)
30
- if application_id and not isinstance(application_id, int):
31
- raise TypeError("Expected argument 'application_id' to be a int")
30
+ if application_id and not isinstance(application_id, str):
31
+ raise TypeError("Expected argument 'application_id' to be a str")
32
32
  pulumi.set(__self__, "application_id", application_id)
33
33
  if domain and not isinstance(domain, str):
34
34
  raise TypeError("Expected argument 'domain' to be a str")
@@ -48,8 +48,8 @@ class GetEntityResult:
48
48
  if name and not isinstance(name, str):
49
49
  raise TypeError("Expected argument 'name' to be a str")
50
50
  pulumi.set(__self__, "name", name)
51
- if serving_apm_application_id and not isinstance(serving_apm_application_id, int):
52
- raise TypeError("Expected argument 'serving_apm_application_id' to be a int")
51
+ if serving_apm_application_id and not isinstance(serving_apm_application_id, str):
52
+ raise TypeError("Expected argument 'serving_apm_application_id' to be a str")
53
53
  pulumi.set(__self__, "serving_apm_application_id", serving_apm_application_id)
54
54
  if tags and not isinstance(tags, list):
55
55
  raise TypeError("Expected argument 'tags' to be a list")
@@ -60,12 +60,12 @@ class GetEntityResult:
60
60
 
61
61
  @property
62
62
  @pulumi.getter(name="accountId")
63
- def account_id(self) -> int:
63
+ def account_id(self) -> str:
64
64
  return pulumi.get(self, "account_id")
65
65
 
66
66
  @property
67
67
  @pulumi.getter(name="applicationId")
68
- def application_id(self) -> int:
68
+ def application_id(self) -> str:
69
69
  """
70
70
  The domain-specific application ID of the entity. Only returned for APM and Browser applications.
71
71
  """
@@ -109,7 +109,7 @@ class GetEntityResult:
109
109
 
110
110
  @property
111
111
  @pulumi.getter(name="servingApmApplicationId")
112
- def serving_apm_application_id(self) -> int:
112
+ def serving_apm_application_id(self) -> str:
113
113
  """
114
114
  The browser-specific ID of the backing APM entity. Only returned for Browser applications.
115
115
  """
@@ -145,7 +145,7 @@ class AwaitableGetEntityResult(GetEntityResult):
145
145
  type=self.type)
146
146
 
147
147
 
148
- def get_entity(account_id: Optional[int] = None,
148
+ def get_entity(account_id: Optional[str] = None,
149
149
  domain: Optional[str] = None,
150
150
  ignore_case: Optional[bool] = None,
151
151
  ignore_not_found: Optional[bool] = None,
@@ -182,7 +182,7 @@ def get_entity(account_id: Optional[int] = None,
182
182
  # the above example, would have to belong to the account_id
183
183
  # specified in the configuration below, i.e. 654321.
184
184
  app = newrelic.get_entity(name="my-app",
185
- account_id=654321,
185
+ account_id="654321",
186
186
  domain="APM",
187
187
  type="APPLICATION")
188
188
  ```
@@ -215,7 +215,7 @@ def get_entity(account_id: Optional[int] = None,
215
215
  ```
216
216
 
217
217
 
218
- :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
218
+ :param str account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
219
219
  :param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
220
220
  :param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
221
221
  :param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
@@ -251,7 +251,7 @@ def get_entity(account_id: Optional[int] = None,
251
251
 
252
252
 
253
253
  @_utilities.lift_output_func(get_entity)
254
- def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
254
+ def get_entity_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
255
255
  domain: Optional[pulumi.Input[Optional[str]]] = None,
256
256
  ignore_case: Optional[pulumi.Input[Optional[bool]]] = None,
257
257
  ignore_not_found: Optional[pulumi.Input[Optional[bool]]] = None,
@@ -288,7 +288,7 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
288
288
  # the above example, would have to belong to the account_id
289
289
  # specified in the configuration below, i.e. 654321.
290
290
  app = newrelic.get_entity(name="my-app",
291
- account_id=654321,
291
+ account_id="654321",
292
292
  domain="APM",
293
293
  type="APPLICATION")
294
294
  ```
@@ -321,7 +321,7 @@ def get_entity_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
321
321
  ```
322
322
 
323
323
 
324
- :param int account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
324
+ :param str account_id: The New Relic account ID the entity to be returned would be associated with, i.e. if specified, the data source would filter matching entities received by `account_id` and return the first match. If not, matching entities are filtered by the account ID specified in the configuration of the provider. See the **Example: Filter By Account ID** section above for more details.
325
325
  :param str domain: The entity's domain. Valid values are APM, BROWSER, INFRA, MOBILE, SYNTH, and EXT. If not specified, all domains are searched.
326
326
  :param bool ignore_case: Ignore case of the `name` when searching for the entity. Defaults to false.
327
327
  :param bool ignore_not_found: A boolean argument that, when set to true, prevents an error from being thrown when the queried entity is not found. Instead, a warning is displayed. Defaults to `false`.
@@ -24,8 +24,8 @@ class GetNotificationDestinationResult:
24
24
  A collection of values returned by getNotificationDestination.
25
25
  """
26
26
  def __init__(__self__, account_id=None, active=None, guid=None, id=None, name=None, properties=None, secure_urls=None, status=None, type=None):
27
- if account_id and not isinstance(account_id, int):
28
- raise TypeError("Expected argument 'account_id' to be a int")
27
+ if account_id and not isinstance(account_id, str):
28
+ raise TypeError("Expected argument 'account_id' to be a str")
29
29
  pulumi.set(__self__, "account_id", account_id)
30
30
  if active and not isinstance(active, bool):
31
31
  raise TypeError("Expected argument 'active' to be a bool")
@@ -54,7 +54,7 @@ class GetNotificationDestinationResult:
54
54
 
55
55
  @property
56
56
  @pulumi.getter(name="accountId")
57
- def account_id(self) -> int:
57
+ def account_id(self) -> str:
58
58
  return pulumi.get(self, "account_id")
59
59
 
60
60
  @property
@@ -136,7 +136,7 @@ class AwaitableGetNotificationDestinationResult(GetNotificationDestinationResult
136
136
  type=self.type)
137
137
 
138
138
 
139
- def get_notification_destination(account_id: Optional[int] = None,
139
+ def get_notification_destination(account_id: Optional[str] = None,
140
140
  id: Optional[str] = None,
141
141
  name: Optional[str] = None,
142
142
  secure_urls: Optional[Sequence[pulumi.InputType['GetNotificationDestinationSecureUrlArgs']]] = None,
@@ -144,7 +144,7 @@ def get_notification_destination(account_id: Optional[int] = None,
144
144
  """
145
145
  Use this data source to access information about an existing resource.
146
146
 
147
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
147
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
148
148
  :param str id: The id of the notification destination in New Relic.
149
149
  :param str name: The name of the notification destination.
150
150
 
@@ -172,7 +172,7 @@ def get_notification_destination(account_id: Optional[int] = None,
172
172
 
173
173
 
174
174
  @_utilities.lift_output_func(get_notification_destination)
175
- def get_notification_destination_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
175
+ def get_notification_destination_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
176
176
  id: Optional[pulumi.Input[Optional[str]]] = None,
177
177
  name: Optional[pulumi.Input[Optional[str]]] = None,
178
178
  secure_urls: Optional[pulumi.Input[Optional[Sequence[pulumi.InputType['GetNotificationDestinationSecureUrlArgs']]]]] = None,
@@ -180,7 +180,7 @@ def get_notification_destination_output(account_id: Optional[pulumi.Input[Option
180
180
  """
181
181
  Use this data source to access information about an existing resource.
182
182
 
183
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
183
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
184
184
  :param str id: The id of the notification destination in New Relic.
185
185
  :param str name: The name of the notification destination.
186
186
 
@@ -22,8 +22,8 @@ class GetObfuscationExpressionResult:
22
22
  A collection of values returned by getObfuscationExpression.
23
23
  """
24
24
  def __init__(__self__, account_id=None, id=None, name=None):
25
- if account_id and not isinstance(account_id, int):
26
- raise TypeError("Expected argument 'account_id' to be a int")
25
+ if account_id and not isinstance(account_id, str):
26
+ raise TypeError("Expected argument 'account_id' to be a str")
27
27
  pulumi.set(__self__, "account_id", account_id)
28
28
  if id and not isinstance(id, str):
29
29
  raise TypeError("Expected argument 'id' to be a str")
@@ -34,7 +34,7 @@ class GetObfuscationExpressionResult:
34
34
 
35
35
  @property
36
36
  @pulumi.getter(name="accountId")
37
- def account_id(self) -> Optional[int]:
37
+ def account_id(self) -> Optional[str]:
38
38
  return pulumi.get(self, "account_id")
39
39
 
40
40
  @property
@@ -62,7 +62,7 @@ class AwaitableGetObfuscationExpressionResult(GetObfuscationExpressionResult):
62
62
  name=self.name)
63
63
 
64
64
 
65
- def get_obfuscation_expression(account_id: Optional[int] = None,
65
+ def get_obfuscation_expression(account_id: Optional[str] = None,
66
66
  name: Optional[str] = None,
67
67
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetObfuscationExpressionResult:
68
68
  """
@@ -74,7 +74,7 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
74
74
  import pulumi
75
75
  import pulumi_newrelic as newrelic
76
76
 
77
- expression = newrelic.get_obfuscation_expression(account_id=123456,
77
+ expression = newrelic.get_obfuscation_expression(account_id="123456",
78
78
  name="The expression")
79
79
  rule = newrelic.ObfuscationRule("rule",
80
80
  name="ruleName",
@@ -89,7 +89,7 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
89
89
  ```
90
90
 
91
91
 
92
- :param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
92
+ :param str account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
93
93
  :param str name: Name of expression.
94
94
  """
95
95
  __args__ = dict()
@@ -105,7 +105,7 @@ def get_obfuscation_expression(account_id: Optional[int] = None,
105
105
 
106
106
 
107
107
  @_utilities.lift_output_func(get_obfuscation_expression)
108
- def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
108
+ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
109
109
  name: Optional[pulumi.Input[str]] = None,
110
110
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetObfuscationExpressionResult]:
111
111
  """
@@ -117,7 +117,7 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
117
117
  import pulumi
118
118
  import pulumi_newrelic as newrelic
119
119
 
120
- expression = newrelic.get_obfuscation_expression(account_id=123456,
120
+ expression = newrelic.get_obfuscation_expression(account_id="123456",
121
121
  name="The expression")
122
122
  rule = newrelic.ObfuscationRule("rule",
123
123
  name="ruleName",
@@ -132,7 +132,7 @@ def get_obfuscation_expression_output(account_id: Optional[pulumi.Input[Optional
132
132
  ```
133
133
 
134
134
 
135
- :param int account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
135
+ :param str account_id: The account id associated with the obfuscation expression. If left empty will default to account ID specified in provider level configuration.
136
136
  :param str name: Name of expression.
137
137
  """
138
138
  ...
@@ -181,7 +181,7 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
181
181
  name="Latency",
182
182
  description="Proportion of requests that are served faster than a threshold.",
183
183
  events=newrelic.ServiceLevelEventsArgs(
184
- account_id=12345678,
184
+ account_id="12345678",
185
185
  valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
186
186
  from_="Transaction",
187
187
  where="appName = 'Example application' AND (transactionType='Web')",
@@ -217,8 +217,8 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
217
217
  slo_period=foo_period,
218
218
  is_bad_events=True)
219
219
  your_condition = newrelic.NrqlAlertCondition("your_condition",
220
- account_id=12345678,
221
- policy_id=67890,
220
+ account_id="12345678",
221
+ policy_id="67890",
222
222
  type="static",
223
223
  name="Slow burn alert",
224
224
  enabled=True,
@@ -253,8 +253,8 @@ def get_service_level_alert_helper(alert_type: Optional[str] = None,
253
253
  custom_evaluation_period=5400,
254
254
  is_bad_events=True)
255
255
  your_condition = newrelic.NrqlAlertCondition("your_condition",
256
- account_id=12345678,
257
- policy_id=67890,
256
+ account_id="12345678",
257
+ policy_id="67890",
258
258
  type="static",
259
259
  name="Custom burn alert",
260
260
  enabled=True,
@@ -328,7 +328,7 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
328
328
  name="Latency",
329
329
  description="Proportion of requests that are served faster than a threshold.",
330
330
  events=newrelic.ServiceLevelEventsArgs(
331
- account_id=12345678,
331
+ account_id="12345678",
332
332
  valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
333
333
  from_="Transaction",
334
334
  where="appName = 'Example application' AND (transactionType='Web')",
@@ -364,8 +364,8 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
364
364
  slo_period=foo_period,
365
365
  is_bad_events=True)
366
366
  your_condition = newrelic.NrqlAlertCondition("your_condition",
367
- account_id=12345678,
368
- policy_id=67890,
367
+ account_id="12345678",
368
+ policy_id="67890",
369
369
  type="static",
370
370
  name="Slow burn alert",
371
371
  enabled=True,
@@ -400,8 +400,8 @@ def get_service_level_alert_helper_output(alert_type: Optional[pulumi.Input[str]
400
400
  custom_evaluation_period=5400,
401
401
  is_bad_events=True)
402
402
  your_condition = newrelic.NrqlAlertCondition("your_condition",
403
- account_id=12345678,
404
- policy_id=67890,
403
+ account_id="12345678",
404
+ policy_id="67890",
405
405
  type="static",
406
406
  name="Custom burn alert",
407
407
  enabled=True,
@@ -23,8 +23,8 @@ class GetTestGrokPatternResult:
23
23
  A collection of values returned by getTestGrokPattern.
24
24
  """
25
25
  def __init__(__self__, account_id=None, grok=None, id=None, log_lines=None, test_groks=None):
26
- if account_id and not isinstance(account_id, int):
27
- raise TypeError("Expected argument 'account_id' to be a int")
26
+ if account_id and not isinstance(account_id, str):
27
+ raise TypeError("Expected argument 'account_id' to be a str")
28
28
  pulumi.set(__self__, "account_id", account_id)
29
29
  if grok and not isinstance(grok, str):
30
30
  raise TypeError("Expected argument 'grok' to be a str")
@@ -41,7 +41,7 @@ class GetTestGrokPatternResult:
41
41
 
42
42
  @property
43
43
  @pulumi.getter(name="accountId")
44
- def account_id(self) -> Optional[int]:
44
+ def account_id(self) -> Optional[str]:
45
45
  return pulumi.get(self, "account_id")
46
46
 
47
47
  @property
@@ -84,7 +84,7 @@ class AwaitableGetTestGrokPatternResult(GetTestGrokPatternResult):
84
84
  test_groks=self.test_groks)
85
85
 
86
86
 
87
- def get_test_grok_pattern(account_id: Optional[int] = None,
87
+ def get_test_grok_pattern(account_id: Optional[str] = None,
88
88
  grok: Optional[str] = None,
89
89
  log_lines: Optional[Sequence[str]] = None,
90
90
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTestGrokPatternResult:
@@ -104,7 +104,7 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
104
104
  ```
105
105
 
106
106
 
107
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
107
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
108
108
  :param str grok: The Grok pattern to test.
109
109
  :param Sequence[str] log_lines: The log lines to test the Grok pattern against.
110
110
  """
@@ -124,7 +124,7 @@ def get_test_grok_pattern(account_id: Optional[int] = None,
124
124
 
125
125
 
126
126
  @_utilities.lift_output_func(get_test_grok_pattern)
127
- def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]]] = None,
127
+ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[str]]] = None,
128
128
  grok: Optional[pulumi.Input[str]] = None,
129
129
  log_lines: Optional[pulumi.Input[Sequence[str]]] = None,
130
130
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTestGrokPatternResult]:
@@ -144,7 +144,7 @@ def get_test_grok_pattern_output(account_id: Optional[pulumi.Input[Optional[int]
144
144
  ```
145
145
 
146
146
 
147
- :param int account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
147
+ :param str account_id: The New Relic account ID to operate on. This allows you to override the `account_id` attribute set on the provider. Defaults to the environment variable `NEW_RELIC_ACCOUNT_ID`.
148
148
  :param str grok: The Grok pattern to test.
149
149
  :param Sequence[str] log_lines: The log lines to test the Grok pattern against.
150
150
  """