@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,218 lines • 165 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataFactory = exports.DataFactoryVstsConfigurationOutputReference = exports.dataFactoryVstsConfigurationToHclTerraform = exports.dataFactoryVstsConfigurationToTerraform = exports.DataFactoryTimeoutsOutputReference = exports.dataFactoryTimeoutsToHclTerraform = exports.dataFactoryTimeoutsToTerraform = exports.DataFactoryIdentityOutputReference = exports.dataFactoryIdentityToHclTerraform = exports.dataFactoryIdentityToTerraform = exports.DataFactoryGlobalParameterList = exports.DataFactoryGlobalParameterOutputReference = exports.dataFactoryGlobalParameterToHclTerraform = exports.dataFactoryGlobalParameterToTerraform = exports.DataFactoryGithubConfigurationOutputReference = exports.dataFactoryGithubConfigurationToHclTerraform = exports.dataFactoryGithubConfigurationToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataFactoryGithubConfigurationToTerraform(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),
publishing_enabled: cdktf.booleanToTerraform(struct.publishingEnabled),
repository_name: cdktf.stringToTerraform(struct.repositoryName),
root_folder: cdktf.stringToTerraform(struct.rootFolder),
};
}
exports.dataFactoryGithubConfigurationToTerraform = dataFactoryGithubConfigurationToTerraform;
function dataFactoryGithubConfigurationToHclTerraform(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",
},
publishing_enabled: {
value: cdktf.booleanToHclTerraform(struct.publishingEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
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.dataFactoryGithubConfigurationToHclTerraform = dataFactoryGithubConfigurationToHclTerraform;
class DataFactoryGithubConfigurationOutputReference 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._publishingEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.publishingEnabled = this._publishingEnabled;
}
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._publishingEnabled = 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._publishingEnabled = value.publishingEnabled;
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 publishingEnabled() {
return this.getBooleanAttribute('publishing_enabled');
}
set publishingEnabled(value) {
this._publishingEnabled = value;
}
resetPublishingEnabled() {
this._publishingEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get publishingEnabledInput() {
return this._publishingEnabled;
}
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.DataFactoryGithubConfigurationOutputReference = DataFactoryGithubConfigurationOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataFactoryGithubConfigurationOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.dataFactory.DataFactoryGithubConfigurationOutputReference", version: "12.27.0" };
function dataFactoryGlobalParameterToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
type: cdktf.stringToTerraform(struct.type),
value: cdktf.stringToTerraform(struct.value),
};
}
exports.dataFactoryGlobalParameterToTerraform = dataFactoryGlobalParameterToTerraform;
function dataFactoryGlobalParameterToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.dataFactoryGlobalParameterToHclTerraform = dataFactoryGlobalParameterToHclTerraform;
class DataFactoryGlobalParameterOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._type = undefined;
this._value = 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._name = value.name;
this._type = value.type;
this._value = value.value;
}
}
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 type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.DataFactoryGlobalParameterOutputReference = DataFactoryGlobalParameterOutputReference;
_b = JSII_RTTI_SYMBOL_1;
DataFactoryGlobalParameterOutputReference[_b] = { fqn: "@cdktf/provider-azurerm.dataFactory.DataFactoryGlobalParameterOutputReference", version: "12.27.0" };
class DataFactoryGlobalParameterList 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 DataFactoryGlobalParameterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataFactoryGlobalParameterList = DataFactoryGlobalParameterList;
_c = JSII_RTTI_SYMBOL_1;
DataFactoryGlobalParameterList[_c] = { fqn: "@cdktf/provider-azurerm.dataFactory.DataFactoryGlobalParameterList", version: "12.27.0" };
function dataFactoryIdentityToTerraform(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.dataFactoryIdentityToTerraform = dataFactoryIdentityToTerraform;
function dataFactoryIdentityToHclTerraform(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.dataFactoryIdentityToHclTerraform = dataFactoryIdentityToHclTerraform;
class DataFactoryIdentityOutputReference 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.DataFactoryIdentityOutputReference = DataFactoryIdentityOutputReference;
_d = JSII_RTTI_SYMBOL_1;
DataFactoryIdentityOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.dataFactory.DataFactoryIdentityOutputReference", version: "12.27.0" };
function dataFactoryTimeoutsToTerraform(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.dataFactoryTimeoutsToTerraform = dataFactoryTimeoutsToTerraform;
function dataFactoryTimeoutsToHclTerraform(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.dataFactoryTimeoutsToHclTerraform = dataFactoryTimeoutsToHclTerraform;
class DataFactoryTimeoutsOutputReference 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.DataFactoryTimeoutsOutputReference = DataFactoryTimeoutsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataFactoryTimeoutsOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.dataFactory.DataFactoryTimeoutsOutputReference", version: "12.27.0" };
function dataFactoryVstsConfigurationToTerraform(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),
project_name: cdktf.stringToTerraform(struct.projectName),
publishing_enabled: cdktf.booleanToTerraform(struct.publishingEnabled),
repository_name: cdktf.stringToTerraform(struct.repositoryName),
root_folder: cdktf.stringToTerraform(struct.rootFolder),
tenant_id: cdktf.stringToTerraform(struct.tenantId),
};
}
exports.dataFactoryVstsConfigurationToTerraform = dataFactoryVstsConfigurationToTerraform;
function dataFactoryVstsConfigurationToHclTerraform(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",
},
project_name: {
value: cdktf.stringToHclTerraform(struct.projectName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
publishing_enabled: {
value: cdktf.booleanToHclTerraform(struct.publishingEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
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.dataFactoryVstsConfigurationToHclTerraform = dataFactoryVstsConfigurationToHclTerraform;
class DataFactoryVstsConfigurationOutputReference 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._projectName !== undefined) {
hasAnyValues = true;
internalValueResult.projectName = this._projectName;
}
if (this._publishingEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.publishingEnabled = this._publishingEnabled;
}
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._projectName = undefined;
this._publishingEnabled = 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._projectName = value.projectName;
this._publishingEnabled = value.publishingEnabled;
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 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 publishingEnabled() {
return this.getBooleanAttribute('publishing_enabled');
}
set publishingEnabled(value) {
this._publishingEnabled = value;
}
resetPublishingEnabled() {
this._publishingEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get publishingEnabledInput() {
return this._publishingEnabled;
}
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;
}
// Temporarily expose input value. Use with caution.
get tenantIdInput() {
return this._tenantId;
}
}
exports.DataFactoryVstsConfigurationOutputReference = DataFactoryVstsConfigurationOutputReference;
_f = JSII_RTTI_SYMBOL_1;
DataFactoryVstsConfigurationOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.dataFactory.DataFactoryVstsConfigurationOutputReference", version: "12.27.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/data_factory azurerm_data_factory}
*/
class DataFactory extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a DataFactory 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 DataFactory to import
* @param importFromId The id of the existing DataFactory that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/data_factory#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the DataFactory to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "azurerm_data_factory", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/hashicorp/azurerm/3.116.0/docs/resources/data_factory azurerm_data_factory} 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 DataFactoryConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'azurerm_data_factory',
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
});
// github_configuration - computed: false, optional: true, required: false
this._githubConfiguration = new DataFactoryGithubConfigurationOutputReference(this, "github_configuration");
// global_parameter - computed: false, optional: true, required: false
this._globalParameter = new DataFactoryGlobalParameterList(this, "global_parameter", true);
// identity - computed: false, optional: true, required: false
this._identity = new DataFactoryIdentityOutputReference(this, "identity");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new DataFactoryTimeoutsOutputReference(this, "timeouts");
// vsts_configuration - computed: false, optional: true, required: false
this._vstsConfiguration = new DataFactoryVstsConfigurationOutputReference(this, "vsts_configuration");
this._customerManagedKeyId = config.customerManagedKeyId;
this._customerManagedKeyIdentityId = config.customerManagedKeyIdentityId;
this._id = config.id;
this._location = config.location;
this._managedVirtualNetworkEnabled = config.managedVirtualNetworkEnabled;
this._name = config.name;
this._publicNetworkEnabled = config.publicNetworkEnabled;
this._purviewId = config.purviewId;
this._resourceGroupName = config.resourceGroupName;
this._tags = config.tags;
this._githubConfiguration.internalValue = config.githubConfiguration;
this._globalParameter.internalValue = config.globalParameter;
this._identity.internalValue = config.identity;
this._timeouts.internalValue = config.timeouts;
this._vstsConfiguration.internalValue = config.vstsConfiguration;
}
get customerManagedKeyId() {
return this.getStringAttribute('customer_managed_key_id');
}
set customerManagedKeyId(value) {
this._customerManagedKeyId = value;
}
resetCustomerManagedKeyId() {
this._customerManagedKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get customerManagedKeyIdInput() {
return this._customerManagedKeyId;
}
get customerManagedKeyIdentityId() {
return this.getStringAttribute('customer_managed_key_identity_id');
}
set customerManagedKeyIdentityId(value) {
this._customerManagedKeyIdentityId = value;
}
resetCustomerManagedKeyIdentityId() {
this._customerManagedKeyIdentityId = undefined;
}
// Temporarily expose input value. Use with caution.
get customerManagedKeyIdentityIdInput() {
return this._customerManagedKeyIdentityId;
}
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 location() {
return this.getStringAttribute('location');
}
set location(value) {
this._location = value;
}
// Temporarily expose input value. Use with caution.
get locationInput() {
return this._location;
}
get managedVirtualNetworkEnabled() {
return this.getBooleanAttribute('managed_virtual_network_enabled');
}
set managedVirtualNetworkEnabled(value) {
this._managedVirtualNetworkEnabled = value;
}
resetManagedVirtualNetworkEnabled() {
this._managedVirtualNetworkEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get managedVirtualNetworkEnabledInput() {
return this._managedVirtualNetworkEnabled;
}
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 publicNetworkEnabled() {
return this.getBooleanAttribute('public_network_enabled');
}
set publicNetworkEnabled(value) {
this._publicNetworkEnabled = value;
}
resetPublicNetworkEnabled() {
this._publicNetworkEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get publicNetworkEnabledInput() {
return this._publicNetworkEnabled;
}
get purviewId() {
return this.getStringAttribute('purview_id');
}
set purviewId(value) {
this._purviewId = value;
}
resetPurviewId() {
this._purviewId = undefined;
}
// Temporarily expose input value. Use with caution.
get purviewIdInput() {
return this._purviewId;
}
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 githubConfiguration() {
return this._githubConfiguration;
}
putGithubConfiguration(value) {
this._githubConfiguration.internalValue = value;
}
resetGithubConfiguration() {
this._githubConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get githubConfigurationInput() {
return this._githubConfiguration.internalValue;
}
get globalParameter() {
return this._globalParameter;
}
putGlobalParameter(value) {
this._globalParameter.internalValue = value;
}
resetGlobalParameter() {
this._globalParameter.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get globalParameterInput() {
return this._globalParameter.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 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 vstsConfiguration() {
return this._vstsConfiguration;
}
putVstsConfiguration(value) {
this._vstsConfiguration.internalValue = value;
}
resetVstsConfiguration() {
this._vstsConfiguration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get vstsConfigurationInput() {
return this._vstsConfiguration.internalValue;
}
// =========
// SYNTHESIS
// =========
synthesizeAttributes() {
return {
customer_managed_key_id: cdktf.stringToTerraform(this._customerManagedKeyId),
customer_managed_key_identity_id: cdktf.stringToTerraform(this._customerManagedKeyIdentityId),
id: cdktf.stringToTerraform(this._id),
location: cdktf.stringToTerraform(this._location),
managed_virtual_network_enabled: cdktf.booleanToTerraform(this._managedVirtualNetworkEnabled),
name: cdktf.stringToTerraform(this._name),
public_network_enabled: cdktf.booleanToTerraform(this._publicNetworkEnabled),
purview_id: cdktf.stringToTerraform(this._purviewId),
resource_group_name: cdktf.stringToTerraform(this._resourceGroupName),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
github_configuration: dataFactoryGithubConfigurationToTerraform(this._githubConfiguration.internalValue),
global_parameter: cdktf.listMapper(dataFactoryGlobalParameterToTerraform, true)(this._globalParameter.internalValue),
identity: dataFactoryIdentityToTerraform(this._identity.internalValue),
timeouts: dataFactoryTimeoutsToTerraform(this._timeouts.internalValue),
vsts_configuration: dataFactoryVstsConfigurationToTerraform(this._vstsConfiguration.internalValue),
};
}
synthesizeHclAttributes() {
const attrs = {
customer_managed_key_id: {
value: cdktf.stringToHclTerraform(this._customerManagedKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
customer_managed_key_identity_id: {
value: cdktf.stringToHclTerraform(this._customerManagedKeyIdentityId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
id: {
value: cdktf.stringToHclTerraform(this._id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
location: {
value: cdktf.stringToHclTerraform(this._location),
isBlock: false,
type: "simple",
storageClassType: "string",
},
managed_virtual_network_enabled: {
value: cdktf.booleanToHclTerraform(this._managedVirtualNetworkEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
name: {
value: cdktf.stringToHclTerraform(this._name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
public_network_enabled: {
value: cdktf.booleanToHclTerraform(this._publicNetworkEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
purview_id: {
value: cdktf.stringToHclTerraform(this._purviewId),
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",
},
github_configuration: {
value: dataFactoryGithubConfigurationToHclTerraform(this._githubConfiguration.internalValue),
isBlock: true,
type: "list",
storageClassType: "DataFactoryGithubConfigurationList",
},
global_parameter: {
value: cdktf.listMapperHcl(dataFactoryGlobalParameterToHclTerraform, true)(this._globalParameter.internalValue),
isBlock: true,
type: "set",
storageClassType: "DataFactoryGlobalParameterList",
},
identity: {
value: dataFactoryIdentityToHclTerraform(this._identity.internalValue),
isBlock: true,
type: "list",
storageClassType: "DataFactoryIdentityList",
},
timeouts: {
value: dataFactoryTimeoutsToHclTerraform(this._timeouts.internalValue),
isBlock: true,
type: "struct",
storageClassType: "DataFactoryTimeouts",
},
vsts_configuration: {
value: dataFactoryVstsConfigurationToHclTerraform(this._vstsConfiguration.internalValue),
isBlock: true,
type: "list",
storageClassType: "DataFactoryVstsConfigurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
}
exports.DataFactory = DataFactory;
_g = JSII_RTTI_SYMBOL_1;
DataFactory[_g] = { fqn: "@cdktf/provider-azurerm.dataFactory.DataFactory", version: "12.27.0" };
// =================
// STATIC PROPERTIES
// =================
DataFactory.tfResourceType = "azurerm_data_factory";
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS1mYWN0b3J5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBU0EsK0JBQStCO0FBMEcvQixTQUFnQix5Q0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