Documentation ¶
Index ¶
- type Args
- type Resource
- func (accr *Resource) Attributes() awsConfigConfigRuleAttributes
- func (accr *Resource) Configuration() interface{}
- func (accr *Resource) DependOn() terra.Reference
- func (accr *Resource) Dependencies() terra.Dependencies
- func (accr *Resource) ImportState(state io.Reader) error
- func (accr *Resource) LifecycleManagement() *terra.Lifecycle
- func (accr *Resource) LocalName() string
- func (accr *Resource) State() (*awsConfigConfigRuleState, bool)
- func (accr *Resource) StateMust() *awsConfigConfigRuleState
- func (accr *Resource) Type() string
- type Scope
- type ScopeAttributes
- func (s ScopeAttributes) ComplianceResourceId() terra.StringValue
- func (s ScopeAttributes) ComplianceResourceTypes() terra.SetValue[terra.StringValue]
- func (s ScopeAttributes) InternalRef() (terra.Reference, error)
- func (s ScopeAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (s ScopeAttributes) InternalWithRef(ref terra.Reference) ScopeAttributes
- func (s ScopeAttributes) TagKey() terra.StringValue
- func (s ScopeAttributes) TagValue() terra.StringValue
- type ScopeState
- type Source
- type SourceAttributes
- func (s SourceAttributes) CustomPolicyDetails() terra.ListValue[SourceCustomPolicyDetailsAttributes]
- func (s SourceAttributes) InternalRef() (terra.Reference, error)
- func (s SourceAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (s SourceAttributes) InternalWithRef(ref terra.Reference) SourceAttributes
- func (s SourceAttributes) Owner() terra.StringValue
- func (s SourceAttributes) SourceDetail() terra.SetValue[SourceSourceDetailAttributes]
- func (s SourceAttributes) SourceIdentifier() terra.StringValue
- type SourceCustomPolicyDetails
- type SourceCustomPolicyDetailsAttributes
- func (cpd SourceCustomPolicyDetailsAttributes) EnableDebugLogDelivery() terra.BoolValue
- func (cpd SourceCustomPolicyDetailsAttributes) InternalRef() (terra.Reference, error)
- func (cpd SourceCustomPolicyDetailsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (cpd SourceCustomPolicyDetailsAttributes) InternalWithRef(ref terra.Reference) SourceCustomPolicyDetailsAttributes
- func (cpd SourceCustomPolicyDetailsAttributes) PolicyRuntime() terra.StringValue
- func (cpd SourceCustomPolicyDetailsAttributes) PolicyText() terra.StringValue
- type SourceCustomPolicyDetailsState
- type SourceSourceDetail
- type SourceSourceDetailAttributes
- func (sd SourceSourceDetailAttributes) EventSource() terra.StringValue
- func (sd SourceSourceDetailAttributes) InternalRef() (terra.Reference, error)
- func (sd SourceSourceDetailAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (sd SourceSourceDetailAttributes) InternalWithRef(ref terra.Reference) SourceSourceDetailAttributes
- func (sd SourceSourceDetailAttributes) MaximumExecutionFrequency() terra.StringValue
- func (sd SourceSourceDetailAttributes) MessageType() terra.StringValue
- type SourceSourceDetailState
- type SourceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { // Description: string, optional Description terra.StringValue `hcl:"description,attr"` // Id: string, optional Id terra.StringValue `hcl:"id,attr"` // InputParameters: string, optional InputParameters terra.StringValue `hcl:"input_parameters,attr"` // MaximumExecutionFrequency: string, optional MaximumExecutionFrequency terra.StringValue `hcl:"maximum_execution_frequency,attr"` // Name: string, required Name terra.StringValue `hcl:"name,attr" validate:"required"` // Tags: map of string, optional Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"` // TagsAll: map of string, optional TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"` // Scope: optional Scope *Scope `hcl:"scope,block"` // Source: required Source *Source `hcl:"source,block" validate:"required"` }
Args contains the configurations for aws_config_config_rule.
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_config_config_rule.
func (*Resource) Attributes ¶
func (accr *Resource) Attributes() awsConfigConfigRuleAttributes
Attributes returns the attributes for Resource.
func (*Resource) Configuration ¶
func (accr *Resource) Configuration() interface{}
Configuration returns the configuration (args) for Resource.
func (*Resource) Dependencies ¶
func (accr *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 Scope ¶
type Scope struct { // ComplianceResourceId: string, optional ComplianceResourceId terra.StringValue `hcl:"compliance_resource_id,attr"` // ComplianceResourceTypes: set of string, optional ComplianceResourceTypes terra.SetValue[terra.StringValue] `hcl:"compliance_resource_types,attr"` // TagKey: string, optional TagKey terra.StringValue `hcl:"tag_key,attr"` // TagValue: string, optional TagValue terra.StringValue `hcl:"tag_value,attr"` }
type ScopeAttributes ¶
type ScopeAttributes struct {
// contains filtered or unexported fields
}
func (ScopeAttributes) ComplianceResourceId ¶
func (s ScopeAttributes) ComplianceResourceId() terra.StringValue
func (ScopeAttributes) ComplianceResourceTypes ¶
func (s ScopeAttributes) ComplianceResourceTypes() terra.SetValue[terra.StringValue]
func (ScopeAttributes) InternalRef ¶
func (s ScopeAttributes) InternalRef() (terra.Reference, error)
func (ScopeAttributes) InternalTokens ¶
func (s ScopeAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ScopeAttributes) InternalWithRef ¶
func (s ScopeAttributes) InternalWithRef(ref terra.Reference) ScopeAttributes
func (ScopeAttributes) TagKey ¶
func (s ScopeAttributes) TagKey() terra.StringValue
func (ScopeAttributes) TagValue ¶
func (s ScopeAttributes) TagValue() terra.StringValue
type ScopeState ¶
type Source ¶
type Source struct { // Owner: string, required Owner terra.StringValue `hcl:"owner,attr" validate:"required"` // SourceIdentifier: string, optional SourceIdentifier terra.StringValue `hcl:"source_identifier,attr"` // SourceCustomPolicyDetails: optional CustomPolicyDetails *SourceCustomPolicyDetails `hcl:"custom_policy_details,block"` // SourceSourceDetail: min=0,max=25 SourceDetail []SourceSourceDetail `hcl:"source_detail,block" validate:"min=0,max=25"` }
type SourceAttributes ¶
type SourceAttributes struct {
// contains filtered or unexported fields
}
func (SourceAttributes) CustomPolicyDetails ¶
func (s SourceAttributes) CustomPolicyDetails() terra.ListValue[SourceCustomPolicyDetailsAttributes]
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
func (SourceAttributes) Owner ¶
func (s SourceAttributes) Owner() terra.StringValue
func (SourceAttributes) SourceDetail ¶
func (s SourceAttributes) SourceDetail() terra.SetValue[SourceSourceDetailAttributes]
func (SourceAttributes) SourceIdentifier ¶
func (s SourceAttributes) SourceIdentifier() terra.StringValue
type SourceCustomPolicyDetails ¶
type SourceCustomPolicyDetails struct { // EnableDebugLogDelivery: bool, optional EnableDebugLogDelivery terra.BoolValue `hcl:"enable_debug_log_delivery,attr"` // PolicyRuntime: string, required PolicyRuntime terra.StringValue `hcl:"policy_runtime,attr" validate:"required"` // PolicyText: string, required PolicyText terra.StringValue `hcl:"policy_text,attr" validate:"required"` }
type SourceCustomPolicyDetailsAttributes ¶
type SourceCustomPolicyDetailsAttributes struct {
// contains filtered or unexported fields
}
func (SourceCustomPolicyDetailsAttributes) EnableDebugLogDelivery ¶
func (cpd SourceCustomPolicyDetailsAttributes) EnableDebugLogDelivery() terra.BoolValue
func (SourceCustomPolicyDetailsAttributes) InternalRef ¶
func (cpd SourceCustomPolicyDetailsAttributes) InternalRef() (terra.Reference, error)
func (SourceCustomPolicyDetailsAttributes) InternalTokens ¶
func (cpd SourceCustomPolicyDetailsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SourceCustomPolicyDetailsAttributes) InternalWithRef ¶
func (cpd SourceCustomPolicyDetailsAttributes) InternalWithRef(ref terra.Reference) SourceCustomPolicyDetailsAttributes
func (SourceCustomPolicyDetailsAttributes) PolicyRuntime ¶
func (cpd SourceCustomPolicyDetailsAttributes) PolicyRuntime() terra.StringValue
func (SourceCustomPolicyDetailsAttributes) PolicyText ¶
func (cpd SourceCustomPolicyDetailsAttributes) PolicyText() terra.StringValue
type SourceSourceDetail ¶
type SourceSourceDetail struct { // EventSource: string, optional EventSource terra.StringValue `hcl:"event_source,attr"` // MaximumExecutionFrequency: string, optional MaximumExecutionFrequency terra.StringValue `hcl:"maximum_execution_frequency,attr"` // MessageType: string, optional MessageType terra.StringValue `hcl:"message_type,attr"` }
type SourceSourceDetailAttributes ¶
type SourceSourceDetailAttributes struct {
// contains filtered or unexported fields
}
func (SourceSourceDetailAttributes) EventSource ¶
func (sd SourceSourceDetailAttributes) EventSource() terra.StringValue
func (SourceSourceDetailAttributes) InternalRef ¶
func (sd SourceSourceDetailAttributes) InternalRef() (terra.Reference, error)
func (SourceSourceDetailAttributes) InternalTokens ¶
func (sd SourceSourceDetailAttributes) InternalTokens() (hclwrite.Tokens, error)
func (SourceSourceDetailAttributes) InternalWithRef ¶
func (sd SourceSourceDetailAttributes) InternalWithRef(ref terra.Reference) SourceSourceDetailAttributes
func (SourceSourceDetailAttributes) MaximumExecutionFrequency ¶
func (sd SourceSourceDetailAttributes) MaximumExecutionFrequency() terra.StringValue
func (SourceSourceDetailAttributes) MessageType ¶
func (sd SourceSourceDetailAttributes) MessageType() terra.StringValue
type SourceSourceDetailState ¶
type SourceState ¶
type SourceState struct { Owner string `json:"owner"` SourceIdentifier string `json:"source_identifier"` CustomPolicyDetails []SourceCustomPolicyDetailsState `json:"custom_policy_details"` SourceDetail []SourceSourceDetailState `json:"source_detail"` }
Click to show internal directories.
Click to hide internal directories.