All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.migrate.WebAppAssessmentV2Operation Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.migrate;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.migrate.WebAppAssessmentV2OperationArgs;
import com.pulumi.azurenative.migrate.outputs.AppSvcContainerSettingsResponse;
import com.pulumi.azurenative.migrate.outputs.AppSvcNativeSettingsResponse;
import com.pulumi.azurenative.migrate.outputs.DiscoveredEntityLightSummaryResponse;
import com.pulumi.azurenative.migrate.outputs.EntityUptimeResponse;
import com.pulumi.azurenative.migrate.outputs.SystemDataResponse;
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.Double;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Web app Assessment REST resource.
 * Azure REST API version: 2023-04-01-preview.
 * 
 * Other available API versions: 2023-05-01-preview.
 * 
 * ## Example Usage
 * ### WebAppAssessmentV2Operations_Create_MaximumSet_Gen
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.migrate.WebAppAssessmentV2Operation;
 * import com.pulumi.azurenative.migrate.WebAppAssessmentV2OperationArgs;
 * import com.pulumi.azurenative.migrate.inputs.AppSvcContainerSettingsArgs;
 * import com.pulumi.azurenative.migrate.inputs.AppSvcNativeSettingsArgs;
 * import com.pulumi.azurenative.migrate.inputs.DiscoveredEntityLightSummaryArgs;
 * import com.pulumi.azurenative.migrate.inputs.EntityUptimeArgs;
 * 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 webAppAssessmentV2Operation = new WebAppAssessmentV2Operation("webAppAssessmentV2Operation", WebAppAssessmentV2OperationArgs.builder()
 *             .appSvcContainerSettings(AppSvcContainerSettingsArgs.builder()
 *                 .isolationRequired(true)
 *                 .build())
 *             .appSvcNativeSettings(AppSvcNativeSettingsArgs.builder()
 *                 .isolationRequired(true)
 *                 .build())
 *             .assessmentName("anraghun-selfhost-v2")
 *             .assessmentType("WebAppAssessment")
 *             .azureLocation("UkWest")
 *             .azureOfferCode("MSAZR0003P")
 *             .azureSecurityOfferingType("NO")
 *             .confidenceRatingInPercentage(13)
 *             .currency("USD")
 *             .discountPercentage(13)
 *             .discoveredEntityLightSummary(DiscoveredEntityLightSummaryArgs.builder()
 *                 .numberOfMachines(27)
 *                 .numberOfServers(5)
 *                 .numberOfWebApps(23)
 *                 .build())
 *             .eaSubscriptionId("")
 *             .entityUptime(EntityUptimeArgs.builder()
 *                 .daysPerMonth(18)
 *                 .hoursPerDay(13)
 *                 .build())
 *             .environmentType("Production")
 *             .groupName("anraghun-selfhost-v2")
 *             .groupType("Default")
 *             .percentile("Percentile50")
 *             .perfDataEndTime("2023-11-03T05:42:45.496Z")
 *             .perfDataStartTime("2023-11-03T05:42:45.496Z")
 *             .projectName("sumukk-ccy-bcs4557project")
 *             .reservedInstance("None")
 *             .resourceGroupName("rgopenapi")
 *             .scalingFactor(17)
 *             .sizingCriterion("PerformanceBased")
 *             .timeRange("Day")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:migrate:WebAppAssessmentV2Operation anraghun-v2-test /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/webAppAssessments/{assessmentName} * ``` * */ @ResourceType(type="azure-native:migrate:WebAppAssessmentV2Operation") public class WebAppAssessmentV2Operation extends com.pulumi.resources.CustomResource { /** * Gets or sets user configurable app service container database settings. * */ @Export(name="appSvcContainerSettings", refs={AppSvcContainerSettingsResponse.class}, tree="[0]") private Output appSvcContainerSettings; /** * @return Gets or sets user configurable app service container database settings. * */ public Output> appSvcContainerSettings() { return Codegen.optional(this.appSvcContainerSettings); } /** * Gets or sets user configurable app service native settings. * */ @Export(name="appSvcNativeSettings", refs={AppSvcNativeSettingsResponse.class}, tree="[0]") private Output appSvcNativeSettings; /** * @return Gets or sets user configurable app service native settings. * */ public Output> appSvcNativeSettings() { return Codegen.optional(this.appSvcNativeSettings); } /** * Assessment type of the assessment. * */ @Export(name="assessmentType", refs={String.class}, tree="[0]") private Output assessmentType; /** * @return Assessment type of the assessment. * */ public Output> assessmentType() { return Codegen.optional(this.assessmentType); } /** * Azure Location or Azure region where to which the machines will be migrated. * */ @Export(name="azureLocation", refs={String.class}, tree="[0]") private Output azureLocation; /** * @return Azure Location or Azure region where to which the machines will be migrated. * */ public Output> azureLocation() { return Codegen.optional(this.azureLocation); } /** * Azure Offer Code. * */ @Export(name="azureOfferCode", refs={String.class}, tree="[0]") private Output azureOfferCode; /** * @return Azure Offer Code. * */ public Output> azureOfferCode() { return Codegen.optional(this.azureOfferCode); } /** * Gets or sets a value indicating azure security offering type. * */ @Export(name="azureSecurityOfferingType", refs={String.class}, tree="[0]") private Output azureSecurityOfferingType; /** * @return Gets or sets a value indicating azure security offering type. * */ public Output> azureSecurityOfferingType() { return Codegen.optional(this.azureSecurityOfferingType); } /** * Confidence Rating in Percentage. * */ @Export(name="confidenceRatingInPercentage", refs={Double.class}, tree="[0]") private Output confidenceRatingInPercentage; /** * @return Confidence Rating in Percentage. * */ public Output> confidenceRatingInPercentage() { return Codegen.optional(this.confidenceRatingInPercentage); } /** * Date and Time when assessment was created. * */ @Export(name="createdTimestamp", refs={String.class}, tree="[0]") private Output createdTimestamp; /** * @return Date and Time when assessment was created. * */ public Output createdTimestamp() { return this.createdTimestamp; } /** * Currency in which prices should be reported. * */ @Export(name="currency", refs={String.class}, tree="[0]") private Output currency; /** * @return Currency in which prices should be reported. * */ public Output> currency() { return Codegen.optional(this.currency); } /** * Custom discount percentage. * */ @Export(name="discountPercentage", refs={Double.class}, tree="[0]") private Output discountPercentage; /** * @return Custom discount percentage. * */ public Output> discountPercentage() { return Codegen.optional(this.discountPercentage); } /** * Gets or sets user configurable discovered entity settings. * */ @Export(name="discoveredEntityLightSummary", refs={DiscoveredEntityLightSummaryResponse.class}, tree="[0]") private Output discoveredEntityLightSummary; /** * @return Gets or sets user configurable discovered entity settings. * */ public Output> discoveredEntityLightSummary() { return Codegen.optional(this.discoveredEntityLightSummary); } /** * Gets or sets the Enterprise agreement subscription id. * */ @Export(name="eaSubscriptionId", refs={String.class}, tree="[0]") private Output eaSubscriptionId; /** * @return Gets or sets the Enterprise agreement subscription id. * */ public Output> eaSubscriptionId() { return Codegen.optional(this.eaSubscriptionId); } /** * Gets or sets the duration for which the entity (Web app, VMs) are up in the * on-premises environment. * */ @Export(name="entityUptime", refs={EntityUptimeResponse.class}, tree="[0]") private Output entityUptime; /** * @return Gets or sets the duration for which the entity (Web app, VMs) are up in the * on-premises environment. * */ public Output> entityUptime() { return Codegen.optional(this.entityUptime); } /** * Gets or sets user configurable setting to display the environment type. * */ @Export(name="environmentType", refs={String.class}, tree="[0]") private Output environmentType; /** * @return Gets or sets user configurable setting to display the environment type. * */ public Output> environmentType() { return Codegen.optional(this.environmentType); } /** * Gets the group type for the assessment. * */ @Export(name="groupType", refs={String.class}, tree="[0]") private Output groupType; /** * @return Gets the group type for the assessment. * */ public Output> groupType() { return Codegen.optional(this.groupType); } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Percentile of the utilization data values to be considered while assessing * machines. * */ @Export(name="percentile", refs={String.class}, tree="[0]") private Output percentile; /** * @return Percentile of the utilization data values to be considered while assessing * machines. * */ public Output> percentile() { return Codegen.optional(this.percentile); } /** * Gets or sets the end time to consider performance data for assessment. * */ @Export(name="perfDataEndTime", refs={String.class}, tree="[0]") private Output perfDataEndTime; /** * @return Gets or sets the end time to consider performance data for assessment. * */ public Output> perfDataEndTime() { return Codegen.optional(this.perfDataEndTime); } /** * Gets or sets the start time to consider performance data for assessment. * */ @Export(name="perfDataStartTime", refs={String.class}, tree="[0]") private Output perfDataStartTime; /** * @return Gets or sets the start time to consider performance data for assessment. * */ public Output> perfDataStartTime() { return Codegen.optional(this.perfDataStartTime); } /** * Last time when rates were queried. * */ @Export(name="pricesTimestamp", refs={String.class}, tree="[0]") private Output pricesTimestamp; /** * @return Last time when rates were queried. * */ public Output pricesTimestamp() { return this.pricesTimestamp; } /** * The status of the last operation. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The status of the last operation. * */ public Output provisioningState() { return this.provisioningState; } /** * Reserved instance. * */ @Export(name="reservedInstance", refs={String.class}, tree="[0]") private Output reservedInstance; /** * @return Reserved instance. * */ public Output> reservedInstance() { return Codegen.optional(this.reservedInstance); } /** * Percentage of buffer that user wants on performance metrics when recommending * Azure sizes. * */ @Export(name="scalingFactor", refs={Double.class}, tree="[0]") private Output scalingFactor; /** * @return Percentage of buffer that user wants on performance metrics when recommending * Azure sizes. * */ public Output> scalingFactor() { return Codegen.optional(this.scalingFactor); } /** * Schema version. * */ @Export(name="schemaVersion", refs={String.class}, tree="[0]") private Output schemaVersion; /** * @return Schema version. * */ public Output schemaVersion() { return this.schemaVersion; } /** * Assessment sizing criterion. * */ @Export(name="sizingCriterion", refs={String.class}, tree="[0]") private Output sizingCriterion; /** * @return Assessment sizing criterion. * */ public Output> sizingCriterion() { return Codegen.optional(this.sizingCriterion); } /** * User configurable setting to display the Stage of Assessment. * */ @Export(name="stage", refs={String.class}, tree="[0]") private Output stage; /** * @return User configurable setting to display the Stage of Assessment. * */ public Output stage() { return this.stage; } /** * Whether assessment is in valid state and all machines have been assessed. * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Whether assessment is in valid state and all machines have been assessed. * */ public Output status() { return this.status; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * Time Range for which the historic utilization data should be considered for * assessment. * */ @Export(name="timeRange", refs={String.class}, tree="[0]") private Output timeRange; /** * @return Time Range for which the historic utilization data should be considered for * assessment. * */ public Output> timeRange() { return Codegen.optional(this.timeRange); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * Date and Time when assessment was last updated. * */ @Export(name="updatedTimestamp", refs={String.class}, tree="[0]") private Output updatedTimestamp; /** * @return Date and Time when assessment was last updated. * */ public Output updatedTimestamp() { return this.updatedTimestamp; } /** * * @param name The _unique_ name of the resulting resource. */ public WebAppAssessmentV2Operation(java.lang.String name) { this(name, WebAppAssessmentV2OperationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public WebAppAssessmentV2Operation(java.lang.String name, WebAppAssessmentV2OperationArgs 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 WebAppAssessmentV2Operation(java.lang.String name, WebAppAssessmentV2OperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:migrate:WebAppAssessmentV2Operation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private WebAppAssessmentV2Operation(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:migrate:WebAppAssessmentV2Operation", name, null, makeResourceOptions(options, id), false); } private static WebAppAssessmentV2OperationArgs makeArgs(WebAppAssessmentV2OperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? WebAppAssessmentV2OperationArgs.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:migrate/v20230401preview:WebAppAssessmentV2Operation").build()), Output.of(Alias.builder().type("azure-native:migrate/v20230501preview:WebAppAssessmentV2Operation").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 WebAppAssessmentV2Operation get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new WebAppAssessmentV2Operation(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy