sysdig.SecureRuleContainer
Explore with Pulumi AI
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.
- Secure
Rule stringContainer Id - List<string>
- A list of tags for this rule.
- Timeouts
Secure
Rule Container Timeouts
- 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.
- Secure
Rule stringContainer Id - []string
- A list of tags for this rule.
- Timeouts
Secure
Rule Container Timeouts Args
- 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.
- secure
Rule StringContainer Id - List<String>
- A list of tags for this rule.
- timeouts
Secure
Rule Container Timeouts
- 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.
- secure
Rule stringContainer Id - string[]
- A list of tags for this rule.
- timeouts
Secure
Rule Container Timeouts
- 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_ strcontainer_ id - Sequence[str]
- A list of tags for this rule.
- timeouts
Secure
Rule Container Timeouts Args
- 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.
- secure
Rule StringContainer Id - 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:
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.
- 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.
- Secure
Rule stringContainer Id - List<string>
- A list of tags for this rule.
- Timeouts
Secure
Rule Container Timeouts - 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.
- Secure
Rule stringContainer Id - []string
- A list of tags for this rule.
- Timeouts
Secure
Rule Container Timeouts Args - 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.
- secure
Rule StringContainer Id - List<String>
- A list of tags for this rule.
- timeouts
Secure
Rule Container Timeouts - 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.
- secure
Rule stringContainer Id - string[]
- A list of tags for this rule.
- timeouts
Secure
Rule Container Timeouts - 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_ strcontainer_ id - Sequence[str]
- A list of tags for this rule.
- timeouts
Secure
Rule Container Timeouts Args - 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.
- secure
Rule StringContainer Id - 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
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.