AddressBookArgs

data class AddressBookArgs(val addressLists: Output<List<String>>? = null, val autoAddTagEcs: Output<Int>? = null, val description: Output<String>? = null, val ecsTags: Output<List<AddressBookEcsTagArgs>>? = null, val groupName: Output<String>? = null, val groupType: Output<String>? = null, val lang: Output<String>? = null, val tagRelation: Output<String>? = null) : ConvertibleToJava<AddressBookArgs>

Provides a Cloud Firewall Address Book resource. For information about Cloud Firewall Address Book and how to use it, see What is Address Book.

NOTE: Available since v1.178.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.AddressBook;
import com.pulumi.alicloud.cloudfirewall.AddressBookArgs;
import com.pulumi.alicloud.cloudfirewall.inputs.AddressBookEcsTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new AddressBook("example", AddressBookArgs.builder()
.autoAddTagEcs(0)
.description("example_value")
.ecsTags(AddressBookEcsTagArgs.builder()
.tagKey("created")
.tagValue("tfTestAcc0")
.build())
.groupName("example_value")
.groupType("tag")
.tagRelation("and")
.build());
}
}

Import

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

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

Constructors

Link copied to clipboard
fun AddressBookArgs(addressLists: Output<List<String>>? = null, autoAddTagEcs: Output<Int>? = null, description: Output<String>? = null, ecsTags: Output<List<AddressBookEcsTagArgs>>? = null, groupName: Output<String>? = null, groupType: Output<String>? = null, lang: Output<String>? = null, tagRelation: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): AddressBookArgs

Properties

Link copied to clipboard
val addressLists: Output<List<String>>? = null

The list of addresses.

Link copied to clipboard
val autoAddTagEcs: Output<Int>? = null

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

Link copied to clipboard
val description: Output<String>? = null

The description of the Address Book.

Link copied to clipboard
val ecsTags: Output<List<AddressBookEcsTagArgs>>? = null

A list of ECS tags. See ecs_tags below.

Link copied to clipboard
val groupName: Output<String>? = null

The name of the Address Book.

Link copied to clipboard
val groupType: Output<String>? = null

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

Link copied to clipboard
val lang: Output<String>? = null

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

Link copied to clipboard
val tagRelation: Output<String>? = null

The logical relation among the ECS tags that to be matched. Default value: and. Valid values: