rules

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2024 License: MPL-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Rules []tflint.Rule

Rules is a list of all rules

Functions

This section is empty.

Types

type AwsAPIGatewayModelInvalidNameRule added in v0.4.0

type AwsAPIGatewayModelInvalidNameRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsAPIGatewayModelInvalidNameRule checks the name is alphanumeric

func NewAwsAPIGatewayModelInvalidNameRule added in v0.4.0

func NewAwsAPIGatewayModelInvalidNameRule() *AwsAPIGatewayModelInvalidNameRule

NewAwsAPIGatewayModelInvalidNameRule returns new rule with default attributes

func (*AwsAPIGatewayModelInvalidNameRule) Check added in v0.4.0

Check checks the name attributes is matched with ^[a-zA-Z0-9]+$ regexp

func (*AwsAPIGatewayModelInvalidNameRule) Enabled added in v0.4.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsAPIGatewayModelInvalidNameRule) Name added in v0.4.0

Name returns the rule name

func (*AwsAPIGatewayModelInvalidNameRule) Severity added in v0.4.0

Severity returns the rule severity

type AwsAcmCertificateLifecycleRule added in v0.10.0

type AwsAcmCertificateLifecycleRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsAcmCertificateLifecycleRule checks whether `create_before_destroy = true` is set in a lifecycle block of `aws_acm_certificate` resource

func NewAwsAcmCertificateLifecycleRule added in v0.10.0

func NewAwsAcmCertificateLifecycleRule() *AwsAcmCertificateLifecycleRule

NewAwsAcmCertificateLifecycleRule returns new rule with default attributes

func (*AwsAcmCertificateLifecycleRule) Check added in v0.10.0

Check checks whether the aws_acm_certificate resource contains create_before_destroy = true in lifecycle block

func (*AwsAcmCertificateLifecycleRule) Enabled added in v0.10.0

func (r *AwsAcmCertificateLifecycleRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsAcmCertificateLifecycleRule) Name added in v0.10.0

Name returns the rule name

func (*AwsAcmCertificateLifecycleRule) Severity added in v0.10.0

Severity returns the rule severity

type AwsDBInstanceDefaultParameterGroupRule

type AwsDBInstanceDefaultParameterGroupRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsDBInstanceDefaultParameterGroupRule checks whether the db instance use default parameter group

func NewAwsDBInstanceDefaultParameterGroupRule

func NewAwsDBInstanceDefaultParameterGroupRule() *AwsDBInstanceDefaultParameterGroupRule

NewAwsDBInstanceDefaultParameterGroupRule returns new rule with default attributes

func (*AwsDBInstanceDefaultParameterGroupRule) Check

Check checks the parameter group name starts with `default`

func (*AwsDBInstanceDefaultParameterGroupRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsDBInstanceDefaultParameterGroupRule) Name

Name returns the rule name

func (*AwsDBInstanceDefaultParameterGroupRule) Severity

Severity returns the rule severity

type AwsDBInstanceInvalidEngineRule added in v0.3.0

type AwsDBInstanceInvalidEngineRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsDBInstanceInvalidEngineRule checks whether "aws_db_instance" has invalid engine.

func NewAwsDBInstanceInvalidEngineRule added in v0.3.0

func NewAwsDBInstanceInvalidEngineRule() *AwsDBInstanceInvalidEngineRule

NewAwsDBInstanceInvalidEngineRule returns new rule with default attributes

func (*AwsDBInstanceInvalidEngineRule) Check added in v0.3.0

Check checks whether "aws_db_instance" has invalid engine.

func (*AwsDBInstanceInvalidEngineRule) Enabled added in v0.3.0

func (r *AwsDBInstanceInvalidEngineRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsDBInstanceInvalidEngineRule) Name added in v0.3.0

Name returns the rule name

func (*AwsDBInstanceInvalidEngineRule) Severity added in v0.3.0

Severity returns the rule severity

type AwsDBInstanceInvalidTypeRule

type AwsDBInstanceInvalidTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsDBInstanceInvalidTypeRule checks whether "aws_db_instance" has invalid intance type.

func NewAwsDBInstanceInvalidTypeRule

func NewAwsDBInstanceInvalidTypeRule() *AwsDBInstanceInvalidTypeRule

NewAwsDBInstanceInvalidTypeRule returns new rule with default attributes

func (*AwsDBInstanceInvalidTypeRule) Check

Check checks whether "aws_db_instance" has invalid instance type.

func (*AwsDBInstanceInvalidTypeRule) Enabled

func (r *AwsDBInstanceInvalidTypeRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsDBInstanceInvalidTypeRule) Name

Name returns the rule name

func (*AwsDBInstanceInvalidTypeRule) Severity

Severity returns the rule severity

type AwsDBInstancePreviousTypeRule

type AwsDBInstancePreviousTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsDBInstancePreviousTypeRule checks whether the resource uses previous generation instance type

func NewAwsDBInstancePreviousTypeRule

func NewAwsDBInstancePreviousTypeRule() *AwsDBInstancePreviousTypeRule

NewAwsDBInstancePreviousTypeRule returns new rule with default attributes

func (*AwsDBInstancePreviousTypeRule) Check

Check checks whether the resource's `instance_class` is included in the list of previous generation instance type

func (*AwsDBInstancePreviousTypeRule) Enabled

func (r *AwsDBInstancePreviousTypeRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsDBInstancePreviousTypeRule) Name

Name returns the rule name

func (*AwsDBInstancePreviousTypeRule) Severity

Severity returns the rule severity

type AwsDynamoDBTableInvalidStreamViewTypeRule

type AwsDynamoDBTableInvalidStreamViewTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsDynamoDBTableInvalidStreamViewTypeRule checks the pattern is valid

func NewAwsDynamoDBTableInvalidStreamViewTypeRule

func NewAwsDynamoDBTableInvalidStreamViewTypeRule() *AwsDynamoDBTableInvalidStreamViewTypeRule

NewAwsDynamoDBTableInvalidStreamViewTypeRule returns new rule with default attributes

func (*AwsDynamoDBTableInvalidStreamViewTypeRule) Check

Check checks the pattern is valid

func (*AwsDynamoDBTableInvalidStreamViewTypeRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsDynamoDBTableInvalidStreamViewTypeRule) Name

Name returns the rule name

func (*AwsDynamoDBTableInvalidStreamViewTypeRule) Severity

Severity returns the rule severity

type AwsElastiCacheClusterDefaultParameterGroupRule

type AwsElastiCacheClusterDefaultParameterGroupRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsElastiCacheClusterDefaultParameterGroupRule checks whether the cluster use default parameter group

func NewAwsElastiCacheClusterDefaultParameterGroupRule

func NewAwsElastiCacheClusterDefaultParameterGroupRule() *AwsElastiCacheClusterDefaultParameterGroupRule

NewAwsElastiCacheClusterDefaultParameterGroupRule returns new rule with default attributes

func (*AwsElastiCacheClusterDefaultParameterGroupRule) Check

Check checks the parameter group name starts with `default`

func (*AwsElastiCacheClusterDefaultParameterGroupRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsElastiCacheClusterDefaultParameterGroupRule) Name

Name returns the rule name

func (*AwsElastiCacheClusterDefaultParameterGroupRule) Severity

Severity returns the rule severity

type AwsElastiCacheClusterInvalidTypeRule

type AwsElastiCacheClusterInvalidTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsElastiCacheClusterInvalidTypeRule checks whether "aws_elasticache_cluster" has invalid node type.

func NewAwsElastiCacheClusterInvalidTypeRule

func NewAwsElastiCacheClusterInvalidTypeRule() *AwsElastiCacheClusterInvalidTypeRule

NewAwsElastiCacheClusterInvalidTypeRule returns new rule with default attributes

func (*AwsElastiCacheClusterInvalidTypeRule) Check

Check checks whether "aws_elasticache_cluster" has invalid node type.

func (*AwsElastiCacheClusterInvalidTypeRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsElastiCacheClusterInvalidTypeRule) Name

Name returns the rule name

func (*AwsElastiCacheClusterInvalidTypeRule) Severity

Severity returns the rule severity

type AwsElastiCacheClusterPreviousTypeRule

type AwsElastiCacheClusterPreviousTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsElastiCacheClusterPreviousTypeRule checks whether the resource uses previous generation node type

func NewAwsElastiCacheClusterPreviousTypeRule

func NewAwsElastiCacheClusterPreviousTypeRule() *AwsElastiCacheClusterPreviousTypeRule

NewAwsElastiCacheClusterPreviousTypeRule returns new rule with default attributes

func (*AwsElastiCacheClusterPreviousTypeRule) Check

Check checks whether the resource's `node_type` is included in the list of previous generation node type

func (*AwsElastiCacheClusterPreviousTypeRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsElastiCacheClusterPreviousTypeRule) Name

Name returns the rule name

func (*AwsElastiCacheClusterPreviousTypeRule) Severity

Severity returns the rule severity

type AwsElastiCacheReplicationGroupDefaultParameterGroupRule added in v0.6.0

type AwsElastiCacheReplicationGroupDefaultParameterGroupRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsElastiCacheReplicationGroupDefaultParameterGroupRule checks whether the cluster use default parameter group

func NewAwsElastiCacheReplicationGroupDefaultParameterGroupRule added in v0.6.0

func NewAwsElastiCacheReplicationGroupDefaultParameterGroupRule() *AwsElastiCacheReplicationGroupDefaultParameterGroupRule

NewAwsElastiCacheReplicationGroupDefaultParameterGroupRule returns new rule with default attributes

func (*AwsElastiCacheReplicationGroupDefaultParameterGroupRule) Check added in v0.6.0

Check checks the parameter group name starts with `default`

func (*AwsElastiCacheReplicationGroupDefaultParameterGroupRule) Enabled added in v0.6.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsElastiCacheReplicationGroupDefaultParameterGroupRule) Name added in v0.6.0

Name returns the rule name

func (*AwsElastiCacheReplicationGroupDefaultParameterGroupRule) Severity added in v0.6.0

Severity returns the rule severity

type AwsElastiCacheReplicationGroupInvalidTypeRule added in v0.6.0

type AwsElastiCacheReplicationGroupInvalidTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsElastiCacheReplicationGroupInvalidTypeRule checks whether "aws_elasticache_replication_group" has invalid node type.

func NewAwsElastiCacheReplicationGroupInvalidTypeRule added in v0.6.0

func NewAwsElastiCacheReplicationGroupInvalidTypeRule() *AwsElastiCacheReplicationGroupInvalidTypeRule

NewAwsElastiCacheReplicationGroupInvalidTypeRule returns new rule with default attributes

func (*AwsElastiCacheReplicationGroupInvalidTypeRule) Check added in v0.6.0

Check checks whether "aws_elasticache_replication_group" has invalid node type.

func (*AwsElastiCacheReplicationGroupInvalidTypeRule) Enabled added in v0.6.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsElastiCacheReplicationGroupInvalidTypeRule) Name added in v0.6.0

Name returns the rule name

func (*AwsElastiCacheReplicationGroupInvalidTypeRule) Severity added in v0.6.0

Severity returns the rule severity

type AwsElastiCacheReplicationGroupPreviousTypeRule added in v0.6.0

type AwsElastiCacheReplicationGroupPreviousTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsElastiCacheReplicationGroupPreviousTypeRule checks whether the resource uses previous generation node type

func NewAwsElastiCacheReplicationGroupPreviousTypeRule added in v0.6.0

func NewAwsElastiCacheReplicationGroupPreviousTypeRule() *AwsElastiCacheReplicationGroupPreviousTypeRule

NewAwsElastiCacheReplicationGroupPreviousTypeRule returns new rule with default attributes

func (*AwsElastiCacheReplicationGroupPreviousTypeRule) Check added in v0.6.0

Check checks whether the resource's `node_type` is included in the list of previous generation node type

func (*AwsElastiCacheReplicationGroupPreviousTypeRule) Enabled added in v0.6.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsElastiCacheReplicationGroupPreviousTypeRule) Name added in v0.6.0

Name returns the rule name

func (*AwsElastiCacheReplicationGroupPreviousTypeRule) Severity added in v0.6.0

Severity returns the rule severity

type AwsElasticBeanstalkEnvironmentInvalidNameFormatRule added in v0.13.0

type AwsElasticBeanstalkEnvironmentInvalidNameFormatRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsElasticBeanstalkEnvironmentInvalidNameFormatRule checks EB environment name matches a pattern

func NewAwsElasticBeanstalkEnvironmentInvalidNameFormatRule added in v0.13.0

func NewAwsElasticBeanstalkEnvironmentInvalidNameFormatRule() *AwsElasticBeanstalkEnvironmentInvalidNameFormatRule

NewAwsElasticBeanstalkEnvironmentInvalidNameFormatRule returns new rule with default attributes

func (*AwsElasticBeanstalkEnvironmentInvalidNameFormatRule) Check added in v0.13.0

Check checks the environment name matches the pattern provided

func (*AwsElasticBeanstalkEnvironmentInvalidNameFormatRule) Enabled added in v0.13.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsElasticBeanstalkEnvironmentInvalidNameFormatRule) Name added in v0.13.0

Name returns the rule name

func (*AwsElasticBeanstalkEnvironmentInvalidNameFormatRule) Severity added in v0.13.0

Severity returns the rule severity

type AwsIAMGroupPolicyTooLongRule added in v0.8.0

type AwsIAMGroupPolicyTooLongRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsIAMGroupPolicyTooLongRule checks that the policy length is less than 5,120 characters

func NewAwsIAMGroupPolicyTooLongRule added in v0.8.0

func NewAwsIAMGroupPolicyTooLongRule() *AwsIAMGroupPolicyTooLongRule

NewAwsIAMGroupPolicyTooLongRule returns new rule with default attributes

func (*AwsIAMGroupPolicyTooLongRule) Check added in v0.8.0

Check checks the length of the policy

func (*AwsIAMGroupPolicyTooLongRule) Enabled added in v0.8.0

func (r *AwsIAMGroupPolicyTooLongRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsIAMGroupPolicyTooLongRule) Name added in v0.8.0

Name returns the rule name

func (*AwsIAMGroupPolicyTooLongRule) Severity added in v0.8.0

Severity returns the rule severity

type AwsIAMPolicyDocumentGovFriendlyArnsRule added in v0.3.0

type AwsIAMPolicyDocumentGovFriendlyArnsRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsIAMPolicyDocumentGovFriendlyArnsRule checks for non-GovCloud arns

func NewAwsIAMPolicyDocumentGovFriendlyArnsRule added in v0.3.0

func NewAwsIAMPolicyDocumentGovFriendlyArnsRule() *AwsIAMPolicyDocumentGovFriendlyArnsRule

AwsIAMPolicyDocumentGovFriendlyArnsRule returns new rule with default attributes

func (*AwsIAMPolicyDocumentGovFriendlyArnsRule) Check added in v0.3.0

Check checks the pattern is valid

func (*AwsIAMPolicyDocumentGovFriendlyArnsRule) Enabled added in v0.3.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsIAMPolicyDocumentGovFriendlyArnsRule) Name added in v0.3.0

Name returns the rule name

func (*AwsIAMPolicyDocumentGovFriendlyArnsRule) Severity added in v0.3.0

Severity returns the rule severity

type AwsIAMPolicyGovFriendlyArnsRule added in v0.3.0

type AwsIAMPolicyGovFriendlyArnsRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsIAMPolicyGovFriendlyArnsRule checks for non-GovCloud arns

func NewAwsIAMPolicyGovFriendlyArnsRule added in v0.3.0

func NewAwsIAMPolicyGovFriendlyArnsRule() *AwsIAMPolicyGovFriendlyArnsRule

NewAwsIAMPolicyInvalidPolicyRule returns new rule with default attributes

func (*AwsIAMPolicyGovFriendlyArnsRule) Check added in v0.3.0

Check checks the pattern is valid

func (*AwsIAMPolicyGovFriendlyArnsRule) Enabled added in v0.3.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsIAMPolicyGovFriendlyArnsRule) Name added in v0.3.0

Name returns the rule name

func (*AwsIAMPolicyGovFriendlyArnsRule) Severity added in v0.3.0

Severity returns the rule severity

type AwsIAMPolicySidInvalidCharactersPolicy added in v0.7.2

type AwsIAMPolicySidInvalidCharactersPolicy struct {
	Statement []AwsIAMPolicySidInvalidCharactersPolicyStatement `json:"Statement"`
}

type AwsIAMPolicySidInvalidCharactersPolicyStatement added in v0.7.2

type AwsIAMPolicySidInvalidCharactersPolicyStatement struct {
	Sid string `json:"Sid"`
}

type AwsIAMPolicySidInvalidCharactersPolicyWithSingleStatement added in v0.7.2

type AwsIAMPolicySidInvalidCharactersPolicyWithSingleStatement struct {
	Statement AwsIAMPolicySidInvalidCharactersPolicyStatement `json:"Statement"`
}

type AwsIAMPolicySidInvalidCharactersRule added in v0.7.0

type AwsIAMPolicySidInvalidCharactersRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsIAMPolicySidInvalidCharactersRule checks for invalid characters in SID

func NewAwsIAMPolicySidInvalidCharactersRule added in v0.7.0

func NewAwsIAMPolicySidInvalidCharactersRule() *AwsIAMPolicySidInvalidCharactersRule

NewAwsIAMPolicySidInvalidCharactersRule returns new rule with default attributes

func (*AwsIAMPolicySidInvalidCharactersRule) Check added in v0.7.0

Check checks the unmarshaled policy and loops through statements checking for invalid statement ids

func (*AwsIAMPolicySidInvalidCharactersRule) Enabled added in v0.7.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsIAMPolicySidInvalidCharactersRule) Name added in v0.7.0

Name returns the rule name

func (*AwsIAMPolicySidInvalidCharactersRule) Severity added in v0.7.0

Severity returns the rule severity

type AwsIAMPolicyTooLongPolicyRule added in v0.7.0

type AwsIAMPolicyTooLongPolicyRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsIAMPolicyTooLongPolicyRule checks that the policy length is less than 6,144 characters

func NewAwsIAMPolicyTooLongPolicyRule added in v0.7.0

func NewAwsIAMPolicyTooLongPolicyRule() *AwsIAMPolicyTooLongPolicyRule

NewAwsIAMPolicyTooLongPolicyRule returns new rule with default attributes

func (*AwsIAMPolicyTooLongPolicyRule) Check added in v0.7.0

Check checks the length of the policy

func (*AwsIAMPolicyTooLongPolicyRule) Enabled added in v0.7.0

func (r *AwsIAMPolicyTooLongPolicyRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsIAMPolicyTooLongPolicyRule) Name added in v0.7.0

Name returns the rule name

func (*AwsIAMPolicyTooLongPolicyRule) Severity added in v0.7.0

Severity returns the rule severity

type AwsIAMRolePolicyGovFriendlyArnsRule added in v0.3.0

type AwsIAMRolePolicyGovFriendlyArnsRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsIAMRolePolicyGovFriendlyArnsRule checks for non-GovCloud arns

func NewAwsIAMRolePolicyGovFriendlyArnsRule added in v0.3.0

func NewAwsIAMRolePolicyGovFriendlyArnsRule() *AwsIAMRolePolicyGovFriendlyArnsRule

NewAwsIAMRolePolicyInvalidPolicyRule returns new rule with default attributes

func (*AwsIAMRolePolicyGovFriendlyArnsRule) Check added in v0.3.0

Check checks the pattern is valid

func (*AwsIAMRolePolicyGovFriendlyArnsRule) Enabled added in v0.3.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsIAMRolePolicyGovFriendlyArnsRule) Name added in v0.3.0

Name returns the rule name

func (*AwsIAMRolePolicyGovFriendlyArnsRule) Severity added in v0.3.0

Severity returns the rule severity

type AwsInstancePreviousTypeRule

type AwsInstancePreviousTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsInstancePreviousTypeRule checks whether the resource uses previous generation instance type

func NewAwsInstancePreviousTypeRule

func NewAwsInstancePreviousTypeRule() *AwsInstancePreviousTypeRule

NewAwsInstancePreviousTypeRule returns new rule with default attributes

func (*AwsInstancePreviousTypeRule) Check

Check checks whether the resource's `instance_type` is included in the list of previous generation instance type

func (*AwsInstancePreviousTypeRule) Enabled

func (r *AwsInstancePreviousTypeRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsInstancePreviousTypeRule) Name

Name returns the rule name

func (*AwsInstancePreviousTypeRule) Severity

Severity returns the rule severity

type AwsLambdaFunctionDeprecatedRuntimeRule added in v0.7.0

type AwsLambdaFunctionDeprecatedRuntimeRule struct {
	tflint.DefaultRule

	Now time.Time
	// contains filtered or unexported fields
}

AwsLambdaFunctionDeprecatedRuntimeRule checks to see if the lambda runtime has reached End Of Support

func NewAwsLambdaFunctionDeprecatedRuntimeRule added in v0.7.0

func NewAwsLambdaFunctionDeprecatedRuntimeRule() *AwsLambdaFunctionDeprecatedRuntimeRule

NewAwsLambdaFunctionDeprecatedRuntimeRule returns new rule with default attributes

func (*AwsLambdaFunctionDeprecatedRuntimeRule) Check added in v0.7.0

Check checks if the chosen runtime has reached EOS. Date check allows future values to be created as well.

func (*AwsLambdaFunctionDeprecatedRuntimeRule) Enabled added in v0.7.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsLambdaFunctionDeprecatedRuntimeRule) Name added in v0.7.0

Name returns the rule name

func (*AwsLambdaFunctionDeprecatedRuntimeRule) Severity added in v0.7.0

Severity returns the rule severity

type AwsMqBrokerInvalidEngineTypeRule

type AwsMqBrokerInvalidEngineTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsMqBrokerInvalidEngineTypeRule checks the pattern is valid

func NewAwsMqBrokerInvalidEngineTypeRule

func NewAwsMqBrokerInvalidEngineTypeRule() *AwsMqBrokerInvalidEngineTypeRule

NewAwsMqBrokerInvalidEngineTypeRule returns new rule with default attributes

func (*AwsMqBrokerInvalidEngineTypeRule) Check

Check checks the pattern is valid

func (*AwsMqBrokerInvalidEngineTypeRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsMqBrokerInvalidEngineTypeRule) Name

Name returns the rule name

func (*AwsMqBrokerInvalidEngineTypeRule) Severity

Severity returns the rule severity

type AwsMqConfigurationInvalidEngineTypeRule

type AwsMqConfigurationInvalidEngineTypeRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsMqConfigurationInvalidEngineTypeRule checks the pattern is valid

func NewAwsMqConfigurationInvalidEngineTypeRule

func NewAwsMqConfigurationInvalidEngineTypeRule() *AwsMqConfigurationInvalidEngineTypeRule

NewAwsMqConfigurationInvalidEngineTypeRule returns new rule with default attributes

func (*AwsMqConfigurationInvalidEngineTypeRule) Check

Check checks the pattern is valid

func (*AwsMqConfigurationInvalidEngineTypeRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsMqConfigurationInvalidEngineTypeRule) Name

Name returns the rule name

func (*AwsMqConfigurationInvalidEngineTypeRule) Severity

Severity returns the rule severity

type AwsResourceMissingTagsRule

type AwsResourceMissingTagsRule struct {
	tflint.DefaultRule
}

AwsResourceMissingTagsRule checks whether resources are tagged correctly

func NewAwsResourceMissingTagsRule

func NewAwsResourceMissingTagsRule() *AwsResourceMissingTagsRule

NewAwsResourceMissingTagsRule returns new rules for all resources that support tags

func (*AwsResourceMissingTagsRule) Check

func (r *AwsResourceMissingTagsRule) Check(runner tflint.Runner) error

Check checks resources for missing tags

func (*AwsResourceMissingTagsRule) Enabled

func (r *AwsResourceMissingTagsRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsResourceMissingTagsRule) Name

Name returns the rule name

func (*AwsResourceMissingTagsRule) Severity

Severity returns the rule severity

type AwsRouteNotSpecifiedTargetRule

type AwsRouteNotSpecifiedTargetRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsRouteNotSpecifiedTargetRule checks whether a route definition has a routing target

func NewAwsRouteNotSpecifiedTargetRule

func NewAwsRouteNotSpecifiedTargetRule() *AwsRouteNotSpecifiedTargetRule

NewAwsRouteNotSpecifiedTargetRule returns new rule with default attributes

func (*AwsRouteNotSpecifiedTargetRule) Check

Check checks whether a target is defined in a resource

func (*AwsRouteNotSpecifiedTargetRule) Enabled

func (r *AwsRouteNotSpecifiedTargetRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsRouteNotSpecifiedTargetRule) Name

Name returns the rule name

func (*AwsRouteNotSpecifiedTargetRule) Severity

Severity returns the rule severity

type AwsRouteSpecifiedMultipleTargetsRule

type AwsRouteSpecifiedMultipleTargetsRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsRouteSpecifiedMultipleTargetsRule checks whether a route definition has multiple routing targets

func NewAwsRouteSpecifiedMultipleTargetsRule

func NewAwsRouteSpecifiedMultipleTargetsRule() *AwsRouteSpecifiedMultipleTargetsRule

NewAwsRouteSpecifiedMultipleTargetsRule returns new rule with default attributes

func (*AwsRouteSpecifiedMultipleTargetsRule) Check

Check checks whether a resource defines multiple targets

func (*AwsRouteSpecifiedMultipleTargetsRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsRouteSpecifiedMultipleTargetsRule) Name

Name returns the rule name

func (*AwsRouteSpecifiedMultipleTargetsRule) Severity

Severity returns the rule severity

type AwsS3BucketInvalidACLRule

type AwsS3BucketInvalidACLRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsS3BucketInvalidACLRule checks the pattern is valid

func NewAwsS3BucketInvalidACLRule

func NewAwsS3BucketInvalidACLRule() *AwsS3BucketInvalidACLRule

NewAwsS3BucketInvalidACLRule returns new rule with default attributes

func (*AwsS3BucketInvalidACLRule) Check

func (r *AwsS3BucketInvalidACLRule) Check(runner tflint.Runner) error

Check checks the pattern is valid

func (*AwsS3BucketInvalidACLRule) Enabled

func (r *AwsS3BucketInvalidACLRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsS3BucketInvalidACLRule) Name

Name returns the rule name

func (*AwsS3BucketInvalidACLRule) Severity

Severity returns the rule severity

type AwsS3BucketNameRule

type AwsS3BucketNameRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsS3BucketNameRule checks that an S3 bucket name matches naming rules

func NewAwsS3BucketNameRule

func NewAwsS3BucketNameRule() *AwsS3BucketNameRule

NewAwsS3BucketNameRule returns a new rule with default attributes

func (*AwsS3BucketNameRule) Check

func (r *AwsS3BucketNameRule) Check(runner tflint.Runner) error

Check if the name of the s3 bucket is valid

func (*AwsS3BucketNameRule) Enabled

func (r *AwsS3BucketNameRule) Enabled() bool

Enabled returns whether the rule is enabled by default

func (r *AwsS3BucketNameRule) Link() string

Link returns the rule reference link

func (*AwsS3BucketNameRule) Name

func (r *AwsS3BucketNameRule) Name() string

Name returns the rule name

func (*AwsS3BucketNameRule) Severity

func (r *AwsS3BucketNameRule) Severity() tflint.Severity

Severity returns the rule severity

type AwsSecurityGroupInvalidProtocolRule added in v0.15.0

type AwsSecurityGroupInvalidProtocolRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsSecurityGroupInvalidProtocolRule checks whether "protocol" in "ingress" or "egress" has invalid value

func NewAwsSecurityGroupInvalidProtocolRule added in v0.15.0

func NewAwsSecurityGroupInvalidProtocolRule() *AwsSecurityGroupInvalidProtocolRule

NewAwsSecurityGroupInvalidProtocolRule returns new rule with default attributes

func (*AwsSecurityGroupInvalidProtocolRule) Check added in v0.15.0

Check checks whether "protocol" in "ingress" or "egress" has invalid value

func (*AwsSecurityGroupInvalidProtocolRule) Enabled added in v0.15.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsSecurityGroupInvalidProtocolRule) Name added in v0.15.0

Name returns the rule name

func (*AwsSecurityGroupInvalidProtocolRule) Severity added in v0.15.0

Severity returns the rule severity

type AwsSecurityGroupRuleInvalidProtocolRule added in v0.15.0

type AwsSecurityGroupRuleInvalidProtocolRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsSecurityGroupRuleInvalidProtocolRule checks whether "protocol" has invalid value

func NewAwsSecurityGroupRuleInvalidProtocolRule added in v0.15.0

func NewAwsSecurityGroupRuleInvalidProtocolRule() *AwsSecurityGroupRuleInvalidProtocolRule

NewAwsSecurityGroupRuleInvalidProtocolRule returns new rule with default attributes

func (*AwsSecurityGroupRuleInvalidProtocolRule) Check added in v0.15.0

Check checks whether "protocol" has invalid value

func (*AwsSecurityGroupRuleInvalidProtocolRule) Enabled added in v0.15.0

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsSecurityGroupRuleInvalidProtocolRule) Name added in v0.15.0

Name returns the rule name

func (*AwsSecurityGroupRuleInvalidProtocolRule) Severity added in v0.15.0

Severity returns the rule severity

type AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule

type AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule struct {
	tflint.DefaultRule
	// contains filtered or unexported fields
}

AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule checks the pattern is valid

func NewAwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule

func NewAwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule() *AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule

NewAwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule returns new rule with default attributes

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Check

Check checks the pattern is valid

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Enabled

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Name

Name returns the rule name

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Severity

Severity returns the rule severity

Directories

Path Synopsis
Code generated by generator/main.go; DO NOT EDIT.
Code generated by generator/main.go; DO NOT EDIT.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL