sysdig.IpFilteringSettings
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const example = new sysdig.IpFilteringSettings("example", {ipFilteringEnabled: true});
import pulumi
import pulumi_sysdig as sysdig
example = sysdig.IpFilteringSettings("example", ip_filtering_enabled=True)
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.NewIpFilteringSettings(ctx, "example", &sysdig.IpFilteringSettingsArgs{
IpFilteringEnabled: pulumi.Bool(true),
})
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 = new Sysdig.IpFilteringSettings("example", new()
{
IpFilteringEnabled = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.IpFilteringSettings;
import com.pulumi.sysdig.IpFilteringSettingsArgs;
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 example = new IpFilteringSettings("example", IpFilteringSettingsArgs.builder()
.ipFilteringEnabled(true)
.build());
}
}
resources:
example:
type: sysdig:IpFilteringSettings
properties:
ipFilteringEnabled: true
This example enables the IP filtering feature.
Create IpFilteringSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IpFilteringSettings(name: string, args: IpFilteringSettingsArgs, opts?: CustomResourceOptions);
@overload
def IpFilteringSettings(resource_name: str,
args: IpFilteringSettingsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IpFilteringSettings(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_filtering_enabled: Optional[bool] = None,
ip_filtering_settings_id: Optional[str] = None)
func NewIpFilteringSettings(ctx *Context, name string, args IpFilteringSettingsArgs, opts ...ResourceOption) (*IpFilteringSettings, error)
public IpFilteringSettings(string name, IpFilteringSettingsArgs args, CustomResourceOptions? opts = null)
public IpFilteringSettings(String name, IpFilteringSettingsArgs args)
public IpFilteringSettings(String name, IpFilteringSettingsArgs args, CustomResourceOptions options)
type: sysdig:IpFilteringSettings
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 IpFilteringSettingsArgs
- 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 IpFilteringSettingsArgs
- 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 IpFilteringSettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IpFilteringSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IpFilteringSettingsArgs
- 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 ipFilteringSettingsResource = new Sysdig.IpFilteringSettings("ipFilteringSettingsResource", new()
{
IpFilteringEnabled = false,
IpFilteringSettingsId = "string",
});
example, err := sysdig.NewIpFilteringSettings(ctx, "ipFilteringSettingsResource", &sysdig.IpFilteringSettingsArgs{
IpFilteringEnabled: pulumi.Bool(false),
IpFilteringSettingsId: pulumi.String("string"),
})
var ipFilteringSettingsResource = new IpFilteringSettings("ipFilteringSettingsResource", IpFilteringSettingsArgs.builder()
.ipFilteringEnabled(false)
.ipFilteringSettingsId("string")
.build());
ip_filtering_settings_resource = sysdig.IpFilteringSettings("ipFilteringSettingsResource",
ip_filtering_enabled=False,
ip_filtering_settings_id="string")
const ipFilteringSettingsResource = new sysdig.IpFilteringSettings("ipFilteringSettingsResource", {
ipFilteringEnabled: false,
ipFilteringSettingsId: "string",
});
type: sysdig:IpFilteringSettings
properties:
ipFilteringEnabled: false
ipFilteringSettingsId: string
IpFilteringSettings 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 IpFilteringSettings resource accepts the following input properties:
- Ip
Filtering boolEnabled - Specifies whether the IP filtering feature is enabled.
- Ip
Filtering stringSettings Id
- Ip
Filtering boolEnabled - Specifies whether the IP filtering feature is enabled.
- Ip
Filtering stringSettings Id
- ip
Filtering BooleanEnabled - Specifies whether the IP filtering feature is enabled.
- ip
Filtering StringSettings Id
- ip
Filtering booleanEnabled - Specifies whether the IP filtering feature is enabled.
- ip
Filtering stringSettings Id
- ip_
filtering_ boolenabled - Specifies whether the IP filtering feature is enabled.
- ip_
filtering_ strsettings_ id
- ip
Filtering BooleanEnabled - Specifies whether the IP filtering feature is enabled.
- ip
Filtering StringSettings Id
Outputs
All input properties are implicitly available as output properties. Additionally, the IpFilteringSettings resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IpFilteringSettings Resource
Get an existing IpFilteringSettings 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?: IpFilteringSettingsState, opts?: CustomResourceOptions): IpFilteringSettings
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ip_filtering_enabled: Optional[bool] = None,
ip_filtering_settings_id: Optional[str] = None) -> IpFilteringSettings
func GetIpFilteringSettings(ctx *Context, name string, id IDInput, state *IpFilteringSettingsState, opts ...ResourceOption) (*IpFilteringSettings, error)
public static IpFilteringSettings Get(string name, Input<string> id, IpFilteringSettingsState? state, CustomResourceOptions? opts = null)
public static IpFilteringSettings get(String name, Output<String> id, IpFilteringSettingsState state, CustomResourceOptions options)
resources: _: type: sysdig:IpFilteringSettings 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.
- Ip
Filtering boolEnabled - Specifies whether the IP filtering feature is enabled.
- Ip
Filtering stringSettings Id
- Ip
Filtering boolEnabled - Specifies whether the IP filtering feature is enabled.
- Ip
Filtering stringSettings Id
- ip
Filtering BooleanEnabled - Specifies whether the IP filtering feature is enabled.
- ip
Filtering StringSettings Id
- ip
Filtering booleanEnabled - Specifies whether the IP filtering feature is enabled.
- ip
Filtering stringSettings Id
- ip_
filtering_ boolenabled - Specifies whether the IP filtering feature is enabled.
- ip_
filtering_ strsettings_ id
- ip
Filtering BooleanEnabled - Specifies whether the IP filtering feature is enabled.
- ip
Filtering StringSettings Id
Import
Sysdig IP filters settings can be imported, e.g.
$ pulumi import sysdig:index/ipFilteringSettings:IpFilteringSettings example ip_filtering_settings_id
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.