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 Jul 10, 2023
1 parent 4b2c49f commit 6304282
Show file tree
Hide file tree
Showing 8,628 changed files with 3,016,371 additions and 252 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 5 additions & 5 deletions archive/2.4.0/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/hashicorp/hcl/v2 v2.17.0
github.com/volvo-cars/lingon v0.0.0-20230703105113-1bcac3444c58
github.com/volvo-cars/lingon v0.0.0-20230707195820-333df09ffe29
)

require (
Expand All @@ -20,8 +20,8 @@ require (
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/zclconf/go-cty v1.13.2 // indirect
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/crypto v0.10.0 // indirect
golang.org/x/net v0.11.0 // indirect
golang.org/x/sys v0.9.0 // indirect
golang.org/x/text v0.10.0 // indirect
)
25 changes: 12 additions & 13 deletions archive/2.4.0/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
Expand All @@ -51,21 +50,21 @@ 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-20230703105113-1bcac3444c58 h1:n/kNMAd3h1Kd93EvT0NR+7QdkQLgPnvJUb7Yg8WQZ0o=
github.com/volvo-cars/lingon v0.0.0-20230703105113-1bcac3444c58/go.mod h1:EneRIVq91bak0uA7YrkNZQQl1vmVUzyp07bja2VJrQs=
github.com/volvo-cars/lingon v0.0.0-20230707195820-333df09ffe29 h1:m9j5VYlhohtIZnlHsGjY7K/vPWWa0yLnqt69f5EtVnM=
github.com/volvo-cars/lingon v0.0.0-20230707195820-333df09ffe29/go.mod h1:H7JSWPEP7DJ9yDI6IlFLdubgn4kcjThpzC6/WWmi6z0=
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=
github.com/zegl/kube-score v1.16.1 h1:aR4355f6kH9rwVMQPUT9946KlcHvr4r8drLQK5J7kOM=
golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g=
golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0=
golang.org/x/exp v0.0.0-20230519143937-03e91628a987 h1:3xJIFvzUFbu4ls0BTBYcgbCGhA63eAOEMxIHugyXJqA=
golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/tools v0.9.1 h1:8WMNJAz3zrtPmnYC7ISf5dEn3MT0gY7jBJfw27yrrLo=
golang.org/x/crypto v0.10.0 h1:LKqV2xt9+kDzSTfOhx4FrkEBcMrAgHSYgzywV9zcGmM=
golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I=
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME=
golang.org/x/net v0.11.0 h1:Gi2tvZIJyBtO9SDr1q9h5hEQCp/4L2RQ+ar0qjx2oNU=
golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ=
golang.org/x/sys v0.9.0 h1:KS/R3tvhPqvJvwcKfnBHJwwthS11LRhmM5D59eEXa0s=
golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.10.0 h1:UpjohKhiEgNc0CSauXmwYftY1+LlaC75SJwh0SgCX58=
golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/tools v0.10.0 h1:tvDr/iQoUqNdohiYm0LmmKcBk+q86lb9EprIUFhHHGg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
Expand Down
142 changes: 142 additions & 0 deletions aws/5.7.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.7.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.7.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"`
}
Loading

0 comments on commit 6304282

Please sign in to comment.