com.pulumi.azurenative.iotcentral.App Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.iotcentral;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.iotcentral.AppArgs;
import com.pulumi.azurenative.iotcentral.outputs.AppSkuInfoResponse;
import com.pulumi.azurenative.iotcentral.outputs.SystemAssignedServiceIdentityResponse;
import com.pulumi.core.Alias;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* The IoT Central application.
* Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2021-06-01.
*
* Other available API versions: 2018-09-01, 2021-11-01-preview.
*
* ## Example Usage
* ### Apps_CreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.iotcentral.App;
* import com.pulumi.azurenative.iotcentral.AppArgs;
* import com.pulumi.azurenative.iotcentral.inputs.SystemAssignedServiceIdentityArgs;
* import com.pulumi.azurenative.iotcentral.inputs.AppSkuInfoArgs;
* 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 app = new App("app", AppArgs.builder()
* .displayName("My IoT Central App")
* .identity(SystemAssignedServiceIdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .location("westus")
* .resourceGroupName("resRg")
* .resourceName("myIoTCentralApp")
* .sku(AppSkuInfoArgs.builder()
* .name("ST2")
* .build())
* .subdomain("my-iot-central-app")
* .template("iotc-pnp-preview}{@literal @}{@code 1.0.0")
* .build());
*
* }}{@code
* }}{@code
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:iotcentral:App myIoTCentralApp /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}
* ```
*
*/
@ResourceType(type="azure-native:iotcentral:App")
public class App extends com.pulumi.resources.CustomResource {
/**
* The ID of the application.
*
*/
@Export(name="applicationId", refs={String.class}, tree="[0]")
private Output applicationId;
/**
* @return The ID of the application.
*
*/
public Output applicationId() {
return this.applicationId;
}
/**
* The display name of the application.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> displayName;
/**
* @return The display name of the application.
*
*/
public Output> displayName() {
return Codegen.optional(this.displayName);
}
/**
* The managed identities for the IoT Central application.
*
*/
@Export(name="identity", refs={SystemAssignedServiceIdentityResponse.class}, tree="[0]")
private Output* @Nullable */ SystemAssignedServiceIdentityResponse> identity;
/**
* @return The managed identities for the IoT Central application.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* The resource location.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The resource location.
*
*/
public Output location() {
return this.location;
}
/**
* The ARM resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The ARM resource name.
*
*/
public Output name() {
return this.name;
}
/**
* A valid instance SKU.
*
*/
@Export(name="sku", refs={AppSkuInfoResponse.class}, tree="[0]")
private Output sku;
/**
* @return A valid instance SKU.
*
*/
public Output sku() {
return this.sku;
}
/**
* The current state of the application.
*
*/
@Export(name="state", refs={String.class}, tree="[0]")
private Output state;
/**
* @return The current state of the application.
*
*/
public Output state() {
return this.state;
}
/**
* The subdomain of the application.
*
*/
@Export(name="subdomain", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> subdomain;
/**
* @return The subdomain of the application.
*
*/
public Output> subdomain() {
return Codegen.optional(this.subdomain);
}
/**
* The resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return The resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
*
*/
@Export(name="template", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> template;
/**
* @return The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.
*
*/
public Output> template() {
return Codegen.optional(this.template);
}
/**
* The resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The resource type.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public App(java.lang.String name) {
this(name, AppArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public App(java.lang.String name, AppArgs 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 App(java.lang.String name, AppArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:iotcentral:App", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private App(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:iotcentral:App", name, null, makeResourceOptions(options, id), false);
}
private static AppArgs makeArgs(AppArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? AppArgs.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())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:iotcentral/v20180901:App").build()),
Output.of(Alias.builder().type("azure-native:iotcentral/v20210601:App").build()),
Output.of(Alias.builder().type("azure-native:iotcentral/v20211101preview:App").build())
))
.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 options Optional settings to control the behavior of the CustomResource.
*/
public static App get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new App(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy