rootly.Functionality
Explore with Pulumi AI
Example Usage
using Pulumi;
using Rootly = Pulumi.Rootly;
class MyStack : Stack
{
public MyStack()
{
var addItemsToCard = new Rootly.Functionality("addItemsToCard", new Rootly.FunctionalityArgs
{
Color = "#800080",
NotifyEmails =
{
"foo@acme.com",
"bar@acme.com",
},
SlackAliases =
{
new Rootly.Inputs.FunctionalitySlackAliasArgs
{
Id = "S0614TZR7",
Name = "Alias 1",
},
},
SlackChannels =
{
new Rootly.Inputs.FunctionalitySlackChannelArgs
{
Id = "C06A4RZR9",
Name = "Channel 1",
},
new Rootly.Inputs.FunctionalitySlackChannelArgs
{
Id = "C02T4RYR2",
Name = "Channel 2",
},
},
});
var loggingIn = new Rootly.Functionality("loggingIn", new Rootly.FunctionalityArgs
{
Color = "#800080",
NotifyEmails =
{
"foo@acme.com",
"bar@acme.com",
},
SlackAliases =
{
new Rootly.Inputs.FunctionalitySlackAliasArgs
{
Id = "S0614TZR7",
Name = "Alias 1",
},
},
SlackChannels =
{
new Rootly.Inputs.FunctionalitySlackChannelArgs
{
Id = "C06A4RZR9",
Name = "Channel 1",
},
new Rootly.Inputs.FunctionalitySlackChannelArgs
{
Id = "C02T4RYR2",
Name = "Channel 2",
},
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rootly.NewFunctionality(ctx, "addItemsToCard", &rootly.FunctionalityArgs{
Color: pulumi.String("#800080"),
NotifyEmails: pulumi.StringArray{
pulumi.String("foo@acme.com"),
pulumi.String("bar@acme.com"),
},
SlackAliases: FunctionalitySlackAliasArray{
&FunctionalitySlackAliasArgs{
Id: pulumi.String("S0614TZR7"),
Name: pulumi.String("Alias 1"),
},
},
SlackChannels: FunctionalitySlackChannelArray{
&FunctionalitySlackChannelArgs{
Id: pulumi.String("C06A4RZR9"),
Name: pulumi.String("Channel 1"),
},
&FunctionalitySlackChannelArgs{
Id: pulumi.String("C02T4RYR2"),
Name: pulumi.String("Channel 2"),
},
},
})
if err != nil {
return err
}
_, err = rootly.NewFunctionality(ctx, "loggingIn", &rootly.FunctionalityArgs{
Color: pulumi.String("#800080"),
NotifyEmails: pulumi.StringArray{
pulumi.String("foo@acme.com"),
pulumi.String("bar@acme.com"),
},
SlackAliases: FunctionalitySlackAliasArray{
&FunctionalitySlackAliasArgs{
Id: pulumi.String("S0614TZR7"),
Name: pulumi.String("Alias 1"),
},
},
SlackChannels: FunctionalitySlackChannelArray{
&FunctionalitySlackChannelArgs{
Id: pulumi.String("C06A4RZR9"),
Name: pulumi.String("Channel 1"),
},
&FunctionalitySlackChannelArgs{
Id: pulumi.String("C02T4RYR2"),
Name: pulumi.String("Channel 2"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_rootly as rootly
add_items_to_card = rootly.Functionality("addItemsToCard",
color="#800080",
notify_emails=[
"foo@acme.com",
"bar@acme.com",
],
slack_aliases=[rootly.FunctionalitySlackAliasArgs(
id="S0614TZR7",
name="Alias 1",
)],
slack_channels=[
rootly.FunctionalitySlackChannelArgs(
id="C06A4RZR9",
name="Channel 1",
),
rootly.FunctionalitySlackChannelArgs(
id="C02T4RYR2",
name="Channel 2",
),
])
logging_in = rootly.Functionality("loggingIn",
color="#800080",
notify_emails=[
"foo@acme.com",
"bar@acme.com",
],
slack_aliases=[rootly.FunctionalitySlackAliasArgs(
id="S0614TZR7",
name="Alias 1",
)],
slack_channels=[
rootly.FunctionalitySlackChannelArgs(
id="C06A4RZR9",
name="Channel 1",
),
rootly.FunctionalitySlackChannelArgs(
id="C02T4RYR2",
name="Channel 2",
),
])
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const addItemsToCard = new rootly.Functionality("add_items_to_card", {
color: "#800080",
notifyEmails: [
"foo@acme.com",
"bar@acme.com",
],
slackAliases: [{
id: "S0614TZR7",
name: "Alias 1", // Any string really
}],
slackChannels: [
{
id: "C06A4RZR9",
name: "Channel 1", // Any string really
},
{
id: "C02T4RYR2",
name: "Channel 2", // Any string really
},
],
});
const loggingIn = new rootly.Functionality("logging_in", {
color: "#800080",
notifyEmails: [
"foo@acme.com",
"bar@acme.com",
],
slackAliases: [{
id: "S0614TZR7",
name: "Alias 1", // Any string really
}],
slackChannels: [
{
id: "C06A4RZR9",
name: "Channel 1", // Any string really
},
{
id: "C02T4RYR2",
name: "Channel 2", // Any string really
},
],
});
Coming soon!
Create Functionality Resource
new Functionality(name: string, args?: FunctionalityArgs, opts?: CustomResourceOptions);
@overload
def Functionality(resource_name: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
description: Optional[str] = None,
environment_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
notify_emails: Optional[Sequence[str]] = None,
owners_group_ids: Optional[Sequence[str]] = None,
owners_user_ids: Optional[Sequence[int]] = None,
position: Optional[int] = None,
public_description: Optional[str] = None,
service_ids: Optional[Sequence[str]] = None,
slack_aliases: Optional[Sequence[FunctionalitySlackAliasArgs]] = None,
slack_channels: Optional[Sequence[FunctionalitySlackChannelArgs]] = None,
slug: Optional[str] = None,
status: Optional[str] = None)
@overload
def Functionality(resource_name: str,
args: Optional[FunctionalityArgs] = None,
opts: Optional[ResourceOptions] = None)
func NewFunctionality(ctx *Context, name string, args *FunctionalityArgs, opts ...ResourceOption) (*Functionality, error)
public Functionality(string name, FunctionalityArgs? args = null, CustomResourceOptions? opts = null)
public Functionality(String name, FunctionalityArgs args)
public Functionality(String name, FunctionalityArgs args, CustomResourceOptions options)
type: rootly:Functionality
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionalityArgs
- 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 FunctionalityArgs
- 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 FunctionalityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FunctionalityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FunctionalityArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Functionality 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 Functionality resource accepts the following input properties:
- Color string
- Description string
The description of the functionality
- Environment
Ids List<string> Environments associated with this functionality
- Name string
The name of the functionality
- Notify
Emails List<string> Emails attached to the functionality
- Owners
Group List<string>Ids Owner Teams associated with this functionality
- Owners
User List<int>Ids Owner Users associated with this service
- Position int
Position of the functionality
- Public
Description string The public description of the functionality
- Service
Ids List<string> Services associated with this functionality
- Slack
Aliases List<FunctionalitySlack Alias> Slack Aliases associated with this service
- Slack
Channels List<FunctionalitySlack Channel> Slack Channels associated with this service
- Slug string
The slug of the functionality
- Status string
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- Color string
- Description string
The description of the functionality
- Environment
Ids []string Environments associated with this functionality
- Name string
The name of the functionality
- Notify
Emails []string Emails attached to the functionality
- Owners
Group []stringIds Owner Teams associated with this functionality
- Owners
User []intIds Owner Users associated with this service
- Position int
Position of the functionality
- Public
Description string The public description of the functionality
- Service
Ids []string Services associated with this functionality
- Slack
Aliases []FunctionalitySlack Alias Args Slack Aliases associated with this service
- Slack
Channels []FunctionalitySlack Channel Args Slack Channels associated with this service
- Slug string
The slug of the functionality
- Status string
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color String
- description String
The description of the functionality
- environment
Ids List<String> Environments associated with this functionality
- name String
The name of the functionality
- notify
Emails List<String> Emails attached to the functionality
- owners
Group List<String>Ids Owner Teams associated with this functionality
- owners
User List<Integer>Ids Owner Users associated with this service
- position Integer
Position of the functionality
- public
Description String The public description of the functionality
- service
Ids List<String> Services associated with this functionality
- slack
Aliases List<FunctionalitySlack Alias> Slack Aliases associated with this service
- slack
Channels List<FunctionalitySlack Channel> Slack Channels associated with this service
- slug String
The slug of the functionality
- status String
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color string
- description string
The description of the functionality
- environment
Ids string[] Environments associated with this functionality
- name string
The name of the functionality
- notify
Emails string[] Emails attached to the functionality
- owners
Group string[]Ids Owner Teams associated with this functionality
- owners
User number[]Ids Owner Users associated with this service
- position number
Position of the functionality
- public
Description string The public description of the functionality
- service
Ids string[] Services associated with this functionality
- slack
Aliases FunctionalitySlack Alias[] Slack Aliases associated with this service
- slack
Channels FunctionalitySlack Channel[] Slack Channels associated with this service
- slug string
The slug of the functionality
- status string
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color str
- description str
The description of the functionality
- environment_
ids Sequence[str] Environments associated with this functionality
- name str
The name of the functionality
- notify_
emails Sequence[str] Emails attached to the functionality
- owners_
group_ Sequence[str]ids Owner Teams associated with this functionality
- owners_
user_ Sequence[int]ids Owner Users associated with this service
- position int
Position of the functionality
- public_
description str The public description of the functionality
- service_
ids Sequence[str] Services associated with this functionality
- slack_
aliases Sequence[FunctionalitySlack Alias Args] Slack Aliases associated with this service
- slack_
channels Sequence[FunctionalitySlack Channel Args] Slack Channels associated with this service
- slug str
The slug of the functionality
- status str
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color String
- description String
The description of the functionality
- environment
Ids List<String> Environments associated with this functionality
- name String
The name of the functionality
- notify
Emails List<String> Emails attached to the functionality
- owners
Group List<String>Ids Owner Teams associated with this functionality
- owners
User List<Number>Ids Owner Users associated with this service
- position Number
Position of the functionality
- public
Description String The public description of the functionality
- service
Ids List<String> Services associated with this functionality
- slack
Aliases List<Property Map> Slack Aliases associated with this service
- slack
Channels List<Property Map> Slack Channels associated with this service
- slug String
The slug of the functionality
- status String
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
Outputs
All input properties are implicitly available as output properties. Additionally, the Functionality 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 Functionality Resource
Get an existing Functionality 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?: FunctionalityState, opts?: CustomResourceOptions): Functionality
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
description: Optional[str] = None,
environment_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
notify_emails: Optional[Sequence[str]] = None,
owners_group_ids: Optional[Sequence[str]] = None,
owners_user_ids: Optional[Sequence[int]] = None,
position: Optional[int] = None,
public_description: Optional[str] = None,
service_ids: Optional[Sequence[str]] = None,
slack_aliases: Optional[Sequence[FunctionalitySlackAliasArgs]] = None,
slack_channels: Optional[Sequence[FunctionalitySlackChannelArgs]] = None,
slug: Optional[str] = None,
status: Optional[str] = None) -> Functionality
func GetFunctionality(ctx *Context, name string, id IDInput, state *FunctionalityState, opts ...ResourceOption) (*Functionality, error)
public static Functionality Get(string name, Input<string> id, FunctionalityState? state, CustomResourceOptions? opts = null)
public static Functionality get(String name, Output<String> id, FunctionalityState 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.
- Color string
- Description string
The description of the functionality
- Environment
Ids List<string> Environments associated with this functionality
- Name string
The name of the functionality
- Notify
Emails List<string> Emails attached to the functionality
- Owners
Group List<string>Ids Owner Teams associated with this functionality
- Owners
User List<int>Ids Owner Users associated with this service
- Position int
Position of the functionality
- Public
Description string The public description of the functionality
- Service
Ids List<string> Services associated with this functionality
- Slack
Aliases List<FunctionalitySlack Alias> Slack Aliases associated with this service
- Slack
Channels List<FunctionalitySlack Channel> Slack Channels associated with this service
- Slug string
The slug of the functionality
- Status string
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- Color string
- Description string
The description of the functionality
- Environment
Ids []string Environments associated with this functionality
- Name string
The name of the functionality
- Notify
Emails []string Emails attached to the functionality
- Owners
Group []stringIds Owner Teams associated with this functionality
- Owners
User []intIds Owner Users associated with this service
- Position int
Position of the functionality
- Public
Description string The public description of the functionality
- Service
Ids []string Services associated with this functionality
- Slack
Aliases []FunctionalitySlack Alias Args Slack Aliases associated with this service
- Slack
Channels []FunctionalitySlack Channel Args Slack Channels associated with this service
- Slug string
The slug of the functionality
- Status string
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color String
- description String
The description of the functionality
- environment
Ids List<String> Environments associated with this functionality
- name String
The name of the functionality
- notify
Emails List<String> Emails attached to the functionality
- owners
Group List<String>Ids Owner Teams associated with this functionality
- owners
User List<Integer>Ids Owner Users associated with this service
- position Integer
Position of the functionality
- public
Description String The public description of the functionality
- service
Ids List<String> Services associated with this functionality
- slack
Aliases List<FunctionalitySlack Alias> Slack Aliases associated with this service
- slack
Channels List<FunctionalitySlack Channel> Slack Channels associated with this service
- slug String
The slug of the functionality
- status String
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color string
- description string
The description of the functionality
- environment
Ids string[] Environments associated with this functionality
- name string
The name of the functionality
- notify
Emails string[] Emails attached to the functionality
- owners
Group string[]Ids Owner Teams associated with this functionality
- owners
User number[]Ids Owner Users associated with this service
- position number
Position of the functionality
- public
Description string The public description of the functionality
- service
Ids string[] Services associated with this functionality
- slack
Aliases FunctionalitySlack Alias[] Slack Aliases associated with this service
- slack
Channels FunctionalitySlack Channel[] Slack Channels associated with this service
- slug string
The slug of the functionality
- status string
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color str
- description str
The description of the functionality
- environment_
ids Sequence[str] Environments associated with this functionality
- name str
The name of the functionality
- notify_
emails Sequence[str] Emails attached to the functionality
- owners_
group_ Sequence[str]ids Owner Teams associated with this functionality
- owners_
user_ Sequence[int]ids Owner Users associated with this service
- position int
Position of the functionality
- public_
description str The public description of the functionality
- service_
ids Sequence[str] Services associated with this functionality
- slack_
aliases Sequence[FunctionalitySlack Alias Args] Slack Aliases associated with this service
- slack_
channels Sequence[FunctionalitySlack Channel Args] Slack Channels associated with this service
- slug str
The slug of the functionality
- status str
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
- color String
- description String
The description of the functionality
- environment
Ids List<String> Environments associated with this functionality
- name String
The name of the functionality
- notify
Emails List<String> Emails attached to the functionality
- owners
Group List<String>Ids Owner Teams associated with this functionality
- owners
User List<Number>Ids Owner Users associated with this service
- position Number
Position of the functionality
- public
Description String The public description of the functionality
- service
Ids List<String> Services associated with this functionality
- slack
Aliases List<Property Map> Slack Aliases associated with this service
- slack
Channels List<Property Map> Slack Channels associated with this service
- slug String
The slug of the functionality
- status String
The status of the functionality. Value must be one of
operational
,impacted
,outage
,partial_outage
,major_outage
.
Supporting Types
FunctionalitySlackAlias, FunctionalitySlackAliasArgs
FunctionalitySlackChannel, FunctionalitySlackChannelArgs
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rootly
Terraform Provider.