String v1.0.0 published on Friday, Oct 28, 2022 by Pulumi
str.trimSuffix
Explore with Pulumi AI
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
fn::invoke:
function: str:trimSuffix
arguments:
# arguments dictionary
The following arguments are supported:
trimSuffix Result
The following output properties are available:
- Result string
- Result string
- result String
- result string
- result str
- result String
Package Details
- Repository
- str pulumi/pulumi-str
- License