rules

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Rules is a list of all rules

Functions

This section is empty.

Types

type AwsDBInstanceDefaultParameterGroupRule

type AwsDBInstanceDefaultParameterGroupRule struct {
	// 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 AwsDBInstanceInvalidTypeRule

type AwsDBInstanceInvalidTypeRule struct {
	// 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

func (r *AwsDBInstanceInvalidTypeRule) Severity() string

Severity returns the rule severity

type AwsDBInstancePreviousTypeRule

type AwsDBInstancePreviousTypeRule struct {
	// 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

func (r *AwsDBInstancePreviousTypeRule) Severity() string

Severity returns the rule severity

type AwsDynamoDBTableInvalidStreamViewTypeRule

type AwsDynamoDBTableInvalidStreamViewTypeRule struct {
	// 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 {
	// 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 {
	// 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 {
	// 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 AwsInstancePreviousTypeRule

type AwsInstancePreviousTypeRule struct {
	// 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

func (r *AwsInstancePreviousTypeRule) Severity() string

Severity returns the rule severity

type AwsMqBrokerInvalidEngineTypeRule

type AwsMqBrokerInvalidEngineTypeRule struct {
	// 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 {
	// 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{}

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

func (r *AwsResourceMissingTagsRule) Severity() string

Severity returns the rule severity

type AwsRouteNotSpecifiedTargetRule

type AwsRouteNotSpecifiedTargetRule struct {
	// 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 `gateway_id`, `egress_only_gateway_id`, `nat_gateway_id`, `instance_id` `vpc_peering_connection_id`, `network_interface_id` or `vpc_endpoint_id` 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

func (r *AwsRouteNotSpecifiedTargetRule) Severity() string

Severity returns the rule severity

type AwsRouteSpecifiedMultipleTargetsRule

type AwsRouteSpecifiedMultipleTargetsRule struct {
	// 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 `gateway_id`, `egress_only_gateway_id`, `nat_gateway_id` `instance_id`, `vpc_peering_connection_id` or `network_interface_id` at the same time

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 {
	// 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

func (r *AwsS3BucketInvalidACLRule) Severity() string

Severity returns the rule severity

type AwsS3BucketInvalidRegionRule

type AwsS3BucketInvalidRegionRule struct {
	// contains filtered or unexported fields
}

AwsS3BucketInvalidRegionRule checks the pattern is valid

func NewAwsS3BucketInvalidRegionRule

func NewAwsS3BucketInvalidRegionRule() *AwsS3BucketInvalidRegionRule

NewAwsS3BucketInvalidRegionRule returns new rule with default attributes

func (*AwsS3BucketInvalidRegionRule) Check

Check checks the pattern is valid

func (*AwsS3BucketInvalidRegionRule) Enabled

func (r *AwsS3BucketInvalidRegionRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsS3BucketInvalidRegionRule) Name

Name returns the rule name

func (*AwsS3BucketInvalidRegionRule) Severity

func (r *AwsS3BucketInvalidRegionRule) Severity() string

Severity returns the rule severity

type AwsS3BucketNameRule

type AwsS3BucketNameRule struct {
	// 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 matches the regex defined in the rule

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() string

Severity returns the rule severity

type AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule

type AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule struct {
	// 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