schema

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateResourceIDPriorToImport

func ValidateResourceIDPriorToImport(idParser ResourceIDValidator) *schema.ResourceImporter

ValidateResourceIDPriorToImport parses the Resource ID to confirm it's valid for this Resource prior to performing an import - allowing for incorrect Resource ID's to be caught prior to Import and subsequent crashes

func ValidateResourceIDPriorToImportThen added in v1.43.0

func ValidateResourceIDPriorToImportThen(idParser ResourceIDValidator, importer schema.StateFunc) *schema.ResourceImporter

ValidateResourceIDPriorToImportThen parses the Resource ID to confirm it's valid for this Resource prior to calling the importer - allowing for incorrect Resource ID's to be caught prior to Import and subsequent crashes

Types

type ResourceIDValidator

type ResourceIDValidator func(resourceId string) error

ResourceIDValidator takes a Resource ID and confirms that it's Valid

Jump to

Keyboard shortcuts

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