UNPKG

@cdktf/provider-azurerm

Version:

Prebuilt azurerm Provider for Terraform CDK (cdktf)

1,107 lines 155 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g; Object.defineProperty(exports, "__esModule", { value: true }); exports.HealthcareFhirService = exports.HealthcareFhirServiceTimeoutsOutputReference = exports.healthcareFhirServiceTimeoutsToHclTerraform = exports.healthcareFhirServiceTimeoutsToTerraform = exports.HealthcareFhirServiceOciArtifactList = exports.HealthcareFhirServiceOciArtifactOutputReference = exports.healthcareFhirServiceOciArtifactToHclTerraform = exports.healthcareFhirServiceOciArtifactToTerraform = exports.HealthcareFhirServiceIdentityOutputReference = exports.healthcareFhirServiceIdentityToHclTerraform = exports.healthcareFhirServiceIdentityToTerraform = exports.HealthcareFhirServiceCorsOutputReference = exports.healthcareFhirServiceCorsToHclTerraform = exports.healthcareFhirServiceCorsToTerraform = exports.HealthcareFhirServiceAuthenticationOutputReference = exports.healthcareFhirServiceAuthenticationToHclTerraform = exports.healthcareFhirServiceAuthenticationToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function healthcareFhirServiceAuthenticationToTerraform(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 { audience: cdktf.stringToTerraform(struct.audience), authority: cdktf.stringToTerraform(struct.authority), smart_proxy_enabled: cdktf.booleanToTerraform(struct.smartProxyEnabled), }; } exports.healthcareFhirServiceAuthenticationToTerraform = healthcareFhirServiceAuthenticationToTerraform; function healthcareFhirServiceAuthenticationToHclTerraform(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 = { audience: { value: cdktf.stringToHclTerraform(struct.audience), isBlock: false, type: "simple", storageClassType: "string", }, authority: { value: cdktf.stringToHclTerraform(struct.authority), isBlock: false, type: "simple", storageClassType: "string", }, smart_proxy_enabled: { value: cdktf.booleanToHclTerraform(struct.smartProxyEnabled), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.healthcareFhirServiceAuthenticationToHclTerraform = healthcareFhirServiceAuthenticationToHclTerraform; class HealthcareFhirServiceAuthenticationOutputReference 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._audience !== undefined) { hasAnyValues = true; internalValueResult.audience = this._audience; } if (this._authority !== undefined) { hasAnyValues = true; internalValueResult.authority = this._authority; } if (this._smartProxyEnabled !== undefined) { hasAnyValues = true; internalValueResult.smartProxyEnabled = this._smartProxyEnabled; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._audience = undefined; this._authority = undefined; this._smartProxyEnabled = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._audience = value.audience; this._authority = value.authority; this._smartProxyEnabled = value.smartProxyEnabled; } } get audience() { return this.getStringAttribute('audience'); } set audience(value) { this._audience = value; } // Temporarily expose input value. Use with caution. get audienceInput() { return this._audience; } get authority() { return this.getStringAttribute('authority'); } set authority(value) { this._authority = value; } // Temporarily expose input value. Use with caution. get authorityInput() { return this._authority; } get smartProxyEnabled() { return this.getBooleanAttribute('smart_proxy_enabled'); } set smartProxyEnabled(value) { this._smartProxyEnabled = value; } resetSmartProxyEnabled() { this._smartProxyEnabled = undefined; } // Temporarily expose input value. Use with caution. get smartProxyEnabledInput() { return this._smartProxyEnabled; } } exports.HealthcareFhirServiceAuthenticationOutputReference = HealthcareFhirServiceAuthenticationOutputReference; _a = JSII_RTTI_SYMBOL_1; HealthcareFhirServiceAuthenticationOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.healthcareFhirService.HealthcareFhirServiceAuthenticationOutputReference", version: "12.27.0" }; function healthcareFhirServiceCorsToTerraform(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 { allowed_headers: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedHeaders), allowed_methods: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedMethods), allowed_origins: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedOrigins), credentials_allowed: cdktf.booleanToTerraform(struct.credentialsAllowed), max_age_in_seconds: cdktf.numberToTerraform(struct.maxAgeInSeconds), }; } exports.healthcareFhirServiceCorsToTerraform = healthcareFhirServiceCorsToTerraform; function healthcareFhirServiceCorsToHclTerraform(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 = { allowed_headers: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedHeaders), isBlock: false, type: "set", storageClassType: "stringList", }, allowed_methods: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedMethods), isBlock: false, type: "set", storageClassType: "stringList", }, allowed_origins: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedOrigins), isBlock: false, type: "set", storageClassType: "stringList", }, credentials_allowed: { value: cdktf.booleanToHclTerraform(struct.credentialsAllowed), isBlock: false, type: "simple", storageClassType: "boolean", }, max_age_in_seconds: { value: cdktf.numberToHclTerraform(struct.maxAgeInSeconds), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.healthcareFhirServiceCorsToHclTerraform = healthcareFhirServiceCorsToHclTerraform; class HealthcareFhirServiceCorsOutputReference 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._allowedHeaders !== undefined) { hasAnyValues = true; internalValueResult.allowedHeaders = this._allowedHeaders; } if (this._allowedMethods !== undefined) { hasAnyValues = true; internalValueResult.allowedMethods = this._allowedMethods; } if (this._allowedOrigins !== undefined) { hasAnyValues = true; internalValueResult.allowedOrigins = this._allowedOrigins; } if (this._credentialsAllowed !== undefined) { hasAnyValues = true; internalValueResult.credentialsAllowed = this._credentialsAllowed; } if (this._maxAgeInSeconds !== undefined) { hasAnyValues = true; internalValueResult.maxAgeInSeconds = this._maxAgeInSeconds; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowedHeaders = undefined; this._allowedMethods = undefined; this._allowedOrigins = undefined; this._credentialsAllowed = undefined; this._maxAgeInSeconds = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowedHeaders = value.allowedHeaders; this._allowedMethods = value.allowedMethods; this._allowedOrigins = value.allowedOrigins; this._credentialsAllowed = value.credentialsAllowed; this._maxAgeInSeconds = value.maxAgeInSeconds; } } get allowedHeaders() { return cdktf.Fn.tolist(this.getListAttribute('allowed_headers')); } set allowedHeaders(value) { this._allowedHeaders = value; } // Temporarily expose input value. Use with caution. get allowedHeadersInput() { return this._allowedHeaders; } get allowedMethods() { return cdktf.Fn.tolist(this.getListAttribute('allowed_methods')); } set allowedMethods(value) { this._allowedMethods = value; } // Temporarily expose input value. Use with caution. get allowedMethodsInput() { return this._allowedMethods; } get allowedOrigins() { return cdktf.Fn.tolist(this.getListAttribute('allowed_origins')); } set allowedOrigins(value) { this._allowedOrigins = value; } // Temporarily expose input value. Use with caution. get allowedOriginsInput() { return this._allowedOrigins; } get credentialsAllowed() { return this.getBooleanAttribute('credentials_allowed'); } set credentialsAllowed(value) { this._credentialsAllowed = value; } resetCredentialsAllowed() { this._credentialsAllowed = undefined; } // Temporarily expose input value. Use with caution. get credentialsAllowedInput() { return this._credentialsAllowed; } get maxAgeInSeconds() { return this.getNumberAttribute('max_age_in_seconds'); } set maxAgeInSeconds(value) { this._maxAgeInSeconds = value; } resetMaxAgeInSeconds() { this._maxAgeInSeconds = undefined; } // Temporarily expose input value. Use with caution. get maxAgeInSecondsInput() { return this._maxAgeInSeconds; } } exports.HealthcareFhirServiceCorsOutputReference = HealthcareFhirServiceCorsOutputReference; _b = JSII_RTTI_SYMBOL_1; HealthcareFhirServiceCorsOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.healthcareFhirService.HealthcareFhirServiceCorsOutputReference", version: "12.27.0" }; function healthcareFhirServiceIdentityToTerraform(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 { identity_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.identityIds), type: cdktf.stringToTerraform(struct.type), }; } exports.healthcareFhirServiceIdentityToTerraform = healthcareFhirServiceIdentityToTerraform; function healthcareFhirServiceIdentityToHclTerraform(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 = { identity_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.identityIds), isBlock: false, type: "set", storageClassType: "stringList", }, type: { value: cdktf.stringToHclTerraform(struct.type), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.healthcareFhirServiceIdentityToHclTerraform = healthcareFhirServiceIdentityToHclTerraform; class HealthcareFhirServiceIdentityOutputReference 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._identityIds !== undefined) { hasAnyValues = true; internalValueResult.identityIds = this._identityIds; } if (this._type !== undefined) { hasAnyValues = true; internalValueResult.type = this._type; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._identityIds = undefined; this._type = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._identityIds = value.identityIds; this._type = value.type; } } get identityIds() { return cdktf.Fn.tolist(this.getListAttribute('identity_ids')); } set identityIds(value) { this._identityIds = value; } resetIdentityIds() { this._identityIds = undefined; } // Temporarily expose input value. Use with caution. get identityIdsInput() { return this._identityIds; } // principal_id - computed: true, optional: false, required: false get principalId() { return this.getStringAttribute('principal_id'); } // tenant_id - computed: true, optional: false, required: false get tenantId() { return this.getStringAttribute('tenant_id'); } get type() { return this.getStringAttribute('type'); } set type(value) { this._type = value; } // Temporarily expose input value. Use with caution. get typeInput() { return this._type; } } exports.HealthcareFhirServiceIdentityOutputReference = HealthcareFhirServiceIdentityOutputReference; _c = JSII_RTTI_SYMBOL_1; HealthcareFhirServiceIdentityOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.healthcareFhirService.HealthcareFhirServiceIdentityOutputReference", version: "12.27.0" }; function healthcareFhirServiceOciArtifactToTerraform(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 { digest: cdktf.stringToTerraform(struct.digest), image_name: cdktf.stringToTerraform(struct.imageName), login_server: cdktf.stringToTerraform(struct.loginServer), }; } exports.healthcareFhirServiceOciArtifactToTerraform = healthcareFhirServiceOciArtifactToTerraform; function healthcareFhirServiceOciArtifactToHclTerraform(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 = { digest: { value: cdktf.stringToHclTerraform(struct.digest), isBlock: false, type: "simple", storageClassType: "string", }, image_name: { value: cdktf.stringToHclTerraform(struct.imageName), isBlock: false, type: "simple", storageClassType: "string", }, login_server: { value: cdktf.stringToHclTerraform(struct.loginServer), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.healthcareFhirServiceOciArtifactToHclTerraform = healthcareFhirServiceOciArtifactToHclTerraform; class HealthcareFhirServiceOciArtifactOutputReference 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._digest !== undefined) { hasAnyValues = true; internalValueResult.digest = this._digest; } if (this._imageName !== undefined) { hasAnyValues = true; internalValueResult.imageName = this._imageName; } if (this._loginServer !== undefined) { hasAnyValues = true; internalValueResult.loginServer = this._loginServer; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._digest = undefined; this._imageName = undefined; this._loginServer = 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._digest = value.digest; this._imageName = value.imageName; this._loginServer = value.loginServer; } } get digest() { return this.getStringAttribute('digest'); } set digest(value) { this._digest = value; } resetDigest() { this._digest = undefined; } // Temporarily expose input value. Use with caution. get digestInput() { return this._digest; } get imageName() { return this.getStringAttribute('image_name'); } set imageName(value) { this._imageName = value; } resetImageName() { this._imageName = undefined; } // Temporarily expose input value. Use with caution. get imageNameInput() { return this._imageName; } get loginServer() { return this.getStringAttribute('login_server'); } set loginServer(value) { this._loginServer = value; } // Temporarily expose input value. Use with caution. get loginServerInput() { return this._loginServer; } } exports.HealthcareFhirServiceOciArtifactOutputReference = HealthcareFhirServiceOciArtifactOutputReference; _d = JSII_RTTI_SYMBOL_1; HealthcareFhirServiceOciArtifactOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.healthcareFhirService.HealthcareFhirServiceOciArtifactOutputReference", version: "12.27.0" }; class HealthcareFhirServiceOciArtifactList 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 HealthcareFhirServiceOciArtifactOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.HealthcareFhirServiceOciArtifactList = HealthcareFhirServiceOciArtifactList; _e = JSII_RTTI_SYMBOL_1; HealthcareFhirServiceOciArtifactList[_e] = { fqn: "@cdktf/provider-azurerm.healthcareFhirService.HealthcareFhirServiceOciArtifactList", version: "12.27.0" }; function healthcareFhirServiceTimeoutsToTerraform(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), read: cdktf.stringToTerraform(struct.read), update: cdktf.stringToTerraform(struct.update), }; } exports.healthcareFhirServiceTimeoutsToTerraform = healthcareFhirServiceTimeoutsToTerraform; function healthcareFhirServiceTimeoutsToHclTerraform(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", }, read: { value: cdktf.stringToHclTerraform(struct.read), 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.healthcareFhirServiceTimeoutsToHclTerraform = healthcareFhirServiceTimeoutsToHclTerraform; class HealthcareFhirServiceTimeoutsOutputReference 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._read !== undefined) { hasAnyValues = true; internalValueResult.read = this._read; } 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._read = 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._read = value.read; 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 read() { return this.getStringAttribute('read'); } set read(value) { this._read = value; } resetRead() { this._read = undefined; } // Temporarily expose input value. Use with caution. get readInput() { return this._read; } 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.HealthcareFhirServiceTimeoutsOutputReference = HealthcareFhirServiceTimeoutsOutputReference; _f = JSII_RTTI_SYMBOL_1; HealthcareFhirServiceTimeoutsOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.healthcareFhirService.HealthcareFhirServiceTimeoutsOutputReference", version: "12.27.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/healthcare_fhir_service azurerm_healthcare_fhir_service} */ class HealthcareFhirService extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a HealthcareFhirService 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 HealthcareFhirService to import * @param importFromId The id of the existing HealthcareFhirService that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/healthcare_fhir_service#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the HealthcareFhirService to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_healthcare_fhir_service", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/healthcare_fhir_service azurerm_healthcare_fhir_service} 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 HealthcareFhirServiceConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'azurerm_healthcare_fhir_service', terraformGeneratorMetadata: { providerName: 'azurerm', providerVersion: '3.116.0', providerVersionConstraint: '~> 3.10' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // authentication - computed: false, optional: false, required: true this._authentication = new HealthcareFhirServiceAuthenticationOutputReference(this, "authentication"); // cors - computed: false, optional: true, required: false this._cors = new HealthcareFhirServiceCorsOutputReference(this, "cors"); // identity - computed: false, optional: true, required: false this._identity = new HealthcareFhirServiceIdentityOutputReference(this, "identity"); // oci_artifact - computed: false, optional: true, required: false this._ociArtifact = new HealthcareFhirServiceOciArtifactList(this, "oci_artifact", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new HealthcareFhirServiceTimeoutsOutputReference(this, "timeouts"); this._accessPolicyObjectIds = config.accessPolicyObjectIds; this._configurationExportStorageAccountName = config.configurationExportStorageAccountName; this._containerRegistryLoginServerUrl = config.containerRegistryLoginServerUrl; this._id = config.id; this._kind = config.kind; this._location = config.location; this._name = config.name; this._resourceGroupName = config.resourceGroupName; this._tags = config.tags; this._workspaceId = config.workspaceId; this._authentication.internalValue = config.authentication; this._cors.internalValue = config.cors; this._identity.internalValue = config.identity; this._ociArtifact.internalValue = config.ociArtifact; this._timeouts.internalValue = config.timeouts; } get accessPolicyObjectIds() { return cdktf.Fn.tolist(this.getListAttribute('access_policy_object_ids')); } set accessPolicyObjectIds(value) { this._accessPolicyObjectIds = value; } resetAccessPolicyObjectIds() { this._accessPolicyObjectIds = undefined; } // Temporarily expose input value. Use with caution. get accessPolicyObjectIdsInput() { return this._accessPolicyObjectIds; } get configurationExportStorageAccountName() { return this.getStringAttribute('configuration_export_storage_account_name'); } set configurationExportStorageAccountName(value) { this._configurationExportStorageAccountName = value; } resetConfigurationExportStorageAccountName() { this._configurationExportStorageAccountName = undefined; } // Temporarily expose input value. Use with caution. get configurationExportStorageAccountNameInput() { return this._configurationExportStorageAccountName; } get containerRegistryLoginServerUrl() { return cdktf.Fn.tolist(this.getListAttribute('container_registry_login_server_url')); } set containerRegistryLoginServerUrl(value) { this._containerRegistryLoginServerUrl = value; } resetContainerRegistryLoginServerUrl() { this._containerRegistryLoginServerUrl = undefined; } // Temporarily expose input value. Use with caution. get containerRegistryLoginServerUrlInput() { return this._containerRegistryLoginServerUrl; } 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 kind() { return this.getStringAttribute('kind'); } set kind(value) { this._kind = value; } resetKind() { this._kind = undefined; } // Temporarily expose input value. Use with caution. get kindInput() { return this._kind; } get location() { return this.getStringAttribute('location'); } set location(value) { this._location = value; } // Temporarily expose input value. Use with caution. get locationInput() { return this._location; } get name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } // public_network_access_enabled - computed: true, optional: false, required: false get publicNetworkAccessEnabled() { return this.getBooleanAttribute('public_network_access_enabled'); } get resourceGroupName() { return this.getStringAttribute('resource_group_name'); } set resourceGroupName(value) { this._resourceGroupName = value; } // Temporarily expose input value. Use with caution. get resourceGroupNameInput() { return this._resourceGroupName; } 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 workspaceId() { return this.getStringAttribute('workspace_id'); } set workspaceId(value) { this._workspaceId = value; } // Temporarily expose input value. Use with caution. get workspaceIdInput() { return this._workspaceId; } get authentication() { return this._authentication; } putAuthentication(value) { this._authentication.internalValue = value; } // Temporarily expose input value. Use with caution. get authenticationInput() { return this._authentication.internalValue; } get cors() { return this._cors; } putCors(value) { this._cors.internalValue = value; } resetCors() { this._cors.internalValue = undefined; } // Temporarily expose input value. Use with caution. get corsInput() { return this._cors.internalValue; } get identity() { return this._identity; } putIdentity(value) { this._identity.internalValue = value; } resetIdentity() { this._identity.internalValue = undefined; } // Temporarily expose input value. Use with caution. get identityInput() { return this._identity.internalValue; } get ociArtifact() { return this._ociArtifact; } putOciArtifact(value) { this._ociArtifact.internalValue = value; } resetOciArtifact() { this._ociArtifact.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ociArtifactInput() { return this._ociArtifact.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 { access_policy_object_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(this._accessPolicyObjectIds), configuration_export_storage_account_name: cdktf.stringToTerraform(this._configurationExportStorageAccountName), container_registry_login_server_url: cdktf.listMapper(cdktf.stringToTerraform, false)(this._containerRegistryLoginServerUrl), id: cdktf.stringToTerraform(this._id), kind: cdktf.stringToTerraform(this._kind), location: cdktf.stringToTerraform(this._location), name: cdktf.stringToTerraform(this._name), resource_group_name: cdktf.stringToTerraform(this._resourceGroupName), tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags), workspace_id: cdktf.stringToTerraform(this._workspaceId), authentication: healthcareFhirServiceAuthenticationToTerraform(this._authentication.internalValue), cors: healthcareFhirServiceCorsToTerraform(this._cors.internalValue), identity: healthcareFhirServiceIdentityToTerraform(this._identity.internalValue), oci_artifact: cdktf.listMapper(healthcareFhirServiceOciArtifactToTerraform, true)(this._ociArtifact.internalValue), timeouts: healthcareFhirServiceTimeoutsToTerraform(this._timeouts.internalValue), }; } synthesizeHclAttributes() { const attrs = { access_policy_object_ids: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._accessPolicyObjectIds), isBlock: false, type: "set", storageClassType: "stringList", }, configuration_export_storage_account_name: { value: cdktf.stringToHclTerraform(this._configurationExportStorageAccountName), isBlock: false, type: "simple", storageClassType: "string", }, container_registry_login_server_url: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(this._containerRegistryLoginServerUrl), isBlock: false, type: "set", storageClassType: "stringList", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, kind: { value: cdktf.stringToHclTerraform(this._kind), isBlock: false, type: "simple", storageClassType: "string", }, location: { value: cdktf.stringToHclTerraform(this._location), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, resource_group_name: { value: cdktf.stringToHclTerraform(this._resourceGroupName), isBlock: false, type: "simple", storageClassType: "string", }, tags: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(this._tags), isBlock: false, type: "map", storageClassType: "stringMap", }, workspace_id: { value: cdktf.stringToHclTerraform(this._workspaceId), isBlock: false, type: "simple", storageClassType: "string", }, authentication: { value: healthcareFhirServiceAuthenticationToHclTerraform(this._authentication.internalValue), isBlock: true, type: "list", storageClassType: "HealthcareFhirServiceAuthenticationList", }, cors: { value: healthcareFhirServiceCorsToHclTerraform(this._cors.internalValue), isBlock: true, type: "list", storageClassType: "HealthcareFhirServiceCorsList", }, identity: { value: healthcareFhirServiceIdentityToHclTerraform(this._identity.internalValue), isBlock: true, type: "list", storageClassType: "HealthcareFhirServiceIdentityList", }, oci_artifact: { value: cdktf.listMapperHcl(healthcareFhirServiceOciArtifactToHclTerraform, true)(this._ociArtifact.internalValue), isBlock: true, type: "list", storageClassType: "HealthcareFhirServiceOciArtifactList", }, timeouts: { value: healthcareFhirServiceTimeoutsToHclTerraform(this._timeouts.internalValue), isBlock: true, type: "struct", storageClassType: "HealthcareFhirServiceTimeouts", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.HealthcareFhirService = HealthcareFhirService; _g = JSII_RTTI_SYMBOL_1; HealthcareFhirService[_g] = { fqn: "@cdktf/provider-azurerm.healthcareFhirService.HealthcareFhirService", version: "12.27.0" }; // ================= // STATIC PROPERTIES // ================= HealthcareFhirService.tfResourceType = "azurerm_healthcare_fhir_service"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGVhbHRoY2FyZS1maGlyLXNlcnZpY2UvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFTQSwrQkFBK0I7QUE4Ri9CLFNBQWdCLDhDQUE4QyxDQUFDLE1BQWlHO0lBQzlKLElBQUksQ0FBQyxLQUFLLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQyxJQUFJLEtBQUssQ0FBQyxZQUFZLENBQUMsWUFBWSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFBQyxPQUFPLE1BQU0sQ0FBQztJQUFDLENBQUM7SUFDNUYsSUFBSSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxNQUFNLElBQUksS0FBSyxDQUFDLG9IQUFvSCxDQUFDLENBQUM7SUFDeEksQ0FBQztJQUNELE9BQU87UUFDTCxRQUFRLEVBQUUsS0FBSyxDQUFDLGlCQUFpQixDQUFDLE1BQU8sQ0FBQyxRQUFRLENBQUM7UUFDbkQsU0FBUyxFQUFFLEtBQUssQ0FBQyxpQkFBaUIsQ0FB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