securitygroup

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SSH_PORT int = 22
	RDP_PORT int = 3389
	SSH_TCP      = IngressRules{Description: "SSH", FromPort: SSH_PORT, ToPort: SSH_PORT, Protocol: "tcp"}
	RDP_TCP      = IngressRules{Description: "RDP", FromPort: RDP_PORT, ToPort: RDP_PORT, Protocol: "tcp"}
)

Pick ideas from https://github.com/terraform-aws-modules/terraform-aws-security-group/blob/master/rules.tf

Functions

This section is empty.

Types

type IngressRules

type IngressRules struct {
	Description string
	FromPort    int
	ToPort      int
	Protocol    string
	CidrBlocks  string
}

type SecurityGroup

type SecurityGroup = *network.NetworkSecurityGroup

func Create

func Create(ctx *pulumi.Context, mCtx *mc.Context, args *SecurityGroupArgs) (SecurityGroup, error)

type SecurityGroupArgs

type SecurityGroupArgs struct {
	Name         string
	RG           *resources.ResourceGroup
	Location     *string
	IngressRules []IngressRules
}

Jump to

Keyboard shortcuts

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