@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,245 lines • 239 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SynapseWorkspace = exports.SynapseWorkspaceTimeoutsOutputReference = exports.synapseWorkspaceTimeoutsToHclTerraform = exports.synapseWorkspaceTimeoutsToTerraform = exports.SynapseWorkspaceIdentityOutputReference = exports.synapseWorkspaceIdentityToHclTerraform = exports.synapseWorkspaceIdentityToTerraform = exports.SynapseWorkspaceGithubRepoOutputReference = exports.synapseWorkspaceGithubRepoToHclTerraform = exports.synapseWorkspaceGithubRepoToTerraform = exports.SynapseWorkspaceCustomerManagedKeyOutputReference = exports.synapseWorkspaceCustomerManagedKeyToHclTerraform = exports.synapseWorkspaceCustomerManagedKeyToTerraform = exports.SynapseWorkspaceAzureDevopsRepoOutputReference = exports.synapseWorkspaceAzureDevopsRepoToHclTerraform = exports.synapseWorkspaceAzureDevopsRepoToTerraform = exports.SynapseWorkspaceSqlAadAdminList = exports.SynapseWorkspaceSqlAadAdminOutputReference = exports.synapseWorkspaceSqlAadAdminToHclTerraform = exports.synapseWorkspaceSqlAadAdminToTerraform = exports.SynapseWorkspaceAadAdminList = exports.SynapseWorkspaceAadAdminOutputReference = exports.synapseWorkspaceAadAdminToHclTerraform = exports.synapseWorkspaceAadAdminToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function synapseWorkspaceAadAdminToTerraform(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 {
login: struct.login === undefined ? null : cdktf.stringToTerraform(struct.login),
object_id: struct.objectId === undefined ? null : cdktf.stringToTerraform(struct.objectId),
tenant_id: struct.tenantId === undefined ? null : cdktf.stringToTerraform(struct.tenantId),
};
}
exports.synapseWorkspaceAadAdminToTerraform = synapseWorkspaceAadAdminToTerraform;
function synapseWorkspaceAadAdminToHclTerraform(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 = {
login: {
value: struct.login === undefined ? null : cdktf.stringToHclTerraform(struct.login),
isBlock: false,
type: "simple",
storageClassType: "string",
},
object_id: {
value: struct.objectId === undefined ? null : cdktf.stringToHclTerraform(struct.objectId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tenant_id: {
value: struct.tenantId === undefined ? null : cdktf.stringToHclTerraform(struct.tenantId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.synapseWorkspaceAadAdminToHclTerraform = synapseWorkspaceAadAdminToHclTerraform;
class SynapseWorkspaceAadAdminOutputReference 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._login !== undefined) {
hasAnyValues = true;
internalValueResult.login = this._login;
}
if (this._objectId !== undefined) {
hasAnyValues = true;
internalValueResult.objectId = this._objectId;
}
if (this._tenantId !== undefined) {
hasAnyValues = true;
internalValueResult.tenantId = this._tenantId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._login = undefined;
this._objectId = undefined;
this._tenantId = 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._login = value.login;
this._objectId = value.objectId;
this._tenantId = value.tenantId;
}
}
get login() {
return this.getStringAttribute('login');
}
set login(value) {
this._login = value;
}
resetLogin() {
this._login = undefined;
}
// Temporarily expose input value. Use with caution.
get loginInput() {
return this._login;
}
get objectId() {
return this.getStringAttribute('object_id');
}
set objectId(value) {
this._objectId = value;
}
resetObjectId() {
this._objectId = undefined;
}
// Temporarily expose input value. Use with caution.
get objectIdInput() {
return this._objectId;
}
get tenantId() {
return this.getStringAttribute('tenant_id');
}
set tenantId(value) {
this._tenantId = value;
}
resetTenantId() {
this._tenantId = undefined;
}
// Temporarily expose input value. Use with caution.
get tenantIdInput() {
return this._tenantId;
}
}
exports.SynapseWorkspaceAadAdminOutputReference = SynapseWorkspaceAadAdminOutputReference;
_a = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceAadAdminOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceAadAdminOutputReference", version: "12.27.0" };
class SynapseWorkspaceAadAdminList 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 SynapseWorkspaceAadAdminOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SynapseWorkspaceAadAdminList = SynapseWorkspaceAadAdminList;
_b = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceAadAdminList[_b] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceAadAdminList", version: "12.27.0" };
function synapseWorkspaceSqlAadAdminToTerraform(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 {
login: struct.login === undefined ? null : cdktf.stringToTerraform(struct.login),
object_id: struct.objectId === undefined ? null : cdktf.stringToTerraform(struct.objectId),
tenant_id: struct.tenantId === undefined ? null : cdktf.stringToTerraform(struct.tenantId),
};
}
exports.synapseWorkspaceSqlAadAdminToTerraform = synapseWorkspaceSqlAadAdminToTerraform;
function synapseWorkspaceSqlAadAdminToHclTerraform(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 = {
login: {
value: struct.login === undefined ? null : cdktf.stringToHclTerraform(struct.login),
isBlock: false,
type: "simple",
storageClassType: "string",
},
object_id: {
value: struct.objectId === undefined ? null : cdktf.stringToHclTerraform(struct.objectId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tenant_id: {
value: struct.tenantId === undefined ? null : cdktf.stringToHclTerraform(struct.tenantId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.synapseWorkspaceSqlAadAdminToHclTerraform = synapseWorkspaceSqlAadAdminToHclTerraform;
class SynapseWorkspaceSqlAadAdminOutputReference 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._login !== undefined) {
hasAnyValues = true;
internalValueResult.login = this._login;
}
if (this._objectId !== undefined) {
hasAnyValues = true;
internalValueResult.objectId = this._objectId;
}
if (this._tenantId !== undefined) {
hasAnyValues = true;
internalValueResult.tenantId = this._tenantId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._login = undefined;
this._objectId = undefined;
this._tenantId = 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._login = value.login;
this._objectId = value.objectId;
this._tenantId = value.tenantId;
}
}
get login() {
return this.getStringAttribute('login');
}
set login(value) {
this._login = value;
}
resetLogin() {
this._login = undefined;
}
// Temporarily expose input value. Use with caution.
get loginInput() {
return this._login;
}
get objectId() {
return this.getStringAttribute('object_id');
}
set objectId(value) {
this._objectId = value;
}
resetObjectId() {
this._objectId = undefined;
}
// Temporarily expose input value. Use with caution.
get objectIdInput() {
return this._objectId;
}
get tenantId() {
return this.getStringAttribute('tenant_id');
}
set tenantId(value) {
this._tenantId = value;
}
resetTenantId() {
this._tenantId = undefined;
}
// Temporarily expose input value. Use with caution.
get tenantIdInput() {
return this._tenantId;
}
}
exports.SynapseWorkspaceSqlAadAdminOutputReference = SynapseWorkspaceSqlAadAdminOutputReference;
_c = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceSqlAadAdminOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceSqlAadAdminOutputReference", version: "12.27.0" };
class SynapseWorkspaceSqlAadAdminList 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 SynapseWorkspaceSqlAadAdminOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SynapseWorkspaceSqlAadAdminList = SynapseWorkspaceSqlAadAdminList;
_d = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceSqlAadAdminList[_d] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceSqlAadAdminList", version: "12.27.0" };
function synapseWorkspaceAzureDevopsRepoToTerraform(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 {
account_name: cdktf.stringToTerraform(struct.accountName),
branch_name: cdktf.stringToTerraform(struct.branchName),
last_commit_id: cdktf.stringToTerraform(struct.lastCommitId),
project_name: cdktf.stringToTerraform(struct.projectName),
repository_name: cdktf.stringToTerraform(struct.repositoryName),
root_folder: cdktf.stringToTerraform(struct.rootFolder),
tenant_id: cdktf.stringToTerraform(struct.tenantId),
};
}
exports.synapseWorkspaceAzureDevopsRepoToTerraform = synapseWorkspaceAzureDevopsRepoToTerraform;
function synapseWorkspaceAzureDevopsRepoToHclTerraform(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 = {
account_name: {
value: cdktf.stringToHclTerraform(struct.accountName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
branch_name: {
value: cdktf.stringToHclTerraform(struct.branchName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
last_commit_id: {
value: cdktf.stringToHclTerraform(struct.lastCommitId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
project_name: {
value: cdktf.stringToHclTerraform(struct.projectName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
repository_name: {
value: cdktf.stringToHclTerraform(struct.repositoryName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
root_folder: {
value: cdktf.stringToHclTerraform(struct.rootFolder),
isBlock: false,
type: "simple",
storageClassType: "string",
},
tenant_id: {
value: cdktf.stringToHclTerraform(struct.tenantId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.synapseWorkspaceAzureDevopsRepoToHclTerraform = synapseWorkspaceAzureDevopsRepoToHclTerraform;
class SynapseWorkspaceAzureDevopsRepoOutputReference 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._accountName !== undefined) {
hasAnyValues = true;
internalValueResult.accountName = this._accountName;
}
if (this._branchName !== undefined) {
hasAnyValues = true;
internalValueResult.branchName = this._branchName;
}
if (this._lastCommitId !== undefined) {
hasAnyValues = true;
internalValueResult.lastCommitId = this._lastCommitId;
}
if (this._projectName !== undefined) {
hasAnyValues = true;
internalValueResult.projectName = this._projectName;
}
if (this._repositoryName !== undefined) {
hasAnyValues = true;
internalValueResult.repositoryName = this._repositoryName;
}
if (this._rootFolder !== undefined) {
hasAnyValues = true;
internalValueResult.rootFolder = this._rootFolder;
}
if (this._tenantId !== undefined) {
hasAnyValues = true;
internalValueResult.tenantId = this._tenantId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._accountName = undefined;
this._branchName = undefined;
this._lastCommitId = undefined;
this._projectName = undefined;
this._repositoryName = undefined;
this._rootFolder = undefined;
this._tenantId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._accountName = value.accountName;
this._branchName = value.branchName;
this._lastCommitId = value.lastCommitId;
this._projectName = value.projectName;
this._repositoryName = value.repositoryName;
this._rootFolder = value.rootFolder;
this._tenantId = value.tenantId;
}
}
get accountName() {
return this.getStringAttribute('account_name');
}
set accountName(value) {
this._accountName = value;
}
// Temporarily expose input value. Use with caution.
get accountNameInput() {
return this._accountName;
}
get branchName() {
return this.getStringAttribute('branch_name');
}
set branchName(value) {
this._branchName = value;
}
// Temporarily expose input value. Use with caution.
get branchNameInput() {
return this._branchName;
}
get lastCommitId() {
return this.getStringAttribute('last_commit_id');
}
set lastCommitId(value) {
this._lastCommitId = value;
}
resetLastCommitId() {
this._lastCommitId = undefined;
}
// Temporarily expose input value. Use with caution.
get lastCommitIdInput() {
return this._lastCommitId;
}
get projectName() {
return this.getStringAttribute('project_name');
}
set projectName(value) {
this._projectName = value;
}
// Temporarily expose input value. Use with caution.
get projectNameInput() {
return this._projectName;
}
get repositoryName() {
return this.getStringAttribute('repository_name');
}
set repositoryName(value) {
this._repositoryName = value;
}
// Temporarily expose input value. Use with caution.
get repositoryNameInput() {
return this._repositoryName;
}
get rootFolder() {
return this.getStringAttribute('root_folder');
}
set rootFolder(value) {
this._rootFolder = value;
}
// Temporarily expose input value. Use with caution.
get rootFolderInput() {
return this._rootFolder;
}
get tenantId() {
return this.getStringAttribute('tenant_id');
}
set tenantId(value) {
this._tenantId = value;
}
resetTenantId() {
this._tenantId = undefined;
}
// Temporarily expose input value. Use with caution.
get tenantIdInput() {
return this._tenantId;
}
}
exports.SynapseWorkspaceAzureDevopsRepoOutputReference = SynapseWorkspaceAzureDevopsRepoOutputReference;
_e = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceAzureDevopsRepoOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceAzureDevopsRepoOutputReference", version: "12.27.0" };
function synapseWorkspaceCustomerManagedKeyToTerraform(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 {
key_name: cdktf.stringToTerraform(struct.keyName),
key_versionless_id: cdktf.stringToTerraform(struct.keyVersionlessId),
user_assigned_identity_id: cdktf.stringToTerraform(struct.userAssignedIdentityId),
};
}
exports.synapseWorkspaceCustomerManagedKeyToTerraform = synapseWorkspaceCustomerManagedKeyToTerraform;
function synapseWorkspaceCustomerManagedKeyToHclTerraform(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 = {
key_name: {
value: cdktf.stringToHclTerraform(struct.keyName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_versionless_id: {
value: cdktf.stringToHclTerraform(struct.keyVersionlessId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
user_assigned_identity_id: {
value: cdktf.stringToHclTerraform(struct.userAssignedIdentityId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.synapseWorkspaceCustomerManagedKeyToHclTerraform = synapseWorkspaceCustomerManagedKeyToHclTerraform;
class SynapseWorkspaceCustomerManagedKeyOutputReference 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._keyName !== undefined) {
hasAnyValues = true;
internalValueResult.keyName = this._keyName;
}
if (this._keyVersionlessId !== undefined) {
hasAnyValues = true;
internalValueResult.keyVersionlessId = this._keyVersionlessId;
}
if (this._userAssignedIdentityId !== undefined) {
hasAnyValues = true;
internalValueResult.userAssignedIdentityId = this._userAssignedIdentityId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._keyName = undefined;
this._keyVersionlessId = undefined;
this._userAssignedIdentityId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._keyName = value.keyName;
this._keyVersionlessId = value.keyVersionlessId;
this._userAssignedIdentityId = value.userAssignedIdentityId;
}
}
get keyName() {
return this.getStringAttribute('key_name');
}
set keyName(value) {
this._keyName = value;
}
resetKeyName() {
this._keyName = undefined;
}
// Temporarily expose input value. Use with caution.
get keyNameInput() {
return this._keyName;
}
get keyVersionlessId() {
return this.getStringAttribute('key_versionless_id');
}
set keyVersionlessId(value) {
this._keyVersionlessId = value;
}
// Temporarily expose input value. Use with caution.
get keyVersionlessIdInput() {
return this._keyVersionlessId;
}
get userAssignedIdentityId() {
return this.getStringAttribute('user_assigned_identity_id');
}
set userAssignedIdentityId(value) {
this._userAssignedIdentityId = value;
}
resetUserAssignedIdentityId() {
this._userAssignedIdentityId = undefined;
}
// Temporarily expose input value. Use with caution.
get userAssignedIdentityIdInput() {
return this._userAssignedIdentityId;
}
}
exports.SynapseWorkspaceCustomerManagedKeyOutputReference = SynapseWorkspaceCustomerManagedKeyOutputReference;
_f = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceCustomerManagedKeyOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceCustomerManagedKeyOutputReference", version: "12.27.0" };
function synapseWorkspaceGithubRepoToTerraform(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 {
account_name: cdktf.stringToTerraform(struct.accountName),
branch_name: cdktf.stringToTerraform(struct.branchName),
git_url: cdktf.stringToTerraform(struct.gitUrl),
last_commit_id: cdktf.stringToTerraform(struct.lastCommitId),
repository_name: cdktf.stringToTerraform(struct.repositoryName),
root_folder: cdktf.stringToTerraform(struct.rootFolder),
};
}
exports.synapseWorkspaceGithubRepoToTerraform = synapseWorkspaceGithubRepoToTerraform;
function synapseWorkspaceGithubRepoToHclTerraform(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 = {
account_name: {
value: cdktf.stringToHclTerraform(struct.accountName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
branch_name: {
value: cdktf.stringToHclTerraform(struct.branchName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
git_url: {
value: cdktf.stringToHclTerraform(struct.gitUrl),
isBlock: false,
type: "simple",
storageClassType: "string",
},
last_commit_id: {
value: cdktf.stringToHclTerraform(struct.lastCommitId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
repository_name: {
value: cdktf.stringToHclTerraform(struct.repositoryName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
root_folder: {
value: cdktf.stringToHclTerraform(struct.rootFolder),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.synapseWorkspaceGithubRepoToHclTerraform = synapseWorkspaceGithubRepoToHclTerraform;
class SynapseWorkspaceGithubRepoOutputReference 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._accountName !== undefined) {
hasAnyValues = true;
internalValueResult.accountName = this._accountName;
}
if (this._branchName !== undefined) {
hasAnyValues = true;
internalValueResult.branchName = this._branchName;
}
if (this._gitUrl !== undefined) {
hasAnyValues = true;
internalValueResult.gitUrl = this._gitUrl;
}
if (this._lastCommitId !== undefined) {
hasAnyValues = true;
internalValueResult.lastCommitId = this._lastCommitId;
}
if (this._repositoryName !== undefined) {
hasAnyValues = true;
internalValueResult.repositoryName = this._repositoryName;
}
if (this._rootFolder !== undefined) {
hasAnyValues = true;
internalValueResult.rootFolder = this._rootFolder;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._accountName = undefined;
this._branchName = undefined;
this._gitUrl = undefined;
this._lastCommitId = undefined;
this._repositoryName = undefined;
this._rootFolder = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._accountName = value.accountName;
this._branchName = value.branchName;
this._gitUrl = value.gitUrl;
this._lastCommitId = value.lastCommitId;
this._repositoryName = value.repositoryName;
this._rootFolder = value.rootFolder;
}
}
get accountName() {
return this.getStringAttribute('account_name');
}
set accountName(value) {
this._accountName = value;
}
// Temporarily expose input value. Use with caution.
get accountNameInput() {
return this._accountName;
}
get branchName() {
return this.getStringAttribute('branch_name');
}
set branchName(value) {
this._branchName = value;
}
// Temporarily expose input value. Use with caution.
get branchNameInput() {
return this._branchName;
}
get gitUrl() {
return this.getStringAttribute('git_url');
}
set gitUrl(value) {
this._gitUrl = value;
}
resetGitUrl() {
this._gitUrl = undefined;
}
// Temporarily expose input value. Use with caution.
get gitUrlInput() {
return this._gitUrl;
}
get lastCommitId() {
return this.getStringAttribute('last_commit_id');
}
set lastCommitId(value) {
this._lastCommitId = value;
}
resetLastCommitId() {
this._lastCommitId = undefined;
}
// Temporarily expose input value. Use with caution.
get lastCommitIdInput() {
return this._lastCommitId;
}
get repositoryName() {
return this.getStringAttribute('repository_name');
}
set repositoryName(value) {
this._repositoryName = value;
}
// Temporarily expose input value. Use with caution.
get repositoryNameInput() {
return this._repositoryName;
}
get rootFolder() {
return this.getStringAttribute('root_folder');
}
set rootFolder(value) {
this._rootFolder = value;
}
// Temporarily expose input value. Use with caution.
get rootFolderInput() {
return this._rootFolder;
}
}
exports.SynapseWorkspaceGithubRepoOutputReference = SynapseWorkspaceGithubRepoOutputReference;
_g = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceGithubRepoOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceGithubRepoOutputReference", version: "12.27.0" };
function synapseWorkspaceIdentityToTerraform(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.synapseWorkspaceIdentityToTerraform = synapseWorkspaceIdentityToTerraform;
function synapseWorkspaceIdentityToHclTerraform(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.synapseWorkspaceIdentityToHclTerraform = synapseWorkspaceIdentityToHclTerraform;
class SynapseWorkspaceIdentityOutputReference 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.SynapseWorkspaceIdentityOutputReference = SynapseWorkspaceIdentityOutputReference;
_h = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceIdentityOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceIdentityOutputReference", version: "12.27.0" };
function synapseWorkspaceTimeoutsToTerraform(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.synapseWorkspaceTimeoutsToTerraform = synapseWorkspaceTimeoutsToTerraform;
function synapseWorkspaceTimeoutsToHclTerraform(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.synapseWorkspaceTimeoutsToHclTerraform = synapseWorkspaceTimeoutsToHclTerraform;
class SynapseWorkspaceTimeoutsOutputReference 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.SynapseWorkspaceTimeoutsOutputReference = SynapseWorkspaceTimeoutsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
SynapseWorkspaceTimeoutsOutputReference[_j] = { fqn: "@cdktf/provider-azurerm.synapseWorkspace.SynapseWorkspaceTimeoutsOutputReference", version: "12.27.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/synapse_workspace azurerm_synapse_workspace}
*/
class SynapseWorkspace extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a SynapseWorkspace 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 SynapseWorkspace to import
* @param importFromId The id of the existing SynapseWorkspace that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/synapse_workspace#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the SynapseWorkspace to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_synapse_workspace", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/synapse_workspace azurerm_synapse_workspace} 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 SynapseWorkspaceConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'azurerm_synapse_workspace',
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
});
// ==========
// ATTRIBUTES
// ==========
// aad_admin - computed: true, optional: true, required: false
this._aadAdmin = new SynapseWorkspaceAadAdminList(this, "aad_admin", false);
// connectivity_endpoints - computed: true, optional: false, required: false
this._connectivityEndpoints = new cdktf.StringMap(this, "connectivity_endpoints");
// sql_aad_admin - computed: true, optional: true, required: false
this._sqlAadAdmin = new SynapseWorkspaceSqlAadAdminList(this, "sql_aad_admin", false);
// azure_devops_repo - computed: false, optional: true, required: false
this._azureDevopsRepo = new SynapseWorkspaceAzureDevopsRepoOutputReference(this, "azure_devops_repo");
// customer_managed_key - computed: false, optional: true, required: false
this._customerManagedKey = new SynapseWorkspaceCustomerManagedKeyOutputReference(this, "customer_managed_key");
// github_repo - computed: false, optional: true, required: false
this._githubRepo = new SynapseWorkspaceGithubRepoOutputReference(this, "github_repo");
// identity - computed: false, optional: true, required: false
this._identity = new SynapseWorkspaceIdentityOutputReference(this, "identity");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new SynapseWorkspaceTimeoutsOutputReference(this, "timeouts");
this._aadAdmin.internalValue = config.aadAdmin;
this._azureadAuthenticationOnly = config.azureadAuthenticationOnly;
this._computeSubnetId = config.computeSubnetId;
this._dataExfiltrationProtectionEnabled = config.dataExfiltrationProtectionEnabled;
this._id = config.id;
this._linkingAllowedForAadTenantIds = config.linkingAllowedForAadTenantIds;
this._location = config.location;
this._managedResourceGroupName = config.managedResourceGroupName;
this._managedVirtualNetworkEnabled = config.managedVirtualNetworkEnabled;
this._name = config.name;
this._publicNetworkAccessEnabled = config.publicNetworkAccessEnabled;
this._purviewId = config.purviewId;
this._resourceGroupName = config.resourceGroupName;
this._sqlAadAdmin.internalValue = config.sqlAadAdmin;
this._sqlAdministratorLogin = config.sqlAdministratorLogin;
this._sqlAdministratorLoginPassword = config.sqlAdministratorLoginPassword;
this._sqlIdentityControlEnabled = config.sqlIdentityControlEnabled;
this._storageDataLakeGen2FilesystemId = config.storageDataLakeGen2FilesystemId;
this._tags = config.tags;
this._azureDevopsRepo.internalValue = config.azureDevopsRepo;
this._customerManagedKey.internalValue = config.customerManagedKey;
this._githubRepo.internalValue = config.githubRepo;
this._identity.internalValue = config.identity;
this._timeouts.internalValue = config.timeouts;
}
get aadAdmin() {
return this._aadAdmin;
}
putAadAdmin(value) {
this._aadAdmin.internalValue = value;
}
resetAadAdmin() {
this._aadAdmin.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get aadAdminInput() {
return this._aadAdmin.internalValue;
}
get azureadAuthenticationOnly() {
return this.getBooleanAttribute('azuread_authentication_only');
}
set azureadAuthenticationOnly(value) {
this._azureadAuthenticationOnly = value;
}
resetAzureadAuthenticationOnly() {
this._azureadAuthenticationOnly = undefined;
}
// Temporarily expose input value. Use with caution.
g