impart.RuleDependencies
Explore with Pulumi AI
Manage rule dependencies. There should only ever be one instance of this resource in a workspace at once, because it manages rule dependencies at an organization level.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
example:
type: impart:RuleDependencies
properties:
dependencies:
- rule_id: <example_1.id>
depends_on:
- <example_2.id>
Create RuleDependencies Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RuleDependencies(name: string, args: RuleDependenciesArgs, opts?: CustomResourceOptions);
@overload
def RuleDependencies(resource_name: str,
args: RuleDependenciesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RuleDependencies(resource_name: str,
opts: Optional[ResourceOptions] = None,
dependencies: Optional[Sequence[RuleDependenciesDependencyArgs]] = None)
func NewRuleDependencies(ctx *Context, name string, args RuleDependenciesArgs, opts ...ResourceOption) (*RuleDependencies, error)
public RuleDependencies(string name, RuleDependenciesArgs args, CustomResourceOptions? opts = null)
public RuleDependencies(String name, RuleDependenciesArgs args)
public RuleDependencies(String name, RuleDependenciesArgs args, CustomResourceOptions options)
type: impart:RuleDependencies
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 RuleDependenciesArgs
- 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 RuleDependenciesArgs
- 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 RuleDependenciesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleDependenciesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleDependenciesArgs
- 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 ruleDependenciesResource = new Impart.RuleDependencies("ruleDependenciesResource", new()
{
Dependencies = new[]
{
new Impart.Inputs.RuleDependenciesDependencyArgs
{
DependsOns = new[]
{
"string",
},
RuleId = "string",
},
},
});
example, err := impart.NewRuleDependencies(ctx, "ruleDependenciesResource", &impart.RuleDependenciesArgs{
Dependencies: impart.RuleDependenciesDependencyArray{
&impart.RuleDependenciesDependencyArgs{
DependsOns: pulumi.StringArray{
pulumi.String("string"),
},
RuleId: pulumi.String("string"),
},
},
})
var ruleDependenciesResource = new RuleDependencies("ruleDependenciesResource", RuleDependenciesArgs.builder()
.dependencies(RuleDependenciesDependencyArgs.builder()
.dependsOns("string")
.ruleId("string")
.build())
.build());
rule_dependencies_resource = impart.RuleDependencies("ruleDependenciesResource", dependencies=[{
"depends_ons": ["string"],
"rule_id": "string",
}])
const ruleDependenciesResource = new impart.RuleDependencies("ruleDependenciesResource", {dependencies: [{
dependsOns: ["string"],
ruleId: "string",
}]});
type: impart:RuleDependencies
properties:
dependencies:
- dependsOns:
- string
ruleId: string
RuleDependencies 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 RuleDependencies resource accepts the following input properties:
- Dependencies
List<Rule
Dependencies Dependency> - An array of rules and the other ids of the rules they depend on before executing.
- Dependencies
[]Rule
Dependencies Dependency Args - An array of rules and the other ids of the rules they depend on before executing.
- dependencies
List<Rule
Dependencies Dependency> - An array of rules and the other ids of the rules they depend on before executing.
- dependencies
Rule
Dependencies Dependency[] - An array of rules and the other ids of the rules they depend on before executing.
- dependencies
Sequence[Rule
Dependencies Dependency Args] - An array of rules and the other ids of the rules they depend on before executing.
- dependencies List<Property Map>
- An array of rules and the other ids of the rules they depend on before executing.
Outputs
All input properties are implicitly available as output properties. Additionally, the RuleDependencies 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 RuleDependencies Resource
Get an existing RuleDependencies 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?: RuleDependenciesState, opts?: CustomResourceOptions): RuleDependencies
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dependencies: Optional[Sequence[RuleDependenciesDependencyArgs]] = None) -> RuleDependencies
func GetRuleDependencies(ctx *Context, name string, id IDInput, state *RuleDependenciesState, opts ...ResourceOption) (*RuleDependencies, error)
public static RuleDependencies Get(string name, Input<string> id, RuleDependenciesState? state, CustomResourceOptions? opts = null)
public static RuleDependencies get(String name, Output<String> id, RuleDependenciesState state, CustomResourceOptions options)
resources: _: type: impart:RuleDependencies 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.
- Dependencies
List<Rule
Dependencies Dependency> - An array of rules and the other ids of the rules they depend on before executing.
- Dependencies
[]Rule
Dependencies Dependency Args - An array of rules and the other ids of the rules they depend on before executing.
- dependencies
List<Rule
Dependencies Dependency> - An array of rules and the other ids of the rules they depend on before executing.
- dependencies
Rule
Dependencies Dependency[] - An array of rules and the other ids of the rules they depend on before executing.
- dependencies
Sequence[Rule
Dependencies Dependency Args] - An array of rules and the other ids of the rules they depend on before executing.
- dependencies List<Property Map>
- An array of rules and the other ids of the rules they depend on before executing.
Supporting Types
RuleDependenciesDependency, RuleDependenciesDependencyArgs
- Depends
Ons List<string> - IDs of the rule this rule depends on.
- Rule
Id string - The ID of the rule
- Depends
Ons []string - IDs of the rule this rule depends on.
- Rule
Id string - The ID of the rule
- depends
Ons List<String> - IDs of the rule this rule depends on.
- rule
Id String - The ID of the rule
- depends
Ons string[] - IDs of the rule this rule depends on.
- rule
Id string - The ID of the rule
- depends_
ons Sequence[str] - IDs of the rule this rule depends on.
- rule_
id str - The ID of the rule
- depends
Ons List<String> - IDs of the rule this rule depends on.
- rule
Id String - The ID of the rule
Package Details
- Repository
- impart impart-security/pulumi-impart
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
impart
Terraform Provider.