com.pulumi.azurenative.web.WebAppSiteContainer 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.web;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.web.WebAppSiteContainerArgs;
import com.pulumi.azurenative.web.outputs.EnvironmentVariableResponse;
import com.pulumi.azurenative.web.outputs.VolumeMountResponse;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Container of a site
* Azure REST API version: 2023-12-01.
*
* Other available API versions: 2024-04-01.
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:web:WebAppSiteContainer myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sitecontainers/{containerName}
* ```
*
*/
@ResourceType(type="azure-native:web:WebAppSiteContainer")
public class WebAppSiteContainer extends com.pulumi.resources.CustomResource {
/**
* Auth Type
*
*/
@Export(name="authType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> authType;
/**
* @return Auth Type
*
*/
public Output> authType() {
return Codegen.optional(this.authType);
}
/**
* Created Time
*
*/
@Export(name="createdTime", refs={String.class}, tree="[0]")
private Output createdTime;
/**
* @return Created Time
*
*/
public Output createdTime() {
return this.createdTime;
}
/**
* List of environment variables
*
*/
@Export(name="environmentVariables", refs={List.class,EnvironmentVariableResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> environmentVariables;
/**
* @return List of environment variables
*
*/
public Output>> environmentVariables() {
return Codegen.optional(this.environmentVariables);
}
/**
* Image Name
*
*/
@Export(name="image", refs={String.class}, tree="[0]")
private Output image;
/**
* @return Image Name
*
*/
public Output image() {
return this.image;
}
/**
* <code>true</code> if the container is the main site container; <code>false</code> otherwise.
*
*/
@Export(name="isMain", refs={Boolean.class}, tree="[0]")
private Output isMain;
/**
* @return <code>true</code> if the container is the main site container; <code>false</code> otherwise.
*
*/
public Output isMain() {
return this.isMain;
}
/**
* Kind of resource.
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> kind;
/**
* @return Kind of resource.
*
*/
public Output> kind() {
return Codegen.optional(this.kind);
}
/**
* Last Modified Time
*
*/
@Export(name="lastModifiedTime", refs={String.class}, tree="[0]")
private Output lastModifiedTime;
/**
* @return Last Modified Time
*
*/
public Output lastModifiedTime() {
return this.lastModifiedTime;
}
/**
* Resource Name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource Name.
*
*/
public Output name() {
return this.name;
}
/**
* Password Secret
*
*/
@Export(name="passwordSecret", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> passwordSecret;
/**
* @return Password Secret
*
*/
public Output> passwordSecret() {
return Codegen.optional(this.passwordSecret);
}
/**
* StartUp Command
*
*/
@Export(name="startUpCommand", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> startUpCommand;
/**
* @return StartUp Command
*
*/
public Output> startUpCommand() {
return Codegen.optional(this.startUpCommand);
}
/**
* Target Port
*
*/
@Export(name="targetPort", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> targetPort;
/**
* @return Target Port
*
*/
public Output> targetPort() {
return Codegen.optional(this.targetPort);
}
/**
* Resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Resource type.
*
*/
public Output type() {
return this.type;
}
/**
* UserManagedIdentity ClientId
*
*/
@Export(name="userManagedIdentityClientId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> userManagedIdentityClientId;
/**
* @return UserManagedIdentity ClientId
*
*/
public Output> userManagedIdentityClientId() {
return Codegen.optional(this.userManagedIdentityClientId);
}
/**
* User Name
*
*/
@Export(name="userName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> userName;
/**
* @return User Name
*
*/
public Output> userName() {
return Codegen.optional(this.userName);
}
/**
* List of volume mounts
*
*/
@Export(name="volumeMounts", refs={List.class,VolumeMountResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> volumeMounts;
/**
* @return List of volume mounts
*
*/
public Output>> volumeMounts() {
return Codegen.optional(this.volumeMounts);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public WebAppSiteContainer(java.lang.String name) {
this(name, WebAppSiteContainerArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public WebAppSiteContainer(java.lang.String name, WebAppSiteContainerArgs 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 WebAppSiteContainer(java.lang.String name, WebAppSiteContainerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:web:WebAppSiteContainer", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private WebAppSiteContainer(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:web:WebAppSiteContainer", name, null, makeResourceOptions(options, id), false);
}
private static WebAppSiteContainerArgs makeArgs(WebAppSiteContainerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? WebAppSiteContainerArgs.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:web/v20231201:WebAppSiteContainer").build()),
Output.of(Alias.builder().type("azure-native:web/v20240401:WebAppSiteContainer").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 WebAppSiteContainer get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new WebAppSiteContainer(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy