1. Packages
  2. Harness Provider
  3. API Docs
  4. governance
  5. RuleSet
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.governance.RuleSet

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    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:

    CloudProvider string
    The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
    RuleIds List<string>
    List of rule IDs
    Description string
    Description for rule set.
    Name string
    Name of the rule set.
    CloudProvider string
    The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
    RuleIds []string
    List of rule IDs
    Description string
    Description for rule set.
    Name string
    Name of the rule set.
    cloudProvider String
    The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
    ruleIds List<String>
    List of rule IDs
    description String
    Description for rule set.
    name String
    Name of the rule set.
    cloudProvider string
    The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
    ruleIds 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.
    cloudProvider String
    The cloud provider for the rule set. It should be either AWS, AZURE or GCP.
    ruleIds 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 string
    The provider-assigned unique ID for this managed resource.
    RuleSetId string
    Id of the rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleSetId string
    Id of the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleSetId String
    Id of the rule.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleSetId string
    Id of the rule.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_set_id str
    Id of the rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleSetId String
    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.
    The following state arguments are supported:
    CloudProvider 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.
    RuleIds List<string>
    List of rule IDs
    RuleSetId string
    Id of the rule.
    CloudProvider 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.
    RuleIds []string
    List of rule IDs
    RuleSetId string
    Id of the rule.
    cloudProvider 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.
    ruleIds List<String>
    List of rule IDs
    ruleSetId String
    Id of the rule.
    cloudProvider 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.
    ruleIds string[]
    List of rule IDs
    ruleSetId string
    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_id str
    Id of the rule.
    cloudProvider 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.
    ruleIds List<String>
    List of rule IDs
    ruleSetId String
    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.
    harness logo
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi