published on Sunday, Oct 11, 2026 by Descope
published on Sunday, Oct 11, 2026 by Descope
Manages a New Relic connector and its configuration in a Descope project. Stream authentication audit logs with the New Relic connector.
Create NewrelicConnector Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NewrelicConnector(name: string, args: NewrelicConnectorArgs, opts?: CustomResourceOptions);@overload
def NewrelicConnector(resource_name: str,
args: NewrelicConnectorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NewrelicConnector(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_key: Optional[str] = None,
project_id: Optional[str] = None,
audit_enabled: Optional[bool] = None,
audit_filters: Optional[Sequence[NewrelicConnectorAuditFilterArgs]] = None,
data_center: Optional[str] = None,
description: Optional[str] = None,
disabled: Optional[bool] = None,
logs_prefix: Optional[str] = None,
name: Optional[str] = None,
override_logs_prefix: Optional[bool] = None,
troubleshoot_log_enabled: Optional[bool] = None)func NewNewrelicConnector(ctx *Context, name string, args NewrelicConnectorArgs, opts ...ResourceOption) (*NewrelicConnector, error)public NewrelicConnector(string name, NewrelicConnectorArgs args, CustomResourceOptions? opts = null)
public NewrelicConnector(String name, NewrelicConnectorArgs args)
public NewrelicConnector(String name, NewrelicConnectorArgs args, CustomResourceOptions options)
type: descope:NewrelicConnector
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "descope_newrelic_connector" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args NewrelicConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NewrelicConnectorArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NewrelicConnectorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NewrelicConnectorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NewrelicConnectorArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var newrelicConnectorResource = new Descope.NewrelicConnector("newrelicConnectorResource", new()
{
ApiKey = "string",
ProjectId = "string",
AuditEnabled = false,
AuditFilters = new[]
{
new Descope.Inputs.NewrelicConnectorAuditFilterArgs
{
Key = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
DataCenter = "string",
Description = "string",
Disabled = false,
LogsPrefix = "string",
Name = "string",
OverrideLogsPrefix = false,
TroubleshootLogEnabled = false,
});
example, err := descope.NewNewrelicConnector(ctx, "newrelicConnectorResource", &descope.NewrelicConnectorArgs{
ApiKey: pulumi.String("string"),
ProjectId: pulumi.String("string"),
AuditEnabled: pulumi.Bool(false),
AuditFilters: descope.NewrelicConnectorAuditFilterArray{
&descope.NewrelicConnectorAuditFilterArgs{
Key: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
DataCenter: pulumi.String("string"),
Description: pulumi.String("string"),
Disabled: pulumi.Bool(false),
LogsPrefix: pulumi.String("string"),
Name: pulumi.String("string"),
OverrideLogsPrefix: pulumi.Bool(false),
TroubleshootLogEnabled: pulumi.Bool(false),
})
resource "descope_newrelic_connector" "newrelicConnectorResource" {
lifecycle {
create_before_destroy = true
}
api_key = "string"
project_id = "string"
audit_enabled = false
audit_filters {
key = "string"
operator = "string"
values = ["string"]
}
data_center = "string"
description = "string"
disabled = false
logs_prefix = "string"
name = "string"
override_logs_prefix = false
troubleshoot_log_enabled = false
}
var newrelicConnectorResource = new NewrelicConnector("newrelicConnectorResource", NewrelicConnectorArgs.builder()
.apiKey("string")
.projectId("string")
.auditEnabled(false)
.auditFilters(NewrelicConnectorAuditFilterArgs.builder()
.key("string")
.operator("string")
.values("string")
.build())
.dataCenter("string")
.description("string")
.disabled(false)
.logsPrefix("string")
.name("string")
.overrideLogsPrefix(false)
.troubleshootLogEnabled(false)
.build());
newrelic_connector_resource = descope.NewrelicConnector("newrelicConnectorResource",
api_key="string",
project_id="string",
audit_enabled=False,
audit_filters=[{
"key": "string",
"operator": "string",
"values": ["string"],
}],
data_center="string",
description="string",
disabled=False,
logs_prefix="string",
name="string",
override_logs_prefix=False,
troubleshoot_log_enabled=False)
const newrelicConnectorResource = new descope.NewrelicConnector("newrelicConnectorResource", {
apiKey: "string",
projectId: "string",
auditEnabled: false,
auditFilters: [{
key: "string",
operator: "string",
values: ["string"],
}],
dataCenter: "string",
description: "string",
disabled: false,
logsPrefix: "string",
name: "string",
overrideLogsPrefix: false,
troubleshootLogEnabled: false,
});
type: descope:NewrelicConnector
properties:
apiKey: string
auditEnabled: false
auditFilters:
- key: string
operator: string
values:
- string
dataCenter: string
description: string
disabled: false
logsPrefix: string
name: string
overrideLogsPrefix: false
projectId: string
troubleshootLogEnabled: false
NewrelicConnector Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NewrelicConnector resource accepts the following input properties:
- Api
Key string - Ingest License Key of the account you want to report data to.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- Audit
Enabled bool - Whether to enable streaming of audit events.
- Audit
Filters List<Descope.Newrelic Connector Audit Filter> - Specify which events will be sent to the external audit service (including tenant selection).
- Data
Center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - Description string
- A description of what your connector is used for.
- Disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- Logs
Prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - Name string
- A custom name for your connector.
- Override
Logs boolPrefix - Enable this option to use a custom prefix for log fields.
- Troubleshoot
Log boolEnabled - Whether to send troubleshooting events.
- Api
Key string - Ingest License Key of the account you want to report data to.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- Audit
Enabled bool - Whether to enable streaming of audit events.
- Audit
Filters []NewrelicConnector Audit Filter Args - Specify which events will be sent to the external audit service (including tenant selection).
- Data
Center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - Description string
- A description of what your connector is used for.
- Disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- Logs
Prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - Name string
- A custom name for your connector.
- Override
Logs boolPrefix - Enable this option to use a custom prefix for log fields.
- Troubleshoot
Log boolEnabled - Whether to send troubleshooting events.
- api_
key string - Ingest License Key of the account you want to report data to.
- project_
id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- audit_
enabled bool - Whether to enable streaming of audit events.
- audit_
filters list(object) - Specify which events will be sent to the external audit service (including tenant selection).
- data_
center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description string
- A description of what your connector is used for.
- disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs_
prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - name string
- A custom name for your connector.
- override_
logs_ boolprefix - Enable this option to use a custom prefix for log fields.
- troubleshoot_
log_ boolenabled - Whether to send troubleshooting events.
- api
Key String - Ingest License Key of the account you want to report data to.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- audit
Enabled Boolean - Whether to enable streaming of audit events.
- audit
Filters List<NewrelicConnector Audit Filter> - Specify which events will be sent to the external audit service (including tenant selection).
- data
Center String - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description String
- A description of what your connector is used for.
- disabled Boolean
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs
Prefix String - Specify a custom prefix for all log fields. The default prefix is
descope.. - name String
- A custom name for your connector.
- override
Logs BooleanPrefix - Enable this option to use a custom prefix for log fields.
- troubleshoot
Log BooleanEnabled - Whether to send troubleshooting events.
- api
Key string - Ingest License Key of the account you want to report data to.
- project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- audit
Enabled boolean - Whether to enable streaming of audit events.
- audit
Filters NewrelicConnector Audit Filter[] - Specify which events will be sent to the external audit service (including tenant selection).
- data
Center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description string
- A description of what your connector is used for.
- disabled boolean
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs
Prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - name string
- A custom name for your connector.
- override
Logs booleanPrefix - Enable this option to use a custom prefix for log fields.
- troubleshoot
Log booleanEnabled - Whether to send troubleshooting events.
- api_
key str - Ingest License Key of the account you want to report data to.
- project_
id str - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- audit_
enabled bool - Whether to enable streaming of audit events.
- audit_
filters Sequence[NewrelicConnector Audit Filter Args] - Specify which events will be sent to the external audit service (including tenant selection).
- data_
center str - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description str
- A description of what your connector is used for.
- disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs_
prefix str - Specify a custom prefix for all log fields. The default prefix is
descope.. - name str
- A custom name for your connector.
- override_
logs_ boolprefix - Enable this option to use a custom prefix for log fields.
- troubleshoot_
log_ boolenabled - Whether to send troubleshooting events.
- api
Key String - Ingest License Key of the account you want to report data to.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- audit
Enabled Boolean - Whether to enable streaming of audit events.
- audit
Filters List<Property Map> - Specify which events will be sent to the external audit service (including tenant selection).
- data
Center String - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description String
- A description of what your connector is used for.
- disabled Boolean
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs
Prefix String - Specify a custom prefix for all log fields. The default prefix is
descope.. - name String
- A custom name for your connector.
- override
Logs BooleanPrefix - Enable this option to use a custom prefix for log fields.
- troubleshoot
Log BooleanEnabled - Whether to send troubleshooting events.
Outputs
All input properties are implicitly available as output properties. Additionally, the NewrelicConnector resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NewrelicConnector Resource
Get an existing NewrelicConnector resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NewrelicConnectorState, opts?: CustomResourceOptions): NewrelicConnector@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_key: Optional[str] = None,
audit_enabled: Optional[bool] = None,
audit_filters: Optional[Sequence[NewrelicConnectorAuditFilterArgs]] = None,
data_center: Optional[str] = None,
description: Optional[str] = None,
disabled: Optional[bool] = None,
logs_prefix: Optional[str] = None,
name: Optional[str] = None,
override_logs_prefix: Optional[bool] = None,
project_id: Optional[str] = None,
troubleshoot_log_enabled: Optional[bool] = None) -> NewrelicConnectorfunc GetNewrelicConnector(ctx *Context, name string, id IDInput, state *NewrelicConnectorState, opts ...ResourceOption) (*NewrelicConnector, error)public static NewrelicConnector Get(string name, Input<string> id, NewrelicConnectorState? state, CustomResourceOptions? opts = null)public static NewrelicConnector get(String name, Output<String> id, NewrelicConnectorState state, CustomResourceOptions options)resources: existingNewrelicConnector: type: descope:NewrelicConnector get: id: ${id}import {
to = descope_newrelic_connector.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- state NewrelicConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state NewrelicConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- state NewrelicConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- state NewrelicConnectorState
- Known property values the provider needs, along with the ID, to find the resource. Usually not required.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
- Api
Key string - Ingest License Key of the account you want to report data to.
- Audit
Enabled bool - Whether to enable streaming of audit events.
- Audit
Filters List<Descope.Newrelic Connector Audit Filter> - Specify which events will be sent to the external audit service (including tenant selection).
- Data
Center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - Description string
- A description of what your connector is used for.
- Disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- Logs
Prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - Name string
- A custom name for your connector.
- Override
Logs boolPrefix - Enable this option to use a custom prefix for log fields.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- Troubleshoot
Log boolEnabled - Whether to send troubleshooting events.
- Api
Key string - Ingest License Key of the account you want to report data to.
- Audit
Enabled bool - Whether to enable streaming of audit events.
- Audit
Filters []NewrelicConnector Audit Filter Args - Specify which events will be sent to the external audit service (including tenant selection).
- Data
Center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - Description string
- A description of what your connector is used for.
- Disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- Logs
Prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - Name string
- A custom name for your connector.
- Override
Logs boolPrefix - Enable this option to use a custom prefix for log fields.
- Project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- Troubleshoot
Log boolEnabled - Whether to send troubleshooting events.
- api_
key string - Ingest License Key of the account you want to report data to.
- audit_
enabled bool - Whether to enable streaming of audit events.
- audit_
filters list(object) - Specify which events will be sent to the external audit service (including tenant selection).
- data_
center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description string
- A description of what your connector is used for.
- disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs_
prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - name string
- A custom name for your connector.
- override_
logs_ boolprefix - Enable this option to use a custom prefix for log fields.
- project_
id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- troubleshoot_
log_ boolenabled - Whether to send troubleshooting events.
- api
Key String - Ingest License Key of the account you want to report data to.
- audit
Enabled Boolean - Whether to enable streaming of audit events.
- audit
Filters List<NewrelicConnector Audit Filter> - Specify which events will be sent to the external audit service (including tenant selection).
- data
Center String - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description String
- A description of what your connector is used for.
- disabled Boolean
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs
Prefix String - Specify a custom prefix for all log fields. The default prefix is
descope.. - name String
- A custom name for your connector.
- override
Logs BooleanPrefix - Enable this option to use a custom prefix for log fields.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- troubleshoot
Log BooleanEnabled - Whether to send troubleshooting events.
- api
Key string - Ingest License Key of the account you want to report data to.
- audit
Enabled boolean - Whether to enable streaming of audit events.
- audit
Filters NewrelicConnector Audit Filter[] - Specify which events will be sent to the external audit service (including tenant selection).
- data
Center string - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description string
- A description of what your connector is used for.
- disabled boolean
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs
Prefix string - Specify a custom prefix for all log fields. The default prefix is
descope.. - name string
- A custom name for your connector.
- override
Logs booleanPrefix - Enable this option to use a custom prefix for log fields.
- project
Id string - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- troubleshoot
Log booleanEnabled - Whether to send troubleshooting events.
- api_
key str - Ingest License Key of the account you want to report data to.
- audit_
enabled bool - Whether to enable streaming of audit events.
- audit_
filters Sequence[NewrelicConnector Audit Filter Args] - Specify which events will be sent to the external audit service (including tenant selection).
- data_
center str - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description str
- A description of what your connector is used for.
- disabled bool
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs_
prefix str - Specify a custom prefix for all log fields. The default prefix is
descope.. - name str
- A custom name for your connector.
- override_
logs_ boolprefix - Enable this option to use a custom prefix for log fields.
- project_
id str - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- troubleshoot_
log_ boolenabled - Whether to send troubleshooting events.
- api
Key String - Ingest License Key of the account you want to report data to.
- audit
Enabled Boolean - Whether to enable streaming of audit events.
- audit
Filters List<Property Map> - Specify which events will be sent to the external audit service (including tenant selection).
- data
Center String - The New Relic data center the account belongs to. Possible values are:
US,EU,FedRAMP. Default isUS. - description String
- A description of what your connector is used for.
- disabled Boolean
- Whether the connector is disabled. This can be used to temporarily stop a connector from executing without fully deleting it.
- logs
Prefix String - Specify a custom prefix for all log fields. The default prefix is
descope.. - name String
- A custom name for your connector.
- override
Logs BooleanPrefix - Enable this option to use a custom prefix for log fields.
- project
Id String - The ID of the Descope project that the connector belongs to. Changing this value will require the resource to be deleted and recreated.
- troubleshoot
Log BooleanEnabled - Whether to send troubleshooting events.
Supporting Types
NewrelicConnectorAuditFilter, NewrelicConnectorAuditFilterArgs
Package Details
- Repository
- descope descope/pulumi-descope
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
descopeTerraform Provider.
published on Sunday, Oct 11, 2026 by Descope