import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Compute Capacity Report resource in Oracle Cloud Infrastructure Core service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/iaas/latest/ComputeCapacityReport * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/ * * Generates a report of the host capacity within an availability domain that is available for you * to create compute instances. Host capacity is the physical infrastructure that resources such as compute * instances run on. * * Use the capacity report to determine whether sufficient capacity is available for a shape before * you create an instance or change the shape of an instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testComputeCapacityReport = new oci.core.ComputeCapacityReport("test_compute_capacity_report", { * availabilityDomain: computeCapacityReportAvailabilityDomain, * compartmentId: compartmentId, * shapeAvailabilities: [{ * instanceShape: computeCapacityReportShapeAvailabilitiesInstanceShape, * faultDomain: computeCapacityReportShapeAvailabilitiesFaultDomain, * instanceShapeConfig: { * baselineOcpuUtilization: computeCapacityReportShapeAvailabilitiesInstanceShapeConfigBaselineOcpuUtilization, * memoryInGbs: computeCapacityReportShapeAvailabilitiesInstanceShapeConfigMemoryInGbs, * nvmes: Number(computeCapacityReportShapeAvailabilitiesInstanceShapeConfigNvmes), * ocpus: computeCapacityReportShapeAvailabilitiesInstanceShapeConfigOcpus, * }, * }], * }); * ``` * * ## Import * * ComputeCapacityReports can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Core/computeCapacityReport:ComputeCapacityReport test_compute_capacity_report "id" * ``` */ export declare class ComputeCapacityReport extends pulumi.CustomResource { /** * Get an existing ComputeCapacityReport 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ComputeCapacityReportState, opts?: pulumi.CustomResourceOptions): ComputeCapacityReport; /** * Returns true if the given object is an instance of ComputeCapacityReport. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ComputeCapacityReport; /** * The availability domain for the capacity report. Example: `Uocm:PHX-AD-1` */ readonly availabilityDomain: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root compartment. */ readonly compartmentId: pulumi.Output; /** * Information about the shapes in the capacity report. */ readonly shapeAvailabilities: pulumi.Output; /** * The date and time the capacity report was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * Create a ComputeCapacityReport resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ComputeCapacityReportArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ComputeCapacityReport resources. */ export interface ComputeCapacityReportState { /** * The availability domain for the capacity report. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root compartment. */ compartmentId?: pulumi.Input; /** * Information about the shapes in the capacity report. */ shapeAvailabilities?: pulumi.Input[] | undefined>; /** * The date and time the capacity report was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; } /** * The set of arguments for constructing a ComputeCapacityReport resource. */ export interface ComputeCapacityReportArgs { /** * The availability domain for the capacity report. Example: `Uocm:PHX-AD-1` */ availabilityDomain: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root compartment. */ compartmentId: pulumi.Input; /** * Information about the shapes in the capacity report. */ shapeAvailabilities: pulumi.Input[]>; } //# sourceMappingURL=computeCapacityReport.d.ts.map