Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPPermission ¶
type IPPermission struct { IPProtocol string `json:"ipProtocol"` // +optional FromPort *int64 `json:"fromPort,omitempty"` // +optional ToPort *int64 `json:"toPort,omitempty"` // +optional IPRanges []IPRange `json:"ipRanges,omitempty"` // +optional IPv6Range []IPv6Range `json:"ipv6Ranges,omitempty"` // +optional UserIDGroupPairs []UserIDGroupPair `json:"userIDGroupPairs,omitempty"` }
type SecurityGroup ¶
type SecurityGroup struct { core.ResourceMeta `json:"-"` // desired state of SecurityGroup Spec SecurityGroupSpec `json:"spec"` // observed state of SecurityGroup Status *SecurityGroupStatus `json:"status,omitempty"` }
SecurityGroup represents a EC2 SecurityGroup.
func NewSecurityGroup ¶
func NewSecurityGroup(stack core.Stack, id string, spec SecurityGroupSpec) *SecurityGroup
NewSecurityGroup constructs new SecurityGroup resource.
func (*SecurityGroup) GroupID ¶
func (sg *SecurityGroup) GroupID() core.StringToken
GroupID returns a token for this SecurityGroup's groupID.
func (*SecurityGroup) SetStatus ¶
func (sg *SecurityGroup) SetStatus(status SecurityGroupStatus)
SetStatus sets the SecurityGroup's status
type SecurityGroupSpec ¶
type SecurityGroupSpec struct { // The name of the security group. GroupName string `json:"groupName"` // A description for the security group. Description string `json:"description"` // +optional Tags map[string]string `json:"tags,omitempty"` // +optional Ingress []IPPermission `json:"ingress,omitempty"` }
SecurityGroupSpec defines the desired state of SecurityGroup
type SecurityGroupStatus ¶
type SecurityGroupStatus struct { // The ID of the security group. GroupID string `json:"groupID"` }
SecurityGroupStatus defines the observed state of SecurityGroup
type UserIDGroupPair ¶
Click to show internal directories.
Click to hide internal directories.