1. Packages
  2. String
  3. API Docs
  4. trimPrefix
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 prefix from a string.

    Using trimPrefix

    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 trimPrefix(args: TrimPrefixArgs, opts?: InvokeOptions): Promise<TrimPrefixResult>
    function trimPrefixOutput(args: TrimPrefixOutputArgs, opts?: InvokeOptions): Output<TrimPrefixResult>
    def trim_prefix(prefix: Optional[str] = None,
                    string: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> TrimPrefixResult
    def trim_prefix_output(prefix: Optional[pulumi.Input[str]] = None,
                    string: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[TrimPrefixResult]
    func TrimPrefix(ctx *Context, args *TrimPrefixArgs, opts ...InvokeOption) (*TrimPrefixResult, error)
    func TrimPrefixOutput(ctx *Context, args *TrimPrefixOutputArgs, opts ...InvokeOption) TrimPrefixResultOutput

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

    public static class TrimPrefix 
        public static Task<TrimPrefixResult> InvokeAsync(TrimPrefixArgs args, InvokeOptions? opts = null)
        public static Output<TrimPrefixResult> Invoke(TrimPrefixInvokeArgs args, InvokeOptions? opts = null)
    public static CompletableFuture<TrimPrefixResult> trimPrefix(TrimPrefixArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
      function: str:trimPrefix
        # arguments dictionary

    The following arguments are supported:

    Prefix string
    String string
    Prefix string
    String string
    prefix String
    string String
    prefix string
    string string
    prefix str
    string str
    prefix String
    string String

    trimPrefix 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