Skip to content

Commit

Permalink
automated update of providers
Browse files Browse the repository at this point in the history
  • Loading branch information
lingonbot committed Oct 2, 2023
1 parent 7eed5a1 commit 0bfec67
Show file tree
Hide file tree
Showing 8,987 changed files with 3,097,103 additions and 42 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion archive/2.4.0/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.21.1

require (
github.com/hashicorp/hcl/v2 v2.18.0
github.com/volvo-cars/lingon v0.0.0-20230912061845-85f9ded64e1d
github.com/volvo-cars/lingon v0.0.0-20230928083259-862afa6549f0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions archive/2.4.0/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/volvo-cars/lingon v0.0.0-20230912061845-85f9ded64e1d h1:UuAKcQVpB0G/kAgAvvpD8n65eZsX8TDmUDyxGgLKqVA=
github.com/volvo-cars/lingon v0.0.0-20230912061845-85f9ded64e1d/go.mod h1:jbofdP7hibh9yBsgeDl77tNxpSOHO8YGoB/J60lX2nA=
github.com/volvo-cars/lingon v0.0.0-20230928083259-862afa6549f0 h1:7SbzpJfJULOxvbpKtkE+KaqjRVRK4noKLSFHHQgIkYk=
github.com/volvo-cars/lingon v0.0.0-20230928083259-862afa6549f0/go.mod h1:jbofdP7hibh9yBsgeDl77tNxpSOHO8YGoB/J60lX2nA=
github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0=
github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0=
golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk=
Expand Down
142 changes: 142 additions & 0 deletions aws/5.19.0/accessanalyzer_analyzer.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
// CODE GENERATED BY github.com/volvo-cars/lingon. DO NOT EDIT.

package aws

import (
"encoding/json"
"fmt"
"github.com/volvo-cars/lingon/pkg/terra"
"io"
)

// NewAccessanalyzerAnalyzer creates a new instance of [AccessanalyzerAnalyzer].
func NewAccessanalyzerAnalyzer(name string, args AccessanalyzerAnalyzerArgs) *AccessanalyzerAnalyzer {
return &AccessanalyzerAnalyzer{
Args: args,
Name: name,
}
}

var _ terra.Resource = (*AccessanalyzerAnalyzer)(nil)

// AccessanalyzerAnalyzer represents the Terraform resource aws_accessanalyzer_analyzer.
type AccessanalyzerAnalyzer struct {
Name string
Args AccessanalyzerAnalyzerArgs
state *accessanalyzerAnalyzerState
DependsOn terra.Dependencies
Lifecycle *terra.Lifecycle
}

// Type returns the Terraform object type for [AccessanalyzerAnalyzer].
func (aa *AccessanalyzerAnalyzer) Type() string {
return "aws_accessanalyzer_analyzer"
}

// LocalName returns the local name for [AccessanalyzerAnalyzer].
func (aa *AccessanalyzerAnalyzer) LocalName() string {
return aa.Name
}

// Configuration returns the configuration (args) for [AccessanalyzerAnalyzer].
func (aa *AccessanalyzerAnalyzer) Configuration() interface{} {
return aa.Args
}

// DependOn is used for other resources to depend on [AccessanalyzerAnalyzer].
func (aa *AccessanalyzerAnalyzer) DependOn() terra.Reference {
return terra.ReferenceResource(aa)
}

// Dependencies returns the list of resources [AccessanalyzerAnalyzer] depends_on.
func (aa *AccessanalyzerAnalyzer) Dependencies() terra.Dependencies {
return aa.DependsOn
}

// LifecycleManagement returns the lifecycle block for [AccessanalyzerAnalyzer].
func (aa *AccessanalyzerAnalyzer) LifecycleManagement() *terra.Lifecycle {
return aa.Lifecycle
}

// Attributes returns the attributes for [AccessanalyzerAnalyzer].
func (aa *AccessanalyzerAnalyzer) Attributes() accessanalyzerAnalyzerAttributes {
return accessanalyzerAnalyzerAttributes{ref: terra.ReferenceResource(aa)}
}

// ImportState imports the given attribute values into [AccessanalyzerAnalyzer]'s state.
func (aa *AccessanalyzerAnalyzer) ImportState(av io.Reader) error {
aa.state = &accessanalyzerAnalyzerState{}
if err := json.NewDecoder(av).Decode(aa.state); err != nil {
return fmt.Errorf("decoding state into resource %s.%s: %w", aa.Type(), aa.LocalName(), err)
}
return nil
}

// State returns the state and a bool indicating if [AccessanalyzerAnalyzer] has state.
func (aa *AccessanalyzerAnalyzer) State() (*accessanalyzerAnalyzerState, bool) {
return aa.state, aa.state != nil
}

// StateMust returns the state for [AccessanalyzerAnalyzer]. Panics if the state is nil.
func (aa *AccessanalyzerAnalyzer) StateMust() *accessanalyzerAnalyzerState {
if aa.state == nil {
panic(fmt.Sprintf("state is nil for resource %s.%s", aa.Type(), aa.LocalName()))
}
return aa.state
}

// AccessanalyzerAnalyzerArgs contains the configurations for aws_accessanalyzer_analyzer.
type AccessanalyzerAnalyzerArgs struct {
// AnalyzerName: string, required
AnalyzerName terra.StringValue `hcl:"analyzer_name,attr" validate:"required"`
// Id: string, optional
Id terra.StringValue `hcl:"id,attr"`
// 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"`
// Type: string, optional
Type terra.StringValue `hcl:"type,attr"`
}
type accessanalyzerAnalyzerAttributes struct {
ref terra.Reference
}

// AnalyzerName returns a reference to field analyzer_name of aws_accessanalyzer_analyzer.
func (aa accessanalyzerAnalyzerAttributes) AnalyzerName() terra.StringValue {
return terra.ReferenceAsString(aa.ref.Append("analyzer_name"))
}

// Arn returns a reference to field arn of aws_accessanalyzer_analyzer.
func (aa accessanalyzerAnalyzerAttributes) Arn() terra.StringValue {
return terra.ReferenceAsString(aa.ref.Append("arn"))
}

// Id returns a reference to field id of aws_accessanalyzer_analyzer.
func (aa accessanalyzerAnalyzerAttributes) Id() terra.StringValue {
return terra.ReferenceAsString(aa.ref.Append("id"))
}

// Tags returns a reference to field tags of aws_accessanalyzer_analyzer.
func (aa accessanalyzerAnalyzerAttributes) Tags() terra.MapValue[terra.StringValue] {
return terra.ReferenceAsMap[terra.StringValue](aa.ref.Append("tags"))
}

// TagsAll returns a reference to field tags_all of aws_accessanalyzer_analyzer.
func (aa accessanalyzerAnalyzerAttributes) TagsAll() terra.MapValue[terra.StringValue] {
return terra.ReferenceAsMap[terra.StringValue](aa.ref.Append("tags_all"))
}

// Type returns a reference to field type of aws_accessanalyzer_analyzer.
func (aa accessanalyzerAnalyzerAttributes) Type() terra.StringValue {
return terra.ReferenceAsString(aa.ref.Append("type"))
}

type accessanalyzerAnalyzerState struct {
AnalyzerName string `json:"analyzer_name"`
Arn string `json:"arn"`
Id string `json:"id"`
Tags map[string]string `json:"tags"`
TagsAll map[string]string `json:"tags_all"`
Type string `json:"type"`
}
128 changes: 128 additions & 0 deletions aws/5.19.0/accessanalyzer_archive_rule.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
// CODE GENERATED BY github.com/volvo-cars/lingon. DO NOT EDIT.

package aws

import (
"encoding/json"
"fmt"
accessanalyzerarchiverule "github.com/golingon/terraproviders/aws/5.19.0/accessanalyzerarchiverule"
"github.com/volvo-cars/lingon/pkg/terra"
"io"
)

// NewAccessanalyzerArchiveRule creates a new instance of [AccessanalyzerArchiveRule].
func NewAccessanalyzerArchiveRule(name string, args AccessanalyzerArchiveRuleArgs) *AccessanalyzerArchiveRule {
return &AccessanalyzerArchiveRule{
Args: args,
Name: name,
}
}

var _ terra.Resource = (*AccessanalyzerArchiveRule)(nil)

// AccessanalyzerArchiveRule represents the Terraform resource aws_accessanalyzer_archive_rule.
type AccessanalyzerArchiveRule struct {
Name string
Args AccessanalyzerArchiveRuleArgs
state *accessanalyzerArchiveRuleState
DependsOn terra.Dependencies
Lifecycle *terra.Lifecycle
}

// Type returns the Terraform object type for [AccessanalyzerArchiveRule].
func (aar *AccessanalyzerArchiveRule) Type() string {
return "aws_accessanalyzer_archive_rule"
}

// LocalName returns the local name for [AccessanalyzerArchiveRule].
func (aar *AccessanalyzerArchiveRule) LocalName() string {
return aar.Name
}

// Configuration returns the configuration (args) for [AccessanalyzerArchiveRule].
func (aar *AccessanalyzerArchiveRule) Configuration() interface{} {
return aar.Args
}

// DependOn is used for other resources to depend on [AccessanalyzerArchiveRule].
func (aar *AccessanalyzerArchiveRule) DependOn() terra.Reference {
return terra.ReferenceResource(aar)
}

// Dependencies returns the list of resources [AccessanalyzerArchiveRule] depends_on.
func (aar *AccessanalyzerArchiveRule) Dependencies() terra.Dependencies {
return aar.DependsOn
}

// LifecycleManagement returns the lifecycle block for [AccessanalyzerArchiveRule].
func (aar *AccessanalyzerArchiveRule) LifecycleManagement() *terra.Lifecycle {
return aar.Lifecycle
}

// Attributes returns the attributes for [AccessanalyzerArchiveRule].
func (aar *AccessanalyzerArchiveRule) Attributes() accessanalyzerArchiveRuleAttributes {
return accessanalyzerArchiveRuleAttributes{ref: terra.ReferenceResource(aar)}
}

// ImportState imports the given attribute values into [AccessanalyzerArchiveRule]'s state.
func (aar *AccessanalyzerArchiveRule) ImportState(av io.Reader) error {
aar.state = &accessanalyzerArchiveRuleState{}
if err := json.NewDecoder(av).Decode(aar.state); err != nil {
return fmt.Errorf("decoding state into resource %s.%s: %w", aar.Type(), aar.LocalName(), err)
}
return nil
}

// State returns the state and a bool indicating if [AccessanalyzerArchiveRule] has state.
func (aar *AccessanalyzerArchiveRule) State() (*accessanalyzerArchiveRuleState, bool) {
return aar.state, aar.state != nil
}

// StateMust returns the state for [AccessanalyzerArchiveRule]. Panics if the state is nil.
func (aar *AccessanalyzerArchiveRule) StateMust() *accessanalyzerArchiveRuleState {
if aar.state == nil {
panic(fmt.Sprintf("state is nil for resource %s.%s", aar.Type(), aar.LocalName()))
}
return aar.state
}

// AccessanalyzerArchiveRuleArgs contains the configurations for aws_accessanalyzer_archive_rule.
type AccessanalyzerArchiveRuleArgs struct {
// AnalyzerName: string, required
AnalyzerName terra.StringValue `hcl:"analyzer_name,attr" validate:"required"`
// Id: string, optional
Id terra.StringValue `hcl:"id,attr"`
// RuleName: string, required
RuleName terra.StringValue `hcl:"rule_name,attr" validate:"required"`
// Filter: min=1
Filter []accessanalyzerarchiverule.Filter `hcl:"filter,block" validate:"min=1"`
}
type accessanalyzerArchiveRuleAttributes struct {
ref terra.Reference
}

// AnalyzerName returns a reference to field analyzer_name of aws_accessanalyzer_archive_rule.
func (aar accessanalyzerArchiveRuleAttributes) AnalyzerName() terra.StringValue {
return terra.ReferenceAsString(aar.ref.Append("analyzer_name"))
}

// Id returns a reference to field id of aws_accessanalyzer_archive_rule.
func (aar accessanalyzerArchiveRuleAttributes) Id() terra.StringValue {
return terra.ReferenceAsString(aar.ref.Append("id"))
}

// RuleName returns a reference to field rule_name of aws_accessanalyzer_archive_rule.
func (aar accessanalyzerArchiveRuleAttributes) RuleName() terra.StringValue {
return terra.ReferenceAsString(aar.ref.Append("rule_name"))
}

func (aar accessanalyzerArchiveRuleAttributes) Filter() terra.SetValue[accessanalyzerarchiverule.FilterAttributes] {
return terra.ReferenceAsSet[accessanalyzerarchiverule.FilterAttributes](aar.ref.Append("filter"))
}

type accessanalyzerArchiveRuleState struct {
AnalyzerName string `json:"analyzer_name"`
Id string `json:"id"`
RuleName string `json:"rule_name"`
Filter []accessanalyzerarchiverule.FilterState `json:"filter"`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// CODE GENERATED BY github.com/volvo-cars/lingon. DO NOT EDIT.

package accessanalyzerarchiverule

import (
hclwrite "github.com/hashicorp/hcl/v2/hclwrite"
terra "github.com/volvo-cars/lingon/pkg/terra"
)

type Filter struct {
// Contains: list of string, optional
Contains terra.ListValue[terra.StringValue] `hcl:"contains,attr"`
// Criteria: string, required
Criteria terra.StringValue `hcl:"criteria,attr" validate:"required"`
// Eq: list of string, optional
Eq terra.ListValue[terra.StringValue] `hcl:"eq,attr"`
// Exists: string, optional
Exists terra.StringValue `hcl:"exists,attr"`
// Neq: list of string, optional
Neq terra.ListValue[terra.StringValue] `hcl:"neq,attr"`
}

type FilterAttributes struct {
ref terra.Reference
}

func (f FilterAttributes) InternalRef() (terra.Reference, error) {
return f.ref, nil
}

func (f FilterAttributes) InternalWithRef(ref terra.Reference) FilterAttributes {
return FilterAttributes{ref: ref}
}

func (f FilterAttributes) InternalTokens() (hclwrite.Tokens, error) {
return f.ref.InternalTokens()
}

func (f FilterAttributes) Contains() terra.ListValue[terra.StringValue] {
return terra.ReferenceAsList[terra.StringValue](f.ref.Append("contains"))
}

func (f FilterAttributes) Criteria() terra.StringValue {
return terra.ReferenceAsString(f.ref.Append("criteria"))
}

func (f FilterAttributes) Eq() terra.ListValue[terra.StringValue] {
return terra.ReferenceAsList[terra.StringValue](f.ref.Append("eq"))
}

func (f FilterAttributes) Exists() terra.StringValue {
return terra.ReferenceAsString(f.ref.Append("exists"))
}

func (f FilterAttributes) Neq() terra.ListValue[terra.StringValue] {
return terra.ReferenceAsList[terra.StringValue](f.ref.Append("neq"))
}

type FilterState struct {
Contains []string `json:"contains"`
Criteria string `json:"criteria"`
Eq []string `json:"eq"`
Exists string `json:"exists"`
Neq []string `json:"neq"`
}
Loading

0 comments on commit 0bfec67

Please sign in to comment.