rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,169 lines • 162 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AiDocumentProcessorJob = exports.AiDocumentProcessorJobTimeoutsOutputReference = exports.aiDocumentProcessorJobTimeoutsToHclTerraform = exports.aiDocumentProcessorJobTimeoutsToTerraform = exports.AiDocumentProcessorJobProcessorConfigOutputReference = exports.aiDocumentProcessorJobProcessorConfigToHclTerraform = exports.aiDocumentProcessorJobProcessorConfigToTerraform = exports.AiDocumentProcessorJobProcessorConfigFeaturesList = exports.AiDocumentProcessorJobProcessorConfigFeaturesOutputReference = exports.aiDocumentProcessorJobProcessorConfigFeaturesToHclTerraform = exports.aiDocumentProcessorJobProcessorConfigFeaturesToTerraform = exports.AiDocumentProcessorJobOutputLocationOutputReference = exports.aiDocumentProcessorJobOutputLocationToHclTerraform = exports.aiDocumentProcessorJobOutputLocationToTerraform = exports.AiDocumentProcessorJobInputLocationOutputReference = exports.aiDocumentProcessorJobInputLocationToHclTerraform = exports.aiDocumentProcessorJobInputLocationToTerraform = exports.AiDocumentProcessorJobInputLocationObjectLocationsList = exports.AiDocumentProcessorJobInputLocationObjectLocationsOutputReference = exports.aiDocumentProcessorJobInputLocationObjectLocationsToHclTerraform = exports.aiDocumentProcessorJobInputLocationObjectLocationsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function aiDocumentProcessorJobInputLocationObjectLocationsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
bucket: cdktf.stringToTerraform(struct.bucket),
namespace: cdktf.stringToTerraform(struct.namespace),
object: cdktf.stringToTerraform(struct.object),
};
}
exports.aiDocumentProcessorJobInputLocationObjectLocationsToTerraform = aiDocumentProcessorJobInputLocationObjectLocationsToTerraform;
function aiDocumentProcessorJobInputLocationObjectLocationsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
bucket: {
value: cdktf.stringToHclTerraform(struct.bucket),
isBlock: false,
type: "simple",
storageClassType: "string",
},
namespace: {
value: cdktf.stringToHclTerraform(struct.namespace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
object: {
value: cdktf.stringToHclTerraform(struct.object),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.aiDocumentProcessorJobInputLocationObjectLocationsToHclTerraform = aiDocumentProcessorJobInputLocationObjectLocationsToHclTerraform;
class AiDocumentProcessorJobInputLocationObjectLocationsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._bucket !== undefined) {
hasAnyValues = true;
internalValueResult.bucket = this._bucket;
}
if (this._namespace !== undefined) {
hasAnyValues = true;
internalValueResult.namespace = this._namespace;
}
if (this._object !== undefined) {
hasAnyValues = true;
internalValueResult.object = this._object;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._bucket = undefined;
this._namespace = undefined;
this._object = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._bucket = value.bucket;
this._namespace = value.namespace;
this._object = value.object;
}
}
get bucket() {
return this.getStringAttribute('bucket');
}
set bucket(value) {
this._bucket = value;
}
resetBucket() {
this._bucket = undefined;
}
// Temporarily expose input value. Use with caution.
get bucketInput() {
return this._bucket;
}
get namespace() {
return this.getStringAttribute('namespace');
}
set namespace(value) {
this._namespace = value;
}
resetNamespace() {
this._namespace = undefined;
}
// Temporarily expose input value. Use with caution.
get namespaceInput() {
return this._namespace;
}
get object() {
return this.getStringAttribute('object');
}
set object(value) {
this._object = value;
}
resetObject() {
this._object = undefined;
}
// Temporarily expose input value. Use with caution.
get objectInput() {
return this._object;
}
}
exports.AiDocumentProcessorJobInputLocationObjectLocationsOutputReference = AiDocumentProcessorJobInputLocationObjectLocationsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobInputLocationObjectLocationsOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobInputLocationObjectLocationsOutputReference", version: "1.0.0" };
class AiDocumentProcessorJobInputLocationObjectLocationsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new AiDocumentProcessorJobInputLocationObjectLocationsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AiDocumentProcessorJobInputLocationObjectLocationsList = AiDocumentProcessorJobInputLocationObjectLocationsList;
_b = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobInputLocationObjectLocationsList[_b] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobInputLocationObjectLocationsList", version: "1.0.0" };
function aiDocumentProcessorJobInputLocationToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
data: cdktf.stringToTerraform(struct.data),
source_type: cdktf.stringToTerraform(struct.sourceType),
object_locations: cdktf.listMapper(aiDocumentProcessorJobInputLocationObjectLocationsToTerraform, true)(struct.objectLocations),
};
}
exports.aiDocumentProcessorJobInputLocationToTerraform = aiDocumentProcessorJobInputLocationToTerraform;
function aiDocumentProcessorJobInputLocationToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
data: {
value: cdktf.stringToHclTerraform(struct.data),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source_type: {
value: cdktf.stringToHclTerraform(struct.sourceType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
object_locations: {
value: cdktf.listMapperHcl(aiDocumentProcessorJobInputLocationObjectLocationsToHclTerraform, true)(struct.objectLocations),
isBlock: true,
type: "list",
storageClassType: "AiDocumentProcessorJobInputLocationObjectLocationsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.aiDocumentProcessorJobInputLocationToHclTerraform = aiDocumentProcessorJobInputLocationToHclTerraform;
class AiDocumentProcessorJobInputLocationOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
// object_locations - computed: false, optional: true, required: false
this._objectLocations = new AiDocumentProcessorJobInputLocationObjectLocationsList(this, "object_locations", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._data !== undefined) {
hasAnyValues = true;
internalValueResult.data = this._data;
}
if (this._sourceType !== undefined) {
hasAnyValues = true;
internalValueResult.sourceType = this._sourceType;
}
if (this._objectLocations?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.objectLocations = this._objectLocations?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._data = undefined;
this._sourceType = undefined;
this._objectLocations.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._data = value.data;
this._sourceType = value.sourceType;
this._objectLocations.internalValue = value.objectLocations;
}
}
get data() {
return this.getStringAttribute('data');
}
set data(value) {
this._data = value;
}
resetData() {
this._data = undefined;
}
// Temporarily expose input value. Use with caution.
get dataInput() {
return this._data;
}
get sourceType() {
return this.getStringAttribute('source_type');
}
set sourceType(value) {
this._sourceType = value;
}
// Temporarily expose input value. Use with caution.
get sourceTypeInput() {
return this._sourceType;
}
get objectLocations() {
return this._objectLocations;
}
putObjectLocations(value) {
this._objectLocations.internalValue = value;
}
resetObjectLocations() {
this._objectLocations.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get objectLocationsInput() {
return this._objectLocations.internalValue;
}
}
exports.AiDocumentProcessorJobInputLocationOutputReference = AiDocumentProcessorJobInputLocationOutputReference;
_c = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobInputLocationOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobInputLocationOutputReference", version: "1.0.0" };
function aiDocumentProcessorJobOutputLocationToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
bucket: cdktf.stringToTerraform(struct.bucket),
namespace: cdktf.stringToTerraform(struct.namespace),
prefix: cdktf.stringToTerraform(struct.prefix),
};
}
exports.aiDocumentProcessorJobOutputLocationToTerraform = aiDocumentProcessorJobOutputLocationToTerraform;
function aiDocumentProcessorJobOutputLocationToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
bucket: {
value: cdktf.stringToHclTerraform(struct.bucket),
isBlock: false,
type: "simple",
storageClassType: "string",
},
namespace: {
value: cdktf.stringToHclTerraform(struct.namespace),
isBlock: false,
type: "simple",
storageClassType: "string",
},
prefix: {
value: cdktf.stringToHclTerraform(struct.prefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.aiDocumentProcessorJobOutputLocationToHclTerraform = aiDocumentProcessorJobOutputLocationToHclTerraform;
class AiDocumentProcessorJobOutputLocationOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._bucket !== undefined) {
hasAnyValues = true;
internalValueResult.bucket = this._bucket;
}
if (this._namespace !== undefined) {
hasAnyValues = true;
internalValueResult.namespace = this._namespace;
}
if (this._prefix !== undefined) {
hasAnyValues = true;
internalValueResult.prefix = this._prefix;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._bucket = undefined;
this._namespace = undefined;
this._prefix = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._bucket = value.bucket;
this._namespace = value.namespace;
this._prefix = value.prefix;
}
}
get bucket() {
return this.getStringAttribute('bucket');
}
set bucket(value) {
this._bucket = value;
}
// Temporarily expose input value. Use with caution.
get bucketInput() {
return this._bucket;
}
get namespace() {
return this.getStringAttribute('namespace');
}
set namespace(value) {
this._namespace = value;
}
// Temporarily expose input value. Use with caution.
get namespaceInput() {
return this._namespace;
}
get prefix() {
return this.getStringAttribute('prefix');
}
set prefix(value) {
this._prefix = value;
}
// Temporarily expose input value. Use with caution.
get prefixInput() {
return this._prefix;
}
}
exports.AiDocumentProcessorJobOutputLocationOutputReference = AiDocumentProcessorJobOutputLocationOutputReference;
_d = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobOutputLocationOutputReference[_d] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobOutputLocationOutputReference", version: "1.0.0" };
function aiDocumentProcessorJobProcessorConfigFeaturesToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
feature_type: cdktf.stringToTerraform(struct.featureType),
generate_searchable_pdf: cdktf.booleanToTerraform(struct.generateSearchablePdf),
max_results: cdktf.numberToTerraform(struct.maxResults),
model_id: cdktf.stringToTerraform(struct.modelId),
tenancy_id: cdktf.stringToTerraform(struct.tenancyId),
};
}
exports.aiDocumentProcessorJobProcessorConfigFeaturesToTerraform = aiDocumentProcessorJobProcessorConfigFeaturesToTerraform;
function aiDocumentProcessorJobProcessorConfigFeaturesToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
feature_type: {
value: cdktf.stringToHclTerraform(struct.featureType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
generate_searchable_pdf: {
value: cdktf.booleanToHclTerraform(struct.generateSearchablePdf),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
max_results: {
value: cdktf.numberToHclTerraform(struct.maxResults),
isBlock: false,
type: "simple",
storageClassType: "number",
},
model_id: {
value: cdktf.stringToHclTerraform(struct.modelId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tenancy_id: {
value: cdktf.stringToHclTerraform(struct.tenancyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.aiDocumentProcessorJobProcessorConfigFeaturesToHclTerraform = aiDocumentProcessorJobProcessorConfigFeaturesToHclTerraform;
class AiDocumentProcessorJobProcessorConfigFeaturesOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._featureType !== undefined) {
hasAnyValues = true;
internalValueResult.featureType = this._featureType;
}
if (this._generateSearchablePdf !== undefined) {
hasAnyValues = true;
internalValueResult.generateSearchablePdf = this._generateSearchablePdf;
}
if (this._maxResults !== undefined) {
hasAnyValues = true;
internalValueResult.maxResults = this._maxResults;
}
if (this._modelId !== undefined) {
hasAnyValues = true;
internalValueResult.modelId = this._modelId;
}
if (this._tenancyId !== undefined) {
hasAnyValues = true;
internalValueResult.tenancyId = this._tenancyId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._featureType = undefined;
this._generateSearchablePdf = undefined;
this._maxResults = undefined;
this._modelId = undefined;
this._tenancyId = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._featureType = value.featureType;
this._generateSearchablePdf = value.generateSearchablePdf;
this._maxResults = value.maxResults;
this._modelId = value.modelId;
this._tenancyId = value.tenancyId;
}
}
get featureType() {
return this.getStringAttribute('feature_type');
}
set featureType(value) {
this._featureType = value;
}
// Temporarily expose input value. Use with caution.
get featureTypeInput() {
return this._featureType;
}
get generateSearchablePdf() {
return this.getBooleanAttribute('generate_searchable_pdf');
}
set generateSearchablePdf(value) {
this._generateSearchablePdf = value;
}
resetGenerateSearchablePdf() {
this._generateSearchablePdf = undefined;
}
// Temporarily expose input value. Use with caution.
get generateSearchablePdfInput() {
return this._generateSearchablePdf;
}
get maxResults() {
return this.getNumberAttribute('max_results');
}
set maxResults(value) {
this._maxResults = value;
}
resetMaxResults() {
this._maxResults = undefined;
}
// Temporarily expose input value. Use with caution.
get maxResultsInput() {
return this._maxResults;
}
get modelId() {
return this.getStringAttribute('model_id');
}
set modelId(value) {
this._modelId = value;
}
resetModelId() {
this._modelId = undefined;
}
// Temporarily expose input value. Use with caution.
get modelIdInput() {
return this._modelId;
}
get tenancyId() {
return this.getStringAttribute('tenancy_id');
}
set tenancyId(value) {
this._tenancyId = value;
}
resetTenancyId() {
this._tenancyId = undefined;
}
// Temporarily expose input value. Use with caution.
get tenancyIdInput() {
return this._tenancyId;
}
}
exports.AiDocumentProcessorJobProcessorConfigFeaturesOutputReference = AiDocumentProcessorJobProcessorConfigFeaturesOutputReference;
_e = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobProcessorConfigFeaturesOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobProcessorConfigFeaturesOutputReference", version: "1.0.0" };
class AiDocumentProcessorJobProcessorConfigFeaturesList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new AiDocumentProcessorJobProcessorConfigFeaturesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AiDocumentProcessorJobProcessorConfigFeaturesList = AiDocumentProcessorJobProcessorConfigFeaturesList;
_f = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobProcessorConfigFeaturesList[_f] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobProcessorConfigFeaturesList", version: "1.0.0" };
function aiDocumentProcessorJobProcessorConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
document_type: cdktf.stringToTerraform(struct.documentType),
is_zip_output_enabled: cdktf.booleanToTerraform(struct.isZipOutputEnabled),
language: cdktf.stringToTerraform(struct.language),
processor_type: cdktf.stringToTerraform(struct.processorType),
features: cdktf.listMapper(aiDocumentProcessorJobProcessorConfigFeaturesToTerraform, true)(struct.features),
};
}
exports.aiDocumentProcessorJobProcessorConfigToTerraform = aiDocumentProcessorJobProcessorConfigToTerraform;
function aiDocumentProcessorJobProcessorConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
document_type: {
value: cdktf.stringToHclTerraform(struct.documentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
is_zip_output_enabled: {
value: cdktf.booleanToHclTerraform(struct.isZipOutputEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
language: {
value: cdktf.stringToHclTerraform(struct.language),
isBlock: false,
type: "simple",
storageClassType: "string",
},
processor_type: {
value: cdktf.stringToHclTerraform(struct.processorType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
features: {
value: cdktf.listMapperHcl(aiDocumentProcessorJobProcessorConfigFeaturesToHclTerraform, true)(struct.features),
isBlock: true,
type: "list",
storageClassType: "AiDocumentProcessorJobProcessorConfigFeaturesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.aiDocumentProcessorJobProcessorConfigToHclTerraform = aiDocumentProcessorJobProcessorConfigToHclTerraform;
class AiDocumentProcessorJobProcessorConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
// features - computed: false, optional: false, required: true
this._features = new AiDocumentProcessorJobProcessorConfigFeaturesList(this, "features", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._documentType !== undefined) {
hasAnyValues = true;
internalValueResult.documentType = this._documentType;
}
if (this._isZipOutputEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.isZipOutputEnabled = this._isZipOutputEnabled;
}
if (this._language !== undefined) {
hasAnyValues = true;
internalValueResult.language = this._language;
}
if (this._processorType !== undefined) {
hasAnyValues = true;
internalValueResult.processorType = this._processorType;
}
if (this._features?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.features = this._features?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._documentType = undefined;
this._isZipOutputEnabled = undefined;
this._language = undefined;
this._processorType = undefined;
this._features.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._documentType = value.documentType;
this._isZipOutputEnabled = value.isZipOutputEnabled;
this._language = value.language;
this._processorType = value.processorType;
this._features.internalValue = value.features;
}
}
get documentType() {
return this.getStringAttribute('document_type');
}
set documentType(value) {
this._documentType = value;
}
resetDocumentType() {
this._documentType = undefined;
}
// Temporarily expose input value. Use with caution.
get documentTypeInput() {
return this._documentType;
}
get isZipOutputEnabled() {
return this.getBooleanAttribute('is_zip_output_enabled');
}
set isZipOutputEnabled(value) {
this._isZipOutputEnabled = value;
}
resetIsZipOutputEnabled() {
this._isZipOutputEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get isZipOutputEnabledInput() {
return this._isZipOutputEnabled;
}
get language() {
return this.getStringAttribute('language');
}
set language(value) {
this._language = value;
}
resetLanguage() {
this._language = undefined;
}
// Temporarily expose input value. Use with caution.
get languageInput() {
return this._language;
}
get processorType() {
return this.getStringAttribute('processor_type');
}
set processorType(value) {
this._processorType = value;
}
// Temporarily expose input value. Use with caution.
get processorTypeInput() {
return this._processorType;
}
get features() {
return this._features;
}
putFeatures(value) {
this._features.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get featuresInput() {
return this._features.internalValue;
}
}
exports.AiDocumentProcessorJobProcessorConfigOutputReference = AiDocumentProcessorJobProcessorConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobProcessorConfigOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobProcessorConfigOutputReference", version: "1.0.0" };
function aiDocumentProcessorJobTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.aiDocumentProcessorJobTimeoutsToTerraform = aiDocumentProcessorJobTimeoutsToTerraform;
function aiDocumentProcessorJobTimeoutsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.aiDocumentProcessorJobTimeoutsToHclTerraform = aiDocumentProcessorJobTimeoutsToHclTerraform;
class AiDocumentProcessorJobTimeoutsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.AiDocumentProcessorJobTimeoutsOutputReference = AiDocumentProcessorJobTimeoutsOutputReference;
_h = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJobTimeoutsOutputReference[_h] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJobTimeoutsOutputReference", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/ai_document_processor_job oci_ai_document_processor_job}
*/
class AiDocumentProcessorJob extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a AiDocumentProcessorJob resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the AiDocumentProcessorJob to import
* @param importFromId The id of the existing AiDocumentProcessorJob that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/ai_document_processor_job#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the AiDocumentProcessorJob to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_ai_document_processor_job", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/ai_document_processor_job oci_ai_document_processor_job} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options AiDocumentProcessorJobConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_ai_document_processor_job',
terraformGeneratorMetadata: {
providerName: 'oci',
providerVersion: '6.18.0',
providerVersionConstraint: '~> 6.18.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// input_location - computed: false, optional: false, required: true
this._inputLocation = new AiDocumentProcessorJobInputLocationOutputReference(this, "input_location");
// output_location - computed: false, optional: false, required: true
this._outputLocation = new AiDocumentProcessorJobOutputLocationOutputReference(this, "output_location");
// processor_config - computed: false, optional: false, required: true
this._processorConfig = new AiDocumentProcessorJobProcessorConfigOutputReference(this, "processor_config");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new AiDocumentProcessorJobTimeoutsOutputReference(this, "timeouts");
this._compartmentId = config.compartmentId;
this._displayName = config.displayName;
this._id = config.id;
this._inputLocation.internalValue = config.inputLocation;
this._outputLocation.internalValue = config.outputLocation;
this._processorConfig.internalValue = config.processorConfig;
this._timeouts.internalValue = config.timeouts;
}
get compartmentId() {
return this.getStringAttribute('compartment_id');
}
set compartmentId(value) {
this._compartmentId = value;
}
// Temporarily expose input value. Use with caution.
get compartmentIdInput() {
return this._compartmentId;
}
get displayName() {
return this.getStringAttribute('display_name');
}
set displayName(value) {
this._displayName = value;
}
resetDisplayName() {
this._displayName = undefined;
}
// Temporarily expose input value. Use with caution.
get displayNameInput() {
return this._displayName;
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
// lifecycle_details - computed: true, optional: false, required: false
get lifecycleDetails() {
return this.getStringAttribute('lifecycle_details');
}
// percent_complete - computed: true, optional: false, required: false
get percentComplete() {
return this.getNumberAttribute('percent_complete');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
// time_accepted - computed: true, optional: false, required: false
get timeAccepted() {
return this.getStringAttribute('time_accepted');
}
// time_finished - computed: true, optional: false, required: false
get timeFinished() {
return this.getStringAttribute('time_finished');
}
// time_started - computed: true, optional: false, required: false
get timeStarted() {
return this.getStringAttribute('time_started');
}
get inputLocation() {
return this._inputLocation;
}
putInputLocation(value) {
this._inputLocation.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get inputLocationInput() {
return this._inputLocation.internalValue;
}
get outputLocation() {
return this._outputLocation;
}
putOutputLocation(value) {
this._outputLocation.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get outputLocationInput() {
return this._outputLocation.internalValue;
}
get processorConfig() {
return this._processorConfig;
}
putProcessorConfig(value) {
this._processorConfig.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get processorConfigInput() {
return this._processorConfig.internalValue;
}
get timeouts() {
return this._timeouts;
}
putTimeouts(value) {
this._timeouts.internalValue = value;
}
resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get timeoutsInput() {
return this._timeouts.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
compartment_id: cdktf.stringToTerraform(this._compartmentId),
display_name: cdktf.stringToTerraform(this._displayName),
id: cdktf.stringToTerraform(this._id),
input_location: aiDocumentProcessorJobInputLocationToTerraform(this._inputLocation.internalValue),
output_location: aiDocumentProcessorJobOutputLocationToTerraform(this._outputLocation.internalValue),
processor_config: aiDocumentProcessorJobProcessorConfigToTerraform(this._processorConfig.internalValue),
timeouts: aiDocumentProcessorJobTimeoutsToTerraform(this._timeouts.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
compartment_id: {
value: cdktf.stringToHclTerraform(this._compartmentId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
display_name: {
value: cdktf.stringToHclTerraform(this._displayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
input_location: {
value: aiDocumentProcessorJobInputLocationToHclTerraform(this._inputLocation.internalValue),
isBlock: true,
type: "list",
storageClassType: "AiDocumentProcessorJobInputLocationList",
},
output_location: {
value: aiDocumentProcessorJobOutputLocationToHclTerraform(this._outputLocation.internalValue),
isBlock: true,
type: "list",
storageClassType: "AiDocumentProcessorJobOutputLocationList",
},
processor_config: {
value: aiDocumentProcessorJobProcessorConfigToHclTerraform(this._processorConfig.internalValue),
isBlock: true,
type: "list",
storageClassType: "AiDocumentProcessorJobProcessorConfigList",
},
timeouts: {
value: aiDocumentProcessorJobTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "AiDocumentProcessorJobTimeouts",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.AiDocumentProcessorJob = AiDocumentProcessorJob;
_j = JSII_RTTI_SYMBOL_1;
AiDocumentProcessorJob[_j] = { fqn: "rhizo-co-terraform-provider-oci.aiDocumentProcessorJob.AiDocumentProcessorJob", version: "1.0.0" };
// =================
// STATIC PROPERTIES
// =================
AiDocumentProcessorJob.tfResourceType = "oci_ai_document_processor_job";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWktZG9jdW1lbnQtcHJvY2Vzc29yLWpvYi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUlBLCtCQUErQjtBQTREL0IsU0FBZ0IsNkRBQTZELENBQUMsTUFBK0U7SUFDM0osSUFBSSxDQUFDLEtBQUssQ0FBQyxVQUFVLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLFlBQVksQ0FBQyxZQUFZLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUFDLE9BQU8sTUFBTSxDQUFDO0lBQUMsQ0FBQztJQUM1RixJQUFJLEtBQUssQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQ25DLE1BQU0sSUFBSSxLQUFLLENBQUMsb0hBQW9ILENBQUMsQ0FBQztJQUN4SSxDQUFDO0lBQ0QsT0FBTztRQUNMLE1BQU0sRUFBRSxLQUFLLENBQUMsaUJBQWlCLENBQUMsTUFBTyxDQUFDLE1BQU0sQ0FBQztRQUMvQyxTQUFTLEVBQUUsS0FBSyxDQUFDLGlCQUFpQixDQUFDLE1BQU8sQ0FBQyxTQUFTLENBQUM7UUFDckQsTUFBTSxFQUFFLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxNQUFPLENBQUMsTUFBTSxDQUFDO0tBQ2hELENBQUE7QUFDSCxDQUFDO0FBVkQsc0lBVUM7QUFHRCxTQUFnQixnRUFBZ0UsQ0FBQyxNQUErRTtJQUM5SixJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxNQUFNLEtBQUssR0FBRztRQUNaLE1BQU0sRUFBRTtZQUNOLEtBQUssRUFBRSxLQUFLLENBQUMsb0JBQW9CLENBQUMsTUFBTyxDQUFDLE1BQU0sQ0FBQztZQUNqRCxPQUFPLEVBQUUsS0FBSztZQUNkLElBQUksRUFBRSxRQUFRO1lBQ2QsZ0JBQWdCLEVBQUUsUUFBUTtTQUMzQjtRQUNELFNBQVMsRUFBRTtZQUNULEtBQUssRUFBRSxLQUFLLENBQUMsb0JBQW9CLENBQUMsTUFBTyxDQUFDLFNBQVMsQ0FBQztZQUNwRCxPQUFPLEVBQUUsS0FBSztZQUNkLElBQUksRUFBRSxRQUFRO1lBQ2QsZ0JBQWdCLEVBQUUsUUFBUTtTQUMzQjtRQUNELE1BQU0sRUFBRTtZQUNOLEtBQUssRUFBRSxLQUFLLENBQUMsb0JBQW9CLENBQUMsTUFBTyxDQUFDLE1BQU0sQ0FBQztZQUNqRCxPQUFPLEVBQUUsS0FBSztZQUNkLElBQUksRUFBRSxRQUFRO1lBQ2QsZ0JBQWdCLEVBQUUsUUFBUTtTQUMzQjtLQUNGLENBQUM7SUFFRiw4QkFBOEI7SUFDOUIsT0FBTyxNQUFNLENBQUMsV0FBVyxDQUFDLE1BQU0sQ0FBQyxPQUFPLE