synthetics

package
v5.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertCondition

type AlertCondition struct {
	pulumi.CustomResourceState

	// Set whether to enable the alert condition. Defaults to true.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The unique entity identifier of the condition in New Relic.
	EntityGuid pulumi.StringOutput `pulumi:"entityGuid"`
	// The ID of the Synthetics monitor to be referenced in the alert condition.
	MonitorId pulumi.StringOutput `pulumi:"monitorId"`
	// The title of this condition.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"`
}

Use this resource to create and manage synthetics alert conditions in New Relic.

> **WARNING:** The `synthetics.AlertCondition` resource is deprecated and will be removed in the next major release. The resource NrqlAlertCondition would be a preferred alternative to configure alert conditions - in most cases, feature parity can be achieved with a NRQL query.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewAlertCondition(ctx, "foo", &synthetics.AlertConditionArgs{
			PolicyId:   pulumi.Any(fooNewrelicAlertPolicy.Id),
			Name:       pulumi.String("foo"),
			MonitorId:  pulumi.Any(fooNewrelicSyntheticsMonitor.Id),
			RunbookUrl: pulumi.String("https://www.example.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Tags

Manage synthetics alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := newrelic.NewAlertPolicy(ctx, "foo", &newrelic.AlertPolicyArgs{
			Name: pulumi.String("foo policy"),
		})
		if err != nil {
			return err
		}
		fooMonitor, err := synthetics.NewMonitor(ctx, "foo", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("foo monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("SIMPLE"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_EAST_1"),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			TreatRedirectAsFailure: pulumi.Bool(true),
			ValidationString:       pulumi.String("success"),
			BypassHeadRequest:      pulumi.Bool(true),
			VerifySsl:              pulumi.Bool(true),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		fooAlertCondition, err := synthetics.NewAlertCondition(ctx, "foo", &synthetics.AlertConditionArgs{
			PolicyId:   foo.ID(),
			Name:       pulumi.String("foo synthetics condition"),
			MonitorId:  fooMonitor.ID(),
			RunbookUrl: pulumi.String("https://www.example.com"),
		})
		if err != nil {
			return err
		}
		_, err = newrelic.NewEntityTags(ctx, "my_condition_entity_tags", &newrelic.EntityTagsArgs{
			Guid: fooAlertCondition.EntityGuid,
			Tags: newrelic.EntityTagsTagArray{
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("my-key"),
					Values: pulumi.StringArray{
						pulumi.String("my-value"),
						pulumi.String("my-other-value"),
					},
				},
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("my-key-2"),
					Values: pulumi.StringArray{
						pulumi.String("my-value-2"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Synthetics alert conditions can be imported using a composite ID of `<policy_id>:<condition_id>`, e.g.

```sh $ pulumi import newrelic:synthetics/alertCondition:AlertCondition main 12345:67890 ```

func GetAlertCondition

func GetAlertCondition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertConditionState, opts ...pulumi.ResourceOption) (*AlertCondition, error)

GetAlertCondition gets an existing AlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlertCondition

func NewAlertCondition(ctx *pulumi.Context,
	name string, args *AlertConditionArgs, opts ...pulumi.ResourceOption) (*AlertCondition, error)

NewAlertCondition registers a new resource with the given unique name, arguments, and options.

func (*AlertCondition) ElementType

func (*AlertCondition) ElementType() reflect.Type

func (*AlertCondition) ToAlertConditionOutput

func (i *AlertCondition) ToAlertConditionOutput() AlertConditionOutput

func (*AlertCondition) ToAlertConditionOutputWithContext

func (i *AlertCondition) ToAlertConditionOutputWithContext(ctx context.Context) AlertConditionOutput

type AlertConditionArgs

type AlertConditionArgs struct {
	// Set whether to enable the alert condition. Defaults to true.
	Enabled pulumi.BoolPtrInput
	// The ID of the Synthetics monitor to be referenced in the alert condition.
	MonitorId pulumi.StringInput
	// The title of this condition.
	Name pulumi.StringPtrInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
}

The set of arguments for constructing a AlertCondition resource.

func (AlertConditionArgs) ElementType

func (AlertConditionArgs) ElementType() reflect.Type

type AlertConditionArray

type AlertConditionArray []AlertConditionInput

func (AlertConditionArray) ElementType

func (AlertConditionArray) ElementType() reflect.Type

func (AlertConditionArray) ToAlertConditionArrayOutput

func (i AlertConditionArray) ToAlertConditionArrayOutput() AlertConditionArrayOutput

func (AlertConditionArray) ToAlertConditionArrayOutputWithContext

func (i AlertConditionArray) ToAlertConditionArrayOutputWithContext(ctx context.Context) AlertConditionArrayOutput

type AlertConditionArrayInput

type AlertConditionArrayInput interface {
	pulumi.Input

	ToAlertConditionArrayOutput() AlertConditionArrayOutput
	ToAlertConditionArrayOutputWithContext(context.Context) AlertConditionArrayOutput
}

AlertConditionArrayInput is an input type that accepts AlertConditionArray and AlertConditionArrayOutput values. You can construct a concrete instance of `AlertConditionArrayInput` via:

AlertConditionArray{ AlertConditionArgs{...} }

type AlertConditionArrayOutput

type AlertConditionArrayOutput struct{ *pulumi.OutputState }

func (AlertConditionArrayOutput) ElementType

func (AlertConditionArrayOutput) ElementType() reflect.Type

func (AlertConditionArrayOutput) Index

func (AlertConditionArrayOutput) ToAlertConditionArrayOutput

func (o AlertConditionArrayOutput) ToAlertConditionArrayOutput() AlertConditionArrayOutput

func (AlertConditionArrayOutput) ToAlertConditionArrayOutputWithContext

func (o AlertConditionArrayOutput) ToAlertConditionArrayOutputWithContext(ctx context.Context) AlertConditionArrayOutput

type AlertConditionInput

type AlertConditionInput interface {
	pulumi.Input

	ToAlertConditionOutput() AlertConditionOutput
	ToAlertConditionOutputWithContext(ctx context.Context) AlertConditionOutput
}

type AlertConditionMap

type AlertConditionMap map[string]AlertConditionInput

func (AlertConditionMap) ElementType

func (AlertConditionMap) ElementType() reflect.Type

func (AlertConditionMap) ToAlertConditionMapOutput

func (i AlertConditionMap) ToAlertConditionMapOutput() AlertConditionMapOutput

func (AlertConditionMap) ToAlertConditionMapOutputWithContext

func (i AlertConditionMap) ToAlertConditionMapOutputWithContext(ctx context.Context) AlertConditionMapOutput

type AlertConditionMapInput

type AlertConditionMapInput interface {
	pulumi.Input

	ToAlertConditionMapOutput() AlertConditionMapOutput
	ToAlertConditionMapOutputWithContext(context.Context) AlertConditionMapOutput
}

AlertConditionMapInput is an input type that accepts AlertConditionMap and AlertConditionMapOutput values. You can construct a concrete instance of `AlertConditionMapInput` via:

AlertConditionMap{ "key": AlertConditionArgs{...} }

type AlertConditionMapOutput

type AlertConditionMapOutput struct{ *pulumi.OutputState }

func (AlertConditionMapOutput) ElementType

func (AlertConditionMapOutput) ElementType() reflect.Type

func (AlertConditionMapOutput) MapIndex

func (AlertConditionMapOutput) ToAlertConditionMapOutput

func (o AlertConditionMapOutput) ToAlertConditionMapOutput() AlertConditionMapOutput

func (AlertConditionMapOutput) ToAlertConditionMapOutputWithContext

func (o AlertConditionMapOutput) ToAlertConditionMapOutputWithContext(ctx context.Context) AlertConditionMapOutput

type AlertConditionOutput

type AlertConditionOutput struct{ *pulumi.OutputState }

func (AlertConditionOutput) ElementType

func (AlertConditionOutput) ElementType() reflect.Type

func (AlertConditionOutput) Enabled

Set whether to enable the alert condition. Defaults to true.

func (AlertConditionOutput) EntityGuid added in v5.9.0

func (o AlertConditionOutput) EntityGuid() pulumi.StringOutput

The unique entity identifier of the condition in New Relic.

func (AlertConditionOutput) MonitorId

The ID of the Synthetics monitor to be referenced in the alert condition.

func (AlertConditionOutput) Name

The title of this condition.

func (AlertConditionOutput) PolicyId

func (o AlertConditionOutput) PolicyId() pulumi.IntOutput

The ID of the policy where this condition should be used.

func (AlertConditionOutput) RunbookUrl

Runbook URL to display in notifications.

func (AlertConditionOutput) ToAlertConditionOutput

func (o AlertConditionOutput) ToAlertConditionOutput() AlertConditionOutput

func (AlertConditionOutput) ToAlertConditionOutputWithContext

func (o AlertConditionOutput) ToAlertConditionOutputWithContext(ctx context.Context) AlertConditionOutput

type AlertConditionState

type AlertConditionState struct {
	// Set whether to enable the alert condition. Defaults to true.
	Enabled pulumi.BoolPtrInput
	// The unique entity identifier of the condition in New Relic.
	EntityGuid pulumi.StringPtrInput
	// The ID of the Synthetics monitor to be referenced in the alert condition.
	MonitorId pulumi.StringPtrInput
	// The title of this condition.
	Name pulumi.StringPtrInput
	// The ID of the policy where this condition should be used.
	PolicyId pulumi.IntPtrInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
}

func (AlertConditionState) ElementType

func (AlertConditionState) ElementType() reflect.Type

type BrokenLinksMonitor

type BrokenLinksMonitor struct {
	pulumi.CustomResourceState

	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// The unique entity identifier of the monitor in New Relic.
	Guid pulumi.StringOutput `pulumi:"guid"`
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayOutput `pulumi:"locationsPrivates"`
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"`
	// The name for the monitor.
	Name pulumi.StringOutput `pulumi:"name"`
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringOutput `pulumi:"period"`
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"`
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"`
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"`
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringOutput `pulumi:"status"`
	// The tags that will be associated with the monitor. See Nested tag blocks below for details
	Tags BrokenLinksMonitorTagArrayOutput `pulumi:"tags"`
	// The URI the monitor runs against.
	Uri pulumi.StringOutput `pulumi:"uri"`
}

Use this resource to create, update, and delete a Synthetics Broken Links monitor in New Relic.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewBrokenLinksMonitor(ctx, "foo", &synthetics.BrokenLinksMonitorArgs{
			Name: pulumi.String("Sample Broken Links Monitor"),
			Uri:  pulumi.String("https://www.one.example.com"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			Period:             pulumi.String("EVERY_6_HOURS"),
			Status:             pulumi.String("ENABLED"),
			RuntimeType:        pulumi.String("NODE_API"),
			RuntimeTypeVersion: pulumi.String("16.10"),
			Tags: synthetics.BrokenLinksMonitorTagArray{
				&synthetics.BrokenLinksMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` See additional examples.

## Additional Examples

### Create a monitor with a private location

The below example shows how you can define a private location and attach it to a monitor.

> **NOTE:** It can take up to 10 minutes for a private location to become available.

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{
			Name:                    pulumi.String("Sample Private Location"),
			Description:             pulumi.String("Sample Private Location Description"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewBrokenLinksMonitor(ctx, "foo", &synthetics.BrokenLinksMonitorArgs{
			Name: pulumi.String("Sample Broken Links Monitor"),
			Uri:  pulumi.String("https://www.one.example.com"),
			LocationsPrivates: pulumi.StringArray{
				foo.ID(),
			},
			Period: pulumi.String("EVERY_6_HOURS"),
			Status: pulumi.String("ENABLED"),
			Tags: synthetics.BrokenLinksMonitorTagArray{
				&synthetics.BrokenLinksMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A broken links monitor can be imported using its GUID, using the following command.

bash

```sh $ pulumi import newrelic:synthetics/brokenLinksMonitor:BrokenLinksMonitor monitor <guid> ```

func GetBrokenLinksMonitor

func GetBrokenLinksMonitor(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BrokenLinksMonitorState, opts ...pulumi.ResourceOption) (*BrokenLinksMonitor, error)

GetBrokenLinksMonitor gets an existing BrokenLinksMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewBrokenLinksMonitor

func NewBrokenLinksMonitor(ctx *pulumi.Context,
	name string, args *BrokenLinksMonitorArgs, opts ...pulumi.ResourceOption) (*BrokenLinksMonitor, error)

NewBrokenLinksMonitor registers a new resource with the given unique name, arguments, and options.

func (*BrokenLinksMonitor) ElementType

func (*BrokenLinksMonitor) ElementType() reflect.Type

func (*BrokenLinksMonitor) ToBrokenLinksMonitorOutput

func (i *BrokenLinksMonitor) ToBrokenLinksMonitorOutput() BrokenLinksMonitorOutput

func (*BrokenLinksMonitor) ToBrokenLinksMonitorOutputWithContext

func (i *BrokenLinksMonitor) ToBrokenLinksMonitorOutputWithContext(ctx context.Context) BrokenLinksMonitorOutput

type BrokenLinksMonitorArgs

type BrokenLinksMonitorArgs struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details
	Tags BrokenLinksMonitorTagArrayInput
	// The URI the monitor runs against.
	Uri pulumi.StringInput
}

The set of arguments for constructing a BrokenLinksMonitor resource.

func (BrokenLinksMonitorArgs) ElementType

func (BrokenLinksMonitorArgs) ElementType() reflect.Type

type BrokenLinksMonitorArray

type BrokenLinksMonitorArray []BrokenLinksMonitorInput

func (BrokenLinksMonitorArray) ElementType

func (BrokenLinksMonitorArray) ElementType() reflect.Type

func (BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutput

func (i BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutput() BrokenLinksMonitorArrayOutput

func (BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutputWithContext

func (i BrokenLinksMonitorArray) ToBrokenLinksMonitorArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorArrayOutput

type BrokenLinksMonitorArrayInput

type BrokenLinksMonitorArrayInput interface {
	pulumi.Input

	ToBrokenLinksMonitorArrayOutput() BrokenLinksMonitorArrayOutput
	ToBrokenLinksMonitorArrayOutputWithContext(context.Context) BrokenLinksMonitorArrayOutput
}

BrokenLinksMonitorArrayInput is an input type that accepts BrokenLinksMonitorArray and BrokenLinksMonitorArrayOutput values. You can construct a concrete instance of `BrokenLinksMonitorArrayInput` via:

BrokenLinksMonitorArray{ BrokenLinksMonitorArgs{...} }

type BrokenLinksMonitorArrayOutput

type BrokenLinksMonitorArrayOutput struct{ *pulumi.OutputState }

func (BrokenLinksMonitorArrayOutput) ElementType

func (BrokenLinksMonitorArrayOutput) Index

func (BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutput

func (o BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutput() BrokenLinksMonitorArrayOutput

func (BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutputWithContext

func (o BrokenLinksMonitorArrayOutput) ToBrokenLinksMonitorArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorArrayOutput

type BrokenLinksMonitorInput

type BrokenLinksMonitorInput interface {
	pulumi.Input

	ToBrokenLinksMonitorOutput() BrokenLinksMonitorOutput
	ToBrokenLinksMonitorOutputWithContext(ctx context.Context) BrokenLinksMonitorOutput
}

type BrokenLinksMonitorMap

type BrokenLinksMonitorMap map[string]BrokenLinksMonitorInput

func (BrokenLinksMonitorMap) ElementType

func (BrokenLinksMonitorMap) ElementType() reflect.Type

func (BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutput

func (i BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutput() BrokenLinksMonitorMapOutput

func (BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutputWithContext

func (i BrokenLinksMonitorMap) ToBrokenLinksMonitorMapOutputWithContext(ctx context.Context) BrokenLinksMonitorMapOutput

type BrokenLinksMonitorMapInput

type BrokenLinksMonitorMapInput interface {
	pulumi.Input

	ToBrokenLinksMonitorMapOutput() BrokenLinksMonitorMapOutput
	ToBrokenLinksMonitorMapOutputWithContext(context.Context) BrokenLinksMonitorMapOutput
}

BrokenLinksMonitorMapInput is an input type that accepts BrokenLinksMonitorMap and BrokenLinksMonitorMapOutput values. You can construct a concrete instance of `BrokenLinksMonitorMapInput` via:

BrokenLinksMonitorMap{ "key": BrokenLinksMonitorArgs{...} }

type BrokenLinksMonitorMapOutput

type BrokenLinksMonitorMapOutput struct{ *pulumi.OutputState }

func (BrokenLinksMonitorMapOutput) ElementType

func (BrokenLinksMonitorMapOutput) MapIndex

func (BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutput

func (o BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutput() BrokenLinksMonitorMapOutput

func (BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutputWithContext

func (o BrokenLinksMonitorMapOutput) ToBrokenLinksMonitorMapOutputWithContext(ctx context.Context) BrokenLinksMonitorMapOutput

type BrokenLinksMonitorOutput

type BrokenLinksMonitorOutput struct{ *pulumi.OutputState }

func (BrokenLinksMonitorOutput) AccountId

The account in which the Synthetics monitor will be created.

func (BrokenLinksMonitorOutput) ElementType

func (BrokenLinksMonitorOutput) ElementType() reflect.Type

func (BrokenLinksMonitorOutput) Guid

The unique entity identifier of the monitor in New Relic.

func (BrokenLinksMonitorOutput) LocationsPrivates

func (o BrokenLinksMonitorOutput) LocationsPrivates() pulumi.StringArrayOutput

The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.

func (BrokenLinksMonitorOutput) LocationsPublics

func (o BrokenLinksMonitorOutput) LocationsPublics() pulumi.StringArrayOutput

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.

func (BrokenLinksMonitorOutput) Name

The name for the monitor.

func (BrokenLinksMonitorOutput) Period

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

func (BrokenLinksMonitorOutput) PeriodInMinutes added in v5.10.0

func (o BrokenLinksMonitorOutput) PeriodInMinutes() pulumi.IntOutput

The interval in minutes at which Synthetic monitor should run.

func (BrokenLinksMonitorOutput) RuntimeType added in v5.22.0

The runtime that the monitor will use to run jobs.

func (BrokenLinksMonitorOutput) RuntimeTypeVersion added in v5.22.0

func (o BrokenLinksMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput

The specific version of the runtime type selected.

> **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.

func (BrokenLinksMonitorOutput) Status

The monitor status (ENABLED or DISABLED).

func (BrokenLinksMonitorOutput) Tags

The tags that will be associated with the monitor. See Nested tag blocks below for details

func (BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutput

func (o BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutput() BrokenLinksMonitorOutput

func (BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutputWithContext

func (o BrokenLinksMonitorOutput) ToBrokenLinksMonitorOutputWithContext(ctx context.Context) BrokenLinksMonitorOutput

func (BrokenLinksMonitorOutput) Uri

The URI the monitor runs against.

type BrokenLinksMonitorState

type BrokenLinksMonitorState struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// The unique entity identifier of the monitor in New Relic.
	Guid pulumi.StringPtrInput
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringPtrInput
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntPtrInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringPtrInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details
	Tags BrokenLinksMonitorTagArrayInput
	// The URI the monitor runs against.
	Uri pulumi.StringPtrInput
}

func (BrokenLinksMonitorState) ElementType

func (BrokenLinksMonitorState) ElementType() reflect.Type

type BrokenLinksMonitorTag

type BrokenLinksMonitorTag struct {
	// Name of the tag key.
	Key string `pulumi:"key"`
	// Values associated with the tag key.
	Values []string `pulumi:"values"`
}

type BrokenLinksMonitorTagArgs

type BrokenLinksMonitorTagArgs struct {
	// Name of the tag key.
	Key pulumi.StringInput `pulumi:"key"`
	// Values associated with the tag key.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (BrokenLinksMonitorTagArgs) ElementType

func (BrokenLinksMonitorTagArgs) ElementType() reflect.Type

func (BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutput

func (i BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutput() BrokenLinksMonitorTagOutput

func (BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutputWithContext

func (i BrokenLinksMonitorTagArgs) ToBrokenLinksMonitorTagOutputWithContext(ctx context.Context) BrokenLinksMonitorTagOutput

type BrokenLinksMonitorTagArray

type BrokenLinksMonitorTagArray []BrokenLinksMonitorTagInput

func (BrokenLinksMonitorTagArray) ElementType

func (BrokenLinksMonitorTagArray) ElementType() reflect.Type

func (BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutput

func (i BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput

func (BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutputWithContext

func (i BrokenLinksMonitorTagArray) ToBrokenLinksMonitorTagArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorTagArrayOutput

type BrokenLinksMonitorTagArrayInput

type BrokenLinksMonitorTagArrayInput interface {
	pulumi.Input

	ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput
	ToBrokenLinksMonitorTagArrayOutputWithContext(context.Context) BrokenLinksMonitorTagArrayOutput
}

BrokenLinksMonitorTagArrayInput is an input type that accepts BrokenLinksMonitorTagArray and BrokenLinksMonitorTagArrayOutput values. You can construct a concrete instance of `BrokenLinksMonitorTagArrayInput` via:

BrokenLinksMonitorTagArray{ BrokenLinksMonitorTagArgs{...} }

type BrokenLinksMonitorTagArrayOutput

type BrokenLinksMonitorTagArrayOutput struct{ *pulumi.OutputState }

func (BrokenLinksMonitorTagArrayOutput) ElementType

func (BrokenLinksMonitorTagArrayOutput) Index

func (BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutput

func (o BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutput() BrokenLinksMonitorTagArrayOutput

func (BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutputWithContext

func (o BrokenLinksMonitorTagArrayOutput) ToBrokenLinksMonitorTagArrayOutputWithContext(ctx context.Context) BrokenLinksMonitorTagArrayOutput

type BrokenLinksMonitorTagInput

type BrokenLinksMonitorTagInput interface {
	pulumi.Input

	ToBrokenLinksMonitorTagOutput() BrokenLinksMonitorTagOutput
	ToBrokenLinksMonitorTagOutputWithContext(context.Context) BrokenLinksMonitorTagOutput
}

BrokenLinksMonitorTagInput is an input type that accepts BrokenLinksMonitorTagArgs and BrokenLinksMonitorTagOutput values. You can construct a concrete instance of `BrokenLinksMonitorTagInput` via:

BrokenLinksMonitorTagArgs{...}

type BrokenLinksMonitorTagOutput

type BrokenLinksMonitorTagOutput struct{ *pulumi.OutputState }

func (BrokenLinksMonitorTagOutput) ElementType

func (BrokenLinksMonitorTagOutput) Key

Name of the tag key.

func (BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutput

func (o BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutput() BrokenLinksMonitorTagOutput

func (BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutputWithContext

func (o BrokenLinksMonitorTagOutput) ToBrokenLinksMonitorTagOutputWithContext(ctx context.Context) BrokenLinksMonitorTagOutput

func (BrokenLinksMonitorTagOutput) Values

Values associated with the tag key.

type CertCheckMonitor

type CertCheckMonitor struct {
	pulumi.CustomResourceState

	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// The desired number of remaining days until the certificate expires to trigger a monitor failure.
	CertificateExpiration pulumi.IntOutput `pulumi:"certificateExpiration"`
	// The domain of the host that will have its certificate checked.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayOutput `pulumi:"locationsPrivates"`
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"`
	// The name for the monitor.
	Name pulumi.StringOutput `pulumi:"name"`
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringOutput `pulumi:"period"`
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"`
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"`
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"`
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringOutput `pulumi:"status"`
	// The tags that will be associated with the monitor. See Nested tag blocks below for details
	Tags CertCheckMonitorTagArrayOutput `pulumi:"tags"`
}

Use this resource to create, update, and delete a Synthetics Certificate Check monitor in New Relic.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewCertCheckMonitor(ctx, "foo", &synthetics.CertCheckMonitorArgs{
			Name:   pulumi.String("Sample Cert Check Monitor"),
			Domain: pulumi.String("www.example.com"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			CertificateExpiration: pulumi.Int(10),
			Period:                pulumi.String("EVERY_6_HOURS"),
			Status:                pulumi.String("ENABLED"),
			RuntimeType:           pulumi.String("NODE_API"),
			RuntimeTypeVersion:    pulumi.String("16.10"),
			Tags: synthetics.CertCheckMonitorTagArray{
				&synthetics.CertCheckMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` See additional examples.

## Additional Examples

### Create a monitor with a private location

The below example shows how you can define a private location and attach it to a monitor.

> **NOTE:** It can take up to 10 minutes for a private location to become available.

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{
			Name:                    pulumi.String("Sample Private Location"),
			Description:             pulumi.String("Sample Private Location Description"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewCertCheckMonitor(ctx, "foo", &synthetics.CertCheckMonitorArgs{
			Name:   pulumi.String("Sample Cert Check Monitor"),
			Domain: pulumi.String("www.one.example.com"),
			LocationsPrivates: pulumi.StringArray{
				foo.ID(),
			},
			CertificateExpiration: pulumi.Int(10),
			Period:                pulumi.String("EVERY_6_HOURS"),
			Status:                pulumi.String("ENABLED"),
			Tags: synthetics.CertCheckMonitorTagArray{
				&synthetics.CertCheckMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A cert check monitor can be imported using its GUID, using the following command.

bash

```sh $ pulumi import newrelic:synthetics/certCheckMonitor:CertCheckMonitor monitor <guid> ```

func GetCertCheckMonitor

func GetCertCheckMonitor(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CertCheckMonitorState, opts ...pulumi.ResourceOption) (*CertCheckMonitor, error)

GetCertCheckMonitor gets an existing CertCheckMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCertCheckMonitor

func NewCertCheckMonitor(ctx *pulumi.Context,
	name string, args *CertCheckMonitorArgs, opts ...pulumi.ResourceOption) (*CertCheckMonitor, error)

NewCertCheckMonitor registers a new resource with the given unique name, arguments, and options.

func (*CertCheckMonitor) ElementType

func (*CertCheckMonitor) ElementType() reflect.Type

func (*CertCheckMonitor) ToCertCheckMonitorOutput

func (i *CertCheckMonitor) ToCertCheckMonitorOutput() CertCheckMonitorOutput

func (*CertCheckMonitor) ToCertCheckMonitorOutputWithContext

func (i *CertCheckMonitor) ToCertCheckMonitorOutputWithContext(ctx context.Context) CertCheckMonitorOutput

type CertCheckMonitorArgs

type CertCheckMonitorArgs struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// The desired number of remaining days until the certificate expires to trigger a monitor failure.
	CertificateExpiration pulumi.IntInput
	// The domain of the host that will have its certificate checked.
	Domain pulumi.StringInput
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details
	Tags CertCheckMonitorTagArrayInput
}

The set of arguments for constructing a CertCheckMonitor resource.

func (CertCheckMonitorArgs) ElementType

func (CertCheckMonitorArgs) ElementType() reflect.Type

type CertCheckMonitorArray

type CertCheckMonitorArray []CertCheckMonitorInput

func (CertCheckMonitorArray) ElementType

func (CertCheckMonitorArray) ElementType() reflect.Type

func (CertCheckMonitorArray) ToCertCheckMonitorArrayOutput

func (i CertCheckMonitorArray) ToCertCheckMonitorArrayOutput() CertCheckMonitorArrayOutput

func (CertCheckMonitorArray) ToCertCheckMonitorArrayOutputWithContext

func (i CertCheckMonitorArray) ToCertCheckMonitorArrayOutputWithContext(ctx context.Context) CertCheckMonitorArrayOutput

type CertCheckMonitorArrayInput

type CertCheckMonitorArrayInput interface {
	pulumi.Input

	ToCertCheckMonitorArrayOutput() CertCheckMonitorArrayOutput
	ToCertCheckMonitorArrayOutputWithContext(context.Context) CertCheckMonitorArrayOutput
}

CertCheckMonitorArrayInput is an input type that accepts CertCheckMonitorArray and CertCheckMonitorArrayOutput values. You can construct a concrete instance of `CertCheckMonitorArrayInput` via:

CertCheckMonitorArray{ CertCheckMonitorArgs{...} }

type CertCheckMonitorArrayOutput

type CertCheckMonitorArrayOutput struct{ *pulumi.OutputState }

func (CertCheckMonitorArrayOutput) ElementType

func (CertCheckMonitorArrayOutput) Index

func (CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutput

func (o CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutput() CertCheckMonitorArrayOutput

func (CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutputWithContext

func (o CertCheckMonitorArrayOutput) ToCertCheckMonitorArrayOutputWithContext(ctx context.Context) CertCheckMonitorArrayOutput

type CertCheckMonitorInput

type CertCheckMonitorInput interface {
	pulumi.Input

	ToCertCheckMonitorOutput() CertCheckMonitorOutput
	ToCertCheckMonitorOutputWithContext(ctx context.Context) CertCheckMonitorOutput
}

type CertCheckMonitorMap

type CertCheckMonitorMap map[string]CertCheckMonitorInput

func (CertCheckMonitorMap) ElementType

func (CertCheckMonitorMap) ElementType() reflect.Type

func (CertCheckMonitorMap) ToCertCheckMonitorMapOutput

func (i CertCheckMonitorMap) ToCertCheckMonitorMapOutput() CertCheckMonitorMapOutput

func (CertCheckMonitorMap) ToCertCheckMonitorMapOutputWithContext

func (i CertCheckMonitorMap) ToCertCheckMonitorMapOutputWithContext(ctx context.Context) CertCheckMonitorMapOutput

type CertCheckMonitorMapInput

type CertCheckMonitorMapInput interface {
	pulumi.Input

	ToCertCheckMonitorMapOutput() CertCheckMonitorMapOutput
	ToCertCheckMonitorMapOutputWithContext(context.Context) CertCheckMonitorMapOutput
}

CertCheckMonitorMapInput is an input type that accepts CertCheckMonitorMap and CertCheckMonitorMapOutput values. You can construct a concrete instance of `CertCheckMonitorMapInput` via:

CertCheckMonitorMap{ "key": CertCheckMonitorArgs{...} }

type CertCheckMonitorMapOutput

type CertCheckMonitorMapOutput struct{ *pulumi.OutputState }

func (CertCheckMonitorMapOutput) ElementType

func (CertCheckMonitorMapOutput) ElementType() reflect.Type

func (CertCheckMonitorMapOutput) MapIndex

func (CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutput

func (o CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutput() CertCheckMonitorMapOutput

func (CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutputWithContext

func (o CertCheckMonitorMapOutput) ToCertCheckMonitorMapOutputWithContext(ctx context.Context) CertCheckMonitorMapOutput

type CertCheckMonitorOutput

type CertCheckMonitorOutput struct{ *pulumi.OutputState }

func (CertCheckMonitorOutput) AccountId

func (o CertCheckMonitorOutput) AccountId() pulumi.IntOutput

The account in which the Synthetics monitor will be created.

func (CertCheckMonitorOutput) CertificateExpiration

func (o CertCheckMonitorOutput) CertificateExpiration() pulumi.IntOutput

The desired number of remaining days until the certificate expires to trigger a monitor failure.

func (CertCheckMonitorOutput) Domain

The domain of the host that will have its certificate checked.

func (CertCheckMonitorOutput) ElementType

func (CertCheckMonitorOutput) ElementType() reflect.Type

func (CertCheckMonitorOutput) LocationsPrivates

func (o CertCheckMonitorOutput) LocationsPrivates() pulumi.StringArrayOutput

The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.

func (CertCheckMonitorOutput) LocationsPublics

func (o CertCheckMonitorOutput) LocationsPublics() pulumi.StringArrayOutput

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.

func (CertCheckMonitorOutput) Name

The name for the monitor.

func (CertCheckMonitorOutput) Period

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

func (CertCheckMonitorOutput) PeriodInMinutes added in v5.10.0

func (o CertCheckMonitorOutput) PeriodInMinutes() pulumi.IntOutput

The interval in minutes at which Synthetic monitor should run.

func (CertCheckMonitorOutput) RuntimeType added in v5.22.0

The runtime that the monitor will use to run jobs.

func (CertCheckMonitorOutput) RuntimeTypeVersion added in v5.22.0

func (o CertCheckMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput

The specific version of the runtime type selected.

> **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.

func (CertCheckMonitorOutput) Status

The monitor status (ENABLED or DISABLED).

func (CertCheckMonitorOutput) Tags

The tags that will be associated with the monitor. See Nested tag blocks below for details

func (CertCheckMonitorOutput) ToCertCheckMonitorOutput

func (o CertCheckMonitorOutput) ToCertCheckMonitorOutput() CertCheckMonitorOutput

func (CertCheckMonitorOutput) ToCertCheckMonitorOutputWithContext

func (o CertCheckMonitorOutput) ToCertCheckMonitorOutputWithContext(ctx context.Context) CertCheckMonitorOutput

type CertCheckMonitorState

type CertCheckMonitorState struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// The desired number of remaining days until the certificate expires to trigger a monitor failure.
	CertificateExpiration pulumi.IntPtrInput
	// The domain of the host that will have its certificate checked.
	Domain pulumi.StringPtrInput
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringPtrInput
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntPtrInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `NODE_API` and `16.10` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringPtrInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details
	Tags CertCheckMonitorTagArrayInput
}

func (CertCheckMonitorState) ElementType

func (CertCheckMonitorState) ElementType() reflect.Type

type CertCheckMonitorTag

type CertCheckMonitorTag struct {
	// Name of the tag key.
	Key string `pulumi:"key"`
	// Values associated with the tag key.
	Values []string `pulumi:"values"`
}

type CertCheckMonitorTagArgs

type CertCheckMonitorTagArgs struct {
	// Name of the tag key.
	Key pulumi.StringInput `pulumi:"key"`
	// Values associated with the tag key.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (CertCheckMonitorTagArgs) ElementType

func (CertCheckMonitorTagArgs) ElementType() reflect.Type

func (CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutput

func (i CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutput() CertCheckMonitorTagOutput

func (CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutputWithContext

func (i CertCheckMonitorTagArgs) ToCertCheckMonitorTagOutputWithContext(ctx context.Context) CertCheckMonitorTagOutput

type CertCheckMonitorTagArray

type CertCheckMonitorTagArray []CertCheckMonitorTagInput

func (CertCheckMonitorTagArray) ElementType

func (CertCheckMonitorTagArray) ElementType() reflect.Type

func (CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutput

func (i CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutput() CertCheckMonitorTagArrayOutput

func (CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutputWithContext

func (i CertCheckMonitorTagArray) ToCertCheckMonitorTagArrayOutputWithContext(ctx context.Context) CertCheckMonitorTagArrayOutput

type CertCheckMonitorTagArrayInput

type CertCheckMonitorTagArrayInput interface {
	pulumi.Input

	ToCertCheckMonitorTagArrayOutput() CertCheckMonitorTagArrayOutput
	ToCertCheckMonitorTagArrayOutputWithContext(context.Context) CertCheckMonitorTagArrayOutput
}

CertCheckMonitorTagArrayInput is an input type that accepts CertCheckMonitorTagArray and CertCheckMonitorTagArrayOutput values. You can construct a concrete instance of `CertCheckMonitorTagArrayInput` via:

CertCheckMonitorTagArray{ CertCheckMonitorTagArgs{...} }

type CertCheckMonitorTagArrayOutput

type CertCheckMonitorTagArrayOutput struct{ *pulumi.OutputState }

func (CertCheckMonitorTagArrayOutput) ElementType

func (CertCheckMonitorTagArrayOutput) Index

func (CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutput

func (o CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutput() CertCheckMonitorTagArrayOutput

func (CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutputWithContext

func (o CertCheckMonitorTagArrayOutput) ToCertCheckMonitorTagArrayOutputWithContext(ctx context.Context) CertCheckMonitorTagArrayOutput

type CertCheckMonitorTagInput

type CertCheckMonitorTagInput interface {
	pulumi.Input

	ToCertCheckMonitorTagOutput() CertCheckMonitorTagOutput
	ToCertCheckMonitorTagOutputWithContext(context.Context) CertCheckMonitorTagOutput
}

CertCheckMonitorTagInput is an input type that accepts CertCheckMonitorTagArgs and CertCheckMonitorTagOutput values. You can construct a concrete instance of `CertCheckMonitorTagInput` via:

CertCheckMonitorTagArgs{...}

type CertCheckMonitorTagOutput

type CertCheckMonitorTagOutput struct{ *pulumi.OutputState }

func (CertCheckMonitorTagOutput) ElementType

func (CertCheckMonitorTagOutput) ElementType() reflect.Type

func (CertCheckMonitorTagOutput) Key

Name of the tag key.

func (CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutput

func (o CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutput() CertCheckMonitorTagOutput

func (CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutputWithContext

func (o CertCheckMonitorTagOutput) ToCertCheckMonitorTagOutputWithContext(ctx context.Context) CertCheckMonitorTagOutput

func (CertCheckMonitorTagOutput) Values

Values associated with the tag key.

type LookupPrivateLocationArgs

type LookupPrivateLocationArgs struct {
	// The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration.
	AccountId *int `pulumi:"accountId"`
	// The key of the private location.
	Keys []string `pulumi:"keys"`
	// The name of the Synthetics monitor private location.
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getPrivateLocation.

type LookupPrivateLocationOutputArgs

type LookupPrivateLocationOutputArgs struct {
	// The New Relic account ID of the associated private location. If left empty will default to account ID specified in provider level configuration.
	AccountId pulumi.IntPtrInput `pulumi:"accountId"`
	// The key of the private location.
	Keys pulumi.StringArrayInput `pulumi:"keys"`
	// The name of the Synthetics monitor private location.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getPrivateLocation.

func (LookupPrivateLocationOutputArgs) ElementType

type LookupPrivateLocationResult

type LookupPrivateLocationResult struct {
	AccountId *int `pulumi:"accountId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The key of the private location.
	Keys []string `pulumi:"keys"`
	Name string   `pulumi:"name"`
}

A collection of values returned by getPrivateLocation.

func LookupPrivateLocation

func LookupPrivateLocation(ctx *pulumi.Context, args *LookupPrivateLocationArgs, opts ...pulumi.InvokeOption) (*LookupPrivateLocationResult, error)

Use this data source to get information about a specific Synthetics monitor private location in New Relic that already exists.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := synthetics.LookupPrivateLocation(ctx, &synthetics.LookupPrivateLocationArgs{
			AccountId: pulumi.IntRef(123456),
			Name:      "My private location",
		}, nil)
		if err != nil {
			return err
		}
		_, err = synthetics.NewMonitor(ctx, "foo", &synthetics.MonitorArgs{
			LocationsPrivates: pulumi.StringArray{
				pulumi.String(example.Id),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := synthetics.LookupPrivateLocation(ctx, &synthetics.LookupPrivateLocationArgs{
			AccountId: pulumi.IntRef(123456),
			Name:      "My private location",
		}, nil)
		if err != nil {
			return err
		}
		_, err = synthetics.NewStepMonitor(ctx, "foo", &synthetics.StepMonitorArgs{
			LocationPrivates: synthetics.StepMonitorLocationPrivateArray{
				&synthetics.StepMonitorLocationPrivateArgs{
					Guid: pulumi.String(example.Id),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupPrivateLocationResultOutput

type LookupPrivateLocationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPrivateLocation.

func (LookupPrivateLocationResultOutput) AccountId added in v5.2.0

func (LookupPrivateLocationResultOutput) ElementType

func (LookupPrivateLocationResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupPrivateLocationResultOutput) Keys added in v5.15.0

The key of the private location.

func (LookupPrivateLocationResultOutput) Name

func (LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutput

func (o LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutput() LookupPrivateLocationResultOutput

func (LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutputWithContext

func (o LookupPrivateLocationResultOutput) ToLookupPrivateLocationResultOutputWithContext(ctx context.Context) LookupPrivateLocationResultOutput

type LookupSecureCredentialArgs

type LookupSecureCredentialArgs struct {
	AccountId *int   `pulumi:"accountId"`
	Key       string `pulumi:"key"`
}

A collection of arguments for invoking getSecureCredential.

type LookupSecureCredentialOutputArgs

type LookupSecureCredentialOutputArgs struct {
	AccountId pulumi.IntPtrInput `pulumi:"accountId"`
	Key       pulumi.StringInput `pulumi:"key"`
}

A collection of arguments for invoking getSecureCredential.

func (LookupSecureCredentialOutputArgs) ElementType

type LookupSecureCredentialResult

type LookupSecureCredentialResult struct {
	AccountId int `pulumi:"accountId"`
	// The secure credential's description.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id  string `pulumi:"id"`
	Key string `pulumi:"key"`
	// The time the secure credential was last updated.
	LastUpdated string `pulumi:"lastUpdated"`
}

A collection of values returned by getSecureCredential.

func LookupSecureCredential

func LookupSecureCredential(ctx *pulumi.Context, args *LookupSecureCredentialArgs, opts ...pulumi.InvokeOption) (*LookupSecureCredentialResult, error)

Use this data source to get information about a specific Synthetics secure credential in New Relic that already exists.

Note that the secure credential's value is not returned as an attribute for security reasons.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.LookupSecureCredential(ctx, &synthetics.LookupSecureCredentialArgs{
			Key: "MY_KEY",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupSecureCredentialResultOutput

type LookupSecureCredentialResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSecureCredential.

func (LookupSecureCredentialResultOutput) AccountId added in v5.2.0

func (LookupSecureCredentialResultOutput) Description

The secure credential's description.

func (LookupSecureCredentialResultOutput) ElementType

func (LookupSecureCredentialResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupSecureCredentialResultOutput) Key

func (LookupSecureCredentialResultOutput) LastUpdated

The time the secure credential was last updated.

func (LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutput

func (o LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutput() LookupSecureCredentialResultOutput

func (LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutputWithContext

func (o LookupSecureCredentialResultOutput) ToLookupSecureCredentialResultOutputWithContext(ctx context.Context) LookupSecureCredentialResultOutput

type Monitor

type Monitor struct {
	pulumi.CustomResourceState

	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// Monitor should skip default HEAD request and instead use GET verb in check.
	//
	// The `BROWSER` monitor type supports the following additional arguments:
	BypassHeadRequest pulumi.BoolPtrOutput `pulumi:"bypassHeadRequest"`
	// Custom headers to use in monitor job. See Nested customHeader blocks below for details.
	CustomHeaders MonitorCustomHeaderArrayOutput `pulumi:"customHeaders"`
	// Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
	DeviceOrientation pulumi.StringPtrOutput `pulumi:"deviceOrientation"`
	// Device emulation type field. Valid values are `MOBILE` and `TABLET`.
	DeviceType pulumi.StringPtrOutput `pulumi:"deviceType"`
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrOutput `pulumi:"enableScreenshotOnFailureAndScript"`
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayOutput `pulumi:"locationsPrivates"`
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"`
	// The human-readable identifier for the monitor.
	Name pulumi.StringOutput `pulumi:"name"`
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringOutput `pulumi:"period"`
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"`
	// The runtime type that the monitor will run.
	RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"`
	// The runtime type that the monitor will run.
	RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"`
	// The programing language that should execute the script.
	ScriptLanguage pulumi.StringPtrOutput `pulumi:"scriptLanguage"`
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringOutput `pulumi:"status"`
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	//
	// The `SIMPLE` monitor type supports the following additional arguments:
	Tags MonitorTagArrayOutput `pulumi:"tags"`
	// Categorize redirects during a monitor job as a failure.
	TreatRedirectAsFailure pulumi.BoolPtrOutput `pulumi:"treatRedirectAsFailure"`
	// The monitor type. Valid values are `SIMPLE` and `BROWSER`.
	Type pulumi.StringOutput `pulumi:"type"`
	// The URI the monitor runs against.
	Uri pulumi.StringPtrOutput `pulumi:"uri"`
	// Validation text for monitor to search for at given URI.
	ValidationString pulumi.StringPtrOutput `pulumi:"validationString"`
	// Monitor should validate SSL certificate chain.
	VerifySsl pulumi.BoolPtrOutput `pulumi:"verifySsl"`
}

Use this resource to create, update, and delete a Simple or Browser Synthetics Monitor in New Relic.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("SIMPLE"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			TreatRedirectAsFailure: pulumi.Bool(true),
			ValidationString:       pulumi.String("success"),
			BypassHeadRequest:      pulumi.Bool(true),
			VerifySsl:              pulumi.Bool(true),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ##### Type: `SIMPLE BROWSER`

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("BROWSER"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			EnableScreenshotOnFailureAndScript: pulumi.Bool(true),
			ValidationString:                   pulumi.String("success"),
			VerifySsl:                          pulumi.Bool(true),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` See additional examples.

## Additional Examples

### Create a monitor with a private location

The below example shows how you can define a private location and attach it to a monitor.

> **NOTE:** It can take up to 10 minutes for a private location to become available.

##### Type: `SIMPLE`

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
			Description:             pulumi.String("Example private location"),
			Name:                    pulumi.String("private_location"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("SIMPLE"),
			LocationsPrivates: pulumi.StringArray{
				location.ID(),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			TreatRedirectAsFailure: pulumi.Bool(true),
			ValidationString:       pulumi.String("success"),
			BypassHeadRequest:      pulumi.Bool(true),
			VerifySsl:              pulumi.Bool(true),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ##### Type: `BROWSER`

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
			Description:             pulumi.String("Example private location"),
			Name:                    pulumi.String("private-location"),
			VerifiedScriptExecution: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Type:   pulumi.String("BROWSER"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Name:   pulumi.String("monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			LocationsPrivates: pulumi.StringArray{
				location.ID(),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			EnableScreenshotOnFailureAndScript: pulumi.Bool(true),
			ValidationString:                   pulumi.String("success"),
			VerifySsl:                          pulumi.Bool(true),
			RuntimeTypeVersion:                 pulumi.String("100"),
			RuntimeType:                        pulumi.String("CHROME_BROWSER"),
			ScriptLanguage:                     pulumi.String("JAVASCRIPT"),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Synthetics monitor can be imported using the `guid`, e.g.

bash

```sh $ pulumi import newrelic:synthetics/monitor:Monitor monitor <guid> ```

func GetMonitor

func GetMonitor(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MonitorState, opts ...pulumi.ResourceOption) (*Monitor, error)

GetMonitor gets an existing Monitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMonitor

func NewMonitor(ctx *pulumi.Context,
	name string, args *MonitorArgs, opts ...pulumi.ResourceOption) (*Monitor, error)

NewMonitor registers a new resource with the given unique name, arguments, and options.

func (*Monitor) ElementType

func (*Monitor) ElementType() reflect.Type

func (*Monitor) ToMonitorOutput

func (i *Monitor) ToMonitorOutput() MonitorOutput

func (*Monitor) ToMonitorOutputWithContext

func (i *Monitor) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput

type MonitorArgs

type MonitorArgs struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// Monitor should skip default HEAD request and instead use GET verb in check.
	//
	// The `BROWSER` monitor type supports the following additional arguments:
	BypassHeadRequest pulumi.BoolPtrInput
	// Custom headers to use in monitor job. See Nested customHeader blocks below for details.
	CustomHeaders MonitorCustomHeaderArrayInput
	// Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
	DeviceOrientation pulumi.StringPtrInput
	// Device emulation type field. Valid values are `MOBILE` and `TABLET`.
	DeviceType pulumi.StringPtrInput
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The human-readable identifier for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringPtrInput
	// The runtime type that the monitor will run.
	RuntimeType pulumi.StringPtrInput
	// The runtime type that the monitor will run.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The programing language that should execute the script.
	ScriptLanguage pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	//
	// The `SIMPLE` monitor type supports the following additional arguments:
	Tags MonitorTagArrayInput
	// Categorize redirects during a monitor job as a failure.
	TreatRedirectAsFailure pulumi.BoolPtrInput
	// The monitor type. Valid values are `SIMPLE` and `BROWSER`.
	Type pulumi.StringInput
	// The URI the monitor runs against.
	Uri pulumi.StringPtrInput
	// Validation text for monitor to search for at given URI.
	ValidationString pulumi.StringPtrInput
	// Monitor should validate SSL certificate chain.
	VerifySsl pulumi.BoolPtrInput
}

The set of arguments for constructing a Monitor resource.

func (MonitorArgs) ElementType

func (MonitorArgs) ElementType() reflect.Type

type MonitorArray

type MonitorArray []MonitorInput

func (MonitorArray) ElementType

func (MonitorArray) ElementType() reflect.Type

func (MonitorArray) ToMonitorArrayOutput

func (i MonitorArray) ToMonitorArrayOutput() MonitorArrayOutput

func (MonitorArray) ToMonitorArrayOutputWithContext

func (i MonitorArray) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput

type MonitorArrayInput

type MonitorArrayInput interface {
	pulumi.Input

	ToMonitorArrayOutput() MonitorArrayOutput
	ToMonitorArrayOutputWithContext(context.Context) MonitorArrayOutput
}

MonitorArrayInput is an input type that accepts MonitorArray and MonitorArrayOutput values. You can construct a concrete instance of `MonitorArrayInput` via:

MonitorArray{ MonitorArgs{...} }

type MonitorArrayOutput

type MonitorArrayOutput struct{ *pulumi.OutputState }

func (MonitorArrayOutput) ElementType

func (MonitorArrayOutput) ElementType() reflect.Type

func (MonitorArrayOutput) Index

func (MonitorArrayOutput) ToMonitorArrayOutput

func (o MonitorArrayOutput) ToMonitorArrayOutput() MonitorArrayOutput

func (MonitorArrayOutput) ToMonitorArrayOutputWithContext

func (o MonitorArrayOutput) ToMonitorArrayOutputWithContext(ctx context.Context) MonitorArrayOutput

type MonitorCustomHeader

type MonitorCustomHeader struct {
	// Header name.
	Name *string `pulumi:"name"`
	// Header Value.
	Value *string `pulumi:"value"`
}

type MonitorCustomHeaderArgs

type MonitorCustomHeaderArgs struct {
	// Header name.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Header Value.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (MonitorCustomHeaderArgs) ElementType

func (MonitorCustomHeaderArgs) ElementType() reflect.Type

func (MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutput

func (i MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutput() MonitorCustomHeaderOutput

func (MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutputWithContext

func (i MonitorCustomHeaderArgs) ToMonitorCustomHeaderOutputWithContext(ctx context.Context) MonitorCustomHeaderOutput

type MonitorCustomHeaderArray

type MonitorCustomHeaderArray []MonitorCustomHeaderInput

func (MonitorCustomHeaderArray) ElementType

func (MonitorCustomHeaderArray) ElementType() reflect.Type

func (MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutput

func (i MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutput() MonitorCustomHeaderArrayOutput

func (MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutputWithContext

func (i MonitorCustomHeaderArray) ToMonitorCustomHeaderArrayOutputWithContext(ctx context.Context) MonitorCustomHeaderArrayOutput

type MonitorCustomHeaderArrayInput

type MonitorCustomHeaderArrayInput interface {
	pulumi.Input

	ToMonitorCustomHeaderArrayOutput() MonitorCustomHeaderArrayOutput
	ToMonitorCustomHeaderArrayOutputWithContext(context.Context) MonitorCustomHeaderArrayOutput
}

MonitorCustomHeaderArrayInput is an input type that accepts MonitorCustomHeaderArray and MonitorCustomHeaderArrayOutput values. You can construct a concrete instance of `MonitorCustomHeaderArrayInput` via:

MonitorCustomHeaderArray{ MonitorCustomHeaderArgs{...} }

type MonitorCustomHeaderArrayOutput

type MonitorCustomHeaderArrayOutput struct{ *pulumi.OutputState }

func (MonitorCustomHeaderArrayOutput) ElementType

func (MonitorCustomHeaderArrayOutput) Index

func (MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutput

func (o MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutput() MonitorCustomHeaderArrayOutput

func (MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutputWithContext

func (o MonitorCustomHeaderArrayOutput) ToMonitorCustomHeaderArrayOutputWithContext(ctx context.Context) MonitorCustomHeaderArrayOutput

type MonitorCustomHeaderInput

type MonitorCustomHeaderInput interface {
	pulumi.Input

	ToMonitorCustomHeaderOutput() MonitorCustomHeaderOutput
	ToMonitorCustomHeaderOutputWithContext(context.Context) MonitorCustomHeaderOutput
}

MonitorCustomHeaderInput is an input type that accepts MonitorCustomHeaderArgs and MonitorCustomHeaderOutput values. You can construct a concrete instance of `MonitorCustomHeaderInput` via:

MonitorCustomHeaderArgs{...}

type MonitorCustomHeaderOutput

type MonitorCustomHeaderOutput struct{ *pulumi.OutputState }

func (MonitorCustomHeaderOutput) ElementType

func (MonitorCustomHeaderOutput) ElementType() reflect.Type

func (MonitorCustomHeaderOutput) Name

Header name.

func (MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutput

func (o MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutput() MonitorCustomHeaderOutput

func (MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutputWithContext

func (o MonitorCustomHeaderOutput) ToMonitorCustomHeaderOutputWithContext(ctx context.Context) MonitorCustomHeaderOutput

func (MonitorCustomHeaderOutput) Value

Header Value.

type MonitorInput

type MonitorInput interface {
	pulumi.Input

	ToMonitorOutput() MonitorOutput
	ToMonitorOutputWithContext(ctx context.Context) MonitorOutput
}

type MonitorMap

type MonitorMap map[string]MonitorInput

func (MonitorMap) ElementType

func (MonitorMap) ElementType() reflect.Type

func (MonitorMap) ToMonitorMapOutput

func (i MonitorMap) ToMonitorMapOutput() MonitorMapOutput

func (MonitorMap) ToMonitorMapOutputWithContext

func (i MonitorMap) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput

type MonitorMapInput

type MonitorMapInput interface {
	pulumi.Input

	ToMonitorMapOutput() MonitorMapOutput
	ToMonitorMapOutputWithContext(context.Context) MonitorMapOutput
}

MonitorMapInput is an input type that accepts MonitorMap and MonitorMapOutput values. You can construct a concrete instance of `MonitorMapInput` via:

MonitorMap{ "key": MonitorArgs{...} }

type MonitorMapOutput

type MonitorMapOutput struct{ *pulumi.OutputState }

func (MonitorMapOutput) ElementType

func (MonitorMapOutput) ElementType() reflect.Type

func (MonitorMapOutput) MapIndex

func (MonitorMapOutput) ToMonitorMapOutput

func (o MonitorMapOutput) ToMonitorMapOutput() MonitorMapOutput

func (MonitorMapOutput) ToMonitorMapOutputWithContext

func (o MonitorMapOutput) ToMonitorMapOutputWithContext(ctx context.Context) MonitorMapOutput

type MonitorOutput

type MonitorOutput struct{ *pulumi.OutputState }

func (MonitorOutput) AccountId

func (o MonitorOutput) AccountId() pulumi.IntOutput

The account in which the Synthetics monitor will be created.

func (MonitorOutput) BypassHeadRequest

func (o MonitorOutput) BypassHeadRequest() pulumi.BoolPtrOutput

Monitor should skip default HEAD request and instead use GET verb in check.

The `BROWSER` monitor type supports the following additional arguments:

func (MonitorOutput) CustomHeaders

Custom headers to use in monitor job. See Nested customHeader blocks below for details.

func (MonitorOutput) DeviceOrientation added in v5.15.0

func (o MonitorOutput) DeviceOrientation() pulumi.StringPtrOutput

Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.

func (MonitorOutput) DeviceType added in v5.15.0

func (o MonitorOutput) DeviceType() pulumi.StringPtrOutput

Device emulation type field. Valid values are `MOBILE` and `TABLET`.

func (MonitorOutput) ElementType

func (MonitorOutput) ElementType() reflect.Type

func (MonitorOutput) EnableScreenshotOnFailureAndScript

func (o MonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput

Capture a screenshot during job execution.

func (MonitorOutput) LocationsPrivates

func (o MonitorOutput) LocationsPrivates() pulumi.StringArrayOutput

The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.

func (MonitorOutput) LocationsPublics

func (o MonitorOutput) LocationsPublics() pulumi.StringArrayOutput

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.

func (MonitorOutput) Name

The human-readable identifier for the monitor.

func (MonitorOutput) Period

func (o MonitorOutput) Period() pulumi.StringOutput

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

func (MonitorOutput) PeriodInMinutes added in v5.10.0

func (o MonitorOutput) PeriodInMinutes() pulumi.IntOutput

The interval in minutes at which Synthetic monitor should run.

func (MonitorOutput) RuntimeType

func (o MonitorOutput) RuntimeType() pulumi.StringPtrOutput

The runtime type that the monitor will run.

func (MonitorOutput) RuntimeTypeVersion

func (o MonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput

The runtime type that the monitor will run.

func (MonitorOutput) ScriptLanguage

func (o MonitorOutput) ScriptLanguage() pulumi.StringPtrOutput

The programing language that should execute the script.

func (MonitorOutput) Status

func (o MonitorOutput) Status() pulumi.StringOutput

The monitor status (ENABLED or DISABLED).

func (MonitorOutput) Tags

The tags that will be associated with the monitor. See Nested tag blocks below for details.

The `SIMPLE` monitor type supports the following additional arguments:

func (MonitorOutput) ToMonitorOutput

func (o MonitorOutput) ToMonitorOutput() MonitorOutput

func (MonitorOutput) ToMonitorOutputWithContext

func (o MonitorOutput) ToMonitorOutputWithContext(ctx context.Context) MonitorOutput

func (MonitorOutput) TreatRedirectAsFailure

func (o MonitorOutput) TreatRedirectAsFailure() pulumi.BoolPtrOutput

Categorize redirects during a monitor job as a failure.

func (MonitorOutput) Type

The monitor type. Valid values are `SIMPLE` and `BROWSER`.

func (MonitorOutput) Uri

The URI the monitor runs against.

func (MonitorOutput) ValidationString

func (o MonitorOutput) ValidationString() pulumi.StringPtrOutput

Validation text for monitor to search for at given URI.

func (MonitorOutput) VerifySsl

func (o MonitorOutput) VerifySsl() pulumi.BoolPtrOutput

Monitor should validate SSL certificate chain.

type MonitorState

type MonitorState struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// Monitor should skip default HEAD request and instead use GET verb in check.
	//
	// The `BROWSER` monitor type supports the following additional arguments:
	BypassHeadRequest pulumi.BoolPtrInput
	// Custom headers to use in monitor job. See Nested customHeader blocks below for details.
	CustomHeaders MonitorCustomHeaderArrayInput
	// Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
	DeviceOrientation pulumi.StringPtrInput
	// Device emulation type field. Valid values are `MOBILE` and `TABLET`.
	DeviceType pulumi.StringPtrInput
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput
	// The location the monitor will run from. Accepts a list of private location GUIDs. At least one of either `locationsPublic` or `locationsPrivate` is required.
	LocationsPrivates pulumi.StringArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The human-readable identifier for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringPtrInput
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntPtrInput
	// The runtime type that the monitor will run.
	RuntimeType pulumi.StringPtrInput
	// The runtime type that the monitor will run.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The programing language that should execute the script.
	ScriptLanguage pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringPtrInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	//
	// The `SIMPLE` monitor type supports the following additional arguments:
	Tags MonitorTagArrayInput
	// Categorize redirects during a monitor job as a failure.
	TreatRedirectAsFailure pulumi.BoolPtrInput
	// The monitor type. Valid values are `SIMPLE` and `BROWSER`.
	Type pulumi.StringPtrInput
	// The URI the monitor runs against.
	Uri pulumi.StringPtrInput
	// Validation text for monitor to search for at given URI.
	ValidationString pulumi.StringPtrInput
	// Monitor should validate SSL certificate chain.
	VerifySsl pulumi.BoolPtrInput
}

func (MonitorState) ElementType

func (MonitorState) ElementType() reflect.Type

type MonitorTag

type MonitorTag struct {
	// Name of the tag key.
	Key string `pulumi:"key"`
	// Values associated with the tag key.
	Values []string `pulumi:"values"`
}

type MonitorTagArgs

type MonitorTagArgs struct {
	// Name of the tag key.
	Key pulumi.StringInput `pulumi:"key"`
	// Values associated with the tag key.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (MonitorTagArgs) ElementType

func (MonitorTagArgs) ElementType() reflect.Type

func (MonitorTagArgs) ToMonitorTagOutput

func (i MonitorTagArgs) ToMonitorTagOutput() MonitorTagOutput

func (MonitorTagArgs) ToMonitorTagOutputWithContext

func (i MonitorTagArgs) ToMonitorTagOutputWithContext(ctx context.Context) MonitorTagOutput

type MonitorTagArray

type MonitorTagArray []MonitorTagInput

func (MonitorTagArray) ElementType

func (MonitorTagArray) ElementType() reflect.Type

func (MonitorTagArray) ToMonitorTagArrayOutput

func (i MonitorTagArray) ToMonitorTagArrayOutput() MonitorTagArrayOutput

func (MonitorTagArray) ToMonitorTagArrayOutputWithContext

func (i MonitorTagArray) ToMonitorTagArrayOutputWithContext(ctx context.Context) MonitorTagArrayOutput

type MonitorTagArrayInput

type MonitorTagArrayInput interface {
	pulumi.Input

	ToMonitorTagArrayOutput() MonitorTagArrayOutput
	ToMonitorTagArrayOutputWithContext(context.Context) MonitorTagArrayOutput
}

MonitorTagArrayInput is an input type that accepts MonitorTagArray and MonitorTagArrayOutput values. You can construct a concrete instance of `MonitorTagArrayInput` via:

MonitorTagArray{ MonitorTagArgs{...} }

type MonitorTagArrayOutput

type MonitorTagArrayOutput struct{ *pulumi.OutputState }

func (MonitorTagArrayOutput) ElementType

func (MonitorTagArrayOutput) ElementType() reflect.Type

func (MonitorTagArrayOutput) Index

func (MonitorTagArrayOutput) ToMonitorTagArrayOutput

func (o MonitorTagArrayOutput) ToMonitorTagArrayOutput() MonitorTagArrayOutput

func (MonitorTagArrayOutput) ToMonitorTagArrayOutputWithContext

func (o MonitorTagArrayOutput) ToMonitorTagArrayOutputWithContext(ctx context.Context) MonitorTagArrayOutput

type MonitorTagInput

type MonitorTagInput interface {
	pulumi.Input

	ToMonitorTagOutput() MonitorTagOutput
	ToMonitorTagOutputWithContext(context.Context) MonitorTagOutput
}

MonitorTagInput is an input type that accepts MonitorTagArgs and MonitorTagOutput values. You can construct a concrete instance of `MonitorTagInput` via:

MonitorTagArgs{...}

type MonitorTagOutput

type MonitorTagOutput struct{ *pulumi.OutputState }

func (MonitorTagOutput) ElementType

func (MonitorTagOutput) ElementType() reflect.Type

func (MonitorTagOutput) Key

Name of the tag key.

func (MonitorTagOutput) ToMonitorTagOutput

func (o MonitorTagOutput) ToMonitorTagOutput() MonitorTagOutput

func (MonitorTagOutput) ToMonitorTagOutputWithContext

func (o MonitorTagOutput) ToMonitorTagOutputWithContext(ctx context.Context) MonitorTagOutput

func (MonitorTagOutput) Values

Values associated with the tag key.

type MultiLocationAlertCondition

type MultiLocationAlertCondition struct {
	pulumi.CustomResourceState

	// A condition term with priority set to critical.
	Critical MultiLocationAlertConditionCriticalOutput `pulumi:"critical"`
	// Set whether to enable the alert condition. Defaults to true.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The GUIDs of the Synthetics monitors to alert on.
	Entities pulumi.StringArrayOutput `pulumi:"entities"`
	// The unique entity identifier of the condition in New Relic.
	EntityGuid pulumi.StringOutput `pulumi:"entityGuid"`
	// The title of this condition.
	Name pulumi.StringOutput `pulumi:"name"`
	// The ID of the policy where this condition will be used.
	PolicyId pulumi.IntOutput `pulumi:"policyId"`
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrOutput `pulumi:"runbookUrl"`
	// Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
	// select. Must be in the range of 300 to 2592000 (inclusive)
	ViolationTimeLimitSeconds pulumi.IntPtrOutput `pulumi:"violationTimeLimitSeconds"`
	// A condition term with priority set to warning.
	Warning MultiLocationAlertConditionWarningPtrOutput `pulumi:"warning"`
}

Use this resource to create, update, and delete a New Relic Synthetics Location Alerts.

> **NOTE:** This is a legacy resource. The NrqlAlertCondition resource is preferred for configuring alerts conditions. In most cases feature parity can be achieved with a NRQL query. This condition type may be deprecated in the future.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		policy, err := newrelic.NewAlertPolicy(ctx, "policy", &newrelic.AlertPolicyArgs{
			Name: pulumi.String("my-policy"),
		})
		if err != nil {
			return err
		}
		monitor, err := synthetics.NewMonitor(ctx, "monitor", &synthetics.MonitorArgs{
			LocationsPublics: pulumi.StringArray{
				pulumi.String("US_WEST_1"),
			},
			Name:   pulumi.String("my-monitor"),
			Period: pulumi.String("EVERY_10_MINUTES"),
			Status: pulumi.String("DISABLED"),
			Type:   pulumi.String("SIMPLE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewMultiLocationAlertCondition(ctx, "example", &synthetics.MultiLocationAlertConditionArgs{
			PolicyId:                  policy.ID(),
			Name:                      pulumi.String("Example condition"),
			RunbookUrl:                pulumi.String("https://example.com"),
			Enabled:                   pulumi.Bool(true),
			ViolationTimeLimitSeconds: pulumi.Int(3600),
			Entities: pulumi.StringArray{
				monitor.ID(),
			},
			Critical: &synthetics.MultiLocationAlertConditionCriticalArgs{
				Threshold: pulumi.Int(2),
			},
			Warning: &synthetics.MultiLocationAlertConditionWarningArgs{
				Threshold: pulumi.Int(1),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ## Tags

Manage synthetics multilocation alert condition tags with `EntityTags`. For up-to-date documentation about the tagging resource, please check EntityTags

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := newrelic.NewAlertPolicy(ctx, "foo", &newrelic.AlertPolicyArgs{
			Name: pulumi.String("foo policy"),
		})
		if err != nil {
			return err
		}
		fooMonitor, err := synthetics.NewMonitor(ctx, "foo", &synthetics.MonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("foo monitor"),
			Period: pulumi.String("EVERY_MINUTE"),
			Uri:    pulumi.String("https://www.one.newrelic.com"),
			Type:   pulumi.String("SIMPLE"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_EAST_1"),
			},
			CustomHeaders: synthetics.MonitorCustomHeaderArray{
				&synthetics.MonitorCustomHeaderArgs{
					Name:  pulumi.String("some_name"),
					Value: pulumi.String("some_value"),
				},
			},
			TreatRedirectAsFailure: pulumi.Bool(true),
			ValidationString:       pulumi.String("success"),
			BypassHeadRequest:      pulumi.Bool(true),
			VerifySsl:              pulumi.Bool(true),
			Tags: synthetics.MonitorTagArray{
				&synthetics.MonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		fooMultiLocationAlertCondition, err := synthetics.NewMultiLocationAlertCondition(ctx, "foo", &synthetics.MultiLocationAlertConditionArgs{
			PolicyId:                  foo.ID(),
			Name:                      pulumi.String("foo condition"),
			RunbookUrl:                pulumi.String("https://example.com"),
			Enabled:                   pulumi.Bool(true),
			ViolationTimeLimitSeconds: pulumi.Int(3600),
			Entities: pulumi.StringArray{
				fooMonitor.ID(),
			},
			Critical: &synthetics.MultiLocationAlertConditionCriticalArgs{
				Threshold: pulumi.Int(2),
			},
			Warning: &synthetics.MultiLocationAlertConditionWarningArgs{
				Threshold: pulumi.Int(1),
			},
		})
		if err != nil {
			return err
		}
		_, err = newrelic.NewEntityTags(ctx, "my_condition_entity_tags", &newrelic.EntityTagsArgs{
			Guid: fooMultiLocationAlertCondition.EntityGuid,
			Tags: newrelic.EntityTagsTagArray{
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("my-key"),
					Values: pulumi.StringArray{
						pulumi.String("my-value"),
						pulumi.String("my-other-value"),
					},
				},
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("my-key-2"),
					Values: pulumi.StringArray{
						pulumi.String("my-value-2"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

New Relic Synthetics MultiLocation Conditions can be imported using a concatenated string of the format

`<policy_id>:<condition_id>`, e.g.

bash

```sh $ pulumi import newrelic:synthetics/multiLocationAlertCondition:MultiLocationAlertCondition example 12345678:1456 ```

func GetMultiLocationAlertCondition

func GetMultiLocationAlertCondition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MultiLocationAlertConditionState, opts ...pulumi.ResourceOption) (*MultiLocationAlertCondition, error)

GetMultiLocationAlertCondition gets an existing MultiLocationAlertCondition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMultiLocationAlertCondition

func NewMultiLocationAlertCondition(ctx *pulumi.Context,
	name string, args *MultiLocationAlertConditionArgs, opts ...pulumi.ResourceOption) (*MultiLocationAlertCondition, error)

NewMultiLocationAlertCondition registers a new resource with the given unique name, arguments, and options.

func (*MultiLocationAlertCondition) ElementType

func (*MultiLocationAlertCondition) ElementType() reflect.Type

func (*MultiLocationAlertCondition) ToMultiLocationAlertConditionOutput

func (i *MultiLocationAlertCondition) ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput

func (*MultiLocationAlertCondition) ToMultiLocationAlertConditionOutputWithContext

func (i *MultiLocationAlertCondition) ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput

type MultiLocationAlertConditionArgs

type MultiLocationAlertConditionArgs struct {
	// A condition term with priority set to critical.
	Critical MultiLocationAlertConditionCriticalInput
	// Set whether to enable the alert condition. Defaults to true.
	Enabled pulumi.BoolPtrInput
	// The GUIDs of the Synthetics monitors to alert on.
	Entities pulumi.StringArrayInput
	// The title of this condition.
	Name pulumi.StringPtrInput
	// The ID of the policy where this condition will be used.
	PolicyId pulumi.IntInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
	// select. Must be in the range of 300 to 2592000 (inclusive)
	ViolationTimeLimitSeconds pulumi.IntPtrInput
	// A condition term with priority set to warning.
	Warning MultiLocationAlertConditionWarningPtrInput
}

The set of arguments for constructing a MultiLocationAlertCondition resource.

func (MultiLocationAlertConditionArgs) ElementType

type MultiLocationAlertConditionArray

type MultiLocationAlertConditionArray []MultiLocationAlertConditionInput

func (MultiLocationAlertConditionArray) ElementType

func (MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutput

func (i MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput

func (MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutputWithContext

func (i MultiLocationAlertConditionArray) ToMultiLocationAlertConditionArrayOutputWithContext(ctx context.Context) MultiLocationAlertConditionArrayOutput

type MultiLocationAlertConditionArrayInput

type MultiLocationAlertConditionArrayInput interface {
	pulumi.Input

	ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput
	ToMultiLocationAlertConditionArrayOutputWithContext(context.Context) MultiLocationAlertConditionArrayOutput
}

MultiLocationAlertConditionArrayInput is an input type that accepts MultiLocationAlertConditionArray and MultiLocationAlertConditionArrayOutput values. You can construct a concrete instance of `MultiLocationAlertConditionArrayInput` via:

MultiLocationAlertConditionArray{ MultiLocationAlertConditionArgs{...} }

type MultiLocationAlertConditionArrayOutput

type MultiLocationAlertConditionArrayOutput struct{ *pulumi.OutputState }

func (MultiLocationAlertConditionArrayOutput) ElementType

func (MultiLocationAlertConditionArrayOutput) Index

func (MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutput

func (o MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutput() MultiLocationAlertConditionArrayOutput

func (MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutputWithContext

func (o MultiLocationAlertConditionArrayOutput) ToMultiLocationAlertConditionArrayOutputWithContext(ctx context.Context) MultiLocationAlertConditionArrayOutput

type MultiLocationAlertConditionCritical

type MultiLocationAlertConditionCritical struct {
	// The minimum number of monitor locations that must be concurrently failing before an incident is opened.
	Threshold int `pulumi:"threshold"`
}

type MultiLocationAlertConditionCriticalArgs

type MultiLocationAlertConditionCriticalArgs struct {
	// The minimum number of monitor locations that must be concurrently failing before an incident is opened.
	Threshold pulumi.IntInput `pulumi:"threshold"`
}

func (MultiLocationAlertConditionCriticalArgs) ElementType

func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutput

func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput

func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutputWithContext

func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalOutput

func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutput

func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput

func (MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutputWithContext

func (i MultiLocationAlertConditionCriticalArgs) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput

type MultiLocationAlertConditionCriticalInput

type MultiLocationAlertConditionCriticalInput interface {
	pulumi.Input

	ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput
	ToMultiLocationAlertConditionCriticalOutputWithContext(context.Context) MultiLocationAlertConditionCriticalOutput
}

MultiLocationAlertConditionCriticalInput is an input type that accepts MultiLocationAlertConditionCriticalArgs and MultiLocationAlertConditionCriticalOutput values. You can construct a concrete instance of `MultiLocationAlertConditionCriticalInput` via:

MultiLocationAlertConditionCriticalArgs{...}

type MultiLocationAlertConditionCriticalOutput

type MultiLocationAlertConditionCriticalOutput struct{ *pulumi.OutputState }

func (MultiLocationAlertConditionCriticalOutput) ElementType

func (MultiLocationAlertConditionCriticalOutput) Threshold

The minimum number of monitor locations that must be concurrently failing before an incident is opened.

func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutput

func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutput() MultiLocationAlertConditionCriticalOutput

func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutputWithContext

func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalOutput

func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutput

func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput

func (MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext

func (o MultiLocationAlertConditionCriticalOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput

type MultiLocationAlertConditionCriticalPtrInput

type MultiLocationAlertConditionCriticalPtrInput interface {
	pulumi.Input

	ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput
	ToMultiLocationAlertConditionCriticalPtrOutputWithContext(context.Context) MultiLocationAlertConditionCriticalPtrOutput
}

MultiLocationAlertConditionCriticalPtrInput is an input type that accepts MultiLocationAlertConditionCriticalArgs, MultiLocationAlertConditionCriticalPtr and MultiLocationAlertConditionCriticalPtrOutput values. You can construct a concrete instance of `MultiLocationAlertConditionCriticalPtrInput` via:

        MultiLocationAlertConditionCriticalArgs{...}

or:

        nil

type MultiLocationAlertConditionCriticalPtrOutput

type MultiLocationAlertConditionCriticalPtrOutput struct{ *pulumi.OutputState }

func (MultiLocationAlertConditionCriticalPtrOutput) Elem

func (MultiLocationAlertConditionCriticalPtrOutput) ElementType

func (MultiLocationAlertConditionCriticalPtrOutput) Threshold

The minimum number of monitor locations that must be concurrently failing before an incident is opened.

func (MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutput

func (o MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutput() MultiLocationAlertConditionCriticalPtrOutput

func (MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext

func (o MultiLocationAlertConditionCriticalPtrOutput) ToMultiLocationAlertConditionCriticalPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionCriticalPtrOutput

type MultiLocationAlertConditionInput

type MultiLocationAlertConditionInput interface {
	pulumi.Input

	ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput
	ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput
}

type MultiLocationAlertConditionMap

type MultiLocationAlertConditionMap map[string]MultiLocationAlertConditionInput

func (MultiLocationAlertConditionMap) ElementType

func (MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutput

func (i MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput

func (MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutputWithContext

func (i MultiLocationAlertConditionMap) ToMultiLocationAlertConditionMapOutputWithContext(ctx context.Context) MultiLocationAlertConditionMapOutput

type MultiLocationAlertConditionMapInput

type MultiLocationAlertConditionMapInput interface {
	pulumi.Input

	ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput
	ToMultiLocationAlertConditionMapOutputWithContext(context.Context) MultiLocationAlertConditionMapOutput
}

MultiLocationAlertConditionMapInput is an input type that accepts MultiLocationAlertConditionMap and MultiLocationAlertConditionMapOutput values. You can construct a concrete instance of `MultiLocationAlertConditionMapInput` via:

MultiLocationAlertConditionMap{ "key": MultiLocationAlertConditionArgs{...} }

type MultiLocationAlertConditionMapOutput

type MultiLocationAlertConditionMapOutput struct{ *pulumi.OutputState }

func (MultiLocationAlertConditionMapOutput) ElementType

func (MultiLocationAlertConditionMapOutput) MapIndex

func (MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutput

func (o MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutput() MultiLocationAlertConditionMapOutput

func (MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutputWithContext

func (o MultiLocationAlertConditionMapOutput) ToMultiLocationAlertConditionMapOutputWithContext(ctx context.Context) MultiLocationAlertConditionMapOutput

type MultiLocationAlertConditionOutput

type MultiLocationAlertConditionOutput struct{ *pulumi.OutputState }

func (MultiLocationAlertConditionOutput) Critical

A condition term with priority set to critical.

func (MultiLocationAlertConditionOutput) ElementType

func (MultiLocationAlertConditionOutput) Enabled

Set whether to enable the alert condition. Defaults to true.

func (MultiLocationAlertConditionOutput) Entities

The GUIDs of the Synthetics monitors to alert on.

func (MultiLocationAlertConditionOutput) EntityGuid added in v5.9.0

The unique entity identifier of the condition in New Relic.

func (MultiLocationAlertConditionOutput) Name

The title of this condition.

func (MultiLocationAlertConditionOutput) PolicyId

The ID of the policy where this condition will be used.

func (MultiLocationAlertConditionOutput) RunbookUrl

Runbook URL to display in notifications.

func (MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutput

func (o MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutput() MultiLocationAlertConditionOutput

func (MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutputWithContext

func (o MultiLocationAlertConditionOutput) ToMultiLocationAlertConditionOutputWithContext(ctx context.Context) MultiLocationAlertConditionOutput

func (MultiLocationAlertConditionOutput) ViolationTimeLimitSeconds

func (o MultiLocationAlertConditionOutput) ViolationTimeLimitSeconds() pulumi.IntPtrOutput

Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you select. Must be in the range of 300 to 2592000 (inclusive)

func (MultiLocationAlertConditionOutput) Warning

A condition term with priority set to warning.

type MultiLocationAlertConditionState

type MultiLocationAlertConditionState struct {
	// A condition term with priority set to critical.
	Critical MultiLocationAlertConditionCriticalPtrInput
	// Set whether to enable the alert condition. Defaults to true.
	Enabled pulumi.BoolPtrInput
	// The GUIDs of the Synthetics monitors to alert on.
	Entities pulumi.StringArrayInput
	// The unique entity identifier of the condition in New Relic.
	EntityGuid pulumi.StringPtrInput
	// The title of this condition.
	Name pulumi.StringPtrInput
	// The ID of the policy where this condition will be used.
	PolicyId pulumi.IntPtrInput
	// Runbook URL to display in notifications.
	RunbookUrl pulumi.StringPtrInput
	// Sets a time limit, in seconds, that will automatically force-close a long-lasting incident after the time limit you
	// select. Must be in the range of 300 to 2592000 (inclusive)
	ViolationTimeLimitSeconds pulumi.IntPtrInput
	// A condition term with priority set to warning.
	Warning MultiLocationAlertConditionWarningPtrInput
}

func (MultiLocationAlertConditionState) ElementType

type MultiLocationAlertConditionWarning

type MultiLocationAlertConditionWarning struct {
	// The minimum number of monitor locations that must be concurrently failing before an incident is opened.
	Threshold int `pulumi:"threshold"`
}

type MultiLocationAlertConditionWarningArgs

type MultiLocationAlertConditionWarningArgs struct {
	// The minimum number of monitor locations that must be concurrently failing before an incident is opened.
	Threshold pulumi.IntInput `pulumi:"threshold"`
}

func (MultiLocationAlertConditionWarningArgs) ElementType

func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutput

func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput

func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutputWithContext

func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningOutput

func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutput

func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput

func (MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutputWithContext

func (i MultiLocationAlertConditionWarningArgs) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput

type MultiLocationAlertConditionWarningInput

type MultiLocationAlertConditionWarningInput interface {
	pulumi.Input

	ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput
	ToMultiLocationAlertConditionWarningOutputWithContext(context.Context) MultiLocationAlertConditionWarningOutput
}

MultiLocationAlertConditionWarningInput is an input type that accepts MultiLocationAlertConditionWarningArgs and MultiLocationAlertConditionWarningOutput values. You can construct a concrete instance of `MultiLocationAlertConditionWarningInput` via:

MultiLocationAlertConditionWarningArgs{...}

type MultiLocationAlertConditionWarningOutput

type MultiLocationAlertConditionWarningOutput struct{ *pulumi.OutputState }

func (MultiLocationAlertConditionWarningOutput) ElementType

func (MultiLocationAlertConditionWarningOutput) Threshold

The minimum number of monitor locations that must be concurrently failing before an incident is opened.

func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutput

func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutput() MultiLocationAlertConditionWarningOutput

func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutputWithContext

func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningOutput

func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutput

func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput

func (MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext

func (o MultiLocationAlertConditionWarningOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput

type MultiLocationAlertConditionWarningPtrInput

type MultiLocationAlertConditionWarningPtrInput interface {
	pulumi.Input

	ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput
	ToMultiLocationAlertConditionWarningPtrOutputWithContext(context.Context) MultiLocationAlertConditionWarningPtrOutput
}

MultiLocationAlertConditionWarningPtrInput is an input type that accepts MultiLocationAlertConditionWarningArgs, MultiLocationAlertConditionWarningPtr and MultiLocationAlertConditionWarningPtrOutput values. You can construct a concrete instance of `MultiLocationAlertConditionWarningPtrInput` via:

        MultiLocationAlertConditionWarningArgs{...}

or:

        nil

type MultiLocationAlertConditionWarningPtrOutput

type MultiLocationAlertConditionWarningPtrOutput struct{ *pulumi.OutputState }

func (MultiLocationAlertConditionWarningPtrOutput) Elem

func (MultiLocationAlertConditionWarningPtrOutput) ElementType

func (MultiLocationAlertConditionWarningPtrOutput) Threshold

The minimum number of monitor locations that must be concurrently failing before an incident is opened.

func (MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutput

func (o MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutput() MultiLocationAlertConditionWarningPtrOutput

func (MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext

func (o MultiLocationAlertConditionWarningPtrOutput) ToMultiLocationAlertConditionWarningPtrOutputWithContext(ctx context.Context) MultiLocationAlertConditionWarningPtrOutput

type PrivateLocation

type PrivateLocation struct {
	pulumi.CustomResourceState

	// The account in which the private location will be created.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// The private location description.
	Description pulumi.StringOutput `pulumi:"description"`
	// The private location globally unique identifier.
	DomainId pulumi.StringOutput `pulumi:"domainId"`
	// The unique client identifier for the private location in New Relic. Same as `id`.
	Guid pulumi.StringOutput `pulumi:"guid"`
	// The private locations key.
	Key pulumi.StringOutput `pulumi:"key"`
	// An alternate identifier based on name.
	LocationId pulumi.StringOutput `pulumi:"locationId"`
	// The name of the private location.
	Name pulumi.StringOutput `pulumi:"name"`
	// The private location requires a password to edit if value is true. Defaults to `false`
	VerifiedScriptExecution pulumi.BoolPtrOutput `pulumi:"verifiedScriptExecution"`
}

Use this resource to create and manage New Relic Synthetic private location.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
			Description: pulumi.String("The private location description"),
			Name:        pulumi.String("The name of the private location"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A Synthetics private location can be imported using the `guid`

```sh $ pulumi import newrelic:synthetics/privateLocation:PrivateLocation location GUID ```

func GetPrivateLocation

func GetPrivateLocation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PrivateLocationState, opts ...pulumi.ResourceOption) (*PrivateLocation, error)

GetPrivateLocation gets an existing PrivateLocation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPrivateLocation

func NewPrivateLocation(ctx *pulumi.Context,
	name string, args *PrivateLocationArgs, opts ...pulumi.ResourceOption) (*PrivateLocation, error)

NewPrivateLocation registers a new resource with the given unique name, arguments, and options.

func (*PrivateLocation) ElementType

func (*PrivateLocation) ElementType() reflect.Type

func (*PrivateLocation) ToPrivateLocationOutput

func (i *PrivateLocation) ToPrivateLocationOutput() PrivateLocationOutput

func (*PrivateLocation) ToPrivateLocationOutputWithContext

func (i *PrivateLocation) ToPrivateLocationOutputWithContext(ctx context.Context) PrivateLocationOutput

type PrivateLocationArgs

type PrivateLocationArgs struct {
	// The account in which the private location will be created.
	AccountId pulumi.IntPtrInput
	// The private location description.
	Description pulumi.StringInput
	// The name of the private location.
	Name pulumi.StringPtrInput
	// The private location requires a password to edit if value is true. Defaults to `false`
	VerifiedScriptExecution pulumi.BoolPtrInput
}

The set of arguments for constructing a PrivateLocation resource.

func (PrivateLocationArgs) ElementType

func (PrivateLocationArgs) ElementType() reflect.Type

type PrivateLocationArray

type PrivateLocationArray []PrivateLocationInput

func (PrivateLocationArray) ElementType

func (PrivateLocationArray) ElementType() reflect.Type

func (PrivateLocationArray) ToPrivateLocationArrayOutput

func (i PrivateLocationArray) ToPrivateLocationArrayOutput() PrivateLocationArrayOutput

func (PrivateLocationArray) ToPrivateLocationArrayOutputWithContext

func (i PrivateLocationArray) ToPrivateLocationArrayOutputWithContext(ctx context.Context) PrivateLocationArrayOutput

type PrivateLocationArrayInput

type PrivateLocationArrayInput interface {
	pulumi.Input

	ToPrivateLocationArrayOutput() PrivateLocationArrayOutput
	ToPrivateLocationArrayOutputWithContext(context.Context) PrivateLocationArrayOutput
}

PrivateLocationArrayInput is an input type that accepts PrivateLocationArray and PrivateLocationArrayOutput values. You can construct a concrete instance of `PrivateLocationArrayInput` via:

PrivateLocationArray{ PrivateLocationArgs{...} }

type PrivateLocationArrayOutput

type PrivateLocationArrayOutput struct{ *pulumi.OutputState }

func (PrivateLocationArrayOutput) ElementType

func (PrivateLocationArrayOutput) ElementType() reflect.Type

func (PrivateLocationArrayOutput) Index

func (PrivateLocationArrayOutput) ToPrivateLocationArrayOutput

func (o PrivateLocationArrayOutput) ToPrivateLocationArrayOutput() PrivateLocationArrayOutput

func (PrivateLocationArrayOutput) ToPrivateLocationArrayOutputWithContext

func (o PrivateLocationArrayOutput) ToPrivateLocationArrayOutputWithContext(ctx context.Context) PrivateLocationArrayOutput

type PrivateLocationInput

type PrivateLocationInput interface {
	pulumi.Input

	ToPrivateLocationOutput() PrivateLocationOutput
	ToPrivateLocationOutputWithContext(ctx context.Context) PrivateLocationOutput
}

type PrivateLocationMap

type PrivateLocationMap map[string]PrivateLocationInput

func (PrivateLocationMap) ElementType

func (PrivateLocationMap) ElementType() reflect.Type

func (PrivateLocationMap) ToPrivateLocationMapOutput

func (i PrivateLocationMap) ToPrivateLocationMapOutput() PrivateLocationMapOutput

func (PrivateLocationMap) ToPrivateLocationMapOutputWithContext

func (i PrivateLocationMap) ToPrivateLocationMapOutputWithContext(ctx context.Context) PrivateLocationMapOutput

type PrivateLocationMapInput

type PrivateLocationMapInput interface {
	pulumi.Input

	ToPrivateLocationMapOutput() PrivateLocationMapOutput
	ToPrivateLocationMapOutputWithContext(context.Context) PrivateLocationMapOutput
}

PrivateLocationMapInput is an input type that accepts PrivateLocationMap and PrivateLocationMapOutput values. You can construct a concrete instance of `PrivateLocationMapInput` via:

PrivateLocationMap{ "key": PrivateLocationArgs{...} }

type PrivateLocationMapOutput

type PrivateLocationMapOutput struct{ *pulumi.OutputState }

func (PrivateLocationMapOutput) ElementType

func (PrivateLocationMapOutput) ElementType() reflect.Type

func (PrivateLocationMapOutput) MapIndex

func (PrivateLocationMapOutput) ToPrivateLocationMapOutput

func (o PrivateLocationMapOutput) ToPrivateLocationMapOutput() PrivateLocationMapOutput

func (PrivateLocationMapOutput) ToPrivateLocationMapOutputWithContext

func (o PrivateLocationMapOutput) ToPrivateLocationMapOutputWithContext(ctx context.Context) PrivateLocationMapOutput

type PrivateLocationOutput

type PrivateLocationOutput struct{ *pulumi.OutputState }

func (PrivateLocationOutput) AccountId

func (o PrivateLocationOutput) AccountId() pulumi.IntOutput

The account in which the private location will be created.

func (PrivateLocationOutput) Description

func (o PrivateLocationOutput) Description() pulumi.StringOutput

The private location description.

func (PrivateLocationOutput) DomainId

The private location globally unique identifier.

func (PrivateLocationOutput) ElementType

func (PrivateLocationOutput) ElementType() reflect.Type

func (PrivateLocationOutput) Guid

The unique client identifier for the private location in New Relic. Same as `id`.

func (PrivateLocationOutput) Key

The private locations key.

func (PrivateLocationOutput) LocationId

func (o PrivateLocationOutput) LocationId() pulumi.StringOutput

An alternate identifier based on name.

func (PrivateLocationOutput) Name

The name of the private location.

func (PrivateLocationOutput) ToPrivateLocationOutput

func (o PrivateLocationOutput) ToPrivateLocationOutput() PrivateLocationOutput

func (PrivateLocationOutput) ToPrivateLocationOutputWithContext

func (o PrivateLocationOutput) ToPrivateLocationOutputWithContext(ctx context.Context) PrivateLocationOutput

func (PrivateLocationOutput) VerifiedScriptExecution

func (o PrivateLocationOutput) VerifiedScriptExecution() pulumi.BoolPtrOutput

The private location requires a password to edit if value is true. Defaults to `false`

type PrivateLocationState

type PrivateLocationState struct {
	// The account in which the private location will be created.
	AccountId pulumi.IntPtrInput
	// The private location description.
	Description pulumi.StringPtrInput
	// The private location globally unique identifier.
	DomainId pulumi.StringPtrInput
	// The unique client identifier for the private location in New Relic. Same as `id`.
	Guid pulumi.StringPtrInput
	// The private locations key.
	Key pulumi.StringPtrInput
	// An alternate identifier based on name.
	LocationId pulumi.StringPtrInput
	// The name of the private location.
	Name pulumi.StringPtrInput
	// The private location requires a password to edit if value is true. Defaults to `false`
	VerifiedScriptExecution pulumi.BoolPtrInput
}

func (PrivateLocationState) ElementType

func (PrivateLocationState) ElementType() reflect.Type

type ScriptMonitor

type ScriptMonitor struct {
	pulumi.CustomResourceState

	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
	DeviceOrientation pulumi.StringPtrOutput `pulumi:"deviceOrientation"`
	// Device emulation type field. Valid values are `MOBILE` and `TABLET`.
	DeviceType pulumi.StringPtrOutput `pulumi:"deviceType"`
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrOutput `pulumi:"enableScreenshotOnFailureAndScript"`
	// The unique entity identifier of the monitor in New Relic.
	Guid pulumi.StringOutput `pulumi:"guid"`
	// The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
	LocationPrivates ScriptMonitorLocationPrivateArrayOutput `pulumi:"locationPrivates"`
	// The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
	LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"`
	// The name for the monitor.
	Name pulumi.StringOutput `pulumi:"name"`
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringOutput `pulumi:"period"`
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"`
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"`
	// The specific version of the runtime type selected.
	RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"`
	// The script that the monitor runs.
	Script pulumi.StringPtrOutput `pulumi:"script"`
	// The programing language that should execute the script.
	ScriptLanguage pulumi.StringPtrOutput `pulumi:"scriptLanguage"`
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringOutput `pulumi:"status"`
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	//
	// The `SCRIPTED_BROWSER` monitor type supports the following additional argument:
	Tags ScriptMonitorTagArrayOutput `pulumi:"tags"`
	// The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
	Type pulumi.StringOutput `pulumi:"type"`
}

Use this resource to create update, and delete a Script API or Script Browser Synthetics Monitor in New Relic.

## Example Usage

##### Type: `SCRIPT_API`

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("script_monitor"),
			Type:   pulumi.String("SCRIPT_API"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
				pulumi.String("AP_EAST_1"),
			},
			Period:             pulumi.String("EVERY_6_HOURS"),
			Script:             pulumi.String("console.log('it works!')"),
			ScriptLanguage:     pulumi.String("JAVASCRIPT"),
			RuntimeType:        pulumi.String("NODE_API"),
			RuntimeTypeVersion: pulumi.String("16.10"),
			Tags: synthetics.ScriptMonitorTagArray{
				&synthetics.ScriptMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ##### Type: `SCRIPT_BROWSER`

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("script_monitor"),
			Type:   pulumi.String("SCRIPT_BROWSER"),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("AP_SOUTH_1"),
				pulumi.String("AP_EAST_1"),
			},
			Period:                             pulumi.String("EVERY_HOUR"),
			EnableScreenshotOnFailureAndScript: pulumi.Bool(false),
			Script:                             pulumi.String("$browser.get('https://one.newrelic.com')"),
			RuntimeTypeVersion:                 pulumi.String("100"),
			RuntimeType:                        pulumi.String("CHROME_BROWSER"),
			ScriptLanguage:                     pulumi.String("JAVASCRIPT"),
			Tags: synthetics.ScriptMonitorTagArray{
				&synthetics.ScriptMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` See additional examples.

## Additional Examples

### Create a monitor with a private location

The below example shows how you can define a private location and attach it to a monitor.

> **NOTE:** It can take up to 10 minutes for a private location to become available.

##### Type: `SCRIPT_API`

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
			Description:             pulumi.String("Example private location"),
			Name:                    pulumi.String("private_location"),
			VerifiedScriptExecution: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{
			Status: pulumi.String("ENABLED"),
			Name:   pulumi.String("script_monitor"),
			Type:   pulumi.String("SCRIPT_API"),
			LocationPrivates: synthetics.ScriptMonitorLocationPrivateArray{
				&synthetics.ScriptMonitorLocationPrivateArgs{
					Guid:        location.ID(),
					VsePassword: pulumi.String("secret"),
				},
			},
			Period:             pulumi.String("EVERY_6_HOURS"),
			Script:             pulumi.String("console.log('terraform integration test updated')"),
			ScriptLanguage:     pulumi.String("JAVASCRIPT"),
			RuntimeType:        pulumi.String("NODE_API"),
			RuntimeTypeVersion: pulumi.String("16.10"),
			Tags: synthetics.ScriptMonitorTagArray{
				&synthetics.ScriptMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ##### Type: `SCRIPT_BROWSER`

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		location, err := synthetics.NewPrivateLocation(ctx, "location", &synthetics.PrivateLocationArgs{
			Description:             pulumi.String("Test Description"),
			Name:                    pulumi.String("private_location"),
			VerifiedScriptExecution: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewScriptMonitor(ctx, "monitor", &synthetics.ScriptMonitorArgs{
			Status:                             pulumi.String("ENABLED"),
			Name:                               pulumi.String("script_monitor"),
			Type:                               pulumi.String("SCRIPT_BROWSER"),
			Period:                             pulumi.String("EVERY_HOUR"),
			Script:                             pulumi.String("$browser.get('https://one.newrelic.com')"),
			EnableScreenshotOnFailureAndScript: pulumi.Bool(false),
			LocationPrivates: synthetics.ScriptMonitorLocationPrivateArray{
				&synthetics.ScriptMonitorLocationPrivateArgs{
					Guid:        location.ID(),
					VsePassword: pulumi.String("secret"),
				},
			},
			RuntimeTypeVersion: pulumi.String("100"),
			RuntimeType:        pulumi.String("CHROME_BROWSER"),
			ScriptLanguage:     pulumi.String("JAVASCRIPT"),
			Tags: synthetics.ScriptMonitorTagArray{
				&synthetics.ScriptMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Synthetics monitor scripts can be imported using the `guid`, e.g.

bash

```sh $ pulumi import newrelic:synthetics/scriptMonitor:ScriptMonitor monitor <guid> ```

func GetScriptMonitor

func GetScriptMonitor(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ScriptMonitorState, opts ...pulumi.ResourceOption) (*ScriptMonitor, error)

GetScriptMonitor gets an existing ScriptMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewScriptMonitor

func NewScriptMonitor(ctx *pulumi.Context,
	name string, args *ScriptMonitorArgs, opts ...pulumi.ResourceOption) (*ScriptMonitor, error)

NewScriptMonitor registers a new resource with the given unique name, arguments, and options.

func (*ScriptMonitor) ElementType

func (*ScriptMonitor) ElementType() reflect.Type

func (*ScriptMonitor) ToScriptMonitorOutput

func (i *ScriptMonitor) ToScriptMonitorOutput() ScriptMonitorOutput

func (*ScriptMonitor) ToScriptMonitorOutputWithContext

func (i *ScriptMonitor) ToScriptMonitorOutputWithContext(ctx context.Context) ScriptMonitorOutput

type ScriptMonitorArgs

type ScriptMonitorArgs struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
	DeviceOrientation pulumi.StringPtrInput
	// Device emulation type field. Valid values are `MOBILE` and `TABLET`.
	DeviceType pulumi.StringPtrInput
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput
	// The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
	LocationPrivates ScriptMonitorLocationPrivateArrayInput
	// The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The script that the monitor runs.
	Script pulumi.StringPtrInput
	// The programing language that should execute the script.
	ScriptLanguage pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	//
	// The `SCRIPTED_BROWSER` monitor type supports the following additional argument:
	Tags ScriptMonitorTagArrayInput
	// The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
	Type pulumi.StringInput
}

The set of arguments for constructing a ScriptMonitor resource.

func (ScriptMonitorArgs) ElementType

func (ScriptMonitorArgs) ElementType() reflect.Type

type ScriptMonitorArray

type ScriptMonitorArray []ScriptMonitorInput

func (ScriptMonitorArray) ElementType

func (ScriptMonitorArray) ElementType() reflect.Type

func (ScriptMonitorArray) ToScriptMonitorArrayOutput

func (i ScriptMonitorArray) ToScriptMonitorArrayOutput() ScriptMonitorArrayOutput

func (ScriptMonitorArray) ToScriptMonitorArrayOutputWithContext

func (i ScriptMonitorArray) ToScriptMonitorArrayOutputWithContext(ctx context.Context) ScriptMonitorArrayOutput

type ScriptMonitorArrayInput

type ScriptMonitorArrayInput interface {
	pulumi.Input

	ToScriptMonitorArrayOutput() ScriptMonitorArrayOutput
	ToScriptMonitorArrayOutputWithContext(context.Context) ScriptMonitorArrayOutput
}

ScriptMonitorArrayInput is an input type that accepts ScriptMonitorArray and ScriptMonitorArrayOutput values. You can construct a concrete instance of `ScriptMonitorArrayInput` via:

ScriptMonitorArray{ ScriptMonitorArgs{...} }

type ScriptMonitorArrayOutput

type ScriptMonitorArrayOutput struct{ *pulumi.OutputState }

func (ScriptMonitorArrayOutput) ElementType

func (ScriptMonitorArrayOutput) ElementType() reflect.Type

func (ScriptMonitorArrayOutput) Index

func (ScriptMonitorArrayOutput) ToScriptMonitorArrayOutput

func (o ScriptMonitorArrayOutput) ToScriptMonitorArrayOutput() ScriptMonitorArrayOutput

func (ScriptMonitorArrayOutput) ToScriptMonitorArrayOutputWithContext

func (o ScriptMonitorArrayOutput) ToScriptMonitorArrayOutputWithContext(ctx context.Context) ScriptMonitorArrayOutput

type ScriptMonitorInput

type ScriptMonitorInput interface {
	pulumi.Input

	ToScriptMonitorOutput() ScriptMonitorOutput
	ToScriptMonitorOutputWithContext(ctx context.Context) ScriptMonitorOutput
}

type ScriptMonitorLocationPrivate

type ScriptMonitorLocationPrivate struct {
	// The unique identifier for the Synthetics private location in New Relic.
	Guid string `pulumi:"guid"`
	// The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location.
	VsePassword *string `pulumi:"vsePassword"`
}

type ScriptMonitorLocationPrivateArgs

type ScriptMonitorLocationPrivateArgs struct {
	// The unique identifier for the Synthetics private location in New Relic.
	Guid pulumi.StringInput `pulumi:"guid"`
	// The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location.
	VsePassword pulumi.StringPtrInput `pulumi:"vsePassword"`
}

func (ScriptMonitorLocationPrivateArgs) ElementType

func (ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutput

func (i ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput

func (ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutputWithContext

func (i ScriptMonitorLocationPrivateArgs) ToScriptMonitorLocationPrivateOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateOutput

type ScriptMonitorLocationPrivateArray

type ScriptMonitorLocationPrivateArray []ScriptMonitorLocationPrivateInput

func (ScriptMonitorLocationPrivateArray) ElementType

func (ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutput

func (i ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput

func (ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutputWithContext

func (i ScriptMonitorLocationPrivateArray) ToScriptMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateArrayOutput

type ScriptMonitorLocationPrivateArrayInput

type ScriptMonitorLocationPrivateArrayInput interface {
	pulumi.Input

	ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput
	ToScriptMonitorLocationPrivateArrayOutputWithContext(context.Context) ScriptMonitorLocationPrivateArrayOutput
}

ScriptMonitorLocationPrivateArrayInput is an input type that accepts ScriptMonitorLocationPrivateArray and ScriptMonitorLocationPrivateArrayOutput values. You can construct a concrete instance of `ScriptMonitorLocationPrivateArrayInput` via:

ScriptMonitorLocationPrivateArray{ ScriptMonitorLocationPrivateArgs{...} }

type ScriptMonitorLocationPrivateArrayOutput

type ScriptMonitorLocationPrivateArrayOutput struct{ *pulumi.OutputState }

func (ScriptMonitorLocationPrivateArrayOutput) ElementType

func (ScriptMonitorLocationPrivateArrayOutput) Index

func (ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutput

func (o ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutput() ScriptMonitorLocationPrivateArrayOutput

func (ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutputWithContext

func (o ScriptMonitorLocationPrivateArrayOutput) ToScriptMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateArrayOutput

type ScriptMonitorLocationPrivateInput

type ScriptMonitorLocationPrivateInput interface {
	pulumi.Input

	ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput
	ToScriptMonitorLocationPrivateOutputWithContext(context.Context) ScriptMonitorLocationPrivateOutput
}

ScriptMonitorLocationPrivateInput is an input type that accepts ScriptMonitorLocationPrivateArgs and ScriptMonitorLocationPrivateOutput values. You can construct a concrete instance of `ScriptMonitorLocationPrivateInput` via:

ScriptMonitorLocationPrivateArgs{...}

type ScriptMonitorLocationPrivateOutput

type ScriptMonitorLocationPrivateOutput struct{ *pulumi.OutputState }

func (ScriptMonitorLocationPrivateOutput) ElementType

func (ScriptMonitorLocationPrivateOutput) Guid

The unique identifier for the Synthetics private location in New Relic.

func (ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutput

func (o ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutput() ScriptMonitorLocationPrivateOutput

func (ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutputWithContext

func (o ScriptMonitorLocationPrivateOutput) ToScriptMonitorLocationPrivateOutputWithContext(ctx context.Context) ScriptMonitorLocationPrivateOutput

func (ScriptMonitorLocationPrivateOutput) VsePassword

The location's Verified Script Execution password, Only necessary if Verified Script Execution is enabled for the location.

type ScriptMonitorMap

type ScriptMonitorMap map[string]ScriptMonitorInput

func (ScriptMonitorMap) ElementType

func (ScriptMonitorMap) ElementType() reflect.Type

func (ScriptMonitorMap) ToScriptMonitorMapOutput

func (i ScriptMonitorMap) ToScriptMonitorMapOutput() ScriptMonitorMapOutput

func (ScriptMonitorMap) ToScriptMonitorMapOutputWithContext

func (i ScriptMonitorMap) ToScriptMonitorMapOutputWithContext(ctx context.Context) ScriptMonitorMapOutput

type ScriptMonitorMapInput

type ScriptMonitorMapInput interface {
	pulumi.Input

	ToScriptMonitorMapOutput() ScriptMonitorMapOutput
	ToScriptMonitorMapOutputWithContext(context.Context) ScriptMonitorMapOutput
}

ScriptMonitorMapInput is an input type that accepts ScriptMonitorMap and ScriptMonitorMapOutput values. You can construct a concrete instance of `ScriptMonitorMapInput` via:

ScriptMonitorMap{ "key": ScriptMonitorArgs{...} }

type ScriptMonitorMapOutput

type ScriptMonitorMapOutput struct{ *pulumi.OutputState }

func (ScriptMonitorMapOutput) ElementType

func (ScriptMonitorMapOutput) ElementType() reflect.Type

func (ScriptMonitorMapOutput) MapIndex

func (ScriptMonitorMapOutput) ToScriptMonitorMapOutput

func (o ScriptMonitorMapOutput) ToScriptMonitorMapOutput() ScriptMonitorMapOutput

func (ScriptMonitorMapOutput) ToScriptMonitorMapOutputWithContext

func (o ScriptMonitorMapOutput) ToScriptMonitorMapOutputWithContext(ctx context.Context) ScriptMonitorMapOutput

type ScriptMonitorOutput

type ScriptMonitorOutput struct{ *pulumi.OutputState }

func (ScriptMonitorOutput) AccountId

func (o ScriptMonitorOutput) AccountId() pulumi.IntOutput

The account in which the Synthetics monitor will be created.

func (ScriptMonitorOutput) DeviceOrientation added in v5.10.0

func (o ScriptMonitorOutput) DeviceOrientation() pulumi.StringPtrOutput

Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.

func (ScriptMonitorOutput) DeviceType added in v5.10.0

Device emulation type field. Valid values are `MOBILE` and `TABLET`.

func (ScriptMonitorOutput) ElementType

func (ScriptMonitorOutput) ElementType() reflect.Type

func (ScriptMonitorOutput) EnableScreenshotOnFailureAndScript

func (o ScriptMonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput

Capture a screenshot during job execution.

func (ScriptMonitorOutput) Guid

The unique entity identifier of the monitor in New Relic.

func (ScriptMonitorOutput) LocationPrivates

The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.

func (ScriptMonitorOutput) LocationsPublics

func (o ScriptMonitorOutput) LocationsPublics() pulumi.StringArrayOutput

The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.

func (ScriptMonitorOutput) Name

The name for the monitor.

func (ScriptMonitorOutput) Period

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

func (ScriptMonitorOutput) PeriodInMinutes added in v5.10.0

func (o ScriptMonitorOutput) PeriodInMinutes() pulumi.IntOutput

The interval in minutes at which Synthetic monitor should run.

func (ScriptMonitorOutput) RuntimeType

func (o ScriptMonitorOutput) RuntimeType() pulumi.StringPtrOutput

The runtime that the monitor will use to run jobs.

func (ScriptMonitorOutput) RuntimeTypeVersion

func (o ScriptMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput

The specific version of the runtime type selected.

func (ScriptMonitorOutput) Script

The script that the monitor runs.

func (ScriptMonitorOutput) ScriptLanguage

func (o ScriptMonitorOutput) ScriptLanguage() pulumi.StringPtrOutput

The programing language that should execute the script.

func (ScriptMonitorOutput) Status

The monitor status (ENABLED or DISABLED).

func (ScriptMonitorOutput) Tags

The tags that will be associated with the monitor. See Nested tag blocks below for details.

The `SCRIPTED_BROWSER` monitor type supports the following additional argument:

func (ScriptMonitorOutput) ToScriptMonitorOutput

func (o ScriptMonitorOutput) ToScriptMonitorOutput() ScriptMonitorOutput

func (ScriptMonitorOutput) ToScriptMonitorOutputWithContext

func (o ScriptMonitorOutput) ToScriptMonitorOutputWithContext(ctx context.Context) ScriptMonitorOutput

func (ScriptMonitorOutput) Type

The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API

type ScriptMonitorState

type ScriptMonitorState struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// Device emulation orientation field. Valid values are `LANDSCAPE` and `PORTRAIT`.
	DeviceOrientation pulumi.StringPtrInput
	// Device emulation type field. Valid values are `MOBILE` and `TABLET`.
	DeviceType pulumi.StringPtrInput
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput
	// The unique entity identifier of the monitor in New Relic.
	Guid pulumi.StringPtrInput
	// The location the monitor will run from. See Nested locationPrivate blocks below for details. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
	LocationPrivates ScriptMonitorLocationPrivateArrayInput
	// The location the monitor will run from. Check out [this page](https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/) for a list of valid public locations. The `AWS_` prefix is not needed, as the provider uses NerdGraph. **At least one of either** `locationsPublic` **or** `locationPrivate` **is required**.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringPtrInput
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntPtrInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The script that the monitor runs.
	Script pulumi.StringPtrInput
	// The programing language that should execute the script.
	ScriptLanguage pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringPtrInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	//
	// The `SCRIPTED_BROWSER` monitor type supports the following additional argument:
	Tags ScriptMonitorTagArrayInput
	// The plaintext representing the monitor script. Valid values are SCRIPT_BROWSER or SCRIPT_API
	Type pulumi.StringPtrInput
}

func (ScriptMonitorState) ElementType

func (ScriptMonitorState) ElementType() reflect.Type

type ScriptMonitorTag

type ScriptMonitorTag struct {
	// Name of the tag key.
	Key string `pulumi:"key"`
	// Values associated with the tag key.
	Values []string `pulumi:"values"`
}

type ScriptMonitorTagArgs

type ScriptMonitorTagArgs struct {
	// Name of the tag key.
	Key pulumi.StringInput `pulumi:"key"`
	// Values associated with the tag key.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (ScriptMonitorTagArgs) ElementType

func (ScriptMonitorTagArgs) ElementType() reflect.Type

func (ScriptMonitorTagArgs) ToScriptMonitorTagOutput

func (i ScriptMonitorTagArgs) ToScriptMonitorTagOutput() ScriptMonitorTagOutput

func (ScriptMonitorTagArgs) ToScriptMonitorTagOutputWithContext

func (i ScriptMonitorTagArgs) ToScriptMonitorTagOutputWithContext(ctx context.Context) ScriptMonitorTagOutput

type ScriptMonitorTagArray

type ScriptMonitorTagArray []ScriptMonitorTagInput

func (ScriptMonitorTagArray) ElementType

func (ScriptMonitorTagArray) ElementType() reflect.Type

func (ScriptMonitorTagArray) ToScriptMonitorTagArrayOutput

func (i ScriptMonitorTagArray) ToScriptMonitorTagArrayOutput() ScriptMonitorTagArrayOutput

func (ScriptMonitorTagArray) ToScriptMonitorTagArrayOutputWithContext

func (i ScriptMonitorTagArray) ToScriptMonitorTagArrayOutputWithContext(ctx context.Context) ScriptMonitorTagArrayOutput

type ScriptMonitorTagArrayInput

type ScriptMonitorTagArrayInput interface {
	pulumi.Input

	ToScriptMonitorTagArrayOutput() ScriptMonitorTagArrayOutput
	ToScriptMonitorTagArrayOutputWithContext(context.Context) ScriptMonitorTagArrayOutput
}

ScriptMonitorTagArrayInput is an input type that accepts ScriptMonitorTagArray and ScriptMonitorTagArrayOutput values. You can construct a concrete instance of `ScriptMonitorTagArrayInput` via:

ScriptMonitorTagArray{ ScriptMonitorTagArgs{...} }

type ScriptMonitorTagArrayOutput

type ScriptMonitorTagArrayOutput struct{ *pulumi.OutputState }

func (ScriptMonitorTagArrayOutput) ElementType

func (ScriptMonitorTagArrayOutput) Index

func (ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutput

func (o ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutput() ScriptMonitorTagArrayOutput

func (ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutputWithContext

func (o ScriptMonitorTagArrayOutput) ToScriptMonitorTagArrayOutputWithContext(ctx context.Context) ScriptMonitorTagArrayOutput

type ScriptMonitorTagInput

type ScriptMonitorTagInput interface {
	pulumi.Input

	ToScriptMonitorTagOutput() ScriptMonitorTagOutput
	ToScriptMonitorTagOutputWithContext(context.Context) ScriptMonitorTagOutput
}

ScriptMonitorTagInput is an input type that accepts ScriptMonitorTagArgs and ScriptMonitorTagOutput values. You can construct a concrete instance of `ScriptMonitorTagInput` via:

ScriptMonitorTagArgs{...}

type ScriptMonitorTagOutput

type ScriptMonitorTagOutput struct{ *pulumi.OutputState }

func (ScriptMonitorTagOutput) ElementType

func (ScriptMonitorTagOutput) ElementType() reflect.Type

func (ScriptMonitorTagOutput) Key

Name of the tag key.

func (ScriptMonitorTagOutput) ToScriptMonitorTagOutput

func (o ScriptMonitorTagOutput) ToScriptMonitorTagOutput() ScriptMonitorTagOutput

func (ScriptMonitorTagOutput) ToScriptMonitorTagOutputWithContext

func (o ScriptMonitorTagOutput) ToScriptMonitorTagOutputWithContext(ctx context.Context) ScriptMonitorTagOutput

func (ScriptMonitorTagOutput) Values

Values associated with the tag key.

type SecureCredential

type SecureCredential struct {
	pulumi.CustomResourceState

	// The New Relic account ID where you want to create the secure credential.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// The secure credential's description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
	// key to the underlying API.
	Key pulumi.StringOutput `pulumi:"key"`
	// The time the secure credential was last updated.
	LastUpdated pulumi.StringOutput `pulumi:"lastUpdated"`
	// The secure credential's value.
	Value pulumi.StringOutput `pulumi:"value"`
}

Use this resource to create and manage New Relic Synthetic secure credentials.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewSecureCredential(ctx, "foo", &synthetics.SecureCredentialArgs{
			Key:         pulumi.String("MY_KEY"),
			Value:       pulumi.String("My value"),
			Description: pulumi.String("My description"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A Synthetics secure credential can be imported using its `key`:

```sh $ pulumi import newrelic:synthetics/secureCredential:SecureCredential foo MY_KEY ```

func GetSecureCredential

func GetSecureCredential(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SecureCredentialState, opts ...pulumi.ResourceOption) (*SecureCredential, error)

GetSecureCredential gets an existing SecureCredential resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSecureCredential

func NewSecureCredential(ctx *pulumi.Context,
	name string, args *SecureCredentialArgs, opts ...pulumi.ResourceOption) (*SecureCredential, error)

NewSecureCredential registers a new resource with the given unique name, arguments, and options.

func (*SecureCredential) ElementType

func (*SecureCredential) ElementType() reflect.Type

func (*SecureCredential) ToSecureCredentialOutput

func (i *SecureCredential) ToSecureCredentialOutput() SecureCredentialOutput

func (*SecureCredential) ToSecureCredentialOutputWithContext

func (i *SecureCredential) ToSecureCredentialOutputWithContext(ctx context.Context) SecureCredentialOutput

type SecureCredentialArgs

type SecureCredentialArgs struct {
	// The New Relic account ID where you want to create the secure credential.
	AccountId pulumi.IntPtrInput
	// The secure credential's description.
	Description pulumi.StringPtrInput
	// The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
	// key to the underlying API.
	Key pulumi.StringInput
	// The time the secure credential was last updated.
	LastUpdated pulumi.StringPtrInput
	// The secure credential's value.
	Value pulumi.StringInput
}

The set of arguments for constructing a SecureCredential resource.

func (SecureCredentialArgs) ElementType

func (SecureCredentialArgs) ElementType() reflect.Type

type SecureCredentialArray

type SecureCredentialArray []SecureCredentialInput

func (SecureCredentialArray) ElementType

func (SecureCredentialArray) ElementType() reflect.Type

func (SecureCredentialArray) ToSecureCredentialArrayOutput

func (i SecureCredentialArray) ToSecureCredentialArrayOutput() SecureCredentialArrayOutput

func (SecureCredentialArray) ToSecureCredentialArrayOutputWithContext

func (i SecureCredentialArray) ToSecureCredentialArrayOutputWithContext(ctx context.Context) SecureCredentialArrayOutput

type SecureCredentialArrayInput

type SecureCredentialArrayInput interface {
	pulumi.Input

	ToSecureCredentialArrayOutput() SecureCredentialArrayOutput
	ToSecureCredentialArrayOutputWithContext(context.Context) SecureCredentialArrayOutput
}

SecureCredentialArrayInput is an input type that accepts SecureCredentialArray and SecureCredentialArrayOutput values. You can construct a concrete instance of `SecureCredentialArrayInput` via:

SecureCredentialArray{ SecureCredentialArgs{...} }

type SecureCredentialArrayOutput

type SecureCredentialArrayOutput struct{ *pulumi.OutputState }

func (SecureCredentialArrayOutput) ElementType

func (SecureCredentialArrayOutput) Index

func (SecureCredentialArrayOutput) ToSecureCredentialArrayOutput

func (o SecureCredentialArrayOutput) ToSecureCredentialArrayOutput() SecureCredentialArrayOutput

func (SecureCredentialArrayOutput) ToSecureCredentialArrayOutputWithContext

func (o SecureCredentialArrayOutput) ToSecureCredentialArrayOutputWithContext(ctx context.Context) SecureCredentialArrayOutput

type SecureCredentialInput

type SecureCredentialInput interface {
	pulumi.Input

	ToSecureCredentialOutput() SecureCredentialOutput
	ToSecureCredentialOutputWithContext(ctx context.Context) SecureCredentialOutput
}

type SecureCredentialMap

type SecureCredentialMap map[string]SecureCredentialInput

func (SecureCredentialMap) ElementType

func (SecureCredentialMap) ElementType() reflect.Type

func (SecureCredentialMap) ToSecureCredentialMapOutput

func (i SecureCredentialMap) ToSecureCredentialMapOutput() SecureCredentialMapOutput

func (SecureCredentialMap) ToSecureCredentialMapOutputWithContext

func (i SecureCredentialMap) ToSecureCredentialMapOutputWithContext(ctx context.Context) SecureCredentialMapOutput

type SecureCredentialMapInput

type SecureCredentialMapInput interface {
	pulumi.Input

	ToSecureCredentialMapOutput() SecureCredentialMapOutput
	ToSecureCredentialMapOutputWithContext(context.Context) SecureCredentialMapOutput
}

SecureCredentialMapInput is an input type that accepts SecureCredentialMap and SecureCredentialMapOutput values. You can construct a concrete instance of `SecureCredentialMapInput` via:

SecureCredentialMap{ "key": SecureCredentialArgs{...} }

type SecureCredentialMapOutput

type SecureCredentialMapOutput struct{ *pulumi.OutputState }

func (SecureCredentialMapOutput) ElementType

func (SecureCredentialMapOutput) ElementType() reflect.Type

func (SecureCredentialMapOutput) MapIndex

func (SecureCredentialMapOutput) ToSecureCredentialMapOutput

func (o SecureCredentialMapOutput) ToSecureCredentialMapOutput() SecureCredentialMapOutput

func (SecureCredentialMapOutput) ToSecureCredentialMapOutputWithContext

func (o SecureCredentialMapOutput) ToSecureCredentialMapOutputWithContext(ctx context.Context) SecureCredentialMapOutput

type SecureCredentialOutput

type SecureCredentialOutput struct{ *pulumi.OutputState }

func (SecureCredentialOutput) AccountId

func (o SecureCredentialOutput) AccountId() pulumi.IntOutput

The New Relic account ID where you want to create the secure credential.

func (SecureCredentialOutput) Description

The secure credential's description.

func (SecureCredentialOutput) ElementType

func (SecureCredentialOutput) ElementType() reflect.Type

func (SecureCredentialOutput) Key

The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased key to the underlying API.

func (SecureCredentialOutput) LastUpdated

func (o SecureCredentialOutput) LastUpdated() pulumi.StringOutput

The time the secure credential was last updated.

func (SecureCredentialOutput) ToSecureCredentialOutput

func (o SecureCredentialOutput) ToSecureCredentialOutput() SecureCredentialOutput

func (SecureCredentialOutput) ToSecureCredentialOutputWithContext

func (o SecureCredentialOutput) ToSecureCredentialOutputWithContext(ctx context.Context) SecureCredentialOutput

func (SecureCredentialOutput) Value

The secure credential's value.

type SecureCredentialState

type SecureCredentialState struct {
	// The New Relic account ID where you want to create the secure credential.
	AccountId pulumi.IntPtrInput
	// The secure credential's description.
	Description pulumi.StringPtrInput
	// The secure credential's key name. Regardless of the case used in the configuration, the provider will provide an upcased
	// key to the underlying API.
	Key pulumi.StringPtrInput
	// The time the secure credential was last updated.
	LastUpdated pulumi.StringPtrInput
	// The secure credential's value.
	Value pulumi.StringPtrInput
}

func (SecureCredentialState) ElementType

func (SecureCredentialState) ElementType() reflect.Type

type StepMonitor

type StepMonitor struct {
	pulumi.CustomResourceState

	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntOutput `pulumi:"accountId"`
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrOutput `pulumi:"enableScreenshotOnFailureAndScript"`
	// The unique entity identifier of the monitor in New Relic.
	Guid pulumi.StringOutput `pulumi:"guid"`
	// The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details.
	LocationPrivates StepMonitorLocationPrivateArrayOutput `pulumi:"locationPrivates"`
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayOutput `pulumi:"locationsPublics"`
	// The name for the monitor.
	Name pulumi.StringOutput `pulumi:"name"`
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringOutput `pulumi:"period"`
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntOutput `pulumi:"periodInMinutes"`
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrOutput `pulumi:"runtimeType"`
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrOutput `pulumi:"runtimeTypeVersion"`
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringOutput `pulumi:"status"`
	// The steps that make up the script the monitor will run. See Nested steps blocks below for details.
	Steps StepMonitorStepArrayOutput `pulumi:"steps"`
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	Tags StepMonitorTagArrayOutput `pulumi:"tags"`
}

Use this resource to create, update, and delete a Synthetics Step monitor in New Relic.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synthetics.NewStepMonitor(ctx, "foo", &synthetics.StepMonitorArgs{
			Name:                               pulumi.String("Sample Step Monitor"),
			EnableScreenshotOnFailureAndScript: pulumi.Bool(true),
			LocationsPublics: pulumi.StringArray{
				pulumi.String("US_EAST_1"),
				pulumi.String("US_EAST_2"),
			},
			Period:             pulumi.String("EVERY_6_HOURS"),
			Status:             pulumi.String("ENABLED"),
			RuntimeType:        pulumi.String("CHROME_BROWSER"),
			RuntimeTypeVersion: pulumi.String("100"),
			Steps: synthetics.StepMonitorStepArray{
				&synthetics.StepMonitorStepArgs{
					Ordinal: pulumi.Int(0),
					Type:    pulumi.String("NAVIGATE"),
					Values: pulumi.StringArray{
						pulumi.String("https://www.newrelic.com"),
					},
				},
			},
			Tags: synthetics.StepMonitorTagArray{
				&synthetics.StepMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` See additional examples.

## Additional Examples

### Create a monitor with a private location

The below example shows how you can define a private location and attach it to a monitor.

> **NOTE:** It can take up to 10 minutes for a private location to become available.

```go package main

import (

"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/synthetics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := synthetics.NewPrivateLocation(ctx, "foo", &synthetics.PrivateLocationArgs{
			Name:                    pulumi.String("Sample Private Location"),
			Description:             pulumi.String("Sample Private Location Description"),
			VerifiedScriptExecution: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = synthetics.NewStepMonitor(ctx, "foo", &synthetics.StepMonitorArgs{
			Name:   pulumi.String("Sample Step Monitor"),
			Period: pulumi.String("EVERY_6_HOURS"),
			Status: pulumi.String("ENABLED"),
			LocationPrivates: synthetics.StepMonitorLocationPrivateArray{
				&synthetics.StepMonitorLocationPrivateArgs{
					Guid:        foo.ID(),
					VsePassword: pulumi.String("secret"),
				},
			},
			Steps: synthetics.StepMonitorStepArray{
				&synthetics.StepMonitorStepArgs{
					Ordinal: pulumi.Int(0),
					Type:    pulumi.String("NAVIGATE"),
					Values: pulumi.StringArray{
						pulumi.String("https://google.com"),
					},
				},
			},
			Tags: synthetics.StepMonitorTagArray{
				&synthetics.StepMonitorTagArgs{
					Key: pulumi.String("some_key"),
					Values: pulumi.StringArray{
						pulumi.String("some_value"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

A step monitor can be imported using its GUID, using the following command.

bash

```sh $ pulumi import newrelic:synthetics/stepMonitor:StepMonitor monitor <guid> ```

func GetStepMonitor

func GetStepMonitor(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StepMonitorState, opts ...pulumi.ResourceOption) (*StepMonitor, error)

GetStepMonitor gets an existing StepMonitor resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStepMonitor

func NewStepMonitor(ctx *pulumi.Context,
	name string, args *StepMonitorArgs, opts ...pulumi.ResourceOption) (*StepMonitor, error)

NewStepMonitor registers a new resource with the given unique name, arguments, and options.

func (*StepMonitor) ElementType

func (*StepMonitor) ElementType() reflect.Type

func (*StepMonitor) ToStepMonitorOutput

func (i *StepMonitor) ToStepMonitorOutput() StepMonitorOutput

func (*StepMonitor) ToStepMonitorOutputWithContext

func (i *StepMonitor) ToStepMonitorOutputWithContext(ctx context.Context) StepMonitorOutput

type StepMonitorArgs

type StepMonitorArgs struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput
	// The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details.
	LocationPrivates StepMonitorLocationPrivateArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringInput
	// The steps that make up the script the monitor will run. See Nested steps blocks below for details.
	Steps StepMonitorStepArrayInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	Tags StepMonitorTagArrayInput
}

The set of arguments for constructing a StepMonitor resource.

func (StepMonitorArgs) ElementType

func (StepMonitorArgs) ElementType() reflect.Type

type StepMonitorArray

type StepMonitorArray []StepMonitorInput

func (StepMonitorArray) ElementType

func (StepMonitorArray) ElementType() reflect.Type

func (StepMonitorArray) ToStepMonitorArrayOutput

func (i StepMonitorArray) ToStepMonitorArrayOutput() StepMonitorArrayOutput

func (StepMonitorArray) ToStepMonitorArrayOutputWithContext

func (i StepMonitorArray) ToStepMonitorArrayOutputWithContext(ctx context.Context) StepMonitorArrayOutput

type StepMonitorArrayInput

type StepMonitorArrayInput interface {
	pulumi.Input

	ToStepMonitorArrayOutput() StepMonitorArrayOutput
	ToStepMonitorArrayOutputWithContext(context.Context) StepMonitorArrayOutput
}

StepMonitorArrayInput is an input type that accepts StepMonitorArray and StepMonitorArrayOutput values. You can construct a concrete instance of `StepMonitorArrayInput` via:

StepMonitorArray{ StepMonitorArgs{...} }

type StepMonitorArrayOutput

type StepMonitorArrayOutput struct{ *pulumi.OutputState }

func (StepMonitorArrayOutput) ElementType

func (StepMonitorArrayOutput) ElementType() reflect.Type

func (StepMonitorArrayOutput) Index

func (StepMonitorArrayOutput) ToStepMonitorArrayOutput

func (o StepMonitorArrayOutput) ToStepMonitorArrayOutput() StepMonitorArrayOutput

func (StepMonitorArrayOutput) ToStepMonitorArrayOutputWithContext

func (o StepMonitorArrayOutput) ToStepMonitorArrayOutputWithContext(ctx context.Context) StepMonitorArrayOutput

type StepMonitorInput

type StepMonitorInput interface {
	pulumi.Input

	ToStepMonitorOutput() StepMonitorOutput
	ToStepMonitorOutputWithContext(ctx context.Context) StepMonitorOutput
}

type StepMonitorLocationPrivate

type StepMonitorLocationPrivate struct {
	// The unique identifier for the Synthetics private location in New Relic.
	Guid string `pulumi:"guid"`
	// The location's Verified Script Execution password, only necessary if Verified Script Execution is enabled for the location.
	VsePassword *string `pulumi:"vsePassword"`
}

type StepMonitorLocationPrivateArgs

type StepMonitorLocationPrivateArgs struct {
	// The unique identifier for the Synthetics private location in New Relic.
	Guid pulumi.StringInput `pulumi:"guid"`
	// The location's Verified Script Execution password, only necessary if Verified Script Execution is enabled for the location.
	VsePassword pulumi.StringPtrInput `pulumi:"vsePassword"`
}

func (StepMonitorLocationPrivateArgs) ElementType

func (StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutput

func (i StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput

func (StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutputWithContext

func (i StepMonitorLocationPrivateArgs) ToStepMonitorLocationPrivateOutputWithContext(ctx context.Context) StepMonitorLocationPrivateOutput

type StepMonitorLocationPrivateArray

type StepMonitorLocationPrivateArray []StepMonitorLocationPrivateInput

func (StepMonitorLocationPrivateArray) ElementType

func (StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutput

func (i StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput

func (StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutputWithContext

func (i StepMonitorLocationPrivateArray) ToStepMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) StepMonitorLocationPrivateArrayOutput

type StepMonitorLocationPrivateArrayInput

type StepMonitorLocationPrivateArrayInput interface {
	pulumi.Input

	ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput
	ToStepMonitorLocationPrivateArrayOutputWithContext(context.Context) StepMonitorLocationPrivateArrayOutput
}

StepMonitorLocationPrivateArrayInput is an input type that accepts StepMonitorLocationPrivateArray and StepMonitorLocationPrivateArrayOutput values. You can construct a concrete instance of `StepMonitorLocationPrivateArrayInput` via:

StepMonitorLocationPrivateArray{ StepMonitorLocationPrivateArgs{...} }

type StepMonitorLocationPrivateArrayOutput

type StepMonitorLocationPrivateArrayOutput struct{ *pulumi.OutputState }

func (StepMonitorLocationPrivateArrayOutput) ElementType

func (StepMonitorLocationPrivateArrayOutput) Index

func (StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutput

func (o StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutput() StepMonitorLocationPrivateArrayOutput

func (StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutputWithContext

func (o StepMonitorLocationPrivateArrayOutput) ToStepMonitorLocationPrivateArrayOutputWithContext(ctx context.Context) StepMonitorLocationPrivateArrayOutput

type StepMonitorLocationPrivateInput

type StepMonitorLocationPrivateInput interface {
	pulumi.Input

	ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput
	ToStepMonitorLocationPrivateOutputWithContext(context.Context) StepMonitorLocationPrivateOutput
}

StepMonitorLocationPrivateInput is an input type that accepts StepMonitorLocationPrivateArgs and StepMonitorLocationPrivateOutput values. You can construct a concrete instance of `StepMonitorLocationPrivateInput` via:

StepMonitorLocationPrivateArgs{...}

type StepMonitorLocationPrivateOutput

type StepMonitorLocationPrivateOutput struct{ *pulumi.OutputState }

func (StepMonitorLocationPrivateOutput) ElementType

func (StepMonitorLocationPrivateOutput) Guid

The unique identifier for the Synthetics private location in New Relic.

func (StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutput

func (o StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutput() StepMonitorLocationPrivateOutput

func (StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutputWithContext

func (o StepMonitorLocationPrivateOutput) ToStepMonitorLocationPrivateOutputWithContext(ctx context.Context) StepMonitorLocationPrivateOutput

func (StepMonitorLocationPrivateOutput) VsePassword

The location's Verified Script Execution password, only necessary if Verified Script Execution is enabled for the location.

type StepMonitorMap

type StepMonitorMap map[string]StepMonitorInput

func (StepMonitorMap) ElementType

func (StepMonitorMap) ElementType() reflect.Type

func (StepMonitorMap) ToStepMonitorMapOutput

func (i StepMonitorMap) ToStepMonitorMapOutput() StepMonitorMapOutput

func (StepMonitorMap) ToStepMonitorMapOutputWithContext

func (i StepMonitorMap) ToStepMonitorMapOutputWithContext(ctx context.Context) StepMonitorMapOutput

type StepMonitorMapInput

type StepMonitorMapInput interface {
	pulumi.Input

	ToStepMonitorMapOutput() StepMonitorMapOutput
	ToStepMonitorMapOutputWithContext(context.Context) StepMonitorMapOutput
}

StepMonitorMapInput is an input type that accepts StepMonitorMap and StepMonitorMapOutput values. You can construct a concrete instance of `StepMonitorMapInput` via:

StepMonitorMap{ "key": StepMonitorArgs{...} }

type StepMonitorMapOutput

type StepMonitorMapOutput struct{ *pulumi.OutputState }

func (StepMonitorMapOutput) ElementType

func (StepMonitorMapOutput) ElementType() reflect.Type

func (StepMonitorMapOutput) MapIndex

func (StepMonitorMapOutput) ToStepMonitorMapOutput

func (o StepMonitorMapOutput) ToStepMonitorMapOutput() StepMonitorMapOutput

func (StepMonitorMapOutput) ToStepMonitorMapOutputWithContext

func (o StepMonitorMapOutput) ToStepMonitorMapOutputWithContext(ctx context.Context) StepMonitorMapOutput

type StepMonitorOutput

type StepMonitorOutput struct{ *pulumi.OutputState }

func (StepMonitorOutput) AccountId

func (o StepMonitorOutput) AccountId() pulumi.IntOutput

The account in which the Synthetics monitor will be created.

func (StepMonitorOutput) ElementType

func (StepMonitorOutput) ElementType() reflect.Type

func (StepMonitorOutput) EnableScreenshotOnFailureAndScript

func (o StepMonitorOutput) EnableScreenshotOnFailureAndScript() pulumi.BoolPtrOutput

Capture a screenshot during job execution.

func (StepMonitorOutput) Guid

The unique entity identifier of the monitor in New Relic.

func (StepMonitorOutput) LocationPrivates

The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details.

func (StepMonitorOutput) LocationsPublics

func (o StepMonitorOutput) LocationsPublics() pulumi.StringArrayOutput

The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.

func (StepMonitorOutput) Name

The name for the monitor.

func (StepMonitorOutput) Period

The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.

func (StepMonitorOutput) PeriodInMinutes added in v5.10.0

func (o StepMonitorOutput) PeriodInMinutes() pulumi.IntOutput

The interval in minutes at which Synthetic monitor should run.

func (StepMonitorOutput) RuntimeType added in v5.22.0

func (o StepMonitorOutput) RuntimeType() pulumi.StringPtrOutput

The runtime that the monitor will use to run jobs.

func (StepMonitorOutput) RuntimeTypeVersion added in v5.22.0

func (o StepMonitorOutput) RuntimeTypeVersion() pulumi.StringPtrOutput

The specific version of the runtime type selected.

> **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.

func (StepMonitorOutput) Status

The monitor status (ENABLED or DISABLED).

func (StepMonitorOutput) Steps

The steps that make up the script the monitor will run. See Nested steps blocks below for details.

func (StepMonitorOutput) Tags

The tags that will be associated with the monitor. See Nested tag blocks below for details.

func (StepMonitorOutput) ToStepMonitorOutput

func (o StepMonitorOutput) ToStepMonitorOutput() StepMonitorOutput

func (StepMonitorOutput) ToStepMonitorOutputWithContext

func (o StepMonitorOutput) ToStepMonitorOutputWithContext(ctx context.Context) StepMonitorOutput

type StepMonitorState

type StepMonitorState struct {
	// The account in which the Synthetics monitor will be created.
	AccountId pulumi.IntPtrInput
	// Capture a screenshot during job execution.
	EnableScreenshotOnFailureAndScript pulumi.BoolPtrInput
	// The unique entity identifier of the monitor in New Relic.
	Guid pulumi.StringPtrInput
	// The location the monitor will run from. At least one of `locationsPublic` or `locationPrivate` is required. See Nested locationsPrivate blocks below for details.
	LocationPrivates StepMonitorLocationPrivateArrayInput
	// The location the monitor will run from. Valid public locations are https://docs.newrelic.com/docs/synthetics/synthetic-monitoring/administration/synthetic-public-minion-ips/. You don't need the `AWS_` prefix as the provider uses NerdGraph. At least one of either `locationsPublic` or `locationPrivate` is required.
	LocationsPublics pulumi.StringArrayInput
	// The name for the monitor.
	Name pulumi.StringPtrInput
	// The interval at which this monitor should run. Valid values are EVERY_MINUTE, EVERY_5_MINUTES, EVERY_10_MINUTES, EVERY_15_MINUTES, EVERY_30_MINUTES, EVERY_HOUR, EVERY_6_HOURS, EVERY_12_HOURS, or EVERY_DAY.
	Period pulumi.StringPtrInput
	// The interval in minutes at which Synthetic monitor should run.
	PeriodInMinutes pulumi.IntPtrInput
	// The runtime that the monitor will use to run jobs.
	RuntimeType pulumi.StringPtrInput
	// The specific version of the runtime type selected.
	//
	// > **NOTE:** Currently, the values of `runtimeType` and `runtimeTypeVersion` supported by this resource are `CHROME_BROWSER` and `100` respectively. In order to run the monitor in the new runtime, both `runtimeType` and `runtimeTypeVersion` need to be specified; however, specifying neither of these attributes would set this monitor to use the legacy runtime. It may also be noted that the runtime opted for would only be effective with private locations. For public locations, all traffic has been shifted to the new runtime, irrespective of the selection made.
	RuntimeTypeVersion pulumi.StringPtrInput
	// The monitor status (ENABLED or DISABLED).
	Status pulumi.StringPtrInput
	// The steps that make up the script the monitor will run. See Nested steps blocks below for details.
	Steps StepMonitorStepArrayInput
	// The tags that will be associated with the monitor. See Nested tag blocks below for details.
	Tags StepMonitorTagArrayInput
}

func (StepMonitorState) ElementType

func (StepMonitorState) ElementType() reflect.Type

type StepMonitorStep

type StepMonitorStep struct {
	// The position of the step within the script ranging from 0-100.
	Ordinal int `pulumi:"ordinal"`
	// Name of the tag key. Valid values are ASSERT_ELEMENT, ASSERT_MODAL, ASSERT_TEXT, ASSERT_TITLE, CLICK_ELEMENT, DISMISS_MODAL, DOUBLE_CLICK_ELEMENT, HOVER_ELEMENT, NAVIGATE, SECURE_TEXT_ENTRY, SELECT_ELEMENT, TEXT_ENTRY.
	Type string `pulumi:"type"`
	// The metadata values related to the step.
	Values []string `pulumi:"values"`
}

type StepMonitorStepArgs

type StepMonitorStepArgs struct {
	// The position of the step within the script ranging from 0-100.
	Ordinal pulumi.IntInput `pulumi:"ordinal"`
	// Name of the tag key. Valid values are ASSERT_ELEMENT, ASSERT_MODAL, ASSERT_TEXT, ASSERT_TITLE, CLICK_ELEMENT, DISMISS_MODAL, DOUBLE_CLICK_ELEMENT, HOVER_ELEMENT, NAVIGATE, SECURE_TEXT_ENTRY, SELECT_ELEMENT, TEXT_ENTRY.
	Type pulumi.StringInput `pulumi:"type"`
	// The metadata values related to the step.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (StepMonitorStepArgs) ElementType

func (StepMonitorStepArgs) ElementType() reflect.Type

func (StepMonitorStepArgs) ToStepMonitorStepOutput

func (i StepMonitorStepArgs) ToStepMonitorStepOutput() StepMonitorStepOutput

func (StepMonitorStepArgs) ToStepMonitorStepOutputWithContext

func (i StepMonitorStepArgs) ToStepMonitorStepOutputWithContext(ctx context.Context) StepMonitorStepOutput

type StepMonitorStepArray

type StepMonitorStepArray []StepMonitorStepInput

func (StepMonitorStepArray) ElementType

func (StepMonitorStepArray) ElementType() reflect.Type

func (StepMonitorStepArray) ToStepMonitorStepArrayOutput

func (i StepMonitorStepArray) ToStepMonitorStepArrayOutput() StepMonitorStepArrayOutput

func (StepMonitorStepArray) ToStepMonitorStepArrayOutputWithContext

func (i StepMonitorStepArray) ToStepMonitorStepArrayOutputWithContext(ctx context.Context) StepMonitorStepArrayOutput

type StepMonitorStepArrayInput

type StepMonitorStepArrayInput interface {
	pulumi.Input

	ToStepMonitorStepArrayOutput() StepMonitorStepArrayOutput
	ToStepMonitorStepArrayOutputWithContext(context.Context) StepMonitorStepArrayOutput
}

StepMonitorStepArrayInput is an input type that accepts StepMonitorStepArray and StepMonitorStepArrayOutput values. You can construct a concrete instance of `StepMonitorStepArrayInput` via:

StepMonitorStepArray{ StepMonitorStepArgs{...} }

type StepMonitorStepArrayOutput

type StepMonitorStepArrayOutput struct{ *pulumi.OutputState }

func (StepMonitorStepArrayOutput) ElementType

func (StepMonitorStepArrayOutput) ElementType() reflect.Type

func (StepMonitorStepArrayOutput) Index

func (StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutput

func (o StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutput() StepMonitorStepArrayOutput

func (StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutputWithContext

func (o StepMonitorStepArrayOutput) ToStepMonitorStepArrayOutputWithContext(ctx context.Context) StepMonitorStepArrayOutput

type StepMonitorStepInput

type StepMonitorStepInput interface {
	pulumi.Input

	ToStepMonitorStepOutput() StepMonitorStepOutput
	ToStepMonitorStepOutputWithContext(context.Context) StepMonitorStepOutput
}

StepMonitorStepInput is an input type that accepts StepMonitorStepArgs and StepMonitorStepOutput values. You can construct a concrete instance of `StepMonitorStepInput` via:

StepMonitorStepArgs{...}

type StepMonitorStepOutput

type StepMonitorStepOutput struct{ *pulumi.OutputState }

func (StepMonitorStepOutput) ElementType

func (StepMonitorStepOutput) ElementType() reflect.Type

func (StepMonitorStepOutput) Ordinal

The position of the step within the script ranging from 0-100.

func (StepMonitorStepOutput) ToStepMonitorStepOutput

func (o StepMonitorStepOutput) ToStepMonitorStepOutput() StepMonitorStepOutput

func (StepMonitorStepOutput) ToStepMonitorStepOutputWithContext

func (o StepMonitorStepOutput) ToStepMonitorStepOutputWithContext(ctx context.Context) StepMonitorStepOutput

func (StepMonitorStepOutput) Type

Name of the tag key. Valid values are ASSERT_ELEMENT, ASSERT_MODAL, ASSERT_TEXT, ASSERT_TITLE, CLICK_ELEMENT, DISMISS_MODAL, DOUBLE_CLICK_ELEMENT, HOVER_ELEMENT, NAVIGATE, SECURE_TEXT_ENTRY, SELECT_ELEMENT, TEXT_ENTRY.

func (StepMonitorStepOutput) Values

The metadata values related to the step.

type StepMonitorTag

type StepMonitorTag struct {
	// Name of the tag key.
	Key string `pulumi:"key"`
	// Values associated with the tag key.
	Values []string `pulumi:"values"`
}

type StepMonitorTagArgs

type StepMonitorTagArgs struct {
	// Name of the tag key.
	Key pulumi.StringInput `pulumi:"key"`
	// Values associated with the tag key.
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (StepMonitorTagArgs) ElementType

func (StepMonitorTagArgs) ElementType() reflect.Type

func (StepMonitorTagArgs) ToStepMonitorTagOutput

func (i StepMonitorTagArgs) ToStepMonitorTagOutput() StepMonitorTagOutput

func (StepMonitorTagArgs) ToStepMonitorTagOutputWithContext

func (i StepMonitorTagArgs) ToStepMonitorTagOutputWithContext(ctx context.Context) StepMonitorTagOutput

type StepMonitorTagArray

type StepMonitorTagArray []StepMonitorTagInput

func (StepMonitorTagArray) ElementType

func (StepMonitorTagArray) ElementType() reflect.Type

func (StepMonitorTagArray) ToStepMonitorTagArrayOutput

func (i StepMonitorTagArray) ToStepMonitorTagArrayOutput() StepMonitorTagArrayOutput

func (StepMonitorTagArray) ToStepMonitorTagArrayOutputWithContext

func (i StepMonitorTagArray) ToStepMonitorTagArrayOutputWithContext(ctx context.Context) StepMonitorTagArrayOutput

type StepMonitorTagArrayInput

type StepMonitorTagArrayInput interface {
	pulumi.Input

	ToStepMonitorTagArrayOutput() StepMonitorTagArrayOutput
	ToStepMonitorTagArrayOutputWithContext(context.Context) StepMonitorTagArrayOutput
}

StepMonitorTagArrayInput is an input type that accepts StepMonitorTagArray and StepMonitorTagArrayOutput values. You can construct a concrete instance of `StepMonitorTagArrayInput` via:

StepMonitorTagArray{ StepMonitorTagArgs{...} }

type StepMonitorTagArrayOutput

type StepMonitorTagArrayOutput struct{ *pulumi.OutputState }

func (StepMonitorTagArrayOutput) ElementType

func (StepMonitorTagArrayOutput) ElementType() reflect.Type

func (StepMonitorTagArrayOutput) Index

func (StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutput

func (o StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutput() StepMonitorTagArrayOutput

func (StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutputWithContext

func (o StepMonitorTagArrayOutput) ToStepMonitorTagArrayOutputWithContext(ctx context.Context) StepMonitorTagArrayOutput

type StepMonitorTagInput

type StepMonitorTagInput interface {
	pulumi.Input

	ToStepMonitorTagOutput() StepMonitorTagOutput
	ToStepMonitorTagOutputWithContext(context.Context) StepMonitorTagOutput
}

StepMonitorTagInput is an input type that accepts StepMonitorTagArgs and StepMonitorTagOutput values. You can construct a concrete instance of `StepMonitorTagInput` via:

StepMonitorTagArgs{...}

type StepMonitorTagOutput

type StepMonitorTagOutput struct{ *pulumi.OutputState }

func (StepMonitorTagOutput) ElementType

func (StepMonitorTagOutput) ElementType() reflect.Type

func (StepMonitorTagOutput) Key

Name of the tag key.

func (StepMonitorTagOutput) ToStepMonitorTagOutput

func (o StepMonitorTagOutput) ToStepMonitorTagOutput() StepMonitorTagOutput

func (StepMonitorTagOutput) ToStepMonitorTagOutputWithContext

func (o StepMonitorTagOutput) ToStepMonitorTagOutputWithContext(ctx context.Context) StepMonitorTagOutput

func (StepMonitorTagOutput) Values

Values associated with the tag key.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL