AddressMap

class AddressMap : KotlinCustomResource

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>

Properties

Link copied to clipboard
val accountId: Output<String>

The account identifier to target for the resource.

Link copied to clipboard
val canDelete: Output<Boolean>

Controls whether the membership can be deleted via the API or not.

Link copied to clipboard
val canModifyIps: Output<Boolean>

If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.

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

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

Description of the address map.

Link copied to clipboard
val enabled: Output<Boolean>

Whether the Address Map is enabled or not.

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

The set of IPs on the Address Map.

Link copied to clipboard

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

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