1. Packages
  2. Rootly
  3. API Docs
  4. getFormFieldOption
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

rootly.getFormFieldOption

Explore with Pulumi AI

rootly logo
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

    Example Usage

    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var my_form_field_option = Output.Create(Rootly.GetFormFieldOption.InvokeAsync(new Rootly.GetFormFieldOptionArgs
            {
                Slug = "my-form-field-option",
            }));
        }
    
    }
    
    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.LookupFormFieldOption(ctx, &GetFormFieldOptionArgs{
    			Slug: "my-form-field-option",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_rootly as rootly
    
    my_form_field_option = rootly.get_form_field_option(slug="my-form-field-option")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my_form_field_option = pulumi.output(rootly.getFormFieldOption({
        slug: "my-form-field-option",
    }));
    

    Coming soon!

    Using getFormFieldOption

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getFormFieldOption(args: GetFormFieldOptionArgs, opts?: InvokeOptions): Promise<GetFormFieldOptionResult>
    function getFormFieldOptionOutput(args: GetFormFieldOptionOutputArgs, opts?: InvokeOptions): Output<GetFormFieldOptionResult>
    def get_form_field_option(color: Optional[str] = None,
                              value: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetFormFieldOptionResult
    def get_form_field_option_output(color: Optional[pulumi.Input[str]] = None,
                              value: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetFormFieldOptionResult]
    func LookupFormFieldOption(ctx *Context, args *LookupFormFieldOptionArgs, opts ...InvokeOption) (*LookupFormFieldOptionResult, error)
    func LookupFormFieldOptionOutput(ctx *Context, args *LookupFormFieldOptionOutputArgs, opts ...InvokeOption) LookupFormFieldOptionResultOutput

    > Note: This function is named LookupFormFieldOption in the Go SDK.

    public static class GetFormFieldOption 
    {
        public static Task<GetFormFieldOptionResult> InvokeAsync(GetFormFieldOptionArgs args, InvokeOptions? opts = null)
        public static Output<GetFormFieldOptionResult> Invoke(GetFormFieldOptionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFormFieldOptionResult> getFormFieldOption(GetFormFieldOptionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rootly:index/getFormFieldOption:getFormFieldOption
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Color string
    Value string
    Color string
    Value string
    color String
    value String
    color string
    value string
    color str
    value str
    color String
    value String

    getFormFieldOption Result

    The following output properties are available:

    Color string
    Id string
    Value string
    Color string
    Id string
    Value string
    color String
    id String
    value String
    color string
    id string
    value string
    color str
    id str
    value str
    color String
    id String
    value String

    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.0.1 published on Friday, Jun 2, 2023 by Rootly