transform

package
v4.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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/v4/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v4/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, "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

func (*Alphabet) ElementType() reflect.Type

func (*Alphabet) ToAlphabetOutput

func (i *Alphabet) ToAlphabetOutput() AlphabetOutput

func (*Alphabet) ToAlphabetOutputWithContext

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

func (*Alphabet) ToAlphabetPtrOutput

func (i *Alphabet) ToAlphabetPtrOutput() AlphabetPtrOutput

func (*Alphabet) ToAlphabetPtrOutputWithContext

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

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 (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 (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) ElementType

func (AlphabetOutput) ElementType() reflect.Type

func (AlphabetOutput) ToAlphabetOutput

func (o AlphabetOutput) ToAlphabetOutput() AlphabetOutput

func (AlphabetOutput) ToAlphabetOutputWithContext

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

func (AlphabetOutput) ToAlphabetPtrOutput

func (o AlphabetOutput) ToAlphabetPtrOutput() AlphabetPtrOutput

func (AlphabetOutput) ToAlphabetPtrOutputWithContext

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

type AlphabetPtrInput

type AlphabetPtrInput interface {
	pulumi.Input

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

type AlphabetPtrOutput

type AlphabetPtrOutput struct{ *pulumi.OutputState }

func (AlphabetPtrOutput) Elem added in v4.6.0

func (AlphabetPtrOutput) ElementType

func (AlphabetPtrOutput) ElementType() reflect.Type

func (AlphabetPtrOutput) ToAlphabetPtrOutput

func (o AlphabetPtrOutput) ToAlphabetPtrOutput() AlphabetPtrOutput

func (AlphabetPtrOutput) ToAlphabetPtrOutputWithContext

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 GetDecodeOutputArgs added in v4.6.0

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.MapArrayInput `pulumi:"batchInputs"`
	// The result of decoding a batch.
	BatchResults pulumi.MapArrayInput `pulumi:"batchResults"`
	// The result of decoding a value.
	DecodedValue pulumi.StringPtrInput `pulumi:"decodedValue"`
	// 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 added in v4.6.0

func (GetDecodeOutputArgs) ElementType() reflect.Type

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 GetDecodeResultOutput added in v4.6.0

type GetDecodeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDecode.

func GetDecodeOutput added in v4.6.0

func GetDecodeOutput(ctx *pulumi.Context, args GetDecodeOutputArgs, opts ...pulumi.InvokeOption) GetDecodeResultOutput

func (GetDecodeResultOutput) BatchInputs added in v4.6.0

func (GetDecodeResultOutput) BatchResults added in v4.6.0

func (o GetDecodeResultOutput) BatchResults() pulumi.MapArrayOutput

func (GetDecodeResultOutput) DecodedValue added in v4.6.0

func (o GetDecodeResultOutput) DecodedValue() pulumi.StringOutput

func (GetDecodeResultOutput) ElementType added in v4.6.0

func (GetDecodeResultOutput) ElementType() reflect.Type

func (GetDecodeResultOutput) Id added in v4.6.0

The provider-assigned unique ID for this managed resource.

func (GetDecodeResultOutput) Path added in v4.6.0

func (GetDecodeResultOutput) RoleName added in v4.6.0

func (GetDecodeResultOutput) ToGetDecodeResultOutput added in v4.6.0

func (o GetDecodeResultOutput) ToGetDecodeResultOutput() GetDecodeResultOutput

func (GetDecodeResultOutput) ToGetDecodeResultOutputWithContext added in v4.6.0

func (o GetDecodeResultOutput) ToGetDecodeResultOutputWithContext(ctx context.Context) GetDecodeResultOutput

func (GetDecodeResultOutput) Transformation added in v4.6.0

func (o GetDecodeResultOutput) Transformation() pulumi.StringPtrOutput

func (GetDecodeResultOutput) Tweak added in v4.6.0

func (GetDecodeResultOutput) Value added in v4.6.0

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 GetEncodeOutputArgs added in v4.6.0

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.MapArrayInput `pulumi:"batchInputs"`
	// The result of encoding a batch.
	BatchResults pulumi.MapArrayInput `pulumi:"batchResults"`
	// The result of encoding a value.
	EncodedValue pulumi.StringPtrInput `pulumi:"encodedValue"`
	// 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 added in v4.6.0

func (GetEncodeOutputArgs) ElementType() reflect.Type

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 GetEncodeResultOutput added in v4.6.0

type GetEncodeResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEncode.

func GetEncodeOutput added in v4.6.0

func GetEncodeOutput(ctx *pulumi.Context, args GetEncodeOutputArgs, opts ...pulumi.InvokeOption) GetEncodeResultOutput

func (GetEncodeResultOutput) BatchInputs added in v4.6.0

func (GetEncodeResultOutput) BatchResults added in v4.6.0

func (o GetEncodeResultOutput) BatchResults() pulumi.MapArrayOutput

func (GetEncodeResultOutput) ElementType added in v4.6.0

func (GetEncodeResultOutput) ElementType() reflect.Type

func (GetEncodeResultOutput) EncodedValue added in v4.6.0

func (o GetEncodeResultOutput) EncodedValue() pulumi.StringOutput

func (GetEncodeResultOutput) Id added in v4.6.0

The provider-assigned unique ID for this managed resource.

func (GetEncodeResultOutput) Path added in v4.6.0

func (GetEncodeResultOutput) RoleName added in v4.6.0

func (GetEncodeResultOutput) ToGetEncodeResultOutput added in v4.6.0

func (o GetEncodeResultOutput) ToGetEncodeResultOutput() GetEncodeResultOutput

func (GetEncodeResultOutput) ToGetEncodeResultOutputWithContext added in v4.6.0

func (o GetEncodeResultOutput) ToGetEncodeResultOutputWithContext(ctx context.Context) GetEncodeResultOutput

func (GetEncodeResultOutput) Transformation added in v4.6.0

func (o GetEncodeResultOutput) Transformation() pulumi.StringPtrOutput

func (GetEncodeResultOutput) Tweak added in v4.6.0

func (GetEncodeResultOutput) Value added in v4.6.0

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/v4/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v4/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, "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

func (*Role) ElementType() reflect.Type

func (*Role) ToRoleOutput

func (i *Role) ToRoleOutput() RoleOutput

func (*Role) ToRoleOutputWithContext

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

func (*Role) ToRolePtrOutput

func (i *Role) ToRolePtrOutput() RolePtrOutput

func (*Role) ToRolePtrOutputWithContext

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

type RoleArray []RoleInput

func (RoleArray) ElementType

func (RoleArray) ElementType() reflect.Type

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 (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

type RoleMap map[string]RoleInput

func (RoleMap) ElementType

func (RoleMap) ElementType() reflect.Type

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 (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) ToRoleOutput

func (o RoleOutput) ToRoleOutput() RoleOutput

func (RoleOutput) ToRoleOutputWithContext

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

func (RoleOutput) ToRolePtrOutput

func (o RoleOutput) ToRolePtrOutput() RolePtrOutput

func (RoleOutput) ToRolePtrOutputWithContext

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

type RolePtrInput

type RolePtrInput interface {
	pulumi.Input

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

type RolePtrOutput

type RolePtrOutput struct{ *pulumi.OutputState }

func (RolePtrOutput) Elem added in v4.6.0

func (o RolePtrOutput) Elem() RoleOutput

func (RolePtrOutput) ElementType

func (RolePtrOutput) ElementType() reflect.Type

func (RolePtrOutput) ToRolePtrOutput

func (o RolePtrOutput) ToRolePtrOutput() RolePtrOutput

func (RolePtrOutput) ToRolePtrOutputWithContext

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

func (*Template) ElementType() reflect.Type

func (*Template) ToTemplateOutput

func (i *Template) ToTemplateOutput() TemplateOutput

func (*Template) ToTemplateOutputWithContext

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

func (*Template) ToTemplatePtrOutput

func (i *Template) ToTemplatePtrOutput() TemplatePtrOutput

func (*Template) ToTemplatePtrOutputWithContext

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

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 (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 (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) ElementType

func (TemplateOutput) ElementType() reflect.Type

func (TemplateOutput) ToTemplateOutput

func (o TemplateOutput) ToTemplateOutput() TemplateOutput

func (TemplateOutput) ToTemplateOutputWithContext

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

func (TemplateOutput) ToTemplatePtrOutput

func (o TemplateOutput) ToTemplatePtrOutput() TemplatePtrOutput

func (TemplateOutput) ToTemplatePtrOutputWithContext

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

type TemplatePtrInput

type TemplatePtrInput interface {
	pulumi.Input

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

type TemplatePtrOutput

type TemplatePtrOutput struct{ *pulumi.OutputState }

func (TemplatePtrOutput) Elem added in v4.6.0

func (TemplatePtrOutput) ElementType

func (TemplatePtrOutput) ElementType() reflect.Type

func (TemplatePtrOutput) ToTemplatePtrOutput

func (o TemplatePtrOutput) ToTemplatePtrOutput() TemplatePtrOutput

func (TemplatePtrOutput) ToTemplatePtrOutputWithContext

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/v4/go/vault"
"github.com/pulumi/pulumi-vault/sdk/v4/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, "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

func (*Transformation) ElementType() reflect.Type

func (*Transformation) ToTransformationOutput

func (i *Transformation) ToTransformationOutput() TransformationOutput

func (*Transformation) ToTransformationOutputWithContext

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

func (*Transformation) ToTransformationPtrOutput

func (i *Transformation) ToTransformationPtrOutput() TransformationPtrOutput

func (*Transformation) ToTransformationPtrOutputWithContext

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

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 (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 (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) ElementType

func (TransformationOutput) ElementType() reflect.Type

func (TransformationOutput) ToTransformationOutput

func (o TransformationOutput) ToTransformationOutput() TransformationOutput

func (TransformationOutput) ToTransformationOutputWithContext

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

func (TransformationOutput) ToTransformationPtrOutput

func (o TransformationOutput) ToTransformationPtrOutput() TransformationPtrOutput

func (TransformationOutput) ToTransformationPtrOutputWithContext

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

type TransformationPtrInput

type TransformationPtrInput interface {
	pulumi.Input

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

type TransformationPtrOutput

type TransformationPtrOutput struct{ *pulumi.OutputState }

func (TransformationPtrOutput) Elem added in v4.6.0

func (TransformationPtrOutput) ElementType

func (TransformationPtrOutput) ElementType() reflect.Type

func (TransformationPtrOutput) ToTransformationPtrOutput

func (o TransformationPtrOutput) ToTransformationPtrOutput() TransformationPtrOutput

func (TransformationPtrOutput) ToTransformationPtrOutputWithContext

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