AddressGroup

class AddressGroup : KotlinCustomResource

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}}

Properties

Link copied to clipboard
val capacity: Output<Int>

Capacity of the Address Group.

Link copied to clipboard
val createTime: Output<String>

The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z"

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

Free-text description of the resource.

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

List of items.

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

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>

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

Link copied to clipboard
val name: Output<String>

Name of the AddressGroup resource.

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

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

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

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

Link copied to clipboard
val updateTime: Output<String>

The timestamp when the resource was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val urn: Output<String>