transform

package
v3.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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"`
	// 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/v3/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v3/go/vault/transform"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mountTransform, err := vault.NewMount(ctx, "mountTransform", &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,
			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 added in v3.0.2

func (*Alphabet) ElementType() reflect.Type

func (*Alphabet) ToAlphabetOutput added in v3.0.2

func (i *Alphabet) ToAlphabetOutput() AlphabetOutput

func (*Alphabet) ToAlphabetOutputWithContext added in v3.0.2

func (i *Alphabet) ToAlphabetOutputWithContext(ctx context.Context) AlphabetOutput

func (*Alphabet) ToAlphabetPtrOutput added in v3.4.1

func (i *Alphabet) ToAlphabetPtrOutput() AlphabetPtrOutput

func (*Alphabet) ToAlphabetPtrOutputWithContext added in v3.4.1

func (i *Alphabet) ToAlphabetPtrOutputWithContext(ctx context.Context) AlphabetPtrOutput

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
	// 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 added in v3.4.1

type AlphabetArray []AlphabetInput

func (AlphabetArray) ElementType added in v3.4.1

func (AlphabetArray) ElementType() reflect.Type

func (AlphabetArray) ToAlphabetArrayOutput added in v3.4.1

func (i AlphabetArray) ToAlphabetArrayOutput() AlphabetArrayOutput

func (AlphabetArray) ToAlphabetArrayOutputWithContext added in v3.4.1

func (i AlphabetArray) ToAlphabetArrayOutputWithContext(ctx context.Context) AlphabetArrayOutput

type AlphabetArrayInput added in v3.4.1

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 added in v3.4.1

type AlphabetArrayOutput struct{ *pulumi.OutputState }

func (AlphabetArrayOutput) ElementType added in v3.4.1

func (AlphabetArrayOutput) ElementType() reflect.Type

func (AlphabetArrayOutput) Index added in v3.4.1

func (AlphabetArrayOutput) ToAlphabetArrayOutput added in v3.4.1

func (o AlphabetArrayOutput) ToAlphabetArrayOutput() AlphabetArrayOutput

func (AlphabetArrayOutput) ToAlphabetArrayOutputWithContext added in v3.4.1

func (o AlphabetArrayOutput) ToAlphabetArrayOutputWithContext(ctx context.Context) AlphabetArrayOutput

type AlphabetInput added in v3.0.2

type AlphabetInput interface {
	pulumi.Input

	ToAlphabetOutput() AlphabetOutput
	ToAlphabetOutputWithContext(ctx context.Context) AlphabetOutput
}

type AlphabetMap added in v3.4.1

type AlphabetMap map[string]AlphabetInput

func (AlphabetMap) ElementType added in v3.4.1

func (AlphabetMap) ElementType() reflect.Type

func (AlphabetMap) ToAlphabetMapOutput added in v3.4.1

func (i AlphabetMap) ToAlphabetMapOutput() AlphabetMapOutput

func (AlphabetMap) ToAlphabetMapOutputWithContext added in v3.4.1

func (i AlphabetMap) ToAlphabetMapOutputWithContext(ctx context.Context) AlphabetMapOutput

type AlphabetMapInput added in v3.4.1

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 added in v3.4.1

type AlphabetMapOutput struct{ *pulumi.OutputState }

func (AlphabetMapOutput) ElementType added in v3.4.1

func (AlphabetMapOutput) ElementType() reflect.Type

func (AlphabetMapOutput) MapIndex added in v3.4.1

func (AlphabetMapOutput) ToAlphabetMapOutput added in v3.4.1

func (o AlphabetMapOutput) ToAlphabetMapOutput() AlphabetMapOutput

func (AlphabetMapOutput) ToAlphabetMapOutputWithContext added in v3.4.1

func (o AlphabetMapOutput) ToAlphabetMapOutputWithContext(ctx context.Context) AlphabetMapOutput

type AlphabetOutput added in v3.0.2

type AlphabetOutput struct {
	*pulumi.OutputState
}

func (AlphabetOutput) ElementType added in v3.0.2

func (AlphabetOutput) ElementType() reflect.Type

func (AlphabetOutput) ToAlphabetOutput added in v3.0.2

func (o AlphabetOutput) ToAlphabetOutput() AlphabetOutput

func (AlphabetOutput) ToAlphabetOutputWithContext added in v3.0.2

func (o AlphabetOutput) ToAlphabetOutputWithContext(ctx context.Context) AlphabetOutput

func (AlphabetOutput) ToAlphabetPtrOutput added in v3.4.1

func (o AlphabetOutput) ToAlphabetPtrOutput() AlphabetPtrOutput

func (AlphabetOutput) ToAlphabetPtrOutputWithContext added in v3.4.1

func (o AlphabetOutput) ToAlphabetPtrOutputWithContext(ctx context.Context) AlphabetPtrOutput

type AlphabetPtrInput added in v3.4.1

type AlphabetPtrInput interface {
	pulumi.Input

	ToAlphabetPtrOutput() AlphabetPtrOutput
	ToAlphabetPtrOutputWithContext(ctx context.Context) AlphabetPtrOutput
}

type AlphabetPtrOutput added in v3.4.1

type AlphabetPtrOutput struct {
	*pulumi.OutputState
}

func (AlphabetPtrOutput) ElementType added in v3.4.1

func (AlphabetPtrOutput) ElementType() reflect.Type

func (AlphabetPtrOutput) ToAlphabetPtrOutput added in v3.4.1

func (o AlphabetPtrOutput) ToAlphabetPtrOutput() AlphabetPtrOutput

func (AlphabetPtrOutput) ToAlphabetPtrOutputWithContext added in v3.4.1

func (o AlphabetPtrOutput) ToAlphabetPtrOutputWithContext(ctx context.Context) AlphabetPtrOutput

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
	// 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]interface{} `pulumi:"batchInputs"`
	// The result of decoding a batch.
	BatchResults []map[string]interface{} `pulumi:"batchResults"`
	// The result of decoding a value.
	DecodedValue *string `pulumi:"decodedValue"`
	// 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 GetDecodeResult

type GetDecodeResult struct {
	BatchInputs  []map[string]interface{} `pulumi:"batchInputs"`
	BatchResults []map[string]interface{} `pulumi:"batchResults"`
	DecodedValue string                   `pulumi:"decodedValue"`
	// The provider-assigned unique ID for this managed resource.
	Id             string  `pulumi:"id"`
	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.

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]interface{} `pulumi:"batchInputs"`
	// The result of encoding a batch.
	BatchResults []map[string]interface{} `pulumi:"batchResults"`
	// The result of encoding a value.
	EncodedValue *string `pulumi:"encodedValue"`
	// 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 GetEncodeResult

type GetEncodeResult struct {
	BatchInputs  []map[string]interface{} `pulumi:"batchInputs"`
	BatchResults []map[string]interface{} `pulumi:"batchResults"`
	EncodedValue string                   `pulumi:"encodedValue"`
	// The provider-assigned unique ID for this managed resource.
	Id             string  `pulumi:"id"`
	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.

type Role

type Role struct {
	pulumi.CustomResourceState

	// The name of the role.
	Name pulumi.StringOutput `pulumi:"name"`
	// 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/v3/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v3/go/vault/transform"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mountTransform, err := vault.NewMount(ctx, "mountTransform", &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,
			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 added in v3.0.2

func (*Role) ElementType() reflect.Type

func (*Role) ToRoleOutput added in v3.0.2

func (i *Role) ToRoleOutput() RoleOutput

func (*Role) ToRoleOutputWithContext added in v3.0.2

func (i *Role) ToRoleOutputWithContext(ctx context.Context) RoleOutput

func (*Role) ToRolePtrOutput added in v3.4.1

func (i *Role) ToRolePtrOutput() RolePtrOutput

func (*Role) ToRolePtrOutputWithContext added in v3.4.1

func (i *Role) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput

type RoleArgs

type RoleArgs struct {
	// The name of the role.
	Name 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

func (RoleArgs) ElementType() reflect.Type

type RoleArray added in v3.4.1

type RoleArray []RoleInput

func (RoleArray) ElementType added in v3.4.1

func (RoleArray) ElementType() reflect.Type

func (RoleArray) ToRoleArrayOutput added in v3.4.1

func (i RoleArray) ToRoleArrayOutput() RoleArrayOutput

func (RoleArray) ToRoleArrayOutputWithContext added in v3.4.1

func (i RoleArray) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleArrayInput added in v3.4.1

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 added in v3.4.1

type RoleArrayOutput struct{ *pulumi.OutputState }

func (RoleArrayOutput) ElementType added in v3.4.1

func (RoleArrayOutput) ElementType() reflect.Type

func (RoleArrayOutput) Index added in v3.4.1

func (RoleArrayOutput) ToRoleArrayOutput added in v3.4.1

func (o RoleArrayOutput) ToRoleArrayOutput() RoleArrayOutput

func (RoleArrayOutput) ToRoleArrayOutputWithContext added in v3.4.1

func (o RoleArrayOutput) ToRoleArrayOutputWithContext(ctx context.Context) RoleArrayOutput

type RoleInput added in v3.0.2

type RoleInput interface {
	pulumi.Input

	ToRoleOutput() RoleOutput
	ToRoleOutputWithContext(ctx context.Context) RoleOutput
}

type RoleMap added in v3.4.1

type RoleMap map[string]RoleInput

func (RoleMap) ElementType added in v3.4.1

func (RoleMap) ElementType() reflect.Type

func (RoleMap) ToRoleMapOutput added in v3.4.1

func (i RoleMap) ToRoleMapOutput() RoleMapOutput

func (RoleMap) ToRoleMapOutputWithContext added in v3.4.1

func (i RoleMap) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleMapInput added in v3.4.1

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 added in v3.4.1

type RoleMapOutput struct{ *pulumi.OutputState }

func (RoleMapOutput) ElementType added in v3.4.1

func (RoleMapOutput) ElementType() reflect.Type

func (RoleMapOutput) MapIndex added in v3.4.1

func (RoleMapOutput) ToRoleMapOutput added in v3.4.1

func (o RoleMapOutput) ToRoleMapOutput() RoleMapOutput

func (RoleMapOutput) ToRoleMapOutputWithContext added in v3.4.1

func (o RoleMapOutput) ToRoleMapOutputWithContext(ctx context.Context) RoleMapOutput

type RoleOutput added in v3.0.2

type RoleOutput struct {
	*pulumi.OutputState
}

func (RoleOutput) ElementType added in v3.0.2

func (RoleOutput) ElementType() reflect.Type

func (RoleOutput) ToRoleOutput added in v3.0.2

func (o RoleOutput) ToRoleOutput() RoleOutput

func (RoleOutput) ToRoleOutputWithContext added in v3.0.2

func (o RoleOutput) ToRoleOutputWithContext(ctx context.Context) RoleOutput

func (RoleOutput) ToRolePtrOutput added in v3.4.1

func (o RoleOutput) ToRolePtrOutput() RolePtrOutput

func (RoleOutput) ToRolePtrOutputWithContext added in v3.4.1

func (o RoleOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput

type RolePtrInput added in v3.4.1

type RolePtrInput interface {
	pulumi.Input

	ToRolePtrOutput() RolePtrOutput
	ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput
}

type RolePtrOutput added in v3.4.1

type RolePtrOutput struct {
	*pulumi.OutputState
}

func (RolePtrOutput) ElementType added in v3.4.1

func (RolePtrOutput) ElementType() reflect.Type

func (RolePtrOutput) ToRolePtrOutput added in v3.4.1

func (o RolePtrOutput) ToRolePtrOutput() RolePtrOutput

func (RolePtrOutput) ToRolePtrOutputWithContext added in v3.4.1

func (o RolePtrOutput) ToRolePtrOutputWithContext(ctx context.Context) RolePtrOutput

type RoleState

type RoleState struct {
	// The name of the role.
	Name 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

func (RoleState) ElementType() reflect.Type

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"`
	// The name of the template.
	Name pulumi.StringOutput `pulumi:"name"`
	// 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"`
}

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 added in v3.0.2

func (*Template) ElementType() reflect.Type

func (*Template) ToTemplateOutput added in v3.0.2

func (i *Template) ToTemplateOutput() TemplateOutput

func (*Template) ToTemplateOutputWithContext added in v3.0.2

func (i *Template) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput

func (*Template) ToTemplatePtrOutput added in v3.4.1

func (i *Template) ToTemplatePtrOutput() TemplatePtrOutput

func (*Template) ToTemplatePtrOutputWithContext added in v3.4.1

func (i *Template) ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput

type TemplateArgs

type TemplateArgs struct {
	// The alphabet to use for this template. This is only used during FPE transformations.
	Alphabet pulumi.StringPtrInput
	// The name of the template.
	Name 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 added in v3.4.1

type TemplateArray []TemplateInput

func (TemplateArray) ElementType added in v3.4.1

func (TemplateArray) ElementType() reflect.Type

func (TemplateArray) ToTemplateArrayOutput added in v3.4.1

func (i TemplateArray) ToTemplateArrayOutput() TemplateArrayOutput

func (TemplateArray) ToTemplateArrayOutputWithContext added in v3.4.1

func (i TemplateArray) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput

type TemplateArrayInput added in v3.4.1

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 added in v3.4.1

type TemplateArrayOutput struct{ *pulumi.OutputState }

func (TemplateArrayOutput) ElementType added in v3.4.1

func (TemplateArrayOutput) ElementType() reflect.Type

func (TemplateArrayOutput) Index added in v3.4.1

func (TemplateArrayOutput) ToTemplateArrayOutput added in v3.4.1

func (o TemplateArrayOutput) ToTemplateArrayOutput() TemplateArrayOutput

func (TemplateArrayOutput) ToTemplateArrayOutputWithContext added in v3.4.1

func (o TemplateArrayOutput) ToTemplateArrayOutputWithContext(ctx context.Context) TemplateArrayOutput

type TemplateInput added in v3.0.2

type TemplateInput interface {
	pulumi.Input

	ToTemplateOutput() TemplateOutput
	ToTemplateOutputWithContext(ctx context.Context) TemplateOutput
}

type TemplateMap added in v3.4.1

type TemplateMap map[string]TemplateInput

func (TemplateMap) ElementType added in v3.4.1

func (TemplateMap) ElementType() reflect.Type

func (TemplateMap) ToTemplateMapOutput added in v3.4.1

func (i TemplateMap) ToTemplateMapOutput() TemplateMapOutput

func (TemplateMap) ToTemplateMapOutputWithContext added in v3.4.1

func (i TemplateMap) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput

type TemplateMapInput added in v3.4.1

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 added in v3.4.1

type TemplateMapOutput struct{ *pulumi.OutputState }

func (TemplateMapOutput) ElementType added in v3.4.1

func (TemplateMapOutput) ElementType() reflect.Type

func (TemplateMapOutput) MapIndex added in v3.4.1

func (TemplateMapOutput) ToTemplateMapOutput added in v3.4.1

func (o TemplateMapOutput) ToTemplateMapOutput() TemplateMapOutput

func (TemplateMapOutput) ToTemplateMapOutputWithContext added in v3.4.1

func (o TemplateMapOutput) ToTemplateMapOutputWithContext(ctx context.Context) TemplateMapOutput

type TemplateOutput added in v3.0.2

type TemplateOutput struct {
	*pulumi.OutputState
}

func (TemplateOutput) ElementType added in v3.0.2

func (TemplateOutput) ElementType() reflect.Type

func (TemplateOutput) ToTemplateOutput added in v3.0.2

func (o TemplateOutput) ToTemplateOutput() TemplateOutput

func (TemplateOutput) ToTemplateOutputWithContext added in v3.0.2

func (o TemplateOutput) ToTemplateOutputWithContext(ctx context.Context) TemplateOutput

func (TemplateOutput) ToTemplatePtrOutput added in v3.4.1

func (o TemplateOutput) ToTemplatePtrOutput() TemplatePtrOutput

func (TemplateOutput) ToTemplatePtrOutputWithContext added in v3.4.1

func (o TemplateOutput) ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput

type TemplatePtrInput added in v3.4.1

type TemplatePtrInput interface {
	pulumi.Input

	ToTemplatePtrOutput() TemplatePtrOutput
	ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput
}

type TemplatePtrOutput added in v3.4.1

type TemplatePtrOutput struct {
	*pulumi.OutputState
}

func (TemplatePtrOutput) ElementType added in v3.4.1

func (TemplatePtrOutput) ElementType() reflect.Type

func (TemplatePtrOutput) ToTemplatePtrOutput added in v3.4.1

func (o TemplatePtrOutput) ToTemplatePtrOutput() TemplatePtrOutput

func (TemplatePtrOutput) ToTemplatePtrOutputWithContext added in v3.4.1

func (o TemplatePtrOutput) ToTemplatePtrOutputWithContext(ctx context.Context) TemplatePtrOutput

type TemplateState

type TemplateState struct {
	// The alphabet to use for this template. This is only used during FPE transformations.
	Alphabet pulumi.StringPtrInput
	// The name of the template.
	Name 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"`
	// 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"`
	// 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"`
}

This resource supports the "/transform/transformation/{name}" Vault endpoint.

It creates or updates a transformation with the given name. If a transformation with the name does not exist, it will be created. If the transformation exists, it will be updated with the new attributes.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-vault/sdk/v3/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v3/go/vault/transform"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		mountTransform, err := vault.NewMount(ctx, "mountTransform", &vault.MountArgs{
			Path: pulumi.String("transform"),
			Type: pulumi.String("transform"),
		})
		if err != nil {
			return err
		}
		_, err = transform.NewTransformation(ctx, "test", &transform.TransformationArgs{
			Path:        mountTransform.Path,
			Type:        pulumi.String("fpe"),
			Template:    pulumi.String("ccn"),
			TweakSource: pulumi.String("internal"),
			AllowedRoles: pulumi.StringArray{
				pulumi.String("payments"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

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 added in v3.0.2

func (*Transformation) ElementType() reflect.Type

func (*Transformation) ToTransformationOutput added in v3.0.2

func (i *Transformation) ToTransformationOutput() TransformationOutput

func (*Transformation) ToTransformationOutputWithContext added in v3.0.2

func (i *Transformation) ToTransformationOutputWithContext(ctx context.Context) TransformationOutput

func (*Transformation) ToTransformationPtrOutput added in v3.4.1

func (i *Transformation) ToTransformationPtrOutput() TransformationPtrOutput

func (*Transformation) ToTransformationPtrOutputWithContext added in v3.4.1

func (i *Transformation) ToTransformationPtrOutputWithContext(ctx context.Context) TransformationPtrOutput

type TransformationArgs

type TransformationArgs struct {
	// The set of roles allowed to perform this transformation.
	AllowedRoles pulumi.StringArrayInput
	// The character used to replace data when in masking mode
	MaskingCharacter pulumi.StringPtrInput
	// The name of the transformation.
	Name 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 added in v3.4.1

type TransformationArray []TransformationInput

func (TransformationArray) ElementType added in v3.4.1

func (TransformationArray) ElementType() reflect.Type

func (TransformationArray) ToTransformationArrayOutput added in v3.4.1

func (i TransformationArray) ToTransformationArrayOutput() TransformationArrayOutput

func (TransformationArray) ToTransformationArrayOutputWithContext added in v3.4.1

func (i TransformationArray) ToTransformationArrayOutputWithContext(ctx context.Context) TransformationArrayOutput

type TransformationArrayInput added in v3.4.1

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 added in v3.4.1

type TransformationArrayOutput struct{ *pulumi.OutputState }

func (TransformationArrayOutput) ElementType added in v3.4.1

func (TransformationArrayOutput) ElementType() reflect.Type

func (TransformationArrayOutput) Index added in v3.4.1

func (TransformationArrayOutput) ToTransformationArrayOutput added in v3.4.1

func (o TransformationArrayOutput) ToTransformationArrayOutput() TransformationArrayOutput

func (TransformationArrayOutput) ToTransformationArrayOutputWithContext added in v3.4.1

func (o TransformationArrayOutput) ToTransformationArrayOutputWithContext(ctx context.Context) TransformationArrayOutput

type TransformationInput added in v3.0.2

type TransformationInput interface {
	pulumi.Input

	ToTransformationOutput() TransformationOutput
	ToTransformationOutputWithContext(ctx context.Context) TransformationOutput
}

type TransformationMap added in v3.4.1

type TransformationMap map[string]TransformationInput

func (TransformationMap) ElementType added in v3.4.1

func (TransformationMap) ElementType() reflect.Type

func (TransformationMap) ToTransformationMapOutput added in v3.4.1

func (i TransformationMap) ToTransformationMapOutput() TransformationMapOutput

func (TransformationMap) ToTransformationMapOutputWithContext added in v3.4.1

func (i TransformationMap) ToTransformationMapOutputWithContext(ctx context.Context) TransformationMapOutput

type TransformationMapInput added in v3.4.1

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 added in v3.4.1

type TransformationMapOutput struct{ *pulumi.OutputState }

func (TransformationMapOutput) ElementType added in v3.4.1

func (TransformationMapOutput) ElementType() reflect.Type

func (TransformationMapOutput) MapIndex added in v3.4.1

func (TransformationMapOutput) ToTransformationMapOutput added in v3.4.1

func (o TransformationMapOutput) ToTransformationMapOutput() TransformationMapOutput

func (TransformationMapOutput) ToTransformationMapOutputWithContext added in v3.4.1

func (o TransformationMapOutput) ToTransformationMapOutputWithContext(ctx context.Context) TransformationMapOutput

type TransformationOutput added in v3.0.2

type TransformationOutput struct {
	*pulumi.OutputState
}

func (TransformationOutput) ElementType added in v3.0.2

func (TransformationOutput) ElementType() reflect.Type

func (TransformationOutput) ToTransformationOutput added in v3.0.2

func (o TransformationOutput) ToTransformationOutput() TransformationOutput

func (TransformationOutput) ToTransformationOutputWithContext added in v3.0.2

func (o TransformationOutput) ToTransformationOutputWithContext(ctx context.Context) TransformationOutput

func (TransformationOutput) ToTransformationPtrOutput added in v3.4.1

func (o TransformationOutput) ToTransformationPtrOutput() TransformationPtrOutput

func (TransformationOutput) ToTransformationPtrOutputWithContext added in v3.4.1

func (o TransformationOutput) ToTransformationPtrOutputWithContext(ctx context.Context) TransformationPtrOutput

type TransformationPtrInput added in v3.4.1

type TransformationPtrInput interface {
	pulumi.Input

	ToTransformationPtrOutput() TransformationPtrOutput
	ToTransformationPtrOutputWithContext(ctx context.Context) TransformationPtrOutput
}

type TransformationPtrOutput added in v3.4.1

type TransformationPtrOutput struct {
	*pulumi.OutputState
}

func (TransformationPtrOutput) ElementType added in v3.4.1

func (TransformationPtrOutput) ElementType() reflect.Type

func (TransformationPtrOutput) ToTransformationPtrOutput added in v3.4.1

func (o TransformationPtrOutput) ToTransformationPtrOutput() TransformationPtrOutput

func (TransformationPtrOutput) ToTransformationPtrOutputWithContext added in v3.4.1

func (o TransformationPtrOutput) ToTransformationPtrOutputWithContext(ctx context.Context) TransformationPtrOutput

type TransformationState

type TransformationState struct {
	// The set of roles allowed to perform this transformation.
	AllowedRoles pulumi.StringArrayInput
	// The character used to replace data when in masking mode
	MaskingCharacter pulumi.StringPtrInput
	// The name of the transformation.
	Name 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL