AddressMapArgs

data class AddressMapArgs(val accountId: Output<String>? = null, val defaultSni: Output<String>? = null, val description: Output<String>? = null, val enabled: Output<Boolean>? = null, val ips: Output<List<AddressMapIpArgs>>? = null, val memberships: Output<List<AddressMapMembershipArgs>>? = null) : ConvertibleToJava<AddressMapArgs>

Provides the ability to manage IP addresses that can be used by DNS records when they are proxied through Cloudflare.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.AddressMap;
import com.pulumi.cloudflare.AddressMapArgs;
import com.pulumi.cloudflare.inputs.AddressMapIpArgs;
import com.pulumi.cloudflare.inputs.AddressMapMembershipArgs;
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 AddressMap("example", AddressMapArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.defaultSni("*.example.com")
.description("My address map")
.enabled(true)
.ips(
AddressMapIpArgs.builder()
.ip("192.0.2.1")
.build(),
AddressMapIpArgs.builder()
.ip("203.0.113.1")
.build())
.memberships(
AddressMapMembershipArgs.builder()
.identifier("92f17202ed8bd63d69a66b86a49a8f6b")
.kind("account")
.build(),
AddressMapMembershipArgs.builder()
.identifier("023e105f4ecef8ad9ca31a8372d0c353")
.kind("zone")
.build())
.build());
}
}

Import

$ pulumi import cloudflare:index/addressMap:AddressMap example <account_id>/<address_map_id>

Constructors

Link copied to clipboard
fun AddressMapArgs(accountId: Output<String>? = null, defaultSni: Output<String>? = null, description: Output<String>? = null, enabled: Output<Boolean>? = null, ips: Output<List<AddressMapIpArgs>>? = null, memberships: Output<List<AddressMapMembershipArgs>>? = null)

Functions

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

Properties

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

The account identifier to target for the resource.

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

If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map.

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

Description of the address map.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether the Address Map is enabled or not.

Link copied to clipboard
val ips: Output<List<AddressMapIpArgs>>? = null

The set of IPs on the Address Map.

Link copied to clipboard

Zones and Accounts which will be assigned IPs on this Address Map.