1. Packages
  2. Sysdig Provider
  3. API Docs
  4. getSecureRuleStatefulCount
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

sysdig.getSecureRuleStatefulCount

Explore with Pulumi AI

sysdig logo
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const example = sysdig.getSecureRuleStatefulCount({
        name: "API Gateway Enumeration Detected",
        source: "awscloudtrail_stateful",
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    example = sysdig.get_secure_rule_stateful_count(name="API Gateway Enumeration Detected",
        source="awscloudtrail_stateful")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sysdig.GetSecureRuleStatefulCount(ctx, &sysdig.GetSecureRuleStatefulCountArgs{
    			Name:   "API Gateway Enumeration Detected",
    			Source: "awscloudtrail_stateful",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Sysdig.GetSecureRuleStatefulCount.Invoke(new()
        {
            Name = "API Gateway Enumeration Detected",
            Source = "awscloudtrail_stateful",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SysdigFunctions;
    import com.pulumi.sysdig.inputs.GetSecureRuleStatefulCountArgs;
    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 example = SysdigFunctions.getSecureRuleStatefulCount(GetSecureRuleStatefulCountArgs.builder()
                .name("API Gateway Enumeration Detected")
                .source("awscloudtrail_stateful")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: sysdig:getSecureRuleStatefulCount
          arguments:
            name: API Gateway Enumeration Detected
            source: awscloudtrail_stateful
    

    Using getSecureRuleStatefulCount

    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 getSecureRuleStatefulCount(args: GetSecureRuleStatefulCountArgs, opts?: InvokeOptions): Promise<GetSecureRuleStatefulCountResult>
    function getSecureRuleStatefulCountOutput(args: GetSecureRuleStatefulCountOutputArgs, opts?: InvokeOptions): Output<GetSecureRuleStatefulCountResult>
    def get_secure_rule_stateful_count(id: Optional[str] = None,
                                       name: Optional[str] = None,
                                       source: Optional[str] = None,
                                       timeouts: Optional[GetSecureRuleStatefulCountTimeouts] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetSecureRuleStatefulCountResult
    def get_secure_rule_stateful_count_output(id: Optional[pulumi.Input[str]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       source: Optional[pulumi.Input[str]] = None,
                                       timeouts: Optional[pulumi.Input[GetSecureRuleStatefulCountTimeoutsArgs]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetSecureRuleStatefulCountResult]
    func GetSecureRuleStatefulCount(ctx *Context, args *GetSecureRuleStatefulCountArgs, opts ...InvokeOption) (*GetSecureRuleStatefulCountResult, error)
    func GetSecureRuleStatefulCountOutput(ctx *Context, args *GetSecureRuleStatefulCountOutputArgs, opts ...InvokeOption) GetSecureRuleStatefulCountResultOutput

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

    public static class GetSecureRuleStatefulCount 
    {
        public static Task<GetSecureRuleStatefulCountResult> InvokeAsync(GetSecureRuleStatefulCountArgs args, InvokeOptions? opts = null)
        public static Output<GetSecureRuleStatefulCountResult> Invoke(GetSecureRuleStatefulCountInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecureRuleStatefulCountResult> getSecureRuleStatefulCount(GetSecureRuleStatefulCountArgs args, InvokeOptions options)
    public static Output<GetSecureRuleStatefulCountResult> getSecureRuleStatefulCount(GetSecureRuleStatefulCountArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getSecureRuleStatefulCount:getSecureRuleStatefulCount
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Secure stateful rule to retrieve.
    Source string
    The source of the Secure stateful rule to retrieve.
    Id string
    Timeouts GetSecureRuleStatefulCountTimeouts
    Name string
    The name of the Secure stateful rule to retrieve.
    Source string
    The source of the Secure stateful rule to retrieve.
    Id string
    Timeouts GetSecureRuleStatefulCountTimeouts
    name String
    The name of the Secure stateful rule to retrieve.
    source String
    The source of the Secure stateful rule to retrieve.
    id String
    timeouts GetSecureRuleStatefulCountTimeouts
    name string
    The name of the Secure stateful rule to retrieve.
    source string
    The source of the Secure stateful rule to retrieve.
    id string
    timeouts GetSecureRuleStatefulCountTimeouts
    name str
    The name of the Secure stateful rule to retrieve.
    source str
    The source of the Secure stateful rule to retrieve.
    id str
    timeouts GetSecureRuleStatefulCountTimeouts
    name String
    The name of the Secure stateful rule to retrieve.
    source String
    The source of the Secure stateful rule to retrieve.
    id String
    timeouts Property Map

    getSecureRuleStatefulCount Result

    The following output properties are available:

    Id string
    Name string
    RuleCount double
    The number of rules (including appends).
    Source string
    Timeouts GetSecureRuleStatefulCountTimeouts
    Id string
    Name string
    RuleCount float64
    The number of rules (including appends).
    Source string
    Timeouts GetSecureRuleStatefulCountTimeouts
    id String
    name String
    ruleCount Double
    The number of rules (including appends).
    source String
    timeouts GetSecureRuleStatefulCountTimeouts
    id string
    name string
    ruleCount number
    The number of rules (including appends).
    source string
    timeouts GetSecureRuleStatefulCountTimeouts
    id str
    name str
    rule_count float
    The number of rules (including appends).
    source str
    timeouts GetSecureRuleStatefulCountTimeouts
    id String
    name String
    ruleCount Number
    The number of rules (including appends).
    source String
    timeouts Property Map

    Supporting Types

    GetSecureRuleStatefulCountTimeouts

    Read string
    Read string
    read String
    read string
    read str
    read String

    Package Details

    Repository
    sysdig sysdiglabs/terraform-provider-sysdig
    License
    Notes
    This Pulumi package is based on the sysdig Terraform Provider.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs