sysdig.SecurePostureControl
Explore with Pulumi AI
Example Usage
Create SecurePostureControl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurePostureControl(name: string, args: SecurePostureControlArgs, opts?: CustomResourceOptions);
@overload
def SecurePostureControl(resource_name: str,
args: SecurePostureControlArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurePostureControl(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
rego: Optional[str] = None,
remediation_details: Optional[str] = None,
resource_kind: Optional[str] = None,
severity: Optional[str] = None,
name: Optional[str] = None,
timeouts: Optional[SecurePostureControlTimeoutsArgs] = None)
func NewSecurePostureControl(ctx *Context, name string, args SecurePostureControlArgs, opts ...ResourceOption) (*SecurePostureControl, error)
public SecurePostureControl(string name, SecurePostureControlArgs args, CustomResourceOptions? opts = null)
public SecurePostureControl(String name, SecurePostureControlArgs args)
public SecurePostureControl(String name, SecurePostureControlArgs args, CustomResourceOptions options)
type: sysdig:SecurePostureControl
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 SecurePostureControlArgs
- 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 SecurePostureControlArgs
- 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 SecurePostureControlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurePostureControlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurePostureControlArgs
- 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 securePostureControlResource = new Sysdig.SecurePostureControl("securePostureControlResource", new()
{
Description = "string",
Rego = "string",
RemediationDetails = "string",
ResourceKind = "string",
Severity = "string",
Name = "string",
Timeouts = new Sysdig.Inputs.SecurePostureControlTimeoutsArgs
{
Create = "string",
},
});
example, err := sysdig.NewSecurePostureControl(ctx, "securePostureControlResource", &sysdig.SecurePostureControlArgs{
Description: pulumi.String("string"),
Rego: pulumi.String("string"),
RemediationDetails: pulumi.String("string"),
ResourceKind: pulumi.String("string"),
Severity: pulumi.String("string"),
Name: pulumi.String("string"),
Timeouts: &sysdig.SecurePostureControlTimeoutsArgs{
Create: pulumi.String("string"),
},
})
var securePostureControlResource = new SecurePostureControl("securePostureControlResource", SecurePostureControlArgs.builder()
.description("string")
.rego("string")
.remediationDetails("string")
.resourceKind("string")
.severity("string")
.name("string")
.timeouts(SecurePostureControlTimeoutsArgs.builder()
.create("string")
.build())
.build());
secure_posture_control_resource = sysdig.SecurePostureControl("securePostureControlResource",
description="string",
rego="string",
remediation_details="string",
resource_kind="string",
severity="string",
name="string",
timeouts={
"create": "string",
})
const securePostureControlResource = new sysdig.SecurePostureControl("securePostureControlResource", {
description: "string",
rego: "string",
remediationDetails: "string",
resourceKind: "string",
severity: "string",
name: "string",
timeouts: {
create: "string",
},
});
type: sysdig:SecurePostureControl
properties:
description: string
name: string
rego: string
remediationDetails: string
resourceKind: string
severity: string
timeouts:
create: string
SecurePostureControl 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 SecurePostureControl resource accepts the following input properties:
- Description string
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- Rego string
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- Remediation
Details string - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- Resource
Kind string - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- Severity string
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - Name string
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- Timeouts
Secure
Posture Control Timeouts
- Description string
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- Rego string
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- Remediation
Details string - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- Resource
Kind string - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- Severity string
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - Name string
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- Timeouts
Secure
Posture Control Timeouts Args
- description String
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- rego String
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation
Details String - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource
Kind String - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity String
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - name String
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- timeouts
Secure
Posture Control Timeouts
- description string
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- rego string
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation
Details string - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource
Kind string - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity string
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - name string
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- timeouts
Secure
Posture Control Timeouts
- description str
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- rego str
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation_
details str - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource_
kind str - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity str
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - name str
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- timeouts
Secure
Posture Control Timeouts Args
- description String
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- rego String
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation
Details String - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource
Kind String - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity String
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - name String
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurePostureControl 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 SecurePostureControl Resource
Get an existing SecurePostureControl 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?: SecurePostureControlState, opts?: CustomResourceOptions): SecurePostureControl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
rego: Optional[str] = None,
remediation_details: Optional[str] = None,
resource_kind: Optional[str] = None,
severity: Optional[str] = None,
timeouts: Optional[SecurePostureControlTimeoutsArgs] = None) -> SecurePostureControl
func GetSecurePostureControl(ctx *Context, name string, id IDInput, state *SecurePostureControlState, opts ...ResourceOption) (*SecurePostureControl, error)
public static SecurePostureControl Get(string name, Input<string> id, SecurePostureControlState? state, CustomResourceOptions? opts = null)
public static SecurePostureControl get(String name, Output<String> id, SecurePostureControlState state, CustomResourceOptions options)
resources: _: type: sysdig:SecurePostureControl 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.
- Description string
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- Name string
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- Rego string
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- Remediation
Details string - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- Resource
Kind string - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- Severity string
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - Timeouts
Secure
Posture Control Timeouts
- Description string
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- Name string
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- Rego string
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- Remediation
Details string - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- Resource
Kind string - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- Severity string
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - Timeouts
Secure
Posture Control Timeouts Args
- description String
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- name String
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- rego String
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation
Details String - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource
Kind String - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity String
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - timeouts
Secure
Posture Control Timeouts
- description string
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- name string
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- rego string
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation
Details string - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource
Kind string - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity string
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - timeouts
Secure
Posture Control Timeouts
- description str
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- name str
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- rego str
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation_
details str - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource_
kind str - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity str
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - timeouts
Secure
Posture Control Timeouts Args
- description String
- The description of the Posture Control, eg.
EC2 - Instances should not have a public IP address
- name String
- The name of the Posture Control. The name must be unique, e.g.
EC2 - Instances should not have a public IP address
- rego String
- The Posture control Rego.
package sysdig\ndefault risky = false\nrisky {\n input.NetworkInterfaces[_].Association.PublicIp\n input. NetworkInterfaces[_].Association.PublicIp != \"\"\n}
- remediation
Details String - The Posture control Remediation details.
Use a non-default VPC so that your instance is not assigned a public IP address by default
- resource
Kind String - The Posture Control Resource kind. It should be a supported resource kind, eg.
AWS_S3_BUCKET
- severity String
- The Posture Control Severity [
High
,Medium
,Low
], case sensitive, e.g.,High
. - timeouts Property Map
Supporting Types
SecurePostureControlTimeouts, SecurePostureControlTimeoutsArgs
- Create string
- Create string
- create String
- create string
- create str
- create String
Import
Posture custom control can be imported using the ID, e.g.
$ pulumi import sysdig:index/securePostureControl:SecurePostureControl example c 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.