rootly.FormFieldOption
Explore with Pulumi AI
Example Usage
using Pulumi;
using Rootly = Pulumi.Rootly;
class MyStack : Stack
{
public MyStack()
{
var regionsAffected = new Rootly.FormField("regionsAffected", new Rootly.FormFieldArgs
{
Kind = "custom",
InputKind = "multi_select",
Showns =
{
"web_new_incident_form",
"web_update_incident_form",
},
Requireds =
{
"web_new_incident_form",
"web_update_incident_form",
},
});
var asia = new Rootly.FormFieldOption("asia", new Rootly.FormFieldOptionArgs
{
FormFieldId = regionsAffected.Id,
Value = "Asia",
});
var europe = new Rootly.FormFieldOption("europe", new Rootly.FormFieldOptionArgs
{
FormFieldId = regionsAffected.Id,
Value = "Europe",
});
var northAmerica = new Rootly.FormFieldOption("northAmerica", new Rootly.FormFieldOptionArgs
{
FormFieldId = regionsAffected.Id,
Value = "North America",
});
}
}
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 {
regionsAffected, err := rootly.NewFormField(ctx, "regionsAffected", &rootly.FormFieldArgs{
Kind: pulumi.String("custom"),
InputKind: pulumi.String("multi_select"),
Showns: pulumi.StringArray{
pulumi.String("web_new_incident_form"),
pulumi.String("web_update_incident_form"),
},
Requireds: pulumi.StringArray{
pulumi.String("web_new_incident_form"),
pulumi.String("web_update_incident_form"),
},
})
if err != nil {
return err
}
_, err = rootly.NewFormFieldOption(ctx, "asia", &rootly.FormFieldOptionArgs{
FormFieldId: regionsAffected.ID(),
Value: pulumi.String("Asia"),
})
if err != nil {
return err
}
_, err = rootly.NewFormFieldOption(ctx, "europe", &rootly.FormFieldOptionArgs{
FormFieldId: regionsAffected.ID(),
Value: pulumi.String("Europe"),
})
if err != nil {
return err
}
_, err = rootly.NewFormFieldOption(ctx, "northAmerica", &rootly.FormFieldOptionArgs{
FormFieldId: regionsAffected.ID(),
Value: pulumi.String("North America"),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_rootly as rootly
regions_affected = rootly.FormField("regionsAffected",
kind="custom",
input_kind="multi_select",
showns=[
"web_new_incident_form",
"web_update_incident_form",
],
requireds=[
"web_new_incident_form",
"web_update_incident_form",
])
asia = rootly.FormFieldOption("asia",
form_field_id=regions_affected.id,
value="Asia")
europe = rootly.FormFieldOption("europe",
form_field_id=regions_affected.id,
value="Europe")
north_america = rootly.FormFieldOption("northAmerica",
form_field_id=regions_affected.id,
value="North America")
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const regionsAffected = new rootly.FormField("regionsAffected", {
kind: "custom",
inputKind: "multi_select",
showns: [
"web_new_incident_form",
"web_update_incident_form",
],
requireds: [
"web_new_incident_form",
"web_update_incident_form",
],
});
const asia = new rootly.FormFieldOption("asia", {
formFieldId: regionsAffected.id,
value: "Asia",
});
const europe = new rootly.FormFieldOption("europe", {
formFieldId: regionsAffected.id,
value: "Europe",
});
const northAmerica = new rootly.FormFieldOption("northAmerica", {
formFieldId: regionsAffected.id,
value: "North America",
});
Coming soon!
Create FormFieldOption Resource
new FormFieldOption(name: string, args: FormFieldOptionArgs, opts?: CustomResourceOptions);
@overload
def FormFieldOption(resource_name: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
default: Optional[bool] = None,
form_field_id: Optional[str] = None,
position: Optional[int] = None,
value: Optional[str] = None)
@overload
def FormFieldOption(resource_name: str,
args: FormFieldOptionArgs,
opts: Optional[ResourceOptions] = None)
func NewFormFieldOption(ctx *Context, name string, args FormFieldOptionArgs, opts ...ResourceOption) (*FormFieldOption, error)
public FormFieldOption(string name, FormFieldOptionArgs args, CustomResourceOptions? opts = null)
public FormFieldOption(String name, FormFieldOptionArgs args)
public FormFieldOption(String name, FormFieldOptionArgs args, CustomResourceOptions options)
type: rootly:FormFieldOption
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FormFieldOptionArgs
- 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 FormFieldOptionArgs
- 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 FormFieldOptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FormFieldOptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FormFieldOptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FormFieldOption 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 FormFieldOption resource accepts the following input properties:
- Form
Field stringId The ID of the parent custom field
- Value string
The value of the form_field_option
- Color string
The hex color of the form_field_option
- Default bool
- Position int
The position of the form_field_option
- Form
Field stringId The ID of the parent custom field
- Value string
The value of the form_field_option
- Color string
The hex color of the form_field_option
- Default bool
- Position int
The position of the form_field_option
- form
Field StringId The ID of the parent custom field
- value String
The value of the form_field_option
- color String
The hex color of the form_field_option
- default_ Boolean
- position Integer
The position of the form_field_option
- form
Field stringId The ID of the parent custom field
- value string
The value of the form_field_option
- color string
The hex color of the form_field_option
- default boolean
- position number
The position of the form_field_option
- form_
field_ strid The ID of the parent custom field
- value str
The value of the form_field_option
- color str
The hex color of the form_field_option
- default bool
- position int
The position of the form_field_option
- form
Field StringId The ID of the parent custom field
- value String
The value of the form_field_option
- color String
The hex color of the form_field_option
- default Boolean
- position Number
The position of the form_field_option
Outputs
All input properties are implicitly available as output properties. Additionally, the FormFieldOption 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 FormFieldOption Resource
Get an existing FormFieldOption 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?: FormFieldOptionState, opts?: CustomResourceOptions): FormFieldOption
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
default: Optional[bool] = None,
form_field_id: Optional[str] = None,
position: Optional[int] = None,
value: Optional[str] = None) -> FormFieldOption
func GetFormFieldOption(ctx *Context, name string, id IDInput, state *FormFieldOptionState, opts ...ResourceOption) (*FormFieldOption, error)
public static FormFieldOption Get(string name, Input<string> id, FormFieldOptionState? state, CustomResourceOptions? opts = null)
public static FormFieldOption get(String name, Output<String> id, FormFieldOptionState 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
The hex color of the form_field_option
- Default bool
- Form
Field stringId The ID of the parent custom field
- Position int
The position of the form_field_option
- Value string
The value of the form_field_option
- Color string
The hex color of the form_field_option
- Default bool
- Form
Field stringId The ID of the parent custom field
- Position int
The position of the form_field_option
- Value string
The value of the form_field_option
- color String
The hex color of the form_field_option
- default_ Boolean
- form
Field StringId The ID of the parent custom field
- position Integer
The position of the form_field_option
- value String
The value of the form_field_option
- color string
The hex color of the form_field_option
- default boolean
- form
Field stringId The ID of the parent custom field
- position number
The position of the form_field_option
- value string
The value of the form_field_option
- color str
The hex color of the form_field_option
- default bool
- form_
field_ strid The ID of the parent custom field
- position int
The position of the form_field_option
- value str
The value of the form_field_option
- color String
The hex color of the form_field_option
- default Boolean
- form
Field StringId The ID of the parent custom field
- position Number
The position of the form_field_option
- value String
The value of the form_field_option
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rootly
Terraform Provider.