com.pulumi.azure.analysisservices.Server Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azure.analysisservices;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.analysisservices.ServerArgs;
import com.pulumi.azure.analysisservices.inputs.ServerState;
import com.pulumi.azure.analysisservices.outputs.ServerIpv4FirewallRule;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages an Analysis Services Server.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* 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 }{{@code
* public static void main(String[] args) }{{@code
* Pulumi.run(App::stack);
* }}{@code
*
* public static void stack(Context ctx) }{{@code
* 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("myuser}{@literal @}{@code domain.tld")
* .powerBiServiceEnabled(true)
* .ipv4FirewallRules(ServerIpv4FirewallRuleArgs.builder()
* .name("myRule1")
* .rangeStart("210.117.252.0")
* .rangeEnd("210.117.252.255")
* .build())
* .tags(Map.of("abc", 123))
* .build());
*
* }}{@code
* }}{@code
* }
*
* <!--End PulumiCodeChooser -->
*
* > **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
* ```
*
*/
@ResourceType(type="azure:analysisservices/server:Server")
public class Server extends com.pulumi.resources.CustomResource {
/**
* List of email addresses of admin users.
*
*/
@Export(name="adminUsers", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> adminUsers;
/**
* @return List of email addresses of admin users.
*
*/
public Output>> adminUsers() {
return Codegen.optional(this.adminUsers);
}
/**
* URI and SAS token for a blob container to store backups.
*
*/
@Export(name="backupBlobContainerUri", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> backupBlobContainerUri;
/**
* @return URI and SAS token for a blob container to store backups.
*
*/
public Output> backupBlobContainerUri() {
return Codegen.optional(this.backupBlobContainerUri);
}
/**
* One or more `ipv4_firewall_rule` block(s) as defined below.
*
*/
@Export(name="ipv4FirewallRules", refs={List.class,ServerIpv4FirewallRule.class}, tree="[0,1]")
private Output* @Nullable */ List> ipv4FirewallRules;
/**
* @return One or more `ipv4_firewall_rule` block(s) as defined below.
*
*/
public Output>> ipv4FirewallRules() {
return Codegen.optional(this.ipv4FirewallRules);
}
/**
* The Azure location where the Analysis Services Server exists. Changing this forces a new resource to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The Azure location where the Analysis Services Server exists. Changing this forces a new resource to be created.
*
*/
public Output location() {
return this.location;
}
/**
* 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.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return 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 Output name() {
return this.name;
}
/**
* Indicates if the Power BI service is allowed to access or not.
*
*/
@Export(name="powerBiServiceEnabled", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> powerBiServiceEnabled;
/**
* @return Indicates if the Power BI service is allowed to access or not.
*
*/
public Output> powerBiServiceEnabled() {
return Codegen.optional(this.powerBiServiceEnabled);
}
/**
* 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. Defaults to `All`.
*
*/
@Export(name="querypoolConnectionMode", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> querypoolConnectionMode;
/**
* @return 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. Defaults to `All`.
*
*/
public Output> querypoolConnectionMode() {
return Codegen.optional(this.querypoolConnectionMode);
}
/**
* The name of the Resource Group in which the Analysis Services Server should be exist. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return 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 Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* The full name of the Analysis Services Server.
*
*/
@Export(name="serverFullName", refs={String.class}, tree="[0]")
private Output serverFullName;
/**
* @return The full name of the Analysis Services Server.
*
*/
public Output serverFullName() {
return this.serverFullName;
}
/**
* SKU for the Analysis Services Server. Possible values are: `D1`, `B1`, `B2`, `S0`, `S1`, `S2`, `S4`, `S8`, `S9`, `S8v2` and `S9v2`.
*
*/
@Export(name="sku", refs={String.class}, tree="[0]")
private Output sku;
/**
* @return SKU for the Analysis Services Server. Possible values are: `D1`, `B1`, `B2`, `S0`, `S1`, `S2`, `S4`, `S8`, `S9`, `S8v2` and `S9v2`.
*
*/
public Output sku() {
return this.sku;
}
/**
* A mapping of tags to assign to the resource.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags to assign to the resource.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Server(java.lang.String name) {
this(name, ServerArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Server(java.lang.String name, ServerArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Server(java.lang.String name, ServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:analysisservices/server:Server", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Server(java.lang.String name, Output id, @Nullable ServerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:analysisservices/server:Server", name, state, makeResourceOptions(options, id), false);
}
private static ServerArgs makeArgs(ServerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ServerArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.additionalSecretOutputs(List.of(
"backupBlobContainerUri"
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Server get(java.lang.String name, Output id, @Nullable ServerState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Server(name, id, state, options);
}
}