AddressBook

class AddressBook : KotlinCustomResource

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>

Properties

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

The list of addresses.

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

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>

The description of the Address Book.

Link copied to clipboard

A list of ECS tags. See ecs_tags below.

Link copied to clipboard
val groupName: Output<String>

The name of the Address Book.

Link copied to clipboard
val groupType: Output<String>

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tagRelation: Output<String>

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

Link copied to clipboard
val urn: Output<String>