Documentation ¶
Index ¶
- type Integration
- type IntegrationArgs
- type IntegrationArray
- type IntegrationArrayInput
- type IntegrationArrayOutput
- func (IntegrationArrayOutput) ElementType() reflect.Type
- func (o IntegrationArrayOutput) Index(i pulumi.IntInput) IntegrationOutput
- func (o IntegrationArrayOutput) ToIntegrationArrayOutput() IntegrationArrayOutput
- func (o IntegrationArrayOutput) ToIntegrationArrayOutputWithContext(ctx context.Context) IntegrationArrayOutput
- type IntegrationInput
- type IntegrationMap
- type IntegrationMapInput
- type IntegrationMapOutput
- func (IntegrationMapOutput) ElementType() reflect.Type
- func (o IntegrationMapOutput) MapIndex(k pulumi.StringInput) IntegrationOutput
- func (o IntegrationMapOutput) ToIntegrationMapOutput() IntegrationMapOutput
- func (o IntegrationMapOutput) ToIntegrationMapOutputWithContext(ctx context.Context) IntegrationMapOutput
- type IntegrationOutput
- func (o IntegrationOutput) ApiToken() pulumi.StringPtrOutput
- func (IntegrationOutput) ElementType() reflect.Type
- func (o IntegrationOutput) Schedules() pulumi.StringArrayOutput
- func (o IntegrationOutput) Subdomain() pulumi.StringOutput
- func (o IntegrationOutput) ToIntegrationOutput() IntegrationOutput
- func (o IntegrationOutput) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
- type IntegrationState
- type ServiceObject
- type ServiceObjectArgs
- type ServiceObjectArray
- type ServiceObjectArrayInput
- type ServiceObjectArrayOutput
- func (ServiceObjectArrayOutput) ElementType() reflect.Type
- func (o ServiceObjectArrayOutput) Index(i pulumi.IntInput) ServiceObjectOutput
- func (o ServiceObjectArrayOutput) ToServiceObjectArrayOutput() ServiceObjectArrayOutput
- func (o ServiceObjectArrayOutput) ToServiceObjectArrayOutputWithContext(ctx context.Context) ServiceObjectArrayOutput
- type ServiceObjectInput
- type ServiceObjectMap
- type ServiceObjectMapInput
- type ServiceObjectMapOutput
- func (ServiceObjectMapOutput) ElementType() reflect.Type
- func (o ServiceObjectMapOutput) MapIndex(k pulumi.StringInput) ServiceObjectOutput
- func (o ServiceObjectMapOutput) ToServiceObjectMapOutput() ServiceObjectMapOutput
- func (o ServiceObjectMapOutput) ToServiceObjectMapOutputWithContext(ctx context.Context) ServiceObjectMapOutput
- type ServiceObjectOutput
- func (ServiceObjectOutput) ElementType() reflect.Type
- func (o ServiceObjectOutput) ServiceKey() pulumi.StringOutput
- func (o ServiceObjectOutput) ServiceName() pulumi.StringOutput
- func (o ServiceObjectOutput) ToServiceObjectOutput() ServiceObjectOutput
- func (o ServiceObjectOutput) ToServiceObjectOutputWithContext(ctx context.Context) 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"` // Array of your schedule URLs. Schedules pulumi.StringArrayOutput `pulumi:"schedules"` // 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/v4/go/datadog/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { // Note: Until terraform-provider-datadog version 2.1.0, service objects under the services key were specified inside the datadog_integration_pagerduty resource. This was incompatible with multi-configuration-file setups, where users wanted to have individual service objects controlled from different Terraform configuration files. The recommended approach now is specifying service objects as individual resources using datadog_integration_pagerduty_service_object. // Services as Individual Resources pd, err := pagerduty.NewIntegration(ctx, "pd", &pagerduty.IntegrationArgs{ Schedules: pulumi.StringArray{ pulumi.String("https://ddog.pagerduty.com/schedules/X123VF"), pulumi.String("https://ddog.pagerduty.com/schedules/X321XX"), }, Subdomain: pulumi.String("ddog"), ApiToken: pulumi.String("38457822378273432587234242874"), }) if err != nil { return err } _, err = pagerduty.NewServiceObject(ctx, "testing_foo", &pagerduty.ServiceObjectArgs{ ServiceName: pulumi.String("testing_foo"), ServiceKey: pulumi.String("9876543210123456789"), }, pulumi.DependsOn([]pulumi.Resource{ pd, })) if err != nil { return err } _, err = pagerduty.NewServiceObject(ctx, "testing_bar", &pagerduty.ServiceObjectArgs{ ServiceName: pulumi.String("testing_bar"), ServiceKey: pulumi.String("54321098765432109876"), }, pulumi.DependsOn([]pulumi.Resource{ 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
type IntegrationArgs ¶
type IntegrationArgs struct { // Your PagerDuty API token. ApiToken pulumi.StringPtrInput // Array of your schedule URLs. Schedules pulumi.StringArrayInput // 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 (o IntegrationArrayOutput) Index(i pulumi.IntInput) IntegrationOutput
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 (o IntegrationMapOutput) MapIndex(k pulumi.StringInput) IntegrationOutput
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) ApiToken ¶ added in v4.9.0
func (o IntegrationOutput) ApiToken() pulumi.StringPtrOutput
Your PagerDuty API token.
func (IntegrationOutput) ElementType ¶
func (IntegrationOutput) ElementType() reflect.Type
func (IntegrationOutput) Schedules ¶ added in v4.9.0
func (o IntegrationOutput) Schedules() pulumi.StringArrayOutput
Array of your schedule URLs.
func (IntegrationOutput) Subdomain ¶ added in v4.9.0
func (o IntegrationOutput) Subdomain() pulumi.StringOutput
Your PagerDuty account’s personalized subdomain name.
func (IntegrationOutput) ToIntegrationOutput ¶
func (o IntegrationOutput) ToIntegrationOutput() IntegrationOutput
func (IntegrationOutput) ToIntegrationOutputWithContext ¶
func (o IntegrationOutput) ToIntegrationOutputWithContext(ctx context.Context) IntegrationOutput
type IntegrationState ¶
type IntegrationState struct { // Your PagerDuty API token. ApiToken pulumi.StringPtrInput // Array of your schedule URLs. Schedules pulumi.StringArrayInput // 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. This key may also be referred to as an Integration Key or Routing Key in the Pagerduty Integration documentation 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/v4/go/datadog/pagerduty" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := pagerduty.NewServiceObject(ctx, "testing_foo", &pagerduty.ServiceObjectArgs{ ServiceName: pulumi.String("testing_foo"), ServiceKey: pulumi.String("9876543210123456789"), }) if err != nil { return err } _, err = pagerduty.NewServiceObject(ctx, "testing_bar", &pagerduty.ServiceObjectArgs{ ServiceName: pulumi.String("testing_bar"), ServiceKey: pulumi.String("54321098765432109876"), }) if err != nil { return err } return nil }) }
```
## Import
Pagerduty service object can be imported using the service_name, while the service_key should be passed by setting the environment variable SERVICE_KEY
```sh $ pulumi import datadog:pagerduty/serviceObject:ServiceObject SERVICE_KEY=${service_key} datadog_integration_pagerduty_service_object.foo ${service_name} ```
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 { // Your Service name associated service key in PagerDuty. This key may also be referred to as an Integration Key or Routing Key in the Pagerduty Integration documentation 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 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 (o ServiceObjectArrayOutput) Index(i pulumi.IntInput) ServiceObjectOutput
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 (o ServiceObjectMapOutput) MapIndex(k pulumi.StringInput) ServiceObjectOutput
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) ServiceKey ¶ added in v4.9.0
func (o ServiceObjectOutput) ServiceKey() pulumi.StringOutput
Your Service name associated service key in PagerDuty. This key may also be referred to as an Integration Key or Routing Key in the Pagerduty Integration documentation to have it destroyed and recreated.
func (ServiceObjectOutput) ServiceName ¶ added in v4.9.0
func (o ServiceObjectOutput) ServiceName() pulumi.StringOutput
Your Service name in PagerDuty.
func (ServiceObjectOutput) ToServiceObjectOutput ¶
func (o ServiceObjectOutput) ToServiceObjectOutput() ServiceObjectOutput
func (ServiceObjectOutput) ToServiceObjectOutputWithContext ¶
func (o ServiceObjectOutput) ToServiceObjectOutputWithContext(ctx context.Context) ServiceObjectOutput
type ServiceObjectState ¶
type ServiceObjectState struct { // Your Service name associated service key in PagerDuty. This key may also be referred to as an Integration Key or Routing Key in the Pagerduty Integration documentation 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