![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.analysisservices.kotlin.Server.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
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.azure.analysisservices.kotlin
import com.pulumi.azure.analysisservices.kotlin.outputs.ServerIpv4FirewallRule
import com.pulumi.azure.analysisservices.kotlin.outputs.ServerIpv4FirewallRule.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
/**
* Builder for [Server].
*/
@PulumiTagMarker
public class ServerResourceBuilder internal constructor() {
public var name: String? = null
public var args: ServerArgs = ServerArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend ServerArgsBuilder.() -> Unit) {
val builder = ServerArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Server {
val builtJavaResource = com.pulumi.azure.analysisservices.Server(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Server(builtJavaResource)
}
}
/**
* Manages an Analysis Services Server.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "analysis-services-server-test",
* location: "West Europe",
* });
* const server = new azure.analysisservices.Server("server", {
* name: "analysisservicesserver",
* location: example.location,
* resourceGroupName: example.name,
* sku: "S0",
* adminUsers: ["myuser@domain.tld"],
* enablePowerBiService: true,
* ipv4FirewallRules: [{
* name: "myRule1",
* rangeStart: "210.117.252.0",
* rangeEnd: "210.117.252.255",
* }],
* tags: {
* abc: "123",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="analysis-services-server-test",
* location="West Europe")
* server = azure.analysisservices.Server("server",
* name="analysisservicesserver",
* location=example.location,
* resource_group_name=example.name,
* sku="S0",
* admin_users=["myuser@domain.tld"],
* enable_power_bi_service=True,
* ipv4_firewall_rules=[{
* "name": "myRule1",
* "range_start": "210.117.252.0",
* "range_end": "210.117.252.255",
* }],
* tags={
* "abc": "123",
* })
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "analysis-services-server-test",
* Location = "West Europe",
* });
* var server = new Azure.AnalysisServices.Server("server", new()
* {
* Name = "analysisservicesserver",
* Location = example.Location,
* ResourceGroupName = example.Name,
* Sku = "S0",
* AdminUsers = new[]
* {
* "[email protected]",
* },
* EnablePowerBiService = true,
* Ipv4FirewallRules = new[]
* {
* new Azure.AnalysisServices.Inputs.ServerIpv4FirewallRuleArgs
* {
* Name = "myRule1",
* RangeStart = "210.117.252.0",
* RangeEnd = "210.117.252.255",
* },
* },
* Tags =
* {
* { "abc", "123" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/analysisservices"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("analysis-services-server-test"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = analysisservices.NewServer(ctx, "server", &analysisservices.ServerArgs{
* Name: pulumi.String("analysisservicesserver"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* Sku: pulumi.String("S0"),
* AdminUsers: pulumi.StringArray{
* pulumi.String("[email protected]"),
* },
* EnablePowerBiService: pulumi.Bool(true),
* Ipv4FirewallRules: analysisservices.ServerIpv4FirewallRuleArray{
* &analysisservices.ServerIpv4FirewallRuleArgs{
* Name: pulumi.String("myRule1"),
* RangeStart: pulumi.String("210.117.252.0"),
* RangeEnd: pulumi.String("210.117.252.255"),
* },
* },
* Tags: pulumi.StringMap{
* "abc": pulumi.String("123"),
* },
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.analysisservices.Server;
* import com.pulumi.azure.analysisservices.ServerArgs;
* import com.pulumi.azure.analysisservices.inputs.ServerIpv4FirewallRuleArgs;
* 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 ResourceGroup("example", ResourceGroupArgs.builder()
* .name("analysis-services-server-test")
* .location("West Europe")
* .build());
* var server = new Server("server", ServerArgs.builder()
* .name("analysisservicesserver")
* .location(example.location())
* .resourceGroupName(example.name())
* .sku("S0")
* .adminUsers("[email protected]")
* .enablePowerBiService(true)
* .ipv4FirewallRules(ServerIpv4FirewallRuleArgs.builder()
* .name("myRule1")
* .rangeStart("210.117.252.0")
* .rangeEnd("210.117.252.255")
* .build())
* .tags(Map.of("abc", 123))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: analysis-services-server-test
* location: West Europe
* server:
* type: azure:analysisservices:Server
* properties:
* name: analysisservicesserver
* location: ${example.location}
* resourceGroupName: ${example.name}
* sku: S0
* adminUsers:
* - [email protected]
* enablePowerBiService: true
* ipv4FirewallRules:
* - name: myRule1
* rangeStart: 210.117.252.0
* rangeEnd: 210.117.252.255
* tags:
* abc: 123
* ```
*
* > **NOTE:** The server resource will automatically be started and stopped during an update if it is in `paused` state.
* ## Import
* Analysis Services Server can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:analysisservices/server:Server server /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.AnalysisServices/servers/server1
* ```
*/
public class Server internal constructor(
override val javaResource: com.pulumi.azure.analysisservices.Server,
) : KotlinCustomResource(javaResource, ServerMapper) {
/**
* List of email addresses of admin users.
*/
public val adminUsers: Output>?
get() = javaResource.adminUsers().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* URI and SAS token for a blob container to store backups.
*/
public val backupBlobContainerUri: Output?
get() = javaResource.backupBlobContainerUri().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Indicates if the Power BI service is allowed to access or not.
*/
@Deprecated(
message = """
The property `enable_power_bi_service` has been superseded by `power_bi_service_enabled` and will
be removed in v4.0 of the AzureRM Provider.
""",
)
public val enablePowerBiService: Output
get() = javaResource.enablePowerBiService().applyValue({ args0 -> args0 })
/**
* One or more `ipv4_firewall_rule` block(s) as defined below.
*/
public val ipv4FirewallRules: Output>?
get() = javaResource.ipv4FirewallRules().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
}).orElse(null)
})
/**
* The Azure location where the Analysis Services Server exists. Changing this forces a new resource to be created.
*/
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* The name of the Analysis Services Server. Only lowercase Alphanumeric characters allowed, starting with a letter. Changing this forces a new resource to be created.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
public val powerBiServiceEnabled: Output
get() = javaResource.powerBiServiceEnabled().applyValue({ args0 -> args0 })
/**
* Controls how the read-write server is used in the query pool. If this value is set to `All` then read-write servers are also used for queries. Otherwise with `ReadOnly` these servers do not participate in query operations.
*/
public val querypoolConnectionMode: Output
get() = javaResource.querypoolConnectionMode().applyValue({ args0 -> args0 })
/**
* The name of the Resource Group in which the Analysis Services Server should be exist. Changing this forces a new resource to be created.
*/
public val resourceGroupName: Output
get() = javaResource.resourceGroupName().applyValue({ args0 -> args0 })
/**
* The full name of the Analysis Services Server.
*/
public val serverFullName: Output
get() = javaResource.serverFullName().applyValue({ args0 -> args0 })
/**
* SKU for the Analysis Services Server. Possible values are: `D1`, `B1`, `B2`, `S0`, `S1`, `S2`, `S4`, `S8`, `S9`, `S8v2` and `S9v2`.
*/
public val sku: Output
get() = javaResource.sku().applyValue({ args0 -> args0 })
/**
* A mapping of tags to assign to the resource.
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy