GtmInstanceArgs

data class GtmInstanceArgs(val alertConfigs: Output<List<GtmInstanceAlertConfigArgs>>? = null, val alertGroups: Output<List<String>>? = null, val cnameType: Output<String>? = null, val forceUpdate: Output<Boolean>? = null, val healthCheckTaskCount: Output<Int>? = null, val instanceName: Output<String>? = null, val lang: Output<String>? = null, val packageEdition: Output<String>? = null, val paymentType: Output<String>? = null, val period: Output<Int>? = null, val publicCnameMode: Output<String>? = null, val publicRr: Output<String>? = null, val publicUserDomainName: Output<String>? = null, val publicZoneName: Output<String>? = null, val renewPeriod: Output<Int>? = null, val renewalStatus: Output<String>? = null, val resourceGroupId: Output<String>? = null, val smsNotificationCount: Output<Int>? = null, val strategyMode: Output<String>? = null, val ttl: Output<Int>? = null) : ConvertibleToJava<GtmInstanceArgs>

Provides a Alidns Gtm Instance resource. For information about Alidns Gtm Instance and how to use it, see What is Gtm Instance.

NOTE: Available since v1.151.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
import com.pulumi.alicloud.cms.AlarmContactGroup;
import com.pulumi.alicloud.cms.AlarmContactGroupArgs;
import com.pulumi.alicloud.dns.GtmInstance;
import com.pulumi.alicloud.dns.GtmInstanceArgs;
import com.pulumi.alicloud.dns.inputs.GtmInstanceAlertConfigArgs;
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) {
final var config = ctx.config();
final var domainName = config.get("domainName").orElse("alicloud-provider.com");
final var defaultResourceGroups = ResourcemanagerFunctions.getResourceGroups();
var defaultAlarmContactGroup = new AlarmContactGroup("defaultAlarmContactGroup", AlarmContactGroupArgs.builder()
.alarmContactGroupName("tf_example")
.build());
var defaultGtmInstance = new GtmInstance("defaultGtmInstance", GtmInstanceArgs.builder()
.instanceName("tf_example")
.paymentType("Subscription")
.period(1)
.renewalStatus("ManualRenewal")
.packageEdition("standard")
.healthCheckTaskCount(100)
.smsNotificationCount(1000)
.publicCnameMode("SYSTEM_ASSIGN")
.ttl(60)
.cnameType("PUBLIC")
.resourceGroupId(defaultResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.groups()[0].id()))
.alertGroups(defaultAlarmContactGroup.alarmContactGroupName())
.publicUserDomainName(domainName)
.alertConfigs(GtmInstanceAlertConfigArgs.builder()
.smsNotice(true)
.noticeType("ADDR_ALERT")
.emailNotice(true)
.dingtalkNotice(true)
.build())
.build());
}
}

Import

Alidns Gtm Instance can be imported using the id, e.g.

$ pulumi import alicloud:dns/gtmInstance:GtmInstance example <id>

Constructors

Link copied to clipboard
fun GtmInstanceArgs(alertConfigs: Output<List<GtmInstanceAlertConfigArgs>>? = null, alertGroups: Output<List<String>>? = null, cnameType: Output<String>? = null, forceUpdate: Output<Boolean>? = null, healthCheckTaskCount: Output<Int>? = null, instanceName: Output<String>? = null, lang: Output<String>? = null, packageEdition: Output<String>? = null, paymentType: Output<String>? = null, period: Output<Int>? = null, publicCnameMode: Output<String>? = null, publicRr: Output<String>? = null, publicUserDomainName: Output<String>? = null, publicZoneName: Output<String>? = null, renewPeriod: Output<Int>? = null, renewalStatus: Output<String>? = null, resourceGroupId: Output<String>? = null, smsNotificationCount: Output<Int>? = null, strategyMode: Output<String>? = null, ttl: Output<Int>? = null)

Functions

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

Properties

Link copied to clipboard

The alert notification methods. See alert_config below for details.

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

The alert group.

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

The access type of the CNAME domain name. Valid value: PUBLIC.

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

The force update.

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

The quota of detection tasks.

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

The name of the instance.

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

The lang.

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

Paid package version. Valid values: ultimate, standard.

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

The Payment Type of the resource. Valid value: Subscription.

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

Creating a pre-paid instance, it must be set, the unit is month, please enter an integer multiple of 12 for annually paid products.

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

The Public Network domain name access method. Valid values: CUSTOM, SYSTEM_ASSIGN.

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

The CNAME access domain name.

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

The website domain name that the user uses on the Internet.

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

The domain name that is used to access GTM over the Internet.

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

Automatic renewal status. Valid values: AutoRenewal, ManualRenewal.

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

Automatic renewal period, the unit is month. When setting renewal_status to AutoRenewal, it must be set.

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

The ID of the resource group.

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

The quota of SMS notifications.

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

The type of the access policy. Valid values: GEO, LATENCY.

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

The global time to live. Valid values: 60, 120, 300, 600. Unit: second.