1. Packages
  2. String
  3. API Docs
  4. trimSuffix
String v1.0.0 published on Friday, Oct 28, 2022 by Pulumi


Explore with Pulumi AI

str logo
String v1.0.0 published on Friday, Oct 28, 2022 by Pulumi

    Trim a suffix from a string.

    Using trimSuffix

    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 trimSuffix(args: TrimSuffixArgs, opts?: InvokeOptions): Promise<TrimSuffixResult>
    function trimSuffixOutput(args: TrimSuffixOutputArgs, opts?: InvokeOptions): Output<TrimSuffixResult>
    def trim_suffix(string: Optional[str] = None,
                    suffix: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> TrimSuffixResult
    def trim_suffix_output(string: Optional[pulumi.Input[str]] = None,
                    suffix: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[TrimSuffixResult]
    func TrimSuffix(ctx *Context, args *TrimSuffixArgs, opts ...InvokeOption) (*TrimSuffixResult, error)
    func TrimSuffixOutput(ctx *Context, args *TrimSuffixOutputArgs, opts ...InvokeOption) TrimSuffixResultOutput

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

    public static class TrimSuffix 
        public static Task<TrimSuffixResult> InvokeAsync(TrimSuffixArgs args, InvokeOptions? opts = null)
        public static Output<TrimSuffixResult> Invoke(TrimSuffixInvokeArgs args, InvokeOptions? opts = null)
    public static CompletableFuture<TrimSuffixResult> trimSuffix(TrimSuffixArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
      function: str:trimSuffix
        # arguments dictionary

    The following arguments are supported:

    String string
    Suffix string
    String string
    Suffix string
    string String
    suffix String
    string string
    suffix string
    string str
    suffix str
    string String
    suffix String

    trimSuffix Result

    The following output properties are available:

    Result string
    Result string
    result String
    result string
    result str
    result String

    Package Details

    str pulumi/pulumi-str
    str logo
    String v1.0.0 published on Friday, Oct 28, 2022 by Pulumi