pulumi-newrelic 5.16.0a1698964311__py3-none-any.whl → 5.58.0a1763707205__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.
Potentially problematic release.
This version of pulumi-newrelic might be problematic. Click here for more details.
- pulumi_newrelic/__init__.py +58 -1
- pulumi_newrelic/_inputs.py +10772 -2775
- pulumi_newrelic/_utilities.py +92 -11
- pulumi_newrelic/account_management.py +56 -42
- pulumi_newrelic/alert_channel.py +177 -151
- pulumi_newrelic/alert_condition.py +313 -301
- pulumi_newrelic/alert_muting_rule.py +195 -138
- pulumi_newrelic/alert_policy.py +157 -109
- pulumi_newrelic/alert_policy_channel.py +95 -81
- pulumi_newrelic/api_access_key.py +191 -209
- pulumi_newrelic/browser_application.py +161 -153
- pulumi_newrelic/cloud/__init__.py +3 -1
- pulumi_newrelic/cloud/_inputs.py +4267 -2710
- pulumi_newrelic/cloud/aws_govcloud_integrations.py +238 -200
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +159 -212
- pulumi_newrelic/cloud/aws_integrations.py +518 -1490
- pulumi_newrelic/cloud/aws_link_account.py +88 -76
- pulumi_newrelic/cloud/azure_integrations.py +681 -587
- pulumi_newrelic/cloud/azure_link_account.py +129 -117
- pulumi_newrelic/cloud/gcp_integrations.py +436 -408
- pulumi_newrelic/cloud/gcp_link_account.py +71 -59
- pulumi_newrelic/cloud/oci_link_account.py +926 -0
- pulumi_newrelic/cloud/outputs.py +1678 -2317
- pulumi_newrelic/config/__init__.py +2 -1
- pulumi_newrelic/config/__init__.pyi +45 -0
- pulumi_newrelic/config/vars.py +22 -17
- pulumi_newrelic/data_partition_rule.py +129 -117
- pulumi_newrelic/entity_tags.py +153 -31
- pulumi_newrelic/events_to_metrics_rule.py +114 -102
- pulumi_newrelic/get_account.py +41 -29
- pulumi_newrelic/get_alert_channel.py +73 -28
- pulumi_newrelic/get_alert_policy.py +83 -34
- pulumi_newrelic/get_application.py +51 -39
- pulumi_newrelic/get_authentication_domain.py +111 -0
- pulumi_newrelic/get_cloud_account.py +43 -31
- pulumi_newrelic/get_entity.py +126 -121
- pulumi_newrelic/get_group.py +190 -0
- pulumi_newrelic/get_key_transaction.py +117 -38
- pulumi_newrelic/get_notification_destination.py +86 -36
- pulumi_newrelic/get_obfuscation_expression.py +47 -35
- pulumi_newrelic/get_service_level_alert_helper.py +237 -137
- pulumi_newrelic/get_test_grok_pattern.py +47 -32
- pulumi_newrelic/get_user.py +165 -0
- pulumi_newrelic/group.py +286 -0
- pulumi_newrelic/infra_alert_condition.py +400 -382
- pulumi_newrelic/insights/__init__.py +2 -1
- pulumi_newrelic/insights/_inputs.py +94 -23
- pulumi_newrelic/insights/event.py +56 -48
- pulumi_newrelic/insights/outputs.py +51 -18
- pulumi_newrelic/key_transaction.py +465 -0
- pulumi_newrelic/log_parsing_rule.py +169 -153
- pulumi_newrelic/monitor_downtime.py +914 -0
- pulumi_newrelic/notification_channel.py +560 -418
- pulumi_newrelic/notification_destination.py +379 -124
- pulumi_newrelic/nrql_alert_condition.py +945 -513
- pulumi_newrelic/nrql_drop_rule.py +121 -129
- pulumi_newrelic/obfuscation_expression.py +88 -76
- pulumi_newrelic/obfuscation_rule.py +123 -109
- pulumi_newrelic/one_dashboard.py +118 -108
- pulumi_newrelic/one_dashboard_json.py +77 -67
- pulumi_newrelic/one_dashboard_raw.py +214 -202
- pulumi_newrelic/outputs.py +5491 -2141
- pulumi_newrelic/pipeline_cloud_rule.py +335 -0
- pulumi_newrelic/plugins/__init__.py +2 -1
- pulumi_newrelic/plugins/_inputs.py +520 -90
- pulumi_newrelic/plugins/application_settings.py +463 -167
- pulumi_newrelic/plugins/outputs.py +337 -75
- pulumi_newrelic/plugins/workload.py +387 -151
- pulumi_newrelic/provider.py +156 -142
- pulumi_newrelic/pulumi-plugin.json +2 -1
- pulumi_newrelic/service_level.py +277 -255
- pulumi_newrelic/synthetics/__init__.py +2 -1
- pulumi_newrelic/synthetics/_inputs.py +275 -106
- pulumi_newrelic/synthetics/alert_condition.py +174 -160
- pulumi_newrelic/synthetics/broken_links_monitor.py +367 -207
- pulumi_newrelic/synthetics/cert_check_monitor.py +380 -218
- pulumi_newrelic/synthetics/get_private_location.py +51 -39
- pulumi_newrelic/synthetics/get_secure_credential.py +39 -27
- pulumi_newrelic/synthetics/monitor.py +668 -462
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +219 -201
- pulumi_newrelic/synthetics/outputs.py +102 -85
- pulumi_newrelic/synthetics/private_location.py +120 -110
- pulumi_newrelic/synthetics/script_monitor.py +623 -375
- pulumi_newrelic/synthetics/secure_credential.py +99 -93
- pulumi_newrelic/synthetics/step_monitor.py +545 -201
- pulumi_newrelic/user.py +366 -0
- pulumi_newrelic/workflow.py +348 -312
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/METADATA +8 -7
- pulumi_newrelic-5.58.0a1763707205.dist-info/RECORD +92 -0
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/WHEEL +1 -1
- pulumi_newrelic-5.16.0a1698964311.dist-info/RECORD +0 -82
- {pulumi_newrelic-5.16.0a1698964311.dist-info → pulumi_newrelic-5.58.0a1763707205.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins as _builtins
|
|
5
6
|
import sys
|
|
6
7
|
from .vars import _ExportableConfig
|
|
7
8
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
|
|
17
|
+
accountId: Optional[str]
|
|
18
|
+
|
|
19
|
+
adminApiKey: Optional[str]
|
|
20
|
+
|
|
21
|
+
apiKey: Optional[str]
|
|
22
|
+
|
|
23
|
+
apiUrl: Optional[str]
|
|
24
|
+
|
|
25
|
+
cacertFile: Optional[str]
|
|
26
|
+
|
|
27
|
+
infrastructureApiUrl: Optional[str]
|
|
28
|
+
|
|
29
|
+
insecureSkipVerify: Optional[bool]
|
|
30
|
+
|
|
31
|
+
insightsInsertKey: Optional[str]
|
|
32
|
+
|
|
33
|
+
insightsInsertUrl: Optional[str]
|
|
34
|
+
|
|
35
|
+
insightsQueryUrl: Optional[str]
|
|
36
|
+
|
|
37
|
+
nerdgraphApiUrl: Optional[str]
|
|
38
|
+
|
|
39
|
+
region: str
|
|
40
|
+
"""
|
|
41
|
+
The data center for which your New Relic account is configured. Only one region per provider block is permitted.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
syntheticsApiUrl: Optional[str]
|
|
45
|
+
|
pulumi_newrelic/config/vars.py
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
|
|
12
17
|
import types
|
|
@@ -15,58 +20,58 @@ __config__ = pulumi.Config('newrelic')
|
|
|
15
20
|
|
|
16
21
|
|
|
17
22
|
class _ExportableConfig(types.ModuleType):
|
|
18
|
-
@property
|
|
19
|
-
def account_id(self) -> Optional[
|
|
20
|
-
return __config__.
|
|
23
|
+
@_builtins.property
|
|
24
|
+
def account_id(self) -> Optional[str]:
|
|
25
|
+
return __config__.get('accountId') or _utilities.get_env('NEW_RELIC_ACCOUNT_ID')
|
|
21
26
|
|
|
22
|
-
@property
|
|
27
|
+
@_builtins.property
|
|
23
28
|
def admin_api_key(self) -> Optional[str]:
|
|
24
29
|
return __config__.get('adminApiKey')
|
|
25
30
|
|
|
26
|
-
@property
|
|
31
|
+
@_builtins.property
|
|
27
32
|
def api_key(self) -> Optional[str]:
|
|
28
33
|
return __config__.get('apiKey')
|
|
29
34
|
|
|
30
|
-
@property
|
|
35
|
+
@_builtins.property
|
|
31
36
|
def api_url(self) -> Optional[str]:
|
|
32
37
|
return __config__.get('apiUrl')
|
|
33
38
|
|
|
34
|
-
@property
|
|
39
|
+
@_builtins.property
|
|
35
40
|
def cacert_file(self) -> Optional[str]:
|
|
36
41
|
return __config__.get('cacertFile')
|
|
37
42
|
|
|
38
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
39
44
|
def infrastructure_api_url(self) -> Optional[str]:
|
|
40
45
|
return __config__.get('infrastructureApiUrl')
|
|
41
46
|
|
|
42
|
-
@property
|
|
47
|
+
@_builtins.property
|
|
43
48
|
def insecure_skip_verify(self) -> Optional[bool]:
|
|
44
49
|
return __config__.get_bool('insecureSkipVerify')
|
|
45
50
|
|
|
46
|
-
@property
|
|
51
|
+
@_builtins.property
|
|
47
52
|
def insights_insert_key(self) -> Optional[str]:
|
|
48
53
|
return __config__.get('insightsInsertKey')
|
|
49
54
|
|
|
50
|
-
@property
|
|
55
|
+
@_builtins.property
|
|
51
56
|
def insights_insert_url(self) -> Optional[str]:
|
|
52
57
|
return __config__.get('insightsInsertUrl')
|
|
53
58
|
|
|
54
|
-
@property
|
|
59
|
+
@_builtins.property
|
|
55
60
|
def insights_query_url(self) -> Optional[str]:
|
|
56
61
|
return __config__.get('insightsQueryUrl')
|
|
57
62
|
|
|
58
|
-
@property
|
|
63
|
+
@_builtins.property
|
|
59
64
|
def nerdgraph_api_url(self) -> Optional[str]:
|
|
60
65
|
return __config__.get('nerdgraphApiUrl')
|
|
61
66
|
|
|
62
|
-
@property
|
|
67
|
+
@_builtins.property
|
|
63
68
|
def region(self) -> str:
|
|
64
69
|
"""
|
|
65
70
|
The data center for which your New Relic account is configured. Only one region per provider block is permitted.
|
|
66
71
|
"""
|
|
67
72
|
return __config__.get('region') or (_utilities.get_env('NEW_RELIC_REGION') or 'US')
|
|
68
73
|
|
|
69
|
-
@property
|
|
74
|
+
@_builtins.property
|
|
70
75
|
def synthetics_api_url(self) -> Optional[str]:
|
|
71
76
|
return __config__.get('syntheticsApiUrl')
|
|
72
77
|
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['DataPartitionRuleArgs', 'DataPartitionRule']
|
|
@@ -14,20 +19,20 @@ __all__ = ['DataPartitionRuleArgs', 'DataPartitionRule']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class DataPartitionRuleArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
enabled: pulumi.Input[bool],
|
|
18
|
-
nrql: pulumi.Input[str],
|
|
19
|
-
retention_policy: pulumi.Input[str],
|
|
20
|
-
target_data_partition: pulumi.Input[str],
|
|
21
|
-
account_id: Optional[pulumi.Input[
|
|
22
|
-
description: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
enabled: pulumi.Input[_builtins.bool],
|
|
23
|
+
nrql: pulumi.Input[_builtins.str],
|
|
24
|
+
retention_policy: pulumi.Input[_builtins.str],
|
|
25
|
+
target_data_partition: pulumi.Input[_builtins.str],
|
|
26
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
description: Optional[pulumi.Input[_builtins.str]] = None):
|
|
23
28
|
"""
|
|
24
29
|
The set of arguments for constructing a DataPartitionRule resource.
|
|
25
|
-
:param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
|
|
26
|
-
:param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
27
|
-
:param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
28
|
-
:param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
29
|
-
:param pulumi.Input[
|
|
30
|
-
:param pulumi.Input[str] description: The description of the data partition rule.
|
|
30
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
|
|
31
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
32
|
+
:param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
33
|
+
:param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
34
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
|
|
35
|
+
:param pulumi.Input[_builtins.str] description: The description of the data partition rule.
|
|
31
36
|
"""
|
|
32
37
|
pulumi.set(__self__, "enabled", enabled)
|
|
33
38
|
pulumi.set(__self__, "nrql", nrql)
|
|
@@ -38,98 +43,98 @@ class DataPartitionRuleArgs:
|
|
|
38
43
|
if description is not None:
|
|
39
44
|
pulumi.set(__self__, "description", description)
|
|
40
45
|
|
|
41
|
-
@property
|
|
46
|
+
@_builtins.property
|
|
42
47
|
@pulumi.getter
|
|
43
|
-
def enabled(self) -> pulumi.Input[bool]:
|
|
48
|
+
def enabled(self) -> pulumi.Input[_builtins.bool]:
|
|
44
49
|
"""
|
|
45
50
|
Whether or not this data partition rule is enabled.
|
|
46
51
|
"""
|
|
47
52
|
return pulumi.get(self, "enabled")
|
|
48
53
|
|
|
49
54
|
@enabled.setter
|
|
50
|
-
def enabled(self, value: pulumi.Input[bool]):
|
|
55
|
+
def enabled(self, value: pulumi.Input[_builtins.bool]):
|
|
51
56
|
pulumi.set(self, "enabled", value)
|
|
52
57
|
|
|
53
|
-
@property
|
|
58
|
+
@_builtins.property
|
|
54
59
|
@pulumi.getter
|
|
55
|
-
def nrql(self) -> pulumi.Input[str]:
|
|
60
|
+
def nrql(self) -> pulumi.Input[_builtins.str]:
|
|
56
61
|
"""
|
|
57
62
|
The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
58
63
|
"""
|
|
59
64
|
return pulumi.get(self, "nrql")
|
|
60
65
|
|
|
61
66
|
@nrql.setter
|
|
62
|
-
def nrql(self, value: pulumi.Input[str]):
|
|
67
|
+
def nrql(self, value: pulumi.Input[_builtins.str]):
|
|
63
68
|
pulumi.set(self, "nrql", value)
|
|
64
69
|
|
|
65
|
-
@property
|
|
70
|
+
@_builtins.property
|
|
66
71
|
@pulumi.getter(name="retentionPolicy")
|
|
67
|
-
def retention_policy(self) -> pulumi.Input[str]:
|
|
72
|
+
def retention_policy(self) -> pulumi.Input[_builtins.str]:
|
|
68
73
|
"""
|
|
69
74
|
The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
70
75
|
"""
|
|
71
76
|
return pulumi.get(self, "retention_policy")
|
|
72
77
|
|
|
73
78
|
@retention_policy.setter
|
|
74
|
-
def retention_policy(self, value: pulumi.Input[str]):
|
|
79
|
+
def retention_policy(self, value: pulumi.Input[_builtins.str]):
|
|
75
80
|
pulumi.set(self, "retention_policy", value)
|
|
76
81
|
|
|
77
|
-
@property
|
|
82
|
+
@_builtins.property
|
|
78
83
|
@pulumi.getter(name="targetDataPartition")
|
|
79
|
-
def target_data_partition(self) -> pulumi.Input[str]:
|
|
84
|
+
def target_data_partition(self) -> pulumi.Input[_builtins.str]:
|
|
80
85
|
"""
|
|
81
86
|
The name of the data partition where logs will be allocated once the rule is enabled.
|
|
82
87
|
"""
|
|
83
88
|
return pulumi.get(self, "target_data_partition")
|
|
84
89
|
|
|
85
90
|
@target_data_partition.setter
|
|
86
|
-
def target_data_partition(self, value: pulumi.Input[str]):
|
|
91
|
+
def target_data_partition(self, value: pulumi.Input[_builtins.str]):
|
|
87
92
|
pulumi.set(self, "target_data_partition", value)
|
|
88
93
|
|
|
89
|
-
@property
|
|
94
|
+
@_builtins.property
|
|
90
95
|
@pulumi.getter(name="accountId")
|
|
91
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
96
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
92
97
|
"""
|
|
93
98
|
The account id associated with the data partition rule.
|
|
94
99
|
"""
|
|
95
100
|
return pulumi.get(self, "account_id")
|
|
96
101
|
|
|
97
102
|
@account_id.setter
|
|
98
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
103
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
99
104
|
pulumi.set(self, "account_id", value)
|
|
100
105
|
|
|
101
|
-
@property
|
|
106
|
+
@_builtins.property
|
|
102
107
|
@pulumi.getter
|
|
103
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
108
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
104
109
|
"""
|
|
105
110
|
The description of the data partition rule.
|
|
106
111
|
"""
|
|
107
112
|
return pulumi.get(self, "description")
|
|
108
113
|
|
|
109
114
|
@description.setter
|
|
110
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
115
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
111
116
|
pulumi.set(self, "description", value)
|
|
112
117
|
|
|
113
118
|
|
|
114
119
|
@pulumi.input_type
|
|
115
120
|
class _DataPartitionRuleState:
|
|
116
121
|
def __init__(__self__, *,
|
|
117
|
-
account_id: Optional[pulumi.Input[
|
|
118
|
-
deleted: Optional[pulumi.Input[bool]] = None,
|
|
119
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
120
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
121
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
122
|
-
retention_policy: Optional[pulumi.Input[str]] = None,
|
|
123
|
-
target_data_partition: Optional[pulumi.Input[str]] = None):
|
|
122
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
123
|
+
deleted: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
124
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
125
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
126
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
127
|
+
retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
128
|
+
target_data_partition: Optional[pulumi.Input[_builtins.str]] = None):
|
|
124
129
|
"""
|
|
125
130
|
Input properties used for looking up and filtering DataPartitionRule resources.
|
|
126
|
-
:param pulumi.Input[
|
|
127
|
-
:param pulumi.Input[bool] deleted: Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
|
|
128
|
-
:param pulumi.Input[str] description: The description of the data partition rule.
|
|
129
|
-
:param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
|
|
130
|
-
:param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
131
|
-
:param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
132
|
-
:param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
131
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
|
|
132
|
+
:param pulumi.Input[_builtins.bool] deleted: Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
|
|
133
|
+
:param pulumi.Input[_builtins.str] description: The description of the data partition rule.
|
|
134
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
|
|
135
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
136
|
+
:param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
137
|
+
:param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
133
138
|
"""
|
|
134
139
|
if account_id is not None:
|
|
135
140
|
pulumi.set(__self__, "account_id", account_id)
|
|
@@ -146,102 +151,103 @@ class _DataPartitionRuleState:
|
|
|
146
151
|
if target_data_partition is not None:
|
|
147
152
|
pulumi.set(__self__, "target_data_partition", target_data_partition)
|
|
148
153
|
|
|
149
|
-
@property
|
|
154
|
+
@_builtins.property
|
|
150
155
|
@pulumi.getter(name="accountId")
|
|
151
|
-
def account_id(self) -> Optional[pulumi.Input[
|
|
156
|
+
def account_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
152
157
|
"""
|
|
153
158
|
The account id associated with the data partition rule.
|
|
154
159
|
"""
|
|
155
160
|
return pulumi.get(self, "account_id")
|
|
156
161
|
|
|
157
162
|
@account_id.setter
|
|
158
|
-
def account_id(self, value: Optional[pulumi.Input[
|
|
163
|
+
def account_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
159
164
|
pulumi.set(self, "account_id", value)
|
|
160
165
|
|
|
161
|
-
@property
|
|
166
|
+
@_builtins.property
|
|
162
167
|
@pulumi.getter
|
|
163
|
-
def deleted(self) -> Optional[pulumi.Input[bool]]:
|
|
168
|
+
def deleted(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
164
169
|
"""
|
|
165
170
|
Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
|
|
166
171
|
"""
|
|
167
172
|
return pulumi.get(self, "deleted")
|
|
168
173
|
|
|
169
174
|
@deleted.setter
|
|
170
|
-
def deleted(self, value: Optional[pulumi.Input[bool]]):
|
|
175
|
+
def deleted(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
171
176
|
pulumi.set(self, "deleted", value)
|
|
172
177
|
|
|
173
|
-
@property
|
|
178
|
+
@_builtins.property
|
|
174
179
|
@pulumi.getter
|
|
175
|
-
def description(self) -> Optional[pulumi.Input[str]]:
|
|
180
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
176
181
|
"""
|
|
177
182
|
The description of the data partition rule.
|
|
178
183
|
"""
|
|
179
184
|
return pulumi.get(self, "description")
|
|
180
185
|
|
|
181
186
|
@description.setter
|
|
182
|
-
def description(self, value: Optional[pulumi.Input[str]]):
|
|
187
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
183
188
|
pulumi.set(self, "description", value)
|
|
184
189
|
|
|
185
|
-
@property
|
|
190
|
+
@_builtins.property
|
|
186
191
|
@pulumi.getter
|
|
187
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
192
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
188
193
|
"""
|
|
189
194
|
Whether or not this data partition rule is enabled.
|
|
190
195
|
"""
|
|
191
196
|
return pulumi.get(self, "enabled")
|
|
192
197
|
|
|
193
198
|
@enabled.setter
|
|
194
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
199
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
195
200
|
pulumi.set(self, "enabled", value)
|
|
196
201
|
|
|
197
|
-
@property
|
|
202
|
+
@_builtins.property
|
|
198
203
|
@pulumi.getter
|
|
199
|
-
def nrql(self) -> Optional[pulumi.Input[str]]:
|
|
204
|
+
def nrql(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
200
205
|
"""
|
|
201
206
|
The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
202
207
|
"""
|
|
203
208
|
return pulumi.get(self, "nrql")
|
|
204
209
|
|
|
205
210
|
@nrql.setter
|
|
206
|
-
def nrql(self, value: Optional[pulumi.Input[str]]):
|
|
211
|
+
def nrql(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
207
212
|
pulumi.set(self, "nrql", value)
|
|
208
213
|
|
|
209
|
-
@property
|
|
214
|
+
@_builtins.property
|
|
210
215
|
@pulumi.getter(name="retentionPolicy")
|
|
211
|
-
def retention_policy(self) -> Optional[pulumi.Input[str]]:
|
|
216
|
+
def retention_policy(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
212
217
|
"""
|
|
213
218
|
The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
214
219
|
"""
|
|
215
220
|
return pulumi.get(self, "retention_policy")
|
|
216
221
|
|
|
217
222
|
@retention_policy.setter
|
|
218
|
-
def retention_policy(self, value: Optional[pulumi.Input[str]]):
|
|
223
|
+
def retention_policy(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
219
224
|
pulumi.set(self, "retention_policy", value)
|
|
220
225
|
|
|
221
|
-
@property
|
|
226
|
+
@_builtins.property
|
|
222
227
|
@pulumi.getter(name="targetDataPartition")
|
|
223
|
-
def target_data_partition(self) -> Optional[pulumi.Input[str]]:
|
|
228
|
+
def target_data_partition(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
224
229
|
"""
|
|
225
230
|
The name of the data partition where logs will be allocated once the rule is enabled.
|
|
226
231
|
"""
|
|
227
232
|
return pulumi.get(self, "target_data_partition")
|
|
228
233
|
|
|
229
234
|
@target_data_partition.setter
|
|
230
|
-
def target_data_partition(self, value: Optional[pulumi.Input[str]]):
|
|
235
|
+
def target_data_partition(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
231
236
|
pulumi.set(self, "target_data_partition", value)
|
|
232
237
|
|
|
233
238
|
|
|
239
|
+
@pulumi.type_token("newrelic:index/dataPartitionRule:DataPartitionRule")
|
|
234
240
|
class DataPartitionRule(pulumi.CustomResource):
|
|
235
241
|
@overload
|
|
236
242
|
def __init__(__self__,
|
|
237
243
|
resource_name: str,
|
|
238
244
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
239
|
-
account_id: Optional[pulumi.Input[
|
|
240
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
241
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
242
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
243
|
-
retention_policy: Optional[pulumi.Input[str]] = None,
|
|
244
|
-
target_data_partition: Optional[pulumi.Input[str]] = None,
|
|
245
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
246
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
247
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
248
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
249
|
+
retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
250
|
+
target_data_partition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
245
251
|
__props__=None):
|
|
246
252
|
"""
|
|
247
253
|
Use this resource to create, update and delete New Relic Data partition rule.
|
|
@@ -259,26 +265,29 @@ class DataPartitionRule(pulumi.CustomResource):
|
|
|
259
265
|
retention_policy="STANDARD",
|
|
260
266
|
target_data_partition="Log_name")
|
|
261
267
|
```
|
|
268
|
+
|
|
262
269
|
## Additional Information
|
|
263
270
|
|
|
264
271
|
More details about the data partition can be found [here](https://docs.newrelic.com/docs/logs/ui-data/data-partitions/)
|
|
265
272
|
|
|
266
273
|
## Import
|
|
267
274
|
|
|
268
|
-
New Relic data partition rule can be imported using the rule ID, e.g.
|
|
275
|
+
New Relic data partition rule can be imported using the rule ID, e.g.
|
|
276
|
+
|
|
277
|
+
bash
|
|
269
278
|
|
|
270
279
|
```sh
|
|
271
|
-
|
|
280
|
+
$ pulumi import newrelic:index/dataPartitionRule:DataPartitionRule foo <id>
|
|
272
281
|
```
|
|
273
282
|
|
|
274
283
|
:param str resource_name: The name of the resource.
|
|
275
284
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
276
|
-
:param pulumi.Input[
|
|
277
|
-
:param pulumi.Input[str] description: The description of the data partition rule.
|
|
278
|
-
:param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
|
|
279
|
-
:param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
280
|
-
:param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
281
|
-
:param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
285
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
|
|
286
|
+
:param pulumi.Input[_builtins.str] description: The description of the data partition rule.
|
|
287
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
|
|
288
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
289
|
+
:param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
290
|
+
:param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
282
291
|
"""
|
|
283
292
|
...
|
|
284
293
|
@overload
|
|
@@ -302,16 +311,19 @@ class DataPartitionRule(pulumi.CustomResource):
|
|
|
302
311
|
retention_policy="STANDARD",
|
|
303
312
|
target_data_partition="Log_name")
|
|
304
313
|
```
|
|
314
|
+
|
|
305
315
|
## Additional Information
|
|
306
316
|
|
|
307
317
|
More details about the data partition can be found [here](https://docs.newrelic.com/docs/logs/ui-data/data-partitions/)
|
|
308
318
|
|
|
309
319
|
## Import
|
|
310
320
|
|
|
311
|
-
New Relic data partition rule can be imported using the rule ID, e.g.
|
|
321
|
+
New Relic data partition rule can be imported using the rule ID, e.g.
|
|
322
|
+
|
|
323
|
+
bash
|
|
312
324
|
|
|
313
325
|
```sh
|
|
314
|
-
|
|
326
|
+
$ pulumi import newrelic:index/dataPartitionRule:DataPartitionRule foo <id>
|
|
315
327
|
```
|
|
316
328
|
|
|
317
329
|
:param str resource_name: The name of the resource.
|
|
@@ -329,12 +341,12 @@ class DataPartitionRule(pulumi.CustomResource):
|
|
|
329
341
|
def _internal_init(__self__,
|
|
330
342
|
resource_name: str,
|
|
331
343
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
332
|
-
account_id: Optional[pulumi.Input[
|
|
333
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
334
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
335
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
336
|
-
retention_policy: Optional[pulumi.Input[str]] = None,
|
|
337
|
-
target_data_partition: Optional[pulumi.Input[str]] = None,
|
|
344
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
345
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
346
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
347
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
348
|
+
retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
349
|
+
target_data_partition: Optional[pulumi.Input[_builtins.str]] = None,
|
|
338
350
|
__props__=None):
|
|
339
351
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
340
352
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -369,13 +381,13 @@ class DataPartitionRule(pulumi.CustomResource):
|
|
|
369
381
|
def get(resource_name: str,
|
|
370
382
|
id: pulumi.Input[str],
|
|
371
383
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
372
|
-
account_id: Optional[pulumi.Input[
|
|
373
|
-
deleted: Optional[pulumi.Input[bool]] = None,
|
|
374
|
-
description: Optional[pulumi.Input[str]] = None,
|
|
375
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
376
|
-
nrql: Optional[pulumi.Input[str]] = None,
|
|
377
|
-
retention_policy: Optional[pulumi.Input[str]] = None,
|
|
378
|
-
target_data_partition: Optional[pulumi.Input[str]] = None) -> 'DataPartitionRule':
|
|
384
|
+
account_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
385
|
+
deleted: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
386
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
387
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
388
|
+
nrql: Optional[pulumi.Input[_builtins.str]] = None,
|
|
389
|
+
retention_policy: Optional[pulumi.Input[_builtins.str]] = None,
|
|
390
|
+
target_data_partition: Optional[pulumi.Input[_builtins.str]] = None) -> 'DataPartitionRule':
|
|
379
391
|
"""
|
|
380
392
|
Get an existing DataPartitionRule resource's state with the given name, id, and optional extra
|
|
381
393
|
properties used to qualify the lookup.
|
|
@@ -383,13 +395,13 @@ class DataPartitionRule(pulumi.CustomResource):
|
|
|
383
395
|
:param str resource_name: The unique name of the resulting resource.
|
|
384
396
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
385
397
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
386
|
-
:param pulumi.Input[
|
|
387
|
-
:param pulumi.Input[bool] deleted: Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
|
|
388
|
-
:param pulumi.Input[str] description: The description of the data partition rule.
|
|
389
|
-
:param pulumi.Input[bool] enabled: Whether or not this data partition rule is enabled.
|
|
390
|
-
:param pulumi.Input[str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
391
|
-
:param pulumi.Input[str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
392
|
-
:param pulumi.Input[str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
398
|
+
:param pulumi.Input[_builtins.str] account_id: The account id associated with the data partition rule.
|
|
399
|
+
:param pulumi.Input[_builtins.bool] deleted: Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
|
|
400
|
+
:param pulumi.Input[_builtins.str] description: The description of the data partition rule.
|
|
401
|
+
:param pulumi.Input[_builtins.bool] enabled: Whether or not this data partition rule is enabled.
|
|
402
|
+
:param pulumi.Input[_builtins.str] nrql: The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
403
|
+
:param pulumi.Input[_builtins.str] retention_policy: The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
404
|
+
:param pulumi.Input[_builtins.str] target_data_partition: The name of the data partition where logs will be allocated once the rule is enabled.
|
|
393
405
|
"""
|
|
394
406
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
395
407
|
|
|
@@ -404,57 +416,57 @@ class DataPartitionRule(pulumi.CustomResource):
|
|
|
404
416
|
__props__.__dict__["target_data_partition"] = target_data_partition
|
|
405
417
|
return DataPartitionRule(resource_name, opts=opts, __props__=__props__)
|
|
406
418
|
|
|
407
|
-
@property
|
|
419
|
+
@_builtins.property
|
|
408
420
|
@pulumi.getter(name="accountId")
|
|
409
|
-
def account_id(self) -> pulumi.Output[
|
|
421
|
+
def account_id(self) -> pulumi.Output[_builtins.str]:
|
|
410
422
|
"""
|
|
411
423
|
The account id associated with the data partition rule.
|
|
412
424
|
"""
|
|
413
425
|
return pulumi.get(self, "account_id")
|
|
414
426
|
|
|
415
|
-
@property
|
|
427
|
+
@_builtins.property
|
|
416
428
|
@pulumi.getter
|
|
417
|
-
def deleted(self) -> pulumi.Output[bool]:
|
|
429
|
+
def deleted(self) -> pulumi.Output[_builtins.bool]:
|
|
418
430
|
"""
|
|
419
431
|
Whether or not this data partition rule is deleted. Deleting a data partition rule does not delete the already persisted data. This data will be retained for a given period of time specified in the retention policy field.
|
|
420
432
|
"""
|
|
421
433
|
return pulumi.get(self, "deleted")
|
|
422
434
|
|
|
423
|
-
@property
|
|
435
|
+
@_builtins.property
|
|
424
436
|
@pulumi.getter
|
|
425
|
-
def description(self) -> pulumi.Output[Optional[str]]:
|
|
437
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
426
438
|
"""
|
|
427
439
|
The description of the data partition rule.
|
|
428
440
|
"""
|
|
429
441
|
return pulumi.get(self, "description")
|
|
430
442
|
|
|
431
|
-
@property
|
|
443
|
+
@_builtins.property
|
|
432
444
|
@pulumi.getter
|
|
433
|
-
def enabled(self) -> pulumi.Output[bool]:
|
|
445
|
+
def enabled(self) -> pulumi.Output[_builtins.bool]:
|
|
434
446
|
"""
|
|
435
447
|
Whether or not this data partition rule is enabled.
|
|
436
448
|
"""
|
|
437
449
|
return pulumi.get(self, "enabled")
|
|
438
450
|
|
|
439
|
-
@property
|
|
451
|
+
@_builtins.property
|
|
440
452
|
@pulumi.getter
|
|
441
|
-
def nrql(self) -> pulumi.Output[str]:
|
|
453
|
+
def nrql(self) -> pulumi.Output[_builtins.str]:
|
|
442
454
|
"""
|
|
443
455
|
The NRQL to match events for this data partition rule. Logs matching this criteria will be routed to the specified data partition.
|
|
444
456
|
"""
|
|
445
457
|
return pulumi.get(self, "nrql")
|
|
446
458
|
|
|
447
|
-
@property
|
|
459
|
+
@_builtins.property
|
|
448
460
|
@pulumi.getter(name="retentionPolicy")
|
|
449
|
-
def retention_policy(self) -> pulumi.Output[str]:
|
|
461
|
+
def retention_policy(self) -> pulumi.Output[_builtins.str]:
|
|
450
462
|
"""
|
|
451
463
|
The retention policy of the data partition data. Valid values are `SECONDARY` and `STANDARD`.
|
|
452
464
|
"""
|
|
453
465
|
return pulumi.get(self, "retention_policy")
|
|
454
466
|
|
|
455
|
-
@property
|
|
467
|
+
@_builtins.property
|
|
456
468
|
@pulumi.getter(name="targetDataPartition")
|
|
457
|
-
def target_data_partition(self) -> pulumi.Output[str]:
|
|
469
|
+
def target_data_partition(self) -> pulumi.Output[_builtins.str]:
|
|
458
470
|
"""
|
|
459
471
|
The name of the data partition where logs will be allocated once the rule is enabled.
|
|
460
472
|
"""
|