1. Packages
  2. Impart Security
  3. API Docs
  4. RuleScriptDependencies
Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security

impart.RuleScriptDependencies

Explore with Pulumi AI

impart logo
Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security

    Manage rule script dependencies. There should only ever be one instance of this resource in a workspace at once, because it manages rule script dependencies at an organization level.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.impart.RuleScriptDependencies;
    import com.pulumi.impart.RuleScriptDependenciesArgs;
    import com.pulumi.impart.inputs.RuleScriptDependenciesDependencyArgs;
    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 example = new RuleScriptDependencies("example", RuleScriptDependenciesArgs.builder()
                .dependencies(RuleScriptDependenciesDependencyArgs.builder()
    %!v(PANIC=Format method: interface conversion: model.Expression is *model.TemplateExpression, not *model.LiteralValueExpression))
                    .build());
    
            }
    }
    
    resources:
      example:
        type: impart:RuleScriptDependencies
        properties:
          dependencies:
            - rule_script_id: <example_1.id>
              depends_on_rule_script_ids:
                - <example_2.id>
    

    Create RuleScriptDependencies Resource

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

    Constructor syntax

    new RuleScriptDependencies(name: string, args: RuleScriptDependenciesArgs, opts?: CustomResourceOptions);
    @overload
    def RuleScriptDependencies(resource_name: str,
                               args: RuleScriptDependenciesArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def RuleScriptDependencies(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               dependencies: Optional[Sequence[RuleScriptDependenciesDependencyArgs]] = None)
    func NewRuleScriptDependencies(ctx *Context, name string, args RuleScriptDependenciesArgs, opts ...ResourceOption) (*RuleScriptDependencies, error)
    public RuleScriptDependencies(string name, RuleScriptDependenciesArgs args, CustomResourceOptions? opts = null)
    public RuleScriptDependencies(String name, RuleScriptDependenciesArgs args)
    public RuleScriptDependencies(String name, RuleScriptDependenciesArgs args, CustomResourceOptions options)
    
    type: impart:RuleScriptDependencies
    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 RuleScriptDependenciesArgs
    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 RuleScriptDependenciesArgs
    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 RuleScriptDependenciesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuleScriptDependenciesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuleScriptDependenciesArgs
    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 ruleScriptDependenciesResource = new Impart.RuleScriptDependencies("ruleScriptDependenciesResource", new()
    {
        Dependencies = new[]
        {
            new Impart.Inputs.RuleScriptDependenciesDependencyArgs
            {
                DependsOnRuleScriptIds = new[]
                {
                    "string",
                },
                RuleScriptId = "string",
            },
        },
    });
    
    example, err := impart.NewRuleScriptDependencies(ctx, "ruleScriptDependenciesResource", &impart.RuleScriptDependenciesArgs{
    	Dependencies: impart.RuleScriptDependenciesDependencyArray{
    		&impart.RuleScriptDependenciesDependencyArgs{
    			DependsOnRuleScriptIds: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			RuleScriptId: pulumi.String("string"),
    		},
    	},
    })
    
    var ruleScriptDependenciesResource = new RuleScriptDependencies("ruleScriptDependenciesResource", RuleScriptDependenciesArgs.builder()
        .dependencies(RuleScriptDependenciesDependencyArgs.builder()
            .dependsOnRuleScriptIds("string")
            .ruleScriptId("string")
            .build())
        .build());
    
    rule_script_dependencies_resource = impart.RuleScriptDependencies("ruleScriptDependenciesResource", dependencies=[{
        "depends_on_rule_script_ids": ["string"],
        "rule_script_id": "string",
    }])
    
    const ruleScriptDependenciesResource = new impart.RuleScriptDependencies("ruleScriptDependenciesResource", {dependencies: [{
        dependsOnRuleScriptIds: ["string"],
        ruleScriptId: "string",
    }]});
    
    type: impart:RuleScriptDependencies
    properties:
        dependencies:
            - dependsOnRuleScriptIds:
                - string
              ruleScriptId: string
    

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

    Dependencies List<RuleScriptDependenciesDependency>
    An array of rule scripts and the other ids of the rules they depend on before executing.
    Dependencies []RuleScriptDependenciesDependencyArgs
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies List<RuleScriptDependenciesDependency>
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies RuleScriptDependenciesDependency[]
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies Sequence[RuleScriptDependenciesDependencyArgs]
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies List<Property Map>
    An array of rule scripts and the other ids of the rules they depend on before executing.

    Outputs

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

    Get an existing RuleScriptDependencies 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?: RuleScriptDependenciesState, opts?: CustomResourceOptions): RuleScriptDependencies
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dependencies: Optional[Sequence[RuleScriptDependenciesDependencyArgs]] = None) -> RuleScriptDependencies
    func GetRuleScriptDependencies(ctx *Context, name string, id IDInput, state *RuleScriptDependenciesState, opts ...ResourceOption) (*RuleScriptDependencies, error)
    public static RuleScriptDependencies Get(string name, Input<string> id, RuleScriptDependenciesState? state, CustomResourceOptions? opts = null)
    public static RuleScriptDependencies get(String name, Output<String> id, RuleScriptDependenciesState 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:
    Dependencies List<RuleScriptDependenciesDependency>
    An array of rule scripts and the other ids of the rules they depend on before executing.
    Dependencies []RuleScriptDependenciesDependencyArgs
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies List<RuleScriptDependenciesDependency>
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies RuleScriptDependenciesDependency[]
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies Sequence[RuleScriptDependenciesDependencyArgs]
    An array of rule scripts and the other ids of the rules they depend on before executing.
    dependencies List<Property Map>
    An array of rule scripts and the other ids of the rules they depend on before executing.

    Supporting Types

    RuleScriptDependenciesDependency, RuleScriptDependenciesDependencyArgs

    DependsOnRuleScriptIds List<string>
    IDs of the rule script this rule depends on.
    RuleScriptId string
    The ID of the rule script
    DependsOnRuleScriptIds []string
    IDs of the rule script this rule depends on.
    RuleScriptId string
    The ID of the rule script
    dependsOnRuleScriptIds List<String>
    IDs of the rule script this rule depends on.
    ruleScriptId String
    The ID of the rule script
    dependsOnRuleScriptIds string[]
    IDs of the rule script this rule depends on.
    ruleScriptId string
    The ID of the rule script
    depends_on_rule_script_ids Sequence[str]
    IDs of the rule script this rule depends on.
    rule_script_id str
    The ID of the rule script
    dependsOnRuleScriptIds List<String>
    IDs of the rule script this rule depends on.
    ruleScriptId String
    The ID of the rule script

    Package Details

    Repository
    impart impart-security/pulumi-impart
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the impart Terraform Provider.
    impart logo
    Impart Security v0.8.0 published on Monday, Nov 11, 2024 by Impart Security