pagerduty

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 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 Integration

type Integration struct {
	pulumi.CustomResourceState

	// Your PagerDuty API token.
	ApiToken pulumi.StringPtrOutput `pulumi:"apiToken"`
	// Boolean to specify whether or not individual service objects specified by
	// [datadog_integration_pagerduty_service_object](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/integration_pagerduty_service_object)
	// resource are to be used. Mutually exclusive with `services` key.
	IndividualServices pulumi.BoolPtrOutput `pulumi:"individualServices"`
	// Array of your schedule URLs.
	Schedules pulumi.StringArrayOutput `pulumi:"schedules"`
	// A list of service names and service keys. **Deprecated.** set "individual*services" to true and use datadog*pagerduty*integration*service_object
	//
	// Deprecated: set "individual_services" to true and use datadog_pagerduty_integration_service_object
	Services IntegrationServiceArrayOutput `pulumi:"services"`
	// Your PagerDuty account’s personalized subdomain name.
	Subdomain pulumi.StringOutput `pulumi:"subdomain"`
}

Provides a Datadog - PagerDuty resource. This can be used to create and manage Datadog - PagerDuty integration. See also [PagerDuty Integration Guide](https://www.pagerduty.com/docs/guides/datadog-integration-guide/).

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-datadog/sdk/v3/go/datadog/pagerduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pagerduty.NewIntegration(ctx, "pd", &pagerduty.IntegrationArgs{
			ApiToken:           pulumi.String("38457822378273432587234242874"),
			IndividualServices: pulumi.Bool(true),
			Schedules: pulumi.StringArray{
				pulumi.String("https://ddog.pagerduty.com/schedules/X123VF"),
				pulumi.String("https://ddog.pagerduty.com/schedules/X321XX"),
			},
			Subdomain: pulumi.String("ddog"),
		})
		if err != nil {
			return err
		}
		_, err = pagerduty.NewServiceObject(ctx, "testingFoo", &pagerduty.ServiceObjectArgs{
			ServiceKey:  pulumi.String("9876543210123456789"),
			ServiceName: pulumi.String("testing_foo"),
		}, pulumi.DependsOn([]pulumi.Resource{
			"datadog_integration_pagerduty.pd",
		}))
		if err != nil {
			return err
		}
		_, err = pagerduty.NewServiceObject(ctx, "testingBar", &pagerduty.ServiceObjectArgs{
			ServiceKey:  pulumi.String("54321098765432109876"),
			ServiceName: pulumi.String("testing_bar"),
		}, pulumi.DependsOn([]pulumi.Resource{
			"datadog_integration_pagerduty.pd",
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetIntegration

func GetIntegration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *IntegrationState, opts ...pulumi.ResourceOption) (*Integration, error)

GetIntegration gets an existing Integration 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 NewIntegration

func NewIntegration(ctx *pulumi.Context,
	name string, args *IntegrationArgs, opts ...pulumi.ResourceOption) (*Integration, error)

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

func (*Integration) ElementType

func (*Integration) ElementType() reflect.Type

func (*Integration) ToIntegrationOutput

func (i *Integration) ToIntegrationOutput() IntegrationOutput

func (*Integration) ToIntegrationOutputWithContext

func (i *Integration) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput

func (*Integration) ToIntegrationPtrOutput

func (i *Integration) ToIntegrationPtrOutput() IntegrationPtrOutput

func (*Integration) ToIntegrationPtrOutputWithContext

func (i *Integration) ToIntegrationPtrOutputWithContext(ctx context.Context) IntegrationPtrOutput

type IntegrationArgs

type IntegrationArgs struct {
	// Your PagerDuty API token.
	ApiToken pulumi.StringPtrInput
	// Boolean to specify whether or not individual service objects specified by
	// [datadog_integration_pagerduty_service_object](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/integration_pagerduty_service_object)
	// resource are to be used. Mutually exclusive with `services` key.
	IndividualServices pulumi.BoolPtrInput
	// Array of your schedule URLs.
	Schedules pulumi.StringArrayInput
	// A list of service names and service keys. **Deprecated.** set "individual*services" to true and use datadog*pagerduty*integration*service_object
	//
	// Deprecated: set "individual_services" to true and use datadog_pagerduty_integration_service_object
	Services IntegrationServiceArrayInput
	// Your PagerDuty account’s personalized subdomain name.
	Subdomain pulumi.StringInput
}

The set of arguments for constructing a Integration resource.

func (IntegrationArgs) ElementType

func (IntegrationArgs) ElementType() reflect.Type

type IntegrationArray

type IntegrationArray []IntegrationInput

func (IntegrationArray) ElementType

func (IntegrationArray) ElementType() reflect.Type

func (IntegrationArray) ToIntegrationArrayOutput

func (i IntegrationArray) ToIntegrationArrayOutput() IntegrationArrayOutput

func (IntegrationArray) ToIntegrationArrayOutputWithContext

func (i IntegrationArray) ToIntegrationArrayOutputWithContext(ctx context.Context) IntegrationArrayOutput

type IntegrationArrayInput

type IntegrationArrayInput interface {
	pulumi.Input

	ToIntegrationArrayOutput() IntegrationArrayOutput
	ToIntegrationArrayOutputWithContext(context.Context) IntegrationArrayOutput
}

IntegrationArrayInput is an input type that accepts IntegrationArray and IntegrationArrayOutput values. You can construct a concrete instance of `IntegrationArrayInput` via:

IntegrationArray{ IntegrationArgs{...} }

type IntegrationArrayOutput

type IntegrationArrayOutput struct{ *pulumi.OutputState }

func (IntegrationArrayOutput) ElementType

func (IntegrationArrayOutput) ElementType() reflect.Type

func (IntegrationArrayOutput) Index

func (IntegrationArrayOutput) ToIntegrationArrayOutput

func (o IntegrationArrayOutput) ToIntegrationArrayOutput() IntegrationArrayOutput

func (IntegrationArrayOutput) ToIntegrationArrayOutputWithContext

func (o IntegrationArrayOutput) ToIntegrationArrayOutputWithContext(ctx context.Context) IntegrationArrayOutput

type IntegrationInput

type IntegrationInput interface {
	pulumi.Input

	ToIntegrationOutput() IntegrationOutput
	ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
}

type IntegrationMap

type IntegrationMap map[string]IntegrationInput

func (IntegrationMap) ElementType

func (IntegrationMap) ElementType() reflect.Type

func (IntegrationMap) ToIntegrationMapOutput

func (i IntegrationMap) ToIntegrationMapOutput() IntegrationMapOutput

func (IntegrationMap) ToIntegrationMapOutputWithContext

func (i IntegrationMap) ToIntegrationMapOutputWithContext(ctx context.Context) IntegrationMapOutput

type IntegrationMapInput

type IntegrationMapInput interface {
	pulumi.Input

	ToIntegrationMapOutput() IntegrationMapOutput
	ToIntegrationMapOutputWithContext(context.Context) IntegrationMapOutput
}

IntegrationMapInput is an input type that accepts IntegrationMap and IntegrationMapOutput values. You can construct a concrete instance of `IntegrationMapInput` via:

IntegrationMap{ "key": IntegrationArgs{...} }

type IntegrationMapOutput

type IntegrationMapOutput struct{ *pulumi.OutputState }

func (IntegrationMapOutput) ElementType

func (IntegrationMapOutput) ElementType() reflect.Type

func (IntegrationMapOutput) MapIndex

func (IntegrationMapOutput) ToIntegrationMapOutput

func (o IntegrationMapOutput) ToIntegrationMapOutput() IntegrationMapOutput

func (IntegrationMapOutput) ToIntegrationMapOutputWithContext

func (o IntegrationMapOutput) ToIntegrationMapOutputWithContext(ctx context.Context) IntegrationMapOutput

type IntegrationOutput

type IntegrationOutput struct {
	*pulumi.OutputState
}

func (IntegrationOutput) ElementType

func (IntegrationOutput) ElementType() reflect.Type

func (IntegrationOutput) ToIntegrationOutput

func (o IntegrationOutput) ToIntegrationOutput() IntegrationOutput

func (IntegrationOutput) ToIntegrationOutputWithContext

func (o IntegrationOutput) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput

func (IntegrationOutput) ToIntegrationPtrOutput

func (o IntegrationOutput) ToIntegrationPtrOutput() IntegrationPtrOutput

func (IntegrationOutput) ToIntegrationPtrOutputWithContext

func (o IntegrationOutput) ToIntegrationPtrOutputWithContext(ctx context.Context) IntegrationPtrOutput

type IntegrationPtrInput

type IntegrationPtrInput interface {
	pulumi.Input

	ToIntegrationPtrOutput() IntegrationPtrOutput
	ToIntegrationPtrOutputWithContext(ctx context.Context) IntegrationPtrOutput
}

type IntegrationPtrOutput

type IntegrationPtrOutput struct {
	*pulumi.OutputState
}

func (IntegrationPtrOutput) ElementType

func (IntegrationPtrOutput) ElementType() reflect.Type

func (IntegrationPtrOutput) ToIntegrationPtrOutput

func (o IntegrationPtrOutput) ToIntegrationPtrOutput() IntegrationPtrOutput

func (IntegrationPtrOutput) ToIntegrationPtrOutputWithContext

func (o IntegrationPtrOutput) ToIntegrationPtrOutputWithContext(ctx context.Context) IntegrationPtrOutput

type IntegrationService

type IntegrationService struct {
	// Your Service name associated service key in Pagerduty.
	ServiceKey string `pulumi:"serviceKey"`
	// Your Service name in PagerDuty.
	ServiceName string `pulumi:"serviceName"`
}

type IntegrationServiceArgs

type IntegrationServiceArgs struct {
	// Your Service name associated service key in Pagerduty.
	ServiceKey pulumi.StringInput `pulumi:"serviceKey"`
	// Your Service name in PagerDuty.
	ServiceName pulumi.StringInput `pulumi:"serviceName"`
}

func (IntegrationServiceArgs) ElementType

func (IntegrationServiceArgs) ElementType() reflect.Type

func (IntegrationServiceArgs) ToIntegrationServiceOutput

func (i IntegrationServiceArgs) ToIntegrationServiceOutput() IntegrationServiceOutput

func (IntegrationServiceArgs) ToIntegrationServiceOutputWithContext

func (i IntegrationServiceArgs) ToIntegrationServiceOutputWithContext(ctx context.Context) IntegrationServiceOutput

type IntegrationServiceArray

type IntegrationServiceArray []IntegrationServiceInput

func (IntegrationServiceArray) ElementType

func (IntegrationServiceArray) ElementType() reflect.Type

func (IntegrationServiceArray) ToIntegrationServiceArrayOutput

func (i IntegrationServiceArray) ToIntegrationServiceArrayOutput() IntegrationServiceArrayOutput

func (IntegrationServiceArray) ToIntegrationServiceArrayOutputWithContext

func (i IntegrationServiceArray) ToIntegrationServiceArrayOutputWithContext(ctx context.Context) IntegrationServiceArrayOutput

type IntegrationServiceArrayInput

type IntegrationServiceArrayInput interface {
	pulumi.Input

	ToIntegrationServiceArrayOutput() IntegrationServiceArrayOutput
	ToIntegrationServiceArrayOutputWithContext(context.Context) IntegrationServiceArrayOutput
}

IntegrationServiceArrayInput is an input type that accepts IntegrationServiceArray and IntegrationServiceArrayOutput values. You can construct a concrete instance of `IntegrationServiceArrayInput` via:

IntegrationServiceArray{ IntegrationServiceArgs{...} }

type IntegrationServiceArrayOutput

type IntegrationServiceArrayOutput struct{ *pulumi.OutputState }

func (IntegrationServiceArrayOutput) ElementType

func (IntegrationServiceArrayOutput) Index

func (IntegrationServiceArrayOutput) ToIntegrationServiceArrayOutput

func (o IntegrationServiceArrayOutput) ToIntegrationServiceArrayOutput() IntegrationServiceArrayOutput

func (IntegrationServiceArrayOutput) ToIntegrationServiceArrayOutputWithContext

func (o IntegrationServiceArrayOutput) ToIntegrationServiceArrayOutputWithContext(ctx context.Context) IntegrationServiceArrayOutput

type IntegrationServiceInput

type IntegrationServiceInput interface {
	pulumi.Input

	ToIntegrationServiceOutput() IntegrationServiceOutput
	ToIntegrationServiceOutputWithContext(context.Context) IntegrationServiceOutput
}

IntegrationServiceInput is an input type that accepts IntegrationServiceArgs and IntegrationServiceOutput values. You can construct a concrete instance of `IntegrationServiceInput` via:

IntegrationServiceArgs{...}

type IntegrationServiceOutput

type IntegrationServiceOutput struct{ *pulumi.OutputState }

func (IntegrationServiceOutput) ElementType

func (IntegrationServiceOutput) ElementType() reflect.Type

func (IntegrationServiceOutput) ServiceKey

Your Service name associated service key in Pagerduty.

func (IntegrationServiceOutput) ServiceName

Your Service name in PagerDuty.

func (IntegrationServiceOutput) ToIntegrationServiceOutput

func (o IntegrationServiceOutput) ToIntegrationServiceOutput() IntegrationServiceOutput

func (IntegrationServiceOutput) ToIntegrationServiceOutputWithContext

func (o IntegrationServiceOutput) ToIntegrationServiceOutputWithContext(ctx context.Context) IntegrationServiceOutput

type IntegrationState

type IntegrationState struct {
	// Your PagerDuty API token.
	ApiToken pulumi.StringPtrInput
	// Boolean to specify whether or not individual service objects specified by
	// [datadog_integration_pagerduty_service_object](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/integration_pagerduty_service_object)
	// resource are to be used. Mutually exclusive with `services` key.
	IndividualServices pulumi.BoolPtrInput
	// Array of your schedule URLs.
	Schedules pulumi.StringArrayInput
	// A list of service names and service keys. **Deprecated.** set "individual*services" to true and use datadog*pagerduty*integration*service_object
	//
	// Deprecated: set "individual_services" to true and use datadog_pagerduty_integration_service_object
	Services IntegrationServiceArrayInput
	// Your PagerDuty account’s personalized subdomain name.
	Subdomain pulumi.StringPtrInput
}

func (IntegrationState) ElementType

func (IntegrationState) ElementType() reflect.Type

type ServiceObject

type ServiceObject struct {
	pulumi.CustomResourceState

	// Your Service name associated service key in PagerDuty. Note: Since the Datadog API never returns service keys, it is impossible to detect drifts.
	ServiceKey pulumi.StringOutput `pulumi:"serviceKey"`
	// Your Service name in PagerDuty.
	ServiceName pulumi.StringOutput `pulumi:"serviceName"`
}

Provides access to individual Service Objects of Datadog - PagerDuty integrations. Note that the Datadog - PagerDuty integration must be activated in the Datadog UI in order for this resource to be usable.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-datadog/sdk/v3/go/datadog/pagerduty"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := pagerduty.NewServiceObject(ctx, "testingFoo", &pagerduty.ServiceObjectArgs{
			ServiceKey:  pulumi.String("9876543210123456789"),
			ServiceName: pulumi.String("testing_foo"),
		})
		if err != nil {
			return err
		}
		_, err = pagerduty.NewServiceObject(ctx, "testingBar", &pagerduty.ServiceObjectArgs{
			ServiceKey:  pulumi.String("54321098765432109876"),
			ServiceName: pulumi.String("testing_bar"),
		})
		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

func (*ServiceObject) ToServiceObjectPtrOutput

func (i *ServiceObject) ToServiceObjectPtrOutput() ServiceObjectPtrOutput

func (*ServiceObject) ToServiceObjectPtrOutputWithContext

func (i *ServiceObject) ToServiceObjectPtrOutputWithContext(ctx context.Context) ServiceObjectPtrOutput

type ServiceObjectArgs

type ServiceObjectArgs struct {
	// Your Service name associated service key in PagerDuty. Note: Since the Datadog API never returns service keys, it is impossible to detect drifts.
	ServiceKey pulumi.StringInput
	// Your Service name in PagerDuty.
	ServiceName 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) ElementType

func (ServiceObjectOutput) ElementType() reflect.Type

func (ServiceObjectOutput) ToServiceObjectOutput

func (o ServiceObjectOutput) ToServiceObjectOutput() ServiceObjectOutput

func (ServiceObjectOutput) ToServiceObjectOutputWithContext

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

func (ServiceObjectOutput) ToServiceObjectPtrOutput

func (o ServiceObjectOutput) ToServiceObjectPtrOutput() ServiceObjectPtrOutput

func (ServiceObjectOutput) ToServiceObjectPtrOutputWithContext

func (o ServiceObjectOutput) ToServiceObjectPtrOutputWithContext(ctx context.Context) ServiceObjectPtrOutput

type ServiceObjectPtrInput

type ServiceObjectPtrInput interface {
	pulumi.Input

	ToServiceObjectPtrOutput() ServiceObjectPtrOutput
	ToServiceObjectPtrOutputWithContext(ctx context.Context) ServiceObjectPtrOutput
}

type ServiceObjectPtrOutput

type ServiceObjectPtrOutput struct {
	*pulumi.OutputState
}

func (ServiceObjectPtrOutput) ElementType

func (ServiceObjectPtrOutput) ElementType() reflect.Type

func (ServiceObjectPtrOutput) ToServiceObjectPtrOutput

func (o ServiceObjectPtrOutput) ToServiceObjectPtrOutput() ServiceObjectPtrOutput

func (ServiceObjectPtrOutput) ToServiceObjectPtrOutputWithContext

func (o ServiceObjectPtrOutput) ToServiceObjectPtrOutputWithContext(ctx context.Context) ServiceObjectPtrOutput

type ServiceObjectState

type ServiceObjectState struct {
	// Your Service name associated service key in PagerDuty. Note: Since the Datadog API never returns service keys, it is impossible to detect drifts.
	ServiceKey pulumi.StringPtrInput
	// Your Service name in PagerDuty.
	ServiceName 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