GatewayArgs

data class GatewayArgs(val description: Output<String>? = null, val gatewayClass: Output<String>? = null, val gatewayName: Output<String>? = null, val location: Output<String>? = null, val paymentType: Output<String>? = null, val publicNetworkBandwidth: Output<Int>? = null, val reasonDetail: Output<String>? = null, val reasonType: Output<String>? = null, val releaseAfterExpiration: Output<Boolean>? = null, val storageBundleId: Output<String>? = null, val type: Output<String>? = null, val vswitchId: Output<String>? = null) : ConvertibleToJava<GatewayArgs>

Provides a Cloud Storage Gateway: Gateway resource. For information about Cloud Storage Gateway Gateway and how to use it, see What is Gateway.

NOTE: Available in v1.132.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.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundle;
import com.pulumi.alicloud.cloudstoragegateway.StorageBundleArgs;
import com.pulumi.alicloud.cloudstoragegateway.Gateway;
import com.pulumi.alicloud.cloudstoragegateway.GatewayArgs;
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 vpc = new Network("vpc", NetworkArgs.builder()
.vpcName("tf_test_foo")
.cidrBlock("172.16.0.0/12")
.build());
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(vpc.id())
.cidrBlock("172.16.0.0/21")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName("tf-testAccCsgName")
.build());
var example = new StorageBundle("example", StorageBundleArgs.builder()
.storageBundleName("example_value")
.build());
var defaultGateway = new Gateway("defaultGateway", GatewayArgs.builder()
.description("tf-acctestDesalone")
.gatewayClass("Standard")
.type("File")
.paymentType("PayAsYouGo")
.vswitchId(defaultSwitch.id())
.releaseAfterExpiration(false)
.publicNetworkBandwidth(40)
.storageBundleId(example.id())
.location("Cloud")
.gatewayName("tf-acctestGatewayName")
.build());
}
}

Import

Cloud Storage Gateway Gateway can be imported using the id, e.g.

$ pulumi import alicloud:cloudstoragegateway/gateway:Gateway example <id>

Constructors

Link copied to clipboard
fun GatewayArgs(description: Output<String>? = null, gatewayClass: Output<String>? = null, gatewayName: Output<String>? = null, location: Output<String>? = null, paymentType: Output<String>? = null, publicNetworkBandwidth: Output<Int>? = null, reasonDetail: Output<String>? = null, reasonType: Output<String>? = null, releaseAfterExpiration: Output<Boolean>? = null, storageBundleId: Output<String>? = null, type: Output<String>? = null, vswitchId: Output<String>? = null)

Functions

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

Properties

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

the description of gateway.

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

the gateway class. the valid values: Basic, Standard,Enhanced,Advanced

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

the name of gateway.

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

gateway location. the valid values: Cloud, On_Premise.

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

The Payment type of gateway. The valid value: PayAsYouGo.

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

The public network bandwidth of gateway. Valid values between 5 and 200. Defaults to 5.

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

The reason detail of gateway.

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

The reason type when user deletes the gateway.

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

Whether to release the gateway due to expiration.

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

storage bundle id.

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

gateway type. the valid values: Type, Iscsi.

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

The vswitch id of gateway.