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

rootly.getFormField

Explore with Pulumi AI

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

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    return await Deployment.RunAsync(() => 
    {
        var my_form_field = Rootly.GetFormField.Invoke(new()
        {
            Slug = "my-form-field",
        });
    
    });
    
    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.LookupFormField(ctx, &rootly.LookupFormFieldArgs{
    			Slug: pulumi.StringRef("my-form-field"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rootly.RootlyFunctions;
    import com.pulumi.rootly.inputs.GetFormFieldArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var my-form-field = RootlyFunctions.getFormField(GetFormFieldArgs.builder()
                .slug("my-form-field")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_rootly as rootly
    
    my_form_field = rootly.get_form_field(slug="my-form-field")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my-form-field = rootly.getFormField({
        slug: "my-form-field",
    });
    
    variables:
      my-form-field:
        fn::invoke:
          Function: rootly:getFormField
          Arguments:
            slug: my-form-field
    

    Using getFormField

    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 getFormField(args: GetFormFieldArgs, opts?: InvokeOptions): Promise<GetFormFieldResult>
    function getFormFieldOutput(args: GetFormFieldOutputArgs, opts?: InvokeOptions): Output<GetFormFieldResult>
    def get_form_field(created_at: Optional[Mapping[str, Any]] = None,
                       enabled: Optional[bool] = None,
                       kind: Optional[str] = None,
                       name: Optional[str] = None,
                       slug: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetFormFieldResult
    def get_form_field_output(created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                       enabled: Optional[pulumi.Input[bool]] = None,
                       kind: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       slug: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetFormFieldResult]
    func LookupFormField(ctx *Context, args *LookupFormFieldArgs, opts ...InvokeOption) (*LookupFormFieldResult, error)
    func LookupFormFieldOutput(ctx *Context, args *LookupFormFieldOutputArgs, opts ...InvokeOption) LookupFormFieldResultOutput

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

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

    The following arguments are supported:

    CreatedAt Dictionary<string, object>
    Filter by date range using 'lt' and 'gt'.
    Enabled bool
    Kind string
    Name string
    Slug string
    CreatedAt map[string]interface{}
    Filter by date range using 'lt' and 'gt'.
    Enabled bool
    Kind string
    Name string
    Slug string
    createdAt Map<String,Object>
    Filter by date range using 'lt' and 'gt'.
    enabled Boolean
    kind String
    name String
    slug String
    createdAt {[key: string]: any}
    Filter by date range using 'lt' and 'gt'.
    enabled boolean
    kind string
    name string
    slug string
    created_at Mapping[str, Any]
    Filter by date range using 'lt' and 'gt'.
    enabled bool
    kind str
    name str
    slug str
    createdAt Map<Any>
    Filter by date range using 'lt' and 'gt'.
    enabled Boolean
    kind String
    name String
    slug String

    getFormField Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Kind string
    Name string
    Slug string
    CreatedAt Dictionary<string, object>
    Filter by date range using 'lt' and 'gt'.
    Enabled bool
    Id string
    The ID of this resource.
    Kind string
    Name string
    Slug string
    CreatedAt map[string]interface{}
    Filter by date range using 'lt' and 'gt'.
    Enabled bool
    id String
    The ID of this resource.
    kind String
    name String
    slug String
    createdAt Map<String,Object>
    Filter by date range using 'lt' and 'gt'.
    enabled Boolean
    id string
    The ID of this resource.
    kind string
    name string
    slug string
    createdAt {[key: string]: any}
    Filter by date range using 'lt' and 'gt'.
    enabled boolean
    id str
    The ID of this resource.
    kind str
    name str
    slug str
    created_at Mapping[str, Any]
    Filter by date range using 'lt' and 'gt'.
    enabled bool
    id String
    The ID of this resource.
    kind String
    name String
    slug String
    createdAt Map<Any>
    Filter by date range using 'lt' and 'gt'.
    enabled Boolean

    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