Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
func (Emitter) EmitRootPropertiesSchema ¶
func (e Emitter) EmitRootPropertiesSchema(tfType string, attributeNameMap map[string]string) (Features, error)
EmitRootPropertiesSchema generates the Terraform Plugin SDK code for a CloudFormation root schema and emits the generated code to the emitter's Writer. Code features are returned. The root schema is the map of root property names to Attributes.
type Features ¶
type Features struct { HasRequiredRootProperty bool // At least one root property is required. HasUpdatableProperty bool // At least one property can be updated. HasValidator bool // At least one validator. UsesFrameworkTypes bool // Uses a type from the terraform-plugin-framework/types package. UsesFrameworkJSONTypes bool // Uses a type from the terraform-plugin-framework-jsontypes/jsontypes package. UsesFrameworkTimeTypes bool // Uses a type from the terraform-plugin-framework-timetypes/timetypes package. UsesInternalDefaultsPackage bool // Uses a function from the internal/defaults package. UsesRegexpInValidation bool // Uses a type from the Go standard regexp package for attribute validation. FrameworkDefaultsPackages []string // Package names for any terraform-plugin-framework/resource/schema default values. May contain duplicates. FrameworkPlanModifierPackages []string // Package names for any terraform-plugin-framework plan modifiers. May contain duplicates. FrameworkValidatorsPackages []string // Package names for any terraform-plugin-framework-validators validators. May contain duplicates. }
Features of the emitted code.
Click to show internal directories.
Click to hide internal directories.