tpgdclresource

package
v0.0.0-...-0d862b9 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0, MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CreateDirective restricts Apply to creating resources for Create
	CreateDirective = []dcl.ApplyOption{
		dcl.WithLifecycleParam(dcl.BlockAcquire),
		dcl.WithLifecycleParam(dcl.BlockDestruction),
		dcl.WithLifecycleParam(dcl.BlockModification),
	}

	// UpdateDirective restricts Apply to modifying resources for Update
	UpdateDirective = []dcl.ApplyOption{
		dcl.WithLifecycleParam(dcl.BlockCreation),
		dcl.WithLifecycleParam(dcl.BlockDestruction),
	}
)

Functions

func ExpandEnumBool

func ExpandEnumBool(v interface{}) *bool

Returns the DCL representation of a three-state boolean value represented by a string in terraform.

func ExpandIntegerArray

func ExpandIntegerArray(v interface{}) []int64

func ExpandStringArray

func ExpandStringArray(v interface{}) []string

func FlattenEnumBool

func FlattenEnumBool(v interface{}) string

Returns the terraform representation of a three-state boolean value represented by a pointer to bool in DCL.

func HandleNotFoundDCLError

func HandleNotFoundDCLError(err error, d *schema.ResourceData, resourceName string) error

func OldValue

func OldValue(old, new interface{}) interface{}

func ResourceContainerAwsNodePoolCustomizeDiffFunc

func ResourceContainerAwsNodePoolCustomizeDiffFunc(_ context.Context, diff *schema.ResourceDiff, meta interface{}) error

func ResourceOrgPolicyPolicyCustomImport

func ResourceOrgPolicyPolicyCustomImport(d *schema.ResourceData, meta interface{}) error

OrgPolicyPolicy has a custom import method because the parent field needs to allow an additional forward slash to represent the type of parent (e.g. projects/{project_id}).

Types

This section is empty.

Jump to

Keyboard shortcuts

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