Documentation
¶
Index ¶
- type Integration
- type IntegrationArgs
- type IntegrationInput
- type IntegrationOutput
- type IntegrationService
- type IntegrationServiceArgs
- type IntegrationServiceArray
- type IntegrationServiceArrayInput
- type IntegrationServiceArrayOutput
- func (IntegrationServiceArrayOutput) ElementType() reflect.Type
- func (o IntegrationServiceArrayOutput) Index(i pulumi.IntInput) IntegrationServiceOutput
- func (o IntegrationServiceArrayOutput) ToIntegrationServiceArrayOutput() IntegrationServiceArrayOutput
- func (o IntegrationServiceArrayOutput) ToIntegrationServiceArrayOutputWithContext(ctx context.Context) IntegrationServiceArrayOutput
- type IntegrationServiceInput
- type IntegrationServiceOutput
- func (IntegrationServiceOutput) ElementType() reflect.Type
- func (o IntegrationServiceOutput) ServiceKey() pulumi.StringOutput
- func (o IntegrationServiceOutput) ServiceName() pulumi.StringOutput
- func (o IntegrationServiceOutput) ToIntegrationServiceOutput() IntegrationServiceOutput
- func (o IntegrationServiceOutput) ToIntegrationServiceOutputWithContext(ctx context.Context) IntegrationServiceOutput
- type IntegrationState
- type ServiceObject
- type ServiceObjectArgs
- type ServiceObjectInput
- type ServiceObjectOutput
- type ServiceObjectState
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 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. This resource is deprecated and should only be used for legacy purposes.
## Example Usage ### Services as Individual Resources
```go package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v2/go/datadog/pagerduty" "github.com/pulumi/pulumi/sdk/v2/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 ¶ added in v2.11.0
func (Integration) ElementType() reflect.Type
func (Integration) ToIntegrationOutput ¶ added in v2.11.0
func (i Integration) ToIntegrationOutput() IntegrationOutput
func (Integration) ToIntegrationOutputWithContext ¶ added in v2.11.0
func (i Integration) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
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 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 IntegrationInput ¶ added in v2.11.0
type IntegrationInput interface { pulumi.Input ToIntegrationOutput() IntegrationOutput ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput }
type IntegrationOutput ¶ added in v2.11.0
type IntegrationOutput struct {
*pulumi.OutputState
}
func (IntegrationOutput) ElementType ¶ added in v2.11.0
func (IntegrationOutput) ElementType() reflect.Type
func (IntegrationOutput) ToIntegrationOutput ¶ added in v2.11.0
func (o IntegrationOutput) ToIntegrationOutput() IntegrationOutput
func (IntegrationOutput) ToIntegrationOutputWithContext ¶ added in v2.11.0
func (o IntegrationOutput) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
type IntegrationService ¶
type IntegrationServiceArgs ¶
type IntegrationServiceArgs struct { ServiceKey pulumi.StringInput `pulumi:"serviceKey"` 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) ElementType() reflect.Type
func (IntegrationServiceArrayOutput) Index ¶
func (o IntegrationServiceArrayOutput) Index(i pulumi.IntInput) IntegrationServiceOutput
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 ¶
func (o IntegrationServiceOutput) ServiceKey() pulumi.StringOutput
func (IntegrationServiceOutput) ServiceName ¶
func (o IntegrationServiceOutput) ServiceName() pulumi.StringOutput
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 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](https://www.hashicorp.com/blog/detecting-and-managing-drift-with-terraform?_ga=2.15990198.1091155358.1609189257-888022054.1605547463). // The best way to solve a drift is to manually mark the Service Object resource with [terraform // taint](https://www.terraform.io/docs/commands/taint.html?_ga=2.15990198.1091155358.1609189257-888022054.1605547463) to // have it destroyed and recreated. 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/v2/go/datadog/pagerduty" "github.com/pulumi/pulumi/sdk/v2/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 ¶ added in v2.11.0
func (ServiceObject) ElementType() reflect.Type
func (ServiceObject) ToServiceObjectOutput ¶ added in v2.11.0
func (i ServiceObject) ToServiceObjectOutput() ServiceObjectOutput
func (ServiceObject) ToServiceObjectOutputWithContext ¶ added in v2.11.0
func (i ServiceObject) ToServiceObjectOutputWithContext(ctx context.Context) ServiceObjectOutput
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](https://www.hashicorp.com/blog/detecting-and-managing-drift-with-terraform?_ga=2.15990198.1091155358.1609189257-888022054.1605547463). // The best way to solve a drift is to manually mark the Service Object resource with [terraform // taint](https://www.terraform.io/docs/commands/taint.html?_ga=2.15990198.1091155358.1609189257-888022054.1605547463) to // have it destroyed and recreated. 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 ServiceObjectInput ¶ added in v2.11.0
type ServiceObjectInput interface { pulumi.Input ToServiceObjectOutput() ServiceObjectOutput ToServiceObjectOutputWithContext(ctx context.Context) ServiceObjectOutput }
type ServiceObjectOutput ¶ added in v2.11.0
type ServiceObjectOutput struct {
*pulumi.OutputState
}
func (ServiceObjectOutput) ElementType ¶ added in v2.11.0
func (ServiceObjectOutput) ElementType() reflect.Type
func (ServiceObjectOutput) ToServiceObjectOutput ¶ added in v2.11.0
func (o ServiceObjectOutput) ToServiceObjectOutput() ServiceObjectOutput
func (ServiceObjectOutput) ToServiceObjectOutputWithContext ¶ added in v2.11.0
func (o ServiceObjectOutput) ToServiceObjectOutputWithContext(ctx context.Context) ServiceObjectOutput
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](https://www.hashicorp.com/blog/detecting-and-managing-drift-with-terraform?_ga=2.15990198.1091155358.1609189257-888022054.1605547463). // The best way to solve a drift is to manually mark the Service Object resource with [terraform // taint](https://www.terraform.io/docs/commands/taint.html?_ga=2.15990198.1091155358.1609189257-888022054.1605547463) to // have it destroyed and recreated. ServiceKey pulumi.StringPtrInput // Your Service name in PagerDuty. ServiceName pulumi.StringPtrInput }
func (ServiceObjectState) ElementType ¶
func (ServiceObjectState) ElementType() reflect.Type