schema

package
v1.44.1-0...-2cd6497 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MPL-2.0 Imports: 4 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

func ValidateResourceIDPriorToImportThen(idParser ResourceIDValidator, importer schema.StateContextFunc) *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