Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.alicloud.ga.kotlin
import com.pulumi.alicloud.ga.AcceleratorArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Provides a Global Accelerator (GA) Accelerator resource.
* For information about Global Accelerator (GA) Accelerator and how to use it, see [What is Accelerator](https://www.alibabacloud.com/help/en/global-accelerator/latest/api-ga-2019-11-20-createaccelerator).
* > **NOTE:** Available since v1.111.0.
* ## Example Usage
* Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as alicloud from "@pulumi/alicloud";
* const example = new alicloud.ga.Accelerator("example", {
* duration: 1,
* autoUseCoupon: true,
* spec: "1",
* });
* ```
* ```python
* import pulumi
* import pulumi_alicloud as alicloud
* example = alicloud.ga.Accelerator("example",
* duration=1,
* auto_use_coupon=True,
* spec="1")
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AliCloud = Pulumi.AliCloud;
* return await Deployment.RunAsync(() =>
* {
* var example = new AliCloud.Ga.Accelerator("example", new()
* {
* Duration = 1,
* AutoUseCoupon = true,
* Spec = "1",
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ga"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := ga.NewAccelerator(ctx, "example", &ga.AcceleratorArgs{
* Duration: pulumi.Int(1),
* AutoUseCoupon: pulumi.Bool(true),
* Spec: pulumi.String("1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.alicloud.ga.Accelerator;
* import com.pulumi.alicloud.ga.AcceleratorArgs;
* 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 Accelerator("example", AcceleratorArgs.builder()
* .duration(1)
* .autoUseCoupon(true)
* .spec("1")
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: alicloud:ga:Accelerator
* properties:
* duration: 1
* autoUseCoupon: true
* spec: '1'
* ```
*
* ## Import
* Ga Accelerator can be imported using the id, e.g.
* ```sh
* $ pulumi import alicloud:ga/accelerator:Accelerator example
* ```
* @property acceleratorName The Name of the GA instance.
* @property autoRenewDuration Auto renewal period of an instance, in the unit of month. The value range is 1-12.
* @property autoUseCoupon Use coupons to pay bills automatically. Default value: `false`. Valid values:
* @property bandwidthBillingType The bandwidth billing method. Default value: `BandwidthPackage`. Valid values:
* - `BandwidthPackage`: billed based on bandwidth plans.
* - `CDT`: billed based on data transfer.
* @property crossBorderMode The type of cross-border acceleration. Default value: `bgpPro`. Valid values: `bgpPro`, `private`. **NOTE:** `cross_border_mode` is valid only when `cross_border_status` is set to `true`.
* @property crossBorderStatus Indicates whether cross-border acceleration is enabled. Default value: `false`. Valid values:
* @property description Descriptive information of the global acceleration instance.
* @property duration The subscription duration.
* * If the `pricing_cycle` parameter is set to `Month`, the valid values for the `duration` parameter are 1 to 9.
* * If the `pricing_cycle` parameter is set to `Year`, the valid values for the `duration` parameter are 1 to 3.
* @property paymentType The payment type. Default value: `Subscription`. Valid values: `PayAsYouGo`, `Subscription`.
* @property pricingCycle The billing cycle of the GA instance. Default value: `Month`. Valid values:
* - `Month`: billed on a monthly basis.
* - `Year`: billed on an annual basis.
* @property promotionOptionNo The code of the coupon. **NOTE:** The `promotion_option_no` takes effect only for accounts registered on the international site (alibabacloud.com).
* @property renewalStatus Whether to renew an accelerator automatically or not. Default value: `Normal`. Valid values:
* - `AutoRenewal`: Enable auto renewal.
* - `Normal`: Disable auto renewal.
* - `NotRenewal`: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.
* @property resourceGroupId The ID of the resource group. **Note:** Once you set a value of this property, you cannot set it to an empty string anymore.
* @property spec The instance type of the GA instance. Specification of global acceleration instance. Valid values:
* @property tags A mapping of tags to assign to the resource.
*/
public data class AcceleratorArgs(
public val acceleratorName: Output? = null,
public val autoRenewDuration: Output? = null,
public val autoUseCoupon: Output? = null,
public val bandwidthBillingType: Output? = null,
public val crossBorderMode: Output? = null,
public val crossBorderStatus: Output? = null,
public val description: Output? = null,
public val duration: Output? = null,
public val paymentType: Output? = null,
public val pricingCycle: Output? = null,
public val promotionOptionNo: Output? = null,
public val renewalStatus: Output? = null,
public val resourceGroupId: Output? = null,
public val spec: Output? = null,
public val tags: Output