1. Packages
  2. Sysdig Provider
  3. API Docs
  4. getSecureRuleStatefulCount
sysdig 1.52.0 published on Monday, Apr 14, 2025 by sysdiglabs

sysdig.getSecureRuleStatefulCount

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_sysdig as sysdig

example = sysdig.get_secure_rule_stateful_count(name="API Gateway Enumeration Detected",
    source="awscloudtrail_stateful")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: sysdig:getSecureRuleStatefulCount
      arguments:
        name: API Gateway Enumeration Detected
        source: awscloudtrail_stateful
Copy

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>
Copy
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]
Copy
func GetSecureRuleStatefulCount(ctx *Context, args *GetSecureRuleStatefulCountArgs, opts ...InvokeOption) (*GetSecureRuleStatefulCountResult, error)
func GetSecureRuleStatefulCountOutput(ctx *Context, args *GetSecureRuleStatefulCountOutputArgs, opts ...InvokeOption) GetSecureRuleStatefulCountResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSecureRuleStatefulCountResult> getSecureRuleStatefulCount(GetSecureRuleStatefulCountArgs args, InvokeOptions options)
public static Output<GetSecureRuleStatefulCountResult> getSecureRuleStatefulCount(GetSecureRuleStatefulCountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: sysdig:index/getSecureRuleStatefulCount:getSecureRuleStatefulCount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the Secure stateful rule to retrieve.
Source This property is required. string
The source of the Secure stateful rule to retrieve.
Id string
Timeouts GetSecureRuleStatefulCountTimeouts
Name This property is required. string
The name of the Secure stateful rule to retrieve.
Source This property is required. string
The source of the Secure stateful rule to retrieve.
Id string
Timeouts GetSecureRuleStatefulCountTimeouts
name This property is required. String
The name of the Secure stateful rule to retrieve.
source This property is required. String
The source of the Secure stateful rule to retrieve.
id String
timeouts GetSecureRuleStatefulCountTimeouts
name This property is required. string
The name of the Secure stateful rule to retrieve.
source This property is required. string
The source of the Secure stateful rule to retrieve.
id string
timeouts GetSecureRuleStatefulCountTimeouts
name This property is required. str
The name of the Secure stateful rule to retrieve.
source This property is required. str
The source of the Secure stateful rule to retrieve.
id str
timeouts GetSecureRuleStatefulCountTimeouts
name This property is required. String
The name of the Secure stateful rule to retrieve.
source This property is required. 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.