harness.governance.RuleSet
Explore with Pulumi AI
Resource for creating, updating, and managing rule.
Create RuleSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuleSet(name: string, args: RuleSetArgs, opts?: CustomResourceOptions);
@overload
def RuleSet(resource_name: str,
args: RuleSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RuleSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
rule_ids: Optional[Sequence[str]] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewRuleSet(ctx *Context, name string, args RuleSetArgs, opts ...ResourceOption) (*RuleSet, error)
public RuleSet(string name, RuleSetArgs args, CustomResourceOptions? opts = null)
public RuleSet(String name, RuleSetArgs args)
public RuleSet(String name, RuleSetArgs args, CustomResourceOptions options)
type: harness:governance:RuleSet
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 RuleSetArgs
- 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 RuleSetArgs
- 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 RuleSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleSetArgs
- 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 ruleSetResource = new Harness.Governance.RuleSet("ruleSetResource", new()
{
CloudProvider = "string",
RuleIds = new[]
{
"string",
},
Description = "string",
Name = "string",
});
example, err := governance.NewRuleSet(ctx, "ruleSetResource", &governance.RuleSetArgs{
CloudProvider: pulumi.String("string"),
RuleIds: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var ruleSetResource = new RuleSet("ruleSetResource", RuleSetArgs.builder()
.cloudProvider("string")
.ruleIds("string")
.description("string")
.name("string")
.build());
rule_set_resource = harness.governance.RuleSet("ruleSetResource",
cloud_provider="string",
rule_ids=["string"],
description="string",
name="string")
const ruleSetResource = new harness.governance.RuleSet("ruleSetResource", {
cloudProvider: "string",
ruleIds: ["string"],
description: "string",
name: "string",
});
type: harness:governance:RuleSet
properties:
cloudProvider: string
description: string
name: string
ruleIds:
- string
RuleSet 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 RuleSet resource accepts the following input properties:
- Cloud
Provider string - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- Rule
Ids List<string> - List of rule IDs
- Description string
- Description for rule set.
- Name string
- Name of the rule set.
- Cloud
Provider string - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- Rule
Ids []string - List of rule IDs
- Description string
- Description for rule set.
- Name string
- Name of the rule set.
- cloud
Provider String - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- rule
Ids List<String> - List of rule IDs
- description String
- Description for rule set.
- name String
- Name of the rule set.
- cloud
Provider string - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- rule
Ids string[] - List of rule IDs
- description string
- Description for rule set.
- name string
- Name of the rule set.
- cloud_
provider str - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- rule_
ids Sequence[str] - List of rule IDs
- description str
- Description for rule set.
- name str
- Name of the rule set.
- cloud
Provider String - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- rule
Ids List<String> - List of rule IDs
- description String
- Description for rule set.
- name String
- Name of the rule set.
Outputs
All input properties are implicitly available as output properties. Additionally, the RuleSet resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- rule_
set_ strid - Id of the rule.
Look up Existing RuleSet Resource
Get an existing RuleSet 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?: RuleSetState, opts?: CustomResourceOptions): RuleSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_provider: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
rule_ids: Optional[Sequence[str]] = None,
rule_set_id: Optional[str] = None) -> RuleSet
func GetRuleSet(ctx *Context, name string, id IDInput, state *RuleSetState, opts ...ResourceOption) (*RuleSet, error)
public static RuleSet Get(string name, Input<string> id, RuleSetState? state, CustomResourceOptions? opts = null)
public static RuleSet get(String name, Output<String> id, RuleSetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Cloud
Provider string - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- Description string
- Description for rule set.
- Name string
- Name of the rule set.
- Rule
Ids List<string> - List of rule IDs
- Rule
Set stringId - Id of the rule.
- Cloud
Provider string - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- Description string
- Description for rule set.
- Name string
- Name of the rule set.
- Rule
Ids []string - List of rule IDs
- Rule
Set stringId - Id of the rule.
- cloud
Provider String - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- description String
- Description for rule set.
- name String
- Name of the rule set.
- rule
Ids List<String> - List of rule IDs
- rule
Set StringId - Id of the rule.
- cloud
Provider string - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- description string
- Description for rule set.
- name string
- Name of the rule set.
- rule
Ids string[] - List of rule IDs
- rule
Set stringId - Id of the rule.
- cloud_
provider str - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- description str
- Description for rule set.
- name str
- Name of the rule set.
- rule_
ids Sequence[str] - List of rule IDs
- rule_
set_ strid - Id of the rule.
- cloud
Provider String - The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
- description String
- Description for rule set.
- name String
- Name of the rule set.
- rule
Ids List<String> - List of rule IDs
- rule
Set StringId - Id of the rule.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.