import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Stack resource in Oracle Cloud Infrastructure Dif service. * * Creates a Stack. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testStack = new oci.oci.DifStack("test_stack", { * compartmentId: compartmentId, * displayName: stackDisplayName, * services: stackServices, * stackTemplates: stackStackTemplates, * adbs: [{ * adminPasswordId: testAdminPassword.id, * dataStorageSizeInTbs: Number(stackAdbDataStorageSizeInTbs), * dbVersion: stackAdbDbVersion, * dbWorkload: stackAdbDbWorkload, * ecpu: Number(stackAdbEcpu), * instanceId: stackAdbInstanceId, * isMtlsConnectionRequired: stackAdbIsMtlsConnectionRequired === "true", * isPublic: stackAdbIsPublic === "true", * subnetId: testSubnet.id, * toolsPublicAccess: stackAdbToolsPublicAccess, * artifactObjectStoragePath: stackAdbArtifactObjectStoragePath, * dbCredentials: [{ * userName: stackAdbDbCredentialsUserName, * secretId: stackAdbDbCredentialsSecretId, * userType: stackAdbDbCredentialsUserType, * }], * }], * aidataplatforms: [{ * defaultWorkspaceName: testWorkspace.name, * instanceId: testInstance.id, * }], * dataflows: [{ * driverShape: stackDataflowDriverShape, * executorShape: stackDataflowExecutorShape, * instanceId: stackDataflowInstanceId, * logBucketInstanceId: stackObjectstorageInstanceId, * numExecutors: Number(stackDataflowNumExecutors), * sparkVersion: stackDataflowSparkVersion, * connections: { * connectionDetails: { * difDependencies: [{ * serviceInstanceId: stackDependencyInstanceId, * serviceType: stackDataflowConnectionsConnectionDetailsDifDependenciesServiceType, * }], * domainNames: stackDataflowConnectionsConnectionDetailsDomainNames, * }, * subnetId: testSubnet.id, * }, * driverShapeConfig: { * memoryInGbs: Number(stackDataflowDriverShapeConfigMemoryInGbs), * ocpus: Number(stackDataflowDriverShapeConfigOcpus), * }, * executorShapeConfig: { * memoryInGbs: Number(stackDataflowExecutorShapeConfigMemoryInGbs), * ocpus: Number(stackDataflowExecutorShapeConfigOcpus), * }, * privateEndpointId: testPrivateEndpoint.id, * warehouseBucketInstanceId: stackObjectstorageInstanceId, * execute: stackDataflowExecute, * archiveUri: stackDataflowArchiveUri, * }], * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * genais: [{ * baseModel: stackGenaiBaseModel, * clusterType: stackGenaiClusterType, * instanceId: stackGenaiInstanceId, * ociRegion: stackGenaiOciRegion, * unitCount: Number(stackGenaiUnitCount), * endpoints: [{ * endpointName: stackGenaiEndpointName, * isContentModerationEnabled: stackGenaiEndpointsIsContentModerationEnabled === "true", * }], * }], * ggcs: [{ * instanceId: stackGgcsInstanceId, * ocpu: Number(stackGgcsOcpu), * passwordSecretId: testSecret.id, * subnetId: testSubnet.id, * connections: [{ * connectionName: testConnection.name, * connectionId: testConnection.id, * difDependencies: [{ * serviceInstanceId: stackDependencyInstanceId, * serviceType: stackGgcsConnectionsDifDependenciesServiceType, * }], * ggAdminSecretId: testSecret.id, * }], * oggVersion: stackGgcsOggVersion, * publicSubnetId: testSubnet.id, * artifactObjectStoragePath: stackGgcsArtifactObjectStoragePath, * users: [{ * userName: stackGgcsUsersUserName, * secretId: stackGgcsUsersSecretId, * userType: stackGgcsUsersUserType, * action: stackGgcsUsersAction, * }], * sources: [{ * sourceId: stackGgcsSourcesSourceId, * action: stackGgcsSourcesAction, * shouldStartSourceOperations: stackGgcsSourcesShouldStartSourceOperations === "true", * targetUri: stackGgcsSourcesTargetUri, * targetConnectionName: stackGgcsSourcesTargetConnectionName, * }], * targets: [{ * targetId: stackGgcsTargetId, * action: stackGgcsAction, * shouldStartTargetOperations: stackGgcsShouldStartTargetOperations === "true", * sourceUri: stackGgcsSourceUri, * sourceConnectionName: stackGgcsSourceConnectionName, * }], * }], * notificationEmail: stackNotificationEmail, * objectstorages: [{ * instanceId: stackObjectstorageInstanceId, * objectVersioning: stackObjectstorageObjectVersioning, * storageTier: stackObjectstorageStorageTier, * autoTiering: stackObjectstorageAutoTiering, * }], * okes: [{ * clusterId: testCluster.id, * instanceId: testInstance.id, * namespaceName: stackOkeNamespaceName, * secrets: [{ * secretName: stackOkeSecretsSecretName, * templateObjectStoragePath: stackOkeSecretsTemplateObjectStoragePath, * secretDatas: [{ * key: stackOkeSecretsSecretDataKey, * secretId: stackOkeSecretsSecretDataSecretId, * }], * }], * manifestObjectStoragePath: stackOkeManifestObjectStoragePath, * componentValueOverrides: [{ * componentName: stackOkeComponentValueOverridesComponentName, * valueOverrides: stackOkeComponentValueOverridesValueOverrides, * }], * }], * omks: [{ * clusterId: testCluster.id, * clusterNamespaceId: testNamespace.id, * instanceId: testInstance.id, * namespaceName: stackOmkNamespaceName, * secrets: [{ * secretName: stackOmkSecretsSecretName, * templateObjectStoragePath: stackOmkSecretsTemplateObjectStoragePath, * secretDatas: [{ * key: stackOmkSecretsSecretDataKey, * secretId: stackOmkSecretsSecretDataSecretId, * }], * }], * manifestObjectStoragePath: stackOmkManifestObjectStoragePath, * componentValueOverrides: [{ * componentName: stackOmkComponentValueOverridesComponentName, * valueOverrides: stackOmkComponentValueOverridesValueOverrides, * }], * }], * subnetId: stackDeployArtifactsSubnetId, * }); * ``` */ export declare class DifStack extends pulumi.CustomResource { /** * Get an existing DifStack 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?: DifStackState, opts?: pulumi.CustomResourceOptions): DifStack; /** * Returns true if the given object is an instance of DifStack. 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 DifStack; /** * (Updatable) ADB details if adb is included in the services. */ readonly adbs: pulumi.Output; /** * (Updatable) An optional property when incremented triggers Add Service. Could be set to any integer value. */ readonly addServiceTrigger: pulumi.Output; /** * AI Data Platform Details if aidataplatform is included in services. */ readonly aidataplatforms: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the Stack in. */ readonly compartmentId: pulumi.Output; /** * (Updatable) DATAFLOW details if dataflow is included in the services. */ readonly dataflows: 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) An optional property when incremented triggers Deploy Artifacts. Could be set to any integer value. * * ** IMPORTANT ** * - Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values. * - Single-operation per apply: exactly one of the following is allowed in a single pulumi up: * - Add service (increase add_service_trigger) * - Deploy artifacts (increase deploy_artifacts_trigger) * - Change compartment (update compartment_id) * - Standard update (all other updatable fields such as tags, service block parameters, etc.) * Mixing any two or more in the same plan/apply is not allowed and will result in a provider error. Split your changes across separate applies. * - Additions to services/templates or service blocks require increasing add_service_trigger. Deletions are not permitted. */ readonly deployArtifactsTrigger: pulumi.Output; /** * A user-friendly name. Should be unique per compartment. Avoid entering confidential information. */ readonly displayName: 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; }>; /** * (Updatable) GenAi Details if genai is included in services. */ readonly genais: pulumi.Output; /** * (Updatable) GGCS details if ggcs is included in the services. */ readonly ggcs: pulumi.Output; /** * A message that describes the current state of the Stack in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * email id to which the stack notifications would be sent. */ readonly notificationEmail: pulumi.Output; /** * (Updatable) Object Storage Details if object storage is included in services. */ readonly objectstorages: pulumi.Output; /** * OKE Details if oke is included in services. */ readonly okes: pulumi.Output; /** * OMK Details if omk is included in services. */ readonly omks: pulumi.Output; /** * Details of the service onboarded for the data intelligence stack. */ readonly serviceDetails: pulumi.Output; /** * (Updatable) List of services to be onboarded for the stack. */ readonly services: pulumi.Output; /** * (Updatable) List of templates to be onboarded for the stack. */ readonly stackTemplates: pulumi.Output; /** * The current state of the Stack. */ readonly state: pulumi.Output; /** * (Updatable) Subnet id for the Private Endpoint creation for artifact deployment. */ readonly subnetId: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The date and time the Stack was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * The date and time the Stack was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ readonly timeUpdated: pulumi.Output; /** * Create a DifStack 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: DifStackArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DifStack resources. */ export interface DifStackState { /** * (Updatable) ADB details if adb is included in the services. */ adbs?: pulumi.Input[] | undefined>; /** * (Updatable) An optional property when incremented triggers Add Service. Could be set to any integer value. */ addServiceTrigger?: pulumi.Input; /** * AI Data Platform Details if aidataplatform is included in services. */ aidataplatforms?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the Stack in. */ compartmentId?: pulumi.Input; /** * (Updatable) DATAFLOW details if dataflow is included in the services. */ dataflows?: pulumi.Input[] | undefined>; /** * (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) An optional property when incremented triggers Deploy Artifacts. Could be set to any integer value. * * ** IMPORTANT ** * - Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values. * - Single-operation per apply: exactly one of the following is allowed in a single pulumi up: * - Add service (increase add_service_trigger) * - Deploy artifacts (increase deploy_artifacts_trigger) * - Change compartment (update compartment_id) * - Standard update (all other updatable fields such as tags, service block parameters, etc.) * Mixing any two or more in the same plan/apply is not allowed and will result in a provider error. Split your changes across separate applies. * - Additions to services/templates or service blocks require increasing add_service_trigger. Deletions are not permitted. */ deployArtifactsTrigger?: pulumi.Input; /** * A user-friendly name. Should be unique per compartment. Avoid entering confidential information. */ displayName?: 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>; /** * (Updatable) GenAi Details if genai is included in services. */ genais?: pulumi.Input[] | undefined>; /** * (Updatable) GGCS details if ggcs is included in the services. */ ggcs?: pulumi.Input[] | undefined>; /** * A message that describes the current state of the Stack in more detail. For example, can be used to provide actionable information for a resource in the Failed state. */ lifecycleDetails?: pulumi.Input; /** * email id to which the stack notifications would be sent. */ notificationEmail?: pulumi.Input; /** * (Updatable) Object Storage Details if object storage is included in services. */ objectstorages?: pulumi.Input[] | undefined>; /** * OKE Details if oke is included in services. */ okes?: pulumi.Input[] | undefined>; /** * OMK Details if omk is included in services. */ omks?: pulumi.Input[] | undefined>; /** * Details of the service onboarded for the data intelligence stack. */ serviceDetails?: pulumi.Input[] | undefined>; /** * (Updatable) List of services to be onboarded for the stack. */ services?: pulumi.Input[] | undefined>; /** * (Updatable) List of templates to be onboarded for the stack. */ stackTemplates?: pulumi.Input[] | undefined>; /** * The current state of the Stack. */ state?: pulumi.Input; /** * (Updatable) Subnet id for the Private Endpoint creation for artifact deployment. */ subnetId?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The date and time the Stack was created, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * The date and time the Stack was updated, in the format defined by [RFC 3339](https://tools.ietf.org/html/rfc3339). Example: `2016-08-25T21:10:29.600Z` */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a DifStack resource. */ export interface DifStackArgs { /** * (Updatable) ADB details if adb is included in the services. */ adbs?: pulumi.Input[] | undefined>; /** * (Updatable) An optional property when incremented triggers Add Service. Could be set to any integer value. */ addServiceTrigger?: pulumi.Input; /** * AI Data Platform Details if aidataplatform is included in services. */ aidataplatforms?: pulumi.Input[] | undefined>; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to create the Stack in. */ compartmentId: pulumi.Input; /** * (Updatable) DATAFLOW details if dataflow is included in the services. */ dataflows?: pulumi.Input[] | undefined>; /** * (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) An optional property when incremented triggers Deploy Artifacts. Could be set to any integer value. * * ** IMPORTANT ** * - Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values. * - Single-operation per apply: exactly one of the following is allowed in a single pulumi up: * - Add service (increase add_service_trigger) * - Deploy artifacts (increase deploy_artifacts_trigger) * - Change compartment (update compartment_id) * - Standard update (all other updatable fields such as tags, service block parameters, etc.) * Mixing any two or more in the same plan/apply is not allowed and will result in a provider error. Split your changes across separate applies. * - Additions to services/templates or service blocks require increasing add_service_trigger. Deletions are not permitted. */ deployArtifactsTrigger?: pulumi.Input; /** * A user-friendly name. Should be unique per compartment. Avoid entering confidential information. */ displayName: 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>; /** * (Updatable) GenAi Details if genai is included in services. */ genais?: pulumi.Input[] | undefined>; /** * (Updatable) GGCS details if ggcs is included in the services. */ ggcs?: pulumi.Input[] | undefined>; /** * email id to which the stack notifications would be sent. */ notificationEmail?: pulumi.Input; /** * (Updatable) Object Storage Details if object storage is included in services. */ objectstorages?: pulumi.Input[] | undefined>; /** * OKE Details if oke is included in services. */ okes?: pulumi.Input[] | undefined>; /** * OMK Details if omk is included in services. */ omks?: pulumi.Input[] | undefined>; /** * (Updatable) List of services to be onboarded for the stack. */ services: pulumi.Input[]>; /** * (Updatable) List of templates to be onboarded for the stack. */ stackTemplates: pulumi.Input[]>; /** * (Updatable) Subnet id for the Private Endpoint creation for artifact deployment. */ subnetId?: pulumi.Input; } //# sourceMappingURL=difStack.d.ts.map