opsgenie

package
v4.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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 ServiceObject

type ServiceObject struct {
	pulumi.CustomResourceState

	// The custom url for a custom region.
	CustomUrl pulumi.StringPtrOutput `pulumi:"customUrl"`
	// The name for the Opsgenie service.
	Name pulumi.StringOutput `pulumi:"name"`
	// The Opsgenie API key for the Opsgenie service. Note: Since the Datadog API never returns Opsgenie API keys, it is impossible to detect drifts to have it destroyed and recreated.
	OpsgenieApiKey pulumi.StringOutput `pulumi:"opsgenieApiKey"`
	// The region for the Opsgenie service. Valid values are `us`, `eu`, `custom`.
	Region pulumi.StringOutput `pulumi:"region"`
}

Resource for interacting with Datadog Opsgenie Service API.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/opsgenie"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := opsgenie.NewServiceObject(ctx, "fake_service_name", &opsgenie.ServiceObjectArgs{
			Name:           pulumi.String("fake_service_name"),
			OpsgenieApiKey: pulumi.String("00000000-0000-0000-0000-000000000000"),
			Region:         pulumi.String("us"),
		})
		if err != nil {
			return err
		}
		_, err = opsgenie.NewServiceObject(ctx, "fake_service_name_2", &opsgenie.ServiceObjectArgs{
			Name:           pulumi.String("fake_service_name_2"),
			OpsgenieApiKey: pulumi.String("11111111-1111-1111-1111-111111111111"),
			Region:         pulumi.String("eu"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetServiceObject

func GetServiceObject(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServiceObjectState, opts ...pulumi.ResourceOption) (*ServiceObject, error)

GetServiceObject gets an existing ServiceObject 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 NewServiceObject

func NewServiceObject(ctx *pulumi.Context,
	name string, args *ServiceObjectArgs, opts ...pulumi.ResourceOption) (*ServiceObject, error)

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

func (*ServiceObject) ElementType

func (*ServiceObject) ElementType() reflect.Type

func (*ServiceObject) ToServiceObjectOutput

func (i *ServiceObject) ToServiceObjectOutput() ServiceObjectOutput

func (*ServiceObject) ToServiceObjectOutputWithContext

func (i *ServiceObject) ToServiceObjectOutputWithContext(ctx context.Context) ServiceObjectOutput

type ServiceObjectArgs

type ServiceObjectArgs struct {
	// The custom url for a custom region.
	CustomUrl pulumi.StringPtrInput
	// The name for the Opsgenie service.
	Name pulumi.StringInput
	// The Opsgenie API key for the Opsgenie service. Note: Since the Datadog API never returns Opsgenie API keys, it is impossible to detect drifts to have it destroyed and recreated.
	OpsgenieApiKey pulumi.StringInput
	// The region for the Opsgenie service. Valid values are `us`, `eu`, `custom`.
	Region pulumi.StringInput
}

The set of arguments for constructing a ServiceObject resource.

func (ServiceObjectArgs) ElementType

func (ServiceObjectArgs) ElementType() reflect.Type

type ServiceObjectArray

type ServiceObjectArray []ServiceObjectInput

func (ServiceObjectArray) ElementType

func (ServiceObjectArray) ElementType() reflect.Type

func (ServiceObjectArray) ToServiceObjectArrayOutput

func (i ServiceObjectArray) ToServiceObjectArrayOutput() ServiceObjectArrayOutput

func (ServiceObjectArray) ToServiceObjectArrayOutputWithContext

func (i ServiceObjectArray) ToServiceObjectArrayOutputWithContext(ctx context.Context) ServiceObjectArrayOutput

type ServiceObjectArrayInput

type ServiceObjectArrayInput interface {
	pulumi.Input

	ToServiceObjectArrayOutput() ServiceObjectArrayOutput
	ToServiceObjectArrayOutputWithContext(context.Context) ServiceObjectArrayOutput
}

ServiceObjectArrayInput is an input type that accepts ServiceObjectArray and ServiceObjectArrayOutput values. You can construct a concrete instance of `ServiceObjectArrayInput` via:

ServiceObjectArray{ ServiceObjectArgs{...} }

type ServiceObjectArrayOutput

type ServiceObjectArrayOutput struct{ *pulumi.OutputState }

func (ServiceObjectArrayOutput) ElementType

func (ServiceObjectArrayOutput) ElementType() reflect.Type

func (ServiceObjectArrayOutput) Index

func (ServiceObjectArrayOutput) ToServiceObjectArrayOutput

func (o ServiceObjectArrayOutput) ToServiceObjectArrayOutput() ServiceObjectArrayOutput

func (ServiceObjectArrayOutput) ToServiceObjectArrayOutputWithContext

func (o ServiceObjectArrayOutput) ToServiceObjectArrayOutputWithContext(ctx context.Context) ServiceObjectArrayOutput

type ServiceObjectInput

type ServiceObjectInput interface {
	pulumi.Input

	ToServiceObjectOutput() ServiceObjectOutput
	ToServiceObjectOutputWithContext(ctx context.Context) ServiceObjectOutput
}

type ServiceObjectMap

type ServiceObjectMap map[string]ServiceObjectInput

func (ServiceObjectMap) ElementType

func (ServiceObjectMap) ElementType() reflect.Type

func (ServiceObjectMap) ToServiceObjectMapOutput

func (i ServiceObjectMap) ToServiceObjectMapOutput() ServiceObjectMapOutput

func (ServiceObjectMap) ToServiceObjectMapOutputWithContext

func (i ServiceObjectMap) ToServiceObjectMapOutputWithContext(ctx context.Context) ServiceObjectMapOutput

type ServiceObjectMapInput

type ServiceObjectMapInput interface {
	pulumi.Input

	ToServiceObjectMapOutput() ServiceObjectMapOutput
	ToServiceObjectMapOutputWithContext(context.Context) ServiceObjectMapOutput
}

ServiceObjectMapInput is an input type that accepts ServiceObjectMap and ServiceObjectMapOutput values. You can construct a concrete instance of `ServiceObjectMapInput` via:

ServiceObjectMap{ "key": ServiceObjectArgs{...} }

type ServiceObjectMapOutput

type ServiceObjectMapOutput struct{ *pulumi.OutputState }

func (ServiceObjectMapOutput) ElementType

func (ServiceObjectMapOutput) ElementType() reflect.Type

func (ServiceObjectMapOutput) MapIndex

func (ServiceObjectMapOutput) ToServiceObjectMapOutput

func (o ServiceObjectMapOutput) ToServiceObjectMapOutput() ServiceObjectMapOutput

func (ServiceObjectMapOutput) ToServiceObjectMapOutputWithContext

func (o ServiceObjectMapOutput) ToServiceObjectMapOutputWithContext(ctx context.Context) ServiceObjectMapOutput

type ServiceObjectOutput

type ServiceObjectOutput struct{ *pulumi.OutputState }

func (ServiceObjectOutput) CustomUrl

The custom url for a custom region.

func (ServiceObjectOutput) ElementType

func (ServiceObjectOutput) ElementType() reflect.Type

func (ServiceObjectOutput) Name

The name for the Opsgenie service.

func (ServiceObjectOutput) OpsgenieApiKey

func (o ServiceObjectOutput) OpsgenieApiKey() pulumi.StringOutput

The Opsgenie API key for the Opsgenie service. Note: Since the Datadog API never returns Opsgenie API keys, it is impossible to detect drifts to have it destroyed and recreated.

func (ServiceObjectOutput) Region

The region for the Opsgenie service. Valid values are `us`, `eu`, `custom`.

func (ServiceObjectOutput) ToServiceObjectOutput

func (o ServiceObjectOutput) ToServiceObjectOutput() ServiceObjectOutput

func (ServiceObjectOutput) ToServiceObjectOutputWithContext

func (o ServiceObjectOutput) ToServiceObjectOutputWithContext(ctx context.Context) ServiceObjectOutput

type ServiceObjectState

type ServiceObjectState struct {
	// The custom url for a custom region.
	CustomUrl pulumi.StringPtrInput
	// The name for the Opsgenie service.
	Name pulumi.StringPtrInput
	// The Opsgenie API key for the Opsgenie service. Note: Since the Datadog API never returns Opsgenie API keys, it is impossible to detect drifts to have it destroyed and recreated.
	OpsgenieApiKey pulumi.StringPtrInput
	// The region for the Opsgenie service. Valid values are `us`, `eu`, `custom`.
	Region pulumi.StringPtrInput
}

func (ServiceObjectState) ElementType

func (ServiceObjectState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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