Documentation
¶
Index ¶
- func CopyValueAtPath(ctx context.Context, dst, src *tfsdk.State, path *tftypes.AttributePath) error
- func DesiredStateErrorDiag(source string, err error) *tfprotov6.Diagnostic
- func GetCloudFormationResourceDescriptionsValue(id string, descriptions []cftypes.ResourceDescription) tftypes.Value
- func NewPluralDataSourceType(_ context.Context, optFns ...DataSourceTypeOptionsFunc) (tfsdk.DataSourceType, error)
- func NewResourceType(_ context.Context, optFns ...ResourceTypeOptionsFunc) (tfsdk.ResourceType, error)
- func ResourceIdentifierNotFoundDiag(err error) *tfprotov6.Diagnostic
- func ResourceIdentifierNotSetDiag(err error) *tfprotov6.Diagnostic
- func ResourceNotFoundAfterCreationDiag(err error) *tfprotov6.Diagnostic
- func ResourceNotFoundWarningDiag(err error) *tfprotov6.Diagnostic
- func ServiceOperationEmptyResultDiag(service string, operation string) *tfprotov6.Diagnostic
- func ServiceOperationErrorDiag(service string, operation string, err error) *tfprotov6.Diagnostic
- func ServiceOperationWaiterErrorDiag(service string, operation string, err error) *tfprotov6.Diagnostic
- func Unknowns(ctx context.Context, val tftypes.Value, tfToCfNameMap map[string]string) (unknowns, error)
- type DataSourceType
- type DataSourceTypeOptions
- type DataSourceTypeOptionsFunc
- type PluralDataSourceType
- func (pdt *PluralDataSourceType) GetSchema(ctx context.Context) (tfsdk.Schema, []*tfprotov6.Diagnostic)
- func (pdt *PluralDataSourceType) New(dst *DataSourceType) *PluralDataSourceType
- func (pdt *PluralDataSourceType) NewDataSource(ctx context.Context, provider tfsdk.Provider) (tfsdk.DataSource, []*tfprotov6.Diagnostic)
- type ResourceTypeOptions
- func (opts ResourceTypeOptions) IsImmutableType(v bool) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithAttributeNameMap(v map[string]string) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithCloudFormationTypeName(v string) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithCreateTimeoutInMinutes(v int) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithDeleteTimeoutInMinutes(v int) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithRequiredAttributesValidators(v ...validate.RequiredAttributesFunc) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithSyntheticIDAttribute(v bool) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithTerraformSchema(v tfsdk.Schema) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithTerraformTypeName(v string) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithUpdateTimeoutInMinutes(v int) ResourceTypeOptions
- func (opts ResourceTypeOptions) WithWriteOnlyPropertyPaths(v []string) ResourceTypeOptions
- type ResourceTypeOptionsFunc
- func IsImmutableType(v bool) ResourceTypeOptionsFunc
- func WithAttributeNameMap(v map[string]string) ResourceTypeOptionsFunc
- func WithCloudFormationTypeName(v string) ResourceTypeOptionsFunc
- func WithCreateTimeoutInMinutes(v int) ResourceTypeOptionsFunc
- func WithDeleteTimeoutInMinutes(v int) ResourceTypeOptionsFunc
- func WithRequiredAttributesValidators(fs ...validate.RequiredAttributesFunc) ResourceTypeOptionsFunc
- func WithSyntheticIDAttribute(v bool) ResourceTypeOptionsFunc
- func WithTerraformSchema(v tfsdk.Schema) ResourceTypeOptionsFunc
- func WithTerraformTypeName(v string) ResourceTypeOptionsFunc
- func WithUpdateTimeoutInMinutes(v int) ResourceTypeOptionsFunc
- func WithWriteOnlyPropertyPaths(v []string) ResourceTypeOptionsFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyValueAtPath ¶
CopyValueAtPath copies the value at a specified path from source State to destination State.
func DesiredStateErrorDiag ¶
func DesiredStateErrorDiag(source string, err error) *tfprotov6.Diagnostic
func GetCloudFormationResourceDescriptionsValue ¶ added in v0.0.6
func GetCloudFormationResourceDescriptionsValue(id string, descriptions []cftypes.ResourceDescription) tftypes.Value
GetCloudFormationResourceDescriptionsValue returns the Terraform Value for the specified CloudFormation ResourceDescriptions.
func NewPluralDataSourceType ¶ added in v0.0.6
func NewPluralDataSourceType(_ context.Context, optFns ...DataSourceTypeOptionsFunc) (tfsdk.DataSourceType, error)
NewPluralDataSourceType returns a new PluralDataSourceType from the specified variadic list of functional options. It's public as it's called from generated code.
func NewResourceType ¶
func NewResourceType(_ context.Context, optFns ...ResourceTypeOptionsFunc) (tfsdk.ResourceType, error)
NewResourceType returns a new ResourceType from the specified varidaic list of functional options. It's public as it's called from generated code.
func ResourceIdentifierNotFoundDiag ¶
func ResourceIdentifierNotFoundDiag(err error) *tfprotov6.Diagnostic
func ResourceIdentifierNotSetDiag ¶
func ResourceIdentifierNotSetDiag(err error) *tfprotov6.Diagnostic
func ResourceNotFoundAfterCreationDiag ¶
func ResourceNotFoundAfterCreationDiag(err error) *tfprotov6.Diagnostic
func ResourceNotFoundWarningDiag ¶
func ResourceNotFoundWarningDiag(err error) *tfprotov6.Diagnostic
func ServiceOperationEmptyResultDiag ¶
func ServiceOperationEmptyResultDiag(service string, operation string) *tfprotov6.Diagnostic
func ServiceOperationErrorDiag ¶
func ServiceOperationErrorDiag(service string, operation string, err error) *tfprotov6.Diagnostic
func ServiceOperationWaiterErrorDiag ¶
func ServiceOperationWaiterErrorDiag(service string, operation string, err error) *tfprotov6.Diagnostic
Types ¶
type DataSourceType ¶ added in v0.0.6
type DataSourceType struct {
// contains filtered or unexported fields
}
DataSourceType implements tfsdk.DataSourceType
type DataSourceTypeOptions ¶ added in v0.0.6
type DataSourceTypeOptions []DataSourceTypeOptionsFunc
func (DataSourceTypeOptions) FromCloudFormationAndTerraform ¶ added in v0.0.6
func (opts DataSourceTypeOptions) FromCloudFormationAndTerraform(cfTypeName, tfTypeName string, schema tfsdk.Schema) DataSourceTypeOptions
type DataSourceTypeOptionsFunc ¶ added in v0.0.6
type DataSourceTypeOptionsFunc func(*DataSourceType) error
DataSourceTypeOptionsFunc is a type alias for a DataSource type functional option.
func FromCloudFormationAndTerraform ¶ added in v0.0.6
func FromCloudFormationAndTerraform(cfTypeName, tfTypeName string, schema tfsdk.Schema) DataSourceTypeOptionsFunc
type PluralDataSourceType ¶ added in v0.0.6
type PluralDataSourceType DataSourceType
func (*PluralDataSourceType) GetSchema ¶ added in v0.0.6
func (pdt *PluralDataSourceType) GetSchema(ctx context.Context) (tfsdk.Schema, []*tfprotov6.Diagnostic)
func (*PluralDataSourceType) New ¶ added in v0.0.6
func (pdt *PluralDataSourceType) New(dst *DataSourceType) *PluralDataSourceType
func (*PluralDataSourceType) NewDataSource ¶ added in v0.0.6
func (pdt *PluralDataSourceType) NewDataSource(ctx context.Context, provider tfsdk.Provider) (tfsdk.DataSource, []*tfprotov6.Diagnostic)
type ResourceTypeOptions ¶
type ResourceTypeOptions []ResourceTypeOptionsFunc
ResourceTypeOptions is a type alias for a slice of resource type functional options.
func (ResourceTypeOptions) IsImmutableType ¶
func (opts ResourceTypeOptions) IsImmutableType(v bool) ResourceTypeOptions
IsImmutableType is a helper function to construct functional options that set a resource type's Terraform immutability flag, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithAttributeNameMap ¶ added in v0.0.5
func (opts ResourceTypeOptions) WithAttributeNameMap(v map[string]string) ResourceTypeOptions
WithAttributeNameMap is a helper function to construct functional options that set a resource type's attribute name map, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithCloudFormationTypeName ¶
func (opts ResourceTypeOptions) WithCloudFormationTypeName(v string) ResourceTypeOptions
WithCloudFormationTypeName is a helper function to construct functional options that set a resource type's CloudFormation type name, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithCreateTimeoutInMinutes ¶
func (opts ResourceTypeOptions) WithCreateTimeoutInMinutes(v int) ResourceTypeOptions
WithCreateTimeoutInMinutes is a helper function to construct functional options that set a resource type's create timeout, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithDeleteTimeoutInMinutes ¶
func (opts ResourceTypeOptions) WithDeleteTimeoutInMinutes(v int) ResourceTypeOptions
WithDeleteTimeoutInMinutes is a helper function to construct functional options that set a resource type's delete timeout, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithRequiredAttributesValidators ¶ added in v0.0.5
func (opts ResourceTypeOptions) WithRequiredAttributesValidators(v ...validate.RequiredAttributesFunc) ResourceTypeOptions
WithRequiredAttributesValidator is a helper function to construct functional options that set a resource type's required attribyte validator, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithSyntheticIDAttribute ¶ added in v0.0.5
func (opts ResourceTypeOptions) WithSyntheticIDAttribute(v bool) ResourceTypeOptions
WithSyntheticIDAttribute is a helper function to construct functional options that set a resource type's synthetic ID attribute flag, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithTerraformSchema ¶
func (opts ResourceTypeOptions) WithTerraformSchema(v tfsdk.Schema) ResourceTypeOptions
WithTerraformSchema is a helper function to construct functional options that set a resource type's Terraform schema, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithTerraformTypeName ¶
func (opts ResourceTypeOptions) WithTerraformTypeName(v string) ResourceTypeOptions
WithTerraformTypeName is a helper function to construct functional options that set a resource type's Terraform type name, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithUpdateTimeoutInMinutes ¶
func (opts ResourceTypeOptions) WithUpdateTimeoutInMinutes(v int) ResourceTypeOptions
WithUpdateTimeoutInMinutes is a helper function to construct functional options that set a resource type's update timeout, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
func (ResourceTypeOptions) WithWriteOnlyPropertyPaths ¶
func (opts ResourceTypeOptions) WithWriteOnlyPropertyPaths(v []string) ResourceTypeOptions
WithWriteOnlyPropertyPaths is a helper function to construct functional options that set a resource type's write-only property paths, append that function to the current slice of functional options and return the new slice of options. It is intended to be chained with other similar helper functions in a builder pattern.
type ResourceTypeOptionsFunc ¶
type ResourceTypeOptionsFunc func(*resourceType) error
ResourceTypeOptionsFunc is a type alias for a resource type functional option.
func IsImmutableType ¶
func IsImmutableType(v bool) ResourceTypeOptionsFunc
IsImmutableType is a helper function to construct functional options that set a resource type's immutability flag. If multiple IsImmutableType calls are made, the last call overrides the previous calls' values.
func WithAttributeNameMap ¶ added in v0.0.5
func WithAttributeNameMap(v map[string]string) ResourceTypeOptionsFunc
WithAttributeNameMap is a helper function to construct functional options that set a resource type's attribute name maps. If multiple WithAttributeNameMap calls are made, the last call overrides the previous calls' values.
func WithCloudFormationTypeName ¶
func WithCloudFormationTypeName(v string) ResourceTypeOptionsFunc
WithCloudFormationTypeName is a helper function to construct functional options that set a resource type's CloudFormation type name. If multiple WithCloudFormationTypeName calls are made, the last call overrides the previous calls' values.
func WithCreateTimeoutInMinutes ¶
func WithCreateTimeoutInMinutes(v int) ResourceTypeOptionsFunc
WithCreateTimeoutInMinutes is a helper function to construct functional options that set a resource type's create timeout (in minutes). If multiple WithCreateTimeoutInMinutes calls are made, the last call overrides the previous calls' values.
func WithDeleteTimeoutInMinutes ¶
func WithDeleteTimeoutInMinutes(v int) ResourceTypeOptionsFunc
WithDeleteTimeoutInMinutes is a helper function to construct functional options that set a resource type's delete timeout (in minutes). If multiple WithDeleteTimeoutInMinutes calls are made, the last call overrides the previous calls' values.
func WithRequiredAttributesValidators ¶ added in v0.0.5
func WithRequiredAttributesValidators(fs ...validate.RequiredAttributesFunc) ResourceTypeOptionsFunc
WithRequiredAttributesValidators is a helper function to construct functional options that set a resource type's required attributes validators. If multiple WithDeleteTimeoutInMinutes calls are made, the last call overrides the previous calls' values.
func WithSyntheticIDAttribute ¶ added in v0.0.5
func WithSyntheticIDAttribute(v bool) ResourceTypeOptionsFunc
WithSyntheticIDAttribute is a helper function to construct functional options that set a resource type's synthetic ID attribute flag. If multiple WithSyntheticIDAttribute calls are made, the last call overrides the previous calls' values.
func WithTerraformSchema ¶
func WithTerraformSchema(v tfsdk.Schema) ResourceTypeOptionsFunc
WithTerraformSchema is a helper function to construct functional options that set a resource type's Terraform schema. If multiple WithTerraformSchema calls are made, the last call overrides the previous calls' values.
func WithTerraformTypeName ¶
func WithTerraformTypeName(v string) ResourceTypeOptionsFunc
WithTerraformTypeName is a helper function to construct functional options that set a resource type's Terraform type name. If multiple WithTerraformTypeName calls are made, the last call overrides the previous calls' values.
func WithUpdateTimeoutInMinutes ¶
func WithUpdateTimeoutInMinutes(v int) ResourceTypeOptionsFunc
WithUpdateTimeoutInMinutes is a helper function to construct functional options that set a resource type's update timeout (in minutes). If multiple WithUpdateTimeoutInMinutes calls are made, the last call overrides the previous calls' values.
func WithWriteOnlyPropertyPaths ¶
func WithWriteOnlyPropertyPaths(v []string) ResourceTypeOptionsFunc
WithWriteOnlyPropertyPaths is a helper function to construct functional options that set a resource type's write-only property paths (JSON Pointer). If multiple WithWriteOnlyPropertyPaths calls are made, the last call overrides the previous calls' values.