1. Registry
  2. Packages
  3. Pulumi Delivery
  4. API Docs
  5. approval
Viewing docs for Pulumi Delivery v0.2.0
published on Wednesday, Nov 18, 2026 by Pulumi
Pulumi Delivery
Viewing docs for Pulumi Delivery v0.2.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Builds an approval rule for the when property of a Stage. The gate waits until the required number of eligible people approve. If you omit count or set it to zero, one approval is required. Anyone eligible can approve, including the person who started the run. If you name no approvers, anyone with the pipeline:approve permission on the pipeline stack can approve. Approving needs the Approvals feature.

    Example Usage

    import * as delivery from "@pulumi/delivery";
    
    const prod = new delivery.Stage("prod", {
        pipeline,
        from: [dev],
        when: delivery.approval({ approvers: ["your-username"] }),
    });
    

    Using approval

    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 approval(args: ApprovalArgs, opts?: InvokeOptions): Promise<ApprovalResult>
    function approvalOutput(args: ApprovalOutputArgs, opts?: InvokeOutputOptions): Output<ApprovalResult>
    def approval(approvers: Optional[Sequence[str]] = None,
                 count: Optional[int] = None,
                 name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> ApprovalResult
    def approval_output(approvers: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                 count: pulumi.Input[Optional[int]] = None,
                 name: pulumi.Input[Optional[str]] = None,
                 opts: Optional[InvokeOutputOptions] = None) -> Output[ApprovalResult]
    func Approval(ctx *Context, args *ApprovalArgs, opts ...InvokeOption) (*ApprovalResult, error)
    func ApprovalOutput(ctx *Context, args *ApprovalOutputArgs, opts ...InvokeOption) ApprovalResultOutput

    > Note: This function is named Approval in the Go SDK.

    public static class Approval 
    {
        public static Task<ApprovalResult> InvokeAsync(ApprovalArgs args, InvokeOptions? opts = null)
        public static Output<ApprovalResult> Invoke(ApprovalInvokeArgs args, InvokeOptions? opts = null)
        public static Output<ApprovalResult> Invoke(ApprovalInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<ApprovalResult> approval(ApprovalArgs args, InvokeOptions options)
    public static Output<ApprovalResult> approval(ApprovalArgs args, InvokeOptions options)
    public static Output<ApprovalResult> approval(ApprovalArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: delivery:approval
      arguments:
        # arguments dictionary
    data "delivery_approval" "name" {
        # arguments
    }

    The following arguments are supported:

    Approvers List<string>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    Count int
    Number of approvals required. If you omit it or set it to zero, one approval is required.
    Name string
    Rule name. Omit it to let Delivery assign one.
    Approvers []string
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    Count int
    Number of approvals required. If you omit it or set it to zero, one approval is required.
    Name string
    Rule name. Omit it to let Delivery assign one.
    approvers list(string)
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    count number
    Number of approvals required. If you omit it or set it to zero, one approval is required.
    name string
    Rule name. Omit it to let Delivery assign one.
    approvers List<String>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    count Integer
    Number of approvals required. If you omit it or set it to zero, one approval is required.
    name String
    Rule name. Omit it to let Delivery assign one.
    approvers string[]
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    count number
    Number of approvals required. If you omit it or set it to zero, one approval is required.
    name string
    Rule name. Omit it to let Delivery assign one.
    approvers Sequence[str]
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    count int
    Number of approvals required. If you omit it or set it to zero, one approval is required.
    name str
    Rule name. Omit it to let Delivery assign one.
    approvers List<String>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    count Number
    Number of approvals required. If you omit it or set it to zero, one approval is required.
    name String
    Rule name. Omit it to let Delivery assign one.

    approval Result

    The following output properties are available:

    Kind string
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    Approvers List<string>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    Body string
    HTTP request body. Secret values stay secret.
    Context Dictionary<string, object>
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    Count int
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    Description string
    Text for the person who continues a manual gate, for example what to check first.
    Headers Dictionary<string, string>
    HTTP request headers. Secret values stay secret.
    HeadersEnvironment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    Interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    Method string
    HTTP request method. The default is GET.
    Name string
    Rule name. Omit it to let Delivery assign one.
    Questions Dictionary<string, DecisionQuestion>
    Named judgments and their deterministic risk thresholds for a decision rule.
    Rules List<Rule>
    Child rules for all and any rules. At least one is required.
    SuccessExpression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    Timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    Url string
    URL to call. Required for http rules.
    Kind string
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    Approvers []string
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    Body string
    HTTP request body. Secret values stay secret.
    Context map[string]interface{}
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    Count int
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    Description string
    Text for the person who continues a manual gate, for example what to check first.
    Headers map[string]string
    HTTP request headers. Secret values stay secret.
    HeadersEnvironment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    Interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    Method string
    HTTP request method. The default is GET.
    Name string
    Rule name. Omit it to let Delivery assign one.
    Questions map[string]DecisionQuestion
    Named judgments and their deterministic risk thresholds for a decision rule.
    Rules []Rule
    Child rules for all and any rules. At least one is required.
    SuccessExpression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    Timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    Url string
    URL to call. Required for http rules.
    kind string
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers list(string)
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body string
    HTTP request body. Secret values stay secret.
    context map(any)
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count number
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description string
    Text for the person who continues a manual gate, for example what to check first.
    headers map(string)
    HTTP request headers. Secret values stay secret.
    headers_environment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method string
    HTTP request method. The default is GET.
    name string
    Rule name. Omit it to let Delivery assign one.
    questions map(object)
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules list(object)
    Child rules for all and any rules. At least one is required.
    success_expression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url string
    URL to call. Required for http rules.
    kind String
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers List<String>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body String
    HTTP request body. Secret values stay secret.
    context Map<String,Object>
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count Integer
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description String
    Text for the person who continues a manual gate, for example what to check first.
    headers Map<String,String>
    HTTP request headers. Secret values stay secret.
    headersEnvironment String
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval String
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method String
    HTTP request method. The default is GET.
    name String
    Rule name. Omit it to let Delivery assign one.
    questions Map<String,DecisionQuestion>
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules List<Rule>
    Child rules for all and any rules. At least one is required.
    successExpression String
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout String
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url String
    URL to call. Required for http rules.
    kind string
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers string[]
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body string
    HTTP request body. Secret values stay secret.
    context {[key: string]: any}
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count number
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description string
    Text for the person who continues a manual gate, for example what to check first.
    headers {[key: string]: string}
    HTTP request headers. Secret values stay secret.
    headersEnvironment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method string
    HTTP request method. The default is GET.
    name string
    Rule name. Omit it to let Delivery assign one.
    questions {[key: string]: DecisionQuestion}
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules Rule[]
    Child rules for all and any rules. At least one is required.
    successExpression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url string
    URL to call. Required for http rules.
    kind str
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers Sequence[str]
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body str
    HTTP request body. Secret values stay secret.
    context Mapping[str, Any]
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count int
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description str
    Text for the person who continues a manual gate, for example what to check first.
    headers Mapping[str, str]
    HTTP request headers. Secret values stay secret.
    headers_environment str
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval str
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method str
    HTTP request method. The default is GET.
    name str
    Rule name. Omit it to let Delivery assign one.
    questions Mapping[str, DecisionQuestion]
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules Sequence[Rule]
    Child rules for all and any rules. At least one is required.
    success_expression str
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout str
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url str
    URL to call. Required for http rules.
    kind String
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers List<String>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body String
    HTTP request body. Secret values stay secret.
    context Map<Any>
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count Number
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description String
    Text for the person who continues a manual gate, for example what to check first.
    headers Map<String>
    HTTP request headers. Secret values stay secret.
    headersEnvironment String
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval String
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method String
    HTTP request method. The default is GET.
    name String
    Rule name. Omit it to let Delivery assign one.
    questions Map<Property Map>
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules List<Property Map>
    Child rules for all and any rules. At least one is required.
    successExpression String
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout String
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url String
    URL to call. Required for http rules.

    Supporting Types

    DecisionQuestion

    Instructions string
    Question instructions for Delivery's configured decision engine.
    MaximumRisk double
    Largest permitted probability that the judgment is true, from zero to one.
    Instructions string
    Question instructions for Delivery's configured decision engine.
    MaximumRisk float64
    Largest permitted probability that the judgment is true, from zero to one.
    instructions string
    Question instructions for Delivery's configured decision engine.
    maximum_risk number
    Largest permitted probability that the judgment is true, from zero to one.
    instructions String
    Question instructions for Delivery's configured decision engine.
    maximumRisk Double
    Largest permitted probability that the judgment is true, from zero to one.
    instructions string
    Question instructions for Delivery's configured decision engine.
    maximumRisk number
    Largest permitted probability that the judgment is true, from zero to one.
    instructions str
    Question instructions for Delivery's configured decision engine.
    maximum_risk float
    Largest permitted probability that the judgment is true, from zero to one.
    instructions String
    Question instructions for Delivery's configured decision engine.
    maximumRisk Number
    Largest permitted probability that the judgment is true, from zero to one.

    Rule

    Kind string | Pulumi.Delivery.RuleKind
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    Approvers List<string>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    Body string
    HTTP request body. Secret values stay secret.
    Context Dictionary<string, object>
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    Count int
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    Description string
    Text for the person who continues a manual gate, for example what to check first.
    Headers Dictionary<string, string>
    HTTP request headers. Secret values stay secret.
    HeadersEnvironment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    Interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    Method string
    HTTP request method. The default is GET.
    Name string
    Rule name. Omit it to let Delivery assign one.
    Questions Dictionary<string, DecisionQuestion>
    Named judgments and their deterministic risk thresholds for a decision rule.
    Rules List<Rule>
    Child rules for all and any rules. At least one is required.
    SuccessExpression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    Timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    Url string
    URL to call. Required for http rules.
    Kind string | RuleKind
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    Approvers []string
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    Body string
    HTTP request body. Secret values stay secret.
    Context map[string]interface{}
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    Count int
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    Description string
    Text for the person who continues a manual gate, for example what to check first.
    Headers map[string]string
    HTTP request headers. Secret values stay secret.
    HeadersEnvironment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    Interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    Method string
    HTTP request method. The default is GET.
    Name string
    Rule name. Omit it to let Delivery assign one.
    Questions map[string]DecisionQuestion
    Named judgments and their deterministic risk thresholds for a decision rule.
    Rules []Rule
    Child rules for all and any rules. At least one is required.
    SuccessExpression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    Timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    Url string
    URL to call. Required for http rules.
    kind string | "approval" | "decision" | "http" | "manual" | "all" | "any"
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers list(string)
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body string
    HTTP request body. Secret values stay secret.
    context map(any)
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count number
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description string
    Text for the person who continues a manual gate, for example what to check first.
    headers map(string)
    HTTP request headers. Secret values stay secret.
    headers_environment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method string
    HTTP request method. The default is GET.
    name string
    Rule name. Omit it to let Delivery assign one.
    questions map(object)
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules list(object)
    Child rules for all and any rules. At least one is required.
    success_expression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url string
    URL to call. Required for http rules.
    kind String | RuleKind
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers List<String>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body String
    HTTP request body. Secret values stay secret.
    context Map<String,Object>
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count Integer
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description String
    Text for the person who continues a manual gate, for example what to check first.
    headers Map<String,String>
    HTTP request headers. Secret values stay secret.
    headersEnvironment String
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval String
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method String
    HTTP request method. The default is GET.
    name String
    Rule name. Omit it to let Delivery assign one.
    questions Map<String,DecisionQuestion>
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules List<Rule>
    Child rules for all and any rules. At least one is required.
    successExpression String
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout String
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url String
    URL to call. Required for http rules.
    kind string | RuleKind
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers string[]
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body string
    HTTP request body. Secret values stay secret.
    context {[key: string]: any}
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count number
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description string
    Text for the person who continues a manual gate, for example what to check first.
    headers {[key: string]: string}
    HTTP request headers. Secret values stay secret.
    headersEnvironment string
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval string
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method string
    HTTP request method. The default is GET.
    name string
    Rule name. Omit it to let Delivery assign one.
    questions {[key: string]: DecisionQuestion}
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules Rule[]
    Child rules for all and any rules. At least one is required.
    successExpression string
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout string
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url string
    URL to call. Required for http rules.
    kind str | RuleKind
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers Sequence[str]
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body str
    HTTP request body. Secret values stay secret.
    context Mapping[str, Any]
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count int
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description str
    Text for the person who continues a manual gate, for example what to check first.
    headers Mapping[str, str]
    HTTP request headers. Secret values stay secret.
    headers_environment str
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval str
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method str
    HTTP request method. The default is GET.
    name str
    Rule name. Omit it to let Delivery assign one.
    questions Mapping[str, DecisionQuestion]
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules Sequence[Rule]
    Child rules for all and any rules. At least one is required.
    success_expression str
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout str
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url str
    URL to call. Required for http rules.
    kind String | "approval" | "decision" | "http" | "manual" | "all" | "any"
    Kind of the rule. Valid values are approval, decision, http, manual, all, and any.
    approvers List<String>
    Pulumi usernames or team names in the organization. If the list is empty, anyone with the pipeline:approve permission on the pipeline stack can approve.
    body String
    HTTP request body. Secret values stay secret.
    context Map<Any>
    Optional JSON-like context for a decision rule. Delivery rejects secret values and limits its encoded size to 16 KiB. Do not use it for credentials or other secrets.
    count Number
    Number of approvals required. If you omit it or set it to zero, one approval is required. Applies to approval rules.
    description String
    Text for the person who continues a manual gate, for example what to check first.
    headers Map<String>
    HTTP request headers. Secret values stay secret.
    headersEnvironment String
    Name of an ESC environment that exports values.headers. Delivery sends these headers first, then the headers of the rule.
    interval String
    Time between HTTP requests, as a Go duration, such as 1m. Use a whole number of seconds. The minimum is 60 seconds.
    method String
    HTTP request method. The default is GET.
    name String
    Rule name. Omit it to let Delivery assign one.
    questions Map<Property Map>
    Named judgments and their deterministic risk thresholds for a decision rule.
    rules List<Property Map>
    Child rules for all and any rules. At least one is required.
    successExpression String
    JMESPath expression that Delivery evaluates on the status, headers and body of the HTTP response. The rule passes when the result is true. Required for http rules.
    timeout String
    Timeout of each HTTP request, as a Go duration, such as 10s. Use a whole number of seconds from 1 to 20.
    url String
    URL to call. Required for http rules.

    RuleKind

    NameValue
    Approvalapproval
    Decisiondecision
    Httphttp
    Manualmanual
    Allall
    Anyany
    NameValue
    RuleKindApprovalapproval
    RuleKindDecisiondecision
    RuleKindHttphttp
    RuleKindManualmanual
    RuleKindAllall
    RuleKindAnyany
    Value
    approval
    decision
    http
    manual
    all
    any
    NameValue
    Approvalapproval
    Decisiondecision
    Httphttp
    Manualmanual
    Allall
    Anyany
    NameValue
    Approvalapproval
    Decisiondecision
    Httphttp
    Manualmanual
    Allall
    Anyany
    NameValue
    APPROVALapproval
    DECISIONdecision
    HTTPhttp
    MANUALmanual
    ALLall
    ANYany
    Value
    approval
    decision
    http
    manual
    all
    any

    Package Details

    Repository
    delivery pulumi/pulumi-delivery
    License
    Apache-2.0
    Pulumi Delivery
    Viewing docs for Pulumi Delivery v0.2.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial