Documentation
¶
Index ¶
- type Channel
- type ChannelArgs
- type ChannelArray
- type ChannelArrayInput
- type ChannelArrayOutput
- type ChannelDisplay
- type ChannelDisplayArgs
- func (ChannelDisplayArgs) ElementType() reflect.Type
- func (i ChannelDisplayArgs) ToChannelDisplayOutput() ChannelDisplayOutput
- func (i ChannelDisplayArgs) ToChannelDisplayOutputWithContext(ctx context.Context) ChannelDisplayOutput
- func (i ChannelDisplayArgs) ToChannelDisplayPtrOutput() ChannelDisplayPtrOutput
- func (i ChannelDisplayArgs) ToChannelDisplayPtrOutputWithContext(ctx context.Context) ChannelDisplayPtrOutput
- type ChannelDisplayInput
- type ChannelDisplayOutput
- func (ChannelDisplayOutput) ElementType() reflect.Type
- func (o ChannelDisplayOutput) Message() pulumi.BoolPtrOutput
- func (o ChannelDisplayOutput) Notified() pulumi.BoolPtrOutput
- func (o ChannelDisplayOutput) Snapshot() pulumi.BoolPtrOutput
- func (o ChannelDisplayOutput) Tags() pulumi.BoolPtrOutput
- func (o ChannelDisplayOutput) ToChannelDisplayOutput() ChannelDisplayOutput
- func (o ChannelDisplayOutput) ToChannelDisplayOutputWithContext(ctx context.Context) ChannelDisplayOutput
- func (o ChannelDisplayOutput) ToChannelDisplayPtrOutput() ChannelDisplayPtrOutput
- func (o ChannelDisplayOutput) ToChannelDisplayPtrOutputWithContext(ctx context.Context) ChannelDisplayPtrOutput
- type ChannelDisplayPtrInput
- type ChannelDisplayPtrOutput
- func (o ChannelDisplayPtrOutput) Elem() ChannelDisplayOutput
- func (ChannelDisplayPtrOutput) ElementType() reflect.Type
- func (o ChannelDisplayPtrOutput) Message() pulumi.BoolPtrOutput
- func (o ChannelDisplayPtrOutput) Notified() pulumi.BoolPtrOutput
- func (o ChannelDisplayPtrOutput) Snapshot() pulumi.BoolPtrOutput
- func (o ChannelDisplayPtrOutput) Tags() pulumi.BoolPtrOutput
- func (o ChannelDisplayPtrOutput) ToChannelDisplayPtrOutput() ChannelDisplayPtrOutput
- func (o ChannelDisplayPtrOutput) ToChannelDisplayPtrOutputWithContext(ctx context.Context) ChannelDisplayPtrOutput
- type ChannelInput
- type ChannelMap
- type ChannelMapInput
- type ChannelMapOutput
- type ChannelOutput
- func (o ChannelOutput) AccountName() pulumi.StringOutput
- func (o ChannelOutput) ChannelName() pulumi.StringOutput
- func (o ChannelOutput) Display() ChannelDisplayOutput
- func (ChannelOutput) ElementType() reflect.Type
- func (o ChannelOutput) ToChannelOutput() ChannelOutput
- func (o ChannelOutput) ToChannelOutputWithContext(ctx context.Context) ChannelOutput
- type ChannelState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { pulumi.CustomResourceState // Slack account name. AccountName pulumi.StringOutput `pulumi:"accountName"` // Slack channel name. ChannelName pulumi.StringOutput `pulumi:"channelName"` // Configuration options for what is shown in an alert event message. Display ChannelDisplayOutput `pulumi:"display"` }
Resource for interacting with the Datadog Slack channel API
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog/slack" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := slack.NewChannel(ctx, "test_channel", &slack.ChannelArgs{ AccountName: pulumi.String("foo"), ChannelName: pulumi.String("#test_channel"), Display: &slack.ChannelDisplayArgs{ Message: pulumi.Bool(true), Notified: pulumi.Bool(false), Snapshot: pulumi.Bool(false), Tags: pulumi.Bool(true), }, }) if err != nil { return err } return nil }) }
```
## Import
Slack channel integrations can be imported using their account_name and channel_name separated with a colon (`:`).
```sh $ pulumi import datadog:slack/channel:Channel test_channel "foo:#test_channel" ```
func GetChannel ¶
func GetChannel(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ChannelState, opts ...pulumi.ResourceOption) (*Channel, error)
GetChannel gets an existing Channel 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 NewChannel ¶
func NewChannel(ctx *pulumi.Context, name string, args *ChannelArgs, opts ...pulumi.ResourceOption) (*Channel, error)
NewChannel registers a new resource with the given unique name, arguments, and options.
func (*Channel) ElementType ¶
func (*Channel) ToChannelOutput ¶
func (i *Channel) ToChannelOutput() ChannelOutput
func (*Channel) ToChannelOutputWithContext ¶
func (i *Channel) ToChannelOutputWithContext(ctx context.Context) ChannelOutput
type ChannelArgs ¶
type ChannelArgs struct { // Slack account name. AccountName pulumi.StringInput // Slack channel name. ChannelName pulumi.StringInput // Configuration options for what is shown in an alert event message. Display ChannelDisplayInput }
The set of arguments for constructing a Channel resource.
func (ChannelArgs) ElementType ¶
func (ChannelArgs) ElementType() reflect.Type
type ChannelArray ¶
type ChannelArray []ChannelInput
func (ChannelArray) ElementType ¶
func (ChannelArray) ElementType() reflect.Type
func (ChannelArray) ToChannelArrayOutput ¶
func (i ChannelArray) ToChannelArrayOutput() ChannelArrayOutput
func (ChannelArray) ToChannelArrayOutputWithContext ¶
func (i ChannelArray) ToChannelArrayOutputWithContext(ctx context.Context) ChannelArrayOutput
type ChannelArrayInput ¶
type ChannelArrayInput interface { pulumi.Input ToChannelArrayOutput() ChannelArrayOutput ToChannelArrayOutputWithContext(context.Context) ChannelArrayOutput }
ChannelArrayInput is an input type that accepts ChannelArray and ChannelArrayOutput values. You can construct a concrete instance of `ChannelArrayInput` via:
ChannelArray{ ChannelArgs{...} }
type ChannelArrayOutput ¶
type ChannelArrayOutput struct{ *pulumi.OutputState }
func (ChannelArrayOutput) ElementType ¶
func (ChannelArrayOutput) ElementType() reflect.Type
func (ChannelArrayOutput) Index ¶
func (o ChannelArrayOutput) Index(i pulumi.IntInput) ChannelOutput
func (ChannelArrayOutput) ToChannelArrayOutput ¶
func (o ChannelArrayOutput) ToChannelArrayOutput() ChannelArrayOutput
func (ChannelArrayOutput) ToChannelArrayOutputWithContext ¶
func (o ChannelArrayOutput) ToChannelArrayOutputWithContext(ctx context.Context) ChannelArrayOutput
type ChannelDisplay ¶
type ChannelDisplay struct { // Show the main body of the alert event. Defaults to `true`. Message *bool `pulumi:"message"` // Show the list of @-handles in the alert event. Defaults to `true`. Notified *bool `pulumi:"notified"` // Show the alert event's snapshot image. Defaults to `true`. Snapshot *bool `pulumi:"snapshot"` // Show the scopes on which the monitor alerted. Defaults to `true`. Tags *bool `pulumi:"tags"` }
type ChannelDisplayArgs ¶
type ChannelDisplayArgs struct { // Show the main body of the alert event. Defaults to `true`. Message pulumi.BoolPtrInput `pulumi:"message"` // Show the list of @-handles in the alert event. Defaults to `true`. Notified pulumi.BoolPtrInput `pulumi:"notified"` // Show the alert event's snapshot image. Defaults to `true`. Snapshot pulumi.BoolPtrInput `pulumi:"snapshot"` // Show the scopes on which the monitor alerted. Defaults to `true`. Tags pulumi.BoolPtrInput `pulumi:"tags"` }
func (ChannelDisplayArgs) ElementType ¶
func (ChannelDisplayArgs) ElementType() reflect.Type
func (ChannelDisplayArgs) ToChannelDisplayOutput ¶
func (i ChannelDisplayArgs) ToChannelDisplayOutput() ChannelDisplayOutput
func (ChannelDisplayArgs) ToChannelDisplayOutputWithContext ¶
func (i ChannelDisplayArgs) ToChannelDisplayOutputWithContext(ctx context.Context) ChannelDisplayOutput
func (ChannelDisplayArgs) ToChannelDisplayPtrOutput ¶
func (i ChannelDisplayArgs) ToChannelDisplayPtrOutput() ChannelDisplayPtrOutput
func (ChannelDisplayArgs) ToChannelDisplayPtrOutputWithContext ¶
func (i ChannelDisplayArgs) ToChannelDisplayPtrOutputWithContext(ctx context.Context) ChannelDisplayPtrOutput
type ChannelDisplayInput ¶
type ChannelDisplayInput interface { pulumi.Input ToChannelDisplayOutput() ChannelDisplayOutput ToChannelDisplayOutputWithContext(context.Context) ChannelDisplayOutput }
ChannelDisplayInput is an input type that accepts ChannelDisplayArgs and ChannelDisplayOutput values. You can construct a concrete instance of `ChannelDisplayInput` via:
ChannelDisplayArgs{...}
type ChannelDisplayOutput ¶
type ChannelDisplayOutput struct{ *pulumi.OutputState }
func (ChannelDisplayOutput) ElementType ¶
func (ChannelDisplayOutput) ElementType() reflect.Type
func (ChannelDisplayOutput) Message ¶
func (o ChannelDisplayOutput) Message() pulumi.BoolPtrOutput
Show the main body of the alert event. Defaults to `true`.
func (ChannelDisplayOutput) Notified ¶
func (o ChannelDisplayOutput) Notified() pulumi.BoolPtrOutput
Show the list of @-handles in the alert event. Defaults to `true`.
func (ChannelDisplayOutput) Snapshot ¶
func (o ChannelDisplayOutput) Snapshot() pulumi.BoolPtrOutput
Show the alert event's snapshot image. Defaults to `true`.
func (ChannelDisplayOutput) Tags ¶
func (o ChannelDisplayOutput) Tags() pulumi.BoolPtrOutput
Show the scopes on which the monitor alerted. Defaults to `true`.
func (ChannelDisplayOutput) ToChannelDisplayOutput ¶
func (o ChannelDisplayOutput) ToChannelDisplayOutput() ChannelDisplayOutput
func (ChannelDisplayOutput) ToChannelDisplayOutputWithContext ¶
func (o ChannelDisplayOutput) ToChannelDisplayOutputWithContext(ctx context.Context) ChannelDisplayOutput
func (ChannelDisplayOutput) ToChannelDisplayPtrOutput ¶
func (o ChannelDisplayOutput) ToChannelDisplayPtrOutput() ChannelDisplayPtrOutput
func (ChannelDisplayOutput) ToChannelDisplayPtrOutputWithContext ¶
func (o ChannelDisplayOutput) ToChannelDisplayPtrOutputWithContext(ctx context.Context) ChannelDisplayPtrOutput
type ChannelDisplayPtrInput ¶
type ChannelDisplayPtrInput interface { pulumi.Input ToChannelDisplayPtrOutput() ChannelDisplayPtrOutput ToChannelDisplayPtrOutputWithContext(context.Context) ChannelDisplayPtrOutput }
ChannelDisplayPtrInput is an input type that accepts ChannelDisplayArgs, ChannelDisplayPtr and ChannelDisplayPtrOutput values. You can construct a concrete instance of `ChannelDisplayPtrInput` via:
ChannelDisplayArgs{...} or: nil
func ChannelDisplayPtr ¶
func ChannelDisplayPtr(v *ChannelDisplayArgs) ChannelDisplayPtrInput
type ChannelDisplayPtrOutput ¶
type ChannelDisplayPtrOutput struct{ *pulumi.OutputState }
func (ChannelDisplayPtrOutput) Elem ¶
func (o ChannelDisplayPtrOutput) Elem() ChannelDisplayOutput
func (ChannelDisplayPtrOutput) ElementType ¶
func (ChannelDisplayPtrOutput) ElementType() reflect.Type
func (ChannelDisplayPtrOutput) Message ¶
func (o ChannelDisplayPtrOutput) Message() pulumi.BoolPtrOutput
Show the main body of the alert event. Defaults to `true`.
func (ChannelDisplayPtrOutput) Notified ¶
func (o ChannelDisplayPtrOutput) Notified() pulumi.BoolPtrOutput
Show the list of @-handles in the alert event. Defaults to `true`.
func (ChannelDisplayPtrOutput) Snapshot ¶
func (o ChannelDisplayPtrOutput) Snapshot() pulumi.BoolPtrOutput
Show the alert event's snapshot image. Defaults to `true`.
func (ChannelDisplayPtrOutput) Tags ¶
func (o ChannelDisplayPtrOutput) Tags() pulumi.BoolPtrOutput
Show the scopes on which the monitor alerted. Defaults to `true`.
func (ChannelDisplayPtrOutput) ToChannelDisplayPtrOutput ¶
func (o ChannelDisplayPtrOutput) ToChannelDisplayPtrOutput() ChannelDisplayPtrOutput
func (ChannelDisplayPtrOutput) ToChannelDisplayPtrOutputWithContext ¶
func (o ChannelDisplayPtrOutput) ToChannelDisplayPtrOutputWithContext(ctx context.Context) ChannelDisplayPtrOutput
type ChannelInput ¶
type ChannelInput interface { pulumi.Input ToChannelOutput() ChannelOutput ToChannelOutputWithContext(ctx context.Context) ChannelOutput }
type ChannelMap ¶
type ChannelMap map[string]ChannelInput
func (ChannelMap) ElementType ¶
func (ChannelMap) ElementType() reflect.Type
func (ChannelMap) ToChannelMapOutput ¶
func (i ChannelMap) ToChannelMapOutput() ChannelMapOutput
func (ChannelMap) ToChannelMapOutputWithContext ¶
func (i ChannelMap) ToChannelMapOutputWithContext(ctx context.Context) ChannelMapOutput
type ChannelMapInput ¶
type ChannelMapInput interface { pulumi.Input ToChannelMapOutput() ChannelMapOutput ToChannelMapOutputWithContext(context.Context) ChannelMapOutput }
ChannelMapInput is an input type that accepts ChannelMap and ChannelMapOutput values. You can construct a concrete instance of `ChannelMapInput` via:
ChannelMap{ "key": ChannelArgs{...} }
type ChannelMapOutput ¶
type ChannelMapOutput struct{ *pulumi.OutputState }
func (ChannelMapOutput) ElementType ¶
func (ChannelMapOutput) ElementType() reflect.Type
func (ChannelMapOutput) MapIndex ¶
func (o ChannelMapOutput) MapIndex(k pulumi.StringInput) ChannelOutput
func (ChannelMapOutput) ToChannelMapOutput ¶
func (o ChannelMapOutput) ToChannelMapOutput() ChannelMapOutput
func (ChannelMapOutput) ToChannelMapOutputWithContext ¶
func (o ChannelMapOutput) ToChannelMapOutputWithContext(ctx context.Context) ChannelMapOutput
type ChannelOutput ¶
type ChannelOutput struct{ *pulumi.OutputState }
func (ChannelOutput) AccountName ¶ added in v4.9.0
func (o ChannelOutput) AccountName() pulumi.StringOutput
Slack account name.
func (ChannelOutput) ChannelName ¶ added in v4.9.0
func (o ChannelOutput) ChannelName() pulumi.StringOutput
Slack channel name.
func (ChannelOutput) Display ¶ added in v4.9.0
func (o ChannelOutput) Display() ChannelDisplayOutput
Configuration options for what is shown in an alert event message.
func (ChannelOutput) ElementType ¶
func (ChannelOutput) ElementType() reflect.Type
func (ChannelOutput) ToChannelOutput ¶
func (o ChannelOutput) ToChannelOutput() ChannelOutput
func (ChannelOutput) ToChannelOutputWithContext ¶
func (o ChannelOutput) ToChannelOutputWithContext(ctx context.Context) ChannelOutput
type ChannelState ¶
type ChannelState struct { // Slack account name. AccountName pulumi.StringPtrInput // Slack channel name. ChannelName pulumi.StringPtrInput // Configuration options for what is shown in an alert event message. Display ChannelDisplayPtrInput }
func (ChannelState) ElementType ¶
func (ChannelState) ElementType() reflect.Type