1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. chaos
  6. SecurityGovernanceRuleV3
Viewing docs for Harness v0.14.3
published on Thursday, Jun 18, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.14.3
published on Thursday, Jun 18, 2026 by Pulumi

    Resource for managing a Harness Chaos Security Governance Rule (V3 / REST API).

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    // Example of a Security Governance Rule (V3)
    const example = new harness.chaos.SecurityGovernanceRuleV3("example", {
        orgId: orgId,
        projectId: projectId,
        name: "k8s-security-rule",
        description: "Security governance rule for Kubernetes chaos experiments",
        isEnabled: true,
        conditionIds: [k8sCondition.id],
        userGroupIds: ["_project_all_users"],
        tags: [
            "env:prod",
            "team:security",
        ],
        timeWindows: [{
            timeZone: "UTC",
            startTime: 1711238400000,
            duration: "24h",
            recurrence: {
                type: "Daily",
                until: -1,
            },
        }],
    });
    export const securityGovernanceRuleV3Id = example.id;
    
    import pulumi
    import pulumi_harness as harness
    
    # Example of a Security Governance Rule (V3)
    example = harness.chaos.SecurityGovernanceRuleV3("example",
        org_id=org_id,
        project_id=project_id,
        name="k8s-security-rule",
        description="Security governance rule for Kubernetes chaos experiments",
        is_enabled=True,
        condition_ids=[k8s_condition["id"]],
        user_group_ids=["_project_all_users"],
        tags=[
            "env:prod",
            "team:security",
        ],
        time_windows=[{
            "time_zone": "UTC",
            "start_time": int(1711238400000),
            "duration": "24h",
            "recurrence": {
                "type": "Daily",
                "until": -1,
            },
        }])
    pulumi.export("securityGovernanceRuleV3Id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Example of a Security Governance Rule (V3)
    		example, err := chaos.NewSecurityGovernanceRuleV3(ctx, "example", &chaos.SecurityGovernanceRuleV3Args{
    			OrgId:       pulumi.Any(orgId),
    			ProjectId:   pulumi.Any(projectId),
    			Name:        pulumi.String("k8s-security-rule"),
    			Description: pulumi.String("Security governance rule for Kubernetes chaos experiments"),
    			IsEnabled:   pulumi.Bool(true),
    			ConditionIds: pulumi.StringArray{
    				k8sCondition.Id,
    			},
    			UserGroupIds: pulumi.StringArray{
    				pulumi.String("_project_all_users"),
    			},
    			Tags: pulumi.StringArray{
    				pulumi.String("env:prod"),
    				pulumi.String("team:security"),
    			},
    			TimeWindows: chaos.SecurityGovernanceRuleV3TimeWindowArray{
    				&chaos.SecurityGovernanceRuleV3TimeWindowArgs{
    					TimeZone:  pulumi.String("UTC"),
    					StartTime: pulumi.Int(1711238400000),
    					Duration:  pulumi.String("24h"),
    					Recurrence: &chaos.SecurityGovernanceRuleV3TimeWindowRecurrenceArgs{
    						Type:  pulumi.String("Daily"),
    						Until: pulumi.Int(-1),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("securityGovernanceRuleV3Id", example.ID())
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        // Example of a Security Governance Rule (V3)
        var example = new Harness.Chaos.SecurityGovernanceRuleV3("example", new()
        {
            OrgId = orgId,
            ProjectId = projectId,
            Name = "k8s-security-rule",
            Description = "Security governance rule for Kubernetes chaos experiments",
            IsEnabled = true,
            ConditionIds = new[]
            {
                k8sCondition.Id,
            },
            UserGroupIds = new[]
            {
                "_project_all_users",
            },
            Tags = new[]
            {
                "env:prod",
                "team:security",
            },
            TimeWindows = new[]
            {
                new Harness.Chaos.Inputs.SecurityGovernanceRuleV3TimeWindowArgs
                {
                    TimeZone = "UTC",
                    StartTime = 1711238400000,
                    Duration = "24h",
                    Recurrence = new Harness.Chaos.Inputs.SecurityGovernanceRuleV3TimeWindowRecurrenceArgs
                    {
                        Type = "Daily",
                        Until = -1,
                    },
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["securityGovernanceRuleV3Id"] = example.Id,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.chaos.SecurityGovernanceRuleV3;
    import com.pulumi.harness.chaos.SecurityGovernanceRuleV3Args;
    import com.pulumi.harness.chaos.inputs.SecurityGovernanceRuleV3TimeWindowArgs;
    import com.pulumi.harness.chaos.inputs.SecurityGovernanceRuleV3TimeWindowRecurrenceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            // Example of a Security Governance Rule (V3)
            var example = new SecurityGovernanceRuleV3("example", SecurityGovernanceRuleV3Args.builder()
                .orgId(orgId)
                .projectId(projectId)
                .name("k8s-security-rule")
                .description("Security governance rule for Kubernetes chaos experiments")
                .isEnabled(true)
                .conditionIds(k8sCondition.id())
                .userGroupIds("_project_all_users")
                .tags(            
                    "env:prod",
                    "team:security")
                .timeWindows(SecurityGovernanceRuleV3TimeWindowArgs.builder()
                    .timeZone("UTC")
                    .startTime(1711238400000)
                    .duration("24h")
                    .recurrence(SecurityGovernanceRuleV3TimeWindowRecurrenceArgs.builder()
                        .type("Daily")
                        .until(-1)
                        .build())
                    .build())
                .build());
    
            ctx.export("securityGovernanceRuleV3Id", example.id());
        }
    }
    
    resources:
      # Example of a Security Governance Rule (V3)
      example:
        type: harness:chaos:SecurityGovernanceRuleV3
        properties:
          orgId: ${orgId}
          projectId: ${projectId}
          name: k8s-security-rule
          description: Security governance rule for Kubernetes chaos experiments
          isEnabled: true
          conditionIds:
            - ${k8sCondition.id}
          userGroupIds:
            - _project_all_users
          tags:
            - env:prod
            - team:security
          timeWindows:
            - timeZone: UTC
              startTime: 1.7112384e+12
              duration: 24h
              recurrence:
                type: Daily
                until: -1
    outputs:
      securityGovernanceRuleV3Id: ${example.id}
    
    pulumi {
      required_providers {
        harness = {
          source = "pulumi/harness"
        }
      }
    }
    
    # Example of a Security Governance Rule (V3)
    resource "harness_chaos_securitygovernancerulev3" "example" {
      org_id         = orgId
      project_id     = projectId
      name           = "k8s-security-rule"
      description    = "Security governance rule for Kubernetes chaos experiments"
      is_enabled     = true
      condition_ids  = [k8sCondition.id]
      user_group_ids = ["_project_all_users"]
      tags           = ["env:prod", "team:security"]
      time_windows {
        time_zone  = "UTC"
        start_time = 1711238400000
        duration   = "24h"
        recurrence = {
          type  = "Daily"
          until = -1
        }
      }
    }
    output "securityGovernanceRuleV3Id" {
      value = harness_chaos_securitygovernancerulev3.example.id
    }
    

    Create SecurityGovernanceRuleV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecurityGovernanceRuleV3(name: string, args: SecurityGovernanceRuleV3Args, opts?: CustomResourceOptions);
    @overload
    def SecurityGovernanceRuleV3(resource_name: str,
                                 args: SecurityGovernanceRuleV3Args,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityGovernanceRuleV3(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 condition_ids: Optional[Sequence[str]] = None,
                                 org_id: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 time_windows: Optional[Sequence[SecurityGovernanceRuleV3TimeWindowArgs]] = None,
                                 description: Optional[str] = None,
                                 is_enabled: Optional[bool] = None,
                                 name: Optional[str] = None,
                                 tags: Optional[Sequence[str]] = None,
                                 user_group_ids: Optional[Sequence[str]] = None)
    func NewSecurityGovernanceRuleV3(ctx *Context, name string, args SecurityGovernanceRuleV3Args, opts ...ResourceOption) (*SecurityGovernanceRuleV3, error)
    public SecurityGovernanceRuleV3(string name, SecurityGovernanceRuleV3Args args, CustomResourceOptions? opts = null)
    public SecurityGovernanceRuleV3(String name, SecurityGovernanceRuleV3Args args)
    public SecurityGovernanceRuleV3(String name, SecurityGovernanceRuleV3Args args, CustomResourceOptions options)
    
    type: harness:chaos:SecurityGovernanceRuleV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "harness_chaos_securitygovernancerulev3" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SecurityGovernanceRuleV3Args
    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 SecurityGovernanceRuleV3Args
    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 SecurityGovernanceRuleV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityGovernanceRuleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityGovernanceRuleV3Args
    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 securityGovernanceRuleV3Resource = new Harness.Chaos.SecurityGovernanceRuleV3("securityGovernanceRuleV3Resource", new()
    {
        ConditionIds = new[]
        {
            "string",
        },
        OrgId = "string",
        ProjectId = "string",
        TimeWindows = new[]
        {
            new Harness.Chaos.Inputs.SecurityGovernanceRuleV3TimeWindowArgs
            {
                StartTime = 0,
                TimeZone = "string",
                Duration = "string",
                EndTime = 0,
                Recurrence = new Harness.Chaos.Inputs.SecurityGovernanceRuleV3TimeWindowRecurrenceArgs
                {
                    Type = "string",
                    Until = 0,
                    Value = 0,
                },
            },
        },
        Description = "string",
        IsEnabled = false,
        Name = "string",
        Tags = new[]
        {
            "string",
        },
        UserGroupIds = new[]
        {
            "string",
        },
    });
    
    example, err := chaos.NewSecurityGovernanceRuleV3(ctx, "securityGovernanceRuleV3Resource", &chaos.SecurityGovernanceRuleV3Args{
    	ConditionIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OrgId:     pulumi.String("string"),
    	ProjectId: pulumi.String("string"),
    	TimeWindows: chaos.SecurityGovernanceRuleV3TimeWindowArray{
    		&chaos.SecurityGovernanceRuleV3TimeWindowArgs{
    			StartTime: pulumi.Int(0),
    			TimeZone:  pulumi.String("string"),
    			Duration:  pulumi.String("string"),
    			EndTime:   pulumi.Int(0),
    			Recurrence: &chaos.SecurityGovernanceRuleV3TimeWindowRecurrenceArgs{
    				Type:  pulumi.String("string"),
    				Until: pulumi.Int(0),
    				Value: pulumi.Int(0),
    			},
    		},
    	},
    	Description: pulumi.String("string"),
    	IsEnabled:   pulumi.Bool(false),
    	Name:        pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	UserGroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "harness_chaos_securitygovernancerulev3" "securityGovernanceRuleV3Resource" {
      condition_ids = ["string"]
      org_id        = "string"
      project_id    = "string"
      time_windows {
        start_time = 0
        time_zone  = "string"
        duration   = "string"
        end_time   = 0
        recurrence = {
          type  = "string"
          until = 0
          value = 0
        }
      }
      description    = "string"
      is_enabled     = false
      name           = "string"
      tags           = ["string"]
      user_group_ids = ["string"]
    }
    
    var securityGovernanceRuleV3Resource = new SecurityGovernanceRuleV3("securityGovernanceRuleV3Resource", SecurityGovernanceRuleV3Args.builder()
        .conditionIds("string")
        .orgId("string")
        .projectId("string")
        .timeWindows(SecurityGovernanceRuleV3TimeWindowArgs.builder()
            .startTime(0)
            .timeZone("string")
            .duration("string")
            .endTime(0)
            .recurrence(SecurityGovernanceRuleV3TimeWindowRecurrenceArgs.builder()
                .type("string")
                .until(0)
                .value(0)
                .build())
            .build())
        .description("string")
        .isEnabled(false)
        .name("string")
        .tags("string")
        .userGroupIds("string")
        .build());
    
    security_governance_rule_v3_resource = harness.chaos.SecurityGovernanceRuleV3("securityGovernanceRuleV3Resource",
        condition_ids=["string"],
        org_id="string",
        project_id="string",
        time_windows=[{
            "start_time": 0,
            "time_zone": "string",
            "duration": "string",
            "end_time": 0,
            "recurrence": {
                "type": "string",
                "until": 0,
                "value": 0,
            },
        }],
        description="string",
        is_enabled=False,
        name="string",
        tags=["string"],
        user_group_ids=["string"])
    
    const securityGovernanceRuleV3Resource = new harness.chaos.SecurityGovernanceRuleV3("securityGovernanceRuleV3Resource", {
        conditionIds: ["string"],
        orgId: "string",
        projectId: "string",
        timeWindows: [{
            startTime: 0,
            timeZone: "string",
            duration: "string",
            endTime: 0,
            recurrence: {
                type: "string",
                until: 0,
                value: 0,
            },
        }],
        description: "string",
        isEnabled: false,
        name: "string",
        tags: ["string"],
        userGroupIds: ["string"],
    });
    
    type: harness:chaos:SecurityGovernanceRuleV3
    properties:
        conditionIds:
            - string
        description: string
        isEnabled: false
        name: string
        orgId: string
        projectId: string
        tags:
            - string
        timeWindows:
            - duration: string
              endTime: 0
              recurrence:
                type: string
                until: 0
                value: 0
              startTime: 0
              timeZone: string
        userGroupIds:
            - string
    

    SecurityGovernanceRuleV3 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 SecurityGovernanceRuleV3 resource accepts the following input properties:

    ConditionIds List<string>
    List of condition IDs associated with this rule
    OrgId string
    The organization ID of the security governance rule
    ProjectId string
    The project ID of the security governance rule
    TimeWindows List<SecurityGovernanceRuleV3TimeWindow>
    Time windows during which the rule is active
    Description string
    Description of the security governance rule
    IsEnabled bool
    Whether the rule is enabled
    Name string
    Name of the security governance rule
    Tags List<string>
    Tags for the security governance rule
    UserGroupIds List<string>
    List of user group IDs associated with this rule
    ConditionIds []string
    List of condition IDs associated with this rule
    OrgId string
    The organization ID of the security governance rule
    ProjectId string
    The project ID of the security governance rule
    TimeWindows []SecurityGovernanceRuleV3TimeWindowArgs
    Time windows during which the rule is active
    Description string
    Description of the security governance rule
    IsEnabled bool
    Whether the rule is enabled
    Name string
    Name of the security governance rule
    Tags []string
    Tags for the security governance rule
    UserGroupIds []string
    List of user group IDs associated with this rule
    condition_ids list(string)
    List of condition IDs associated with this rule
    org_id string
    The organization ID of the security governance rule
    project_id string
    The project ID of the security governance rule
    time_windows list(object)
    Time windows during which the rule is active
    description string
    Description of the security governance rule
    is_enabled bool
    Whether the rule is enabled
    name string
    Name of the security governance rule
    tags list(string)
    Tags for the security governance rule
    user_group_ids list(string)
    List of user group IDs associated with this rule
    conditionIds List<String>
    List of condition IDs associated with this rule
    orgId String
    The organization ID of the security governance rule
    projectId String
    The project ID of the security governance rule
    timeWindows List<SecurityGovernanceRuleV3TimeWindow>
    Time windows during which the rule is active
    description String
    Description of the security governance rule
    isEnabled Boolean
    Whether the rule is enabled
    name String
    Name of the security governance rule
    tags List<String>
    Tags for the security governance rule
    userGroupIds List<String>
    List of user group IDs associated with this rule
    conditionIds string[]
    List of condition IDs associated with this rule
    orgId string
    The organization ID of the security governance rule
    projectId string
    The project ID of the security governance rule
    timeWindows SecurityGovernanceRuleV3TimeWindow[]
    Time windows during which the rule is active
    description string
    Description of the security governance rule
    isEnabled boolean
    Whether the rule is enabled
    name string
    Name of the security governance rule
    tags string[]
    Tags for the security governance rule
    userGroupIds string[]
    List of user group IDs associated with this rule
    condition_ids Sequence[str]
    List of condition IDs associated with this rule
    org_id str
    The organization ID of the security governance rule
    project_id str
    The project ID of the security governance rule
    time_windows Sequence[SecurityGovernanceRuleV3TimeWindowArgs]
    Time windows during which the rule is active
    description str
    Description of the security governance rule
    is_enabled bool
    Whether the rule is enabled
    name str
    Name of the security governance rule
    tags Sequence[str]
    Tags for the security governance rule
    user_group_ids Sequence[str]
    List of user group IDs associated with this rule
    conditionIds List<String>
    List of condition IDs associated with this rule
    orgId String
    The organization ID of the security governance rule
    projectId String
    The project ID of the security governance rule
    timeWindows List<Property Map>
    Time windows during which the rule is active
    description String
    Description of the security governance rule
    isEnabled Boolean
    Whether the rule is enabled
    name String
    Name of the security governance rule
    tags List<String>
    Tags for the security governance rule
    userGroupIds List<String>
    List of user group IDs associated with this rule

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecurityGovernanceRuleV3 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 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 SecurityGovernanceRuleV3 Resource

    Get an existing SecurityGovernanceRuleV3 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?: SecurityGovernanceRuleV3State, opts?: CustomResourceOptions): SecurityGovernanceRuleV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            condition_ids: Optional[Sequence[str]] = None,
            description: Optional[str] = None,
            is_enabled: Optional[bool] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            time_windows: Optional[Sequence[SecurityGovernanceRuleV3TimeWindowArgs]] = None,
            user_group_ids: Optional[Sequence[str]] = None) -> SecurityGovernanceRuleV3
    func GetSecurityGovernanceRuleV3(ctx *Context, name string, id IDInput, state *SecurityGovernanceRuleV3State, opts ...ResourceOption) (*SecurityGovernanceRuleV3, error)
    public static SecurityGovernanceRuleV3 Get(string name, Input<string> id, SecurityGovernanceRuleV3State? state, CustomResourceOptions? opts = null)
    public static SecurityGovernanceRuleV3 get(String name, Output<String> id, SecurityGovernanceRuleV3State state, CustomResourceOptions options)
    resources:  _:    type: harness:chaos:SecurityGovernanceRuleV3    get:      id: ${id}
    import {
      to = harness_chaos_securitygovernancerulev3.example
      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.
    The following state arguments are supported:
    ConditionIds List<string>
    List of condition IDs associated with this rule
    Description string
    Description of the security governance rule
    IsEnabled bool
    Whether the rule is enabled
    Name string
    Name of the security governance rule
    OrgId string
    The organization ID of the security governance rule
    ProjectId string
    The project ID of the security governance rule
    Tags List<string>
    Tags for the security governance rule
    TimeWindows List<SecurityGovernanceRuleV3TimeWindow>
    Time windows during which the rule is active
    UserGroupIds List<string>
    List of user group IDs associated with this rule
    ConditionIds []string
    List of condition IDs associated with this rule
    Description string
    Description of the security governance rule
    IsEnabled bool
    Whether the rule is enabled
    Name string
    Name of the security governance rule
    OrgId string
    The organization ID of the security governance rule
    ProjectId string
    The project ID of the security governance rule
    Tags []string
    Tags for the security governance rule
    TimeWindows []SecurityGovernanceRuleV3TimeWindowArgs
    Time windows during which the rule is active
    UserGroupIds []string
    List of user group IDs associated with this rule
    condition_ids list(string)
    List of condition IDs associated with this rule
    description string
    Description of the security governance rule
    is_enabled bool
    Whether the rule is enabled
    name string
    Name of the security governance rule
    org_id string
    The organization ID of the security governance rule
    project_id string
    The project ID of the security governance rule
    tags list(string)
    Tags for the security governance rule
    time_windows list(object)
    Time windows during which the rule is active
    user_group_ids list(string)
    List of user group IDs associated with this rule
    conditionIds List<String>
    List of condition IDs associated with this rule
    description String
    Description of the security governance rule
    isEnabled Boolean
    Whether the rule is enabled
    name String
    Name of the security governance rule
    orgId String
    The organization ID of the security governance rule
    projectId String
    The project ID of the security governance rule
    tags List<String>
    Tags for the security governance rule
    timeWindows List<SecurityGovernanceRuleV3TimeWindow>
    Time windows during which the rule is active
    userGroupIds List<String>
    List of user group IDs associated with this rule
    conditionIds string[]
    List of condition IDs associated with this rule
    description string
    Description of the security governance rule
    isEnabled boolean
    Whether the rule is enabled
    name string
    Name of the security governance rule
    orgId string
    The organization ID of the security governance rule
    projectId string
    The project ID of the security governance rule
    tags string[]
    Tags for the security governance rule
    timeWindows SecurityGovernanceRuleV3TimeWindow[]
    Time windows during which the rule is active
    userGroupIds string[]
    List of user group IDs associated with this rule
    condition_ids Sequence[str]
    List of condition IDs associated with this rule
    description str
    Description of the security governance rule
    is_enabled bool
    Whether the rule is enabled
    name str
    Name of the security governance rule
    org_id str
    The organization ID of the security governance rule
    project_id str
    The project ID of the security governance rule
    tags Sequence[str]
    Tags for the security governance rule
    time_windows Sequence[SecurityGovernanceRuleV3TimeWindowArgs]
    Time windows during which the rule is active
    user_group_ids Sequence[str]
    List of user group IDs associated with this rule
    conditionIds List<String>
    List of condition IDs associated with this rule
    description String
    Description of the security governance rule
    isEnabled Boolean
    Whether the rule is enabled
    name String
    Name of the security governance rule
    orgId String
    The organization ID of the security governance rule
    projectId String
    The project ID of the security governance rule
    tags List<String>
    Tags for the security governance rule
    timeWindows List<Property Map>
    Time windows during which the rule is active
    userGroupIds List<String>
    List of user group IDs associated with this rule

    Supporting Types

    SecurityGovernanceRuleV3TimeWindow, SecurityGovernanceRuleV3TimeWindowArgs

    StartTime int
    Start of the window as a Unix epoch timestamp in milliseconds.
    TimeZone string
    IANA time zone for the window (e.g., UTC, America/New_York).
    Duration string
    Duration of the window (e.g., 30m, 1h). Computed from endTime when not set.
    EndTime int
    End of the window as a Unix epoch timestamp in milliseconds. Computed from duration when not set.
    Recurrence SecurityGovernanceRuleV3TimeWindowRecurrence
    Recurrence specification for the time window.
    StartTime int
    Start of the window as a Unix epoch timestamp in milliseconds.
    TimeZone string
    IANA time zone for the window (e.g., UTC, America/New_York).
    Duration string
    Duration of the window (e.g., 30m, 1h). Computed from endTime when not set.
    EndTime int
    End of the window as a Unix epoch timestamp in milliseconds. Computed from duration when not set.
    Recurrence SecurityGovernanceRuleV3TimeWindowRecurrence
    Recurrence specification for the time window.
    start_time number
    Start of the window as a Unix epoch timestamp in milliseconds.
    time_zone string
    IANA time zone for the window (e.g., UTC, America/New_York).
    duration string
    Duration of the window (e.g., 30m, 1h). Computed from endTime when not set.
    end_time number
    End of the window as a Unix epoch timestamp in milliseconds. Computed from duration when not set.
    recurrence object
    Recurrence specification for the time window.
    startTime Integer
    Start of the window as a Unix epoch timestamp in milliseconds.
    timeZone String
    IANA time zone for the window (e.g., UTC, America/New_York).
    duration String
    Duration of the window (e.g., 30m, 1h). Computed from endTime when not set.
    endTime Integer
    End of the window as a Unix epoch timestamp in milliseconds. Computed from duration when not set.
    recurrence SecurityGovernanceRuleV3TimeWindowRecurrence
    Recurrence specification for the time window.
    startTime number
    Start of the window as a Unix epoch timestamp in milliseconds.
    timeZone string
    IANA time zone for the window (e.g., UTC, America/New_York).
    duration string
    Duration of the window (e.g., 30m, 1h). Computed from endTime when not set.
    endTime number
    End of the window as a Unix epoch timestamp in milliseconds. Computed from duration when not set.
    recurrence SecurityGovernanceRuleV3TimeWindowRecurrence
    Recurrence specification for the time window.
    start_time int
    Start of the window as a Unix epoch timestamp in milliseconds.
    time_zone str
    IANA time zone for the window (e.g., UTC, America/New_York).
    duration str
    Duration of the window (e.g., 30m, 1h). Computed from endTime when not set.
    end_time int
    End of the window as a Unix epoch timestamp in milliseconds. Computed from duration when not set.
    recurrence SecurityGovernanceRuleV3TimeWindowRecurrence
    Recurrence specification for the time window.
    startTime Number
    Start of the window as a Unix epoch timestamp in milliseconds.
    timeZone String
    IANA time zone for the window (e.g., UTC, America/New_York).
    duration String
    Duration of the window (e.g., 30m, 1h). Computed from endTime when not set.
    endTime Number
    End of the window as a Unix epoch timestamp in milliseconds. Computed from duration when not set.
    recurrence Property Map
    Recurrence specification for the time window.

    SecurityGovernanceRuleV3TimeWindowRecurrence, SecurityGovernanceRuleV3TimeWindowRecurrenceArgs

    Type string
    Recurrence type (None, Daily, Weekly, Monthly, Yearly).
    Until int
    End of the recurrence as a Unix epoch timestamp in milliseconds. Use -1 for no end.
    Value int
    Day of month for Monthly recurrence. Only used when type is Monthly.
    Type string
    Recurrence type (None, Daily, Weekly, Monthly, Yearly).
    Until int
    End of the recurrence as a Unix epoch timestamp in milliseconds. Use -1 for no end.
    Value int
    Day of month for Monthly recurrence. Only used when type is Monthly.
    type string
    Recurrence type (None, Daily, Weekly, Monthly, Yearly).
    until number
    End of the recurrence as a Unix epoch timestamp in milliseconds. Use -1 for no end.
    value number
    Day of month for Monthly recurrence. Only used when type is Monthly.
    type String
    Recurrence type (None, Daily, Weekly, Monthly, Yearly).
    until Integer
    End of the recurrence as a Unix epoch timestamp in milliseconds. Use -1 for no end.
    value Integer
    Day of month for Monthly recurrence. Only used when type is Monthly.
    type string
    Recurrence type (None, Daily, Weekly, Monthly, Yearly).
    until number
    End of the recurrence as a Unix epoch timestamp in milliseconds. Use -1 for no end.
    value number
    Day of month for Monthly recurrence. Only used when type is Monthly.
    type str
    Recurrence type (None, Daily, Weekly, Monthly, Yearly).
    until int
    End of the recurrence as a Unix epoch timestamp in milliseconds. Use -1 for no end.
    value int
    Day of month for Monthly recurrence. Only used when type is Monthly.
    type String
    Recurrence type (None, Daily, Weekly, Monthly, Yearly).
    until Number
    End of the recurrence as a Unix epoch timestamp in milliseconds. Use -1 for no end.
    value Number
    Day of month for Monthly recurrence. Only used when type is Monthly.

    Import

    The pulumi import command can be used, for example:

    Import Project level Chaos Security Governance Rule (V3)

    $ pulumi import harness:chaos/securityGovernanceRuleV3:SecurityGovernanceRuleV3 example org_id/project_id/rule_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.14.3
    published on Thursday, Jun 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial