AddressGroupArgs

data class AddressGroupArgs(val capacity: Output<Int>? = null, val description: Output<String>? = null, val items: Output<List<String>>? = null, val labels: Output<Map<String, String>>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val parent: Output<String>? = null, val type: Output<String>? = null) : ConvertibleToJava<AddressGroupArgs>

AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy. To get more information about AddressGroup, see:

Example Usage

Network Security Address Groups Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networksecurity.AddressGroup;
import com.pulumi.gcp.networksecurity.AddressGroupArgs;
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 default_ = new AddressGroup("default", AddressGroupArgs.builder()
.capacity("100")
.items("208.80.154.224/32")
.location("us-central1")
.parent("projects/my-project-name")
.type("IPV4")
.build());
}
}

Network Security Address Groups Organization Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networksecurity.AddressGroup;
import com.pulumi.gcp.networksecurity.AddressGroupArgs;
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 default_ = new AddressGroup("default", AddressGroupArgs.builder()
.capacity("100")
.items("208.80.154.224/32")
.location("us-central1")
.parent("organizations/123456789")
.type("IPV4")
.build());
}
}

Network Security Address Groups Advanced

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networksecurity.AddressGroup;
import com.pulumi.gcp.networksecurity.AddressGroupArgs;
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 default_ = new AddressGroup("default", AddressGroupArgs.builder()
.capacity("100")
.description("my description")
.items("208.80.154.224/32")
.location("us-central1")
.parent("projects/my-project-name")
.type("IPV4")
.build());
}
}

Import

AddressGroup can be imported using any of these accepted formats:

$ pulumi import gcp:networksecurity/addressGroup:AddressGroup default {{parent}}/locations/{{location}}/addressGroups/{{name}}

Constructors

Link copied to clipboard
constructor(capacity: Output<Int>? = null, description: Output<String>? = null, items: Output<List<String>>? = null, labels: Output<Map<String, String>>? = null, location: Output<String>? = null, name: Output<String>? = null, parent: Output<String>? = null, type: Output<String>? = null)

Properties

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

Capacity of the Address Group.

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

Free-text description of the resource.

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

List of items.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Set of label tags associated with the AddressGroup resource. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

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

The location of the gateway security policy. The default value is global.

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

Name of the AddressGroup resource.

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

The name of the parent this address group belongs to. Format: organizations/{organization_id} or projects/{project_id}.

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

The type of the Address Group. Possible values are "IPV4" or "IPV6". Possible values are: IPV4, IPV6.

Functions

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