cloudfirewall

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type AddressBook

type AddressBook struct {
	pulumi.CustomResourceState

	// The list of addresses.
	AddressLists pulumi.StringArrayOutput `pulumi:"addressLists"`
	// Whether you want to automatically add new matching tags of the ECS IP address to the Address Book. Valid values: `0`, `1`.
	AutoAddTagEcs pulumi.IntPtrOutput `pulumi:"autoAddTagEcs"`
	// The description of the Address Book.
	Description pulumi.StringOutput `pulumi:"description"`
	// A list of ECS tags. See the following `Block ecsTags`.
	EcsTags AddressBookEcsTagArrayOutput `pulumi:"ecsTags"`
	// The name of the Address Book.
	GroupName pulumi.StringOutput `pulumi:"groupName"`
	// The type of the Address Book. Valid values:  `ip`, `tag`.
	GroupType pulumi.StringOutput `pulumi:"groupType"`
	// The language of the content within the request and response. Valid values: `en`, `zh`.
	Lang pulumi.StringPtrOutput `pulumi:"lang"`
	// The logical relation among the ECS tags that to be matched. Valid values:
	// - **and**: Only the public IP addresses of ECS instances that match all the specified tags can be added to the Address Book. This is the default value.
	// - **or**: The public IP addresses of ECS instances that match one of the specified tags can be added to the Address Book.
	TagRelation pulumi.StringPtrOutput `pulumi:"tagRelation"`
}

Provides a Cloud Firewall Address Book resource.

For information about Cloud Firewall Address Book and how to use it, see [What is Address Book](https://www.alibabacloud.com/help/en/cloud-firewall/latest/describeaddressbook).

> **NOTE:** Available in v1.178.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfirewall.NewAddressBook(ctx, "example", &cloudfirewall.AddressBookArgs{
			AutoAddTagEcs: pulumi.Int(0),
			Description:   pulumi.String("example_value"),
			EcsTags: cloudfirewall.AddressBookEcsTagArray{
				&cloudfirewall.AddressBookEcsTagArgs{
					TagKey:   pulumi.String("created"),
					TagValue: pulumi.String("tfTestAcc0"),
				},
			},
			GroupName:   pulumi.String("example_value"),
			GroupType:   pulumi.String("tag"),
			TagRelation: pulumi.String("and"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Firewall Address Book can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudfirewall/addressBook:AddressBook example <id>

```

func GetAddressBook

func GetAddressBook(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AddressBookState, opts ...pulumi.ResourceOption) (*AddressBook, error)

GetAddressBook gets an existing AddressBook 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 NewAddressBook

func NewAddressBook(ctx *pulumi.Context,
	name string, args *AddressBookArgs, opts ...pulumi.ResourceOption) (*AddressBook, error)

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

func (*AddressBook) ElementType

func (*AddressBook) ElementType() reflect.Type

func (*AddressBook) ToAddressBookOutput

func (i *AddressBook) ToAddressBookOutput() AddressBookOutput

func (*AddressBook) ToAddressBookOutputWithContext

func (i *AddressBook) ToAddressBookOutputWithContext(ctx context.Context) AddressBookOutput

type AddressBookArgs

type AddressBookArgs struct {
	// The list of addresses.
	AddressLists pulumi.StringArrayInput
	// Whether you want to automatically add new matching tags of the ECS IP address to the Address Book. Valid values: `0`, `1`.
	AutoAddTagEcs pulumi.IntPtrInput
	// The description of the Address Book.
	Description pulumi.StringInput
	// A list of ECS tags. See the following `Block ecsTags`.
	EcsTags AddressBookEcsTagArrayInput
	// The name of the Address Book.
	GroupName pulumi.StringInput
	// The type of the Address Book. Valid values:  `ip`, `tag`.
	GroupType pulumi.StringInput
	// The language of the content within the request and response. Valid values: `en`, `zh`.
	Lang pulumi.StringPtrInput
	// The logical relation among the ECS tags that to be matched. Valid values:
	// - **and**: Only the public IP addresses of ECS instances that match all the specified tags can be added to the Address Book. This is the default value.
	// - **or**: The public IP addresses of ECS instances that match one of the specified tags can be added to the Address Book.
	TagRelation pulumi.StringPtrInput
}

The set of arguments for constructing a AddressBook resource.

func (AddressBookArgs) ElementType

func (AddressBookArgs) ElementType() reflect.Type

type AddressBookArray

type AddressBookArray []AddressBookInput

func (AddressBookArray) ElementType

func (AddressBookArray) ElementType() reflect.Type

func (AddressBookArray) ToAddressBookArrayOutput

func (i AddressBookArray) ToAddressBookArrayOutput() AddressBookArrayOutput

func (AddressBookArray) ToAddressBookArrayOutputWithContext

func (i AddressBookArray) ToAddressBookArrayOutputWithContext(ctx context.Context) AddressBookArrayOutput

type AddressBookArrayInput

type AddressBookArrayInput interface {
	pulumi.Input

	ToAddressBookArrayOutput() AddressBookArrayOutput
	ToAddressBookArrayOutputWithContext(context.Context) AddressBookArrayOutput
}

AddressBookArrayInput is an input type that accepts AddressBookArray and AddressBookArrayOutput values. You can construct a concrete instance of `AddressBookArrayInput` via:

AddressBookArray{ AddressBookArgs{...} }

type AddressBookArrayOutput

type AddressBookArrayOutput struct{ *pulumi.OutputState }

func (AddressBookArrayOutput) ElementType

func (AddressBookArrayOutput) ElementType() reflect.Type

func (AddressBookArrayOutput) Index

func (AddressBookArrayOutput) ToAddressBookArrayOutput

func (o AddressBookArrayOutput) ToAddressBookArrayOutput() AddressBookArrayOutput

func (AddressBookArrayOutput) ToAddressBookArrayOutputWithContext

func (o AddressBookArrayOutput) ToAddressBookArrayOutputWithContext(ctx context.Context) AddressBookArrayOutput

type AddressBookEcsTag

type AddressBookEcsTag struct {
	// The key of ECS tag that to be matched.
	TagKey *string `pulumi:"tagKey"`
	// The value of ECS tag that to be matched.
	TagValue *string `pulumi:"tagValue"`
}

type AddressBookEcsTagArgs

type AddressBookEcsTagArgs struct {
	// The key of ECS tag that to be matched.
	TagKey pulumi.StringPtrInput `pulumi:"tagKey"`
	// The value of ECS tag that to be matched.
	TagValue pulumi.StringPtrInput `pulumi:"tagValue"`
}

func (AddressBookEcsTagArgs) ElementType

func (AddressBookEcsTagArgs) ElementType() reflect.Type

func (AddressBookEcsTagArgs) ToAddressBookEcsTagOutput

func (i AddressBookEcsTagArgs) ToAddressBookEcsTagOutput() AddressBookEcsTagOutput

func (AddressBookEcsTagArgs) ToAddressBookEcsTagOutputWithContext

func (i AddressBookEcsTagArgs) ToAddressBookEcsTagOutputWithContext(ctx context.Context) AddressBookEcsTagOutput

type AddressBookEcsTagArray

type AddressBookEcsTagArray []AddressBookEcsTagInput

func (AddressBookEcsTagArray) ElementType

func (AddressBookEcsTagArray) ElementType() reflect.Type

func (AddressBookEcsTagArray) ToAddressBookEcsTagArrayOutput

func (i AddressBookEcsTagArray) ToAddressBookEcsTagArrayOutput() AddressBookEcsTagArrayOutput

func (AddressBookEcsTagArray) ToAddressBookEcsTagArrayOutputWithContext

func (i AddressBookEcsTagArray) ToAddressBookEcsTagArrayOutputWithContext(ctx context.Context) AddressBookEcsTagArrayOutput

type AddressBookEcsTagArrayInput

type AddressBookEcsTagArrayInput interface {
	pulumi.Input

	ToAddressBookEcsTagArrayOutput() AddressBookEcsTagArrayOutput
	ToAddressBookEcsTagArrayOutputWithContext(context.Context) AddressBookEcsTagArrayOutput
}

AddressBookEcsTagArrayInput is an input type that accepts AddressBookEcsTagArray and AddressBookEcsTagArrayOutput values. You can construct a concrete instance of `AddressBookEcsTagArrayInput` via:

AddressBookEcsTagArray{ AddressBookEcsTagArgs{...} }

type AddressBookEcsTagArrayOutput

type AddressBookEcsTagArrayOutput struct{ *pulumi.OutputState }

func (AddressBookEcsTagArrayOutput) ElementType

func (AddressBookEcsTagArrayOutput) Index

func (AddressBookEcsTagArrayOutput) ToAddressBookEcsTagArrayOutput

func (o AddressBookEcsTagArrayOutput) ToAddressBookEcsTagArrayOutput() AddressBookEcsTagArrayOutput

func (AddressBookEcsTagArrayOutput) ToAddressBookEcsTagArrayOutputWithContext

func (o AddressBookEcsTagArrayOutput) ToAddressBookEcsTagArrayOutputWithContext(ctx context.Context) AddressBookEcsTagArrayOutput

type AddressBookEcsTagInput

type AddressBookEcsTagInput interface {
	pulumi.Input

	ToAddressBookEcsTagOutput() AddressBookEcsTagOutput
	ToAddressBookEcsTagOutputWithContext(context.Context) AddressBookEcsTagOutput
}

AddressBookEcsTagInput is an input type that accepts AddressBookEcsTagArgs and AddressBookEcsTagOutput values. You can construct a concrete instance of `AddressBookEcsTagInput` via:

AddressBookEcsTagArgs{...}

type AddressBookEcsTagOutput

type AddressBookEcsTagOutput struct{ *pulumi.OutputState }

func (AddressBookEcsTagOutput) ElementType

func (AddressBookEcsTagOutput) ElementType() reflect.Type

func (AddressBookEcsTagOutput) TagKey

The key of ECS tag that to be matched.

func (AddressBookEcsTagOutput) TagValue

The value of ECS tag that to be matched.

func (AddressBookEcsTagOutput) ToAddressBookEcsTagOutput

func (o AddressBookEcsTagOutput) ToAddressBookEcsTagOutput() AddressBookEcsTagOutput

func (AddressBookEcsTagOutput) ToAddressBookEcsTagOutputWithContext

func (o AddressBookEcsTagOutput) ToAddressBookEcsTagOutputWithContext(ctx context.Context) AddressBookEcsTagOutput

type AddressBookInput

type AddressBookInput interface {
	pulumi.Input

	ToAddressBookOutput() AddressBookOutput
	ToAddressBookOutputWithContext(ctx context.Context) AddressBookOutput
}

type AddressBookMap

type AddressBookMap map[string]AddressBookInput

func (AddressBookMap) ElementType

func (AddressBookMap) ElementType() reflect.Type

func (AddressBookMap) ToAddressBookMapOutput

func (i AddressBookMap) ToAddressBookMapOutput() AddressBookMapOutput

func (AddressBookMap) ToAddressBookMapOutputWithContext

func (i AddressBookMap) ToAddressBookMapOutputWithContext(ctx context.Context) AddressBookMapOutput

type AddressBookMapInput

type AddressBookMapInput interface {
	pulumi.Input

	ToAddressBookMapOutput() AddressBookMapOutput
	ToAddressBookMapOutputWithContext(context.Context) AddressBookMapOutput
}

AddressBookMapInput is an input type that accepts AddressBookMap and AddressBookMapOutput values. You can construct a concrete instance of `AddressBookMapInput` via:

AddressBookMap{ "key": AddressBookArgs{...} }

type AddressBookMapOutput

type AddressBookMapOutput struct{ *pulumi.OutputState }

func (AddressBookMapOutput) ElementType

func (AddressBookMapOutput) ElementType() reflect.Type

func (AddressBookMapOutput) MapIndex

func (AddressBookMapOutput) ToAddressBookMapOutput

func (o AddressBookMapOutput) ToAddressBookMapOutput() AddressBookMapOutput

func (AddressBookMapOutput) ToAddressBookMapOutputWithContext

func (o AddressBookMapOutput) ToAddressBookMapOutputWithContext(ctx context.Context) AddressBookMapOutput

type AddressBookOutput

type AddressBookOutput struct{ *pulumi.OutputState }

func (AddressBookOutput) AddressLists

func (o AddressBookOutput) AddressLists() pulumi.StringArrayOutput

The list of addresses.

func (AddressBookOutput) AutoAddTagEcs

func (o AddressBookOutput) AutoAddTagEcs() pulumi.IntPtrOutput

Whether you want to automatically add new matching tags of the ECS IP address to the Address Book. Valid values: `0`, `1`.

func (AddressBookOutput) Description

func (o AddressBookOutput) Description() pulumi.StringOutput

The description of the Address Book.

func (AddressBookOutput) EcsTags

A list of ECS tags. See the following `Block ecsTags`.

func (AddressBookOutput) ElementType

func (AddressBookOutput) ElementType() reflect.Type

func (AddressBookOutput) GroupName

func (o AddressBookOutput) GroupName() pulumi.StringOutput

The name of the Address Book.

func (AddressBookOutput) GroupType

func (o AddressBookOutput) GroupType() pulumi.StringOutput

The type of the Address Book. Valid values: `ip`, `tag`.

func (AddressBookOutput) Lang

The language of the content within the request and response. Valid values: `en`, `zh`.

func (AddressBookOutput) TagRelation

func (o AddressBookOutput) TagRelation() pulumi.StringPtrOutput

The logical relation among the ECS tags that to be matched. Valid values: - **and**: Only the public IP addresses of ECS instances that match all the specified tags can be added to the Address Book. This is the default value. - **or**: The public IP addresses of ECS instances that match one of the specified tags can be added to the Address Book.

func (AddressBookOutput) ToAddressBookOutput

func (o AddressBookOutput) ToAddressBookOutput() AddressBookOutput

func (AddressBookOutput) ToAddressBookOutputWithContext

func (o AddressBookOutput) ToAddressBookOutputWithContext(ctx context.Context) AddressBookOutput

type AddressBookState

type AddressBookState struct {
	// The list of addresses.
	AddressLists pulumi.StringArrayInput
	// Whether you want to automatically add new matching tags of the ECS IP address to the Address Book. Valid values: `0`, `1`.
	AutoAddTagEcs pulumi.IntPtrInput
	// The description of the Address Book.
	Description pulumi.StringPtrInput
	// A list of ECS tags. See the following `Block ecsTags`.
	EcsTags AddressBookEcsTagArrayInput
	// The name of the Address Book.
	GroupName pulumi.StringPtrInput
	// The type of the Address Book. Valid values:  `ip`, `tag`.
	GroupType pulumi.StringPtrInput
	// The language of the content within the request and response. Valid values: `en`, `zh`.
	Lang pulumi.StringPtrInput
	// The logical relation among the ECS tags that to be matched. Valid values:
	// - **and**: Only the public IP addresses of ECS instances that match all the specified tags can be added to the Address Book. This is the default value.
	// - **or**: The public IP addresses of ECS instances that match one of the specified tags can be added to the Address Book.
	TagRelation pulumi.StringPtrInput
}

func (AddressBookState) ElementType

func (AddressBookState) ElementType() reflect.Type

type ControlPolicy

type ControlPolicy struct {
	pulumi.CustomResourceState

	// The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.
	AclAction pulumi.StringOutput `pulumi:"aclAction"`
	// (Available in v1.148.0+) The unique ID of the access control policy.
	AclUuid pulumi.StringOutput `pulumi:"aclUuid"`
	// The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`.
	ApplicationName pulumi.StringOutput `pulumi:"applicationName"`
	// The description of the access control policy.
	Description pulumi.StringOutput `pulumi:"description"`
	// The destination port defined in the access control policy.
	DestPort pulumi.StringOutput `pulumi:"destPort"`
	// The destination port address book defined in the access control policy.
	DestPortGroup pulumi.StringOutput `pulumi:"destPortGroup"`
	// The destination port type defined in the access control policy. Valid values: `group`, `port`.
	DestPortType pulumi.StringOutput `pulumi:"destPortType"`
	// The destination address defined in the access control policy.
	Destination pulumi.StringOutput `pulumi:"destination"`
	// DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`.
	DestinationType pulumi.StringOutput `pulumi:"destinationType"`
	// Direction. Valid values: `in`, `out`.
	Direction pulumi.StringOutput `pulumi:"direction"`
	// The ip version.
	IpVersion pulumi.StringPtrOutput `pulumi:"ipVersion"`
	// DestPortGroupPorts. Valid values: `en`, `zh`.
	Lang pulumi.StringPtrOutput `pulumi:"lang"`
	// Proto. Valid values: `  TCP `, `  UDP `, `ANY`, `ICMP`.
	Proto pulumi.StringOutput `pulumi:"proto"`
	// Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`.
	Release pulumi.StringOutput `pulumi:"release"`
	// Source.
	Source pulumi.StringOutput `pulumi:"source"`
	// The source ip.
	SourceIp pulumi.StringOutput `pulumi:"sourceIp"`
	// SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`.
	SourceType pulumi.StringOutput `pulumi:"sourceType"`
}

Provides a Cloud Firewall Control Policy resource.

For information about Cloud Firewall Control Policy and how to use it, see [What is Control Policy](https://www.alibabacloud.com/help/doc-detail/138867.htm).

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfirewall.NewControlPolicy(ctx, "example", &cloudfirewall.ControlPolicyArgs{
			AclAction:       pulumi.String("accept"),
			ApplicationName: pulumi.String("ANY"),
			Description:     pulumi.String("example"),
			Destination:     pulumi.String("100.1.1.0/24"),
			DestinationType: pulumi.String("net"),
			Direction:       pulumi.String("out"),
			Proto:           pulumi.String("ANY"),
			Source:          pulumi.String("1.2.3.0/24"),
			SourceType:      pulumi.String("net"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Firewall Control Policy can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudfirewall/controlPolicy:ControlPolicy example <acl_uuid>:<direction>

```

func GetControlPolicy

func GetControlPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ControlPolicyState, opts ...pulumi.ResourceOption) (*ControlPolicy, error)

GetControlPolicy gets an existing ControlPolicy 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 NewControlPolicy

func NewControlPolicy(ctx *pulumi.Context,
	name string, args *ControlPolicyArgs, opts ...pulumi.ResourceOption) (*ControlPolicy, error)

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

func (*ControlPolicy) ElementType

func (*ControlPolicy) ElementType() reflect.Type

func (*ControlPolicy) ToControlPolicyOutput

func (i *ControlPolicy) ToControlPolicyOutput() ControlPolicyOutput

func (*ControlPolicy) ToControlPolicyOutputWithContext

func (i *ControlPolicy) ToControlPolicyOutputWithContext(ctx context.Context) ControlPolicyOutput

type ControlPolicyArgs

type ControlPolicyArgs struct {
	// The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.
	AclAction pulumi.StringInput
	// The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`.
	ApplicationName pulumi.StringInput
	// The description of the access control policy.
	Description pulumi.StringInput
	// The destination port defined in the access control policy.
	DestPort pulumi.StringPtrInput
	// The destination port address book defined in the access control policy.
	DestPortGroup pulumi.StringPtrInput
	// The destination port type defined in the access control policy. Valid values: `group`, `port`.
	DestPortType pulumi.StringPtrInput
	// The destination address defined in the access control policy.
	Destination pulumi.StringInput
	// DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`.
	DestinationType pulumi.StringInput
	// Direction. Valid values: `in`, `out`.
	Direction pulumi.StringInput
	// The ip version.
	IpVersion pulumi.StringPtrInput
	// DestPortGroupPorts. Valid values: `en`, `zh`.
	Lang pulumi.StringPtrInput
	// Proto. Valid values: `  TCP `, `  UDP `, `ANY`, `ICMP`.
	Proto pulumi.StringInput
	// Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`.
	Release pulumi.StringPtrInput
	// Source.
	Source pulumi.StringInput
	// The source ip.
	SourceIp pulumi.StringPtrInput
	// SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`.
	SourceType pulumi.StringInput
}

The set of arguments for constructing a ControlPolicy resource.

func (ControlPolicyArgs) ElementType

func (ControlPolicyArgs) ElementType() reflect.Type

type ControlPolicyArray

type ControlPolicyArray []ControlPolicyInput

func (ControlPolicyArray) ElementType

func (ControlPolicyArray) ElementType() reflect.Type

func (ControlPolicyArray) ToControlPolicyArrayOutput

func (i ControlPolicyArray) ToControlPolicyArrayOutput() ControlPolicyArrayOutput

func (ControlPolicyArray) ToControlPolicyArrayOutputWithContext

func (i ControlPolicyArray) ToControlPolicyArrayOutputWithContext(ctx context.Context) ControlPolicyArrayOutput

type ControlPolicyArrayInput

type ControlPolicyArrayInput interface {
	pulumi.Input

	ToControlPolicyArrayOutput() ControlPolicyArrayOutput
	ToControlPolicyArrayOutputWithContext(context.Context) ControlPolicyArrayOutput
}

ControlPolicyArrayInput is an input type that accepts ControlPolicyArray and ControlPolicyArrayOutput values. You can construct a concrete instance of `ControlPolicyArrayInput` via:

ControlPolicyArray{ ControlPolicyArgs{...} }

type ControlPolicyArrayOutput

type ControlPolicyArrayOutput struct{ *pulumi.OutputState }

func (ControlPolicyArrayOutput) ElementType

func (ControlPolicyArrayOutput) ElementType() reflect.Type

func (ControlPolicyArrayOutput) Index

func (ControlPolicyArrayOutput) ToControlPolicyArrayOutput

func (o ControlPolicyArrayOutput) ToControlPolicyArrayOutput() ControlPolicyArrayOutput

func (ControlPolicyArrayOutput) ToControlPolicyArrayOutputWithContext

func (o ControlPolicyArrayOutput) ToControlPolicyArrayOutputWithContext(ctx context.Context) ControlPolicyArrayOutput

type ControlPolicyInput

type ControlPolicyInput interface {
	pulumi.Input

	ToControlPolicyOutput() ControlPolicyOutput
	ToControlPolicyOutputWithContext(ctx context.Context) ControlPolicyOutput
}

type ControlPolicyMap

type ControlPolicyMap map[string]ControlPolicyInput

func (ControlPolicyMap) ElementType

func (ControlPolicyMap) ElementType() reflect.Type

func (ControlPolicyMap) ToControlPolicyMapOutput

func (i ControlPolicyMap) ToControlPolicyMapOutput() ControlPolicyMapOutput

func (ControlPolicyMap) ToControlPolicyMapOutputWithContext

func (i ControlPolicyMap) ToControlPolicyMapOutputWithContext(ctx context.Context) ControlPolicyMapOutput

type ControlPolicyMapInput

type ControlPolicyMapInput interface {
	pulumi.Input

	ToControlPolicyMapOutput() ControlPolicyMapOutput
	ToControlPolicyMapOutputWithContext(context.Context) ControlPolicyMapOutput
}

ControlPolicyMapInput is an input type that accepts ControlPolicyMap and ControlPolicyMapOutput values. You can construct a concrete instance of `ControlPolicyMapInput` via:

ControlPolicyMap{ "key": ControlPolicyArgs{...} }

type ControlPolicyMapOutput

type ControlPolicyMapOutput struct{ *pulumi.OutputState }

func (ControlPolicyMapOutput) ElementType

func (ControlPolicyMapOutput) ElementType() reflect.Type

func (ControlPolicyMapOutput) MapIndex

func (ControlPolicyMapOutput) ToControlPolicyMapOutput

func (o ControlPolicyMapOutput) ToControlPolicyMapOutput() ControlPolicyMapOutput

func (ControlPolicyMapOutput) ToControlPolicyMapOutputWithContext

func (o ControlPolicyMapOutput) ToControlPolicyMapOutputWithContext(ctx context.Context) ControlPolicyMapOutput

type ControlPolicyOrder

type ControlPolicyOrder struct {
	pulumi.CustomResourceState

	// The unique ID of the access control policy.
	AclUuid pulumi.StringOutput `pulumi:"aclUuid"`
	// Direction. Valid values: `in`, `out`.
	Direction pulumi.StringOutput `pulumi:"direction"`
	// The priority of the access control policy. The priority value starts from 1. A small priority value indicates a high priority. **NOTE:** The value of -1 indicates the lowest priority.
	Order pulumi.IntPtrOutput `pulumi:"order"`
}

Provides a Cloud Firewall Control Policy resource.

For information about Cloud Firewall Control Policy Order and how to use it, see [What is Control Policy Order](https://www.alibabacloud.com/help/doc-detail/138867.htm).

> **NOTE:** Available in v1.130.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example1, err := cloudfirewall.NewControlPolicy(ctx, "example1", &cloudfirewall.ControlPolicyArgs{
			ApplicationName: pulumi.String("ANY"),
			AclAction:       pulumi.String("accept"),
			Description:     pulumi.String("example"),
			DestinationType: pulumi.String("net"),
			Destination:     pulumi.String("100.1.1.0/24"),
			Direction:       pulumi.String("out"),
			Proto:           pulumi.String("ANY"),
			Source:          pulumi.String("1.2.3.0/24"),
			SourceType:      pulumi.String("net"),
		})
		if err != nil {
			return err
		}
		_, err = cloudfirewall.NewControlPolicyOrder(ctx, "example2", &cloudfirewall.ControlPolicyOrderArgs{
			AclUuid:   example1.AclUuid,
			Direction: example1.Direction,
			Order:     pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Firewall Control Policy Order can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudfirewall/controlPolicyOrder:ControlPolicyOrder example <acl_uuid>:<direction>

```

func GetControlPolicyOrder

func GetControlPolicyOrder(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ControlPolicyOrderState, opts ...pulumi.ResourceOption) (*ControlPolicyOrder, error)

GetControlPolicyOrder gets an existing ControlPolicyOrder 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 NewControlPolicyOrder

func NewControlPolicyOrder(ctx *pulumi.Context,
	name string, args *ControlPolicyOrderArgs, opts ...pulumi.ResourceOption) (*ControlPolicyOrder, error)

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

func (*ControlPolicyOrder) ElementType

func (*ControlPolicyOrder) ElementType() reflect.Type

func (*ControlPolicyOrder) ToControlPolicyOrderOutput

func (i *ControlPolicyOrder) ToControlPolicyOrderOutput() ControlPolicyOrderOutput

func (*ControlPolicyOrder) ToControlPolicyOrderOutputWithContext

func (i *ControlPolicyOrder) ToControlPolicyOrderOutputWithContext(ctx context.Context) ControlPolicyOrderOutput

type ControlPolicyOrderArgs

type ControlPolicyOrderArgs struct {
	// The unique ID of the access control policy.
	AclUuid pulumi.StringInput
	// Direction. Valid values: `in`, `out`.
	Direction pulumi.StringInput
	// The priority of the access control policy. The priority value starts from 1. A small priority value indicates a high priority. **NOTE:** The value of -1 indicates the lowest priority.
	Order pulumi.IntPtrInput
}

The set of arguments for constructing a ControlPolicyOrder resource.

func (ControlPolicyOrderArgs) ElementType

func (ControlPolicyOrderArgs) ElementType() reflect.Type

type ControlPolicyOrderArray

type ControlPolicyOrderArray []ControlPolicyOrderInput

func (ControlPolicyOrderArray) ElementType

func (ControlPolicyOrderArray) ElementType() reflect.Type

func (ControlPolicyOrderArray) ToControlPolicyOrderArrayOutput

func (i ControlPolicyOrderArray) ToControlPolicyOrderArrayOutput() ControlPolicyOrderArrayOutput

func (ControlPolicyOrderArray) ToControlPolicyOrderArrayOutputWithContext

func (i ControlPolicyOrderArray) ToControlPolicyOrderArrayOutputWithContext(ctx context.Context) ControlPolicyOrderArrayOutput

type ControlPolicyOrderArrayInput

type ControlPolicyOrderArrayInput interface {
	pulumi.Input

	ToControlPolicyOrderArrayOutput() ControlPolicyOrderArrayOutput
	ToControlPolicyOrderArrayOutputWithContext(context.Context) ControlPolicyOrderArrayOutput
}

ControlPolicyOrderArrayInput is an input type that accepts ControlPolicyOrderArray and ControlPolicyOrderArrayOutput values. You can construct a concrete instance of `ControlPolicyOrderArrayInput` via:

ControlPolicyOrderArray{ ControlPolicyOrderArgs{...} }

type ControlPolicyOrderArrayOutput

type ControlPolicyOrderArrayOutput struct{ *pulumi.OutputState }

func (ControlPolicyOrderArrayOutput) ElementType

func (ControlPolicyOrderArrayOutput) Index

func (ControlPolicyOrderArrayOutput) ToControlPolicyOrderArrayOutput

func (o ControlPolicyOrderArrayOutput) ToControlPolicyOrderArrayOutput() ControlPolicyOrderArrayOutput

func (ControlPolicyOrderArrayOutput) ToControlPolicyOrderArrayOutputWithContext

func (o ControlPolicyOrderArrayOutput) ToControlPolicyOrderArrayOutputWithContext(ctx context.Context) ControlPolicyOrderArrayOutput

type ControlPolicyOrderInput

type ControlPolicyOrderInput interface {
	pulumi.Input

	ToControlPolicyOrderOutput() ControlPolicyOrderOutput
	ToControlPolicyOrderOutputWithContext(ctx context.Context) ControlPolicyOrderOutput
}

type ControlPolicyOrderMap

type ControlPolicyOrderMap map[string]ControlPolicyOrderInput

func (ControlPolicyOrderMap) ElementType

func (ControlPolicyOrderMap) ElementType() reflect.Type

func (ControlPolicyOrderMap) ToControlPolicyOrderMapOutput

func (i ControlPolicyOrderMap) ToControlPolicyOrderMapOutput() ControlPolicyOrderMapOutput

func (ControlPolicyOrderMap) ToControlPolicyOrderMapOutputWithContext

func (i ControlPolicyOrderMap) ToControlPolicyOrderMapOutputWithContext(ctx context.Context) ControlPolicyOrderMapOutput

type ControlPolicyOrderMapInput

type ControlPolicyOrderMapInput interface {
	pulumi.Input

	ToControlPolicyOrderMapOutput() ControlPolicyOrderMapOutput
	ToControlPolicyOrderMapOutputWithContext(context.Context) ControlPolicyOrderMapOutput
}

ControlPolicyOrderMapInput is an input type that accepts ControlPolicyOrderMap and ControlPolicyOrderMapOutput values. You can construct a concrete instance of `ControlPolicyOrderMapInput` via:

ControlPolicyOrderMap{ "key": ControlPolicyOrderArgs{...} }

type ControlPolicyOrderMapOutput

type ControlPolicyOrderMapOutput struct{ *pulumi.OutputState }

func (ControlPolicyOrderMapOutput) ElementType

func (ControlPolicyOrderMapOutput) MapIndex

func (ControlPolicyOrderMapOutput) ToControlPolicyOrderMapOutput

func (o ControlPolicyOrderMapOutput) ToControlPolicyOrderMapOutput() ControlPolicyOrderMapOutput

func (ControlPolicyOrderMapOutput) ToControlPolicyOrderMapOutputWithContext

func (o ControlPolicyOrderMapOutput) ToControlPolicyOrderMapOutputWithContext(ctx context.Context) ControlPolicyOrderMapOutput

type ControlPolicyOrderOutput

type ControlPolicyOrderOutput struct{ *pulumi.OutputState }

func (ControlPolicyOrderOutput) AclUuid

The unique ID of the access control policy.

func (ControlPolicyOrderOutput) Direction

Direction. Valid values: `in`, `out`.

func (ControlPolicyOrderOutput) ElementType

func (ControlPolicyOrderOutput) ElementType() reflect.Type

func (ControlPolicyOrderOutput) Order

The priority of the access control policy. The priority value starts from 1. A small priority value indicates a high priority. **NOTE:** The value of -1 indicates the lowest priority.

func (ControlPolicyOrderOutput) ToControlPolicyOrderOutput

func (o ControlPolicyOrderOutput) ToControlPolicyOrderOutput() ControlPolicyOrderOutput

func (ControlPolicyOrderOutput) ToControlPolicyOrderOutputWithContext

func (o ControlPolicyOrderOutput) ToControlPolicyOrderOutputWithContext(ctx context.Context) ControlPolicyOrderOutput

type ControlPolicyOrderState

type ControlPolicyOrderState struct {
	// The unique ID of the access control policy.
	AclUuid pulumi.StringPtrInput
	// Direction. Valid values: `in`, `out`.
	Direction pulumi.StringPtrInput
	// The priority of the access control policy. The priority value starts from 1. A small priority value indicates a high priority. **NOTE:** The value of -1 indicates the lowest priority.
	Order pulumi.IntPtrInput
}

func (ControlPolicyOrderState) ElementType

func (ControlPolicyOrderState) ElementType() reflect.Type

type ControlPolicyOutput

type ControlPolicyOutput struct{ *pulumi.OutputState }

func (ControlPolicyOutput) AclAction

func (o ControlPolicyOutput) AclAction() pulumi.StringOutput

The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.

func (ControlPolicyOutput) AclUuid

(Available in v1.148.0+) The unique ID of the access control policy.

func (ControlPolicyOutput) ApplicationName

func (o ControlPolicyOutput) ApplicationName() pulumi.StringOutput

The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`.

func (ControlPolicyOutput) Description

func (o ControlPolicyOutput) Description() pulumi.StringOutput

The description of the access control policy.

func (ControlPolicyOutput) DestPort

The destination port defined in the access control policy.

func (ControlPolicyOutput) DestPortGroup

func (o ControlPolicyOutput) DestPortGroup() pulumi.StringOutput

The destination port address book defined in the access control policy.

func (ControlPolicyOutput) DestPortType

func (o ControlPolicyOutput) DestPortType() pulumi.StringOutput

The destination port type defined in the access control policy. Valid values: `group`, `port`.

func (ControlPolicyOutput) Destination

func (o ControlPolicyOutput) Destination() pulumi.StringOutput

The destination address defined in the access control policy.

func (ControlPolicyOutput) DestinationType

func (o ControlPolicyOutput) DestinationType() pulumi.StringOutput

DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`.

func (ControlPolicyOutput) Direction

func (o ControlPolicyOutput) Direction() pulumi.StringOutput

Direction. Valid values: `in`, `out`.

func (ControlPolicyOutput) ElementType

func (ControlPolicyOutput) ElementType() reflect.Type

func (ControlPolicyOutput) IpVersion

The ip version.

func (ControlPolicyOutput) Lang

DestPortGroupPorts. Valid values: `en`, `zh`.

func (ControlPolicyOutput) Proto

Proto. Valid values: ` TCP `, ` UDP `, `ANY`, `ICMP`.

func (ControlPolicyOutput) Release

Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`.

func (ControlPolicyOutput) Source

Source.

func (ControlPolicyOutput) SourceIp

The source ip.

func (ControlPolicyOutput) SourceType

func (o ControlPolicyOutput) SourceType() pulumi.StringOutput

SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`.

func (ControlPolicyOutput) ToControlPolicyOutput

func (o ControlPolicyOutput) ToControlPolicyOutput() ControlPolicyOutput

func (ControlPolicyOutput) ToControlPolicyOutputWithContext

func (o ControlPolicyOutput) ToControlPolicyOutputWithContext(ctx context.Context) ControlPolicyOutput

type ControlPolicyState

type ControlPolicyState struct {
	// The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.
	AclAction pulumi.StringPtrInput
	// (Available in v1.148.0+) The unique ID of the access control policy.
	AclUuid pulumi.StringPtrInput
	// The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`.
	ApplicationName pulumi.StringPtrInput
	// The description of the access control policy.
	Description pulumi.StringPtrInput
	// The destination port defined in the access control policy.
	DestPort pulumi.StringPtrInput
	// The destination port address book defined in the access control policy.
	DestPortGroup pulumi.StringPtrInput
	// The destination port type defined in the access control policy. Valid values: `group`, `port`.
	DestPortType pulumi.StringPtrInput
	// The destination address defined in the access control policy.
	Destination pulumi.StringPtrInput
	// DestinationType. Valid values: If Direction is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`.
	DestinationType pulumi.StringPtrInput
	// Direction. Valid values: `in`, `out`.
	Direction pulumi.StringPtrInput
	// The ip version.
	IpVersion pulumi.StringPtrInput
	// DestPortGroupPorts. Valid values: `en`, `zh`.
	Lang pulumi.StringPtrInput
	// Proto. Valid values: `  TCP `, `  UDP `, `ANY`, `ICMP`.
	Proto pulumi.StringPtrInput
	// Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`.
	Release pulumi.StringPtrInput
	// Source.
	Source pulumi.StringPtrInput
	// The source ip.
	SourceIp pulumi.StringPtrInput
	// SourceType. Valid values: If `direction` is `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`.
	SourceType pulumi.StringPtrInput
}

func (ControlPolicyState) ElementType

func (ControlPolicyState) ElementType() reflect.Type

type GetAddressBooksArgs

type GetAddressBooksArgs struct {
	// The type of the Address Book.
	GroupType *string `pulumi:"groupType"`
	// A list of Address Book IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results Address Book name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getAddressBooks.

type GetAddressBooksBook

type GetAddressBooksBook struct {
	// The addresses in the Address Book.
	AddressLists []string `pulumi:"addressLists"`
	// Whether you want to automatically add new matching tags of the ECS IP address to the Address Book.
	AutoAddTagEcs int `pulumi:"autoAddTagEcs"`
	// The description of the Address Book.
	Description string `pulumi:"description"`
	// The logical relation among the ECS tags that to be matchedh.
	EcsTags []GetAddressBooksBookEcsTag `pulumi:"ecsTags"`
	// The name of the Address Book.
	GroupName string `pulumi:"groupName"`
	// The type of the Address Book.
	GroupType string `pulumi:"groupType"`
	// The ID of the Address Book.
	GroupUuid string `pulumi:"groupUuid"`
	// The ID of the Address Book.
	Id string `pulumi:"id"`
	// One or more tags for the relationship between.
	TagRelation string `pulumi:"tagRelation"`
}

type GetAddressBooksBookArgs

type GetAddressBooksBookArgs struct {
	// The addresses in the Address Book.
	AddressLists pulumi.StringArrayInput `pulumi:"addressLists"`
	// Whether you want to automatically add new matching tags of the ECS IP address to the Address Book.
	AutoAddTagEcs pulumi.IntInput `pulumi:"autoAddTagEcs"`
	// The description of the Address Book.
	Description pulumi.StringInput `pulumi:"description"`
	// The logical relation among the ECS tags that to be matchedh.
	EcsTags GetAddressBooksBookEcsTagArrayInput `pulumi:"ecsTags"`
	// The name of the Address Book.
	GroupName pulumi.StringInput `pulumi:"groupName"`
	// The type of the Address Book.
	GroupType pulumi.StringInput `pulumi:"groupType"`
	// The ID of the Address Book.
	GroupUuid pulumi.StringInput `pulumi:"groupUuid"`
	// The ID of the Address Book.
	Id pulumi.StringInput `pulumi:"id"`
	// One or more tags for the relationship between.
	TagRelation pulumi.StringInput `pulumi:"tagRelation"`
}

func (GetAddressBooksBookArgs) ElementType

func (GetAddressBooksBookArgs) ElementType() reflect.Type

func (GetAddressBooksBookArgs) ToGetAddressBooksBookOutput

func (i GetAddressBooksBookArgs) ToGetAddressBooksBookOutput() GetAddressBooksBookOutput

func (GetAddressBooksBookArgs) ToGetAddressBooksBookOutputWithContext

func (i GetAddressBooksBookArgs) ToGetAddressBooksBookOutputWithContext(ctx context.Context) GetAddressBooksBookOutput

type GetAddressBooksBookArray

type GetAddressBooksBookArray []GetAddressBooksBookInput

func (GetAddressBooksBookArray) ElementType

func (GetAddressBooksBookArray) ElementType() reflect.Type

func (GetAddressBooksBookArray) ToGetAddressBooksBookArrayOutput

func (i GetAddressBooksBookArray) ToGetAddressBooksBookArrayOutput() GetAddressBooksBookArrayOutput

func (GetAddressBooksBookArray) ToGetAddressBooksBookArrayOutputWithContext

func (i GetAddressBooksBookArray) ToGetAddressBooksBookArrayOutputWithContext(ctx context.Context) GetAddressBooksBookArrayOutput

type GetAddressBooksBookArrayInput

type GetAddressBooksBookArrayInput interface {
	pulumi.Input

	ToGetAddressBooksBookArrayOutput() GetAddressBooksBookArrayOutput
	ToGetAddressBooksBookArrayOutputWithContext(context.Context) GetAddressBooksBookArrayOutput
}

GetAddressBooksBookArrayInput is an input type that accepts GetAddressBooksBookArray and GetAddressBooksBookArrayOutput values. You can construct a concrete instance of `GetAddressBooksBookArrayInput` via:

GetAddressBooksBookArray{ GetAddressBooksBookArgs{...} }

type GetAddressBooksBookArrayOutput

type GetAddressBooksBookArrayOutput struct{ *pulumi.OutputState }

func (GetAddressBooksBookArrayOutput) ElementType

func (GetAddressBooksBookArrayOutput) Index

func (GetAddressBooksBookArrayOutput) ToGetAddressBooksBookArrayOutput

func (o GetAddressBooksBookArrayOutput) ToGetAddressBooksBookArrayOutput() GetAddressBooksBookArrayOutput

func (GetAddressBooksBookArrayOutput) ToGetAddressBooksBookArrayOutputWithContext

func (o GetAddressBooksBookArrayOutput) ToGetAddressBooksBookArrayOutputWithContext(ctx context.Context) GetAddressBooksBookArrayOutput

type GetAddressBooksBookEcsTag

type GetAddressBooksBookEcsTag struct {
	// The key of ECS tag that to be matched.
	TagKey *string `pulumi:"tagKey"`
	// The value of ECS tag that to be matched.
	TagValue *string `pulumi:"tagValue"`
}

type GetAddressBooksBookEcsTagArgs

type GetAddressBooksBookEcsTagArgs struct {
	// The key of ECS tag that to be matched.
	TagKey pulumi.StringPtrInput `pulumi:"tagKey"`
	// The value of ECS tag that to be matched.
	TagValue pulumi.StringPtrInput `pulumi:"tagValue"`
}

func (GetAddressBooksBookEcsTagArgs) ElementType

func (GetAddressBooksBookEcsTagArgs) ToGetAddressBooksBookEcsTagOutput

func (i GetAddressBooksBookEcsTagArgs) ToGetAddressBooksBookEcsTagOutput() GetAddressBooksBookEcsTagOutput

func (GetAddressBooksBookEcsTagArgs) ToGetAddressBooksBookEcsTagOutputWithContext

func (i GetAddressBooksBookEcsTagArgs) ToGetAddressBooksBookEcsTagOutputWithContext(ctx context.Context) GetAddressBooksBookEcsTagOutput

type GetAddressBooksBookEcsTagArray

type GetAddressBooksBookEcsTagArray []GetAddressBooksBookEcsTagInput

func (GetAddressBooksBookEcsTagArray) ElementType

func (GetAddressBooksBookEcsTagArray) ToGetAddressBooksBookEcsTagArrayOutput

func (i GetAddressBooksBookEcsTagArray) ToGetAddressBooksBookEcsTagArrayOutput() GetAddressBooksBookEcsTagArrayOutput

func (GetAddressBooksBookEcsTagArray) ToGetAddressBooksBookEcsTagArrayOutputWithContext

func (i GetAddressBooksBookEcsTagArray) ToGetAddressBooksBookEcsTagArrayOutputWithContext(ctx context.Context) GetAddressBooksBookEcsTagArrayOutput

type GetAddressBooksBookEcsTagArrayInput

type GetAddressBooksBookEcsTagArrayInput interface {
	pulumi.Input

	ToGetAddressBooksBookEcsTagArrayOutput() GetAddressBooksBookEcsTagArrayOutput
	ToGetAddressBooksBookEcsTagArrayOutputWithContext(context.Context) GetAddressBooksBookEcsTagArrayOutput
}

GetAddressBooksBookEcsTagArrayInput is an input type that accepts GetAddressBooksBookEcsTagArray and GetAddressBooksBookEcsTagArrayOutput values. You can construct a concrete instance of `GetAddressBooksBookEcsTagArrayInput` via:

GetAddressBooksBookEcsTagArray{ GetAddressBooksBookEcsTagArgs{...} }

type GetAddressBooksBookEcsTagArrayOutput

type GetAddressBooksBookEcsTagArrayOutput struct{ *pulumi.OutputState }

func (GetAddressBooksBookEcsTagArrayOutput) ElementType

func (GetAddressBooksBookEcsTagArrayOutput) Index

func (GetAddressBooksBookEcsTagArrayOutput) ToGetAddressBooksBookEcsTagArrayOutput

func (o GetAddressBooksBookEcsTagArrayOutput) ToGetAddressBooksBookEcsTagArrayOutput() GetAddressBooksBookEcsTagArrayOutput

func (GetAddressBooksBookEcsTagArrayOutput) ToGetAddressBooksBookEcsTagArrayOutputWithContext

func (o GetAddressBooksBookEcsTagArrayOutput) ToGetAddressBooksBookEcsTagArrayOutputWithContext(ctx context.Context) GetAddressBooksBookEcsTagArrayOutput

type GetAddressBooksBookEcsTagInput

type GetAddressBooksBookEcsTagInput interface {
	pulumi.Input

	ToGetAddressBooksBookEcsTagOutput() GetAddressBooksBookEcsTagOutput
	ToGetAddressBooksBookEcsTagOutputWithContext(context.Context) GetAddressBooksBookEcsTagOutput
}

GetAddressBooksBookEcsTagInput is an input type that accepts GetAddressBooksBookEcsTagArgs and GetAddressBooksBookEcsTagOutput values. You can construct a concrete instance of `GetAddressBooksBookEcsTagInput` via:

GetAddressBooksBookEcsTagArgs{...}

type GetAddressBooksBookEcsTagOutput

type GetAddressBooksBookEcsTagOutput struct{ *pulumi.OutputState }

func (GetAddressBooksBookEcsTagOutput) ElementType

func (GetAddressBooksBookEcsTagOutput) TagKey

The key of ECS tag that to be matched.

func (GetAddressBooksBookEcsTagOutput) TagValue

The value of ECS tag that to be matched.

func (GetAddressBooksBookEcsTagOutput) ToGetAddressBooksBookEcsTagOutput

func (o GetAddressBooksBookEcsTagOutput) ToGetAddressBooksBookEcsTagOutput() GetAddressBooksBookEcsTagOutput

func (GetAddressBooksBookEcsTagOutput) ToGetAddressBooksBookEcsTagOutputWithContext

func (o GetAddressBooksBookEcsTagOutput) ToGetAddressBooksBookEcsTagOutputWithContext(ctx context.Context) GetAddressBooksBookEcsTagOutput

type GetAddressBooksBookInput

type GetAddressBooksBookInput interface {
	pulumi.Input

	ToGetAddressBooksBookOutput() GetAddressBooksBookOutput
	ToGetAddressBooksBookOutputWithContext(context.Context) GetAddressBooksBookOutput
}

GetAddressBooksBookInput is an input type that accepts GetAddressBooksBookArgs and GetAddressBooksBookOutput values. You can construct a concrete instance of `GetAddressBooksBookInput` via:

GetAddressBooksBookArgs{...}

type GetAddressBooksBookOutput

type GetAddressBooksBookOutput struct{ *pulumi.OutputState }

func (GetAddressBooksBookOutput) AddressLists

The addresses in the Address Book.

func (GetAddressBooksBookOutput) AutoAddTagEcs

func (o GetAddressBooksBookOutput) AutoAddTagEcs() pulumi.IntOutput

Whether you want to automatically add new matching tags of the ECS IP address to the Address Book.

func (GetAddressBooksBookOutput) Description

The description of the Address Book.

func (GetAddressBooksBookOutput) EcsTags

The logical relation among the ECS tags that to be matchedh.

func (GetAddressBooksBookOutput) ElementType

func (GetAddressBooksBookOutput) ElementType() reflect.Type

func (GetAddressBooksBookOutput) GroupName

The name of the Address Book.

func (GetAddressBooksBookOutput) GroupType

The type of the Address Book.

func (GetAddressBooksBookOutput) GroupUuid

The ID of the Address Book.

func (GetAddressBooksBookOutput) Id

The ID of the Address Book.

func (GetAddressBooksBookOutput) TagRelation

One or more tags for the relationship between.

func (GetAddressBooksBookOutput) ToGetAddressBooksBookOutput

func (o GetAddressBooksBookOutput) ToGetAddressBooksBookOutput() GetAddressBooksBookOutput

func (GetAddressBooksBookOutput) ToGetAddressBooksBookOutputWithContext

func (o GetAddressBooksBookOutput) ToGetAddressBooksBookOutputWithContext(ctx context.Context) GetAddressBooksBookOutput

type GetAddressBooksOutputArgs

type GetAddressBooksOutputArgs struct {
	// The type of the Address Book.
	GroupType pulumi.StringPtrInput `pulumi:"groupType"`
	// A list of Address Book IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results Address Book name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getAddressBooks.

func (GetAddressBooksOutputArgs) ElementType

func (GetAddressBooksOutputArgs) ElementType() reflect.Type

type GetAddressBooksResult

type GetAddressBooksResult struct {
	Books     []GetAddressBooksBook `pulumi:"books"`
	GroupType *string               `pulumi:"groupType"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
}

A collection of values returned by getAddressBooks.

func GetAddressBooks

func GetAddressBooks(ctx *pulumi.Context, args *GetAddressBooksArgs, opts ...pulumi.InvokeOption) (*GetAddressBooksResult, error)

This data source provides the Cloud Firewall Address Books of the current Alibaba Cloud user.

> **NOTE:** Available in v1.178.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cloudfirewall.GetAddressBooks(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudFirewallAddressBookId1", ids.Books[0].Id)
		return nil
	})
}

```

type GetAddressBooksResultOutput

type GetAddressBooksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAddressBooks.

func (GetAddressBooksResultOutput) Books

func (GetAddressBooksResultOutput) ElementType

func (GetAddressBooksResultOutput) GroupType

func (GetAddressBooksResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetAddressBooksResultOutput) Ids

func (GetAddressBooksResultOutput) NameRegex

func (GetAddressBooksResultOutput) Names

func (GetAddressBooksResultOutput) OutputFile

func (GetAddressBooksResultOutput) ToGetAddressBooksResultOutput

func (o GetAddressBooksResultOutput) ToGetAddressBooksResultOutput() GetAddressBooksResultOutput

func (GetAddressBooksResultOutput) ToGetAddressBooksResultOutputWithContext

func (o GetAddressBooksResultOutput) ToGetAddressBooksResultOutputWithContext(ctx context.Context) GetAddressBooksResultOutput

type GetControlPoliciesArgs

type GetControlPoliciesArgs struct {
	// The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.
	AclAction *string `pulumi:"aclAction"`
	// The unique ID of the access control policy.
	AclUuid *string `pulumi:"aclUuid"`
	// The description of the access control policy.
	Description *string `pulumi:"description"`
	// The destination address defined in the access control policy.
	Destination *string `pulumi:"destination"`
	// The direction of traffic to which the access control policy applies. Valid values: `in`, `out`.
	Direction string `pulumi:"direction"`
	// The ip version.
	IpVersion *string `pulumi:"ipVersion"`
	// DestPortGroupPorts. Valid values: `en`, `zh`.
	Lang       *string `pulumi:"lang"`
	OutputFile *string `pulumi:"outputFile"`
	// The protocol type of traffic to which the access control policy applies. Valid values: If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `TCP`, `UDP`, `ICMP`.
	Proto *string `pulumi:"proto"`
	// The source address defined in the access control policy.
	Source *string `pulumi:"source"`
	// The source IP address of the request.
	SourceIp *string `pulumi:"sourceIp"`
}

A collection of arguments for invoking getControlPolicies.

type GetControlPoliciesOutputArgs

type GetControlPoliciesOutputArgs struct {
	// The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.
	AclAction pulumi.StringPtrInput `pulumi:"aclAction"`
	// The unique ID of the access control policy.
	AclUuid pulumi.StringPtrInput `pulumi:"aclUuid"`
	// The description of the access control policy.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// The destination address defined in the access control policy.
	Destination pulumi.StringPtrInput `pulumi:"destination"`
	// The direction of traffic to which the access control policy applies. Valid values: `in`, `out`.
	Direction pulumi.StringInput `pulumi:"direction"`
	// The ip version.
	IpVersion pulumi.StringPtrInput `pulumi:"ipVersion"`
	// DestPortGroupPorts. Valid values: `en`, `zh`.
	Lang       pulumi.StringPtrInput `pulumi:"lang"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The protocol type of traffic to which the access control policy applies. Valid values: If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `TCP`, `UDP`, `ICMP`.
	Proto pulumi.StringPtrInput `pulumi:"proto"`
	// The source address defined in the access control policy.
	Source pulumi.StringPtrInput `pulumi:"source"`
	// The source IP address of the request.
	SourceIp pulumi.StringPtrInput `pulumi:"sourceIp"`
}

A collection of arguments for invoking getControlPolicies.

func (GetControlPoliciesOutputArgs) ElementType

type GetControlPoliciesPolicy

type GetControlPoliciesPolicy struct {
	// The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.
	AclAction string `pulumi:"aclAction"`
	// The unique ID of the access control policy.
	AclUuid       string `pulumi:"aclUuid"`
	ApplicationId string `pulumi:"applicationId"`
	// The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`.
	ApplicationName string `pulumi:"applicationName"`
	// The description of the access control policy.
	Description string `pulumi:"description"`
	// The destination port defined in the access control policy.
	DestPort string `pulumi:"destPort"`
	// The destination port address book defined in the access control policy.
	DestPortGroup      string   `pulumi:"destPortGroup"`
	DestPortGroupPorts []string `pulumi:"destPortGroupPorts"`
	// The destination port type defined in the access control policy. Valid values: `group`, `port`.
	DestPortType string `pulumi:"destPortType"`
	// The destination address defined in the access control policy.
	Destination           string   `pulumi:"destination"`
	DestinationGroupCidrs []string `pulumi:"destinationGroupCidrs"`
	DestinationGroupType  string   `pulumi:"destinationGroupType"`
	// The destination address type defined in the access control policy.Valid values: If `direction` is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`.
	DestinationType string `pulumi:"destinationType"`
	// The direction of traffic to which the access control policy applies. Valid values: `in`, `out`.
	Direction     string `pulumi:"direction"`
	DnsResult     string `pulumi:"dnsResult"`
	DnsResultTime string `pulumi:"dnsResultTime"`
	HitTimes      string `pulumi:"hitTimes"`
	// The ID of the Control Policy.
	Id    string `pulumi:"id"`
	Order int    `pulumi:"order"`
	// The protocol type of traffic to which the access control policy applies. Valid values: If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `TCP`, `UDP`, `ICMP`.
	Proto string `pulumi:"proto"`
	// Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`.
	Release bool `pulumi:"release"`
	// The source address defined in the access control policy.
	Source           string   `pulumi:"source"`
	SourceGroupCidrs []string `pulumi:"sourceGroupCidrs"`
	SourceGroupType  string   `pulumi:"sourceGroupType"`
	// The type of the source address book defined in the access control policy. Valid values: If `direction` is to `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`.
	SourceType string `pulumi:"sourceType"`
}

type GetControlPoliciesPolicyArgs

type GetControlPoliciesPolicyArgs struct {
	// The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.
	AclAction pulumi.StringInput `pulumi:"aclAction"`
	// The unique ID of the access control policy.
	AclUuid       pulumi.StringInput `pulumi:"aclUuid"`
	ApplicationId pulumi.StringInput `pulumi:"applicationId"`
	// The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`.
	ApplicationName pulumi.StringInput `pulumi:"applicationName"`
	// The description of the access control policy.
	Description pulumi.StringInput `pulumi:"description"`
	// The destination port defined in the access control policy.
	DestPort pulumi.StringInput `pulumi:"destPort"`
	// The destination port address book defined in the access control policy.
	DestPortGroup      pulumi.StringInput      `pulumi:"destPortGroup"`
	DestPortGroupPorts pulumi.StringArrayInput `pulumi:"destPortGroupPorts"`
	// The destination port type defined in the access control policy. Valid values: `group`, `port`.
	DestPortType pulumi.StringInput `pulumi:"destPortType"`
	// The destination address defined in the access control policy.
	Destination           pulumi.StringInput      `pulumi:"destination"`
	DestinationGroupCidrs pulumi.StringArrayInput `pulumi:"destinationGroupCidrs"`
	DestinationGroupType  pulumi.StringInput      `pulumi:"destinationGroupType"`
	// The destination address type defined in the access control policy.Valid values: If `direction` is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`.
	DestinationType pulumi.StringInput `pulumi:"destinationType"`
	// The direction of traffic to which the access control policy applies. Valid values: `in`, `out`.
	Direction     pulumi.StringInput `pulumi:"direction"`
	DnsResult     pulumi.StringInput `pulumi:"dnsResult"`
	DnsResultTime pulumi.StringInput `pulumi:"dnsResultTime"`
	HitTimes      pulumi.StringInput `pulumi:"hitTimes"`
	// The ID of the Control Policy.
	Id    pulumi.StringInput `pulumi:"id"`
	Order pulumi.IntInput    `pulumi:"order"`
	// The protocol type of traffic to which the access control policy applies. Valid values: If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `TCP`, `UDP`, `ICMP`.
	Proto pulumi.StringInput `pulumi:"proto"`
	// Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`.
	Release pulumi.BoolInput `pulumi:"release"`
	// The source address defined in the access control policy.
	Source           pulumi.StringInput      `pulumi:"source"`
	SourceGroupCidrs pulumi.StringArrayInput `pulumi:"sourceGroupCidrs"`
	SourceGroupType  pulumi.StringInput      `pulumi:"sourceGroupType"`
	// The type of the source address book defined in the access control policy. Valid values: If `direction` is to `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`.
	SourceType pulumi.StringInput `pulumi:"sourceType"`
}

func (GetControlPoliciesPolicyArgs) ElementType

func (GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutput

func (i GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutput() GetControlPoliciesPolicyOutput

func (GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutputWithContext

func (i GetControlPoliciesPolicyArgs) ToGetControlPoliciesPolicyOutputWithContext(ctx context.Context) GetControlPoliciesPolicyOutput

type GetControlPoliciesPolicyArray

type GetControlPoliciesPolicyArray []GetControlPoliciesPolicyInput

func (GetControlPoliciesPolicyArray) ElementType

func (GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutput

func (i GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutput() GetControlPoliciesPolicyArrayOutput

func (GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutputWithContext

func (i GetControlPoliciesPolicyArray) ToGetControlPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetControlPoliciesPolicyArrayOutput

type GetControlPoliciesPolicyArrayInput

type GetControlPoliciesPolicyArrayInput interface {
	pulumi.Input

	ToGetControlPoliciesPolicyArrayOutput() GetControlPoliciesPolicyArrayOutput
	ToGetControlPoliciesPolicyArrayOutputWithContext(context.Context) GetControlPoliciesPolicyArrayOutput
}

GetControlPoliciesPolicyArrayInput is an input type that accepts GetControlPoliciesPolicyArray and GetControlPoliciesPolicyArrayOutput values. You can construct a concrete instance of `GetControlPoliciesPolicyArrayInput` via:

GetControlPoliciesPolicyArray{ GetControlPoliciesPolicyArgs{...} }

type GetControlPoliciesPolicyArrayOutput

type GetControlPoliciesPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetControlPoliciesPolicyArrayOutput) ElementType

func (GetControlPoliciesPolicyArrayOutput) Index

func (GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutput

func (o GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutput() GetControlPoliciesPolicyArrayOutput

func (GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutputWithContext

func (o GetControlPoliciesPolicyArrayOutput) ToGetControlPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetControlPoliciesPolicyArrayOutput

type GetControlPoliciesPolicyInput

type GetControlPoliciesPolicyInput interface {
	pulumi.Input

	ToGetControlPoliciesPolicyOutput() GetControlPoliciesPolicyOutput
	ToGetControlPoliciesPolicyOutputWithContext(context.Context) GetControlPoliciesPolicyOutput
}

GetControlPoliciesPolicyInput is an input type that accepts GetControlPoliciesPolicyArgs and GetControlPoliciesPolicyOutput values. You can construct a concrete instance of `GetControlPoliciesPolicyInput` via:

GetControlPoliciesPolicyArgs{...}

type GetControlPoliciesPolicyOutput

type GetControlPoliciesPolicyOutput struct{ *pulumi.OutputState }

func (GetControlPoliciesPolicyOutput) AclAction

The action that Cloud Firewall performs on the traffic. Valid values: `accept`, `drop`, `log`.

func (GetControlPoliciesPolicyOutput) AclUuid

The unique ID of the access control policy.

func (GetControlPoliciesPolicyOutput) ApplicationId

func (GetControlPoliciesPolicyOutput) ApplicationName

The application type that the access control policy supports.If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, `ANY`, `HTTP`, `HTTPS`, `MQTT`, `Memcache`, `MongoDB`, `MySQL`, `RDP`, `Redis`, `SMTP`, `SMTPS`, `SSH`, `SSL`, `VNC`.

func (GetControlPoliciesPolicyOutput) Description

The description of the access control policy.

func (GetControlPoliciesPolicyOutput) DestPort

The destination port defined in the access control policy.

func (GetControlPoliciesPolicyOutput) DestPortGroup

The destination port address book defined in the access control policy.

func (GetControlPoliciesPolicyOutput) DestPortGroupPorts

func (GetControlPoliciesPolicyOutput) DestPortType

The destination port type defined in the access control policy. Valid values: `group`, `port`.

func (GetControlPoliciesPolicyOutput) Destination

The destination address defined in the access control policy.

func (GetControlPoliciesPolicyOutput) DestinationGroupCidrs

func (o GetControlPoliciesPolicyOutput) DestinationGroupCidrs() pulumi.StringArrayOutput

func (GetControlPoliciesPolicyOutput) DestinationGroupType

func (o GetControlPoliciesPolicyOutput) DestinationGroupType() pulumi.StringOutput

func (GetControlPoliciesPolicyOutput) DestinationType

The destination address type defined in the access control policy.Valid values: If `direction` is `in`, the valid values are `net`, `group`. If `direction` is `out`, the valid values are `net`, `group`, `domain`, `location`.

func (GetControlPoliciesPolicyOutput) Direction

The direction of traffic to which the access control policy applies. Valid values: `in`, `out`.

func (GetControlPoliciesPolicyOutput) DnsResult

func (GetControlPoliciesPolicyOutput) DnsResultTime

func (GetControlPoliciesPolicyOutput) ElementType

func (GetControlPoliciesPolicyOutput) HitTimes

func (GetControlPoliciesPolicyOutput) Id

The ID of the Control Policy.

func (GetControlPoliciesPolicyOutput) Order

func (GetControlPoliciesPolicyOutput) Proto

The protocol type of traffic to which the access control policy applies. Valid values: If `direction` is `in`, the valid value is `ANY`. If `direction` is `out`, the valid values are `ANY`, `TCP`, `UDP`, `ICMP`.

func (GetControlPoliciesPolicyOutput) Release

Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: `true`, `false`.

func (GetControlPoliciesPolicyOutput) Source

The source address defined in the access control policy.

func (GetControlPoliciesPolicyOutput) SourceGroupCidrs

func (GetControlPoliciesPolicyOutput) SourceGroupType

func (GetControlPoliciesPolicyOutput) SourceType

The type of the source address book defined in the access control policy. Valid values: If `direction` is to `in`, the valid values are `net`, `group`, `location`. If `direction` is `out`, the valid values are `net`, `group`.

func (GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutput

func (o GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutput() GetControlPoliciesPolicyOutput

func (GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutputWithContext

func (o GetControlPoliciesPolicyOutput) ToGetControlPoliciesPolicyOutputWithContext(ctx context.Context) GetControlPoliciesPolicyOutput

type GetControlPoliciesResult

type GetControlPoliciesResult struct {
	AclAction   *string `pulumi:"aclAction"`
	AclUuid     *string `pulumi:"aclUuid"`
	Description *string `pulumi:"description"`
	Destination *string `pulumi:"destination"`
	Direction   string  `pulumi:"direction"`
	// The provider-assigned unique ID for this managed resource.
	Id         string                     `pulumi:"id"`
	Ids        []string                   `pulumi:"ids"`
	IpVersion  *string                    `pulumi:"ipVersion"`
	Lang       *string                    `pulumi:"lang"`
	OutputFile *string                    `pulumi:"outputFile"`
	Policies   []GetControlPoliciesPolicy `pulumi:"policies"`
	Proto      *string                    `pulumi:"proto"`
	Source     *string                    `pulumi:"source"`
	SourceIp   *string                    `pulumi:"sourceIp"`
}

A collection of values returned by getControlPolicies.

func GetControlPolicies

func GetControlPolicies(ctx *pulumi.Context, args *GetControlPoliciesArgs, opts ...pulumi.InvokeOption) (*GetControlPoliciesResult, error)

This data source provides the Cloud Firewall Control Policies of the current Alibaba Cloud user.

> **NOTE:** Available in v1.129.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfirewall.GetControlPolicies(ctx, &cloudfirewall.GetControlPoliciesArgs{
			Direction: "in",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetControlPoliciesResultOutput

type GetControlPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getControlPolicies.

func (GetControlPoliciesResultOutput) AclAction

func (GetControlPoliciesResultOutput) AclUuid

func (GetControlPoliciesResultOutput) Description

func (GetControlPoliciesResultOutput) Destination

func (GetControlPoliciesResultOutput) Direction

func (GetControlPoliciesResultOutput) ElementType

func (GetControlPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetControlPoliciesResultOutput) Ids

func (GetControlPoliciesResultOutput) IpVersion

func (GetControlPoliciesResultOutput) Lang

func (GetControlPoliciesResultOutput) OutputFile

func (GetControlPoliciesResultOutput) Policies

func (GetControlPoliciesResultOutput) Proto

func (GetControlPoliciesResultOutput) Source

func (GetControlPoliciesResultOutput) SourceIp

func (GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutput

func (o GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutput() GetControlPoliciesResultOutput

func (GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutputWithContext

func (o GetControlPoliciesResultOutput) ToGetControlPoliciesResultOutputWithContext(ctx context.Context) GetControlPoliciesResultOutput

type GetInstancesArgs

type GetInstancesArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstance

type GetInstancesInstance struct {
	// The Creation time of the resource.
	CreateTime string `pulumi:"createTime"`
	// The end time of the resource..
	EndTime string `pulumi:"endTime"`
	// The ID of the Instance.
	Id string `pulumi:"id"`
	// The first ID of the resource.
	InstanceId string `pulumi:"instanceId"`
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType string `pulumi:"paymentType"`
	// Automatic renewal period unit. Valid values: `Month`,`Year`.
	RenewalDurationUnit string `pulumi:"renewalDurationUnit"`
	// Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
	RenewalStatus string `pulumi:"renewalStatus"`
	// The Status of Instance.
	Status string `pulumi:"status"`
}

type GetInstancesInstanceArgs

type GetInstancesInstanceArgs struct {
	// The Creation time of the resource.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The end time of the resource..
	EndTime pulumi.StringInput `pulumi:"endTime"`
	// The ID of the Instance.
	Id pulumi.StringInput `pulumi:"id"`
	// The first ID of the resource.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// Automatic renewal period unit. Valid values: `Month`,`Year`.
	RenewalDurationUnit pulumi.StringInput `pulumi:"renewalDurationUnit"`
	// Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
	RenewalStatus pulumi.StringInput `pulumi:"renewalStatus"`
	// The Status of Instance.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetInstancesInstanceArgs) ElementType

func (GetInstancesInstanceArgs) ElementType() reflect.Type

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesInstanceArray

type GetInstancesInstanceArray []GetInstancesInstanceInput

func (GetInstancesInstanceArray) ElementType

func (GetInstancesInstanceArray) ElementType() reflect.Type

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayInput

type GetInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
	ToGetInstancesInstanceArrayOutputWithContext(context.Context) GetInstancesInstanceArrayOutput
}

GetInstancesInstanceArrayInput is an input type that accepts GetInstancesInstanceArray and GetInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceArrayInput` via:

GetInstancesInstanceArray{ GetInstancesInstanceArgs{...} }

type GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceArrayOutput) ElementType

func (GetInstancesInstanceArrayOutput) Index

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceInput

type GetInstancesInstanceInput interface {
	pulumi.Input

	ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
	ToGetInstancesInstanceOutputWithContext(context.Context) GetInstancesInstanceOutput
}

GetInstancesInstanceInput is an input type that accepts GetInstancesInstanceArgs and GetInstancesInstanceOutput values. You can construct a concrete instance of `GetInstancesInstanceInput` via:

GetInstancesInstanceArgs{...}

type GetInstancesInstanceOutput

type GetInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceOutput) CreateTime

The Creation time of the resource.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) EndTime

The end time of the resource..

func (GetInstancesInstanceOutput) Id

The ID of the Instance.

func (GetInstancesInstanceOutput) InstanceId

The first ID of the resource.

func (GetInstancesInstanceOutput) PaymentType

The payment type of the resource. Valid values: `Subscription`.

func (GetInstancesInstanceOutput) RenewalDurationUnit

func (o GetInstancesInstanceOutput) RenewalDurationUnit() pulumi.StringOutput

Automatic renewal period unit. Valid values: `Month`,`Year`.

func (GetInstancesInstanceOutput) RenewalStatus

Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.

func (GetInstancesInstanceOutput) Status

The Status of Instance.

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesOutputArgs

type GetInstancesOutputArgs struct {
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

type GetInstancesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                 `pulumi:"id"`
	Instances  []GetInstancesInstance `pulumi:"instances"`
	OutputFile *string                `pulumi:"outputFile"`
}

A collection of values returned by getInstances.

func GetInstances

func GetInstances(ctx *pulumi.Context, args *GetInstancesArgs, opts ...pulumi.InvokeOption) (*GetInstancesResult, error)

This data source provides the Cloud Firewall Instances of the current Alibaba Cloud user.

> **NOTE:** Available in v1.139.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cloudfirewall.GetInstances(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("cloudFirewallInstanceId1", ids.Instances[0].Id)
		return nil
	})
}

```

type GetInstancesResultOutput

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func (GetInstancesResultOutput) ElementType

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Instances

func (GetInstancesResultOutput) OutputFile

func (GetInstancesResultOutput) ToGetInstancesResultOutput

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext

func (o GetInstancesResultOutput) ToGetInstancesResultOutputWithContext(ctx context.Context) GetInstancesResultOutput

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
	BandWidth pulumi.IntOutput `pulumi:"bandWidth"`
	// Whether to use log audit. Valid values: `true`, `false`.
	CfwLog pulumi.BoolOutput `pulumi:"cfwLog"`
	// The log storage capacity.
	CfwLogStorage pulumi.IntOutput `pulumi:"cfwLogStorage"`
	// Whether to use expert service. Valid values: `true`, `false`.
	CfwService pulumi.BoolOutput `pulumi:"cfwService"`
	// The creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The end time.
	EndTime pulumi.StringOutput `pulumi:"endTime"`
	// The number of protected VPCs. Valid values between 2 and 500.
	FwVpcNumber pulumi.IntPtrOutput `pulumi:"fwVpcNumber"`
	// The number of assets.
	InstanceCount pulumi.IntPtrOutput `pulumi:"instanceCount"`
	// The number of public IPs that can be protected. Valid values: 20 to 4000.
	IpNumber pulumi.IntOutput `pulumi:"ipNumber"`
	// The logistics.
	Logistics pulumi.StringPtrOutput `pulumi:"logistics"`
	// The modify type. Valid values: `Upgrade`, `Downgrade`.  **NOTE:** The `modifyType` is required when you execute an update operation.
	ModifyType pulumi.StringPtrOutput `pulumi:"modifyType"`
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The prepaid period. Valid values: `6`, `12`, `24`, `36`.
	Period pulumi.IntOutput `pulumi:"period"`
	// The release time.
	ReleaseTime pulumi.StringOutput `pulumi:"releaseTime"`
	// Automatic renewal period. **NOTE:** The `renewPeriod` is required under the condition that renewalStatus is `AutoRenewal`.
	RenewPeriod pulumi.IntPtrOutput `pulumi:"renewPeriod"`
	// Automatic renewal period unit. Valid values: `Month`,`Year`.
	RenewalDurationUnit pulumi.StringOutput `pulumi:"renewalDurationUnit"`
	// Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
	RenewalStatus pulumi.StringOutput `pulumi:"renewalStatus"`
	// Current version. Valid values: `premiumVersion`, `enterpriseVersion`,`ultimateVersion`.
	Spec pulumi.StringOutput `pulumi:"spec"`
	// The status of Instance.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Cloud Firewall Instance resource.

For information about Cloud Firewall Instance and how to use it, see [What is Instance](https://www.alibabacloud.com/help/en/product/90174.htm).

> **NOTE:** Available in v1.139.0+.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cloudfirewall"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudfirewall.NewInstance(ctx, "example", &cloudfirewall.InstanceArgs{
			BandWidth:     pulumi.Int(10),
			CfwLog:        pulumi.Bool(false),
			CfwLogStorage: pulumi.Int(1000),
			CfwService:    pulumi.Bool(false),
			IpNumber:      pulumi.Int(20),
			PaymentType:   pulumi.String("Subscription"),
			Period:        pulumi.Int(6),
			Spec:          pulumi.String("premium_version"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Firewall Instance can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cloudfirewall/instance:Instance example <id>

```

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance 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 NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

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

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceArgs

type InstanceArgs struct {
	// Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
	BandWidth pulumi.IntInput
	// Whether to use log audit. Valid values: `true`, `false`.
	CfwLog pulumi.BoolInput
	// The log storage capacity.
	CfwLogStorage pulumi.IntInput
	// Whether to use expert service. Valid values: `true`, `false`.
	CfwService pulumi.BoolInput
	// The number of protected VPCs. Valid values between 2 and 500.
	FwVpcNumber pulumi.IntPtrInput
	// The number of assets.
	InstanceCount pulumi.IntPtrInput
	// The number of public IPs that can be protected. Valid values: 20 to 4000.
	IpNumber pulumi.IntInput
	// The logistics.
	Logistics pulumi.StringPtrInput
	// The modify type. Valid values: `Upgrade`, `Downgrade`.  **NOTE:** The `modifyType` is required when you execute an update operation.
	ModifyType pulumi.StringPtrInput
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringInput
	// The prepaid period. Valid values: `6`, `12`, `24`, `36`.
	Period pulumi.IntInput
	// Automatic renewal period. **NOTE:** The `renewPeriod` is required under the condition that renewalStatus is `AutoRenewal`.
	RenewPeriod pulumi.IntPtrInput
	// Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
	RenewalStatus pulumi.StringPtrInput
	// Current version. Valid values: `premiumVersion`, `enterpriseVersion`,`ultimateVersion`.
	Spec pulumi.StringInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) BandWidth

func (o InstanceOutput) BandWidth() pulumi.IntOutput

Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.

func (InstanceOutput) CfwLog

func (o InstanceOutput) CfwLog() pulumi.BoolOutput

Whether to use log audit. Valid values: `true`, `false`.

func (InstanceOutput) CfwLogStorage

func (o InstanceOutput) CfwLogStorage() pulumi.IntOutput

The log storage capacity.

func (InstanceOutput) CfwService

func (o InstanceOutput) CfwService() pulumi.BoolOutput

Whether to use expert service. Valid values: `true`, `false`.

func (InstanceOutput) CreateTime

func (o InstanceOutput) CreateTime() pulumi.StringOutput

The creation time.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) EndTime

func (o InstanceOutput) EndTime() pulumi.StringOutput

The end time.

func (InstanceOutput) FwVpcNumber

func (o InstanceOutput) FwVpcNumber() pulumi.IntPtrOutput

The number of protected VPCs. Valid values between 2 and 500.

func (InstanceOutput) InstanceCount

func (o InstanceOutput) InstanceCount() pulumi.IntPtrOutput

The number of assets.

func (InstanceOutput) IpNumber

func (o InstanceOutput) IpNumber() pulumi.IntOutput

The number of public IPs that can be protected. Valid values: 20 to 4000.

func (InstanceOutput) Logistics

func (o InstanceOutput) Logistics() pulumi.StringPtrOutput

The logistics.

func (InstanceOutput) ModifyType

func (o InstanceOutput) ModifyType() pulumi.StringPtrOutput

The modify type. Valid values: `Upgrade`, `Downgrade`. **NOTE:** The `modifyType` is required when you execute an update operation.

func (InstanceOutput) PaymentType

func (o InstanceOutput) PaymentType() pulumi.StringOutput

The payment type of the resource. Valid values: `Subscription`.

func (InstanceOutput) Period

func (o InstanceOutput) Period() pulumi.IntOutput

The prepaid period. Valid values: `6`, `12`, `24`, `36`.

func (InstanceOutput) ReleaseTime

func (o InstanceOutput) ReleaseTime() pulumi.StringOutput

The release time.

func (InstanceOutput) RenewPeriod

func (o InstanceOutput) RenewPeriod() pulumi.IntPtrOutput

Automatic renewal period. **NOTE:** The `renewPeriod` is required under the condition that renewalStatus is `AutoRenewal`.

func (InstanceOutput) RenewalDurationUnit

func (o InstanceOutput) RenewalDurationUnit() pulumi.StringOutput

Automatic renewal period unit. Valid values: `Month`,`Year`.

func (InstanceOutput) RenewalStatus

func (o InstanceOutput) RenewalStatus() pulumi.StringOutput

Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.

func (InstanceOutput) Spec

Current version. Valid values: `premiumVersion`, `enterpriseVersion`,`ultimateVersion`.

func (InstanceOutput) Status

func (o InstanceOutput) Status() pulumi.StringOutput

The status of Instance.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceState

type InstanceState struct {
	// Public network processing capability. Valid values: 10 to 15000. Unit: Mbps.
	BandWidth pulumi.IntPtrInput
	// Whether to use log audit. Valid values: `true`, `false`.
	CfwLog pulumi.BoolPtrInput
	// The log storage capacity.
	CfwLogStorage pulumi.IntPtrInput
	// Whether to use expert service. Valid values: `true`, `false`.
	CfwService pulumi.BoolPtrInput
	// The creation time.
	CreateTime pulumi.StringPtrInput
	// The end time.
	EndTime pulumi.StringPtrInput
	// The number of protected VPCs. Valid values between 2 and 500.
	FwVpcNumber pulumi.IntPtrInput
	// The number of assets.
	InstanceCount pulumi.IntPtrInput
	// The number of public IPs that can be protected. Valid values: 20 to 4000.
	IpNumber pulumi.IntPtrInput
	// The logistics.
	Logistics pulumi.StringPtrInput
	// The modify type. Valid values: `Upgrade`, `Downgrade`.  **NOTE:** The `modifyType` is required when you execute an update operation.
	ModifyType pulumi.StringPtrInput
	// The payment type of the resource. Valid values: `Subscription`.
	PaymentType pulumi.StringPtrInput
	// The prepaid period. Valid values: `6`, `12`, `24`, `36`.
	Period pulumi.IntPtrInput
	// The release time.
	ReleaseTime pulumi.StringPtrInput
	// Automatic renewal period. **NOTE:** The `renewPeriod` is required under the condition that renewalStatus is `AutoRenewal`.
	RenewPeriod pulumi.IntPtrInput
	// Automatic renewal period unit. Valid values: `Month`,`Year`.
	RenewalDurationUnit pulumi.StringPtrInput
	// Automatic renewal status. Valid values: `AutoRenewal`,`ManualRenewal`. Default Value: `ManualRenewal`.
	RenewalStatus pulumi.StringPtrInput
	// Current version. Valid values: `premiumVersion`, `enterpriseVersion`,`ultimateVersion`.
	Spec pulumi.StringPtrInput
	// The status of Instance.
	Status pulumi.StringPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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