1. Packages
  2. Rootly
  3. API Docs
  4. WorkflowCustomFieldSelection
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

rootly.WorkflowCustomFieldSelection

Explore with Pulumi AI

rootly logo
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

    Create WorkflowCustomFieldSelection Resource

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

    Constructor syntax

    new WorkflowCustomFieldSelection(name: string, args: WorkflowCustomFieldSelectionArgs, opts?: CustomResourceOptions);
    @overload
    def WorkflowCustomFieldSelection(resource_name: str,
                                     args: WorkflowCustomFieldSelectionArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def WorkflowCustomFieldSelection(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     custom_field_id: Optional[int] = None,
                                     incident_condition: Optional[str] = None,
                                     selected_option_ids: Optional[Sequence[int]] = None,
                                     values: Optional[Sequence[str]] = None,
                                     workflow_id: Optional[str] = None)
    func NewWorkflowCustomFieldSelection(ctx *Context, name string, args WorkflowCustomFieldSelectionArgs, opts ...ResourceOption) (*WorkflowCustomFieldSelection, error)
    public WorkflowCustomFieldSelection(string name, WorkflowCustomFieldSelectionArgs args, CustomResourceOptions? opts = null)
    public WorkflowCustomFieldSelection(String name, WorkflowCustomFieldSelectionArgs args)
    public WorkflowCustomFieldSelection(String name, WorkflowCustomFieldSelectionArgs args, CustomResourceOptions options)
    
    type: rootly:WorkflowCustomFieldSelection
    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 WorkflowCustomFieldSelectionArgs
    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 WorkflowCustomFieldSelectionArgs
    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 WorkflowCustomFieldSelectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkflowCustomFieldSelectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkflowCustomFieldSelectionArgs
    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 workflowCustomFieldSelectionResource = new Rootly.WorkflowCustomFieldSelection("workflowCustomFieldSelectionResource", new()
    {
        CustomFieldId = 0,
        IncidentCondition = "string",
        SelectedOptionIds = new[]
        {
            0,
        },
        Values = new[]
        {
            "string",
        },
        WorkflowId = "string",
    });
    
    example, err := rootly.NewWorkflowCustomFieldSelection(ctx, "workflowCustomFieldSelectionResource", &rootly.WorkflowCustomFieldSelectionArgs{
    	CustomFieldId:     pulumi.Int(0),
    	IncidentCondition: pulumi.String("string"),
    	SelectedOptionIds: pulumi.IntArray{
    		pulumi.Int(0),
    	},
    	Values: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	WorkflowId: pulumi.String("string"),
    })
    
    var workflowCustomFieldSelectionResource = new WorkflowCustomFieldSelection("workflowCustomFieldSelectionResource", WorkflowCustomFieldSelectionArgs.builder()
        .customFieldId(0)
        .incidentCondition("string")
        .selectedOptionIds(0)
        .values("string")
        .workflowId("string")
        .build());
    
    workflow_custom_field_selection_resource = rootly.WorkflowCustomFieldSelection("workflowCustomFieldSelectionResource",
        custom_field_id=0,
        incident_condition="string",
        selected_option_ids=[0],
        values=["string"],
        workflow_id="string")
    
    const workflowCustomFieldSelectionResource = new rootly.WorkflowCustomFieldSelection("workflowCustomFieldSelectionResource", {
        customFieldId: 0,
        incidentCondition: "string",
        selectedOptionIds: [0],
        values: ["string"],
        workflowId: "string",
    });
    
    type: rootly:WorkflowCustomFieldSelection
    properties:
        customFieldId: 0
        incidentCondition: string
        selectedOptionIds:
            - 0
        values:
            - string
        workflowId: string
    

    WorkflowCustomFieldSelection 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 WorkflowCustomFieldSelection resource accepts the following input properties:

    CustomFieldId int
    The custom field for this selection
    IncidentCondition string
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    SelectedOptionIds List<int>
    Values List<string>
    WorkflowId string
    The workflow for this selection
    CustomFieldId int
    The custom field for this selection
    IncidentCondition string
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    SelectedOptionIds []int
    Values []string
    WorkflowId string
    The workflow for this selection
    customFieldId Integer
    The custom field for this selection
    incidentCondition String
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selectedOptionIds List<Integer>
    values List<String>
    workflowId String
    The workflow for this selection
    customFieldId number
    The custom field for this selection
    incidentCondition string
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selectedOptionIds number[]
    values string[]
    workflowId string
    The workflow for this selection
    custom_field_id int
    The custom field for this selection
    incident_condition str
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selected_option_ids Sequence[int]
    values Sequence[str]
    workflow_id str
    The workflow for this selection
    customFieldId Number
    The custom field for this selection
    incidentCondition String
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selectedOptionIds List<Number>
    values List<String>
    workflowId String
    The workflow for this selection

    Outputs

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

    Get an existing WorkflowCustomFieldSelection 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?: WorkflowCustomFieldSelectionState, opts?: CustomResourceOptions): WorkflowCustomFieldSelection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            custom_field_id: Optional[int] = None,
            incident_condition: Optional[str] = None,
            selected_option_ids: Optional[Sequence[int]] = None,
            values: Optional[Sequence[str]] = None,
            workflow_id: Optional[str] = None) -> WorkflowCustomFieldSelection
    func GetWorkflowCustomFieldSelection(ctx *Context, name string, id IDInput, state *WorkflowCustomFieldSelectionState, opts ...ResourceOption) (*WorkflowCustomFieldSelection, error)
    public static WorkflowCustomFieldSelection Get(string name, Input<string> id, WorkflowCustomFieldSelectionState? state, CustomResourceOptions? opts = null)
    public static WorkflowCustomFieldSelection get(String name, Output<String> id, WorkflowCustomFieldSelectionState 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:
    CustomFieldId int
    The custom field for this selection
    IncidentCondition string
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    SelectedOptionIds List<int>
    Values List<string>
    WorkflowId string
    The workflow for this selection
    CustomFieldId int
    The custom field for this selection
    IncidentCondition string
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    SelectedOptionIds []int
    Values []string
    WorkflowId string
    The workflow for this selection
    customFieldId Integer
    The custom field for this selection
    incidentCondition String
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selectedOptionIds List<Integer>
    values List<String>
    workflowId String
    The workflow for this selection
    customFieldId number
    The custom field for this selection
    incidentCondition string
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selectedOptionIds number[]
    values string[]
    workflowId string
    The workflow for this selection
    custom_field_id int
    The custom field for this selection
    incident_condition str
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selected_option_ids Sequence[int]
    values Sequence[str]
    workflow_id str
    The workflow for this selection
    customFieldId Number
    The custom field for this selection
    incidentCondition String
    The trigger condition. Value must be one of IS, ANY, CONTAINS, CONTAINS_ALL, CONTAINS_NONE, NONE, SET, UNSET.
    selectedOptionIds List<Number>
    values List<String>
    workflowId String
    The workflow for this selection

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly