SimpleOfficeSiteArgs

data class SimpleOfficeSiteArgs(val bandwidth: Output<Int>? = null, val cenId: Output<String>? = null, val cenOwnerId: Output<String>? = null, val cidrBlock: Output<String>? = null, val desktopAccessType: Output<String>? = null, val enableAdminAccess: Output<Boolean>? = null, val enableCrossDesktopAccess: Output<Boolean>? = null, val enableInternetAccess: Output<Boolean>? = null, val mfaEnabled: Output<Boolean>? = null, val officeSiteName: Output<String>? = null, val ssoEnabled: Output<Boolean>? = null) : ConvertibleToJava<SimpleOfficeSiteArgs>

Provides a ECD Simple Office Site resource. For information about ECD Simple Office Site and how to use it, see What is Simple Office Site.

NOTE: Available since v1.140.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultSimpleOfficeSite = new alicloud.eds.SimpleOfficeSite("default", {
cidrBlock: "172.16.0.0/12",
enableAdminAccess: true,
desktopAccessType: "Internet",
officeSiteName: `terraform-example-${_default.result}`,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
min=10000,
max=99999)
default_simple_office_site = alicloud.eds.SimpleOfficeSite("default",
cidr_block="172.16.0.0/12",
enable_admin_access=True,
desktop_access_type="Internet",
office_site_name=f"terraform-example-{default['result']}")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("default", new()
{
CidrBlock = "172.16.0.0/12",
EnableAdminAccess = true,
DesktopAccessType = "Internet",
OfficeSiteName = $"terraform-example-{@default.Result}",
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = eds.NewSimpleOfficeSite(ctx, "default", &eds.SimpleOfficeSiteArgs{
CidrBlock: pulumi.String("172.16.0.0/12"),
EnableAdminAccess: pulumi.Bool(true),
DesktopAccessType: pulumi.String("Internet"),
OfficeSiteName: pulumi.Sprintf("terraform-example-%v", _default.Result),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.integerArgs;
import com.pulumi.alicloud.eds.SimpleOfficeSite;
import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder()
.cidrBlock("172.16.0.0/12")
.enableAdminAccess(true)
.desktopAccessType("Internet")
.officeSiteName(String.format("terraform-example-%s", default_.result()))
.build());
}
}
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
defaultSimpleOfficeSite:
type: alicloud:eds:SimpleOfficeSite
name: default
properties:
cidrBlock: 172.16.0.0/12
enableAdminAccess: true
desktopAccessType: Internet
officeSiteName: terraform-example-${default.result}

Import

ECD Simple Office Site can be imported using the id, e.g.

$ pulumi import alicloud:eds/simpleOfficeSite:SimpleOfficeSite example <id>

Constructors

Link copied to clipboard
constructor(bandwidth: Output<Int>? = null, cenId: Output<String>? = null, cenOwnerId: Output<String>? = null, cidrBlock: Output<String>? = null, desktopAccessType: Output<String>? = null, enableAdminAccess: Output<Boolean>? = null, enableCrossDesktopAccess: Output<Boolean>? = null, enableInternetAccess: Output<Boolean>? = null, mfaEnabled: Output<Boolean>? = null, officeSiteName: Output<String>? = null, ssoEnabled: Output<Boolean>? = null)

Properties

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

The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.

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

Cloud Enterprise Network Instance ID.

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

The cen owner id.

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

Workspace Corresponds to the Security Office Network of IPv4 Segment.

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

Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values: Any, Internet, VPC.

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

Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.

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

Enable Cross-Desktop Access.

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

Whether the Open Internet Access Function.

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

Whether to Enable Multi-Factor Authentication MFA.

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

The office site name.

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

Whether to Enable Single Sign-on (SSO) for User-Based SSO.

Functions

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