mirror of https://github.com/crossplane/docs.git
docs snapshot for crossplane version `v1.9`
This commit is contained in:
parent
2e48c3e54b
commit
1fc3368cc9
|
@ -526,6 +526,7 @@ Currently only `multiply` is supported.
|
||||||
* string transform type `Convert`, accepts one of `ToUpper`, `ToLower`, `ToBase64`, `FromBase64`.
|
* string transform type `Convert`, accepts one of `ToUpper`, `ToLower`, `ToBase64`, `FromBase64`.
|
||||||
* string transform type `TrimPrefix`, accepts a string to be trimmed from the beginning of the input.
|
* string transform type `TrimPrefix`, accepts a string to be trimmed from the beginning of the input.
|
||||||
* string transform type `TrimSuffix`, accepts a string to be trimmed from the end of the input.
|
* string transform type `TrimSuffix`, accepts a string to be trimmed from the end of the input.
|
||||||
|
* string transform type `Regexp`, accepts a string for regexp to be applied to.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# If you omit the field type, by default type is set to `Format`
|
# If you omit the field type, by default type is set to `Format`
|
||||||
|
@ -583,6 +584,15 @@ Currently only `multiply` is supported.
|
||||||
string:
|
string:
|
||||||
type: TrimSuffix
|
type: TrimSuffix
|
||||||
trim: '-test'
|
trim: '-test'
|
||||||
|
|
||||||
|
# If the value of the 'from' field is 'arn:aws:iam::42:example, the value of the
|
||||||
|
# 'to' field will be set to "42". Note that the 'to' field is always a string.
|
||||||
|
- type: string
|
||||||
|
string:
|
||||||
|
type: Regexp
|
||||||
|
regexp:
|
||||||
|
match: 'arn:aws:iam::(\d+):.*'
|
||||||
|
group: 1 # Optional capture group. Omit to match the entire regexp.
|
||||||
```
|
```
|
||||||
|
|
||||||
`convert`. Transforms values of one type to another, for example from a string
|
`convert`. Transforms values of one type to another, for example from a string
|
||||||
|
|
Loading…
Reference in New Issue