sysdig.SecureRuleSyscall
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const foo = new sysdig.SecureRuleSyscall("foo", {
description: "Syscall 'mount' detected",
matching: true,
syscalls: ["mount"],
});
import pulumi
import pulumi_sysdig as sysdig
foo = sysdig.SecureRuleSyscall("foo",
description="Syscall 'mount' detected",
matching=True,
syscalls=["mount"])
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.NewSecureRuleSyscall(ctx, "foo", &sysdig.SecureRuleSyscallArgs{
Description: pulumi.String("Syscall 'mount' detected"),
Matching: pulumi.Bool(true),
Syscalls: pulumi.StringArray{
pulumi.String("mount"),
},
})
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 foo = new Sysdig.SecureRuleSyscall("foo", new()
{
Description = "Syscall 'mount' detected",
Matching = true,
Syscalls = new[]
{
"mount",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SecureRuleSyscall;
import com.pulumi.sysdig.SecureRuleSyscallArgs;
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) {
var foo = new SecureRuleSyscall("foo", SecureRuleSyscallArgs.builder()
.description("Syscall 'mount' detected")
.matching(true)
.syscalls("mount")
.build());
}
}
resources:
foo:
type: sysdig:SecureRuleSyscall
properties:
description: Syscall 'mount' detected
matching: true
# ID
syscalls:
- mount
Create SecureRuleSyscall Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecureRuleSyscall(name: string, args?: SecureRuleSyscallArgs, opts?: CustomResourceOptions);
@overload
def SecureRuleSyscall(resource_name: str,
args: Optional[SecureRuleSyscallArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SecureRuleSyscall(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
matching: Optional[bool] = None,
name: Optional[str] = None,
secure_rule_syscall_id: Optional[str] = None,
syscalls: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[SecureRuleSyscallTimeoutsArgs] = None)
func NewSecureRuleSyscall(ctx *Context, name string, args *SecureRuleSyscallArgs, opts ...ResourceOption) (*SecureRuleSyscall, error)
public SecureRuleSyscall(string name, SecureRuleSyscallArgs? args = null, CustomResourceOptions? opts = null)
public SecureRuleSyscall(String name, SecureRuleSyscallArgs args)
public SecureRuleSyscall(String name, SecureRuleSyscallArgs args, CustomResourceOptions options)
type: sysdig:SecureRuleSyscall
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecureRuleSyscallArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecureRuleSyscallArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecureRuleSyscallArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureRuleSyscallArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecureRuleSyscallArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var secureRuleSyscallResource = new Sysdig.SecureRuleSyscall("secureRuleSyscallResource", new()
{
Description = "string",
Matching = false,
Name = "string",
SecureRuleSyscallId = "string",
Syscalls = new[]
{
"string",
},
Tags = new[]
{
"string",
},
Timeouts = new Sysdig.Inputs.SecureRuleSyscallTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := sysdig.NewSecureRuleSyscall(ctx, "secureRuleSyscallResource", &sysdig.SecureRuleSyscallArgs{
Description: pulumi.String("string"),
Matching: pulumi.Bool(false),
Name: pulumi.String("string"),
SecureRuleSyscallId: pulumi.String("string"),
Syscalls: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &.SecureRuleSyscallTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var secureRuleSyscallResource = new SecureRuleSyscall("secureRuleSyscallResource", SecureRuleSyscallArgs.builder()
.description("string")
.matching(false)
.name("string")
.secureRuleSyscallId("string")
.syscalls("string")
.tags("string")
.timeouts(SecureRuleSyscallTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
secure_rule_syscall_resource = sysdig.SecureRuleSyscall("secureRuleSyscallResource",
description="string",
matching=False,
name="string",
secure_rule_syscall_id="string",
syscalls=["string"],
tags=["string"],
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const secureRuleSyscallResource = new sysdig.SecureRuleSyscall("secureRuleSyscallResource", {
description: "string",
matching: false,
name: "string",
secureRuleSyscallId: "string",
syscalls: ["string"],
tags: ["string"],
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: sysdig:SecureRuleSyscall
properties:
description: string
matching: false
name: string
secureRuleSyscallId: string
syscalls:
- string
tags:
- string
timeouts:
create: string
delete: string
read: string
update: string
SecureRuleSyscall Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecureRuleSyscall resource accepts the following input properties:
- Description string
- The description of Secure rule. By default is empty.
- Matching bool
- Name string
- The name of the Secure rule. It must be unique.
- Secure
Rule stringSyscall Id - Syscalls List<string>
- List<string>
- A list of tags for this rule.
- Timeouts
Secure
Rule Syscall Timeouts
- Description string
- The description of Secure rule. By default is empty.
- Matching bool
- Name string
- The name of the Secure rule. It must be unique.
- Secure
Rule stringSyscall Id - Syscalls []string
- []string
- A list of tags for this rule.
- Timeouts
Secure
Rule Syscall Timeouts Args
- description String
- The description of Secure rule. By default is empty.
- matching Boolean
- name String
- The name of the Secure rule. It must be unique.
- secure
Rule StringSyscall Id - syscalls List<String>
- List<String>
- A list of tags for this rule.
- timeouts
Secure
Rule Syscall Timeouts
- description string
- The description of Secure rule. By default is empty.
- matching boolean
- name string
- The name of the Secure rule. It must be unique.
- secure
Rule stringSyscall Id - syscalls string[]
- string[]
- A list of tags for this rule.
- timeouts
Secure
Rule Syscall Timeouts
- description str
- The description of Secure rule. By default is empty.
- matching bool
- name str
- The name of the Secure rule. It must be unique.
- secure_
rule_ strsyscall_ id - syscalls Sequence[str]
- Sequence[str]
- A list of tags for this rule.
- timeouts
Secure
Rule Syscall Timeouts Args
- description String
- The description of Secure rule. By default is empty.
- matching Boolean
- name String
- The name of the Secure rule. It must be unique.
- secure
Rule StringSyscall Id - syscalls List<String>
- List<String>
- A list of tags for this rule.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SecureRuleSyscall resource produces the following output properties:
Look up Existing SecureRuleSyscall Resource
Get an existing SecureRuleSyscall resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecureRuleSyscallState, opts?: CustomResourceOptions): SecureRuleSyscall
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
matching: Optional[bool] = None,
name: Optional[str] = None,
secure_rule_syscall_id: Optional[str] = None,
syscalls: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
timeouts: Optional[SecureRuleSyscallTimeoutsArgs] = None,
version: Optional[float] = None) -> SecureRuleSyscall
func GetSecureRuleSyscall(ctx *Context, name string, id IDInput, state *SecureRuleSyscallState, opts ...ResourceOption) (*SecureRuleSyscall, error)
public static SecureRuleSyscall Get(string name, Input<string> id, SecureRuleSyscallState? state, CustomResourceOptions? opts = null)
public static SecureRuleSyscall get(String name, Output<String> id, SecureRuleSyscallState state, CustomResourceOptions options)
resources: _: type: sysdig:SecureRuleSyscall get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- The description of Secure rule. By default is empty.
- Matching bool
- Name string
- The name of the Secure rule. It must be unique.
- Secure
Rule stringSyscall Id - Syscalls List<string>
- List<string>
- A list of tags for this rule.
- Timeouts
Secure
Rule Syscall Timeouts - Version double
- Current version of the resource in Sysdig Secure.
- Description string
- The description of Secure rule. By default is empty.
- Matching bool
- Name string
- The name of the Secure rule. It must be unique.
- Secure
Rule stringSyscall Id - Syscalls []string
- []string
- A list of tags for this rule.
- Timeouts
Secure
Rule Syscall Timeouts Args - Version float64
- Current version of the resource in Sysdig Secure.
- description String
- The description of Secure rule. By default is empty.
- matching Boolean
- name String
- The name of the Secure rule. It must be unique.
- secure
Rule StringSyscall Id - syscalls List<String>
- List<String>
- A list of tags for this rule.
- timeouts
Secure
Rule Syscall Timeouts - version Double
- Current version of the resource in Sysdig Secure.
- description string
- The description of Secure rule. By default is empty.
- matching boolean
- name string
- The name of the Secure rule. It must be unique.
- secure
Rule stringSyscall Id - syscalls string[]
- string[]
- A list of tags for this rule.
- timeouts
Secure
Rule Syscall Timeouts - version number
- Current version of the resource in Sysdig Secure.
- description str
- The description of Secure rule. By default is empty.
- matching bool
- name str
- The name of the Secure rule. It must be unique.
- secure_
rule_ strsyscall_ id - syscalls Sequence[str]
- Sequence[str]
- A list of tags for this rule.
- timeouts
Secure
Rule Syscall Timeouts Args - version float
- Current version of the resource in Sysdig Secure.
- description String
- The description of Secure rule. By default is empty.
- matching Boolean
- name String
- The name of the Secure rule. It must be unique.
- secure
Rule StringSyscall Id - syscalls List<String>
- List<String>
- A list of tags for this rule.
- timeouts Property Map
- version Number
- Current version of the resource in Sysdig Secure.
Supporting Types
SecureRuleSyscallTimeouts, SecureRuleSyscallTimeoutsArgs
Import
Secure syscall runtime rules can be imported using the ID, e.g.
$ pulumi import sysdig:index/secureRuleSyscall:SecureRuleSyscall example 12345
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.