Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.migrate.AssessmentsOperation Maven / Gradle / Ivy
Go to download
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.migrate;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.migrate.AssessmentsOperationArgs;
import com.pulumi.azurenative.migrate.outputs.CostComponentResponse;
import com.pulumi.azurenative.migrate.outputs.SystemDataResponse;
import com.pulumi.azurenative.migrate.outputs.VmUptimeResponse;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Machine assessment resource.
* Azure REST API version: 2023-04-01-preview.
*
* Other available API versions: 2023-03-15, 2023-05-01-preview.
*
* ## Example Usage
* ### AssessmentsOperations_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.AssessmentsOperation;
* import com.pulumi.azurenative.migrate.AssessmentsOperationArgs;
* import com.pulumi.azurenative.migrate.inputs.VmUptimeArgs;
* 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 assessmentsOperation = new AssessmentsOperation("assessmentsOperation", AssessmentsOperationArgs.builder()
* .assessmentName("asm1")
* .azureDiskTypes(
* "Premium",
* "StandardSSD")
* .azureHybridUseBenefit("Unknown")
* .azureLocation("njxbwdtsxzhichsnk")
* .azureOfferCode("Unknown")
* .azurePricingTier("Standard")
* .azureStorageRedundancy("Unknown")
* .azureVmFamilies(
* "D_series",
* "Lsv2_series",
* "M_series",
* "Mdsv2_series",
* "Msv2_series",
* "Mv2_series")
* .currency("Unknown")
* .discountPercentage(6)
* .eaSubscriptionId("kwsu")
* .groupName("kuchatur-test")
* .linuxAzureHybridUseBenefit("Unknown")
* .percentile("Percentile50")
* .perfDataEndTime("2023-09-26T09:36:48.491Z")
* .perfDataStartTime("2023-09-26T09:36:48.491Z")
* .projectName("app18700project")
* .provisioningState("Succeeded")
* .reservedInstance("None")
* .resourceGroupName("ayagrawrg")
* .scalingFactor(24)
* .sizingCriterion("PerformanceBased")
* .timeRange("Day")
* .vmUptime(VmUptimeArgs.builder()
* .daysPerMonth(13)
* .hoursPerDay(26)
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:migrate:AssessmentsOperation asm1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/assessmentProjects/{projectName}/groups/{groupName}/assessments/{assessmentName}
* ```
*
*/
@ResourceType(type="azure-native:migrate:AssessmentsOperation")
public class AssessmentsOperation extends com.pulumi.resources.CustomResource {
/**
* Gets or sets the assessment error summary.
* This is the number of
* machines affected by each type of error in this assessment.
*
*/
@Export(name="assessmentErrorSummary", refs={Map.class,String.class,Integer.class}, tree="[0,1,2]")
private Output> assessmentErrorSummary;
/**
* @return Gets or sets the assessment error summary.
* This is the number of
* machines affected by each type of error in this assessment.
*
*/
public Output> assessmentErrorSummary() {
return this.assessmentErrorSummary;
}
/**
* 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 this.assessmentType;
}
/**
* Gets or sets the azure storage type. Premium, Standard etc.
*
*/
@Export(name="azureDiskTypes", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> azureDiskTypes;
/**
* @return Gets or sets the azure storage type. Premium, Standard etc.
*
*/
public Output>> azureDiskTypes() {
return Codegen.optional(this.azureDiskTypes);
}
/**
* Gets or sets the user configurable setting to display the azure hybrid use
* benefit.
*
*/
@Export(name="azureHybridUseBenefit", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> azureHybridUseBenefit;
/**
* @return Gets or sets the user configurable setting to display the azure hybrid use
* benefit.
*
*/
public Output> azureHybridUseBenefit() {
return Codegen.optional(this.azureHybridUseBenefit);
}
/**
* Azure Location or Azure region where to which the machines will be migrated.
*
*/
@Export(name="azureLocation", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> 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* @Nullable */ String> azureOfferCode;
/**
* @return Azure Offer Code.
*
*/
public Output> azureOfferCode() {
return Codegen.optional(this.azureOfferCode);
}
/**
* Gets or sets Azure Pricing Tier - Free, Basic, etc.
*
*/
@Export(name="azurePricingTier", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> azurePricingTier;
/**
* @return Gets or sets Azure Pricing Tier - Free, Basic, etc.
*
*/
public Output> azurePricingTier() {
return Codegen.optional(this.azurePricingTier);
}
/**
* Gets or sets the Azure Storage Redundancy. Example: Locally Redundant Storage.
*
*/
@Export(name="azureStorageRedundancy", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> azureStorageRedundancy;
/**
* @return Gets or sets the Azure Storage Redundancy. Example: Locally Redundant Storage.
*
*/
public Output> azureStorageRedundancy() {
return Codegen.optional(this.azureStorageRedundancy);
}
/**
* Gets or sets the Azure VM families.
*
*/
@Export(name="azureVmFamilies", refs={List.class,String.class}, tree="[0,1]")
private Output* @Nullable */ List> azureVmFamilies;
/**
* @return Gets or sets the Azure VM families.
*
*/
public Output>> azureVmFamilies() {
return Codegen.optional(this.azureVmFamilies);
}
/**
* Confidence Rating in Percentage.
*
*/
@Export(name="confidenceRatingInPercentage", refs={Double.class}, tree="[0]")
private Output confidenceRatingInPercentage;
/**
* @return Confidence Rating in Percentage.
*
*/
public Output confidenceRatingInPercentage() {
return this.confidenceRatingInPercentage;
}
/**
* Gets the collection of cost components.
*
*/
@Export(name="costComponents", refs={List.class,CostComponentResponse.class}, tree="[0,1]")
private Output> costComponents;
/**
* @return Gets the collection of cost components.
*
*/
public Output> costComponents() {
return this.costComponents;
}
/**
* 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* @Nullable */ String> 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* @Nullable */ Double> discountPercentage;
/**
* @return Custom discount percentage.
*
*/
public Output> discountPercentage() {
return Codegen.optional(this.discountPercentage);
}
/**
* Gets the distribution by os name.
*
*/
@Export(name="distributionByOsName", refs={Map.class,String.class,Integer.class}, tree="[0,1,2]")
private Output> distributionByOsName;
/**
* @return Gets the distribution by os name.
*
*/
public Output> distributionByOsName() {
return this.distributionByOsName;
}
/**
* Gets the distribution distribution of sqlInstances by service pack insight.
*
*/
@Export(name="distributionByServicePackInsight", refs={Map.class,String.class,Integer.class}, tree="[0,1,2]")
private Output> distributionByServicePackInsight;
/**
* @return Gets the distribution distribution of sqlInstances by service pack insight.
*
*/
public Output> distributionByServicePackInsight() {
return this.distributionByServicePackInsight;
}
/**
* Gets the distribution of sqlInstances by support status.
*
*/
@Export(name="distributionBySupportStatus", refs={Map.class,String.class,Integer.class}, tree="[0,1,2]")
private Output> distributionBySupportStatus;
/**
* @return Gets the distribution of sqlInstances by support status.
*
*/
public Output> distributionBySupportStatus() {
return this.distributionBySupportStatus;
}
/**
* Gets or sets enterprise agreement subscription id.
*
*/
@Export(name="eaSubscriptionId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> eaSubscriptionId;
/**
* @return Gets or sets enterprise agreement subscription id.
*
*/
public Output> eaSubscriptionId() {
return Codegen.optional(this.eaSubscriptionId);
}
/**
* 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 this.groupType;
}
/**
* Gets or sets the user configurable setting to display the linux azure hybrid use
* benefit.
*
*/
@Export(name="linuxAzureHybridUseBenefit", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> linuxAzureHybridUseBenefit;
/**
* @return Gets or sets the user configurable setting to display the linux azure hybrid use
* benefit.
*
*/
public Output> linuxAzureHybridUseBenefit() {
return Codegen.optional(this.linuxAzureHybridUseBenefit);
}
/**
* Gets or sets the aggregate Bandwidth Cost for all machines in the assessment.
*
*/
@Export(name="monthlyBandwidthCost", refs={Double.class}, tree="[0]")
private Output monthlyBandwidthCost;
/**
* @return Gets or sets the aggregate Bandwidth Cost for all machines in the assessment.
*
*/
public Output monthlyBandwidthCost() {
return this.monthlyBandwidthCost;
}
/**
* Gets or sets the aggregate Compute Cost for all machines in the assessment.
*
*/
@Export(name="monthlyComputeCost", refs={Double.class}, tree="[0]")
private Output monthlyComputeCost;
/**
* @return Gets or sets the aggregate Compute Cost for all machines in the assessment.
*
*/
public Output monthlyComputeCost() {
return this.monthlyComputeCost;
}
/**
* Gets or sets the aggregate premium storage cost for all machines in the
* assessment.
*
*/
@Export(name="monthlyPremiumStorageCost", refs={Double.class}, tree="[0]")
private Output monthlyPremiumStorageCost;
/**
* @return Gets or sets the aggregate premium storage cost for all machines in the
* assessment.
*
*/
public Output monthlyPremiumStorageCost() {
return this.monthlyPremiumStorageCost;
}
/**
* Gets or sets the aggregate standard SSD storage cost for all the machines in
* the assessment.
*
*/
@Export(name="monthlyStandardSsdStorageCost", refs={Double.class}, tree="[0]")
private Output monthlyStandardSsdStorageCost;
/**
* @return Gets or sets the aggregate standard SSD storage cost for all the machines in
* the assessment.
*
*/
public Output monthlyStandardSsdStorageCost() {
return this.monthlyStandardSsdStorageCost;
}
/**
* Gets or sets the aggregate Storage Cost for all machines in the assessment.
*
*/
@Export(name="monthlyStorageCost", refs={Double.class}, tree="[0]")
private Output monthlyStorageCost;
/**
* @return Gets or sets the aggregate Storage Cost for all machines in the assessment.
*
*/
public Output monthlyStorageCost() {
return this.monthlyStorageCost;
}
/**
* Gets or sets the aggregate ultra storage cost for all machines in the
* assessment.
*
*/
@Export(name="monthlyUltraStorageCost", refs={Double.class}, tree="[0]")
private Output monthlyUltraStorageCost;
/**
* @return Gets or sets the aggregate ultra storage cost for all machines in the
* assessment.
*
*/
public Output monthlyUltraStorageCost() {
return this.monthlyUltraStorageCost;
}
/**
* 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;
}
/**
* Gets or sets the Number of machines part of the assessment.
*
*/
@Export(name="numberOfMachines", refs={Integer.class}, tree="[0]")
private Output numberOfMachines;
/**
* @return Gets or sets the Number of machines part of the assessment.
*
*/
public Output numberOfMachines() {
return this.numberOfMachines;
}
/**
* Percentile of the utilization data values to be considered while assessing
* machines.
*
*/
@Export(name="percentile", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> 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* @Nullable */ String> 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* @Nullable */ String> 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* @Nullable */ String> provisioningState;
/**
* @return The status of the last operation.
*
*/
public Output> provisioningState() {
return Codegen.optional(this.provisioningState);
}
/**
* Gets or sets the Azure Reserved Instance - 1-Year, 3-Year.
*
*/
@Export(name="reservedInstance", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> reservedInstance;
/**
* @return Gets or sets the Azure Reserved Instance - 1-Year, 3-Year.
*
*/
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* @Nullable */ Double> 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* @Nullable */ String> 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;
}
/**
* Gets or sets the Cloud suitability summary for all the machines in the
* assessment.
*
*/
@Export(name="suitabilitySummary", refs={Map.class,String.class,Integer.class}, tree="[0,1,2]")
private Output> suitabilitySummary;
/**
* @return Gets or sets the Cloud suitability summary for all the machines in the
* assessment.
*
*/
public Output> suitabilitySummary() {
return this.suitabilitySummary;
}
/**
* 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* @Nullable */ String> 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;
}
/**
* Gets or sets the duration for which the VMs are up in the on-premises
* environment.
*
*/
@Export(name="vmUptime", refs={VmUptimeResponse.class}, tree="[0]")
private Output* @Nullable */ VmUptimeResponse> vmUptime;
/**
* @return Gets or sets the duration for which the VMs are up in the on-premises
* environment.
*
*/
public Output> vmUptime() {
return Codegen.optional(this.vmUptime);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public AssessmentsOperation(java.lang.String name) {
this(name, AssessmentsOperationArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public AssessmentsOperation(java.lang.String name, AssessmentsOperationArgs 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 AssessmentsOperation(java.lang.String name, AssessmentsOperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:migrate:AssessmentsOperation", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private AssessmentsOperation(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:migrate:AssessmentsOperation", name, null, makeResourceOptions(options, id), false);
}
private static AssessmentsOperationArgs makeArgs(AssessmentsOperationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? AssessmentsOperationArgs.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/v20191001:AssessmentsOperation").build()),
Output.of(Alias.builder().type("azure-native:migrate/v20230315:AssessmentsOperation").build()),
Output.of(Alias.builder().type("azure-native:migrate/v20230401preview:AssessmentsOperation").build()),
Output.of(Alias.builder().type("azure-native:migrate/v20230501preview:AssessmentsOperation").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 AssessmentsOperation get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new AssessmentsOperation(name, id, options);
}
}