Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchOutputArgs ¶
type MatchOutputArgs struct { Pattern pulumi.StringInput `pulumi:"pattern"` String pulumi.StringInput `pulumi:"string"` }
func (MatchOutputArgs) ElementType ¶
func (MatchOutputArgs) ElementType() reflect.Type
type MatchResult ¶
type MatchResult struct {
Matches bool `pulumi:"matches"`
}
func Match ¶
func Match(ctx *pulumi.Context, args *MatchArgs, opts ...pulumi.InvokeOption) (*MatchResult, error)
Match reports whether the string s contains any match of the regular expression pattern.
type MatchResultOutput ¶
type MatchResultOutput struct{ *pulumi.OutputState }
func MatchOutput ¶
func MatchOutput(ctx *pulumi.Context, args MatchOutputArgs, opts ...pulumi.InvokeOption) MatchResultOutput
func (MatchResultOutput) ElementType ¶
func (MatchResultOutput) ElementType() reflect.Type
func (MatchResultOutput) Matches ¶
func (o MatchResultOutput) Matches() pulumi.BoolOutput
func (MatchResultOutput) ToMatchResultOutput ¶
func (o MatchResultOutput) ToMatchResultOutput() MatchResultOutput
func (MatchResultOutput) ToMatchResultOutputWithContext ¶
func (o MatchResultOutput) ToMatchResultOutputWithContext(ctx context.Context) MatchResultOutput
type ReplaceArgs ¶
type ReplaceArgs struct { // The new string. // // Note: Inside repl, "$" signs are interpreted as an Expand, so for instance // $1 represents the text of the first submatch. New string `pulumi:"new"` // The regular expression to match against. Old string `pulumi:"old"` // The string to operate over. String string `pulumi:"string"` }
type ReplaceOutputArgs ¶
type ReplaceOutputArgs struct { // The new string. // // Note: Inside repl, "$" signs are interpreted as an Expand, so for instance // $1 represents the text of the first submatch. New pulumi.StringInput `pulumi:"new"` // The regular expression to match against. Old pulumi.StringInput `pulumi:"old"` // The string to operate over. String pulumi.StringInput `pulumi:"string"` }
func (ReplaceOutputArgs) ElementType ¶
func (ReplaceOutputArgs) ElementType() reflect.Type
type ReplaceResult ¶
type ReplaceResult struct { // The input "string" where each pattern matching "old" is replaced by "new". Result string `pulumi:"result"` }
func Replace ¶
func Replace(ctx *pulumi.Context, args *ReplaceArgs, opts ...pulumi.InvokeOption) (*ReplaceResult, error)
A regex based replace on a string.
The underlying regexp engine is the go "regexp" stdlib package. You can see details at for available patterns at https://pkg.go.dev/regexp/syntax.
type ReplaceResultOutput ¶
type ReplaceResultOutput struct{ *pulumi.OutputState }
func ReplaceOutput ¶
func ReplaceOutput(ctx *pulumi.Context, args ReplaceOutputArgs, opts ...pulumi.InvokeOption) ReplaceResultOutput
func (ReplaceResultOutput) ElementType ¶
func (ReplaceResultOutput) ElementType() reflect.Type
func (ReplaceResultOutput) Result ¶
func (o ReplaceResultOutput) Result() pulumi.StringOutput
The input "string" where each pattern matching "old" is replaced by "new".
func (ReplaceResultOutput) ToReplaceResultOutput ¶
func (o ReplaceResultOutput) ToReplaceResultOutput() ReplaceResultOutput
func (ReplaceResultOutput) ToReplaceResultOutputWithContext ¶
func (o ReplaceResultOutput) ToReplaceResultOutputWithContext(ctx context.Context) ReplaceResultOutput
type SplitArgs ¶
type SplitArgs struct { // `count` determines the number of substrings to return. // If `count` is not provided, it defaults to substrings. // If `count` is provided then the last substring will be the unsplit remainder. // It is an error to pass `count < 1`. Count *int `pulumi:"count"` // The regex to split on. On string `pulumi:"on"` // The string on which to split. String string `pulumi:"string"` }
type SplitOutputArgs ¶
type SplitOutputArgs struct { // `count` determines the number of substrings to return. // If `count` is not provided, it defaults to substrings. // If `count` is provided then the last substring will be the unsplit remainder. // It is an error to pass `count < 1`. Count pulumi.IntPtrInput `pulumi:"count"` // The regex to split on. On pulumi.StringInput `pulumi:"on"` // The string on which to split. String pulumi.StringInput `pulumi:"string"` }
func (SplitOutputArgs) ElementType ¶
func (SplitOutputArgs) ElementType() reflect.Type
type SplitResult ¶
type SplitResult struct { // The result of the string split. Result []string `pulumi:"result"` }
func Split ¶
func Split(ctx *pulumi.Context, args *SplitArgs, opts ...pulumi.InvokeOption) (*SplitResult, error)
Split a string on a regex.
type SplitResultOutput ¶
type SplitResultOutput struct{ *pulumi.OutputState }
func SplitOutput ¶
func SplitOutput(ctx *pulumi.Context, args SplitOutputArgs, opts ...pulumi.InvokeOption) SplitResultOutput
func (SplitResultOutput) ElementType ¶
func (SplitResultOutput) ElementType() reflect.Type
func (SplitResultOutput) Result ¶
func (o SplitResultOutput) Result() pulumi.StringArrayOutput
The result of the string split.
func (SplitResultOutput) ToSplitResultOutput ¶
func (o SplitResultOutput) ToSplitResultOutput() SplitResultOutput
func (SplitResultOutput) ToSplitResultOutputWithContext ¶
func (o SplitResultOutput) ToSplitResultOutputWithContext(ctx context.Context) SplitResultOutput
Click to show internal directories.
Click to hide internal directories.