Documentation ¶
Index ¶
- type Args
- type DataArgs
- type DataSource
- type DataSourceAttributes
- func (s DataSourceAttributes) Content() terra.StringValue
- func (s DataSourceAttributes) Filename() terra.StringValue
- func (s DataSourceAttributes) InternalRef() (terra.Reference, error)
- func (s DataSourceAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (s DataSourceAttributes) InternalWithRef(ref terra.Reference) DataSourceAttributes
- type DataSourceState
- type Resource
- func (af *Resource) Attributes() archiveFileAttributes
- func (af *Resource) Configuration() interface{}
- func (af *Resource) DependOn() terra.Reference
- func (af *Resource) Dependencies() terra.Dependencies
- func (af *Resource) ImportState(state io.Reader) error
- func (af *Resource) LifecycleManagement() *terra.Lifecycle
- func (af *Resource) LocalName() string
- func (af *Resource) State() (*archiveFileState, bool)
- func (af *Resource) StateMust() *archiveFileState
- func (af *Resource) Type() string
- type Source
- type SourceAttributes
- func (s SourceAttributes) Content() terra.StringValue
- func (s SourceAttributes) Filename() terra.StringValue
- func (s SourceAttributes) InternalRef() (terra.Reference, error)
- func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes
- type SourceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // ExcludeSymlinkDirectories: bool, optional ExcludeSymlinkDirectories terra.BoolValue `hcl:"exclude_symlink_directories,attr"` // Excludes: set of string, optional Excludes terra.SetValue[terra.StringValue] `hcl:"excludes,attr"` // OutputFileMode: string, optional OutputFileMode terra.StringValue `hcl:"output_file_mode,attr"` // OutputPath: string, required OutputPath terra.StringValue `hcl:"output_path,attr" validate:"required"` // SourceContent: string, optional SourceContent terra.StringValue `hcl:"source_content,attr"` // SourceContentFilename: string, optional SourceContentFilename terra.StringValue `hcl:"source_content_filename,attr"` // SourceDir: string, optional SourceDir terra.StringValue `hcl:"source_dir,attr"` // SourceFile: string, optional SourceFile terra.StringValue `hcl:"source_file,attr"` // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` // Source: min=0 Source []Source `hcl:"source,block" validate:"min=0"` }
Args contains the configurations for archive_file.
type DataArgs ¶
type DataArgs struct { // ExcludeSymlinkDirectories: bool, optional ExcludeSymlinkDirectories terra.BoolValue `hcl:"exclude_symlink_directories,attr"` // Excludes: set of string, optional Excludes terra.SetValue[terra.StringValue] `hcl:"excludes,attr"` // OutputFileMode: string, optional OutputFileMode terra.StringValue `hcl:"output_file_mode,attr"` // OutputPath: string, required OutputPath terra.StringValue `hcl:"output_path,attr" validate:"required"` // SourceContent: string, optional SourceContent terra.StringValue `hcl:"source_content,attr"` // SourceContentFilename: string, optional SourceContentFilename terra.StringValue `hcl:"source_content_filename,attr"` // SourceDir: string, optional SourceDir terra.StringValue `hcl:"source_dir,attr"` // SourceFile: string, optional SourceFile terra.StringValue `hcl:"source_file,attr"` // Type: string, required Type terra.StringValue `hcl:"type,attr" validate:"required"` // Source: min=0 Source []DataSource `hcl:"source,block" validate:"min=0"` }
DataArgs contains the configurations for archive_file.
type DataSource ¶
type DataSource struct { // Content: string, required Content terra.StringValue `hcl:"content,attr" validate:"required"` // Filename: string, required Filename terra.StringValue `hcl:"filename,attr" validate:"required"` }
func Data ¶
Data creates a new instance of DataSource.
func (*DataSource) Attributes ¶
func (af *DataSource) Attributes() dataArchiveFileAttributes
Attributes returns the attributes for DataSource.
func (*DataSource) Configuration ¶
func (af *DataSource) Configuration() interface{}
Configuration returns the configuration (args) for DataSource.
func (*DataSource) DataSource ¶
func (af *DataSource) DataSource() string
DataSource returns the Terraform object type for DataSource.
func (*DataSource) LocalName ¶
func (af *DataSource) LocalName() string
LocalName returns the local name for DataSource.
type DataSourceAttributes ¶
type DataSourceAttributes struct {
// contains filtered or unexported fields
}
func (DataSourceAttributes) Content ¶
func (s DataSourceAttributes) Content() terra.StringValue
func (DataSourceAttributes) Filename ¶
func (s DataSourceAttributes) Filename() terra.StringValue
func (DataSourceAttributes) InternalRef ¶
func (s DataSourceAttributes) InternalRef() (terra.Reference, error)
func (DataSourceAttributes) InternalTokens ¶
func (s DataSourceAttributes) InternalTokens() (hclwrite.Tokens, error)
func (DataSourceAttributes) InternalWithRef ¶
func (s DataSourceAttributes) InternalWithRef(ref terra.Reference) DataSourceAttributes
type DataSourceState ¶
type Resource ¶
type Resource struct { Name string Args Args DependsOn terra.Dependencies Lifecycle *terra.Lifecycle // contains filtered or unexported fields }
Resource represents the Terraform resource archive_file.
func (*Resource) Attributes ¶
func (af *Resource) Attributes() archiveFileAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (af *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (af *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block for Resource.
type Source ¶
type Source struct { // Content: string, required Content terra.StringValue `hcl:"content,attr" validate:"required"` // Filename: string, required Filename terra.StringValue `hcl:"filename,attr" validate:"required"` }
type SourceAttributes ¶
type SourceAttributes struct {
// contains filtered or unexported fields
}
func (SourceAttributes) Content ¶
func (s SourceAttributes) Content() terra.StringValue
func (SourceAttributes) Filename ¶
func (s SourceAttributes) Filename() terra.StringValue
func (SourceAttributes) InternalRef ¶
func (s SourceAttributes) InternalRef() (terra.Reference, error)
func (SourceAttributes) InternalTokens ¶
func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SourceAttributes) InternalWithRef ¶
func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes