security

package
v0.0.0-...-9ab2e28 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-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 Group

type Group struct {
	pulumi.CustomResourceState

	// Description of the security group.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Name of the security group to be queried.
	Name pulumi.StringOutput `pulumi:"name"`
	// Project ID of the security group.
	ProjectId pulumi.IntOutput `pulumi:"projectId"`
	// Tags of the security group.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

func GetGroup

func GetGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupState, opts ...pulumi.ResourceOption) (*Group, error)

GetGroup gets an existing Group 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 NewGroup

func NewGroup(ctx *pulumi.Context,
	name string, args *GroupArgs, opts ...pulumi.ResourceOption) (*Group, error)

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

func (*Group) ElementType

func (*Group) ElementType() reflect.Type

func (*Group) ToGroupOutput

func (i *Group) ToGroupOutput() GroupOutput

func (*Group) ToGroupOutputWithContext

func (i *Group) ToGroupOutputWithContext(ctx context.Context) GroupOutput

type GroupArgs

type GroupArgs struct {
	// Description of the security group.
	Description pulumi.StringPtrInput
	// Name of the security group to be queried.
	Name pulumi.StringPtrInput
	// Project ID of the security group.
	ProjectId pulumi.IntPtrInput
	// Tags of the security group.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Group resource.

func (GroupArgs) ElementType

func (GroupArgs) ElementType() reflect.Type

type GroupArray

type GroupArray []GroupInput

func (GroupArray) ElementType

func (GroupArray) ElementType() reflect.Type

func (GroupArray) ToGroupArrayOutput

func (i GroupArray) ToGroupArrayOutput() GroupArrayOutput

func (GroupArray) ToGroupArrayOutputWithContext

func (i GroupArray) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupArrayInput

type GroupArrayInput interface {
	pulumi.Input

	ToGroupArrayOutput() GroupArrayOutput
	ToGroupArrayOutputWithContext(context.Context) GroupArrayOutput
}

GroupArrayInput is an input type that accepts GroupArray and GroupArrayOutput values. You can construct a concrete instance of `GroupArrayInput` via:

GroupArray{ GroupArgs{...} }

type GroupArrayOutput

type GroupArrayOutput struct{ *pulumi.OutputState }

func (GroupArrayOutput) ElementType

func (GroupArrayOutput) ElementType() reflect.Type

func (GroupArrayOutput) Index

func (GroupArrayOutput) ToGroupArrayOutput

func (o GroupArrayOutput) ToGroupArrayOutput() GroupArrayOutput

func (GroupArrayOutput) ToGroupArrayOutputWithContext

func (o GroupArrayOutput) ToGroupArrayOutputWithContext(ctx context.Context) GroupArrayOutput

type GroupInput

type GroupInput interface {
	pulumi.Input

	ToGroupOutput() GroupOutput
	ToGroupOutputWithContext(ctx context.Context) GroupOutput
}

type GroupLiteRule

type GroupLiteRule struct {
	pulumi.CustomResourceState

	// Egress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of
	// 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address
	// Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`,
	// `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.
	Egresses pulumi.StringArrayOutput `pulumi:"egresses"`
	// Ingress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of
	// 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address
	// Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`,
	// `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.
	Ingresses pulumi.StringArrayOutput `pulumi:"ingresses"`
	// ID of the security group.
	SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
}

func GetGroupLiteRule

func GetGroupLiteRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupLiteRuleState, opts ...pulumi.ResourceOption) (*GroupLiteRule, error)

GetGroupLiteRule gets an existing GroupLiteRule 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 NewGroupLiteRule

func NewGroupLiteRule(ctx *pulumi.Context,
	name string, args *GroupLiteRuleArgs, opts ...pulumi.ResourceOption) (*GroupLiteRule, error)

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

func (*GroupLiteRule) ElementType

func (*GroupLiteRule) ElementType() reflect.Type

func (*GroupLiteRule) ToGroupLiteRuleOutput

func (i *GroupLiteRule) ToGroupLiteRuleOutput() GroupLiteRuleOutput

func (*GroupLiteRule) ToGroupLiteRuleOutputWithContext

func (i *GroupLiteRule) ToGroupLiteRuleOutputWithContext(ctx context.Context) GroupLiteRuleOutput

type GroupLiteRuleArgs

type GroupLiteRuleArgs struct {
	// Egress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of
	// 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address
	// Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`,
	// `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.
	Egresses pulumi.StringArrayInput
	// Ingress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of
	// 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address
	// Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`,
	// `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.
	Ingresses pulumi.StringArrayInput
	// ID of the security group.
	SecurityGroupId pulumi.StringInput
}

The set of arguments for constructing a GroupLiteRule resource.

func (GroupLiteRuleArgs) ElementType

func (GroupLiteRuleArgs) ElementType() reflect.Type

type GroupLiteRuleArray

type GroupLiteRuleArray []GroupLiteRuleInput

func (GroupLiteRuleArray) ElementType

func (GroupLiteRuleArray) ElementType() reflect.Type

func (GroupLiteRuleArray) ToGroupLiteRuleArrayOutput

func (i GroupLiteRuleArray) ToGroupLiteRuleArrayOutput() GroupLiteRuleArrayOutput

func (GroupLiteRuleArray) ToGroupLiteRuleArrayOutputWithContext

func (i GroupLiteRuleArray) ToGroupLiteRuleArrayOutputWithContext(ctx context.Context) GroupLiteRuleArrayOutput

type GroupLiteRuleArrayInput

type GroupLiteRuleArrayInput interface {
	pulumi.Input

	ToGroupLiteRuleArrayOutput() GroupLiteRuleArrayOutput
	ToGroupLiteRuleArrayOutputWithContext(context.Context) GroupLiteRuleArrayOutput
}

GroupLiteRuleArrayInput is an input type that accepts GroupLiteRuleArray and GroupLiteRuleArrayOutput values. You can construct a concrete instance of `GroupLiteRuleArrayInput` via:

GroupLiteRuleArray{ GroupLiteRuleArgs{...} }

type GroupLiteRuleArrayOutput

type GroupLiteRuleArrayOutput struct{ *pulumi.OutputState }

func (GroupLiteRuleArrayOutput) ElementType

func (GroupLiteRuleArrayOutput) ElementType() reflect.Type

func (GroupLiteRuleArrayOutput) Index

func (GroupLiteRuleArrayOutput) ToGroupLiteRuleArrayOutput

func (o GroupLiteRuleArrayOutput) ToGroupLiteRuleArrayOutput() GroupLiteRuleArrayOutput

func (GroupLiteRuleArrayOutput) ToGroupLiteRuleArrayOutputWithContext

func (o GroupLiteRuleArrayOutput) ToGroupLiteRuleArrayOutputWithContext(ctx context.Context) GroupLiteRuleArrayOutput

type GroupLiteRuleInput

type GroupLiteRuleInput interface {
	pulumi.Input

	ToGroupLiteRuleOutput() GroupLiteRuleOutput
	ToGroupLiteRuleOutputWithContext(ctx context.Context) GroupLiteRuleOutput
}

type GroupLiteRuleMap

type GroupLiteRuleMap map[string]GroupLiteRuleInput

func (GroupLiteRuleMap) ElementType

func (GroupLiteRuleMap) ElementType() reflect.Type

func (GroupLiteRuleMap) ToGroupLiteRuleMapOutput

func (i GroupLiteRuleMap) ToGroupLiteRuleMapOutput() GroupLiteRuleMapOutput

func (GroupLiteRuleMap) ToGroupLiteRuleMapOutputWithContext

func (i GroupLiteRuleMap) ToGroupLiteRuleMapOutputWithContext(ctx context.Context) GroupLiteRuleMapOutput

type GroupLiteRuleMapInput

type GroupLiteRuleMapInput interface {
	pulumi.Input

	ToGroupLiteRuleMapOutput() GroupLiteRuleMapOutput
	ToGroupLiteRuleMapOutputWithContext(context.Context) GroupLiteRuleMapOutput
}

GroupLiteRuleMapInput is an input type that accepts GroupLiteRuleMap and GroupLiteRuleMapOutput values. You can construct a concrete instance of `GroupLiteRuleMapInput` via:

GroupLiteRuleMap{ "key": GroupLiteRuleArgs{...} }

type GroupLiteRuleMapOutput

type GroupLiteRuleMapOutput struct{ *pulumi.OutputState }

func (GroupLiteRuleMapOutput) ElementType

func (GroupLiteRuleMapOutput) ElementType() reflect.Type

func (GroupLiteRuleMapOutput) MapIndex

func (GroupLiteRuleMapOutput) ToGroupLiteRuleMapOutput

func (o GroupLiteRuleMapOutput) ToGroupLiteRuleMapOutput() GroupLiteRuleMapOutput

func (GroupLiteRuleMapOutput) ToGroupLiteRuleMapOutputWithContext

func (o GroupLiteRuleMapOutput) ToGroupLiteRuleMapOutputWithContext(ctx context.Context) GroupLiteRuleMapOutput

type GroupLiteRuleOutput

type GroupLiteRuleOutput struct{ *pulumi.OutputState }

func (GroupLiteRuleOutput) Egresses

Egress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`, `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.

func (GroupLiteRuleOutput) ElementType

func (GroupLiteRuleOutput) ElementType() reflect.Type

func (GroupLiteRuleOutput) Ingresses

Ingress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`, `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.

func (GroupLiteRuleOutput) SecurityGroupId

func (o GroupLiteRuleOutput) SecurityGroupId() pulumi.StringOutput

ID of the security group.

func (GroupLiteRuleOutput) ToGroupLiteRuleOutput

func (o GroupLiteRuleOutput) ToGroupLiteRuleOutput() GroupLiteRuleOutput

func (GroupLiteRuleOutput) ToGroupLiteRuleOutputWithContext

func (o GroupLiteRuleOutput) ToGroupLiteRuleOutputWithContext(ctx context.Context) GroupLiteRuleOutput

type GroupLiteRuleState

type GroupLiteRuleState struct {
	// Egress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of
	// 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address
	// Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`,
	// `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.
	Egresses pulumi.StringArrayInput
	// Ingress rules set. A rule must match the following format: [action]#[source]#[port]#[protocol]. The available value of
	// 'action' is `ACCEPT` and `DROP`. The 'source' can be an IP address network, segment, security group ID and Address
	// Template ID. The 'port' valid format is `80`, `80,443`, `80-90` or `ALL`. The available value of 'protocol' is `TCP`,
	// `UDP`, `ICMP` and `ALL`. When 'protocol' is `ICMP` or `ALL`, the 'port' must be `ALL`.
	Ingresses pulumi.StringArrayInput
	// ID of the security group.
	SecurityGroupId pulumi.StringPtrInput
}

func (GroupLiteRuleState) ElementType

func (GroupLiteRuleState) ElementType() reflect.Type

type GroupMap

type GroupMap map[string]GroupInput

func (GroupMap) ElementType

func (GroupMap) ElementType() reflect.Type

func (GroupMap) ToGroupMapOutput

func (i GroupMap) ToGroupMapOutput() GroupMapOutput

func (GroupMap) ToGroupMapOutputWithContext

func (i GroupMap) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupMapInput

type GroupMapInput interface {
	pulumi.Input

	ToGroupMapOutput() GroupMapOutput
	ToGroupMapOutputWithContext(context.Context) GroupMapOutput
}

GroupMapInput is an input type that accepts GroupMap and GroupMapOutput values. You can construct a concrete instance of `GroupMapInput` via:

GroupMap{ "key": GroupArgs{...} }

type GroupMapOutput

type GroupMapOutput struct{ *pulumi.OutputState }

func (GroupMapOutput) ElementType

func (GroupMapOutput) ElementType() reflect.Type

func (GroupMapOutput) MapIndex

func (GroupMapOutput) ToGroupMapOutput

func (o GroupMapOutput) ToGroupMapOutput() GroupMapOutput

func (GroupMapOutput) ToGroupMapOutputWithContext

func (o GroupMapOutput) ToGroupMapOutputWithContext(ctx context.Context) GroupMapOutput

type GroupOutput

type GroupOutput struct{ *pulumi.OutputState }

func (GroupOutput) Description

func (o GroupOutput) Description() pulumi.StringPtrOutput

Description of the security group.

func (GroupOutput) ElementType

func (GroupOutput) ElementType() reflect.Type

func (GroupOutput) Name

func (o GroupOutput) Name() pulumi.StringOutput

Name of the security group to be queried.

func (GroupOutput) ProjectId

func (o GroupOutput) ProjectId() pulumi.IntOutput

Project ID of the security group.

func (GroupOutput) Tags

func (o GroupOutput) Tags() pulumi.MapOutput

Tags of the security group.

func (GroupOutput) ToGroupOutput

func (o GroupOutput) ToGroupOutput() GroupOutput

func (GroupOutput) ToGroupOutputWithContext

func (o GroupOutput) ToGroupOutputWithContext(ctx context.Context) GroupOutput

type GroupRule

type GroupRule struct {
	pulumi.CustomResourceState

	// ID of the address template, and confilicts with `source_sgid` and `cidr_ip`.
	AddressTemplate GroupRuleAddressTemplateOutput `pulumi:"addressTemplate"`
	// An IP address network or segment, and conflict with `source_sgid` and `address_template`.
	CidrIp pulumi.StringPtrOutput `pulumi:"cidrIp"`
	// Description of the security group rule.
	Description pulumi.StringOutput `pulumi:"description"`
	// Type of IP protocol. Valid values: `TCP`, `UDP` and `ICMP`. Default to all types protocol, and conflicts with
	// `protocol_template`.
	IpProtocol pulumi.StringOutput `pulumi:"ipProtocol"`
	// Rule policy of security group. Valid values: `ACCEPT` and `DROP`.
	Policy pulumi.StringOutput `pulumi:"policy"`
	// Range of the port. The available value can be one, multiple or one segment. E.g. `80`, `80,90` and `80-90`. Default to
	// all ports, and confilicts with `protocol_template`.
	PortRange pulumi.StringOutput `pulumi:"portRange"`
	// ID of the address template, and conflict with `ip_protocol`, `port_range`.
	ProtocolTemplate GroupRuleProtocolTemplateOutput `pulumi:"protocolTemplate"`
	// ID of the security group to be queried.
	SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
	// ID of the nested security group, and conflicts with `cidr_ip` and `address_template`.
	SourceSgid pulumi.StringOutput `pulumi:"sourceSgid"`
	// Type of the security group rule. Valid values: `ingress` and `egress`.
	Type pulumi.StringOutput `pulumi:"type"`
}

func GetGroupRule

func GetGroupRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *GroupRuleState, opts ...pulumi.ResourceOption) (*GroupRule, error)

GetGroupRule gets an existing GroupRule 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 NewGroupRule

func NewGroupRule(ctx *pulumi.Context,
	name string, args *GroupRuleArgs, opts ...pulumi.ResourceOption) (*GroupRule, error)

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

func (*GroupRule) ElementType

func (*GroupRule) ElementType() reflect.Type

func (*GroupRule) ToGroupRuleOutput

func (i *GroupRule) ToGroupRuleOutput() GroupRuleOutput

func (*GroupRule) ToGroupRuleOutputWithContext

func (i *GroupRule) ToGroupRuleOutputWithContext(ctx context.Context) GroupRuleOutput

type GroupRuleAddressTemplate

type GroupRuleAddressTemplate struct {
	GroupId    *string `pulumi:"groupId"`
	TemplateId *string `pulumi:"templateId"`
}

type GroupRuleAddressTemplateArgs

type GroupRuleAddressTemplateArgs struct {
	GroupId    pulumi.StringPtrInput `pulumi:"groupId"`
	TemplateId pulumi.StringPtrInput `pulumi:"templateId"`
}

func (GroupRuleAddressTemplateArgs) ElementType

func (GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplateOutput

func (i GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplateOutput() GroupRuleAddressTemplateOutput

func (GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplateOutputWithContext

func (i GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplateOutputWithContext(ctx context.Context) GroupRuleAddressTemplateOutput

func (GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplatePtrOutput

func (i GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplatePtrOutput() GroupRuleAddressTemplatePtrOutput

func (GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplatePtrOutputWithContext

func (i GroupRuleAddressTemplateArgs) ToGroupRuleAddressTemplatePtrOutputWithContext(ctx context.Context) GroupRuleAddressTemplatePtrOutput

type GroupRuleAddressTemplateInput

type GroupRuleAddressTemplateInput interface {
	pulumi.Input

	ToGroupRuleAddressTemplateOutput() GroupRuleAddressTemplateOutput
	ToGroupRuleAddressTemplateOutputWithContext(context.Context) GroupRuleAddressTemplateOutput
}

GroupRuleAddressTemplateInput is an input type that accepts GroupRuleAddressTemplateArgs and GroupRuleAddressTemplateOutput values. You can construct a concrete instance of `GroupRuleAddressTemplateInput` via:

GroupRuleAddressTemplateArgs{...}

type GroupRuleAddressTemplateOutput

type GroupRuleAddressTemplateOutput struct{ *pulumi.OutputState }

func (GroupRuleAddressTemplateOutput) ElementType

func (GroupRuleAddressTemplateOutput) GroupId

func (GroupRuleAddressTemplateOutput) TemplateId

func (GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplateOutput

func (o GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplateOutput() GroupRuleAddressTemplateOutput

func (GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplateOutputWithContext

func (o GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplateOutputWithContext(ctx context.Context) GroupRuleAddressTemplateOutput

func (GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplatePtrOutput

func (o GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplatePtrOutput() GroupRuleAddressTemplatePtrOutput

func (GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplatePtrOutputWithContext

func (o GroupRuleAddressTemplateOutput) ToGroupRuleAddressTemplatePtrOutputWithContext(ctx context.Context) GroupRuleAddressTemplatePtrOutput

type GroupRuleAddressTemplatePtrInput

type GroupRuleAddressTemplatePtrInput interface {
	pulumi.Input

	ToGroupRuleAddressTemplatePtrOutput() GroupRuleAddressTemplatePtrOutput
	ToGroupRuleAddressTemplatePtrOutputWithContext(context.Context) GroupRuleAddressTemplatePtrOutput
}

GroupRuleAddressTemplatePtrInput is an input type that accepts GroupRuleAddressTemplateArgs, GroupRuleAddressTemplatePtr and GroupRuleAddressTemplatePtrOutput values. You can construct a concrete instance of `GroupRuleAddressTemplatePtrInput` via:

        GroupRuleAddressTemplateArgs{...}

or:

        nil

type GroupRuleAddressTemplatePtrOutput

type GroupRuleAddressTemplatePtrOutput struct{ *pulumi.OutputState }

func (GroupRuleAddressTemplatePtrOutput) Elem

func (GroupRuleAddressTemplatePtrOutput) ElementType

func (GroupRuleAddressTemplatePtrOutput) GroupId

func (GroupRuleAddressTemplatePtrOutput) TemplateId

func (GroupRuleAddressTemplatePtrOutput) ToGroupRuleAddressTemplatePtrOutput

func (o GroupRuleAddressTemplatePtrOutput) ToGroupRuleAddressTemplatePtrOutput() GroupRuleAddressTemplatePtrOutput

func (GroupRuleAddressTemplatePtrOutput) ToGroupRuleAddressTemplatePtrOutputWithContext

func (o GroupRuleAddressTemplatePtrOutput) ToGroupRuleAddressTemplatePtrOutputWithContext(ctx context.Context) GroupRuleAddressTemplatePtrOutput

type GroupRuleArgs

type GroupRuleArgs struct {
	// ID of the address template, and confilicts with `source_sgid` and `cidr_ip`.
	AddressTemplate GroupRuleAddressTemplatePtrInput
	// An IP address network or segment, and conflict with `source_sgid` and `address_template`.
	CidrIp pulumi.StringPtrInput
	// Description of the security group rule.
	Description pulumi.StringPtrInput
	// Type of IP protocol. Valid values: `TCP`, `UDP` and `ICMP`. Default to all types protocol, and conflicts with
	// `protocol_template`.
	IpProtocol pulumi.StringPtrInput
	// Rule policy of security group. Valid values: `ACCEPT` and `DROP`.
	Policy pulumi.StringInput
	// Range of the port. The available value can be one, multiple or one segment. E.g. `80`, `80,90` and `80-90`. Default to
	// all ports, and confilicts with `protocol_template`.
	PortRange pulumi.StringPtrInput
	// ID of the address template, and conflict with `ip_protocol`, `port_range`.
	ProtocolTemplate GroupRuleProtocolTemplatePtrInput
	// ID of the security group to be queried.
	SecurityGroupId pulumi.StringInput
	// ID of the nested security group, and conflicts with `cidr_ip` and `address_template`.
	SourceSgid pulumi.StringPtrInput
	// Type of the security group rule. Valid values: `ingress` and `egress`.
	Type pulumi.StringInput
}

The set of arguments for constructing a GroupRule resource.

func (GroupRuleArgs) ElementType

func (GroupRuleArgs) ElementType() reflect.Type

type GroupRuleArray

type GroupRuleArray []GroupRuleInput

func (GroupRuleArray) ElementType

func (GroupRuleArray) ElementType() reflect.Type

func (GroupRuleArray) ToGroupRuleArrayOutput

func (i GroupRuleArray) ToGroupRuleArrayOutput() GroupRuleArrayOutput

func (GroupRuleArray) ToGroupRuleArrayOutputWithContext

func (i GroupRuleArray) ToGroupRuleArrayOutputWithContext(ctx context.Context) GroupRuleArrayOutput

type GroupRuleArrayInput

type GroupRuleArrayInput interface {
	pulumi.Input

	ToGroupRuleArrayOutput() GroupRuleArrayOutput
	ToGroupRuleArrayOutputWithContext(context.Context) GroupRuleArrayOutput
}

GroupRuleArrayInput is an input type that accepts GroupRuleArray and GroupRuleArrayOutput values. You can construct a concrete instance of `GroupRuleArrayInput` via:

GroupRuleArray{ GroupRuleArgs{...} }

type GroupRuleArrayOutput

type GroupRuleArrayOutput struct{ *pulumi.OutputState }

func (GroupRuleArrayOutput) ElementType

func (GroupRuleArrayOutput) ElementType() reflect.Type

func (GroupRuleArrayOutput) Index

func (GroupRuleArrayOutput) ToGroupRuleArrayOutput

func (o GroupRuleArrayOutput) ToGroupRuleArrayOutput() GroupRuleArrayOutput

func (GroupRuleArrayOutput) ToGroupRuleArrayOutputWithContext

func (o GroupRuleArrayOutput) ToGroupRuleArrayOutputWithContext(ctx context.Context) GroupRuleArrayOutput

type GroupRuleInput

type GroupRuleInput interface {
	pulumi.Input

	ToGroupRuleOutput() GroupRuleOutput
	ToGroupRuleOutputWithContext(ctx context.Context) GroupRuleOutput
}

type GroupRuleMap

type GroupRuleMap map[string]GroupRuleInput

func (GroupRuleMap) ElementType

func (GroupRuleMap) ElementType() reflect.Type

func (GroupRuleMap) ToGroupRuleMapOutput

func (i GroupRuleMap) ToGroupRuleMapOutput() GroupRuleMapOutput

func (GroupRuleMap) ToGroupRuleMapOutputWithContext

func (i GroupRuleMap) ToGroupRuleMapOutputWithContext(ctx context.Context) GroupRuleMapOutput

type GroupRuleMapInput

type GroupRuleMapInput interface {
	pulumi.Input

	ToGroupRuleMapOutput() GroupRuleMapOutput
	ToGroupRuleMapOutputWithContext(context.Context) GroupRuleMapOutput
}

GroupRuleMapInput is an input type that accepts GroupRuleMap and GroupRuleMapOutput values. You can construct a concrete instance of `GroupRuleMapInput` via:

GroupRuleMap{ "key": GroupRuleArgs{...} }

type GroupRuleMapOutput

type GroupRuleMapOutput struct{ *pulumi.OutputState }

func (GroupRuleMapOutput) ElementType

func (GroupRuleMapOutput) ElementType() reflect.Type

func (GroupRuleMapOutput) MapIndex

func (GroupRuleMapOutput) ToGroupRuleMapOutput

func (o GroupRuleMapOutput) ToGroupRuleMapOutput() GroupRuleMapOutput

func (GroupRuleMapOutput) ToGroupRuleMapOutputWithContext

func (o GroupRuleMapOutput) ToGroupRuleMapOutputWithContext(ctx context.Context) GroupRuleMapOutput

type GroupRuleOutput

type GroupRuleOutput struct{ *pulumi.OutputState }

func (GroupRuleOutput) AddressTemplate

func (o GroupRuleOutput) AddressTemplate() GroupRuleAddressTemplateOutput

ID of the address template, and confilicts with `source_sgid` and `cidr_ip`.

func (GroupRuleOutput) CidrIp

An IP address network or segment, and conflict with `source_sgid` and `address_template`.

func (GroupRuleOutput) Description

func (o GroupRuleOutput) Description() pulumi.StringOutput

Description of the security group rule.

func (GroupRuleOutput) ElementType

func (GroupRuleOutput) ElementType() reflect.Type

func (GroupRuleOutput) IpProtocol

func (o GroupRuleOutput) IpProtocol() pulumi.StringOutput

Type of IP protocol. Valid values: `TCP`, `UDP` and `ICMP`. Default to all types protocol, and conflicts with `protocol_template`.

func (GroupRuleOutput) Policy

func (o GroupRuleOutput) Policy() pulumi.StringOutput

Rule policy of security group. Valid values: `ACCEPT` and `DROP`.

func (GroupRuleOutput) PortRange

func (o GroupRuleOutput) PortRange() pulumi.StringOutput

Range of the port. The available value can be one, multiple or one segment. E.g. `80`, `80,90` and `80-90`. Default to all ports, and confilicts with `protocol_template`.

func (GroupRuleOutput) ProtocolTemplate

func (o GroupRuleOutput) ProtocolTemplate() GroupRuleProtocolTemplateOutput

ID of the address template, and conflict with `ip_protocol`, `port_range`.

func (GroupRuleOutput) SecurityGroupId

func (o GroupRuleOutput) SecurityGroupId() pulumi.StringOutput

ID of the security group to be queried.

func (GroupRuleOutput) SourceSgid

func (o GroupRuleOutput) SourceSgid() pulumi.StringOutput

ID of the nested security group, and conflicts with `cidr_ip` and `address_template`.

func (GroupRuleOutput) ToGroupRuleOutput

func (o GroupRuleOutput) ToGroupRuleOutput() GroupRuleOutput

func (GroupRuleOutput) ToGroupRuleOutputWithContext

func (o GroupRuleOutput) ToGroupRuleOutputWithContext(ctx context.Context) GroupRuleOutput

func (GroupRuleOutput) Type

Type of the security group rule. Valid values: `ingress` and `egress`.

type GroupRuleProtocolTemplate

type GroupRuleProtocolTemplate struct {
	GroupId    *string `pulumi:"groupId"`
	TemplateId *string `pulumi:"templateId"`
}

type GroupRuleProtocolTemplateArgs

type GroupRuleProtocolTemplateArgs struct {
	GroupId    pulumi.StringPtrInput `pulumi:"groupId"`
	TemplateId pulumi.StringPtrInput `pulumi:"templateId"`
}

func (GroupRuleProtocolTemplateArgs) ElementType

func (GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplateOutput

func (i GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplateOutput() GroupRuleProtocolTemplateOutput

func (GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplateOutputWithContext

func (i GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplateOutputWithContext(ctx context.Context) GroupRuleProtocolTemplateOutput

func (GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplatePtrOutput

func (i GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplatePtrOutput() GroupRuleProtocolTemplatePtrOutput

func (GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplatePtrOutputWithContext

func (i GroupRuleProtocolTemplateArgs) ToGroupRuleProtocolTemplatePtrOutputWithContext(ctx context.Context) GroupRuleProtocolTemplatePtrOutput

type GroupRuleProtocolTemplateInput

type GroupRuleProtocolTemplateInput interface {
	pulumi.Input

	ToGroupRuleProtocolTemplateOutput() GroupRuleProtocolTemplateOutput
	ToGroupRuleProtocolTemplateOutputWithContext(context.Context) GroupRuleProtocolTemplateOutput
}

GroupRuleProtocolTemplateInput is an input type that accepts GroupRuleProtocolTemplateArgs and GroupRuleProtocolTemplateOutput values. You can construct a concrete instance of `GroupRuleProtocolTemplateInput` via:

GroupRuleProtocolTemplateArgs{...}

type GroupRuleProtocolTemplateOutput

type GroupRuleProtocolTemplateOutput struct{ *pulumi.OutputState }

func (GroupRuleProtocolTemplateOutput) ElementType

func (GroupRuleProtocolTemplateOutput) GroupId

func (GroupRuleProtocolTemplateOutput) TemplateId

func (GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplateOutput

func (o GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplateOutput() GroupRuleProtocolTemplateOutput

func (GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplateOutputWithContext

func (o GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplateOutputWithContext(ctx context.Context) GroupRuleProtocolTemplateOutput

func (GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplatePtrOutput

func (o GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplatePtrOutput() GroupRuleProtocolTemplatePtrOutput

func (GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplatePtrOutputWithContext

func (o GroupRuleProtocolTemplateOutput) ToGroupRuleProtocolTemplatePtrOutputWithContext(ctx context.Context) GroupRuleProtocolTemplatePtrOutput

type GroupRuleProtocolTemplatePtrInput

type GroupRuleProtocolTemplatePtrInput interface {
	pulumi.Input

	ToGroupRuleProtocolTemplatePtrOutput() GroupRuleProtocolTemplatePtrOutput
	ToGroupRuleProtocolTemplatePtrOutputWithContext(context.Context) GroupRuleProtocolTemplatePtrOutput
}

GroupRuleProtocolTemplatePtrInput is an input type that accepts GroupRuleProtocolTemplateArgs, GroupRuleProtocolTemplatePtr and GroupRuleProtocolTemplatePtrOutput values. You can construct a concrete instance of `GroupRuleProtocolTemplatePtrInput` via:

        GroupRuleProtocolTemplateArgs{...}

or:

        nil

type GroupRuleProtocolTemplatePtrOutput

type GroupRuleProtocolTemplatePtrOutput struct{ *pulumi.OutputState }

func (GroupRuleProtocolTemplatePtrOutput) Elem

func (GroupRuleProtocolTemplatePtrOutput) ElementType

func (GroupRuleProtocolTemplatePtrOutput) GroupId

func (GroupRuleProtocolTemplatePtrOutput) TemplateId

func (GroupRuleProtocolTemplatePtrOutput) ToGroupRuleProtocolTemplatePtrOutput

func (o GroupRuleProtocolTemplatePtrOutput) ToGroupRuleProtocolTemplatePtrOutput() GroupRuleProtocolTemplatePtrOutput

func (GroupRuleProtocolTemplatePtrOutput) ToGroupRuleProtocolTemplatePtrOutputWithContext

func (o GroupRuleProtocolTemplatePtrOutput) ToGroupRuleProtocolTemplatePtrOutputWithContext(ctx context.Context) GroupRuleProtocolTemplatePtrOutput

type GroupRuleState

type GroupRuleState struct {
	// ID of the address template, and confilicts with `source_sgid` and `cidr_ip`.
	AddressTemplate GroupRuleAddressTemplatePtrInput
	// An IP address network or segment, and conflict with `source_sgid` and `address_template`.
	CidrIp pulumi.StringPtrInput
	// Description of the security group rule.
	Description pulumi.StringPtrInput
	// Type of IP protocol. Valid values: `TCP`, `UDP` and `ICMP`. Default to all types protocol, and conflicts with
	// `protocol_template`.
	IpProtocol pulumi.StringPtrInput
	// Rule policy of security group. Valid values: `ACCEPT` and `DROP`.
	Policy pulumi.StringPtrInput
	// Range of the port. The available value can be one, multiple or one segment. E.g. `80`, `80,90` and `80-90`. Default to
	// all ports, and confilicts with `protocol_template`.
	PortRange pulumi.StringPtrInput
	// ID of the address template, and conflict with `ip_protocol`, `port_range`.
	ProtocolTemplate GroupRuleProtocolTemplatePtrInput
	// ID of the security group to be queried.
	SecurityGroupId pulumi.StringPtrInput
	// ID of the nested security group, and conflicts with `cidr_ip` and `address_template`.
	SourceSgid pulumi.StringPtrInput
	// Type of the security group rule. Valid values: `ingress` and `egress`.
	Type pulumi.StringPtrInput
}

func (GroupRuleState) ElementType

func (GroupRuleState) ElementType() reflect.Type

type GroupState

type GroupState struct {
	// Description of the security group.
	Description pulumi.StringPtrInput
	// Name of the security group to be queried.
	Name pulumi.StringPtrInput
	// Project ID of the security group.
	ProjectId pulumi.IntPtrInput
	// Tags of the security group.
	Tags pulumi.MapInput
}

func (GroupState) ElementType

func (GroupState) ElementType() reflect.Type

type GroupsArgs

type GroupsArgs struct {
	Name             *string                `pulumi:"name"`
	ProjectId        *int                   `pulumi:"projectId"`
	ResultOutputFile *string                `pulumi:"resultOutputFile"`
	SecurityGroupId  *string                `pulumi:"securityGroupId"`
	Tags             map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking Groups.

type GroupsOutputArgs

type GroupsOutputArgs struct {
	Name             pulumi.StringPtrInput `pulumi:"name"`
	ProjectId        pulumi.IntPtrInput    `pulumi:"projectId"`
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	SecurityGroupId  pulumi.StringPtrInput `pulumi:"securityGroupId"`
	Tags             pulumi.MapInput       `pulumi:"tags"`
}

A collection of arguments for invoking Groups.

func (GroupsOutputArgs) ElementType

func (GroupsOutputArgs) ElementType() reflect.Type

type GroupsResult

type GroupsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id               string                 `pulumi:"id"`
	Name             *string                `pulumi:"name"`
	ProjectId        *int                   `pulumi:"projectId"`
	ResultOutputFile *string                `pulumi:"resultOutputFile"`
	SecurityGroupId  *string                `pulumi:"securityGroupId"`
	SecurityGroups   []GroupsSecurityGroup  `pulumi:"securityGroups"`
	Tags             map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by Groups.

func Groups

func Groups(ctx *pulumi.Context, args *GroupsArgs, opts ...pulumi.InvokeOption) (*GroupsResult, error)

type GroupsResultOutput

type GroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by Groups.

func GroupsOutput

func GroupsOutput(ctx *pulumi.Context, args GroupsOutputArgs, opts ...pulumi.InvokeOption) GroupsResultOutput

func (GroupsResultOutput) ElementType

func (GroupsResultOutput) ElementType() reflect.Type

func (GroupsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GroupsResultOutput) Name

func (GroupsResultOutput) ProjectId

func (o GroupsResultOutput) ProjectId() pulumi.IntPtrOutput

func (GroupsResultOutput) ResultOutputFile

func (o GroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GroupsResultOutput) SecurityGroupId

func (o GroupsResultOutput) SecurityGroupId() pulumi.StringPtrOutput

func (GroupsResultOutput) SecurityGroups

func (GroupsResultOutput) Tags

func (GroupsResultOutput) ToGroupsResultOutput

func (o GroupsResultOutput) ToGroupsResultOutput() GroupsResultOutput

func (GroupsResultOutput) ToGroupsResultOutputWithContext

func (o GroupsResultOutput) ToGroupsResultOutputWithContext(ctx context.Context) GroupsResultOutput

type GroupsSecurityGroup

type GroupsSecurityGroup struct {
	BeAssociateCount int                    `pulumi:"beAssociateCount"`
	CreateTime       string                 `pulumi:"createTime"`
	Description      string                 `pulumi:"description"`
	Egresses         []string               `pulumi:"egresses"`
	Ingresses        []string               `pulumi:"ingresses"`
	Name             string                 `pulumi:"name"`
	ProjectId        int                    `pulumi:"projectId"`
	SecurityGroupId  string                 `pulumi:"securityGroupId"`
	Tags             map[string]interface{} `pulumi:"tags"`
}

type GroupsSecurityGroupArgs

type GroupsSecurityGroupArgs struct {
	BeAssociateCount pulumi.IntInput         `pulumi:"beAssociateCount"`
	CreateTime       pulumi.StringInput      `pulumi:"createTime"`
	Description      pulumi.StringInput      `pulumi:"description"`
	Egresses         pulumi.StringArrayInput `pulumi:"egresses"`
	Ingresses        pulumi.StringArrayInput `pulumi:"ingresses"`
	Name             pulumi.StringInput      `pulumi:"name"`
	ProjectId        pulumi.IntInput         `pulumi:"projectId"`
	SecurityGroupId  pulumi.StringInput      `pulumi:"securityGroupId"`
	Tags             pulumi.MapInput         `pulumi:"tags"`
}

func (GroupsSecurityGroupArgs) ElementType

func (GroupsSecurityGroupArgs) ElementType() reflect.Type

func (GroupsSecurityGroupArgs) ToGroupsSecurityGroupOutput

func (i GroupsSecurityGroupArgs) ToGroupsSecurityGroupOutput() GroupsSecurityGroupOutput

func (GroupsSecurityGroupArgs) ToGroupsSecurityGroupOutputWithContext

func (i GroupsSecurityGroupArgs) ToGroupsSecurityGroupOutputWithContext(ctx context.Context) GroupsSecurityGroupOutput

type GroupsSecurityGroupArray

type GroupsSecurityGroupArray []GroupsSecurityGroupInput

func (GroupsSecurityGroupArray) ElementType

func (GroupsSecurityGroupArray) ElementType() reflect.Type

func (GroupsSecurityGroupArray) ToGroupsSecurityGroupArrayOutput

func (i GroupsSecurityGroupArray) ToGroupsSecurityGroupArrayOutput() GroupsSecurityGroupArrayOutput

func (GroupsSecurityGroupArray) ToGroupsSecurityGroupArrayOutputWithContext

func (i GroupsSecurityGroupArray) ToGroupsSecurityGroupArrayOutputWithContext(ctx context.Context) GroupsSecurityGroupArrayOutput

type GroupsSecurityGroupArrayInput

type GroupsSecurityGroupArrayInput interface {
	pulumi.Input

	ToGroupsSecurityGroupArrayOutput() GroupsSecurityGroupArrayOutput
	ToGroupsSecurityGroupArrayOutputWithContext(context.Context) GroupsSecurityGroupArrayOutput
}

GroupsSecurityGroupArrayInput is an input type that accepts GroupsSecurityGroupArray and GroupsSecurityGroupArrayOutput values. You can construct a concrete instance of `GroupsSecurityGroupArrayInput` via:

GroupsSecurityGroupArray{ GroupsSecurityGroupArgs{...} }

type GroupsSecurityGroupArrayOutput

type GroupsSecurityGroupArrayOutput struct{ *pulumi.OutputState }

func (GroupsSecurityGroupArrayOutput) ElementType

func (GroupsSecurityGroupArrayOutput) Index

func (GroupsSecurityGroupArrayOutput) ToGroupsSecurityGroupArrayOutput

func (o GroupsSecurityGroupArrayOutput) ToGroupsSecurityGroupArrayOutput() GroupsSecurityGroupArrayOutput

func (GroupsSecurityGroupArrayOutput) ToGroupsSecurityGroupArrayOutputWithContext

func (o GroupsSecurityGroupArrayOutput) ToGroupsSecurityGroupArrayOutputWithContext(ctx context.Context) GroupsSecurityGroupArrayOutput

type GroupsSecurityGroupInput

type GroupsSecurityGroupInput interface {
	pulumi.Input

	ToGroupsSecurityGroupOutput() GroupsSecurityGroupOutput
	ToGroupsSecurityGroupOutputWithContext(context.Context) GroupsSecurityGroupOutput
}

GroupsSecurityGroupInput is an input type that accepts GroupsSecurityGroupArgs and GroupsSecurityGroupOutput values. You can construct a concrete instance of `GroupsSecurityGroupInput` via:

GroupsSecurityGroupArgs{...}

type GroupsSecurityGroupOutput

type GroupsSecurityGroupOutput struct{ *pulumi.OutputState }

func (GroupsSecurityGroupOutput) BeAssociateCount

func (o GroupsSecurityGroupOutput) BeAssociateCount() pulumi.IntOutput

func (GroupsSecurityGroupOutput) CreateTime

func (GroupsSecurityGroupOutput) Description

func (GroupsSecurityGroupOutput) Egresses

func (GroupsSecurityGroupOutput) ElementType

func (GroupsSecurityGroupOutput) ElementType() reflect.Type

func (GroupsSecurityGroupOutput) Ingresses

func (GroupsSecurityGroupOutput) Name

func (GroupsSecurityGroupOutput) ProjectId

func (GroupsSecurityGroupOutput) SecurityGroupId

func (o GroupsSecurityGroupOutput) SecurityGroupId() pulumi.StringOutput

func (GroupsSecurityGroupOutput) Tags

func (GroupsSecurityGroupOutput) ToGroupsSecurityGroupOutput

func (o GroupsSecurityGroupOutput) ToGroupsSecurityGroupOutput() GroupsSecurityGroupOutput

func (GroupsSecurityGroupOutput) ToGroupsSecurityGroupOutputWithContext

func (o GroupsSecurityGroupOutput) ToGroupsSecurityGroupOutputWithContext(ctx context.Context) GroupsSecurityGroupOutput

Jump to

Keyboard shortcuts

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