awsrules

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v0.11.0

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

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

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 added in v0.11.0

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 added in v0.11.0

func (r *AwsDBInstancePreviousTypeRule) Severity() string

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 added in v0.11.0

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 added in v0.11.0

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 added in v0.11.0

Severity returns the rule severity

type AwsInstanceInvalidAMIRule

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

AwsInstanceInvalidAMIRule checks whether "aws_instance" has invalid AMI ID

func NewAwsInstanceInvalidAMIRule

func NewAwsInstanceInvalidAMIRule() *AwsInstanceInvalidAMIRule

NewAwsInstanceInvalidAMIRule returns new rule with default attributes

func (*AwsInstanceInvalidAMIRule) Check

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

Check checks whether "aws_instance" has invalid AMI ID

func (*AwsInstanceInvalidAMIRule) Enabled

func (r *AwsInstanceInvalidAMIRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsInstanceInvalidAMIRule) Name

Name returns the rule name

func (*AwsInstanceInvalidAMIRule) Severity added in v0.11.0

func (r *AwsInstanceInvalidAMIRule) Severity() string

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

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

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 added in v0.11.0

func (r *AwsInstancePreviousTypeRule) Severity() string

Severity returns the rule severity

type AwsLaunchConfigurationInvalidImageIDRule added in v0.8.3

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

AwsLaunchConfigurationInvalidImageIDRule checks whether "aws_instance" has invalid AMI ID

func NewAwsLaunchConfigurationInvalidImageIDRule added in v0.8.3

func NewAwsLaunchConfigurationInvalidImageIDRule() *AwsLaunchConfigurationInvalidImageIDRule

NewAwsLaunchConfigurationInvalidImageIDRule returns new rule with default attributes

func (*AwsLaunchConfigurationInvalidImageIDRule) Check added in v0.8.3

Check checks whether "aws_instance" has invalid AMI ID

func (*AwsLaunchConfigurationInvalidImageIDRule) Enabled added in v0.8.3

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsLaunchConfigurationInvalidImageIDRule) Name added in v0.8.3

Name returns the rule name

func (*AwsLaunchConfigurationInvalidImageIDRule) Severity added in v0.11.0

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` or `network_interface_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 added in v0.11.0

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 added in v0.11.0

Severity returns the rule severity

type AwsS3BucketInvalidACLRule added in v0.8.3

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

AwsS3BucketInvalidACLRule checks the pattern is valid

func NewAwsS3BucketInvalidACLRule added in v0.8.3

func NewAwsS3BucketInvalidACLRule() *AwsS3BucketInvalidACLRule

NewAwsS3BucketInvalidACLRule returns new rule with default attributes

func (*AwsS3BucketInvalidACLRule) Check added in v0.8.3

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

Check checks the pattern is valid

func (*AwsS3BucketInvalidACLRule) Enabled added in v0.8.3

func (r *AwsS3BucketInvalidACLRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsS3BucketInvalidACLRule) Name added in v0.8.3

Name returns the rule name

func (*AwsS3BucketInvalidACLRule) Severity added in v0.11.0

func (r *AwsS3BucketInvalidACLRule) Severity() string

Severity returns the rule severity

type AwsS3BucketInvalidRegionRule added in v0.11.2

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

AwsS3BucketInvalidRegionRule checks the pattern is valid

func NewAwsS3BucketInvalidRegionRule added in v0.11.2

func NewAwsS3BucketInvalidRegionRule() *AwsS3BucketInvalidRegionRule

NewAwsS3BucketInvalidRegionRule returns new rule with default attributes

func (*AwsS3BucketInvalidRegionRule) Check added in v0.11.2

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

Check checks the pattern is valid

func (*AwsS3BucketInvalidRegionRule) Enabled added in v0.11.2

func (r *AwsS3BucketInvalidRegionRule) Enabled() bool

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsS3BucketInvalidRegionRule) Name added in v0.11.2

Name returns the rule name

func (*AwsS3BucketInvalidRegionRule) Severity added in v0.11.2

func (r *AwsS3BucketInvalidRegionRule) Severity() string

Severity returns the rule severity

type AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule added in v0.10.2

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

AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule checks the pattern is valid

func NewAwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule added in v0.10.2

func NewAwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule() *AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule

NewAwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule returns new rule with default attributes

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Check added in v0.10.2

Check checks the pattern is valid

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Enabled added in v0.10.2

Enabled returns whether the rule is enabled by default

Link returns the rule reference link

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Name added in v0.10.2

Name returns the rule name

func (*AwsSpotFleetRequestInvalidExcessCapacityTerminationPolicyRule) Severity added in v0.11.0

Severity returns the rule severity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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