sysdig.SecurePostureZone
Explore with Pulumi AI
Example Usage
Create SecurePostureZone Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurePostureZone(name: string, args?: SecurePostureZoneArgs, opts?: CustomResourceOptions);
@overload
def SecurePostureZone(resource_name: str,
args: Optional[SecurePostureZoneArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SecurePostureZone(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
policy_ids: Optional[Sequence[float]] = None,
scopes: Optional[SecurePostureZoneScopesArgs] = None,
secure_posture_zone_id: Optional[str] = None,
timeouts: Optional[SecurePostureZoneTimeoutsArgs] = None)
func NewSecurePostureZone(ctx *Context, name string, args *SecurePostureZoneArgs, opts ...ResourceOption) (*SecurePostureZone, error)
public SecurePostureZone(string name, SecurePostureZoneArgs? args = null, CustomResourceOptions? opts = null)
public SecurePostureZone(String name, SecurePostureZoneArgs args)
public SecurePostureZone(String name, SecurePostureZoneArgs args, CustomResourceOptions options)
type: sysdig:SecurePostureZone
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 SecurePostureZoneArgs
- 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 SecurePostureZoneArgs
- 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 SecurePostureZoneArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurePostureZoneArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurePostureZoneArgs
- 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 securePostureZoneResource = new Sysdig.SecurePostureZone("securePostureZoneResource", new()
{
Description = "string",
Name = "string",
PolicyIds = new[]
{
0,
},
Scopes = new Sysdig.Inputs.SecurePostureZoneScopesArgs
{
Scopes = new[]
{
new Sysdig.Inputs.SecurePostureZoneScopesScopeArgs
{
TargetType = "string",
Rules = "string",
},
},
},
SecurePostureZoneId = "string",
Timeouts = new Sysdig.Inputs.SecurePostureZoneTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := sysdig.NewSecurePostureZone(ctx, "securePostureZoneResource", &sysdig.SecurePostureZoneArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
PolicyIds: pulumi.Float64Array{
pulumi.Float64(0),
},
Scopes: &sysdig.SecurePostureZoneScopesArgs{
Scopes: sysdig.SecurePostureZoneScopesScopeArray{
&sysdig.SecurePostureZoneScopesScopeArgs{
TargetType: pulumi.String("string"),
Rules: pulumi.String("string"),
},
},
},
SecurePostureZoneId: pulumi.String("string"),
Timeouts: &sysdig.SecurePostureZoneTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var securePostureZoneResource = new SecurePostureZone("securePostureZoneResource", SecurePostureZoneArgs.builder()
.description("string")
.name("string")
.policyIds(0)
.scopes(SecurePostureZoneScopesArgs.builder()
.scopes(SecurePostureZoneScopesScopeArgs.builder()
.targetType("string")
.rules("string")
.build())
.build())
.securePostureZoneId("string")
.timeouts(SecurePostureZoneTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
secure_posture_zone_resource = sysdig.SecurePostureZone("securePostureZoneResource",
description="string",
name="string",
policy_ids=[0],
scopes={
"scopes": [{
"target_type": "string",
"rules": "string",
}],
},
secure_posture_zone_id="string",
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const securePostureZoneResource = new sysdig.SecurePostureZone("securePostureZoneResource", {
description: "string",
name: "string",
policyIds: [0],
scopes: {
scopes: [{
targetType: "string",
rules: "string",
}],
},
securePostureZoneId: "string",
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: sysdig:SecurePostureZone
properties:
description: string
name: string
policyIds:
- 0
scopes:
scopes:
- rules: string
targetType: string
securePostureZoneId: string
timeouts:
create: string
delete: string
read: string
update: string
SecurePostureZone 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 SecurePostureZone resource accepts the following input properties:
- Description string
- The description of the Posture Zone.
- Name string
- The name of the Posture Zone.
- Policy
Ids List<double> - The list of Posture Policy IDs attached to Zone.
- Scopes
Secure
Posture Zone Scopes - Scopes block defines list of scopes attached to Zone.
- Secure
Posture stringZone Id - Timeouts
Secure
Posture Zone Timeouts
- Description string
- The description of the Posture Zone.
- Name string
- The name of the Posture Zone.
- Policy
Ids []float64 - The list of Posture Policy IDs attached to Zone.
- Scopes
Secure
Posture Zone Scopes Args - Scopes block defines list of scopes attached to Zone.
- Secure
Posture stringZone Id - Timeouts
Secure
Posture Zone Timeouts Args
- description String
- The description of the Posture Zone.
- name String
- The name of the Posture Zone.
- policy
Ids List<Double> - The list of Posture Policy IDs attached to Zone.
- scopes
Secure
Posture Zone Scopes - Scopes block defines list of scopes attached to Zone.
- secure
Posture StringZone Id - timeouts
Secure
Posture Zone Timeouts
- description string
- The description of the Posture Zone.
- name string
- The name of the Posture Zone.
- policy
Ids number[] - The list of Posture Policy IDs attached to Zone.
- scopes
Secure
Posture Zone Scopes - Scopes block defines list of scopes attached to Zone.
- secure
Posture stringZone Id - timeouts
Secure
Posture Zone Timeouts
- description str
- The description of the Posture Zone.
- name str
- The name of the Posture Zone.
- policy_
ids Sequence[float] - The list of Posture Policy IDs attached to Zone.
- scopes
Secure
Posture Zone Scopes Args - Scopes block defines list of scopes attached to Zone.
- secure_
posture_ strzone_ id - timeouts
Secure
Posture Zone Timeouts Args
- description String
- The description of the Posture Zone.
- name String
- The name of the Posture Zone.
- policy
Ids List<Number> - The list of Posture Policy IDs attached to Zone.
- scopes Property Map
- Scopes block defines list of scopes attached to Zone.
- secure
Posture StringZone Id - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurePostureZone resource produces the following output properties:
- string
- (Computed) The zone author.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- 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.
- 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.
- 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.
- 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.
- last
Modified StringBy - (Computed) By whom is last modification made.
- last
Updated String - (Computed) Timestamp of last modification of zone.
Look up Existing SecurePostureZone Resource
Get an existing SecurePostureZone 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?: SecurePostureZoneState, opts?: CustomResourceOptions): SecurePostureZone
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
author: Optional[str] = None,
description: Optional[str] = None,
last_modified_by: Optional[str] = None,
last_updated: Optional[str] = None,
name: Optional[str] = None,
policy_ids: Optional[Sequence[float]] = None,
scopes: Optional[SecurePostureZoneScopesArgs] = None,
secure_posture_zone_id: Optional[str] = None,
timeouts: Optional[SecurePostureZoneTimeoutsArgs] = None) -> SecurePostureZone
func GetSecurePostureZone(ctx *Context, name string, id IDInput, state *SecurePostureZoneState, opts ...ResourceOption) (*SecurePostureZone, error)
public static SecurePostureZone Get(string name, Input<string> id, SecurePostureZoneState? state, CustomResourceOptions? opts = null)
public static SecurePostureZone get(String name, Output<String> id, SecurePostureZoneState state, CustomResourceOptions options)
resources: _: type: sysdig:SecurePostureZone 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 Posture 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 Posture Zone.
- Policy
Ids List<double> - The list of Posture Policy IDs attached to Zone.
- Scopes
Secure
Posture Zone Scopes - Scopes block defines list of scopes attached to Zone.
- Secure
Posture stringZone Id - Timeouts
Secure
Posture Zone Timeouts
- string
- (Computed) The zone author.
- Description string
- The description of the Posture 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 Posture Zone.
- Policy
Ids []float64 - The list of Posture Policy IDs attached to Zone.
- Scopes
Secure
Posture Zone Scopes Args - Scopes block defines list of scopes attached to Zone.
- Secure
Posture stringZone Id - Timeouts
Secure
Posture Zone Timeouts Args
- String
- (Computed) The zone author.
- description String
- The description of the Posture 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 Posture Zone.
- policy
Ids List<Double> - The list of Posture Policy IDs attached to Zone.
- scopes
Secure
Posture Zone Scopes - Scopes block defines list of scopes attached to Zone.
- secure
Posture StringZone Id - timeouts
Secure
Posture Zone Timeouts
- string
- (Computed) The zone author.
- description string
- The description of the Posture 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 Posture Zone.
- policy
Ids number[] - The list of Posture Policy IDs attached to Zone.
- scopes
Secure
Posture Zone Scopes - Scopes block defines list of scopes attached to Zone.
- secure
Posture stringZone Id - timeouts
Secure
Posture Zone Timeouts
- str
- (Computed) The zone author.
- description str
- The description of the Posture 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 Posture Zone.
- policy_
ids Sequence[float] - The list of Posture Policy IDs attached to Zone.
- scopes
Secure
Posture Zone Scopes Args - Scopes block defines list of scopes attached to Zone.
- secure_
posture_ strzone_ id - timeouts
Secure
Posture Zone Timeouts Args
- String
- (Computed) The zone author.
- description String
- The description of the Posture 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 Posture Zone.
- policy
Ids List<Number> - The list of Posture Policy IDs attached to Zone.
- scopes Property Map
- Scopes block defines list of scopes attached to Zone.
- secure
Posture StringZone Id - timeouts Property Map
Supporting Types
SecurePostureZoneScopes, SecurePostureZoneScopesArgs
SecurePostureZoneScopesScope, SecurePostureZoneScopesScopeArgs
- 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 -
- 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 -
- 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 -
- 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 -
- 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 -
- 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 -
- rules String
Query language expression for filtering results. Empty rules means no filtering.
Operators:
SecurePostureZoneTimeouts, SecurePostureZoneTimeoutsArgs
Import
Posture zone can be imported using the ID, e.g.
$ pulumi import sysdig:index/securePostureZone:SecurePostureZone 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.