1. Packages
  2. Chronosphere
  3. API Docs
  4. SlackAlertNotifier
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

chronosphere.SlackAlertNotifier

Explore with Pulumi AI

chronosphere logo
Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere

    Create SlackAlertNotifier Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SlackAlertNotifier(name: string, args: SlackAlertNotifierArgs, opts?: CustomResourceOptions);
    @overload
    def SlackAlertNotifier(resource_name: str,
                           args: SlackAlertNotifierArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SlackAlertNotifier(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           channel: Optional[str] = None,
                           api_url: Optional[str] = None,
                           name: Optional[str] = None,
                           link_names: Optional[bool] = None,
                           basic_auth_password: Optional[str] = None,
                           callback_id: Optional[str] = None,
                           basic_auth_username: Optional[str] = None,
                           color: Optional[str] = None,
                           fallback: Optional[str] = None,
                           fields: Optional[Sequence[SlackAlertNotifierFieldArgs]] = None,
                           footer: Optional[str] = None,
                           icon_emoji: Optional[str] = None,
                           icon_url: Optional[str] = None,
                           image_url: Optional[str] = None,
                           actions: Optional[Sequence[SlackAlertNotifierActionArgs]] = None,
                           mrkdwn_ins: Optional[Sequence[str]] = None,
                           bearer_token: Optional[str] = None,
                           pretext: Optional[str] = None,
                           proxy_url: Optional[str] = None,
                           send_resolved: Optional[bool] = None,
                           short_fields: Optional[bool] = None,
                           slug: Optional[str] = None,
                           text: Optional[str] = None,
                           thumb_url: Optional[str] = None,
                           title: Optional[str] = None,
                           title_link: Optional[str] = None,
                           tls_insecure_skip_verify: Optional[bool] = None,
                           username: Optional[str] = None)
    func NewSlackAlertNotifier(ctx *Context, name string, args SlackAlertNotifierArgs, opts ...ResourceOption) (*SlackAlertNotifier, error)
    public SlackAlertNotifier(string name, SlackAlertNotifierArgs args, CustomResourceOptions? opts = null)
    public SlackAlertNotifier(String name, SlackAlertNotifierArgs args)
    public SlackAlertNotifier(String name, SlackAlertNotifierArgs args, CustomResourceOptions options)
    
    type: chronosphere:SlackAlertNotifier
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SlackAlertNotifierArgs
    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 SlackAlertNotifierArgs
    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 SlackAlertNotifierArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SlackAlertNotifierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SlackAlertNotifierArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var slackAlertNotifierResource = new Pulumi.SlackAlertNotifier("slackAlertNotifierResource", new()
    {
        Channel = "string",
        ApiUrl = "string",
        Name = "string",
        LinkNames = false,
        BasicAuthPassword = "string",
        CallbackId = "string",
        BasicAuthUsername = "string",
        Color = "string",
        Fallback = "string",
        Fields = new[]
        {
            new Pulumi.Inputs.SlackAlertNotifierFieldArgs
            {
                Short = false,
                Title = "string",
                Value = "string",
            },
        },
        Footer = "string",
        IconEmoji = "string",
        IconUrl = "string",
        ImageUrl = "string",
        Actions = new[]
        {
            new Pulumi.Inputs.SlackAlertNotifierActionArgs
            {
                ActionConfirmDismissText = "string",
                ActionConfirmOkText = "string",
                ActionConfirmText = "string",
                ActionConfirmTile = "string",
                Name = "string",
                Style = "string",
                Text = "string",
                Type = "string",
                Url = "string",
                Value = "string",
            },
        },
        MrkdwnIns = new[]
        {
            "string",
        },
        BearerToken = "string",
        Pretext = "string",
        SendResolved = false,
        ShortFields = false,
        Slug = "string",
        Text = "string",
        ThumbUrl = "string",
        Title = "string",
        TitleLink = "string",
        TlsInsecureSkipVerify = false,
        Username = "string",
    });
    
    example, err := chronosphere.NewSlackAlertNotifier(ctx, "slackAlertNotifierResource", &chronosphere.SlackAlertNotifierArgs{
    	Channel:           pulumi.String("string"),
    	ApiUrl:            pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	LinkNames:         pulumi.Bool(false),
    	BasicAuthPassword: pulumi.String("string"),
    	CallbackId:        pulumi.String("string"),
    	BasicAuthUsername: pulumi.String("string"),
    	Color:             pulumi.String("string"),
    	Fallback:          pulumi.String("string"),
    	Fields: chronosphere.SlackAlertNotifierFieldArray{
    		&chronosphere.SlackAlertNotifierFieldArgs{
    			Short: pulumi.Bool(false),
    			Title: pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Footer:    pulumi.String("string"),
    	IconEmoji: pulumi.String("string"),
    	IconUrl:   pulumi.String("string"),
    	ImageUrl:  pulumi.String("string"),
    	Actions: chronosphere.SlackAlertNotifierActionArray{
    		&chronosphere.SlackAlertNotifierActionArgs{
    			ActionConfirmDismissText: pulumi.String("string"),
    			ActionConfirmOkText:      pulumi.String("string"),
    			ActionConfirmText:        pulumi.String("string"),
    			ActionConfirmTile:        pulumi.String("string"),
    			Name:                     pulumi.String("string"),
    			Style:                    pulumi.String("string"),
    			Text:                     pulumi.String("string"),
    			Type:                     pulumi.String("string"),
    			Url:                      pulumi.String("string"),
    			Value:                    pulumi.String("string"),
    		},
    	},
    	MrkdwnIns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BearerToken:           pulumi.String("string"),
    	Pretext:               pulumi.String("string"),
    	SendResolved:          pulumi.Bool(false),
    	ShortFields:           pulumi.Bool(false),
    	Slug:                  pulumi.String("string"),
    	Text:                  pulumi.String("string"),
    	ThumbUrl:              pulumi.String("string"),
    	Title:                 pulumi.String("string"),
    	TitleLink:             pulumi.String("string"),
    	TlsInsecureSkipVerify: pulumi.Bool(false),
    	Username:              pulumi.String("string"),
    })
    
    var slackAlertNotifierResource = new SlackAlertNotifier("slackAlertNotifierResource", SlackAlertNotifierArgs.builder()
        .channel("string")
        .apiUrl("string")
        .name("string")
        .linkNames(false)
        .basicAuthPassword("string")
        .callbackId("string")
        .basicAuthUsername("string")
        .color("string")
        .fallback("string")
        .fields(SlackAlertNotifierFieldArgs.builder()
            .short_(false)
            .title("string")
            .value("string")
            .build())
        .footer("string")
        .iconEmoji("string")
        .iconUrl("string")
        .imageUrl("string")
        .actions(SlackAlertNotifierActionArgs.builder()
            .actionConfirmDismissText("string")
            .actionConfirmOkText("string")
            .actionConfirmText("string")
            .actionConfirmTile("string")
            .name("string")
            .style("string")
            .text("string")
            .type("string")
            .url("string")
            .value("string")
            .build())
        .mrkdwnIns("string")
        .bearerToken("string")
        .pretext("string")
        .sendResolved(false)
        .shortFields(false)
        .slug("string")
        .text("string")
        .thumbUrl("string")
        .title("string")
        .titleLink("string")
        .tlsInsecureSkipVerify(false)
        .username("string")
        .build());
    
    slack_alert_notifier_resource = chronosphere.SlackAlertNotifier("slackAlertNotifierResource",
        channel="string",
        api_url="string",
        name="string",
        link_names=False,
        basic_auth_password="string",
        callback_id="string",
        basic_auth_username="string",
        color="string",
        fallback="string",
        fields=[{
            "short": False,
            "title": "string",
            "value": "string",
        }],
        footer="string",
        icon_emoji="string",
        icon_url="string",
        image_url="string",
        actions=[{
            "action_confirm_dismiss_text": "string",
            "action_confirm_ok_text": "string",
            "action_confirm_text": "string",
            "action_confirm_tile": "string",
            "name": "string",
            "style": "string",
            "text": "string",
            "type": "string",
            "url": "string",
            "value": "string",
        }],
        mrkdwn_ins=["string"],
        bearer_token="string",
        pretext="string",
        send_resolved=False,
        short_fields=False,
        slug="string",
        text="string",
        thumb_url="string",
        title="string",
        title_link="string",
        tls_insecure_skip_verify=False,
        username="string")
    
    const slackAlertNotifierResource = new chronosphere.SlackAlertNotifier("slackAlertNotifierResource", {
        channel: "string",
        apiUrl: "string",
        name: "string",
        linkNames: false,
        basicAuthPassword: "string",
        callbackId: "string",
        basicAuthUsername: "string",
        color: "string",
        fallback: "string",
        fields: [{
            short: false,
            title: "string",
            value: "string",
        }],
        footer: "string",
        iconEmoji: "string",
        iconUrl: "string",
        imageUrl: "string",
        actions: [{
            actionConfirmDismissText: "string",
            actionConfirmOkText: "string",
            actionConfirmText: "string",
            actionConfirmTile: "string",
            name: "string",
            style: "string",
            text: "string",
            type: "string",
            url: "string",
            value: "string",
        }],
        mrkdwnIns: ["string"],
        bearerToken: "string",
        pretext: "string",
        sendResolved: false,
        shortFields: false,
        slug: "string",
        text: "string",
        thumbUrl: "string",
        title: "string",
        titleLink: "string",
        tlsInsecureSkipVerify: false,
        username: "string",
    });
    
    type: chronosphere:SlackAlertNotifier
    properties:
        actions:
            - actionConfirmDismissText: string
              actionConfirmOkText: string
              actionConfirmText: string
              actionConfirmTile: string
              name: string
              style: string
              text: string
              type: string
              url: string
              value: string
        apiUrl: string
        basicAuthPassword: string
        basicAuthUsername: string
        bearerToken: string
        callbackId: string
        channel: string
        color: string
        fallback: string
        fields:
            - short: false
              title: string
              value: string
        footer: string
        iconEmoji: string
        iconUrl: string
        imageUrl: string
        linkNames: false
        mrkdwnIns:
            - string
        name: string
        pretext: string
        sendResolved: false
        shortFields: false
        slug: string
        text: string
        thumbUrl: string
        title: string
        titleLink: string
        tlsInsecureSkipVerify: false
        username: string
    

    SlackAlertNotifier Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SlackAlertNotifier resource accepts the following input properties:

    ApiUrl string
    Channel string
    Name string
    Actions []SlackAlertNotifierActionArgs
    BasicAuthPassword string
    BasicAuthUsername string
    BearerToken string
    CallbackId string
    Color string
    Fallback string
    Fields []SlackAlertNotifierFieldArgs
    Footer string
    IconEmoji string
    IconUrl string
    ImageUrl string
    LinkNames bool
    MrkdwnIns []string
    Pretext string
    ProxyUrl string

    Deprecated: custom proxy URLs are not supported

    SendResolved bool
    ShortFields bool
    Slug string
    Text string
    ThumbUrl string
    Title string
    TitleLink string
    TlsInsecureSkipVerify bool
    Username string
    apiUrl String
    channel String
    name String
    actions List<SlackAlertNotifierAction>
    basicAuthPassword String
    basicAuthUsername String
    bearerToken String
    callbackId String
    color String
    fallback String
    fields List<SlackAlertNotifierField>
    footer String
    iconEmoji String
    iconUrl String
    imageUrl String
    linkNames Boolean
    mrkdwnIns List<String>
    pretext String
    proxyUrl String

    Deprecated: custom proxy URLs are not supported

    sendResolved Boolean
    shortFields Boolean
    slug String
    text String
    thumbUrl String
    title String
    titleLink String
    tlsInsecureSkipVerify Boolean
    username String
    apiUrl string
    channel string
    name string
    actions SlackAlertNotifierAction[]
    basicAuthPassword string
    basicAuthUsername string
    bearerToken string
    callbackId string
    color string
    fallback string
    fields SlackAlertNotifierField[]
    footer string
    iconEmoji string
    iconUrl string
    imageUrl string
    linkNames boolean
    mrkdwnIns string[]
    pretext string
    proxyUrl string

    Deprecated: custom proxy URLs are not supported

    sendResolved boolean
    shortFields boolean
    slug string
    text string
    thumbUrl string
    title string
    titleLink string
    tlsInsecureSkipVerify boolean
    username string
    apiUrl String
    channel String
    name String
    actions List<Property Map>
    basicAuthPassword String
    basicAuthUsername String
    bearerToken String
    callbackId String
    color String
    fallback String
    fields List<Property Map>
    footer String
    iconEmoji String
    iconUrl String
    imageUrl String
    linkNames Boolean
    mrkdwnIns List<String>
    pretext String
    proxyUrl String

    Deprecated: custom proxy URLs are not supported

    sendResolved Boolean
    shortFields Boolean
    slug String
    text String
    thumbUrl String
    title String
    titleLink String
    tlsInsecureSkipVerify Boolean
    username String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SlackAlertNotifier 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 SlackAlertNotifier Resource

    Get an existing SlackAlertNotifier 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?: SlackAlertNotifierState, opts?: CustomResourceOptions): SlackAlertNotifier
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[Sequence[SlackAlertNotifierActionArgs]] = None,
            api_url: Optional[str] = None,
            basic_auth_password: Optional[str] = None,
            basic_auth_username: Optional[str] = None,
            bearer_token: Optional[str] = None,
            callback_id: Optional[str] = None,
            channel: Optional[str] = None,
            color: Optional[str] = None,
            fallback: Optional[str] = None,
            fields: Optional[Sequence[SlackAlertNotifierFieldArgs]] = None,
            footer: Optional[str] = None,
            icon_emoji: Optional[str] = None,
            icon_url: Optional[str] = None,
            image_url: Optional[str] = None,
            link_names: Optional[bool] = None,
            mrkdwn_ins: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            pretext: Optional[str] = None,
            proxy_url: Optional[str] = None,
            send_resolved: Optional[bool] = None,
            short_fields: Optional[bool] = None,
            slug: Optional[str] = None,
            text: Optional[str] = None,
            thumb_url: Optional[str] = None,
            title: Optional[str] = None,
            title_link: Optional[str] = None,
            tls_insecure_skip_verify: Optional[bool] = None,
            username: Optional[str] = None) -> SlackAlertNotifier
    func GetSlackAlertNotifier(ctx *Context, name string, id IDInput, state *SlackAlertNotifierState, opts ...ResourceOption) (*SlackAlertNotifier, error)
    public static SlackAlertNotifier Get(string name, Input<string> id, SlackAlertNotifierState? state, CustomResourceOptions? opts = null)
    public static SlackAlertNotifier get(String name, Output<String> id, SlackAlertNotifierState 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.
    The following state arguments are supported:
    Actions []SlackAlertNotifierActionArgs
    ApiUrl string
    BasicAuthPassword string
    BasicAuthUsername string
    BearerToken string
    CallbackId string
    Channel string
    Color string
    Fallback string
    Fields []SlackAlertNotifierFieldArgs
    Footer string
    IconEmoji string
    IconUrl string
    ImageUrl string
    LinkNames bool
    MrkdwnIns []string
    Name string
    Pretext string
    ProxyUrl string

    Deprecated: custom proxy URLs are not supported

    SendResolved bool
    ShortFields bool
    Slug string
    Text string
    ThumbUrl string
    Title string
    TitleLink string
    TlsInsecureSkipVerify bool
    Username string
    actions List<SlackAlertNotifierAction>
    apiUrl String
    basicAuthPassword String
    basicAuthUsername String
    bearerToken String
    callbackId String
    channel String
    color String
    fallback String
    fields List<SlackAlertNotifierField>
    footer String
    iconEmoji String
    iconUrl String
    imageUrl String
    linkNames Boolean
    mrkdwnIns List<String>
    name String
    pretext String
    proxyUrl String

    Deprecated: custom proxy URLs are not supported

    sendResolved Boolean
    shortFields Boolean
    slug String
    text String
    thumbUrl String
    title String
    titleLink String
    tlsInsecureSkipVerify Boolean
    username String
    actions SlackAlertNotifierAction[]
    apiUrl string
    basicAuthPassword string
    basicAuthUsername string
    bearerToken string
    callbackId string
    channel string
    color string
    fallback string
    fields SlackAlertNotifierField[]
    footer string
    iconEmoji string
    iconUrl string
    imageUrl string
    linkNames boolean
    mrkdwnIns string[]
    name string
    pretext string
    proxyUrl string

    Deprecated: custom proxy URLs are not supported

    sendResolved boolean
    shortFields boolean
    slug string
    text string
    thumbUrl string
    title string
    titleLink string
    tlsInsecureSkipVerify boolean
    username string
    actions List<Property Map>
    apiUrl String
    basicAuthPassword String
    basicAuthUsername String
    bearerToken String
    callbackId String
    channel String
    color String
    fallback String
    fields List<Property Map>
    footer String
    iconEmoji String
    iconUrl String
    imageUrl String
    linkNames Boolean
    mrkdwnIns List<String>
    name String
    pretext String
    proxyUrl String

    Deprecated: custom proxy URLs are not supported

    sendResolved Boolean
    shortFields Boolean
    slug String
    text String
    thumbUrl String
    title String
    titleLink String
    tlsInsecureSkipVerify Boolean
    username String

    Supporting Types

    SlackAlertNotifierAction, SlackAlertNotifierActionArgs

    ActionConfirmDismissText string
    ActionConfirmOkText string
    ActionConfirmText string
    ActionConfirmTile string
    Name string
    Style string
    Text string
    Type string
    Url string
    Value string
    ActionConfirmDismissText string
    ActionConfirmOkText string
    ActionConfirmText string
    ActionConfirmTile string
    Name string
    Style string
    Text string
    Type string
    Url string
    Value string
    actionConfirmDismissText String
    actionConfirmOkText String
    actionConfirmText String
    actionConfirmTile String
    name String
    style String
    text String
    type String
    url String
    value String
    actionConfirmDismissText string
    actionConfirmOkText string
    actionConfirmText string
    actionConfirmTile string
    name string
    style string
    text string
    type string
    url string
    value string
    actionConfirmDismissText String
    actionConfirmOkText String
    actionConfirmText String
    actionConfirmTile String
    name String
    style String
    text String
    type String
    url String
    value String

    SlackAlertNotifierField, SlackAlertNotifierFieldArgs

    Short bool
    Title string
    Value string
    Short bool
    Title string
    Value string
    short_ Boolean
    title String
    value String
    short boolean
    title string
    value string
    short bool
    title str
    value str
    short Boolean
    title String
    value String

    Package Details

    Repository
    chronosphere chronosphereio/pulumi-chronosphere
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the chronosphere Terraform Provider.
    chronosphere logo
    Chronosphere v0.9.3 published on Tuesday, Oct 8, 2024 by Chronosphere