Address Book Args
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());
}
}
Content copied to clipboard
Import
Cloud Firewall Address Book can be imported using the id, e.g.
$ pulumi import alicloud:cloudfirewall/addressBook:AddressBook example <id>
Content copied to clipboard
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)