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

sysdig.SecureRuleContainer

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 sample = new sysdig.SecureRuleContainer("sample", {
        containers: ["nginx"],
        description: "A container withthe nginx image spawned in the cluster.",
        matching: true,
        tags: [
            "container",
            "cis",
        ],
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    sample = sysdig.SecureRuleContainer("sample",
        containers=["nginx"],
        description="A container withthe nginx image spawned in the cluster.",
        matching=True,
        tags=[
            "container",
            "cis",
        ])
    
    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.NewSecureRuleContainer(ctx, "sample", &sysdig.SecureRuleContainerArgs{
    			Containers: pulumi.StringArray{
    				pulumi.String("nginx"),
    			},
    			Description: pulumi.String("A container withthe nginx image spawned in the cluster."),
    			Matching:    pulumi.Bool(true),
    			Tags: pulumi.StringArray{
    				pulumi.String("container"),
    				pulumi.String("cis"),
    			},
    		})
    		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 sample = new Sysdig.SecureRuleContainer("sample", new()
        {
            Containers = new[]
            {
                "nginx",
            },
            Description = "A container withthe nginx image spawned in the cluster.",
            Matching = true,
            Tags = new[]
            {
                "container",
                "cis",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SecureRuleContainer;
    import com.pulumi.sysdig.SecureRuleContainerArgs;
    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 sample = new SecureRuleContainer("sample", SecureRuleContainerArgs.builder()
                .containers("nginx")
                .description("A container withthe nginx image spawned in the cluster.")
                .matching(true)
                .tags(            
                    "container",
                    "cis")
                .build());
    
        }
    }
    
    resources:
      sample:
        type: sysdig:SecureRuleContainer
        properties:
          containers:
            - nginx
          description: A container withthe nginx image spawned in the cluster.
          matching: true
          tags:
            - container
            - cis
    

    Create SecureRuleContainer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecureRuleContainer(name: string, args?: SecureRuleContainerArgs, opts?: CustomResourceOptions);
    @overload
    def SecureRuleContainer(resource_name: str,
                            args: Optional[SecureRuleContainerArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecureRuleContainer(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            containers: Optional[Sequence[str]] = None,
                            description: Optional[str] = None,
                            matching: Optional[bool] = None,
                            name: Optional[str] = None,
                            secure_rule_container_id: Optional[str] = None,
                            tags: Optional[Sequence[str]] = None,
                            timeouts: Optional[SecureRuleContainerTimeoutsArgs] = None)
    func NewSecureRuleContainer(ctx *Context, name string, args *SecureRuleContainerArgs, opts ...ResourceOption) (*SecureRuleContainer, error)
    public SecureRuleContainer(string name, SecureRuleContainerArgs? args = null, CustomResourceOptions? opts = null)
    public SecureRuleContainer(String name, SecureRuleContainerArgs args)
    public SecureRuleContainer(String name, SecureRuleContainerArgs args, CustomResourceOptions options)
    
    type: sysdig:SecureRuleContainer
    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 SecureRuleContainerArgs
    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 SecureRuleContainerArgs
    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 SecureRuleContainerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecureRuleContainerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecureRuleContainerArgs
    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 secureRuleContainerResource = new Sysdig.SecureRuleContainer("secureRuleContainerResource", new()
    {
        Containers = new[]
        {
            "string",
        },
        Description = "string",
        Matching = false,
        Name = "string",
        SecureRuleContainerId = "string",
        Tags = new[]
        {
            "string",
        },
        Timeouts = new Sysdig.Inputs.SecureRuleContainerTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := sysdig.NewSecureRuleContainer(ctx, "secureRuleContainerResource", &sysdig.SecureRuleContainerArgs{
    	Containers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:           pulumi.String("string"),
    	Matching:              pulumi.Bool(false),
    	Name:                  pulumi.String("string"),
    	SecureRuleContainerId: pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Timeouts: &sysdig.SecureRuleContainerTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var secureRuleContainerResource = new SecureRuleContainer("secureRuleContainerResource", SecureRuleContainerArgs.builder()
        .containers("string")
        .description("string")
        .matching(false)
        .name("string")
        .secureRuleContainerId("string")
        .tags("string")
        .timeouts(SecureRuleContainerTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    secure_rule_container_resource = sysdig.SecureRuleContainer("secureRuleContainerResource",
        containers=["string"],
        description="string",
        matching=False,
        name="string",
        secure_rule_container_id="string",
        tags=["string"],
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const secureRuleContainerResource = new sysdig.SecureRuleContainer("secureRuleContainerResource", {
        containers: ["string"],
        description: "string",
        matching: false,
        name: "string",
        secureRuleContainerId: "string",
        tags: ["string"],
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: sysdig:SecureRuleContainer
    properties:
        containers:
            - string
        description: string
        matching: false
        name: string
        secureRuleContainerId: string
        tags:
            - string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

    SecureRuleContainer 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 SecureRuleContainer resource accepts the following input properties:

    Containers List<string>
    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.
    SecureRuleContainerId string
    Tags List<string>
    A list of tags for this rule.
    Timeouts SecureRuleContainerTimeouts
    Containers []string
    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.
    SecureRuleContainerId string
    Tags []string
    A list of tags for this rule.
    Timeouts SecureRuleContainerTimeoutsArgs
    containers List<String>
    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.
    secureRuleContainerId String
    tags List<String>
    A list of tags for this rule.
    timeouts SecureRuleContainerTimeouts
    containers string[]
    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.
    secureRuleContainerId string
    tags string[]
    A list of tags for this rule.
    timeouts SecureRuleContainerTimeouts
    containers Sequence[str]
    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_container_id str
    tags Sequence[str]
    A list of tags for this rule.
    timeouts SecureRuleContainerTimeoutsArgs
    containers List<String>
    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.
    secureRuleContainerId String
    tags List<String>
    A list of tags for this rule.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecureRuleContainer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Version double
    Current version of the resource in Sysdig Secure.
    Id string
    The provider-assigned unique ID for this managed resource.
    Version float64
    Current version of the resource in Sysdig Secure.
    id String
    The provider-assigned unique ID for this managed resource.
    version Double
    Current version of the resource in Sysdig Secure.
    id string
    The provider-assigned unique ID for this managed resource.
    version number
    Current version of the resource in Sysdig Secure.
    id str
    The provider-assigned unique ID for this managed resource.
    version float
    Current version of the resource in Sysdig Secure.
    id String
    The provider-assigned unique ID for this managed resource.
    version Number
    Current version of the resource in Sysdig Secure.

    Look up Existing SecureRuleContainer Resource

    Get an existing SecureRuleContainer 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?: SecureRuleContainerState, opts?: CustomResourceOptions): SecureRuleContainer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            containers: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            matching: Optional[bool] = None,
            name: Optional[str] = None,
            secure_rule_container_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[SecureRuleContainerTimeoutsArgs] = None,
            version: Optional[float] = None) -> SecureRuleContainer
    func GetSecureRuleContainer(ctx *Context, name string, id IDInput, state *SecureRuleContainerState, opts ...ResourceOption) (*SecureRuleContainer, error)
    public static SecureRuleContainer Get(string name, Input<string> id, SecureRuleContainerState? state, CustomResourceOptions? opts = null)
    public static SecureRuleContainer get(String name, Output<String> id, SecureRuleContainerState state, CustomResourceOptions options)
    resources:  _:    type: sysdig:SecureRuleContainer    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.
    The following state arguments are supported:
    Containers List<string>
    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.
    SecureRuleContainerId string
    Tags List<string>
    A list of tags for this rule.
    Timeouts SecureRuleContainerTimeouts
    Version double
    Current version of the resource in Sysdig Secure.
    Containers []string
    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.
    SecureRuleContainerId string
    Tags []string
    A list of tags for this rule.
    Timeouts SecureRuleContainerTimeoutsArgs
    Version float64
    Current version of the resource in Sysdig Secure.
    containers List<String>
    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.
    secureRuleContainerId String
    tags List<String>
    A list of tags for this rule.
    timeouts SecureRuleContainerTimeouts
    version Double
    Current version of the resource in Sysdig Secure.
    containers string[]
    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.
    secureRuleContainerId string
    tags string[]
    A list of tags for this rule.
    timeouts SecureRuleContainerTimeouts
    version number
    Current version of the resource in Sysdig Secure.
    containers Sequence[str]
    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_container_id str
    tags Sequence[str]
    A list of tags for this rule.
    timeouts SecureRuleContainerTimeoutsArgs
    version float
    Current version of the resource in Sysdig Secure.
    containers List<String>
    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.
    secureRuleContainerId String
    tags List<String>
    A list of tags for this rule.
    timeouts Property Map
    version Number
    Current version of the resource in Sysdig Secure.

    Supporting Types

    SecureRuleContainerTimeouts, SecureRuleContainerTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    Import

    Secure container runtime rules can be imported using the ID, e.g.

    $ pulumi import sysdig:index/secureRuleContainer:SecureRuleContainer 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.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs