import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Dedicated Vm Host resource in Oracle Cloud Infrastructure Core service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/iaas/latest/DedicatedVmHost * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/ * * Creates a new dedicated virtual machine host in the specified compartment and the specified availability domain. * Dedicated virtual machine hosts enable you to run your Compute virtual machine (VM) instances on dedicated servers * that are a single tenant and not shared with other customers. * For more information, see [Dedicated Virtual Machine Hosts](https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/dedicatedvmhosts.htm). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDedicatedVmHost = new oci.core.DedicatedVmHost("test_dedicated_vm_host", { * availabilityDomain: dedicatedVmHostAvailabilityDomain, * compartmentId: compartmentId, * dedicatedVmHostShape: dedicatedVmHostDedicatedVmHostShape, * capacityConfig: dedicatedVmHostCapacityConfig, * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: dedicatedVmHostDisplayName, * faultDomain: dedicatedVmHostFaultDomain, * freeformTags: { * Department: "Finance", * }, * isMemoryEncryptionEnabled: dedicatedVmHostIsMemoryEncryptionEnabled === "true", * placementConstraintDetails: { * type: dedicatedVmHostPlacementConstraintDetailsType, * computeBareMetalHostId: testComputeBareMetalHost.id, * }, * }); * ``` * * ## Import * * DedicatedVmHosts can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Core/dedicatedVmHost:DedicatedVmHost test_dedicated_vm_host "id" * ``` */ export declare class DedicatedVmHost extends pulumi.CustomResource { /** * Get an existing DedicatedVmHost 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?: DedicatedVmHostState, opts?: pulumi.CustomResourceOptions): DedicatedVmHost; /** * Returns true if the given object is an instance of DedicatedVmHost. 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 DedicatedVmHost; /** * The availability domain of the dedicated virtual machine host. Example: `Uocm:PHX-AD-1` */ readonly availabilityDomain: pulumi.Output; /** * A list of total and remaining CPU, memory, and local volume per capacity bucket. */ readonly capacityBins: pulumi.Output; /** * The capacity configuration selected to be configured for the Dedicated Virtual Machine host. Run [ListDedicatedVmHostShapes](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/DedicatedVmHostShapeSummary/ListDedicatedVmHostShapes) API first to see the capacity configuration options. */ readonly capacityConfig: pulumi.Output; /** * (Updatable) The OCID of the compartment. */ readonly compartmentId: pulumi.Output; /** * The OCID of the compute bare metal host. This is only available for dedicated capacity customers. */ readonly computeBareMetalHostId: pulumi.Output; /** * The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VM instances launched on the dedicated virtual machine host. */ readonly dedicatedVmHostShape: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName: pulumi.Output; /** * The fault domain for the dedicated virtual machine host's assigned instances. For more information, see [Fault Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#fault). If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated virtual machine host, delete it and create a new dedicated virtual machine host in the preferred fault domain. * * To get a list of fault domains, use the `ListFaultDomains` operation in the [Identity and Access Management Service API](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/). * * Example: `FAULT-DOMAIN-1` */ readonly faultDomain: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Confidential VMs. If `true`, only Confidential VMs can be launched. If `false`, Confidential VMs cannot be launched. */ readonly isMemoryEncryptionEnabled: pulumi.Output; /** * The details for providing placement constraints. */ readonly placementConstraintDetails: pulumi.Output; /** * The current available local volume of the dedicated VM host, in GBs. */ readonly remainingLocalVolumeInGbs: pulumi.Output; /** * The current available memory of the dedicated VM host, in GBs. */ readonly remainingMemoryInGbs: pulumi.Output; /** * The current available OCPUs of the dedicated VM host. */ readonly remainingOcpus: pulumi.Output; /** * The current state of the dedicated VM host. */ readonly state: pulumi.Output; /** * The date and time the dedicated VM host 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; /** * The current total local volume of the dedicated VM host, in GBs. */ readonly totalLocalVolumeInGbs: pulumi.Output; /** * The current total memory of the dedicated VM host, in GBs. */ readonly totalMemoryInGbs: pulumi.Output; /** * The current total OCPUs of the dedicated VM host. */ readonly totalOcpus: pulumi.Output; /** * Create a DedicatedVmHost 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: DedicatedVmHostArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DedicatedVmHost resources. */ export interface DedicatedVmHostState { /** * The availability domain of the dedicated virtual machine host. Example: `Uocm:PHX-AD-1` */ availabilityDomain?: pulumi.Input; /** * A list of total and remaining CPU, memory, and local volume per capacity bucket. */ capacityBins?: pulumi.Input[] | undefined>; /** * The capacity configuration selected to be configured for the Dedicated Virtual Machine host. Run [ListDedicatedVmHostShapes](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/DedicatedVmHostShapeSummary/ListDedicatedVmHostShapes) API first to see the capacity configuration options. */ capacityConfig?: pulumi.Input; /** * (Updatable) The OCID of the compartment. */ compartmentId?: pulumi.Input; /** * The OCID of the compute bare metal host. This is only available for dedicated capacity customers. */ computeBareMetalHostId?: pulumi.Input; /** * The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VM instances launched on the dedicated virtual machine host. */ dedicatedVmHostShape?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * The fault domain for the dedicated virtual machine host's assigned instances. For more information, see [Fault Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#fault). If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated virtual machine host, delete it and create a new dedicated virtual machine host in the preferred fault domain. * * To get a list of fault domains, use the `ListFaultDomains` operation in the [Identity and Access Management Service API](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/). * * Example: `FAULT-DOMAIN-1` */ faultDomain?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Confidential VMs. If `true`, only Confidential VMs can be launched. If `false`, Confidential VMs cannot be launched. */ isMemoryEncryptionEnabled?: pulumi.Input; /** * The details for providing placement constraints. */ placementConstraintDetails?: pulumi.Input; /** * The current available local volume of the dedicated VM host, in GBs. */ remainingLocalVolumeInGbs?: pulumi.Input; /** * The current available memory of the dedicated VM host, in GBs. */ remainingMemoryInGbs?: pulumi.Input; /** * The current available OCPUs of the dedicated VM host. */ remainingOcpus?: pulumi.Input; /** * The current state of the dedicated VM host. */ state?: pulumi.Input; /** * The date and time the dedicated VM host 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 current total local volume of the dedicated VM host, in GBs. */ totalLocalVolumeInGbs?: pulumi.Input; /** * The current total memory of the dedicated VM host, in GBs. */ totalMemoryInGbs?: pulumi.Input; /** * The current total OCPUs of the dedicated VM host. */ totalOcpus?: pulumi.Input; } /** * The set of arguments for constructing a DedicatedVmHost resource. */ export interface DedicatedVmHostArgs { /** * The availability domain of the dedicated virtual machine host. Example: `Uocm:PHX-AD-1` */ availabilityDomain: pulumi.Input; /** * The capacity configuration selected to be configured for the Dedicated Virtual Machine host. Run [ListDedicatedVmHostShapes](https://docs.cloud.oracle.com/iaas/api/#/en/iaas/latest/DedicatedVmHostShapeSummary/ListDedicatedVmHostShapes) API first to see the capacity configuration options. */ capacityConfig?: pulumi.Input; /** * (Updatable) The OCID of the compartment. */ compartmentId: pulumi.Input; /** * The dedicated virtual machine host shape. The shape determines the number of CPUs and other resources available for VM instances launched on the dedicated virtual machine host. */ dedicatedVmHostShape: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. */ displayName?: pulumi.Input; /** * The fault domain for the dedicated virtual machine host's assigned instances. For more information, see [Fault Domains](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#fault). If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated virtual machine host, delete it and create a new dedicated virtual machine host in the preferred fault domain. * * To get a list of fault domains, use the `ListFaultDomains` operation in the [Identity and Access Management Service API](https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/). * * Example: `FAULT-DOMAIN-1` */ faultDomain?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Specifies if the Dedicated Virtual Machine Host (DVMH) is restricted to running only Confidential VMs. If `true`, only Confidential VMs can be launched. If `false`, Confidential VMs cannot be launched. */ isMemoryEncryptionEnabled?: pulumi.Input; /** * The details for providing placement constraints. */ placementConstraintDetails?: pulumi.Input; } //# sourceMappingURL=dedicatedVmHost.d.ts.map