UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,162 lines 162 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.ComprehendDocumentClassifier = exports.ComprehendDocumentClassifierVpcConfigOutputReference = exports.ComprehendDocumentClassifierTimeoutsOutputReference = exports.ComprehendDocumentClassifierOutputDataConfigOutputReference = exports.ComprehendDocumentClassifierInputDataConfigOutputReference = exports.ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList = exports.ComprehendDocumentClassifierInputDataConfigAugmentedManifestsOutputReference = void 0; exports.comprehendDocumentClassifierInputDataConfigAugmentedManifestsToTerraform = comprehendDocumentClassifierInputDataConfigAugmentedManifestsToTerraform; exports.comprehendDocumentClassifierInputDataConfigAugmentedManifestsToHclTerraform = comprehendDocumentClassifierInputDataConfigAugmentedManifestsToHclTerraform; exports.comprehendDocumentClassifierInputDataConfigToTerraform = comprehendDocumentClassifierInputDataConfigToTerraform; exports.comprehendDocumentClassifierInputDataConfigToHclTerraform = comprehendDocumentClassifierInputDataConfigToHclTerraform; exports.comprehendDocumentClassifierOutputDataConfigToTerraform = comprehendDocumentClassifierOutputDataConfigToTerraform; exports.comprehendDocumentClassifierOutputDataConfigToHclTerraform = comprehendDocumentClassifierOutputDataConfigToHclTerraform; exports.comprehendDocumentClassifierTimeoutsToTerraform = comprehendDocumentClassifierTimeoutsToTerraform; exports.comprehendDocumentClassifierTimeoutsToHclTerraform = comprehendDocumentClassifierTimeoutsToHclTerraform; exports.comprehendDocumentClassifierVpcConfigToTerraform = comprehendDocumentClassifierVpcConfigToTerraform; exports.comprehendDocumentClassifierVpcConfigToHclTerraform = comprehendDocumentClassifierVpcConfigToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function comprehendDocumentClassifierInputDataConfigAugmentedManifestsToTerraform(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 { annotation_data_s3_uri: cdktf.stringToTerraform(struct.annotationDataS3Uri), attribute_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.attributeNames), document_type: cdktf.stringToTerraform(struct.documentType), s3_uri: cdktf.stringToTerraform(struct.s3Uri), source_documents_s3_uri: cdktf.stringToTerraform(struct.sourceDocumentsS3Uri), split: cdktf.stringToTerraform(struct.split), }; } function comprehendDocumentClassifierInputDataConfigAugmentedManifestsToHclTerraform(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 = { annotation_data_s3_uri: { value: cdktf.stringToHclTerraform(struct.annotationDataS3Uri), isBlock: false, type: "simple", storageClassType: "string", }, attribute_names: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.attributeNames), isBlock: false, type: "list", storageClassType: "stringList", }, document_type: { value: cdktf.stringToHclTerraform(struct.documentType), isBlock: false, type: "simple", storageClassType: "string", }, s3_uri: { value: cdktf.stringToHclTerraform(struct.s3Uri), isBlock: false, type: "simple", storageClassType: "string", }, source_documents_s3_uri: { value: cdktf.stringToHclTerraform(struct.sourceDocumentsS3Uri), isBlock: false, type: "simple", storageClassType: "string", }, split: { value: cdktf.stringToHclTerraform(struct.split), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComprehendDocumentClassifierInputDataConfigAugmentedManifestsOutputReference 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._annotationDataS3Uri !== undefined) { hasAnyValues = true; internalValueResult.annotationDataS3Uri = this._annotationDataS3Uri; } if (this._attributeNames !== undefined) { hasAnyValues = true; internalValueResult.attributeNames = this._attributeNames; } if (this._documentType !== undefined) { hasAnyValues = true; internalValueResult.documentType = this._documentType; } if (this._s3Uri !== undefined) { hasAnyValues = true; internalValueResult.s3Uri = this._s3Uri; } if (this._sourceDocumentsS3Uri !== undefined) { hasAnyValues = true; internalValueResult.sourceDocumentsS3Uri = this._sourceDocumentsS3Uri; } if (this._split !== undefined) { hasAnyValues = true; internalValueResult.split = this._split; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._annotationDataS3Uri = undefined; this._attributeNames = undefined; this._documentType = undefined; this._s3Uri = undefined; this._sourceDocumentsS3Uri = undefined; this._split = 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._annotationDataS3Uri = value.annotationDataS3Uri; this._attributeNames = value.attributeNames; this._documentType = value.documentType; this._s3Uri = value.s3Uri; this._sourceDocumentsS3Uri = value.sourceDocumentsS3Uri; this._split = value.split; } } get annotationDataS3Uri() { return this.getStringAttribute('annotation_data_s3_uri'); } set annotationDataS3Uri(value) { this._annotationDataS3Uri = value; } resetAnnotationDataS3Uri() { this._annotationDataS3Uri = undefined; } // Temporarily expose input value. Use with caution. get annotationDataS3UriInput() { return this._annotationDataS3Uri; } get attributeNames() { return this.getListAttribute('attribute_names'); } set attributeNames(value) { this._attributeNames = value; } // Temporarily expose input value. Use with caution. get attributeNamesInput() { return this._attributeNames; } 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 s3Uri() { return this.getStringAttribute('s3_uri'); } set s3Uri(value) { this._s3Uri = value; } // Temporarily expose input value. Use with caution. get s3UriInput() { return this._s3Uri; } get sourceDocumentsS3Uri() { return this.getStringAttribute('source_documents_s3_uri'); } set sourceDocumentsS3Uri(value) { this._sourceDocumentsS3Uri = value; } resetSourceDocumentsS3Uri() { this._sourceDocumentsS3Uri = undefined; } // Temporarily expose input value. Use with caution. get sourceDocumentsS3UriInput() { return this._sourceDocumentsS3Uri; } get split() { return this.getStringAttribute('split'); } set split(value) { this._split = value; } resetSplit() { this._split = undefined; } // Temporarily expose input value. Use with caution. get splitInput() { return this._split; } } exports.ComprehendDocumentClassifierInputDataConfigAugmentedManifestsOutputReference = ComprehendDocumentClassifierInputDataConfigAugmentedManifestsOutputReference; _a = JSII_RTTI_SYMBOL_1; ComprehendDocumentClassifierInputDataConfigAugmentedManifestsOutputReference[_a] = { fqn: "@cdktf/provider-aws.comprehendDocumentClassifier.ComprehendDocumentClassifierInputDataConfigAugmentedManifestsOutputReference", version: "21.22.1" }; class ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList 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 ComprehendDocumentClassifierInputDataConfigAugmentedManifestsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList = ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList; _b = JSII_RTTI_SYMBOL_1; ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList[_b] = { fqn: "@cdktf/provider-aws.comprehendDocumentClassifier.ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList", version: "21.22.1" }; function comprehendDocumentClassifierInputDataConfigToTerraform(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_format: cdktf.stringToTerraform(struct.dataFormat), label_delimiter: cdktf.stringToTerraform(struct.labelDelimiter), s3_uri: cdktf.stringToTerraform(struct.s3Uri), test_s3_uri: cdktf.stringToTerraform(struct.testS3Uri), augmented_manifests: cdktf.listMapper(comprehendDocumentClassifierInputDataConfigAugmentedManifestsToTerraform, true)(struct.augmentedManifests), }; } function comprehendDocumentClassifierInputDataConfigToHclTerraform(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_format: { value: cdktf.stringToHclTerraform(struct.dataFormat), isBlock: false, type: "simple", storageClassType: "string", }, label_delimiter: { value: cdktf.stringToHclTerraform(struct.labelDelimiter), isBlock: false, type: "simple", storageClassType: "string", }, s3_uri: { value: cdktf.stringToHclTerraform(struct.s3Uri), isBlock: false, type: "simple", storageClassType: "string", }, test_s3_uri: { value: cdktf.stringToHclTerraform(struct.testS3Uri), isBlock: false, type: "simple", storageClassType: "string", }, augmented_manifests: { value: cdktf.listMapperHcl(comprehendDocumentClassifierInputDataConfigAugmentedManifestsToHclTerraform, true)(struct.augmentedManifests), isBlock: true, type: "set", storageClassType: "ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComprehendDocumentClassifierInputDataConfigOutputReference 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; // augmented_manifests - computed: false, optional: true, required: false this._augmentedManifests = new ComprehendDocumentClassifierInputDataConfigAugmentedManifestsList(this, "augmented_manifests", true); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._dataFormat !== undefined) { hasAnyValues = true; internalValueResult.dataFormat = this._dataFormat; } if (this._labelDelimiter !== undefined) { hasAnyValues = true; internalValueResult.labelDelimiter = this._labelDelimiter; } if (this._s3Uri !== undefined) { hasAnyValues = true; internalValueResult.s3Uri = this._s3Uri; } if (this._testS3Uri !== undefined) { hasAnyValues = true; internalValueResult.testS3Uri = this._testS3Uri; } if (this._augmentedManifests?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.augmentedManifests = this._augmentedManifests?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dataFormat = undefined; this._labelDelimiter = undefined; this._s3Uri = undefined; this._testS3Uri = undefined; this._augmentedManifests.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dataFormat = value.dataFormat; this._labelDelimiter = value.labelDelimiter; this._s3Uri = value.s3Uri; this._testS3Uri = value.testS3Uri; this._augmentedManifests.internalValue = value.augmentedManifests; } } get dataFormat() { return this.getStringAttribute('data_format'); } set dataFormat(value) { this._dataFormat = value; } resetDataFormat() { this._dataFormat = undefined; } // Temporarily expose input value. Use with caution. get dataFormatInput() { return this._dataFormat; } get labelDelimiter() { return this.getStringAttribute('label_delimiter'); } set labelDelimiter(value) { this._labelDelimiter = value; } resetLabelDelimiter() { this._labelDelimiter = undefined; } // Temporarily expose input value. Use with caution. get labelDelimiterInput() { return this._labelDelimiter; } get s3Uri() { return this.getStringAttribute('s3_uri'); } set s3Uri(value) { this._s3Uri = value; } resetS3Uri() { this._s3Uri = undefined; } // Temporarily expose input value. Use with caution. get s3UriInput() { return this._s3Uri; } get testS3Uri() { return this.getStringAttribute('test_s3_uri'); } set testS3Uri(value) { this._testS3Uri = value; } resetTestS3Uri() { this._testS3Uri = undefined; } // Temporarily expose input value. Use with caution. get testS3UriInput() { return this._testS3Uri; } get augmentedManifests() { return this._augmentedManifests; } putAugmentedManifests(value) { this._augmentedManifests.internalValue = value; } resetAugmentedManifests() { this._augmentedManifests.internalValue = undefined; } // Temporarily expose input value. Use with caution. get augmentedManifestsInput() { return this._augmentedManifests.internalValue; } } exports.ComprehendDocumentClassifierInputDataConfigOutputReference = ComprehendDocumentClassifierInputDataConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; ComprehendDocumentClassifierInputDataConfigOutputReference[_c] = { fqn: "@cdktf/provider-aws.comprehendDocumentClassifier.ComprehendDocumentClassifierInputDataConfigOutputReference", version: "21.22.1" }; function comprehendDocumentClassifierOutputDataConfigToTerraform(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 { kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId), s3_uri: cdktf.stringToTerraform(struct.s3Uri), }; } function comprehendDocumentClassifierOutputDataConfigToHclTerraform(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 = { kms_key_id: { value: cdktf.stringToHclTerraform(struct.kmsKeyId), isBlock: false, type: "simple", storageClassType: "string", }, s3_uri: { value: cdktf.stringToHclTerraform(struct.s3Uri), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComprehendDocumentClassifierOutputDataConfigOutputReference 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._kmsKeyId !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyId = this._kmsKeyId; } if (this._s3Uri !== undefined) { hasAnyValues = true; internalValueResult.s3Uri = this._s3Uri; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeyId = undefined; this._s3Uri = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeyId = value.kmsKeyId; this._s3Uri = value.s3Uri; } } get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } set kmsKeyId(value) { this._kmsKeyId = value; } resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyIdInput() { return this._kmsKeyId; } // output_s3_uri - computed: true, optional: false, required: false get outputS3Uri() { return this.getStringAttribute('output_s3_uri'); } get s3Uri() { return this.getStringAttribute('s3_uri'); } set s3Uri(value) { this._s3Uri = value; } // Temporarily expose input value. Use with caution. get s3UriInput() { return this._s3Uri; } } exports.ComprehendDocumentClassifierOutputDataConfigOutputReference = ComprehendDocumentClassifierOutputDataConfigOutputReference; _d = JSII_RTTI_SYMBOL_1; ComprehendDocumentClassifierOutputDataConfigOutputReference[_d] = { fqn: "@cdktf/provider-aws.comprehendDocumentClassifier.ComprehendDocumentClassifierOutputDataConfigOutputReference", version: "21.22.1" }; function comprehendDocumentClassifierTimeoutsToTerraform(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), }; } function comprehendDocumentClassifierTimeoutsToHclTerraform(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)); } class ComprehendDocumentClassifierTimeoutsOutputReference 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.ComprehendDocumentClassifierTimeoutsOutputReference = ComprehendDocumentClassifierTimeoutsOutputReference; _e = JSII_RTTI_SYMBOL_1; ComprehendDocumentClassifierTimeoutsOutputReference[_e] = { fqn: "@cdktf/provider-aws.comprehendDocumentClassifier.ComprehendDocumentClassifierTimeoutsOutputReference", version: "21.22.1" }; function comprehendDocumentClassifierVpcConfigToTerraform(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 { security_group_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.securityGroupIds), subnets: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.subnets), }; } function comprehendDocumentClassifierVpcConfigToHclTerraform(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 = { security_group_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.securityGroupIds), isBlock: false, type: "set", storageClassType: "stringList", }, subnets: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.subnets), isBlock: false, type: "set", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class ComprehendDocumentClassifierVpcConfigOutputReference 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._securityGroupIds !== undefined) { hasAnyValues = true; internalValueResult.securityGroupIds = this._securityGroupIds; } if (this._subnets !== undefined) { hasAnyValues = true; internalValueResult.subnets = this._subnets; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._securityGroupIds = undefined; this._subnets = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._securityGroupIds = value.securityGroupIds; this._subnets = value.subnets; } } get securityGroupIds() { return cdktf.Fn.tolist(this.getListAttribute('security_group_ids')); } set securityGroupIds(value) { this._securityGroupIds = value; } // Temporarily expose input value. Use with caution. get securityGroupIdsInput() { return this._securityGroupIds; } get subnets() { return cdktf.Fn.tolist(this.getListAttribute('subnets')); } set subnets(value) { this._subnets = value; } // Temporarily expose input value. Use with caution. get subnetsInput() { return this._subnets; } } exports.ComprehendDocumentClassifierVpcConfigOutputReference = ComprehendDocumentClassifierVpcConfigOutputReference; _f = JSII_RTTI_SYMBOL_1; ComprehendDocumentClassifierVpcConfigOutputReference[_f] = { fqn: "@cdktf/provider-aws.comprehendDocumentClassifier.ComprehendDocumentClassifierVpcConfigOutputReference", version: "21.22.1" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/comprehend_document_classifier aws_comprehend_document_classifier} */ class ComprehendDocumentClassifier extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a ComprehendDocumentClassifier 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 ComprehendDocumentClassifier to import * @param importFromId The id of the existing ComprehendDocumentClassifier that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/comprehend_document_classifier#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the ComprehendDocumentClassifier to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "aws_comprehend_document_classifier", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/aws/6.25.0/docs/resources/comprehend_document_classifier aws_comprehend_document_classifier} 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 ComprehendDocumentClassifierConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'aws_comprehend_document_classifier', terraformGeneratorMetadata: { providerName: 'aws', providerVersion: '6.25.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // input_data_config - computed: false, optional: false, required: true this._inputDataConfig = new ComprehendDocumentClassifierInputDataConfigOutputReference(this, "input_data_config"); // output_data_config - computed: false, optional: true, required: false this._outputDataConfig = new ComprehendDocumentClassifierOutputDataConfigOutputReference(this, "output_data_config"); // timeouts - computed: false, optional: true, required: false this._timeouts = new ComprehendDocumentClassifierTimeoutsOutputReference(this, "timeouts"); // vpc_config - computed: false, optional: true, required: false this._vpcConfig = new ComprehendDocumentClassifierVpcConfigOutputReference(this, "vpc_config"); this._dataAccessRoleArn = config.dataAccessRoleArn; this._id = config.id; this._languageCode = config.languageCode; this._mode = config.mode; this._modelKmsKeyId = config.modelKmsKeyId; this._name = config.name; this._region = config.region; this._tags = config.tags; this._tagsAll = config.tagsAll; this._versionName = config.versionName; this._versionNamePrefix = config.versionNamePrefix; this._volumeKmsKeyId = config.volumeKmsKeyId; this._inputDataConfig.internalValue = config.inputDataConfig; this._outputDataConfig.internalValue = config.outputDataConfig; this._timeouts.internalValue = config.timeouts; this._vpcConfig.internalValue = config.vpcConfig; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } get dataAccessRoleArn() { return this.getStringAttribute('data_access_role_arn'); } set dataAccessRoleArn(value) { this._dataAccessRoleArn = value; } // Temporarily expose input value. Use with caution. get dataAccessRoleArnInput() { return this._dataAccessRoleArn; } 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; } get languageCode() { return this.getStringAttribute('language_code'); } set languageCode(value) { this._languageCode = value; } // Temporarily expose input value. Use with caution. get languageCodeInput() { return this._languageCode; } get mode() { return this.getStringAttribute('mode'); } set mode(value) { this._mode = value; } resetMode() { this._mode = undefined; } // Temporarily expose input value. Use with caution. get modeInput() { return this._mode; } get modelKmsKeyId() { return this.getStringAttribute('model_kms_key_id'); } set modelKmsKeyId(value) { this._modelKmsKeyId = value; } resetModelKmsKeyId() { this._modelKmsKeyId = undefined; } // Temporarily expose input value. Use with caution. get modelKmsKeyIdInput() { return this._modelKmsKeyId; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } get tags() { return this.getStringMapAttribute('tags'); } set tags(value) { this._tags = value; } resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. get tagsInput() { return this._tags; } get tagsAll() { return this.getStringMapAttribute('tags_all'); } set tagsAll(value) { this._tagsAll = value; } resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. get tagsAllInput() { return this._tagsAll; } get versionName() { return this.getStringAttribute('version_name'); } set versionName(value) { this._versionName = value; } resetVersionName() { this._versionName = undefined; } // Temporarily expose input value. Use with caution. get versionNameInput() { return this._versionName; } get versionNamePrefix() { return this.getStringAttribute('version_name_prefix'); } set versionNamePrefix(value) { this._versionNamePrefix = value; } resetVersionNamePrefix() { this._versionNamePrefix = undefined; } // Temporarily expose input value. Use with caution. get versionNamePrefixInput() { return this._versionNamePrefix; } get volumeKmsKeyId() { return this.getStringAttribute('volume_kms_key_id'); } set volumeKmsKeyId(value) { this._volumeKmsKeyId = value; } resetVolumeKmsKeyId() { this._volumeKmsKeyId = undefined; } // Temporarily expose input value. Use with caution. get volumeKmsKeyIdInput() { return this._volumeKmsKeyId; } get inputDataConfig() { return this._inputDataConfig; } putInputDataConfig(value) { this._inputDataConfig.internalValue = value; } // Temporarily expose input value. Use with caution. get inputDataConfigInput() { return this._inputDataConfig.internalValue; } get outputDataConfig() { return this._outputDataConfig; } putOutputDataConfig(value) { this._outputDataConfig.internalValue = value; } resetOutputDataConfig() { this._outputDataConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get outputDataConfigInput() { return this._outputDataConfig.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; } get vpcConfig() { return this._vpcConfig; } putVpcConfig(value) { this._vpcConfig.internalValue = value; } resetVpcConfig() { this._vpcConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get vpcConfigInput() { return this._vpcConfig.internalValue; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { data_access_role_arn: cdktf.stringToTerraform(this._dataAccessRoleArn), id: cdktf.stringToTerraform(this._id), language_code: cdktf.stringToTerraform(this._languageCode), mode: cdktf.stringToTerraform(this._mode), model_kms_key_id: cdktf.stringToTerraform(this._modelKmsKeyId), name: cdktf.stringToTerraform(this._name), region: cdktf.stringToTerraform(this._region), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll), version_name: cdktf.stringToTerraform(this._versionName), version_name_prefix: cdktf.stringToTerraform(this._versionNamePrefix), volume_kms_key_id: cdktf.stringToTerraform(this._volumeKmsKeyId), input_data_config: comprehendDocumentClassifierInputDataConfigToTerraform(this._inputDataConfig.internalValue), output_data_config: comprehendDocumentClassifierOutputDataConfigToTerraform(this._outputDataConfig.internalValue), timeouts: comprehendDocumentClassifierTimeoutsToTerraform(this._timeouts.internalValue), vpc_config: comprehendDocumentClassifierVpcConfigToTerraform(this._vpcConfig.internalValue), }; } synthesizeHclAttributes() { const attrs = { data_access_role_arn: { value: cdktf.stringToHclTerraform(this._dataAccessRoleArn), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, language_code: { value: cdktf.stringToHclTerraform(this._languageCode), isBlock: false, type: "simple", storageClassType: "string", }, mode: { value: cdktf.stringToHclTerraform(this._mode), isBlock: false, type: "simple", storageClassType: "string", }, model_kms_key_id: { value: cdktf.stringToHclTerraform(this._modelKmsKeyId), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, region: { value: cdktf.stringToHclTerraform(this._region), isBlock: false, type: "simple", storageClassType: "string", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, tags_all: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tagsAll), isBlock: false, type: "map", storageClassType: "stringMap", }, version_name: { value: cdktf.stringToHclTerraform(this._versionName), isBlock: false, type: "simple", storageClassType: "string", }, version_name_prefix: { value: cdktf.stringToHclTerraform(this._versionNamePrefix), isBlock: false, type: "simple", storageClassType: "string", }, volume_kms_key_id: { value: cdktf.stringToHclTerraform(this._volumeKmsKeyId), isBlock: false, type: "simple", storageClassType: "string", }, input_data_config: { value: comprehendDocumentClassifierInputDataConfigToHclTerraform(this._inputDataConfig.internalValue), isBlock: true, type: "list", storageClassType: "ComprehendDocumentClassifierInputDataConfigList", }, output_data_config: { value: comprehendDocumentClassifierOutputDataConfigToHclTerraform(this._outputDataConfig.internalValue), isBlock: true, type: "list", storageClassType: "ComprehendDocumentClassifierOutputDataConfigList", }, timeouts: { value: comprehendDocumentClassifierTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "ComprehendDocumentClassifierTimeouts", }, vpc_config: { value: comprehendDocumentClassifierVpcConfigToHclTerraform(this._vpcConfig.internalValue), isBlock: true, type: "list", storageClassType: "ComprehendDocumentClassifierVpcConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.ComprehendDocumentClassifier = ComprehendDocumentClassifier; _g = JSII_RTTI_SYMBOL_1; ComprehendDocumentClassifier[_g] = { fqn: "@cdktf/provider-aws.comprehendDocumentClassifier.ComprehendDocumentClassifier", version: "21.22.1" }; // ================= // STATIC PROPERTIES // ================= ComprehendDocumentClassifier.tfResourceType = "aws_comprehend_document_classifier"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tcHJlaGVuZC1kb2N1bWVudC1jbGFzc2lmaWVyL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUF1SEEsNEpBYUM7QUFHRCxrS0E4Q0M7QUFtTkQsd0hBWUM7QUFHRCw4SEF3Q0M7QUFxSkQsMEhBU0M7QUFHRCxnSUFzQkM7QUF5RkQsMEdBVUM7QUFHRCxnSEE0QkM7QUFtSEQsNEdBU0M7QUFHRCxrSEFzQkM7O0FBcDRCRCwrQkFBK0I7QUE4Ry9CLFNBQWdCLHdFQUF3RSxDQUFDLE1BQTBGO0lBQ2pMLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBS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