firewall

package
Version: v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Firewall

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

Manages a v1 firewall resource within OpenStack.

func GetFirewall

func GetFirewall(ctx *pulumi.Context,
	name string, id pulumi.ID, state *FirewallState, opts ...pulumi.ResourceOpt) (*Firewall, error)

GetFirewall gets an existing Firewall resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFirewall

func NewFirewall(ctx *pulumi.Context,
	name string, args *FirewallArgs, opts ...pulumi.ResourceOpt) (*Firewall, error)

NewFirewall registers a new resource with the given unique name, arguments, and options.

func (*Firewall) AdminStateUp

func (r *Firewall) AdminStateUp() *pulumi.BoolOutput

Administrative up/down status for the firewall (must be "true" or "false" if provided - defaults to "true"). Changing this updates the `admin_state_up` of an existing firewall.

func (*Firewall) AssociatedRouters

func (r *Firewall) AssociatedRouters() *pulumi.ArrayOutput

Router(s) to associate this firewall instance with. Must be a list of strings. Changing this updates the associated routers of an existing firewall. Conflicts with `no_routers`.

func (*Firewall) Description

func (r *Firewall) Description() *pulumi.StringOutput

A description for the firewall. Changing this updates the `description` of an existing firewall.

func (*Firewall) ID

func (r *Firewall) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Firewall) Name

func (r *Firewall) Name() *pulumi.StringOutput

A name for the firewall. Changing this updates the `name` of an existing firewall.

func (*Firewall) NoRouters

func (r *Firewall) NoRouters() *pulumi.BoolOutput

Should this firewall not be associated with any routers (must be "true" or "false" if provide - defaults to "false"). Conflicts with `associated_routers`.

func (*Firewall) PolicyId

func (r *Firewall) PolicyId() *pulumi.StringOutput

The policy resource id for the firewall. Changing this updates the `policy_id` of an existing firewall.

func (*Firewall) Region

func (r *Firewall) Region() *pulumi.StringOutput

The region in which to obtain the v1 networking client. A networking client is needed to create a firewall. If omitted, the `region` argument of the provider is used. Changing this creates a new firewall.

func (*Firewall) TenantId

func (r *Firewall) TenantId() *pulumi.StringOutput

The owner of the floating IP. Required if admin wants to create a firewall for another tenant. Changing this creates a new firewall.

func (*Firewall) URN

func (r *Firewall) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*Firewall) ValueSpecs

func (r *Firewall) ValueSpecs() *pulumi.MapOutput

Map of additional options.

type FirewallArgs

type FirewallArgs struct {
	// Administrative up/down status for the firewall
	// (must be "true" or "false" if provided - defaults to "true").
	// Changing this updates the `admin_state_up` of an existing firewall.
	AdminStateUp interface{}
	// Router(s) to associate this firewall instance
	// with. Must be a list of strings. Changing this updates the associated routers
	// of an existing firewall. Conflicts with `no_routers`.
	AssociatedRouters interface{}
	// A description for the firewall. Changing this
	// updates the `description` of an existing firewall.
	Description interface{}
	// A name for the firewall. Changing this
	// updates the `name` of an existing firewall.
	Name interface{}
	// Should this firewall not be associated with any routers
	// (must be "true" or "false" if provide - defaults to "false").
	// Conflicts with `associated_routers`.
	NoRouters interface{}
	// The policy resource id for the firewall. Changing
	// this updates the `policy_id` of an existing firewall.
	PolicyId interface{}
	// The region in which to obtain the v1 networking client.
	// A networking client is needed to create a firewall. If omitted, the
	// `region` argument of the provider is used. Changing this creates a new
	// firewall.
	Region interface{}
	// The owner of the floating IP. Required if admin wants
	// to create a firewall for another tenant. Changing this creates a new
	// firewall.
	TenantId interface{}
	// Map of additional options.
	ValueSpecs interface{}
}

The set of arguments for constructing a Firewall resource.

type FirewallState

type FirewallState struct {
	// Administrative up/down status for the firewall
	// (must be "true" or "false" if provided - defaults to "true").
	// Changing this updates the `admin_state_up` of an existing firewall.
	AdminStateUp interface{}
	// Router(s) to associate this firewall instance
	// with. Must be a list of strings. Changing this updates the associated routers
	// of an existing firewall. Conflicts with `no_routers`.
	AssociatedRouters interface{}
	// A description for the firewall. Changing this
	// updates the `description` of an existing firewall.
	Description interface{}
	// A name for the firewall. Changing this
	// updates the `name` of an existing firewall.
	Name interface{}
	// Should this firewall not be associated with any routers
	// (must be "true" or "false" if provide - defaults to "false").
	// Conflicts with `associated_routers`.
	NoRouters interface{}
	// The policy resource id for the firewall. Changing
	// this updates the `policy_id` of an existing firewall.
	PolicyId interface{}
	// The region in which to obtain the v1 networking client.
	// A networking client is needed to create a firewall. If omitted, the
	// `region` argument of the provider is used. Changing this creates a new
	// firewall.
	Region interface{}
	// The owner of the floating IP. Required if admin wants
	// to create a firewall for another tenant. Changing this creates a new
	// firewall.
	TenantId interface{}
	// Map of additional options.
	ValueSpecs interface{}
}

Input properties used for looking up and filtering Firewall resources.

type GetPolicyArgs added in v0.15.0

type GetPolicyArgs struct {
	// The name of the firewall policy.
	Name interface{}
	// The ID of the firewall policy.
	PolicyId interface{}
	// The region in which to obtain the V2 Neutron client.
	// A Neutron client is needed to retrieve firewall policy ids. If omitted, the
	// `region` argument of the provider is used.
	Region interface{}
	// The owner of the firewall policy.
	TenantId interface{}
}

A collection of arguments for invoking getPolicy.

type GetPolicyResult added in v0.15.0

type GetPolicyResult struct {
	// The audit status of the firewall policy.
	Audited interface{}
	// The description of the firewall policy.
	Description interface{}
	// See Argument Reference above.
	Region interface{}
	// The array of one or more firewall rules that comprise the policy.
	Rules interface{}
	// The sharing status of the firewall policy.
	Shared interface{}
	// See Argument Reference above.
	TenantId interface{}
	// id is the provider-assigned unique ID for this managed resource.
	Id interface{}
}

A collection of values returned by getPolicy.

func LookupPolicy added in v0.15.0

func LookupPolicy(ctx *pulumi.Context, args *GetPolicyArgs) (*GetPolicyResult, error)

Use this data source to get firewall policy information of an available OpenStack firewall policy.

type Policy

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

Manages a v1 firewall policy resource within OpenStack.

func GetPolicy

func GetPolicy(ctx *pulumi.Context,
	name string, id pulumi.ID, state *PolicyState, opts ...pulumi.ResourceOpt) (*Policy, error)

GetPolicy gets an existing Policy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPolicy

func NewPolicy(ctx *pulumi.Context,
	name string, args *PolicyArgs, opts ...pulumi.ResourceOpt) (*Policy, error)

NewPolicy registers a new resource with the given unique name, arguments, and options.

func (*Policy) Audited

func (r *Policy) Audited() *pulumi.BoolOutput

Audit status of the firewall policy (must be "true" or "false" if provided - defaults to "false"). This status is set to "false" whenever the firewall policy or any of its rules are changed. Changing this updates the `audited` status of an existing firewall policy.

func (*Policy) Description

func (r *Policy) Description() *pulumi.StringOutput

A description for the firewall policy. Changing this updates the `description` of an existing firewall policy.

func (*Policy) ID

func (r *Policy) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Policy) Name

func (r *Policy) Name() *pulumi.StringOutput

A name for the firewall policy. Changing this updates the `name` of an existing firewall policy.

func (*Policy) Region

func (r *Policy) Region() *pulumi.StringOutput

The region in which to obtain the v1 networking client. A networking client is needed to create a firewall policy. If omitted, the `region` argument of the provider is used. Changing this creates a new firewall policy.

func (*Policy) Rules

func (r *Policy) Rules() *pulumi.ArrayOutput

An array of one or more firewall rules that comprise the policy. Changing this results in adding/removing rules from the existing firewall policy.

func (*Policy) Shared

func (r *Policy) Shared() *pulumi.BoolOutput

Sharing status of the firewall policy (must be "true" or "false" if provided). If this is "true" the policy is visible to, and can be used in, firewalls in other tenants. Changing this updates the `shared` status of an existing firewall policy. Only administrative users can specify if the policy should be shared.

func (*Policy) TenantId

func (r *Policy) TenantId() *pulumi.StringOutput

func (*Policy) URN

func (r *Policy) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*Policy) ValueSpecs

func (r *Policy) ValueSpecs() *pulumi.MapOutput

Map of additional options.

type PolicyArgs

type PolicyArgs struct {
	// Audit status of the firewall policy
	// (must be "true" or "false" if provided - defaults to "false").
	// This status is set to "false" whenever the firewall policy or any of its
	// rules are changed. Changing this updates the `audited` status of an existing
	// firewall policy.
	Audited interface{}
	// A description for the firewall policy. Changing
	// this updates the `description` of an existing firewall policy.
	Description interface{}
	// A name for the firewall policy. Changing this
	// updates the `name` of an existing firewall policy.
	Name interface{}
	// The region in which to obtain the v1 networking client.
	// A networking client is needed to create a firewall policy. If omitted, the
	// `region` argument of the provider is used. Changing this creates a new
	// firewall policy.
	Region interface{}
	// An array of one or more firewall rules that comprise
	// the policy. Changing this results in adding/removing rules from the
	// existing firewall policy.
	Rules interface{}
	// Sharing status of the firewall policy (must be "true"
	// or "false" if provided). If this is "true" the policy is visible to, and
	// can be used in, firewalls in other tenants. Changing this updates the
	// `shared` status of an existing firewall policy. Only administrative users
	// can specify if the policy should be shared.
	Shared   interface{}
	TenantId interface{}
	// Map of additional options.
	ValueSpecs interface{}
}

The set of arguments for constructing a Policy resource.

type PolicyState

type PolicyState struct {
	// Audit status of the firewall policy
	// (must be "true" or "false" if provided - defaults to "false").
	// This status is set to "false" whenever the firewall policy or any of its
	// rules are changed. Changing this updates the `audited` status of an existing
	// firewall policy.
	Audited interface{}
	// A description for the firewall policy. Changing
	// this updates the `description` of an existing firewall policy.
	Description interface{}
	// A name for the firewall policy. Changing this
	// updates the `name` of an existing firewall policy.
	Name interface{}
	// The region in which to obtain the v1 networking client.
	// A networking client is needed to create a firewall policy. If omitted, the
	// `region` argument of the provider is used. Changing this creates a new
	// firewall policy.
	Region interface{}
	// An array of one or more firewall rules that comprise
	// the policy. Changing this results in adding/removing rules from the
	// existing firewall policy.
	Rules interface{}
	// Sharing status of the firewall policy (must be "true"
	// or "false" if provided). If this is "true" the policy is visible to, and
	// can be used in, firewalls in other tenants. Changing this updates the
	// `shared` status of an existing firewall policy. Only administrative users
	// can specify if the policy should be shared.
	Shared   interface{}
	TenantId interface{}
	// Map of additional options.
	ValueSpecs interface{}
}

Input properties used for looking up and filtering Policy resources.

type Rule

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

Manages a v1 firewall rule resource within OpenStack.

func GetRule

func GetRule(ctx *pulumi.Context,
	name string, id pulumi.ID, state *RuleState, opts ...pulumi.ResourceOpt) (*Rule, error)

GetRule gets an existing Rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRule

func NewRule(ctx *pulumi.Context,
	name string, args *RuleArgs, opts ...pulumi.ResourceOpt) (*Rule, error)

NewRule registers a new resource with the given unique name, arguments, and options.

func (*Rule) Action

func (r *Rule) Action() *pulumi.StringOutput

Action to be taken ( must be "allow" or "deny") when the firewall rule matches. Changing this updates the `action` of an existing firewall rule.

func (*Rule) Description

func (r *Rule) Description() *pulumi.StringOutput

A description for the firewall rule. Changing this updates the `description` of an existing firewall rule.

func (*Rule) DestinationIpAddress

func (r *Rule) DestinationIpAddress() *pulumi.StringOutput

The destination IP address on which the firewall rule operates. Changing this updates the `destination_ip_address` of an existing firewall rule.

func (*Rule) DestinationPort

func (r *Rule) DestinationPort() *pulumi.StringOutput

The destination port on which the firewall rule operates. Changing this updates the `destination_port` of an existing firewall rule.

func (*Rule) Enabled

func (r *Rule) Enabled() *pulumi.BoolOutput

Enabled status for the firewall rule (must be "true" or "false" if provided - defaults to "true"). Changing this updates the `enabled` status of an existing firewall rule.

func (*Rule) ID

func (r *Rule) ID() *pulumi.IDOutput

ID is this resource's unique identifier assigned by its provider.

func (*Rule) IpVersion

func (r *Rule) IpVersion() *pulumi.IntOutput

IP version, either 4 (default) or 6. Changing this updates the `ip_version` of an existing firewall rule.

func (*Rule) Name

func (r *Rule) Name() *pulumi.StringOutput

A unique name for the firewall rule. Changing this updates the `name` of an existing firewall rule.

func (*Rule) Protocol

func (r *Rule) Protocol() *pulumi.StringOutput

The protocol type on which the firewall rule operates. Valid values are: `tcp`, `udp`, `icmp`, and `any`. Changing this updates the `protocol` of an existing firewall rule.

func (*Rule) Region

func (r *Rule) Region() *pulumi.StringOutput

The region in which to obtain the v1 Compute client. A Compute client is needed to create a firewall rule. If omitted, the `region` argument of the provider is used. Changing this creates a new firewall rule.

func (*Rule) SourceIpAddress

func (r *Rule) SourceIpAddress() *pulumi.StringOutput

The source IP address on which the firewall rule operates. Changing this updates the `source_ip_address` of an existing firewall rule.

func (*Rule) SourcePort

func (r *Rule) SourcePort() *pulumi.StringOutput

The source port on which the firewall rule operates. Changing this updates the `source_port` of an existing firewall rule.

func (*Rule) TenantId

func (r *Rule) TenantId() *pulumi.StringOutput

The owner of the firewall rule. Required if admin wants to create a firewall rule for another tenant. Changing this creates a new firewall rule.

func (*Rule) URN

func (r *Rule) URN() *pulumi.URNOutput

URN is this resource's unique name assigned by Pulumi.

func (*Rule) ValueSpecs

func (r *Rule) ValueSpecs() *pulumi.MapOutput

Map of additional options.

type RuleArgs

type RuleArgs struct {
	// Action to be taken ( must be "allow" or "deny") when the
	// firewall rule matches. Changing this updates the `action` of an existing
	// firewall rule.
	Action interface{}
	// A description for the firewall rule. Changing this
	// updates the `description` of an existing firewall rule.
	Description interface{}
	// The destination IP address on which the
	// firewall rule operates. Changing this updates the `destination_ip_address`
	// of an existing firewall rule.
	DestinationIpAddress interface{}
	// The destination port on which the firewall
	// rule operates. Changing this updates the `destination_port` of an existing
	// firewall rule.
	DestinationPort interface{}
	// Enabled status for the firewall rule (must be "true"
	// or "false" if provided - defaults to "true"). Changing this updates the
	// `enabled` status of an existing firewall rule.
	Enabled interface{}
	// IP version, either 4 (default) or 6. Changing this
	// updates the `ip_version` of an existing firewall rule.
	IpVersion interface{}
	// A unique name for the firewall rule. Changing this
	// updates the `name` of an existing firewall rule.
	Name interface{}
	// The protocol type on which the firewall rule operates.
	// Valid values are: `tcp`, `udp`, `icmp`, and `any`. Changing this updates the
	// `protocol` of an existing firewall rule.
	Protocol interface{}
	// The region in which to obtain the v1 Compute client.
	// A Compute client is needed to create a firewall rule. If omitted, the
	// `region` argument of the provider is used. Changing this creates a new
	// firewall rule.
	Region interface{}
	// The source IP address on which the firewall
	// rule operates. Changing this updates the `source_ip_address` of an existing
	// firewall rule.
	SourceIpAddress interface{}
	// The source port on which the firewall
	// rule operates. Changing this updates the `source_port` of an existing
	// firewall rule.
	SourcePort interface{}
	// The owner of the firewall rule. Required if admin
	// wants to create a firewall rule for another tenant. Changing this creates a
	// new firewall rule.
	TenantId interface{}
	// Map of additional options.
	ValueSpecs interface{}
}

The set of arguments for constructing a Rule resource.

type RuleState

type RuleState struct {
	// Action to be taken ( must be "allow" or "deny") when the
	// firewall rule matches. Changing this updates the `action` of an existing
	// firewall rule.
	Action interface{}
	// A description for the firewall rule. Changing this
	// updates the `description` of an existing firewall rule.
	Description interface{}
	// The destination IP address on which the
	// firewall rule operates. Changing this updates the `destination_ip_address`
	// of an existing firewall rule.
	DestinationIpAddress interface{}
	// The destination port on which the firewall
	// rule operates. Changing this updates the `destination_port` of an existing
	// firewall rule.
	DestinationPort interface{}
	// Enabled status for the firewall rule (must be "true"
	// or "false" if provided - defaults to "true"). Changing this updates the
	// `enabled` status of an existing firewall rule.
	Enabled interface{}
	// IP version, either 4 (default) or 6. Changing this
	// updates the `ip_version` of an existing firewall rule.
	IpVersion interface{}
	// A unique name for the firewall rule. Changing this
	// updates the `name` of an existing firewall rule.
	Name interface{}
	// The protocol type on which the firewall rule operates.
	// Valid values are: `tcp`, `udp`, `icmp`, and `any`. Changing this updates the
	// `protocol` of an existing firewall rule.
	Protocol interface{}
	// The region in which to obtain the v1 Compute client.
	// A Compute client is needed to create a firewall rule. If omitted, the
	// `region` argument of the provider is used. Changing this creates a new
	// firewall rule.
	Region interface{}
	// The source IP address on which the firewall
	// rule operates. Changing this updates the `source_ip_address` of an existing
	// firewall rule.
	SourceIpAddress interface{}
	// The source port on which the firewall
	// rule operates. Changing this updates the `source_port` of an existing
	// firewall rule.
	SourcePort interface{}
	// The owner of the firewall rule. Required if admin
	// wants to create a firewall rule for another tenant. Changing this creates a
	// new firewall rule.
	TenantId interface{}
	// Map of additional options.
	ValueSpecs interface{}
}

Input properties used for looking up and filtering Rule resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL