Documentation ¶
Index ¶
- 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 (o ServiceObjectOutput) CustomUrl() pulumi.StringPtrOutput
- func (ServiceObjectOutput) ElementType() reflect.Type
- func (o ServiceObjectOutput) Name() pulumi.StringOutput
- func (o ServiceObjectOutput) OpsgenieApiKey() pulumi.StringOutput
- func (o ServiceObjectOutput) Region() 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 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 (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) CustomUrl ¶
func (o ServiceObjectOutput) CustomUrl() pulumi.StringPtrOutput
The custom url for a custom region.
func (ServiceObjectOutput) ElementType ¶
func (ServiceObjectOutput) ElementType() reflect.Type
func (ServiceObjectOutput) Name ¶
func (o ServiceObjectOutput) Name() pulumi.StringOutput
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 ¶
func (o ServiceObjectOutput) Region() pulumi.StringOutput
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