signalfx.slack.Integration
Explore with Pulumi AI
Slack integration.
NOTE When managing integrations, use a session token of an administrator to authenticate the Splunk Observability Cloud provider. See Operations that require a session token for an administrator. Otherwise you’ll receive a 4xx error.
Example
import * as pulumi from "@pulumi/pulumi";
import * as signalfx from "@pulumi/signalfx";
const slackMyteam = new signalfx.slack.Integration("slackMyteam", {
enabled: true,
webhookUrl: "http://example.com",
});
import pulumi
import pulumi_signalfx as signalfx
slack_myteam = signalfx.slack.Integration("slackMyteam",
enabled=True,
webhook_url="http://example.com")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SignalFx = Pulumi.SignalFx;
return await Deployment.RunAsync(() =>
{
var slackMyteam = new SignalFx.Slack.Integration("slackMyteam", new()
{
Enabled = true,
WebhookUrl = "http://example.com",
});
});
package main
import (
"github.com/pulumi/pulumi-signalfx/sdk/v7/go/signalfx/slack"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := slack.NewIntegration(ctx, "slackMyteam", &slack.IntegrationArgs{
Enabled: pulumi.Bool(true),
WebhookUrl: pulumi.String("http://example.com"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.signalfx.slack.Integration;
import com.pulumi.signalfx.slack.IntegrationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var slackMyteam = new Integration("slackMyteam", IntegrationArgs.builder()
.enabled(true)
.webhookUrl("http://example.com")
.build());
}
}
resources:
slackMyteam:
type: signalfx:slack:Integration
properties:
enabled: true
webhookUrl: http://example.com
Arguments
name
- (Required) Name of the integration.enabled
- (Required) Whether the integration is enabled.webhook_url
- (Required) Slack incoming webhook URL.
Attributes
In a addition to all arguments above, the following attributes are exported:
id
- The ID of the integration.
Create Integration Resource
new Integration(name: string, args: IntegrationArgs, opts?: CustomResourceOptions);
@overload
def Integration(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
webhook_url: Optional[str] = None)
@overload
def Integration(resource_name: str,
args: IntegrationArgs,
opts: Optional[ResourceOptions] = None)
func NewIntegration(ctx *Context, name string, args IntegrationArgs, opts ...ResourceOption) (*Integration, error)
public Integration(string name, IntegrationArgs args, CustomResourceOptions? opts = null)
public Integration(String name, IntegrationArgs args)
public Integration(String name, IntegrationArgs args, CustomResourceOptions options)
type: signalfx:slack:Integration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IntegrationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IntegrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IntegrationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Integration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Integration resource accepts the following input properties:
- Enabled bool
- Whether the integration is enabled or not
- Webhook
Url string - Slack Webhook URL for integration
- Name string
- Name of the integration
- Enabled bool
- Whether the integration is enabled or not
- Webhook
Url string - Slack Webhook URL for integration
- Name string
- Name of the integration
- enabled Boolean
- Whether the integration is enabled or not
- webhook
Url String - Slack Webhook URL for integration
- name String
- Name of the integration
- enabled boolean
- Whether the integration is enabled or not
- webhook
Url string - Slack Webhook URL for integration
- name string
- Name of the integration
- enabled bool
- Whether the integration is enabled or not
- webhook_
url str - Slack Webhook URL for integration
- name str
- Name of the integration
- enabled Boolean
- Whether the integration is enabled or not
- webhook
Url String - Slack Webhook URL for integration
- name String
- Name of the integration
Outputs
All input properties are implicitly available as output properties. Additionally, the Integration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Integration Resource
Get an existing Integration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: IntegrationState, opts?: CustomResourceOptions): Integration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
webhook_url: Optional[str] = None) -> Integration
func GetIntegration(ctx *Context, name string, id IDInput, state *IntegrationState, opts ...ResourceOption) (*Integration, error)
public static Integration Get(string name, Input<string> id, IntegrationState? state, CustomResourceOptions? opts = null)
public static Integration get(String name, Output<String> id, IntegrationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Enabled bool
- Whether the integration is enabled or not
- Name string
- Name of the integration
- Webhook
Url string - Slack Webhook URL for integration
- Enabled bool
- Whether the integration is enabled or not
- Name string
- Name of the integration
- Webhook
Url string - Slack Webhook URL for integration
- enabled Boolean
- Whether the integration is enabled or not
- name String
- Name of the integration
- webhook
Url String - Slack Webhook URL for integration
- enabled boolean
- Whether the integration is enabled or not
- name string
- Name of the integration
- webhook
Url string - Slack Webhook URL for integration
- enabled bool
- Whether the integration is enabled or not
- name str
- Name of the integration
- webhook_
url str - Slack Webhook URL for integration
- enabled Boolean
- Whether the integration is enabled or not
- name String
- Name of the integration
- webhook
Url String - Slack Webhook URL for integration
Package Details
- Repository
- SignalFx pulumi/pulumi-signalfx
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
signalfx
Terraform Provider.