1. Packages
  2. Standard Library
  3. API Docs
  4. endswith
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
std logo
StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi

    Determines if the input string ends with the suffix.

    Using endswith

    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 endswith(args: EndswithArgs, opts?: InvokeOptions): Promise<EndswithResult>
    function endswithOutput(args: EndswithOutputArgs, opts?: InvokeOptions): Output<EndswithResult>
    def endswith(input: Optional[str] = None,
                 suffix: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> EndswithResult
    def endswith_output(input: Optional[pulumi.Input[str]] = None,
                 suffix: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[EndswithResult]
    func Endswith(ctx *Context, args *EndswithArgs, opts ...InvokeOption) (*EndswithResult, error)
    func EndswithOutput(ctx *Context, args *EndswithOutputArgs, opts ...InvokeOption) EndswithResultOutput

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

    public static class Endswith 
    {
        public static Task<EndswithResult> InvokeAsync(EndswithArgs args, InvokeOptions? opts = null)
        public static Output<EndswithResult> Invoke(EndswithInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<EndswithResult> endswith(EndswithArgs args, InvokeOptions options)
    public static Output<EndswithResult> endswith(EndswithArgs args, InvokeOptions options)
    
    fn::invoke:
      function: std:endswith
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Input string
    Suffix string
    Input string
    Suffix string
    input String
    suffix String
    input string
    suffix string
    input str
    suffix str
    input String
    suffix String

    endswith Result

    The following output properties are available:

    Result bool
    Result bool
    result Boolean
    result boolean
    result bool
    result Boolean

    Package Details

    Repository
    std pulumi/pulumi-std
    License
    std logo
    StandardLibrary v2.3.2 published on Tuesday, Feb 10, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate