sysdig.SecureZone
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const example = new sysdig.SecureZone("example", {
description: "An example Sysdig zone",
scopes: [
{
rules: "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
targetType: "aws",
},
{
rules: "organization contains \"o1\"",
targetType: "azure",
},
],
});
import pulumi
import pulumi_sysdig as sysdig
example = sysdig.SecureZone("example",
description="An example Sysdig zone",
scopes=[
{
"rules": "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
"target_type": "aws",
},
{
"rules": "organization contains \"o1\"",
"target_type": "azure",
},
])
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.NewSecureZone(ctx, "example", &sysdig.SecureZoneArgs{
Description: pulumi.String("An example Sysdig zone"),
Scopes: sysdig.SecureZoneScopeArray{
&sysdig.SecureZoneScopeArgs{
Rules: pulumi.String("organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")"),
TargetType: pulumi.String("aws"),
},
&sysdig.SecureZoneScopeArgs{
Rules: pulumi.String("organization contains \"o1\""),
TargetType: pulumi.String("azure"),
},
},
})
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.SecureZone("example", new()
{
Description = "An example Sysdig zone",
Scopes = new[]
{
new Sysdig.Inputs.SecureZoneScopeArgs
{
Rules = "organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")",
TargetType = "aws",
},
new Sysdig.Inputs.SecureZoneScopeArgs
{
Rules = "organization contains \"o1\"",
TargetType = "azure",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SecureZone;
import com.pulumi.sysdig.SecureZoneArgs;
import com.pulumi.sysdig.inputs.SecureZoneScopeArgs;
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 SecureZone("example", SecureZoneArgs.builder()
.description("An example Sysdig zone")
.scopes(
SecureZoneScopeArgs.builder()
.rules("organization in (\"o1\", \"o2\") and account in (\"a1\", \"a2\")")
.targetType("aws")
.build(),
SecureZoneScopeArgs.builder()
.rules("organization contains \"o1\"")
.targetType("azure")
.build())
.build());
}
}
resources:
example:
type: sysdig:SecureZone
properties:
description: An example Sysdig zone
scopes:
- rules: organization in ("o1", "o2") and account in ("a1", "a2")
targetType: aws
- rules: organization contains "o1"
targetType: azure
Create SecureZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecureZone(name: string, args: SecureZoneArgs, opts?: CustomResourceOptions);
@overload
def SecureZone(resource_name: str,
args: SecureZoneArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecureZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
scopes: Optional[Sequence[SecureZoneScopeArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
secure_zone_id: Optional[str] = None)
func NewSecureZone(ctx *Context, name string, args SecureZoneArgs, opts ...ResourceOption) (*SecureZone, error)
public SecureZone(string name, SecureZoneArgs args, CustomResourceOptions? opts = null)
public SecureZone(String name, SecureZoneArgs args)
public SecureZone(String name, SecureZoneArgs args, CustomResourceOptions options)
type: sysdig:SecureZone
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 SecureZoneArgs
- 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 SecureZoneArgs
- 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 SecureZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecureZoneArgs
- 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 secureZoneResource = new Sysdig.SecureZone("secureZoneResource", new()
{
Scopes = new[]
{
new Sysdig.Inputs.SecureZoneScopeArgs
{
TargetType = "string",
Id = 0,
Rules = "string",
},
},
Description = "string",
Name = "string",
SecureZoneId = "string",
});
example, err := sysdig.NewSecureZone(ctx, "secureZoneResource", &sysdig.SecureZoneArgs{
Scopes: sysdig.SecureZoneScopeArray{
&sysdig.SecureZoneScopeArgs{
TargetType: pulumi.String("string"),
Id: pulumi.Float64(0),
Rules: pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SecureZoneId: pulumi.String("string"),
})
var secureZoneResource = new SecureZone("secureZoneResource", SecureZoneArgs.builder()
.scopes(SecureZoneScopeArgs.builder()
.targetType("string")
.id(0)
.rules("string")
.build())
.description("string")
.name("string")
.secureZoneId("string")
.build());
secure_zone_resource = sysdig.SecureZone("secureZoneResource",
scopes=[{
"target_type": "string",
"id": 0,
"rules": "string",
}],
description="string",
name="string",
secure_zone_id="string")
const secureZoneResource = new sysdig.SecureZone("secureZoneResource", {
scopes: [{
targetType: "string",
id: 0,
rules: "string",
}],
description: "string",
name: "string",
secureZoneId: "string",
});
type: sysdig:SecureZone
properties:
description: string
name: string
scopes:
- id: 0
rules: string
targetType: string
secureZoneId: string
SecureZone 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 SecureZone resource accepts the following input properties:
- Scopes
List<Secure
Zone Scope> - Description string
- The description of the Zone.
- Name string
- The name of the Zone.
- Secure
Zone stringId - (Computed) The ID of the Zone.
- Scopes
[]Secure
Zone Scope Args - Description string
- The description of the Zone.
- Name string
- The name of the Zone.
- Secure
Zone stringId - (Computed) The ID of the Zone.
- scopes
List<Secure
Zone Scope> - description String
- The description of the Zone.
- name String
- The name of the Zone.
- secure
Zone StringId - (Computed) The ID of the Zone.
- scopes
Secure
Zone Scope[] - description string
- The description of the Zone.
- name string
- The name of the Zone.
- secure
Zone stringId - (Computed) The ID of the Zone.
- scopes
Sequence[Secure
Zone Scope Args] - description str
- The description of the Zone.
- name str
- The name of the Zone.
- secure_
zone_ strid - (Computed) The ID of the Zone.
- scopes List<Property Map>
- description String
- The description of the Zone.
- name String
- The name of the Zone.
- secure
Zone StringId - (Computed) The ID of the Zone.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecureZone resource produces the following output properties:
- string
- (Computed) The zone author.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- string
- (Computed) The zone author.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- String
- (Computed) The zone author.
- id String
- The provider-assigned unique ID for this managed resource.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
- string
- (Computed) The zone author.
- id string
- The provider-assigned unique ID for this managed resource.
- is
System boolean - (Computed) Whether the Zone is a system zone.
- last
Modified stringBy - (Computed) By whom is last modification made.
- last
Updated string - (Computed) Timestamp of last modification of zone.
- str
- (Computed) The zone author.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
system bool - (Computed) Whether the Zone is a system zone.
- last_
modified_ strby - (Computed) By whom is last modification made.
- last_
updated str - (Computed) Timestamp of last modification of zone.
- String
- (Computed) The zone author.
- id String
- The provider-assigned unique ID for this managed resource.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
Look up Existing SecureZone Resource
Get an existing SecureZone 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?: SecureZoneState, opts?: CustomResourceOptions): SecureZone
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
author: Optional[str] = None,
description: Optional[str] = None,
is_system: Optional[bool] = None,
last_modified_by: Optional[str] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[SecureZoneScopeArgs]] = None,
secure_zone_id: Optional[str] = None) -> SecureZone
func GetSecureZone(ctx *Context, name string, id IDInput, state *SecureZoneState, opts ...ResourceOption) (*SecureZone, error)
public static SecureZone Get(string name, Input<string> id, SecureZoneState? state, CustomResourceOptions? opts = null)
public static SecureZone get(String name, Output<String> id, SecureZoneState state, CustomResourceOptions options)
resources: _: type: sysdig:SecureZone 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.
- string
- (Computed) The zone author.
- Description string
- The description of the Zone.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- Name string
- The name of the Zone.
- Scopes
List<Secure
Zone Scope> - Secure
Zone stringId - (Computed) The ID of the Zone.
- string
- (Computed) The zone author.
- Description string
- The description of the Zone.
- Is
System bool - (Computed) Whether the Zone is a system zone.
- Last
Modified stringBy - (Computed) By whom is last modification made.
- Last
Updated string - (Computed) Timestamp of last modification of zone.
- Name string
- The name of the Zone.
- Scopes
[]Secure
Zone Scope Args - Secure
Zone stringId - (Computed) The ID of the Zone.
- String
- (Computed) The zone author.
- description String
- The description of the Zone.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
- name String
- The name of the Zone.
- scopes
List<Secure
Zone Scope> - secure
Zone StringId - (Computed) The ID of the Zone.
- string
- (Computed) The zone author.
- description string
- The description of the Zone.
- is
System boolean - (Computed) Whether the Zone is a system zone.
- last
Modified stringBy - (Computed) By whom is last modification made.
- last
Updated string - (Computed) Timestamp of last modification of zone.
- name string
- The name of the Zone.
- scopes
Secure
Zone Scope[] - secure
Zone stringId - (Computed) The ID of the Zone.
- str
- (Computed) The zone author.
- description str
- The description of the Zone.
- is_
system bool - (Computed) Whether the Zone is a system zone.
- last_
modified_ strby - (Computed) By whom is last modification made.
- last_
updated str - (Computed) Timestamp of last modification of zone.
- name str
- The name of the Zone.
- scopes
Sequence[Secure
Zone Scope Args] - secure_
zone_ strid - (Computed) The ID of the Zone.
- String
- (Computed) The zone author.
- description String
- The description of the Zone.
- is
System Boolean - (Computed) Whether the Zone is a system zone.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
- name String
- The name of the Zone.
- scopes List<Property Map>
- secure
Zone StringId - (Computed) The ID of the Zone.
Supporting Types
SecureZoneScope, SecureZoneScopeArgs
- Target
Type string - The target type for the scope. Supported types:
- AWS -
aws
- GCP -
gcp
- Azure -
azure
- Kubernetes -
kubernetes
- Image -
image
- Host -
host
- Git -
git
- AWS -
- Id double
- (Computed) The ID of the Zone.
- Rules string
Query language expression for filtering results. Empty rules means no filtering.
Operators:
- Target
Type string - The target type for the scope. Supported types:
- AWS -
aws
- GCP -
gcp
- Azure -
azure
- Kubernetes -
kubernetes
- Image -
image
- Host -
host
- Git -
git
- AWS -
- Id float64
- (Computed) The ID of the Zone.
- Rules string
Query language expression for filtering results. Empty rules means no filtering.
Operators:
- target
Type String - The target type for the scope. Supported types:
- AWS -
aws
- GCP -
gcp
- Azure -
azure
- Kubernetes -
kubernetes
- Image -
image
- Host -
host
- Git -
git
- AWS -
- id Double
- (Computed) The ID of the Zone.
- rules String
Query language expression for filtering results. Empty rules means no filtering.
Operators:
- target
Type string - The target type for the scope. Supported types:
- AWS -
aws
- GCP -
gcp
- Azure -
azure
- Kubernetes -
kubernetes
- Image -
image
- Host -
host
- Git -
git
- AWS -
- id number
- (Computed) The ID of the Zone.
- rules string
Query language expression for filtering results. Empty rules means no filtering.
Operators:
- target_
type str - The target type for the scope. Supported types:
- AWS -
aws
- GCP -
gcp
- Azure -
azure
- Kubernetes -
kubernetes
- Image -
image
- Host -
host
- Git -
git
- AWS -
- id float
- (Computed) The ID of the Zone.
- rules str
Query language expression for filtering results. Empty rules means no filtering.
Operators:
- target
Type String - The target type for the scope. Supported types:
- AWS -
aws
- GCP -
gcp
- Azure -
azure
- Kubernetes -
kubernetes
- Image -
image
- Host -
host
- Git -
git
- AWS -
- id Number
- (Computed) The ID of the Zone.
- rules String
Query language expression for filtering results. Empty rules means no filtering.
Operators:
Import
Zone can be imported using the ID, e.g.
$ pulumi import sysdig:index/secureZone:SecureZone 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.