Documentation
¶
Index ¶
- type Alphabet
- type AlphabetArgs
- type AlphabetArray
- type AlphabetArrayInput
- type AlphabetArrayOutput
- type AlphabetInput
- type AlphabetMap
- type AlphabetMapInput
- type AlphabetMapOutput
- type AlphabetOutput
- func (o AlphabetOutput) Alphabet() pulumi.StringPtrOutput
- func (AlphabetOutput) ElementType() reflect.Type
- func (o AlphabetOutput) Name() pulumi.StringOutput
- func (o AlphabetOutput) Namespace() pulumi.StringPtrOutput
- func (o AlphabetOutput) Path() pulumi.StringOutput
- func (o AlphabetOutput) ToAlphabetOutput() AlphabetOutput
- func (o AlphabetOutput) ToAlphabetOutputWithContext(ctx context.Context) AlphabetOutput
- type AlphabetState
- type GetDecodeArgs
- type GetDecodeOutputArgs
- type GetDecodeResult
- type GetDecodeResultOutput
- func (o GetDecodeResultOutput) BatchInputs() pulumi.StringMapArrayOutput
- func (o GetDecodeResultOutput) BatchResults() pulumi.StringMapArrayOutput
- func (o GetDecodeResultOutput) DecodedValue() pulumi.StringOutput
- func (GetDecodeResultOutput) ElementType() reflect.Type
- func (o GetDecodeResultOutput) Id() pulumi.StringOutput
- func (o GetDecodeResultOutput) Namespace() pulumi.StringPtrOutput
- func (o GetDecodeResultOutput) Path() pulumi.StringOutput
- func (o GetDecodeResultOutput) RoleName() pulumi.StringOutput
- func (o GetDecodeResultOutput) ToGetDecodeResultOutput() GetDecodeResultOutput
- func (o GetDecodeResultOutput) ToGetDecodeResultOutputWithContext(ctx context.Context) GetDecodeResultOutput
- func (o GetDecodeResultOutput) Transformation() pulumi.StringPtrOutput
- func (o GetDecodeResultOutput) Tweak() pulumi.StringPtrOutput
- func (o GetDecodeResultOutput) Value() pulumi.StringPtrOutput
- type GetEncodeArgs
- type GetEncodeOutputArgs
- type GetEncodeResult
- type GetEncodeResultOutput
- func (o GetEncodeResultOutput) BatchInputs() pulumi.StringMapArrayOutput
- func (o GetEncodeResultOutput) BatchResults() pulumi.StringMapArrayOutput
- func (GetEncodeResultOutput) ElementType() reflect.Type
- func (o GetEncodeResultOutput) EncodedValue() pulumi.StringOutput
- func (o GetEncodeResultOutput) Id() pulumi.StringOutput
- func (o GetEncodeResultOutput) Namespace() pulumi.StringPtrOutput
- func (o GetEncodeResultOutput) Path() pulumi.StringOutput
- func (o GetEncodeResultOutput) RoleName() pulumi.StringOutput
- func (o GetEncodeResultOutput) ToGetEncodeResultOutput() GetEncodeResultOutput
- func (o GetEncodeResultOutput) ToGetEncodeResultOutputWithContext(ctx context.Context) GetEncodeResultOutput
- func (o GetEncodeResultOutput) Transformation() pulumi.StringPtrOutput
- func (o GetEncodeResultOutput) Tweak() pulumi.StringPtrOutput
- func (o GetEncodeResultOutput) Value() pulumi.StringPtrOutput
- type Role
- type RoleArgs
- type RoleArray
- type RoleArrayInput
- type RoleArrayOutput
- type RoleInput
- type RoleMap
- type RoleMapInput
- type RoleMapOutput
- type RoleOutput
- func (RoleOutput) ElementType() reflect.Type
- func (o RoleOutput) Name() pulumi.StringOutput
- func (o RoleOutput) Namespace() pulumi.StringPtrOutput
- func (o RoleOutput) Path() pulumi.StringOutput
- func (o RoleOutput) ToRoleOutput() RoleOutput
- func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput
- func (o RoleOutput) Transformations() pulumi.StringArrayOutput
- type RoleState
- type Template
- type TemplateArgs
- type TemplateArray
- type TemplateArrayInput
- type TemplateArrayOutput
- type TemplateInput
- type TemplateMap
- type TemplateMapInput
- type TemplateMapOutput
- type TemplateOutput
- func (o TemplateOutput) Alphabet() pulumi.StringPtrOutput
- func (o TemplateOutput) DecodeFormats() pulumi.StringMapOutput
- func (TemplateOutput) ElementType() reflect.Type
- func (o TemplateOutput) EncodeFormat() pulumi.StringPtrOutput
- func (o TemplateOutput) Name() pulumi.StringOutput
- func (o TemplateOutput) Namespace() pulumi.StringPtrOutput
- func (o TemplateOutput) Path() pulumi.StringOutput
- func (o TemplateOutput) Pattern() pulumi.StringPtrOutput
- func (o TemplateOutput) ToTemplateOutput() TemplateOutput
- func (o TemplateOutput) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput
- func (o TemplateOutput) Type() pulumi.StringPtrOutput
- type TemplateState
- type Transformation
- type TransformationArgs
- type TransformationArray
- type TransformationArrayInput
- type TransformationArrayOutput
- func (TransformationArrayOutput) ElementType() reflect.Type
- func (o TransformationArrayOutput) Index(i pulumi.IntInput) TransformationOutput
- func (o TransformationArrayOutput) ToTransformationArrayOutput() TransformationArrayOutput
- func (o TransformationArrayOutput) ToTransformationArrayOutputWithContext(ctx context.Context) TransformationArrayOutput
- type TransformationInput
- type TransformationMap
- type TransformationMapInput
- type TransformationMapOutput
- func (TransformationMapOutput) ElementType() reflect.Type
- func (o TransformationMapOutput) MapIndex(k pulumi.StringInput) TransformationOutput
- func (o TransformationMapOutput) ToTransformationMapOutput() TransformationMapOutput
- func (o TransformationMapOutput) ToTransformationMapOutputWithContext(ctx context.Context) TransformationMapOutput
- type TransformationOutput
- func (o TransformationOutput) AllowedRoles() pulumi.StringArrayOutput
- func (o TransformationOutput) DeletionAllowed() pulumi.BoolPtrOutput
- func (TransformationOutput) ElementType() reflect.Type
- func (o TransformationOutput) MaskingCharacter() pulumi.StringPtrOutput
- func (o TransformationOutput) Name() pulumi.StringOutput
- func (o TransformationOutput) Namespace() pulumi.StringPtrOutput
- func (o TransformationOutput) Path() pulumi.StringOutput
- func (o TransformationOutput) Template() pulumi.StringPtrOutput
- func (o TransformationOutput) Templates() pulumi.StringArrayOutput
- func (o TransformationOutput) ToTransformationOutput() TransformationOutput
- func (o TransformationOutput) ToTransformationOutputWithContext(ctx context.Context) TransformationOutput
- func (o TransformationOutput) TweakSource() pulumi.StringPtrOutput
- func (o TransformationOutput) Type() pulumi.StringPtrOutput
- type TransformationState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alphabet ¶
type Alphabet struct { pulumi.CustomResourceState // A string of characters that contains the alphabet set. Alphabet pulumi.StringPtrOutput `pulumi:"alphabet"` // The name of the alphabet. Name pulumi.StringOutput `pulumi:"name"` // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrOutput `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path pulumi.StringOutput `pulumi:"path"` }
This resource supports the "/transform/alphabet/{name}" Vault endpoint.
It queries an existing alphabet by the given name.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault" "github.com/pulumi/pulumi-vault/sdk/v6/go/vault/transform" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mountTransform, err := vault.NewMount(ctx, "mount_transform", &vault.MountArgs{ Path: pulumi.String("transform"), Type: pulumi.String("transform"), }) if err != nil { return err } _, err = transform.NewAlphabet(ctx, "test", &transform.AlphabetArgs{ Path: mountTransform.Path, Name: pulumi.String("numerics"), Alphabet: pulumi.String("0123456789"), }) if err != nil { return err } return nil }) }
```
func GetAlphabet ¶
func GetAlphabet(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AlphabetState, opts ...pulumi.ResourceOption) (*Alphabet, error)
GetAlphabet gets an existing Alphabet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewAlphabet ¶
func NewAlphabet(ctx *pulumi.Context, name string, args *AlphabetArgs, opts ...pulumi.ResourceOption) (*Alphabet, error)
NewAlphabet registers a new resource with the given unique name, arguments, and options.
func (*Alphabet) ElementType ¶
func (*Alphabet) ToAlphabetOutput ¶
func (i *Alphabet) ToAlphabetOutput() AlphabetOutput
func (*Alphabet) ToAlphabetOutputWithContext ¶
func (i *Alphabet) ToAlphabetOutputWithContext(ctx context.Context) AlphabetOutput
type AlphabetArgs ¶
type AlphabetArgs struct { // A string of characters that contains the alphabet set. Alphabet pulumi.StringPtrInput // The name of the alphabet. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringInput }
The set of arguments for constructing a Alphabet resource.
func (AlphabetArgs) ElementType ¶
func (AlphabetArgs) ElementType() reflect.Type
type AlphabetArray ¶
type AlphabetArray []AlphabetInput
func (AlphabetArray) ElementType ¶
func (AlphabetArray) ElementType() reflect.Type
func (AlphabetArray) ToAlphabetArrayOutput ¶
func (i AlphabetArray) ToAlphabetArrayOutput() AlphabetArrayOutput
func (AlphabetArray) ToAlphabetArrayOutputWithContext ¶
func (i AlphabetArray) ToAlphabetArrayOutputWithContext(ctx context.Context) AlphabetArrayOutput
type AlphabetArrayInput ¶
type AlphabetArrayInput interface { pulumi.Input ToAlphabetArrayOutput() AlphabetArrayOutput ToAlphabetArrayOutputWithContext(context.Context) AlphabetArrayOutput }
AlphabetArrayInput is an input type that accepts AlphabetArray and AlphabetArrayOutput values. You can construct a concrete instance of `AlphabetArrayInput` via:
AlphabetArray{ AlphabetArgs{...} }
type AlphabetArrayOutput ¶
type AlphabetArrayOutput struct{ *pulumi.OutputState }
func (AlphabetArrayOutput) ElementType ¶
func (AlphabetArrayOutput) ElementType() reflect.Type
func (AlphabetArrayOutput) Index ¶
func (o AlphabetArrayOutput) Index(i pulumi.IntInput) AlphabetOutput
func (AlphabetArrayOutput) ToAlphabetArrayOutput ¶
func (o AlphabetArrayOutput) ToAlphabetArrayOutput() AlphabetArrayOutput
func (AlphabetArrayOutput) ToAlphabetArrayOutputWithContext ¶
func (o AlphabetArrayOutput) ToAlphabetArrayOutputWithContext(ctx context.Context) AlphabetArrayOutput
type AlphabetInput ¶
type AlphabetInput interface { pulumi.Input ToAlphabetOutput() AlphabetOutput ToAlphabetOutputWithContext(ctx context.Context) AlphabetOutput }
type AlphabetMap ¶
type AlphabetMap map[string]AlphabetInput
func (AlphabetMap) ElementType ¶
func (AlphabetMap) ElementType() reflect.Type
func (AlphabetMap) ToAlphabetMapOutput ¶
func (i AlphabetMap) ToAlphabetMapOutput() AlphabetMapOutput
func (AlphabetMap) ToAlphabetMapOutputWithContext ¶
func (i AlphabetMap) ToAlphabetMapOutputWithContext(ctx context.Context) AlphabetMapOutput
type AlphabetMapInput ¶
type AlphabetMapInput interface { pulumi.Input ToAlphabetMapOutput() AlphabetMapOutput ToAlphabetMapOutputWithContext(context.Context) AlphabetMapOutput }
AlphabetMapInput is an input type that accepts AlphabetMap and AlphabetMapOutput values. You can construct a concrete instance of `AlphabetMapInput` via:
AlphabetMap{ "key": AlphabetArgs{...} }
type AlphabetMapOutput ¶
type AlphabetMapOutput struct{ *pulumi.OutputState }
func (AlphabetMapOutput) ElementType ¶
func (AlphabetMapOutput) ElementType() reflect.Type
func (AlphabetMapOutput) MapIndex ¶
func (o AlphabetMapOutput) MapIndex(k pulumi.StringInput) AlphabetOutput
func (AlphabetMapOutput) ToAlphabetMapOutput ¶
func (o AlphabetMapOutput) ToAlphabetMapOutput() AlphabetMapOutput
func (AlphabetMapOutput) ToAlphabetMapOutputWithContext ¶
func (o AlphabetMapOutput) ToAlphabetMapOutputWithContext(ctx context.Context) AlphabetMapOutput
type AlphabetOutput ¶
type AlphabetOutput struct{ *pulumi.OutputState }
func (AlphabetOutput) Alphabet ¶
func (o AlphabetOutput) Alphabet() pulumi.StringPtrOutput
A string of characters that contains the alphabet set.
func (AlphabetOutput) ElementType ¶
func (AlphabetOutput) ElementType() reflect.Type
func (AlphabetOutput) Name ¶
func (o AlphabetOutput) Name() pulumi.StringOutput
The name of the alphabet.
func (AlphabetOutput) Namespace ¶
func (o AlphabetOutput) Namespace() pulumi.StringPtrOutput
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). *Available only for Vault Enterprise*.
func (AlphabetOutput) Path ¶
func (o AlphabetOutput) Path() pulumi.StringOutput
Path to where the back-end is mounted within Vault.
func (AlphabetOutput) ToAlphabetOutput ¶
func (o AlphabetOutput) ToAlphabetOutput() AlphabetOutput
func (AlphabetOutput) ToAlphabetOutputWithContext ¶
func (o AlphabetOutput) ToAlphabetOutputWithContext(ctx context.Context) AlphabetOutput
type AlphabetState ¶
type AlphabetState struct { // A string of characters that contains the alphabet set. Alphabet pulumi.StringPtrInput // The name of the alphabet. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringPtrInput }
func (AlphabetState) ElementType ¶
func (AlphabetState) ElementType() reflect.Type
type GetDecodeArgs ¶
type GetDecodeArgs struct { // Specifies a list of items to be decoded in a single batch. If this parameter is set, the top-level parameters 'value', 'transformation' and 'tweak' will be ignored. Each batch item within the list can specify these parameters instead. BatchInputs []map[string]string `pulumi:"batchInputs"` // The result of decoding a batch. BatchResults []map[string]string `pulumi:"batchResults"` // The result of decoding a value. DecodedValue *string `pulumi:"decodedValue"` // The namespace of the target resource. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace *string `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path string `pulumi:"path"` // The name of the role. RoleName string `pulumi:"roleName"` // The transformation to perform. If no value is provided and the role contains a single transformation, this value will be inferred from the role. Transformation *string `pulumi:"transformation"` // The tweak value to use. Only applicable for FPE transformations Tweak *string `pulumi:"tweak"` // The value in which to decode. Value *string `pulumi:"value"` }
A collection of arguments for invoking getDecode.
type GetDecodeOutputArgs ¶
type GetDecodeOutputArgs struct { // Specifies a list of items to be decoded in a single batch. If this parameter is set, the top-level parameters 'value', 'transformation' and 'tweak' will be ignored. Each batch item within the list can specify these parameters instead. BatchInputs pulumi.StringMapArrayInput `pulumi:"batchInputs"` // The result of decoding a batch. BatchResults pulumi.StringMapArrayInput `pulumi:"batchResults"` // The result of decoding a value. DecodedValue pulumi.StringPtrInput `pulumi:"decodedValue"` // The namespace of the target resource. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path pulumi.StringInput `pulumi:"path"` // The name of the role. RoleName pulumi.StringInput `pulumi:"roleName"` // The transformation to perform. If no value is provided and the role contains a single transformation, this value will be inferred from the role. Transformation pulumi.StringPtrInput `pulumi:"transformation"` // The tweak value to use. Only applicable for FPE transformations Tweak pulumi.StringPtrInput `pulumi:"tweak"` // The value in which to decode. Value pulumi.StringPtrInput `pulumi:"value"` }
A collection of arguments for invoking getDecode.
func (GetDecodeOutputArgs) ElementType ¶
func (GetDecodeOutputArgs) ElementType() reflect.Type
type GetDecodeResult ¶
type GetDecodeResult struct { BatchInputs []map[string]string `pulumi:"batchInputs"` BatchResults []map[string]string `pulumi:"batchResults"` DecodedValue string `pulumi:"decodedValue"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Namespace *string `pulumi:"namespace"` Path string `pulumi:"path"` RoleName string `pulumi:"roleName"` Transformation *string `pulumi:"transformation"` Tweak *string `pulumi:"tweak"` Value *string `pulumi:"value"` }
A collection of values returned by getDecode.
func GetDecode ¶
func GetDecode(ctx *pulumi.Context, args *GetDecodeArgs, opts ...pulumi.InvokeOption) (*GetDecodeResult, error)
This data source supports the "/transform/decode/{role_name}" Vault endpoint.
It decodes the provided value using a named role.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault" "github.com/pulumi/pulumi-vault/sdk/v6/go/vault/transform" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { transform, err := vault.NewMount(ctx, "transform", &vault.MountArgs{ Path: pulumi.String("transform"), Type: pulumi.String("transform"), }) if err != nil { return err } _, err = transform.NewTransformation(ctx, "ccn-fpe", &transform.TransformationArgs{ Path: transform.Path, Name: pulumi.String("ccn-fpe"), Type: pulumi.String("fpe"), Template: pulumi.String("builtin/creditcardnumber"), TweakSource: pulumi.String("internal"), AllowedRoles: pulumi.StringArray{ pulumi.String("payments"), }, }) if err != nil { return err } payments, err := transform.NewRole(ctx, "payments", &transform.RoleArgs{ Path: ccn_fpe.Path, Name: pulumi.String("payments"), Transformations: pulumi.StringArray{ pulumi.String("ccn-fpe"), }, }) if err != nil { return err } _ = transform.GetDecodeOutput(ctx, transform.GetDecodeOutputArgs{ Path: payments.Path, RoleName: pulumi.String("payments"), Value: pulumi.String("9300-3376-4943-8903"), }, nil) return nil }) }
```
type GetDecodeResultOutput ¶
type GetDecodeResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getDecode.
func GetDecodeOutput ¶
func GetDecodeOutput(ctx *pulumi.Context, args GetDecodeOutputArgs, opts ...pulumi.InvokeOption) GetDecodeResultOutput
func (GetDecodeResultOutput) BatchInputs ¶
func (o GetDecodeResultOutput) BatchInputs() pulumi.StringMapArrayOutput
func (GetDecodeResultOutput) BatchResults ¶
func (o GetDecodeResultOutput) BatchResults() pulumi.StringMapArrayOutput
func (GetDecodeResultOutput) DecodedValue ¶
func (o GetDecodeResultOutput) DecodedValue() pulumi.StringOutput
func (GetDecodeResultOutput) ElementType ¶
func (GetDecodeResultOutput) ElementType() reflect.Type
func (GetDecodeResultOutput) Id ¶
func (o GetDecodeResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetDecodeResultOutput) Namespace ¶
func (o GetDecodeResultOutput) Namespace() pulumi.StringPtrOutput
func (GetDecodeResultOutput) Path ¶
func (o GetDecodeResultOutput) Path() pulumi.StringOutput
func (GetDecodeResultOutput) RoleName ¶
func (o GetDecodeResultOutput) RoleName() pulumi.StringOutput
func (GetDecodeResultOutput) ToGetDecodeResultOutput ¶
func (o GetDecodeResultOutput) ToGetDecodeResultOutput() GetDecodeResultOutput
func (GetDecodeResultOutput) ToGetDecodeResultOutputWithContext ¶
func (o GetDecodeResultOutput) ToGetDecodeResultOutputWithContext(ctx context.Context) GetDecodeResultOutput
func (GetDecodeResultOutput) Transformation ¶
func (o GetDecodeResultOutput) Transformation() pulumi.StringPtrOutput
func (GetDecodeResultOutput) Tweak ¶
func (o GetDecodeResultOutput) Tweak() pulumi.StringPtrOutput
func (GetDecodeResultOutput) Value ¶
func (o GetDecodeResultOutput) Value() pulumi.StringPtrOutput
type GetEncodeArgs ¶
type GetEncodeArgs struct { // Specifies a list of items to be encoded in a single batch. If this parameter is set, the parameters 'value', 'transformation' and 'tweak' will be ignored. Each batch item within the list can specify these parameters instead. BatchInputs []map[string]string `pulumi:"batchInputs"` // The result of encoding a batch. BatchResults []map[string]string `pulumi:"batchResults"` // The result of encoding a value. EncodedValue *string `pulumi:"encodedValue"` // The namespace of the target resource. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace *string `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path string `pulumi:"path"` // The name of the role. RoleName string `pulumi:"roleName"` // The transformation to perform. If no value is provided and the role contains a single transformation, this value will be inferred from the role. Transformation *string `pulumi:"transformation"` // The tweak value to use. Only applicable for FPE transformations Tweak *string `pulumi:"tweak"` // The value in which to encode. Value *string `pulumi:"value"` }
A collection of arguments for invoking getEncode.
type GetEncodeOutputArgs ¶
type GetEncodeOutputArgs struct { // Specifies a list of items to be encoded in a single batch. If this parameter is set, the parameters 'value', 'transformation' and 'tweak' will be ignored. Each batch item within the list can specify these parameters instead. BatchInputs pulumi.StringMapArrayInput `pulumi:"batchInputs"` // The result of encoding a batch. BatchResults pulumi.StringMapArrayInput `pulumi:"batchResults"` // The result of encoding a value. EncodedValue pulumi.StringPtrInput `pulumi:"encodedValue"` // The namespace of the target resource. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path pulumi.StringInput `pulumi:"path"` // The name of the role. RoleName pulumi.StringInput `pulumi:"roleName"` // The transformation to perform. If no value is provided and the role contains a single transformation, this value will be inferred from the role. Transformation pulumi.StringPtrInput `pulumi:"transformation"` // The tweak value to use. Only applicable for FPE transformations Tweak pulumi.StringPtrInput `pulumi:"tweak"` // The value in which to encode. Value pulumi.StringPtrInput `pulumi:"value"` }
A collection of arguments for invoking getEncode.
func (GetEncodeOutputArgs) ElementType ¶
func (GetEncodeOutputArgs) ElementType() reflect.Type
type GetEncodeResult ¶
type GetEncodeResult struct { BatchInputs []map[string]string `pulumi:"batchInputs"` BatchResults []map[string]string `pulumi:"batchResults"` EncodedValue string `pulumi:"encodedValue"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Namespace *string `pulumi:"namespace"` Path string `pulumi:"path"` RoleName string `pulumi:"roleName"` Transformation *string `pulumi:"transformation"` Tweak *string `pulumi:"tweak"` Value *string `pulumi:"value"` }
A collection of values returned by getEncode.
func GetEncode ¶
func GetEncode(ctx *pulumi.Context, args *GetEncodeArgs, opts ...pulumi.InvokeOption) (*GetEncodeResult, error)
This data source supports the "/transform/encode/{role_name}" Vault endpoint.
It encodes the provided value using a named role.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault" "github.com/pulumi/pulumi-vault/sdk/v6/go/vault/transform" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { transform, err := vault.NewMount(ctx, "transform", &vault.MountArgs{ Path: pulumi.String("transform"), Type: pulumi.String("transform"), }) if err != nil { return err } _, err = transform.NewTransformation(ctx, "ccn-fpe", &transform.TransformationArgs{ Path: transform.Path, Name: pulumi.String("ccn-fpe"), Type: pulumi.String("fpe"), Template: pulumi.String("builtin/creditcardnumber"), TweakSource: pulumi.String("internal"), AllowedRoles: pulumi.StringArray{ pulumi.String("payments"), }, }) if err != nil { return err } payments, err := transform.NewRole(ctx, "payments", &transform.RoleArgs{ Path: ccn_fpe.Path, Name: pulumi.String("payments"), Transformations: pulumi.StringArray{ pulumi.String("ccn-fpe"), }, }) if err != nil { return err } _ = transform.GetEncodeOutput(ctx, transform.GetEncodeOutputArgs{ Path: payments.Path, RoleName: pulumi.String("payments"), BatchInputs: pulumi.StringMapArray{ pulumi.StringMap{ "value": pulumi.String("1111-2222-3333-4444"), }, }, }, nil) return nil }) }
```
type GetEncodeResultOutput ¶
type GetEncodeResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getEncode.
func GetEncodeOutput ¶
func GetEncodeOutput(ctx *pulumi.Context, args GetEncodeOutputArgs, opts ...pulumi.InvokeOption) GetEncodeResultOutput
func (GetEncodeResultOutput) BatchInputs ¶
func (o GetEncodeResultOutput) BatchInputs() pulumi.StringMapArrayOutput
func (GetEncodeResultOutput) BatchResults ¶
func (o GetEncodeResultOutput) BatchResults() pulumi.StringMapArrayOutput
func (GetEncodeResultOutput) ElementType ¶
func (GetEncodeResultOutput) ElementType() reflect.Type
func (GetEncodeResultOutput) EncodedValue ¶
func (o GetEncodeResultOutput) EncodedValue() pulumi.StringOutput
func (GetEncodeResultOutput) Id ¶
func (o GetEncodeResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetEncodeResultOutput) Namespace ¶
func (o GetEncodeResultOutput) Namespace() pulumi.StringPtrOutput
func (GetEncodeResultOutput) Path ¶
func (o GetEncodeResultOutput) Path() pulumi.StringOutput
func (GetEncodeResultOutput) RoleName ¶
func (o GetEncodeResultOutput) RoleName() pulumi.StringOutput
func (GetEncodeResultOutput) ToGetEncodeResultOutput ¶
func (o GetEncodeResultOutput) ToGetEncodeResultOutput() GetEncodeResultOutput
func (GetEncodeResultOutput) ToGetEncodeResultOutputWithContext ¶
func (o GetEncodeResultOutput) ToGetEncodeResultOutputWithContext(ctx context.Context) GetEncodeResultOutput
func (GetEncodeResultOutput) Transformation ¶
func (o GetEncodeResultOutput) Transformation() pulumi.StringPtrOutput
func (GetEncodeResultOutput) Tweak ¶
func (o GetEncodeResultOutput) Tweak() pulumi.StringPtrOutput
func (GetEncodeResultOutput) Value ¶
func (o GetEncodeResultOutput) Value() pulumi.StringPtrOutput
type Role ¶
type Role struct { pulumi.CustomResourceState // The name of the role. Name pulumi.StringOutput `pulumi:"name"` // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrOutput `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path pulumi.StringOutput `pulumi:"path"` // A comma separated string or slice of transformations to use. Transformations pulumi.StringArrayOutput `pulumi:"transformations"` }
This resource supports the "/transform/role/{name}" Vault endpoint.
It creates or updates the role with the given name. If a role with the name does not exist, it will be created. If the role exists, it will be updated with the new attributes.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault" "github.com/pulumi/pulumi-vault/sdk/v6/go/vault/transform" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { mountTransform, err := vault.NewMount(ctx, "mount_transform", &vault.MountArgs{ Path: pulumi.String("transform"), Type: pulumi.String("transform"), }) if err != nil { return err } _, err = transform.NewRole(ctx, "test", &transform.RoleArgs{ Path: mountTransform.Path, Name: pulumi.String("payments"), Transformations: pulumi.StringArray{ pulumi.String("ccn-fpe"), }, }) if err != nil { return err } return nil }) }
```
func GetRole ¶
func GetRole(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RoleState, opts ...pulumi.ResourceOption) (*Role, error)
GetRole gets an existing Role resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRole ¶
func NewRole(ctx *pulumi.Context, name string, args *RoleArgs, opts ...pulumi.ResourceOption) (*Role, error)
NewRole registers a new resource with the given unique name, arguments, and options.
func (*Role) ElementType ¶
func (*Role) ToRoleOutput ¶
func (i *Role) ToRoleOutput() RoleOutput
func (*Role) ToRoleOutputWithContext ¶
func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput
type RoleArgs ¶
type RoleArgs struct { // The name of the role. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringInput // A comma separated string or slice of transformations to use. Transformations pulumi.StringArrayInput }
The set of arguments for constructing a Role resource.
func (RoleArgs) ElementType ¶
type RoleArray ¶
type RoleArray []RoleInput
func (RoleArray) ElementType ¶
func (RoleArray) ToRoleArrayOutput ¶
func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput
func (RoleArray) ToRoleArrayOutputWithContext ¶
func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleArrayInput ¶
type RoleArrayInput interface { pulumi.Input ToRoleArrayOutput() RoleArrayOutput ToRoleArrayOutputWithContext(context.Context) RoleArrayOutput }
RoleArrayInput is an input type that accepts RoleArray and RoleArrayOutput values. You can construct a concrete instance of `RoleArrayInput` via:
RoleArray{ RoleArgs{...} }
type RoleArrayOutput ¶
type RoleArrayOutput struct{ *pulumi.OutputState }
func (RoleArrayOutput) ElementType ¶
func (RoleArrayOutput) ElementType() reflect.Type
func (RoleArrayOutput) Index ¶
func (o RoleArrayOutput) Index(i pulumi.IntInput) RoleOutput
func (RoleArrayOutput) ToRoleArrayOutput ¶
func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput
func (RoleArrayOutput) ToRoleArrayOutputWithContext ¶
func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput
type RoleInput ¶
type RoleInput interface { pulumi.Input ToRoleOutput() RoleOutput ToRoleOutputWithContext(ctx context.Context) RoleOutput }
type RoleMap ¶
func (RoleMap) ElementType ¶
func (RoleMap) ToRoleMapOutput ¶
func (i RoleMap) ToRoleMapOutput() RoleMapOutput
func (RoleMap) ToRoleMapOutputWithContext ¶
func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleMapInput ¶
type RoleMapInput interface { pulumi.Input ToRoleMapOutput() RoleMapOutput ToRoleMapOutputWithContext(context.Context) RoleMapOutput }
RoleMapInput is an input type that accepts RoleMap and RoleMapOutput values. You can construct a concrete instance of `RoleMapInput` via:
RoleMap{ "key": RoleArgs{...} }
type RoleMapOutput ¶
type RoleMapOutput struct{ *pulumi.OutputState }
func (RoleMapOutput) ElementType ¶
func (RoleMapOutput) ElementType() reflect.Type
func (RoleMapOutput) MapIndex ¶
func (o RoleMapOutput) MapIndex(k pulumi.StringInput) RoleOutput
func (RoleMapOutput) ToRoleMapOutput ¶
func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput
func (RoleMapOutput) ToRoleMapOutputWithContext ¶
func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput
type RoleOutput ¶
type RoleOutput struct{ *pulumi.OutputState }
func (RoleOutput) ElementType ¶
func (RoleOutput) ElementType() reflect.Type
func (RoleOutput) Namespace ¶
func (o RoleOutput) Namespace() pulumi.StringPtrOutput
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). *Available only for Vault Enterprise*.
func (RoleOutput) Path ¶
func (o RoleOutput) Path() pulumi.StringOutput
Path to where the back-end is mounted within Vault.
func (RoleOutput) ToRoleOutput ¶
func (o RoleOutput) ToRoleOutput() RoleOutput
func (RoleOutput) ToRoleOutputWithContext ¶
func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput
func (RoleOutput) Transformations ¶
func (o RoleOutput) Transformations() pulumi.StringArrayOutput
A comma separated string or slice of transformations to use.
type RoleState ¶
type RoleState struct { // The name of the role. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringPtrInput // A comma separated string or slice of transformations to use. Transformations pulumi.StringArrayInput }
func (RoleState) ElementType ¶
type Template ¶
type Template struct { pulumi.CustomResourceState // The alphabet to use for this template. This is only used during FPE transformations. Alphabet pulumi.StringPtrOutput `pulumi:"alphabet"` // Optional mapping of name to regular expression template, used to customize // the decoded output. (requires Vault Enterprise 1.9+) DecodeFormats pulumi.StringMapOutput `pulumi:"decodeFormats"` // The regular expression template used to format encoded values. // (requires Vault Enterprise 1.9+) EncodeFormat pulumi.StringPtrOutput `pulumi:"encodeFormat"` // The name of the template. Name pulumi.StringOutput `pulumi:"name"` // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrOutput `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path pulumi.StringOutput `pulumi:"path"` // The pattern used for matching. Currently, only regular expression pattern is supported. Pattern pulumi.StringPtrOutput `pulumi:"pattern"` // The pattern type to use for match detection. Currently, only regex is supported. Type pulumi.StringPtrOutput `pulumi:"type"` }
This resource supports the `/transform/template/{name}` Vault endpoint.
It creates or updates a template with the given name. If a template with the name does not exist, it will be created. If the template exists, it will be updated with the new attributes.
> Requires _Vault Enterprise with the Advanced Data Protection Transform Module_. See [Transform Secrets Engine](https://www.vaultproject.io/docs/secrets/transform) for more information.
## Example Usage
Please note that the `pattern` below holds a regex. The regex shown is identical to the one in our [Setup](https://www.vaultproject.io/docs/secrets/transform#setup) docs, `(\d{4})-(\d{4})-(\d{4})-(\d{4})`. However, due to HCL, the backslashes must be escaped to appear correctly in Vault. For further assistance escaping your own custom regex, see String Literals.
```go package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault" "github.com/pulumi/pulumi-vault/sdk/v6/go/vault/transform" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { transform, err := vault.NewMount(ctx, "transform", &vault.MountArgs{ Path: pulumi.String("transform"), Type: pulumi.String("transform"), }) if err != nil { return err } numerics, err := transform.NewAlphabet(ctx, "numerics", &transform.AlphabetArgs{ Path: transform.Path, Name: pulumi.String("numerics"), Alphabet: pulumi.String("0123456789"), }) if err != nil { return err } _, err = transform.NewTemplate(ctx, "test", &transform.TemplateArgs{ Path: numerics.Path, Name: pulumi.String("ccn"), Type: pulumi.String("regex"), Pattern: pulumi.String("(\\d{4})[- ](\\d{4})[- ](\\d{4})[- ](\\d{4})"), Alphabet: pulumi.String("numerics"), EncodeFormat: pulumi.String("$1-$2-$3-$4"), DecodeFormats: pulumi.StringMap{ "last-four-digits": pulumi.String("$4"), }, }) if err != nil { return err } return nil }) }
```
func GetTemplate ¶
func GetTemplate(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TemplateState, opts ...pulumi.ResourceOption) (*Template, error)
GetTemplate gets an existing Template resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTemplate ¶
func NewTemplate(ctx *pulumi.Context, name string, args *TemplateArgs, opts ...pulumi.ResourceOption) (*Template, error)
NewTemplate registers a new resource with the given unique name, arguments, and options.
func (*Template) ElementType ¶
func (*Template) ToTemplateOutput ¶
func (i *Template) ToTemplateOutput() TemplateOutput
func (*Template) ToTemplateOutputWithContext ¶
func (i *Template) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput
type TemplateArgs ¶
type TemplateArgs struct { // The alphabet to use for this template. This is only used during FPE transformations. Alphabet pulumi.StringPtrInput // Optional mapping of name to regular expression template, used to customize // the decoded output. (requires Vault Enterprise 1.9+) DecodeFormats pulumi.StringMapInput // The regular expression template used to format encoded values. // (requires Vault Enterprise 1.9+) EncodeFormat pulumi.StringPtrInput // The name of the template. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringInput // The pattern used for matching. Currently, only regular expression pattern is supported. Pattern pulumi.StringPtrInput // The pattern type to use for match detection. Currently, only regex is supported. Type pulumi.StringPtrInput }
The set of arguments for constructing a Template resource.
func (TemplateArgs) ElementType ¶
func (TemplateArgs) ElementType() reflect.Type
type TemplateArray ¶
type TemplateArray []TemplateInput
func (TemplateArray) ElementType ¶
func (TemplateArray) ElementType() reflect.Type
func (TemplateArray) ToTemplateArrayOutput ¶
func (i TemplateArray) ToTemplateArrayOutput() TemplateArrayOutput
func (TemplateArray) ToTemplateArrayOutputWithContext ¶
func (i TemplateArray) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput
type TemplateArrayInput ¶
type TemplateArrayInput interface { pulumi.Input ToTemplateArrayOutput() TemplateArrayOutput ToTemplateArrayOutputWithContext(context.Context) TemplateArrayOutput }
TemplateArrayInput is an input type that accepts TemplateArray and TemplateArrayOutput values. You can construct a concrete instance of `TemplateArrayInput` via:
TemplateArray{ TemplateArgs{...} }
type TemplateArrayOutput ¶
type TemplateArrayOutput struct{ *pulumi.OutputState }
func (TemplateArrayOutput) ElementType ¶
func (TemplateArrayOutput) ElementType() reflect.Type
func (TemplateArrayOutput) Index ¶
func (o TemplateArrayOutput) Index(i pulumi.IntInput) TemplateOutput
func (TemplateArrayOutput) ToTemplateArrayOutput ¶
func (o TemplateArrayOutput) ToTemplateArrayOutput() TemplateArrayOutput
func (TemplateArrayOutput) ToTemplateArrayOutputWithContext ¶
func (o TemplateArrayOutput) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput
type TemplateInput ¶
type TemplateInput interface { pulumi.Input ToTemplateOutput() TemplateOutput ToTemplateOutputWithContext(ctx context.Context) TemplateOutput }
type TemplateMap ¶
type TemplateMap map[string]TemplateInput
func (TemplateMap) ElementType ¶
func (TemplateMap) ElementType() reflect.Type
func (TemplateMap) ToTemplateMapOutput ¶
func (i TemplateMap) ToTemplateMapOutput() TemplateMapOutput
func (TemplateMap) ToTemplateMapOutputWithContext ¶
func (i TemplateMap) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput
type TemplateMapInput ¶
type TemplateMapInput interface { pulumi.Input ToTemplateMapOutput() TemplateMapOutput ToTemplateMapOutputWithContext(context.Context) TemplateMapOutput }
TemplateMapInput is an input type that accepts TemplateMap and TemplateMapOutput values. You can construct a concrete instance of `TemplateMapInput` via:
TemplateMap{ "key": TemplateArgs{...} }
type TemplateMapOutput ¶
type TemplateMapOutput struct{ *pulumi.OutputState }
func (TemplateMapOutput) ElementType ¶
func (TemplateMapOutput) ElementType() reflect.Type
func (TemplateMapOutput) MapIndex ¶
func (o TemplateMapOutput) MapIndex(k pulumi.StringInput) TemplateOutput
func (TemplateMapOutput) ToTemplateMapOutput ¶
func (o TemplateMapOutput) ToTemplateMapOutput() TemplateMapOutput
func (TemplateMapOutput) ToTemplateMapOutputWithContext ¶
func (o TemplateMapOutput) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput
type TemplateOutput ¶
type TemplateOutput struct{ *pulumi.OutputState }
func (TemplateOutput) Alphabet ¶
func (o TemplateOutput) Alphabet() pulumi.StringPtrOutput
The alphabet to use for this template. This is only used during FPE transformations.
func (TemplateOutput) DecodeFormats ¶
func (o TemplateOutput) DecodeFormats() pulumi.StringMapOutput
Optional mapping of name to regular expression template, used to customize the decoded output. (requires Vault Enterprise 1.9+)
func (TemplateOutput) ElementType ¶
func (TemplateOutput) ElementType() reflect.Type
func (TemplateOutput) EncodeFormat ¶
func (o TemplateOutput) EncodeFormat() pulumi.StringPtrOutput
The regular expression template used to format encoded values. (requires Vault Enterprise 1.9+)
func (TemplateOutput) Name ¶
func (o TemplateOutput) Name() pulumi.StringOutput
The name of the template.
func (TemplateOutput) Namespace ¶
func (o TemplateOutput) Namespace() pulumi.StringPtrOutput
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). *Available only for Vault Enterprise*.
func (TemplateOutput) Path ¶
func (o TemplateOutput) Path() pulumi.StringOutput
Path to where the back-end is mounted within Vault.
func (TemplateOutput) Pattern ¶
func (o TemplateOutput) Pattern() pulumi.StringPtrOutput
The pattern used for matching. Currently, only regular expression pattern is supported.
func (TemplateOutput) ToTemplateOutput ¶
func (o TemplateOutput) ToTemplateOutput() TemplateOutput
func (TemplateOutput) ToTemplateOutputWithContext ¶
func (o TemplateOutput) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput
func (TemplateOutput) Type ¶
func (o TemplateOutput) Type() pulumi.StringPtrOutput
The pattern type to use for match detection. Currently, only regex is supported.
type TemplateState ¶
type TemplateState struct { // The alphabet to use for this template. This is only used during FPE transformations. Alphabet pulumi.StringPtrInput // Optional mapping of name to regular expression template, used to customize // the decoded output. (requires Vault Enterprise 1.9+) DecodeFormats pulumi.StringMapInput // The regular expression template used to format encoded values. // (requires Vault Enterprise 1.9+) EncodeFormat pulumi.StringPtrInput // The name of the template. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringPtrInput // The pattern used for matching. Currently, only regular expression pattern is supported. Pattern pulumi.StringPtrInput // The pattern type to use for match detection. Currently, only regex is supported. Type pulumi.StringPtrInput }
func (TemplateState) ElementType ¶
func (TemplateState) ElementType() reflect.Type
type Transformation ¶
type Transformation struct { pulumi.CustomResourceState // The set of roles allowed to perform this transformation. AllowedRoles pulumi.StringArrayOutput `pulumi:"allowedRoles"` // If true, this transform can be deleted. // Otherwise, deletion is blocked while this value remains false. Default: `false` // *Only supported on vault-1.12+* DeletionAllowed pulumi.BoolPtrOutput `pulumi:"deletionAllowed"` // The character used to replace data when in masking mode MaskingCharacter pulumi.StringPtrOutput `pulumi:"maskingCharacter"` // The name of the transformation. Name pulumi.StringOutput `pulumi:"name"` // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrOutput `pulumi:"namespace"` // Path to where the back-end is mounted within Vault. Path pulumi.StringOutput `pulumi:"path"` // The name of the template to use. Template pulumi.StringPtrOutput `pulumi:"template"` // Templates configured for transformation. Templates pulumi.StringArrayOutput `pulumi:"templates"` // The source of where the tweak value comes from. Only valid when in FPE mode. TweakSource pulumi.StringPtrOutput `pulumi:"tweakSource"` // The type of transformation to perform. Type pulumi.StringPtrOutput `pulumi:"type"` }
func GetTransformation ¶
func GetTransformation(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TransformationState, opts ...pulumi.ResourceOption) (*Transformation, error)
GetTransformation gets an existing Transformation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTransformation ¶
func NewTransformation(ctx *pulumi.Context, name string, args *TransformationArgs, opts ...pulumi.ResourceOption) (*Transformation, error)
NewTransformation registers a new resource with the given unique name, arguments, and options.
func (*Transformation) ElementType ¶
func (*Transformation) ElementType() reflect.Type
func (*Transformation) ToTransformationOutput ¶
func (i *Transformation) ToTransformationOutput() TransformationOutput
func (*Transformation) ToTransformationOutputWithContext ¶
func (i *Transformation) ToTransformationOutputWithContext(ctx context.Context) TransformationOutput
type TransformationArgs ¶
type TransformationArgs struct { // The set of roles allowed to perform this transformation. AllowedRoles pulumi.StringArrayInput // If true, this transform can be deleted. // Otherwise, deletion is blocked while this value remains false. Default: `false` // *Only supported on vault-1.12+* DeletionAllowed pulumi.BoolPtrInput // The character used to replace data when in masking mode MaskingCharacter pulumi.StringPtrInput // The name of the transformation. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringInput // The name of the template to use. Template pulumi.StringPtrInput // Templates configured for transformation. Templates pulumi.StringArrayInput // The source of where the tweak value comes from. Only valid when in FPE mode. TweakSource pulumi.StringPtrInput // The type of transformation to perform. Type pulumi.StringPtrInput }
The set of arguments for constructing a Transformation resource.
func (TransformationArgs) ElementType ¶
func (TransformationArgs) ElementType() reflect.Type
type TransformationArray ¶
type TransformationArray []TransformationInput
func (TransformationArray) ElementType ¶
func (TransformationArray) ElementType() reflect.Type
func (TransformationArray) ToTransformationArrayOutput ¶
func (i TransformationArray) ToTransformationArrayOutput() TransformationArrayOutput
func (TransformationArray) ToTransformationArrayOutputWithContext ¶
func (i TransformationArray) ToTransformationArrayOutputWithContext(ctx context.Context) TransformationArrayOutput
type TransformationArrayInput ¶
type TransformationArrayInput interface { pulumi.Input ToTransformationArrayOutput() TransformationArrayOutput ToTransformationArrayOutputWithContext(context.Context) TransformationArrayOutput }
TransformationArrayInput is an input type that accepts TransformationArray and TransformationArrayOutput values. You can construct a concrete instance of `TransformationArrayInput` via:
TransformationArray{ TransformationArgs{...} }
type TransformationArrayOutput ¶
type TransformationArrayOutput struct{ *pulumi.OutputState }
func (TransformationArrayOutput) ElementType ¶
func (TransformationArrayOutput) ElementType() reflect.Type
func (TransformationArrayOutput) Index ¶
func (o TransformationArrayOutput) Index(i pulumi.IntInput) TransformationOutput
func (TransformationArrayOutput) ToTransformationArrayOutput ¶
func (o TransformationArrayOutput) ToTransformationArrayOutput() TransformationArrayOutput
func (TransformationArrayOutput) ToTransformationArrayOutputWithContext ¶
func (o TransformationArrayOutput) ToTransformationArrayOutputWithContext(ctx context.Context) TransformationArrayOutput
type TransformationInput ¶
type TransformationInput interface { pulumi.Input ToTransformationOutput() TransformationOutput ToTransformationOutputWithContext(ctx context.Context) TransformationOutput }
type TransformationMap ¶
type TransformationMap map[string]TransformationInput
func (TransformationMap) ElementType ¶
func (TransformationMap) ElementType() reflect.Type
func (TransformationMap) ToTransformationMapOutput ¶
func (i TransformationMap) ToTransformationMapOutput() TransformationMapOutput
func (TransformationMap) ToTransformationMapOutputWithContext ¶
func (i TransformationMap) ToTransformationMapOutputWithContext(ctx context.Context) TransformationMapOutput
type TransformationMapInput ¶
type TransformationMapInput interface { pulumi.Input ToTransformationMapOutput() TransformationMapOutput ToTransformationMapOutputWithContext(context.Context) TransformationMapOutput }
TransformationMapInput is an input type that accepts TransformationMap and TransformationMapOutput values. You can construct a concrete instance of `TransformationMapInput` via:
TransformationMap{ "key": TransformationArgs{...} }
type TransformationMapOutput ¶
type TransformationMapOutput struct{ *pulumi.OutputState }
func (TransformationMapOutput) ElementType ¶
func (TransformationMapOutput) ElementType() reflect.Type
func (TransformationMapOutput) MapIndex ¶
func (o TransformationMapOutput) MapIndex(k pulumi.StringInput) TransformationOutput
func (TransformationMapOutput) ToTransformationMapOutput ¶
func (o TransformationMapOutput) ToTransformationMapOutput() TransformationMapOutput
func (TransformationMapOutput) ToTransformationMapOutputWithContext ¶
func (o TransformationMapOutput) ToTransformationMapOutputWithContext(ctx context.Context) TransformationMapOutput
type TransformationOutput ¶
type TransformationOutput struct{ *pulumi.OutputState }
func (TransformationOutput) AllowedRoles ¶
func (o TransformationOutput) AllowedRoles() pulumi.StringArrayOutput
The set of roles allowed to perform this transformation.
func (TransformationOutput) DeletionAllowed ¶
func (o TransformationOutput) DeletionAllowed() pulumi.BoolPtrOutput
If true, this transform can be deleted. Otherwise, deletion is blocked while this value remains false. Default: `false` *Only supported on vault-1.12+*
func (TransformationOutput) ElementType ¶
func (TransformationOutput) ElementType() reflect.Type
func (TransformationOutput) MaskingCharacter ¶
func (o TransformationOutput) MaskingCharacter() pulumi.StringPtrOutput
The character used to replace data when in masking mode
func (TransformationOutput) Name ¶
func (o TransformationOutput) Name() pulumi.StringOutput
The name of the transformation.
func (TransformationOutput) Namespace ¶
func (o TransformationOutput) Namespace() pulumi.StringPtrOutput
The namespace to provision the resource in. The value should not contain leading or trailing forward slashes. The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). *Available only for Vault Enterprise*.
func (TransformationOutput) Path ¶
func (o TransformationOutput) Path() pulumi.StringOutput
Path to where the back-end is mounted within Vault.
func (TransformationOutput) Template ¶
func (o TransformationOutput) Template() pulumi.StringPtrOutput
The name of the template to use.
func (TransformationOutput) Templates ¶
func (o TransformationOutput) Templates() pulumi.StringArrayOutput
Templates configured for transformation.
func (TransformationOutput) ToTransformationOutput ¶
func (o TransformationOutput) ToTransformationOutput() TransformationOutput
func (TransformationOutput) ToTransformationOutputWithContext ¶
func (o TransformationOutput) ToTransformationOutputWithContext(ctx context.Context) TransformationOutput
func (TransformationOutput) TweakSource ¶
func (o TransformationOutput) TweakSource() pulumi.StringPtrOutput
The source of where the tweak value comes from. Only valid when in FPE mode.
func (TransformationOutput) Type ¶
func (o TransformationOutput) Type() pulumi.StringPtrOutput
The type of transformation to perform.
type TransformationState ¶
type TransformationState struct { // The set of roles allowed to perform this transformation. AllowedRoles pulumi.StringArrayInput // If true, this transform can be deleted. // Otherwise, deletion is blocked while this value remains false. Default: `false` // *Only supported on vault-1.12+* DeletionAllowed pulumi.BoolPtrInput // The character used to replace data when in masking mode MaskingCharacter pulumi.StringPtrInput // The name of the transformation. Name pulumi.StringPtrInput // The namespace to provision the resource in. // The value should not contain leading or trailing forward slashes. // The `namespace` is always relative to the provider's configured [namespace](https://www.terraform.io/docs/providers/vault/index.html#namespace). // *Available only for Vault Enterprise*. Namespace pulumi.StringPtrInput // Path to where the back-end is mounted within Vault. Path pulumi.StringPtrInput // The name of the template to use. Template pulumi.StringPtrInput // Templates configured for transformation. Templates pulumi.StringArrayInput // The source of where the tweak value comes from. Only valid when in FPE mode. TweakSource pulumi.StringPtrInput // The type of transformation to perform. Type pulumi.StringPtrInput }
func (TransformationState) ElementType ¶
func (TransformationState) ElementType() reflect.Type