Documentation
¶
Index ¶
- type Args
- type Resource
- func (aersc *Resource) Attributes() awsEcrRegistryScanningConfigurationAttributes
- func (aersc *Resource) Configuration() interface{}
- func (aersc *Resource) DependOn() terra.Reference
- func (aersc *Resource) Dependencies() terra.Dependencies
- func (aersc *Resource) ImportState(state io.Reader) error
- func (aersc *Resource) LifecycleManagement() *terra.Lifecycle
- func (aersc *Resource) LocalName() string
- func (aersc *Resource) State() (*awsEcrRegistryScanningConfigurationState, bool)
- func (aersc *Resource) StateMust() *awsEcrRegistryScanningConfigurationState
- func (aersc *Resource) Type() string
- type Rule
- type RuleAttributes
- func (r RuleAttributes) InternalRef() (terra.Reference, error)
- func (r RuleAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (r RuleAttributes) InternalWithRef(ref terra.Reference) RuleAttributes
- func (r RuleAttributes) RepositoryFilter() terra.SetValue[RuleRepositoryFilterAttributes]
- func (r RuleAttributes) ScanFrequency() terra.StringValue
- type RuleRepositoryFilter
- type RuleRepositoryFilterAttributes
- func (rf RuleRepositoryFilterAttributes) Filter() terra.StringValue
- func (rf RuleRepositoryFilterAttributes) FilterType() terra.StringValue
- func (rf RuleRepositoryFilterAttributes) InternalRef() (terra.Reference, error)
- func (rf RuleRepositoryFilterAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rf RuleRepositoryFilterAttributes) InternalWithRef(ref terra.Reference) RuleRepositoryFilterAttributes
- type RuleRepositoryFilterState
- type RuleState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // ScanType: string, required ScanType terra.StringValue `hcl:"scan_type,attr" validate:"required"` // Rule: min=0,max=100 Rule []Rule `hcl:"rule,block" validate:"min=0,max=100"` }
Args contains the configurations for aws_ecr_registry_scanning_configuration.
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 aws_ecr_registry_scanning_configuration.
func (*Resource) Attributes ¶
func (aersc *Resource) Attributes() awsEcrRegistryScanningConfigurationAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (aersc *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (aersc *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 Rule ¶
type Rule struct { // ScanFrequency: string, required ScanFrequency terra.StringValue `hcl:"scan_frequency,attr" validate:"required"` // RuleRepositoryFilter: min=1 RepositoryFilter []RuleRepositoryFilter `hcl:"repository_filter,block" validate:"min=1"` }
type RuleAttributes ¶
type RuleAttributes struct {
// contains filtered or unexported fields
}
func (RuleAttributes) InternalRef ¶
func (r RuleAttributes) InternalRef() (terra.Reference, error)
func (RuleAttributes) InternalTokens ¶
func (r RuleAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RuleAttributes) InternalWithRef ¶
func (r RuleAttributes) InternalWithRef(ref terra.Reference) RuleAttributes
func (RuleAttributes) RepositoryFilter ¶
func (r RuleAttributes) RepositoryFilter() terra.SetValue[RuleRepositoryFilterAttributes]
func (RuleAttributes) ScanFrequency ¶
func (r RuleAttributes) ScanFrequency() terra.StringValue
type RuleRepositoryFilter ¶
type RuleRepositoryFilter struct { // Filter: string, required Filter terra.StringValue `hcl:"filter,attr" validate:"required"` // FilterType: string, required FilterType terra.StringValue `hcl:"filter_type,attr" validate:"required"` }
type RuleRepositoryFilterAttributes ¶
type RuleRepositoryFilterAttributes struct {
// contains filtered or unexported fields
}
func (RuleRepositoryFilterAttributes) Filter ¶
func (rf RuleRepositoryFilterAttributes) Filter() terra.StringValue
func (RuleRepositoryFilterAttributes) FilterType ¶
func (rf RuleRepositoryFilterAttributes) FilterType() terra.StringValue
func (RuleRepositoryFilterAttributes) InternalRef ¶
func (rf RuleRepositoryFilterAttributes) InternalRef() (terra.Reference, error)
func (RuleRepositoryFilterAttributes) InternalTokens ¶
func (rf RuleRepositoryFilterAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RuleRepositoryFilterAttributes) InternalWithRef ¶
func (rf RuleRepositoryFilterAttributes) InternalWithRef(ref terra.Reference) RuleRepositoryFilterAttributes
type RuleState ¶
type RuleState struct { ScanFrequency string `json:"scan_frequency"` RepositoryFilter []RuleRepositoryFilterState `json:"repository_filter"` }
Click to show internal directories.
Click to hide internal directories.