Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere
chronosphere.SlackAlertNotifier
Explore with Pulumi AI
Chronosphere v0.9.2 published on Monday, Sep 9, 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=[chronosphere.SlackAlertNotifierFieldArgs(
short=False,
title="string",
value="string",
)],
footer="string",
icon_emoji="string",
icon_url="string",
image_url="string",
actions=[chronosphere.SlackAlertNotifierActionArgs(
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
The SlackAlertNotifier resource accepts the following input properties:
- Api
Url string - Channel string
- Name string
- Actions
List<Chronosphere.
Pulumi. Inputs. Slack Alert Notifier Action> - Basic
Auth stringPassword - Basic
Auth stringUsername - Bearer
Token string - Callback
Id string - Color string
- Fallback string
- Fields
List<Chronosphere.
Pulumi. Inputs. Slack Alert Notifier Field> - string
- Icon
Emoji string - Icon
Url string - Image
Url string - Link
Names bool - Mrkdwn
Ins List<string> - Pretext string
- Proxy
Url string - Send
Resolved bool - Short
Fields bool - Slug string
- Text string
- Thumb
Url string - Title string
- Title
Link string - Tls
Insecure boolSkip Verify - Username string
- Api
Url string - Channel string
- Name string
- Actions
[]Slack
Alert Notifier Action Args - Basic
Auth stringPassword - Basic
Auth stringUsername - Bearer
Token string - Callback
Id string - Color string
- Fallback string
- Fields
[]Slack
Alert Notifier Field Args - string
- Icon
Emoji string - Icon
Url string - Image
Url string - Link
Names bool - Mrkdwn
Ins []string - Pretext string
- Proxy
Url string - Send
Resolved bool - Short
Fields bool - Slug string
- Text string
- Thumb
Url string - Title string
- Title
Link string - Tls
Insecure boolSkip Verify - Username string
- api
Url String - channel String
- name String
- actions
List<Slack
Alert Notifier Action> - basic
Auth StringPassword - basic
Auth StringUsername - bearer
Token String - callback
Id String - color String
- fallback String
- fields
List<Slack
Alert Notifier Field> - String
- icon
Emoji String - icon
Url String - image
Url String - link
Names Boolean - mrkdwn
Ins List<String> - pretext String
- proxy
Url String - send
Resolved Boolean - short
Fields Boolean - slug String
- text String
- thumb
Url String - title String
- title
Link String - tls
Insecure BooleanSkip Verify - username String
- api
Url string - channel string
- name string
- actions
Slack
Alert Notifier Action[] - basic
Auth stringPassword - basic
Auth stringUsername - bearer
Token string - callback
Id string - color string
- fallback string
- fields
Slack
Alert Notifier Field[] - string
- icon
Emoji string - icon
Url string - image
Url string - link
Names boolean - mrkdwn
Ins string[] - pretext string
- proxy
Url string - send
Resolved boolean - short
Fields boolean - slug string
- text string
- thumb
Url string - title string
- title
Link string - tls
Insecure booleanSkip Verify - username string
- api_
url str - channel str
- name str
- actions
Sequence[Slack
Alert Notifier Action Args] - basic_
auth_ strpassword - basic_
auth_ strusername - bearer_
token str - callback_
id str - color str
- fallback str
- fields
Sequence[Slack
Alert Notifier Field Args] - str
- icon_
emoji str - icon_
url str - image_
url str - link_
names bool - mrkdwn_
ins Sequence[str] - pretext str
- proxy_
url str - send_
resolved bool - short_
fields bool - slug str
- text str
- thumb_
url str - title str
- title_
link str - tls_
insecure_ boolskip_ verify - username str
- api
Url String - channel String
- name String
- actions List<Property Map>
- basic
Auth StringPassword - basic
Auth StringUsername - bearer
Token String - callback
Id String - color String
- fallback String
- fields List<Property Map>
- String
- icon
Emoji String - icon
Url String - image
Url String - link
Names Boolean - mrkdwn
Ins List<String> - pretext String
- proxy
Url String - send
Resolved Boolean - short
Fields Boolean - slug String
- text String
- thumb
Url String - title String
- title
Link String - tls
Insecure BooleanSkip Verify - 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.
- Actions
List<Chronosphere.
Pulumi. Inputs. Slack Alert Notifier Action> - Api
Url string - Basic
Auth stringPassword - Basic
Auth stringUsername - Bearer
Token string - Callback
Id string - Channel string
- Color string
- Fallback string
- Fields
List<Chronosphere.
Pulumi. Inputs. Slack Alert Notifier Field> - string
- Icon
Emoji string - Icon
Url string - Image
Url string - Link
Names bool - Mrkdwn
Ins List<string> - Name string
- Pretext string
- Proxy
Url string - Send
Resolved bool - Short
Fields bool - Slug string
- Text string
- Thumb
Url string - Title string
- Title
Link string - Tls
Insecure boolSkip Verify - Username string
- Actions
[]Slack
Alert Notifier Action Args - Api
Url string - Basic
Auth stringPassword - Basic
Auth stringUsername - Bearer
Token string - Callback
Id string - Channel string
- Color string
- Fallback string
- Fields
[]Slack
Alert Notifier Field Args - string
- Icon
Emoji string - Icon
Url string - Image
Url string - Link
Names bool - Mrkdwn
Ins []string - Name string
- Pretext string
- Proxy
Url string - Send
Resolved bool - Short
Fields bool - Slug string
- Text string
- Thumb
Url string - Title string
- Title
Link string - Tls
Insecure boolSkip Verify - Username string
- actions
List<Slack
Alert Notifier Action> - api
Url String - basic
Auth StringPassword - basic
Auth StringUsername - bearer
Token String - callback
Id String - channel String
- color String
- fallback String
- fields
List<Slack
Alert Notifier Field> - String
- icon
Emoji String - icon
Url String - image
Url String - link
Names Boolean - mrkdwn
Ins List<String> - name String
- pretext String
- proxy
Url String - send
Resolved Boolean - short
Fields Boolean - slug String
- text String
- thumb
Url String - title String
- title
Link String - tls
Insecure BooleanSkip Verify - username String
- actions
Slack
Alert Notifier Action[] - api
Url string - basic
Auth stringPassword - basic
Auth stringUsername - bearer
Token string - callback
Id string - channel string
- color string
- fallback string
- fields
Slack
Alert Notifier Field[] - string
- icon
Emoji string - icon
Url string - image
Url string - link
Names boolean - mrkdwn
Ins string[] - name string
- pretext string
- proxy
Url string - send
Resolved boolean - short
Fields boolean - slug string
- text string
- thumb
Url string - title string
- title
Link string - tls
Insecure booleanSkip Verify - username string
- actions
Sequence[Slack
Alert Notifier Action Args] - api_
url str - basic_
auth_ strpassword - basic_
auth_ strusername - bearer_
token str - callback_
id str - channel str
- color str
- fallback str
- fields
Sequence[Slack
Alert Notifier Field Args] - str
- icon_
emoji str - icon_
url str - image_
url str - link_
names bool - mrkdwn_
ins Sequence[str] - name str
- pretext str
- proxy_
url str - send_
resolved bool - short_
fields bool - slug str
- text str
- thumb_
url str - title str
- title_
link str - tls_
insecure_ boolskip_ verify - username str
- actions List<Property Map>
- api
Url String - basic
Auth StringPassword - basic
Auth StringUsername - bearer
Token String - callback
Id String - channel String
- color String
- fallback String
- fields List<Property Map>
- String
- icon
Emoji String - icon
Url String - image
Url String - link
Names Boolean - mrkdwn
Ins List<String> - name String
- pretext String
- proxy
Url String - send
Resolved Boolean - short
Fields Boolean - slug String
- text String
- thumb
Url String - title String
- title
Link String - tls
Insecure BooleanSkip Verify - username String
Supporting Types
SlackAlertNotifierAction, SlackAlertNotifierActionArgs
- Action
Confirm stringDismiss Text - Action
Confirm stringOk Text - Action
Confirm stringText - Action
Confirm stringTile - Name string
- Style string
- Text string
- Type string
- Url string
- Value string
- Action
Confirm stringDismiss Text - Action
Confirm stringOk Text - Action
Confirm stringText - Action
Confirm stringTile - Name string
- Style string
- Text string
- Type string
- Url string
- Value string
- action
Confirm StringDismiss Text - action
Confirm StringOk Text - action
Confirm StringText - action
Confirm StringTile - name String
- style String
- text String
- type String
- url String
- value String
- action
Confirm stringDismiss Text - action
Confirm stringOk Text - action
Confirm stringText - action
Confirm stringTile - name string
- style string
- text string
- type string
- url string
- value string
- action_
confirm_ strdismiss_ text - action_
confirm_ strok_ text - action_
confirm_ strtext - action_
confirm_ strtile - name str
- style str
- text str
- type str
- url str
- value str
- action
Confirm StringDismiss Text - action
Confirm StringOk Text - action
Confirm StringText - action
Confirm StringTile - name String
- style String
- text String
- type String
- url String
- value String
SlackAlertNotifierField, SlackAlertNotifierFieldArgs
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphere
Terraform Provider.
Chronosphere v0.9.2 published on Monday, Sep 9, 2024 by Chronosphere