harness.chaos.SecurityGovernanceRule
Explore with Pulumi AI
Resource for managing a Harness Chaos Security Governance Rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
// K8s Rule
const example = new harness.chaos.SecurityGovernanceRule("example", {
orgId: "<org_id>",
projectId: "<project_id>",
name: "<name>",
description: "<description>",
isEnabled: true,
conditionIds: ["<condition_id>"],
userGroupIds: ["_project_all_users"],
tags: [
"<tag1>",
"<tag2>",
],
timeWindows: [{
timeZone: "UTC",
startTime: 1711238400000,
duration: "24h",
recurrence: {
type: "Daily",
until: -1,
},
}],
});
// Linux Rule
const linuxRule = new harness.chaos.SecurityGovernanceRule("linux_rule", {
orgId: "<org_id>",
projectId: "<project_id>",
name: "<name>",
description: "<description>",
isEnabled: true,
conditionIds: ["<condition_id>"],
userGroupIds: ["_project_all_users"],
tags: [
"<tag1>",
"<tag2>",
],
timeWindows: [{
timeZone: "UTC",
startTime: 1711238400000,
duration: "24h",
recurrence: {
type: "Daily",
until: -1,
},
}],
});
// Windows Rule
const windowsRule = new harness.chaos.SecurityGovernanceRule("windows_rule", {
orgId: "<org_id>",
projectId: "<project_id>",
name: "<name>",
description: "<description>",
isEnabled: true,
conditionIds: ["<condition_id>"],
userGroupIds: ["_project_all_users"],
tags: [
"<tag1>",
"<tag2>",
],
timeWindows: [{
timeZone: "UTC",
startTime: 1711238400000,
duration: "24h",
recurrence: {
type: "Daily",
until: -1,
},
}],
});
import pulumi
import pulumi_harness as harness
# K8s Rule
example = harness.chaos.SecurityGovernanceRule("example",
org_id="<org_id>",
project_id="<project_id>",
name="<name>",
description="<description>",
is_enabled=True,
condition_ids=["<condition_id>"],
user_group_ids=["_project_all_users"],
tags=[
"<tag1>",
"<tag2>",
],
time_windows=[{
"time_zone": "UTC",
"start_time": 1711238400000,
"duration": "24h",
"recurrence": {
"type": "Daily",
"until": -1,
},
}])
# Linux Rule
linux_rule = harness.chaos.SecurityGovernanceRule("linux_rule",
org_id="<org_id>",
project_id="<project_id>",
name="<name>",
description="<description>",
is_enabled=True,
condition_ids=["<condition_id>"],
user_group_ids=["_project_all_users"],
tags=[
"<tag1>",
"<tag2>",
],
time_windows=[{
"time_zone": "UTC",
"start_time": 1711238400000,
"duration": "24h",
"recurrence": {
"type": "Daily",
"until": -1,
},
}])
# Windows Rule
windows_rule = harness.chaos.SecurityGovernanceRule("windows_rule",
org_id="<org_id>",
project_id="<project_id>",
name="<name>",
description="<description>",
is_enabled=True,
condition_ids=["<condition_id>"],
user_group_ids=["_project_all_users"],
tags=[
"<tag1>",
"<tag2>",
],
time_windows=[{
"time_zone": "UTC",
"start_time": 1711238400000,
"duration": "24h",
"recurrence": {
"type": "Daily",
"until": -1,
},
}])
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 {
// K8s Rule
_, err := chaos.NewSecurityGovernanceRule(ctx, "example", &chaos.SecurityGovernanceRuleArgs{
OrgId: pulumi.String("<org_id>"),
ProjectId: pulumi.String("<project_id>"),
Name: pulumi.String("<name>"),
Description: pulumi.String("<description>"),
IsEnabled: pulumi.Bool(true),
ConditionIds: pulumi.StringArray{
pulumi.String("<condition_id>"),
},
UserGroupIds: pulumi.StringArray{
pulumi.String("_project_all_users"),
},
Tags: pulumi.StringArray{
pulumi.String("<tag1>"),
pulumi.String("<tag2>"),
},
TimeWindows: chaos.SecurityGovernanceRuleTimeWindowArray{
&chaos.SecurityGovernanceRuleTimeWindowArgs{
TimeZone: pulumi.String("UTC"),
StartTime: pulumi.Int(1711238400000),
Duration: pulumi.String("24h"),
Recurrence: &chaos.SecurityGovernanceRuleTimeWindowRecurrenceArgs{
Type: pulumi.String("Daily"),
Until: pulumi.Int(-1),
},
},
},
})
if err != nil {
return err
}
// Linux Rule
_, err = chaos.NewSecurityGovernanceRule(ctx, "linux_rule", &chaos.SecurityGovernanceRuleArgs{
OrgId: pulumi.String("<org_id>"),
ProjectId: pulumi.String("<project_id>"),
Name: pulumi.String("<name>"),
Description: pulumi.String("<description>"),
IsEnabled: pulumi.Bool(true),
ConditionIds: pulumi.StringArray{
pulumi.String("<condition_id>"),
},
UserGroupIds: pulumi.StringArray{
pulumi.String("_project_all_users"),
},
Tags: pulumi.StringArray{
pulumi.String("<tag1>"),
pulumi.String("<tag2>"),
},
TimeWindows: chaos.SecurityGovernanceRuleTimeWindowArray{
&chaos.SecurityGovernanceRuleTimeWindowArgs{
TimeZone: pulumi.String("UTC"),
StartTime: pulumi.Int(1711238400000),
Duration: pulumi.String("24h"),
Recurrence: &chaos.SecurityGovernanceRuleTimeWindowRecurrenceArgs{
Type: pulumi.String("Daily"),
Until: pulumi.Int(-1),
},
},
},
})
if err != nil {
return err
}
// Windows Rule
_, err = chaos.NewSecurityGovernanceRule(ctx, "windows_rule", &chaos.SecurityGovernanceRuleArgs{
OrgId: pulumi.String("<org_id>"),
ProjectId: pulumi.String("<project_id>"),
Name: pulumi.String("<name>"),
Description: pulumi.String("<description>"),
IsEnabled: pulumi.Bool(true),
ConditionIds: pulumi.StringArray{
pulumi.String("<condition_id>"),
},
UserGroupIds: pulumi.StringArray{
pulumi.String("_project_all_users"),
},
Tags: pulumi.StringArray{
pulumi.String("<tag1>"),
pulumi.String("<tag2>"),
},
TimeWindows: chaos.SecurityGovernanceRuleTimeWindowArray{
&chaos.SecurityGovernanceRuleTimeWindowArgs{
TimeZone: pulumi.String("UTC"),
StartTime: pulumi.Int(1711238400000),
Duration: pulumi.String("24h"),
Recurrence: &chaos.SecurityGovernanceRuleTimeWindowRecurrenceArgs{
Type: pulumi.String("Daily"),
Until: pulumi.Int(-1),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
// K8s Rule
var example = new Harness.Chaos.SecurityGovernanceRule("example", new()
{
OrgId = "<org_id>",
ProjectId = "<project_id>",
Name = "<name>",
Description = "<description>",
IsEnabled = true,
ConditionIds = new[]
{
"<condition_id>",
},
UserGroupIds = new[]
{
"_project_all_users",
},
Tags = new[]
{
"<tag1>",
"<tag2>",
},
TimeWindows = new[]
{
new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowArgs
{
TimeZone = "UTC",
StartTime = 1711238400000,
Duration = "24h",
Recurrence = new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowRecurrenceArgs
{
Type = "Daily",
Until = -1,
},
},
},
});
// Linux Rule
var linuxRule = new Harness.Chaos.SecurityGovernanceRule("linux_rule", new()
{
OrgId = "<org_id>",
ProjectId = "<project_id>",
Name = "<name>",
Description = "<description>",
IsEnabled = true,
ConditionIds = new[]
{
"<condition_id>",
},
UserGroupIds = new[]
{
"_project_all_users",
},
Tags = new[]
{
"<tag1>",
"<tag2>",
},
TimeWindows = new[]
{
new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowArgs
{
TimeZone = "UTC",
StartTime = 1711238400000,
Duration = "24h",
Recurrence = new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowRecurrenceArgs
{
Type = "Daily",
Until = -1,
},
},
},
});
// Windows Rule
var windowsRule = new Harness.Chaos.SecurityGovernanceRule("windows_rule", new()
{
OrgId = "<org_id>",
ProjectId = "<project_id>",
Name = "<name>",
Description = "<description>",
IsEnabled = true,
ConditionIds = new[]
{
"<condition_id>",
},
UserGroupIds = new[]
{
"_project_all_users",
},
Tags = new[]
{
"<tag1>",
"<tag2>",
},
TimeWindows = new[]
{
new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowArgs
{
TimeZone = "UTC",
StartTime = 1711238400000,
Duration = "24h",
Recurrence = new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowRecurrenceArgs
{
Type = "Daily",
Until = -1,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.chaos.SecurityGovernanceRule;
import com.pulumi.harness.chaos.SecurityGovernanceRuleArgs;
import com.pulumi.harness.chaos.inputs.SecurityGovernanceRuleTimeWindowArgs;
import com.pulumi.harness.chaos.inputs.SecurityGovernanceRuleTimeWindowRecurrenceArgs;
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) {
// K8s Rule
var example = new SecurityGovernanceRule("example", SecurityGovernanceRuleArgs.builder()
.orgId("<org_id>")
.projectId("<project_id>")
.name("<name>")
.description("<description>")
.isEnabled(true)
.conditionIds("<condition_id>")
.userGroupIds("_project_all_users")
.tags(
"<tag1>",
"<tag2>")
.timeWindows(SecurityGovernanceRuleTimeWindowArgs.builder()
.timeZone("UTC")
.startTime(1711238400000)
.duration("24h")
.recurrence(SecurityGovernanceRuleTimeWindowRecurrenceArgs.builder()
.type("Daily")
.until(-1)
.build())
.build())
.build());
// Linux Rule
var linuxRule = new SecurityGovernanceRule("linuxRule", SecurityGovernanceRuleArgs.builder()
.orgId("<org_id>")
.projectId("<project_id>")
.name("<name>")
.description("<description>")
.isEnabled(true)
.conditionIds("<condition_id>")
.userGroupIds("_project_all_users")
.tags(
"<tag1>",
"<tag2>")
.timeWindows(SecurityGovernanceRuleTimeWindowArgs.builder()
.timeZone("UTC")
.startTime(1711238400000)
.duration("24h")
.recurrence(SecurityGovernanceRuleTimeWindowRecurrenceArgs.builder()
.type("Daily")
.until(-1)
.build())
.build())
.build());
// Windows Rule
var windowsRule = new SecurityGovernanceRule("windowsRule", SecurityGovernanceRuleArgs.builder()
.orgId("<org_id>")
.projectId("<project_id>")
.name("<name>")
.description("<description>")
.isEnabled(true)
.conditionIds("<condition_id>")
.userGroupIds("_project_all_users")
.tags(
"<tag1>",
"<tag2>")
.timeWindows(SecurityGovernanceRuleTimeWindowArgs.builder()
.timeZone("UTC")
.startTime(1711238400000)
.duration("24h")
.recurrence(SecurityGovernanceRuleTimeWindowRecurrenceArgs.builder()
.type("Daily")
.until(-1)
.build())
.build())
.build());
}
}
resources:
# K8s Rule
example:
type: harness:chaos:SecurityGovernanceRule
properties:
orgId: <org_id>
projectId: <project_id>
name: <name>
description: <description>
isEnabled: true
conditionIds:
- <condition_id>
userGroupIds:
- _project_all_users
tags:
- <tag1>
- <tag2>
timeWindows:
- timeZone: UTC
startTime: 1.7112384e+12
duration: 24h
recurrence:
type: Daily
until: -1
# Linux Rule
linuxRule:
type: harness:chaos:SecurityGovernanceRule
name: linux_rule
properties:
orgId: <org_id>
projectId: <project_id>
name: <name>
description: <description>
isEnabled: true
conditionIds:
- <condition_id>
userGroupIds:
- _project_all_users
tags:
- <tag1>
- <tag2>
timeWindows:
- timeZone: UTC
startTime: 1.7112384e+12
duration: 24h
recurrence:
type: Daily
until: -1
# Windows Rule
windowsRule:
type: harness:chaos:SecurityGovernanceRule
name: windows_rule
properties:
orgId: <org_id>
projectId: <project_id>
name: <name>
description: <description>
isEnabled: true
conditionIds:
- <condition_id>
userGroupIds:
- _project_all_users
tags:
- <tag1>
- <tag2>
timeWindows:
- timeZone: UTC
startTime: 1.7112384e+12
duration: 24h
recurrence:
type: Daily
until: -1
Create SecurityGovernanceRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecurityGovernanceRule(name: string, args: SecurityGovernanceRuleArgs, opts?: CustomResourceOptions);
@overload
def SecurityGovernanceRule(resource_name: str,
args: SecurityGovernanceRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecurityGovernanceRule(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[SecurityGovernanceRuleTimeWindowArgs]] = 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 NewSecurityGovernanceRule(ctx *Context, name string, args SecurityGovernanceRuleArgs, opts ...ResourceOption) (*SecurityGovernanceRule, error)
public SecurityGovernanceRule(string name, SecurityGovernanceRuleArgs args, CustomResourceOptions? opts = null)
public SecurityGovernanceRule(String name, SecurityGovernanceRuleArgs args)
public SecurityGovernanceRule(String name, SecurityGovernanceRuleArgs args, CustomResourceOptions options)
type: harness:chaos:SecurityGovernanceRule
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 SecurityGovernanceRuleArgs
- 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 SecurityGovernanceRuleArgs
- 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 SecurityGovernanceRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecurityGovernanceRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecurityGovernanceRuleArgs
- 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 securityGovernanceRuleResource = new Harness.Chaos.SecurityGovernanceRule("securityGovernanceRuleResource", new()
{
ConditionIds = new[]
{
"string",
},
OrgId = "string",
ProjectId = "string",
TimeWindows = new[]
{
new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowArgs
{
StartTime = 0,
TimeZone = "string",
Duration = "string",
EndTime = 0,
Recurrence = new Harness.Chaos.Inputs.SecurityGovernanceRuleTimeWindowRecurrenceArgs
{
Type = "string",
Until = 0,
Value = 0,
},
},
},
Description = "string",
IsEnabled = false,
Name = "string",
Tags = new[]
{
"string",
},
UserGroupIds = new[]
{
"string",
},
});
example, err := chaos.NewSecurityGovernanceRule(ctx, "securityGovernanceRuleResource", &chaos.SecurityGovernanceRuleArgs{
ConditionIds: pulumi.StringArray{
pulumi.String("string"),
},
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TimeWindows: chaos.SecurityGovernanceRuleTimeWindowArray{
&chaos.SecurityGovernanceRuleTimeWindowArgs{
StartTime: pulumi.Int(0),
TimeZone: pulumi.String("string"),
Duration: pulumi.String("string"),
EndTime: pulumi.Int(0),
Recurrence: &chaos.SecurityGovernanceRuleTimeWindowRecurrenceArgs{
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"),
},
})
var securityGovernanceRuleResource = new SecurityGovernanceRule("securityGovernanceRuleResource", SecurityGovernanceRuleArgs.builder()
.conditionIds("string")
.orgId("string")
.projectId("string")
.timeWindows(SecurityGovernanceRuleTimeWindowArgs.builder()
.startTime(0)
.timeZone("string")
.duration("string")
.endTime(0)
.recurrence(SecurityGovernanceRuleTimeWindowRecurrenceArgs.builder()
.type("string")
.until(0)
.value(0)
.build())
.build())
.description("string")
.isEnabled(false)
.name("string")
.tags("string")
.userGroupIds("string")
.build());
security_governance_rule_resource = harness.chaos.SecurityGovernanceRule("securityGovernanceRuleResource",
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 securityGovernanceRuleResource = new harness.chaos.SecurityGovernanceRule("securityGovernanceRuleResource", {
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:SecurityGovernanceRule
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
SecurityGovernanceRule 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 SecurityGovernanceRule resource accepts the following input properties:
- 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<SecurityGovernance Rule Time Window> - Description string
- Description of the security governance rule
- Is
Enabled bool - Whether the rule is enabled
- Name string
- Name of the security governance rule
- List<string>
- Tags for the security governance rule
- User
Group List<string>Ids - List of user group IDs associated with this rule
- Condition
Ids []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 []SecurityGovernance Rule Time Window Args - Description string
- Description of the security governance rule
- Is
Enabled bool - Whether the rule is enabled
- Name string
- Name of the security governance rule
- []string
- Tags for the security governance rule
- User
Group []stringIds - 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<SecurityGovernance Rule Time Window> - description String
- Description of the security governance rule
- is
Enabled Boolean - Whether the rule is enabled
- name String
- Name of the security governance rule
- List<String>
- Tags for the security governance rule
- user
Group List<String>Ids - List of user group IDs associated with this rule
- condition
Ids 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 SecurityGovernance Rule Time Window[] - description string
- Description of the security governance rule
- is
Enabled boolean - Whether the rule is enabled
- name string
- Name of the security governance rule
- string[]
- Tags for the security governance rule
- user
Group string[]Ids - 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[SecurityGovernance Rule Time Window Args] - description str
- Description of the security governance rule
- is_
enabled bool - Whether the rule is enabled
- name str
- Name of the security governance rule
- Sequence[str]
- Tags for the security governance rule
- user_
group_ Sequence[str]ids - 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<Property Map> - description String
- Description of the security governance rule
- is
Enabled Boolean - Whether the rule is enabled
- name String
- Name of the security governance rule
- List<String>
- Tags for the security governance rule
- user
Group List<String>Ids - List of user group IDs associated with this rule
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityGovernanceRule 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 SecurityGovernanceRule Resource
Get an existing SecurityGovernanceRule 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?: SecurityGovernanceRuleState, opts?: CustomResourceOptions): SecurityGovernanceRule
@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[SecurityGovernanceRuleTimeWindowArgs]] = None,
user_group_ids: Optional[Sequence[str]] = None) -> SecurityGovernanceRule
func GetSecurityGovernanceRule(ctx *Context, name string, id IDInput, state *SecurityGovernanceRuleState, opts ...ResourceOption) (*SecurityGovernanceRule, error)
public static SecurityGovernanceRule Get(string name, Input<string> id, SecurityGovernanceRuleState? state, CustomResourceOptions? opts = null)
public static SecurityGovernanceRule get(String name, Output<String> id, SecurityGovernanceRuleState state, CustomResourceOptions options)
resources: _: type: harness:chaos:SecurityGovernanceRule 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.
- 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
- List<string>
- Tags for the security governance rule
- Time
Windows List<SecurityGovernance Rule Time Window> - User
Group List<string>Ids - List of user group IDs associated with this rule
- Condition
Ids []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
- []string
- Tags for the security governance rule
- Time
Windows []SecurityGovernance Rule Time Window Args - User
Group []stringIds - 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 Boolean - 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
- List<String>
- Tags for the security governance rule
- time
Windows List<SecurityGovernance Rule Time Window> - user
Group List<String>Ids - List of user group IDs associated with this rule
- condition
Ids string[] - List of condition IDs associated with this rule
- description string
- Description of the security governance rule
- is
Enabled boolean - 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
- string[]
- Tags for the security governance rule
- time
Windows SecurityGovernance Rule Time Window[] - user
Group string[]Ids - 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
- Sequence[str]
- Tags for the security governance rule
- time_
windows Sequence[SecurityGovernance Rule Time Window Args] - user_
group_ Sequence[str]ids - 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 Boolean - 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
- List<String>
- Tags for the security governance rule
- time
Windows List<Property Map> - user
Group List<String>Ids - List of user group IDs associated with this rule
Supporting Types
SecurityGovernanceRuleTimeWindow, SecurityGovernanceRuleTimeWindowArgs
- Start
Time int - Time
Zone string - Duration string
- End
Time int - Recurrence
Security
Governance Rule Time Window Recurrence
- Start
Time int - Time
Zone string - Duration string
- End
Time int - Recurrence
Security
Governance Rule Time Window Recurrence
- start
Time Integer - time
Zone String - duration String
- end
Time Integer - recurrence
Security
Governance Rule Time Window Recurrence
- start
Time number - time
Zone string - duration string
- end
Time number - recurrence
Security
Governance Rule Time Window Recurrence
- start
Time Number - time
Zone String - duration String
- end
Time Number - recurrence Property Map
SecurityGovernanceRuleTimeWindowRecurrence, SecurityGovernanceRuleTimeWindowRecurrenceArgs
Import
The pulumi import
command can be used, for example:
Import Project level Chaos Security Governance Rule
$ pulumi import harness:chaos/securityGovernanceRule:SecurityGovernanceRule 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.