published on Monday, Oct 19, 2026 by Pulumi
published on Monday, Oct 19, 2026 by Pulumi
Builds a policy group’s Insights account match rule from tag rules, without writing Pulumi Cloud’s expression format by hand. Use the result as a policy group’s accountMatchRule. Pulumi Cloud adds the accounts the rule matches to the group, alongside the accounts added individually, and keeps membership up to date as account tags change. Only audit policy groups support account rules. Match rules are a preview feature of Pulumi Cloud.
Using buildAccountMatchRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function buildAccountMatchRule(args: BuildAccountMatchRuleArgs, opts?: InvokeOptions): Promise<BuildAccountMatchRuleResult>
function buildAccountMatchRuleOutput(args: BuildAccountMatchRuleOutputArgs, opts?: InvokeOutputOptions): Output<BuildAccountMatchRuleResult>def build_account_match_rule(rules: Optional[Sequence[PolicyGroupMatchRule]] = None,
opts: Optional[InvokeOptions] = None) -> BuildAccountMatchRuleResult
def build_account_match_rule_output(rules: pulumi.Input[Optional[Sequence[pulumi.Input[PolicyGroupMatchRuleArgs]]]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[BuildAccountMatchRuleResult]func BuildAccountMatchRule(ctx *Context, args *BuildAccountMatchRuleArgs, opts ...InvokeOption) (*BuildAccountMatchRuleResult, error)
func BuildAccountMatchRuleOutput(ctx *Context, args *BuildAccountMatchRuleOutputArgs, opts ...InvokeOption) BuildAccountMatchRuleResultOutput> Note: This function is named BuildAccountMatchRule in the Go SDK.
public static class BuildAccountMatchRule
{
public static Task<BuildAccountMatchRuleResult> InvokeAsync(BuildAccountMatchRuleArgs args, InvokeOptions? opts = null)
public static Output<BuildAccountMatchRuleResult> Invoke(BuildAccountMatchRuleInvokeArgs args, InvokeOptions? opts = null)
public static Output<BuildAccountMatchRuleResult> Invoke(BuildAccountMatchRuleInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<BuildAccountMatchRuleResult> buildAccountMatchRule(BuildAccountMatchRuleArgs args, InvokeOptions options)
public static Output<BuildAccountMatchRuleResult> buildAccountMatchRule(BuildAccountMatchRuleArgs args, InvokeOptions options)
public static Output<BuildAccountMatchRuleResult> buildAccountMatchRule(BuildAccountMatchRuleArgs args, InvokeOutputOptions options)
fn::invoke:
function: pulumiservice:buildAccountMatchRule
arguments:
# arguments dictionarydata "pulumiservice_build_account_match_rule" "name" {
# arguments
}The following arguments are supported:
- Rules
List<Pulumi.
Pulumi Service. Inputs. Policy Group Match Rule> - The rules. An entity matches if it matches any rule.
- Rules
[]Policy
Group Match Rule - The rules. An entity matches if it matches any rule.
- rules list(object)
- The rules. An entity matches if it matches any rule.
- rules
List<Policy
Group Match Rule> - The rules. An entity matches if it matches any rule.
- rules
Policy
Group Match Rule[] - The rules. An entity matches if it matches any rule.
- rules
Sequence[Policy
Group Match Rule] - The rules. An entity matches if it matches any rule.
- rules List<Property Map>
- The rules. An entity matches if it matches any rule.
buildAccountMatchRule Result
The following output properties are available:
- Match
Rule Dictionary<string, object> - The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.
- Match
Rule map[string]interface{} - The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.
- match_
rule map(any) - The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.
- match
Rule Map<String,Object> - The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.
- match
Rule {[key: string]: any} - The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.
- match_
rule Mapping[str, Any] - The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.
- match
Rule Map<Any> - The match rule, as the Pulumi Cloud expression a policy group's match rule field takes.
Supporting Types
PolicyGroupMatchRule
- Conditions
List<Pulumi.
Pulumi Service. Inputs. Policy Group Tag Condition> - Tag conditions that must all hold for the rule to match. At least one is required.
- Conditions
[]Policy
Group Tag Condition - Tag conditions that must all hold for the rule to match. At least one is required.
- conditions list(object)
- Tag conditions that must all hold for the rule to match. At least one is required.
- conditions
List<Policy
Group Tag Condition> - Tag conditions that must all hold for the rule to match. At least one is required.
- conditions
Policy
Group Tag Condition[] - Tag conditions that must all hold for the rule to match. At least one is required.
- conditions
Sequence[Policy
Group Tag Condition] - Tag conditions that must all hold for the rule to match. At least one is required.
- conditions List<Property Map>
- Tag conditions that must all hold for the rule to match. At least one is required.
PolicyGroupTagCondition
- Key string
- The tag key.
- Operator
Pulumi.
Pulumi Service. Policy Group Tag Operator - How the tag is compared. Defaults to
equals. - Value string
- The tag value. Required with
equalsandnotEquals, and not allowed withexistsandnotExists.
- Key string
- The tag key.
- Operator
Policy
Group Tag Operator - How the tag is compared. Defaults to
equals. - Value string
- The tag value. Required with
equalsandnotEquals, and not allowed withexistsandnotExists.
- key string
- The tag key.
- operator
"equals" | "not
Equals" | "exists" | "not Exists" - How the tag is compared. Defaults to
equals. - value string
- The tag value. Required with
equalsandnotEquals, and not allowed withexistsandnotExists.
- key String
- The tag key.
- operator
Policy
Group Tag Operator - How the tag is compared. Defaults to
equals. - value String
- The tag value. Required with
equalsandnotEquals, and not allowed withexistsandnotExists.
- key string
- The tag key.
- operator
Policy
Group Tag Operator - How the tag is compared. Defaults to
equals. - value string
- The tag value. Required with
equalsandnotEquals, and not allowed withexistsandnotExists.
- key str
- The tag key.
- operator
Policy
Group Tag Operator - How the tag is compared. Defaults to
equals. - value str
- The tag value. Required with
equalsandnotEquals, and not allowed withexistsandnotExists.
- key String
- The tag key.
- operator
"equals" | "not
Equals" | "exists" | "not Exists" - How the tag is compared. Defaults to
equals. - value String
- The tag value. Required with
equalsandnotEquals, and not allowed withexistsandnotExists.
PolicyGroupTagOperator
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
published on Monday, Oct 19, 2026 by Pulumi