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
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.cloudfirewall.AddressBook("example", {
description: "example_value",
groupName: "example_value",
groupType: "tag",
tagRelation: "and",
autoAddTagEcs: 0,
ecsTags: [{
tagKey: "created",
tagValue: "tfTestAcc0",
}],
});
Content copied to clipboard
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cloudfirewall.AddressBook("example",
description="example_value",
group_name="example_value",
group_type="tag",
tag_relation="and",
auto_add_tag_ecs=0,
ecs_tags=[{
"tag_key": "created",
"tag_value": "tfTestAcc0",
}])
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.CloudFirewall.AddressBook("example", new()
{
Description = "example_value",
GroupName = "example_value",
GroupType = "tag",
TagRelation = "and",
AutoAddTagEcs = 0,
EcsTags = new[]
{
new AliCloud.CloudFirewall.Inputs.AddressBookEcsTagArgs
{
TagKey = "created",
TagValue = "tfTestAcc0",
},
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudfirewall.NewAddressBook(ctx, "example", &cloudfirewall.AddressBookArgs{
Description: pulumi.String("example_value"),
GroupName: pulumi.String("example_value"),
GroupType: pulumi.String("tag"),
TagRelation: pulumi.String("and"),
AutoAddTagEcs: pulumi.Int(0),
EcsTags: cloudfirewall.AddressBookEcsTagArray{
&cloudfirewall.AddressBookEcsTagArgs{
TagKey: pulumi.String("created"),
TagValue: pulumi.String("tfTestAcc0"),
},
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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()
.description("example_value")
.groupName("example_value")
.groupType("tag")
.tagRelation("and")
.autoAddTagEcs(0)
.ecsTags(AddressBookEcsTagArgs.builder()
.tagKey("created")
.tagValue("tfTestAcc0")
.build())
.build());
}
}
Content copied to clipboard
resources:
example:
type: alicloud:cloudfirewall:AddressBook
properties:
description: example_value
groupName: example_value
groupType: tag
tagRelation: and
autoAddTagEcs: 0
ecsTags:
- tagKey: created
tagValue: tfTestAcc0
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
constructor(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)
Properties
Link copied to clipboard
The list of addresses.
Link copied to clipboard
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
The description of the Address Book.
Link copied to clipboard
A list of ECS tags. See ecs_tags
below.
Link copied to clipboard
The logical relation among the ECS tags that to be matched. Default value: and
. Valid values: