1. Packages
  2. Snowflake
  3. API Docs
  4. getResourceMonitors
Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi

snowflake.getResourceMonitors

Explore with Pulumi AI

snowflake logo
Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as snowflake from "@pulumi/snowflake";
    
    const current = snowflake.getResourceMonitors({});
    
    import pulumi
    import pulumi_snowflake as snowflake
    
    current = snowflake.get_resource_monitors()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-snowflake/sdk/go/snowflake"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := snowflake.GetResourceMonitors(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Snowflake = Pulumi.Snowflake;
    
    return await Deployment.RunAsync(() => 
    {
        var current = Snowflake.GetResourceMonitors.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.snowflake.SnowflakeFunctions;
    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 current = SnowflakeFunctions.getResourceMonitors();
    
        }
    }
    
    variables:
      current:
        fn::invoke:
          Function: snowflake:getResourceMonitors
          Arguments: {}
    

    Using getResourceMonitors

    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 getResourceMonitors(opts?: InvokeOptions): Promise<GetResourceMonitorsResult>
    function getResourceMonitorsOutput(opts?: InvokeOptions): Output<GetResourceMonitorsResult>
    def get_resource_monitors(opts: Optional[InvokeOptions] = None) -> GetResourceMonitorsResult
    def get_resource_monitors_output(opts: Optional[InvokeOptions] = None) -> Output[GetResourceMonitorsResult]
    func GetResourceMonitors(ctx *Context, opts ...InvokeOption) (*GetResourceMonitorsResult, error)
    func GetResourceMonitorsOutput(ctx *Context, opts ...InvokeOption) GetResourceMonitorsResultOutput

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

    public static class GetResourceMonitors 
    {
        public static Task<GetResourceMonitorsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetResourceMonitorsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceMonitorsResult> getResourceMonitors(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: snowflake:index/getResourceMonitors:getResourceMonitors
      arguments:
        # arguments dictionary

    getResourceMonitors Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceMonitors List<GetResourceMonitorsResourceMonitor>
    The resource monitors in the database
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceMonitors []GetResourceMonitorsResourceMonitor
    The resource monitors in the database
    id String
    The provider-assigned unique ID for this managed resource.
    resourceMonitors List<GetResourceMonitorsResourceMonitor>
    The resource monitors in the database
    id string
    The provider-assigned unique ID for this managed resource.
    resourceMonitors GetResourceMonitorsResourceMonitor[]
    The resource monitors in the database
    id str
    The provider-assigned unique ID for this managed resource.
    resource_monitors Sequence[GetResourceMonitorsResourceMonitor]
    The resource monitors in the database
    id String
    The provider-assigned unique ID for this managed resource.
    resourceMonitors List<Property Map>
    The resource monitors in the database

    Supporting Types

    GetResourceMonitorsResourceMonitor

    Comment string
    CreditQuota string
    Frequency string
    Name string
    Comment string
    CreditQuota string
    Frequency string
    Name string
    comment String
    creditQuota String
    frequency String
    name String
    comment string
    creditQuota string
    frequency string
    name string
    comment String
    creditQuota String
    frequency String
    name String

    Package Details

    Repository
    Snowflake pulumi/pulumi-snowflake
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the snowflake Terraform Provider.
    snowflake logo
    Snowflake v0.55.0 published on Friday, Jun 7, 2024 by Pulumi