sysdig.SecureVulnerabilityPolicy
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const vulnerabilityPolicyExample = new sysdig.SecureVulnerabilityPolicy("vulnerabilityPolicyExample", {
bundles: ["1"],
description: "Vulnerability Policy Description",
stages: [{
configurations: [{
scope: "container.image != ''",
}],
name: "pipeline",
}],
});
import pulumi
import pulumi_sysdig as sysdig
vulnerability_policy_example = sysdig.SecureVulnerabilityPolicy("vulnerabilityPolicyExample",
bundles=["1"],
description="Vulnerability Policy Description",
stages=[{
"configurations": [{
"scope": "container.image != ''",
}],
"name": "pipeline",
}])
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.NewSecureVulnerabilityPolicy(ctx, "vulnerabilityPolicyExample", &sysdig.SecureVulnerabilityPolicyArgs{
Bundles: pulumi.StringArray{
pulumi.String("1"),
},
Description: pulumi.String("Vulnerability Policy Description"),
Stages: sysdig.SecureVulnerabilityPolicyStageArray{
&sysdig.SecureVulnerabilityPolicyStageArgs{
Configurations: sysdig.SecureVulnerabilityPolicyStageConfigurationArray{
&sysdig.SecureVulnerabilityPolicyStageConfigurationArgs{
Scope: pulumi.String("container.image != ''"),
},
},
Name: pulumi.String("pipeline"),
},
},
})
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 vulnerabilityPolicyExample = new Sysdig.SecureVulnerabilityPolicy("vulnerabilityPolicyExample", new()
{
Bundles = new[]
{
"1",
},
Description = "Vulnerability Policy Description",
Stages = new[]
{
new Sysdig.Inputs.SecureVulnerabilityPolicyStageArgs
{
Configurations = new[]
{
new Sysdig.Inputs.SecureVulnerabilityPolicyStageConfigurationArgs
{
Scope = "container.image != ''",
},
},
Name = "pipeline",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SecureVulnerabilityPolicy;
import com.pulumi.sysdig.SecureVulnerabilityPolicyArgs;
import com.pulumi.sysdig.inputs.SecureVulnerabilityPolicyStageArgs;
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 vulnerabilityPolicyExample = new SecureVulnerabilityPolicy("vulnerabilityPolicyExample", SecureVulnerabilityPolicyArgs.builder()
.bundles("1")
.description("Vulnerability Policy Description")
.stages(SecureVulnerabilityPolicyStageArgs.builder()
.configurations(SecureVulnerabilityPolicyStageConfigurationArgs.builder()
.scope("container.image != ''")
.build())
.name("pipeline")
.build())
.build());
}
}
resources:
vulnerabilityPolicyExample:
type: sysdig:SecureVulnerabilityPolicy
properties:
bundles:
- '1'
description: Vulnerability Policy Description
stages:
- configurations:
- scope: container.image != ''
name: pipeline
Create SecureVulnerabilityPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecureVulnerabilityPolicy(name: string, args: SecureVulnerabilityPolicyArgs, opts?: CustomResourceOptions);
@overload
def SecureVulnerabilityPolicy(resource_name: str,
args: SecureVulnerabilityPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecureVulnerabilityPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
bundles: Optional[Sequence[str]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
secure_vulnerability_policy_id: Optional[str] = None,
stages: Optional[Sequence[SecureVulnerabilityPolicyStageArgs]] = None,
timeouts: Optional[SecureVulnerabilityPolicyTimeoutsArgs] = None)
func NewSecureVulnerabilityPolicy(ctx *Context, name string, args SecureVulnerabilityPolicyArgs, opts ...ResourceOption) (*SecureVulnerabilityPolicy, error)
public SecureVulnerabilityPolicy(string name, SecureVulnerabilityPolicyArgs args, CustomResourceOptions? opts = null)
public SecureVulnerabilityPolicy(String name, SecureVulnerabilityPolicyArgs args)
public SecureVulnerabilityPolicy(String name, SecureVulnerabilityPolicyArgs args, CustomResourceOptions options)
type: sysdig:SecureVulnerabilityPolicy
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 SecureVulnerabilityPolicyArgs
- 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 SecureVulnerabilityPolicyArgs
- 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 SecureVulnerabilityPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureVulnerabilityPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecureVulnerabilityPolicyArgs
- 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 secureVulnerabilityPolicyResource = new Sysdig.SecureVulnerabilityPolicy("secureVulnerabilityPolicyResource", new()
{
Bundles = new[]
{
"string",
},
Description = "string",
Name = "string",
SecureVulnerabilityPolicyId = "string",
Stages = new[]
{
new Sysdig.Inputs.SecureVulnerabilityPolicyStageArgs
{
Name = "string",
Configurations = new[]
{
new Sysdig.Inputs.SecureVulnerabilityPolicyStageConfigurationArgs
{
Scope = "string",
},
},
},
},
Timeouts = new Sysdig.Inputs.SecureVulnerabilityPolicyTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
});
example, err := sysdig.NewSecureVulnerabilityPolicy(ctx, "secureVulnerabilityPolicyResource", &sysdig.SecureVulnerabilityPolicyArgs{
Bundles: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SecureVulnerabilityPolicyId: pulumi.String("string"),
Stages: sysdig.SecureVulnerabilityPolicyStageArray{
&sysdig.SecureVulnerabilityPolicyStageArgs{
Name: pulumi.String("string"),
Configurations: sysdig.SecureVulnerabilityPolicyStageConfigurationArray{
&sysdig.SecureVulnerabilityPolicyStageConfigurationArgs{
Scope: pulumi.String("string"),
},
},
},
},
Timeouts: &sysdig.SecureVulnerabilityPolicyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var secureVulnerabilityPolicyResource = new SecureVulnerabilityPolicy("secureVulnerabilityPolicyResource", SecureVulnerabilityPolicyArgs.builder()
.bundles("string")
.description("string")
.name("string")
.secureVulnerabilityPolicyId("string")
.stages(SecureVulnerabilityPolicyStageArgs.builder()
.name("string")
.configurations(SecureVulnerabilityPolicyStageConfigurationArgs.builder()
.scope("string")
.build())
.build())
.timeouts(SecureVulnerabilityPolicyTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.build());
secure_vulnerability_policy_resource = sysdig.SecureVulnerabilityPolicy("secureVulnerabilityPolicyResource",
bundles=["string"],
description="string",
name="string",
secure_vulnerability_policy_id="string",
stages=[{
"name": "string",
"configurations": [{
"scope": "string",
}],
}],
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
})
const secureVulnerabilityPolicyResource = new sysdig.SecureVulnerabilityPolicy("secureVulnerabilityPolicyResource", {
bundles: ["string"],
description: "string",
name: "string",
secureVulnerabilityPolicyId: "string",
stages: [{
name: "string",
configurations: [{
scope: "string",
}],
}],
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
});
type: sysdig:SecureVulnerabilityPolicy
properties:
bundles:
- string
description: string
name: string
secureVulnerabilityPolicyId: string
stages:
- configurations:
- scope: string
name: string
timeouts:
create: string
delete: string
read: string
update: string
SecureVulnerabilityPolicy 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 SecureVulnerabilityPolicy resource accepts the following input properties:
- Bundles List<string>
- Set of bundle IDs associated with the policy.
- Description string
- A description of the vulnerability policy.
- Name string
- The unique name of the vulnerability policy.
- Secure
Vulnerability stringPolicy Id - Stages
List<Secure
Vulnerability Policy Stage> - Set defining stages of vulnerability detection.
- Timeouts
Secure
Vulnerability Policy Timeouts
- Bundles []string
- Set of bundle IDs associated with the policy.
- Description string
- A description of the vulnerability policy.
- Name string
- The unique name of the vulnerability policy.
- Secure
Vulnerability stringPolicy Id - Stages
[]Secure
Vulnerability Policy Stage Args - Set defining stages of vulnerability detection.
- Timeouts
Secure
Vulnerability Policy Timeouts Args
- bundles List<String>
- Set of bundle IDs associated with the policy.
- description String
- A description of the vulnerability policy.
- name String
- The unique name of the vulnerability policy.
- secure
Vulnerability StringPolicy Id - stages
List<Secure
Vulnerability Policy Stage> - Set defining stages of vulnerability detection.
- timeouts
Secure
Vulnerability Policy Timeouts
- bundles string[]
- Set of bundle IDs associated with the policy.
- description string
- A description of the vulnerability policy.
- name string
- The unique name of the vulnerability policy.
- secure
Vulnerability stringPolicy Id - stages
Secure
Vulnerability Policy Stage[] - Set defining stages of vulnerability detection.
- timeouts
Secure
Vulnerability Policy Timeouts
- bundles Sequence[str]
- Set of bundle IDs associated with the policy.
- description str
- A description of the vulnerability policy.
- name str
- The unique name of the vulnerability policy.
- secure_
vulnerability_ strpolicy_ id - stages
Sequence[Secure
Vulnerability Policy Stage Args] - Set defining stages of vulnerability detection.
- timeouts
Secure
Vulnerability Policy Timeouts Args
- bundles List<String>
- Set of bundle IDs associated with the policy.
- description String
- A description of the vulnerability policy.
- name String
- The unique name of the vulnerability policy.
- secure
Vulnerability StringPolicy Id - stages List<Property Map>
- Set defining stages of vulnerability detection.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the SecureVulnerabilityPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- The external identifier computed after creation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- The external identifier computed after creation.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- The external identifier computed after creation.
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- The external identifier computed after creation.
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- The external identifier computed after creation.
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- The external identifier computed after creation.
Look up Existing SecureVulnerabilityPolicy Resource
Get an existing SecureVulnerabilityPolicy 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?: SecureVulnerabilityPolicyState, opts?: CustomResourceOptions): SecureVulnerabilityPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bundles: Optional[Sequence[str]] = None,
description: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
secure_vulnerability_policy_id: Optional[str] = None,
stages: Optional[Sequence[SecureVulnerabilityPolicyStageArgs]] = None,
timeouts: Optional[SecureVulnerabilityPolicyTimeoutsArgs] = None) -> SecureVulnerabilityPolicy
func GetSecureVulnerabilityPolicy(ctx *Context, name string, id IDInput, state *SecureVulnerabilityPolicyState, opts ...ResourceOption) (*SecureVulnerabilityPolicy, error)
public static SecureVulnerabilityPolicy Get(string name, Input<string> id, SecureVulnerabilityPolicyState? state, CustomResourceOptions? opts = null)
public static SecureVulnerabilityPolicy get(String name, Output<String> id, SecureVulnerabilityPolicyState state, CustomResourceOptions options)
resources: _: type: sysdig:SecureVulnerabilityPolicy 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.
- Bundles List<string>
- Set of bundle IDs associated with the policy.
- Description string
- A description of the vulnerability policy.
- Identifier string
- The external identifier computed after creation.
- Name string
- The unique name of the vulnerability policy.
- Secure
Vulnerability stringPolicy Id - Stages
List<Secure
Vulnerability Policy Stage> - Set defining stages of vulnerability detection.
- Timeouts
Secure
Vulnerability Policy Timeouts
- Bundles []string
- Set of bundle IDs associated with the policy.
- Description string
- A description of the vulnerability policy.
- Identifier string
- The external identifier computed after creation.
- Name string
- The unique name of the vulnerability policy.
- Secure
Vulnerability stringPolicy Id - Stages
[]Secure
Vulnerability Policy Stage Args - Set defining stages of vulnerability detection.
- Timeouts
Secure
Vulnerability Policy Timeouts Args
- bundles List<String>
- Set of bundle IDs associated with the policy.
- description String
- A description of the vulnerability policy.
- identifier String
- The external identifier computed after creation.
- name String
- The unique name of the vulnerability policy.
- secure
Vulnerability StringPolicy Id - stages
List<Secure
Vulnerability Policy Stage> - Set defining stages of vulnerability detection.
- timeouts
Secure
Vulnerability Policy Timeouts
- bundles string[]
- Set of bundle IDs associated with the policy.
- description string
- A description of the vulnerability policy.
- identifier string
- The external identifier computed after creation.
- name string
- The unique name of the vulnerability policy.
- secure
Vulnerability stringPolicy Id - stages
Secure
Vulnerability Policy Stage[] - Set defining stages of vulnerability detection.
- timeouts
Secure
Vulnerability Policy Timeouts
- bundles Sequence[str]
- Set of bundle IDs associated with the policy.
- description str
- A description of the vulnerability policy.
- identifier str
- The external identifier computed after creation.
- name str
- The unique name of the vulnerability policy.
- secure_
vulnerability_ strpolicy_ id - stages
Sequence[Secure
Vulnerability Policy Stage Args] - Set defining stages of vulnerability detection.
- timeouts
Secure
Vulnerability Policy Timeouts Args
- bundles List<String>
- Set of bundle IDs associated with the policy.
- description String
- A description of the vulnerability policy.
- identifier String
- The external identifier computed after creation.
- name String
- The unique name of the vulnerability policy.
- secure
Vulnerability StringPolicy Id - stages List<Property Map>
- Set defining stages of vulnerability detection.
- timeouts Property Map
Supporting Types
SecureVulnerabilityPolicyStage, SecureVulnerabilityPolicyStageArgs
- Name string
- The unique name of the vulnerability policy.
- Configurations
List<Secure
Vulnerability Policy Stage Configuration> - Configuration block for the stage. If no configuration is provided, it will apply to any workload in this stage.
- Name string
- The unique name of the vulnerability policy.
- Configurations
[]Secure
Vulnerability Policy Stage Configuration - Configuration block for the stage. If no configuration is provided, it will apply to any workload in this stage.
- name String
- The unique name of the vulnerability policy.
- configurations
List<Secure
Vulnerability Policy Stage Configuration> - Configuration block for the stage. If no configuration is provided, it will apply to any workload in this stage.
- name string
- The unique name of the vulnerability policy.
- configurations
Secure
Vulnerability Policy Stage Configuration[] - Configuration block for the stage. If no configuration is provided, it will apply to any workload in this stage.
- name str
- The unique name of the vulnerability policy.
- configurations
Sequence[Secure
Vulnerability Policy Stage Configuration] - Configuration block for the stage. If no configuration is provided, it will apply to any workload in this stage.
- name String
- The unique name of the vulnerability policy.
- configurations List<Property Map>
- Configuration block for the stage. If no configuration is provided, it will apply to any workload in this stage.
SecureVulnerabilityPolicyStageConfiguration, SecureVulnerabilityPolicyStageConfigurationArgs
- Scope string
- Scope expression for this stage
- Scope string
- Scope expression for this stage
- scope String
- Scope expression for this stage
- scope string
- Scope expression for this stage
- scope str
- Scope expression for this stage
- scope String
- Scope expression for this stage
SecureVulnerabilityPolicyTimeouts, SecureVulnerabilityPolicyTimeoutsArgs
Import
Secure vulnerability policies can be imported using the policy ID, e.g.:
$ pulumi import sysdig:index/secureVulnerabilityPolicy:SecureVulnerabilityPolicy example policy_123456
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.