@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
305 lines (304 loc) • 11.9 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* A CloudExadataInfrastructure resource.
*
* To get more information about CloudExadataInfrastructure, see:
*
* * [API documentation](https://cloud.google.com/oracle/database/docs/reference/rest/v1/projects.locations.cloudExadataInfrastructures)
* * How-to Guides
* * [Create Exadata Infrastructure instances](https://cloud.google.com/oracle/database/docs/create-instances)
*
* ## Example Usage
*
* ### Oracledatabase Cloud Exadata Infrastructure Basic
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_cloud_exadata = new gcp.oracledatabase.CloudExadataInfrastructure("my-cloud-exadata", {
* cloudExadataInfrastructureId: "my-instance",
* displayName: "my-instance displayname",
* location: "us-east4",
* project: "my-project",
* properties: {
* shape: "Exadata.X9M",
* computeCount: 2,
* storageCount: 3,
* },
* deletionProtection: true,
* });
* ```
* ### Oracledatabase Cloud Exadata Infrastructure Full
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_cloud_exadata = new gcp.oracledatabase.CloudExadataInfrastructure("my-cloud-exadata", {
* cloudExadataInfrastructureId: "my-instance",
* displayName: "my-instance displayname",
* location: "us-east4",
* project: "my-project",
* gcpOracleZone: "us-east4-b-r1",
* properties: {
* shape: "Exadata.X9M",
* computeCount: 2,
* storageCount: 3,
* customerContacts: [{
* email: "xyz@example.com",
* }],
* maintenanceWindow: {
* customActionTimeoutMins: 20,
* daysOfWeeks: ["SUNDAY"],
* hoursOfDays: [4],
* isCustomActionTimeoutEnabled: false,
* leadTimeWeek: 1,
* months: [
* "JANUARY",
* "APRIL",
* "MAY",
* "OCTOBER",
* ],
* patchingMode: "ROLLING",
* preference: "CUSTOM_PREFERENCE",
* weeksOfMonths: [4],
* },
* totalStorageSizeGb: 196608,
* },
* labels: {
* "label-one": "value-one",
* },
* deletionProtection: true,
* });
* ```
*
* ## Import
*
* CloudExadataInfrastructure can be imported using any of these accepted formats:
*
* * `projects/{{project}}/locations/{{location}}/cloudExadataInfrastructures/{{cloud_exadata_infrastructure_id}}`
*
* * `{{project}}/{{location}}/{{cloud_exadata_infrastructure_id}}`
*
* * `{{location}}/{{cloud_exadata_infrastructure_id}}`
*
* When using the `pulumi import` command, CloudExadataInfrastructure can be imported using one of the formats above. For example:
*
* ```sh
* $ pulumi import gcp:oracledatabase/cloudExadataInfrastructure:CloudExadataInfrastructure default projects/{{project}}/locations/{{location}}/cloudExadataInfrastructures/{{cloud_exadata_infrastructure_id}}
* ```
*
* ```sh
* $ pulumi import gcp:oracledatabase/cloudExadataInfrastructure:CloudExadataInfrastructure default {{project}}/{{location}}/{{cloud_exadata_infrastructure_id}}
* ```
*
* ```sh
* $ pulumi import gcp:oracledatabase/cloudExadataInfrastructure:CloudExadataInfrastructure default {{location}}/{{cloud_exadata_infrastructure_id}}
* ```
*/
export declare class CloudExadataInfrastructure extends pulumi.CustomResource {
/**
* Get an existing CloudExadataInfrastructure 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<pulumi.ID>, state?: CloudExadataInfrastructureState, opts?: pulumi.CustomResourceOptions): CloudExadataInfrastructure;
/**
* Returns true if the given object is an instance of CloudExadataInfrastructure. 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 CloudExadataInfrastructure;
/**
* The ID of the Exadata Infrastructure to create. This value is restricted
* to (^a-z?$) and must be a maximum of 63
* characters in length. The value must start with a letter and end with
* a letter or a number.
*/
readonly cloudExadataInfrastructureId: pulumi.Output<string>;
/**
* The date and time that the Exadata Infrastructure was created.
*/
readonly createTime: pulumi.Output<string>;
readonly deletionProtection: pulumi.Output<boolean | undefined>;
/**
* User friendly name for this resource.
*/
readonly displayName: pulumi.Output<string | undefined>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
readonly effectiveLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* Entitlement ID of the private offer against which this infrastructure
* resource is provisioned.
*/
readonly entitlementId: pulumi.Output<string>;
/**
* GCP location where Oracle Exadata is hosted.
*/
readonly gcpOracleZone: pulumi.Output<string>;
/**
* Labels or tags associated with the resource.
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
readonly labels: pulumi.Output<{
[key: string]: string;
} | undefined>;
/**
* Resource ID segment making up resource `name`. See documentation for resource type `oracledatabase.googleapis.com/DbServer`.
*/
readonly location: pulumi.Output<string>;
/**
* Identifier. The name of the Exadata Infrastructure resource with the following format:
* projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
*/
readonly name: pulumi.Output<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
readonly project: pulumi.Output<string>;
/**
* Various properties of Exadata Infrastructure.
* Structure is documented below.
*/
readonly properties: pulumi.Output<outputs.oracledatabase.CloudExadataInfrastructureProperties | undefined>;
/**
* The combination of labels configured directly on the resource
* and default labels configured on the provider.
*/
readonly pulumiLabels: pulumi.Output<{
[key: string]: string;
}>;
/**
* Create a CloudExadataInfrastructure 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: CloudExadataInfrastructureArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering CloudExadataInfrastructure resources.
*/
export interface CloudExadataInfrastructureState {
/**
* The ID of the Exadata Infrastructure to create. This value is restricted
* to (^a-z?$) and must be a maximum of 63
* characters in length. The value must start with a letter and end with
* a letter or a number.
*/
cloudExadataInfrastructureId?: pulumi.Input<string>;
/**
* The date and time that the Exadata Infrastructure was created.
*/
createTime?: pulumi.Input<string>;
deletionProtection?: pulumi.Input<boolean>;
/**
* User friendly name for this resource.
*/
displayName?: pulumi.Input<string>;
/**
* All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
*/
effectiveLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Entitlement ID of the private offer against which this infrastructure
* resource is provisioned.
*/
entitlementId?: pulumi.Input<string>;
/**
* GCP location where Oracle Exadata is hosted.
*/
gcpOracleZone?: pulumi.Input<string>;
/**
* Labels or tags associated with the resource.
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Resource ID segment making up resource `name`. See documentation for resource type `oracledatabase.googleapis.com/DbServer`.
*/
location?: pulumi.Input<string>;
/**
* Identifier. The name of the Exadata Infrastructure resource with the following format:
* projects/{project}/locations/{region}/cloudExadataInfrastructures/{cloud_exadata_infrastructure}
*/
name?: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* Various properties of Exadata Infrastructure.
* Structure is documented below.
*/
properties?: pulumi.Input<inputs.oracledatabase.CloudExadataInfrastructureProperties>;
/**
* The combination of labels configured directly on the resource
* and default labels configured on the provider.
*/
pulumiLabels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}
/**
* The set of arguments for constructing a CloudExadataInfrastructure resource.
*/
export interface CloudExadataInfrastructureArgs {
/**
* The ID of the Exadata Infrastructure to create. This value is restricted
* to (^a-z?$) and must be a maximum of 63
* characters in length. The value must start with a letter and end with
* a letter or a number.
*/
cloudExadataInfrastructureId: pulumi.Input<string>;
deletionProtection?: pulumi.Input<boolean>;
/**
* User friendly name for this resource.
*/
displayName?: pulumi.Input<string>;
/**
* GCP location where Oracle Exadata is hosted.
*/
gcpOracleZone?: pulumi.Input<string>;
/**
* Labels or tags associated with the resource.
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effectiveLabels` for all of the labels present on the resource.
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Resource ID segment making up resource `name`. See documentation for resource type `oracledatabase.googleapis.com/DbServer`.
*/
location: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* Various properties of Exadata Infrastructure.
* Structure is documented below.
*/
properties?: pulumi.Input<inputs.oracledatabase.CloudExadataInfrastructureProperties>;
}