@cdktf/provider-azuread
Version:
Prebuilt azuread Provider for Terraform CDK (cdktf)
1,205 lines • 462 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Application = exports.ApplicationWebOutputReference = exports.ApplicationWebImplicitGrantOutputReference = exports.ApplicationTimeoutsOutputReference = exports.ApplicationSinglePageApplicationOutputReference = exports.ApplicationRequiredResourceAccessList = exports.ApplicationRequiredResourceAccessOutputReference = exports.ApplicationRequiredResourceAccessResourceAccessList = exports.ApplicationRequiredResourceAccessResourceAccessOutputReference = exports.ApplicationPublicClientOutputReference = exports.ApplicationPasswordOutputReference = exports.ApplicationOptionalClaimsOutputReference = exports.ApplicationOptionalClaimsSaml2TokenList = exports.ApplicationOptionalClaimsSaml2TokenOutputReference = exports.ApplicationOptionalClaimsIdTokenList = exports.ApplicationOptionalClaimsIdTokenOutputReference = exports.ApplicationOptionalClaimsAccessTokenList = exports.ApplicationOptionalClaimsAccessTokenOutputReference = exports.ApplicationFeatureTagsList = exports.ApplicationFeatureTagsOutputReference = exports.ApplicationAppRoleList = exports.ApplicationAppRoleOutputReference = exports.ApplicationApiOutputReference = exports.ApplicationApiOauth2PermissionScopeList = exports.ApplicationApiOauth2PermissionScopeOutputReference = void 0;
exports.applicationApiOauth2PermissionScopeToTerraform = applicationApiOauth2PermissionScopeToTerraform;
exports.applicationApiOauth2PermissionScopeToHclTerraform = applicationApiOauth2PermissionScopeToHclTerraform;
exports.applicationApiToTerraform = applicationApiToTerraform;
exports.applicationApiToHclTerraform = applicationApiToHclTerraform;
exports.applicationAppRoleToTerraform = applicationAppRoleToTerraform;
exports.applicationAppRoleToHclTerraform = applicationAppRoleToHclTerraform;
exports.applicationFeatureTagsToTerraform = applicationFeatureTagsToTerraform;
exports.applicationFeatureTagsToHclTerraform = applicationFeatureTagsToHclTerraform;
exports.applicationOptionalClaimsAccessTokenToTerraform = applicationOptionalClaimsAccessTokenToTerraform;
exports.applicationOptionalClaimsAccessTokenToHclTerraform = applicationOptionalClaimsAccessTokenToHclTerraform;
exports.applicationOptionalClaimsIdTokenToTerraform = applicationOptionalClaimsIdTokenToTerraform;
exports.applicationOptionalClaimsIdTokenToHclTerraform = applicationOptionalClaimsIdTokenToHclTerraform;
exports.applicationOptionalClaimsSaml2TokenToTerraform = applicationOptionalClaimsSaml2TokenToTerraform;
exports.applicationOptionalClaimsSaml2TokenToHclTerraform = applicationOptionalClaimsSaml2TokenToHclTerraform;
exports.applicationOptionalClaimsToTerraform = applicationOptionalClaimsToTerraform;
exports.applicationOptionalClaimsToHclTerraform = applicationOptionalClaimsToHclTerraform;
exports.applicationPasswordToTerraform = applicationPasswordToTerraform;
exports.applicationPasswordToHclTerraform = applicationPasswordToHclTerraform;
exports.applicationPublicClientToTerraform = applicationPublicClientToTerraform;
exports.applicationPublicClientToHclTerraform = applicationPublicClientToHclTerraform;
exports.applicationRequiredResourceAccessResourceAccessToTerraform = applicationRequiredResourceAccessResourceAccessToTerraform;
exports.applicationRequiredResourceAccessResourceAccessToHclTerraform = applicationRequiredResourceAccessResourceAccessToHclTerraform;
exports.applicationRequiredResourceAccessToTerraform = applicationRequiredResourceAccessToTerraform;
exports.applicationRequiredResourceAccessToHclTerraform = applicationRequiredResourceAccessToHclTerraform;
exports.applicationSinglePageApplicationToTerraform = applicationSinglePageApplicationToTerraform;
exports.applicationSinglePageApplicationToHclTerraform = applicationSinglePageApplicationToHclTerraform;
exports.applicationTimeoutsToTerraform = applicationTimeoutsToTerraform;
exports.applicationTimeoutsToHclTerraform = applicationTimeoutsToHclTerraform;
exports.applicationWebImplicitGrantToTerraform = applicationWebImplicitGrantToTerraform;
exports.applicationWebImplicitGrantToHclTerraform = applicationWebImplicitGrantToHclTerraform;
exports.applicationWebToTerraform = applicationWebToTerraform;
exports.applicationWebToHclTerraform = applicationWebToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function applicationApiOauth2PermissionScopeToTerraform(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 {
admin_consent_description: cdktf.stringToTerraform(struct.adminConsentDescription),
admin_consent_display_name: cdktf.stringToTerraform(struct.adminConsentDisplayName),
enabled: cdktf.booleanToTerraform(struct.enabled),
id: cdktf.stringToTerraform(struct.id),
type: cdktf.stringToTerraform(struct.type),
user_consent_description: cdktf.stringToTerraform(struct.userConsentDescription),
user_consent_display_name: cdktf.stringToTerraform(struct.userConsentDisplayName),
value: cdktf.stringToTerraform(struct.value),
};
}
function applicationApiOauth2PermissionScopeToHclTerraform(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 = {
admin_consent_description: {
value: cdktf.stringToHclTerraform(struct.adminConsentDescription),
isBlock: false,
type: "simple",
storageClassType: "string",
},
admin_consent_display_name: {
value: cdktf.stringToHclTerraform(struct.adminConsentDisplayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
user_consent_description: {
value: cdktf.stringToHclTerraform(struct.userConsentDescription),
isBlock: false,
type: "simple",
storageClassType: "string",
},
user_consent_display_name: {
value: cdktf.stringToHclTerraform(struct.userConsentDisplayName),
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));
}
class ApplicationApiOauth2PermissionScopeOutputReference 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._adminConsentDescription !== undefined) {
hasAnyValues = true;
internalValueResult.adminConsentDescription = this._adminConsentDescription;
}
if (this._adminConsentDisplayName !== undefined) {
hasAnyValues = true;
internalValueResult.adminConsentDisplayName = this._adminConsentDisplayName;
}
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._userConsentDescription !== undefined) {
hasAnyValues = true;
internalValueResult.userConsentDescription = this._userConsentDescription;
}
if (this._userConsentDisplayName !== undefined) {
hasAnyValues = true;
internalValueResult.userConsentDisplayName = this._userConsentDisplayName;
}
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._adminConsentDescription = undefined;
this._adminConsentDisplayName = undefined;
this._enabled = undefined;
this._id = undefined;
this._type = undefined;
this._userConsentDescription = undefined;
this._userConsentDisplayName = 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._adminConsentDescription = value.adminConsentDescription;
this._adminConsentDisplayName = value.adminConsentDisplayName;
this._enabled = value.enabled;
this._id = value.id;
this._type = value.type;
this._userConsentDescription = value.userConsentDescription;
this._userConsentDisplayName = value.userConsentDisplayName;
this._value = value.value;
}
}
get adminConsentDescription() {
return this.getStringAttribute('admin_consent_description');
}
set adminConsentDescription(value) {
this._adminConsentDescription = value;
}
resetAdminConsentDescription() {
this._adminConsentDescription = undefined;
}
// Temporarily expose input value. Use with caution.
get adminConsentDescriptionInput() {
return this._adminConsentDescription;
}
get adminConsentDisplayName() {
return this.getStringAttribute('admin_consent_display_name');
}
set adminConsentDisplayName(value) {
this._adminConsentDisplayName = value;
}
resetAdminConsentDisplayName() {
this._adminConsentDisplayName = undefined;
}
// Temporarily expose input value. Use with caution.
get adminConsentDisplayNameInput() {
return this._adminConsentDisplayName;
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
get userConsentDescription() {
return this.getStringAttribute('user_consent_description');
}
set userConsentDescription(value) {
this._userConsentDescription = value;
}
resetUserConsentDescription() {
this._userConsentDescription = undefined;
}
// Temporarily expose input value. Use with caution.
get userConsentDescriptionInput() {
return this._userConsentDescription;
}
get userConsentDisplayName() {
return this.getStringAttribute('user_consent_display_name');
}
set userConsentDisplayName(value) {
this._userConsentDisplayName = value;
}
resetUserConsentDisplayName() {
this._userConsentDisplayName = undefined;
}
// Temporarily expose input value. Use with caution.
get userConsentDisplayNameInput() {
return this._userConsentDisplayName;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
resetValue() {
this._value = undefined;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.ApplicationApiOauth2PermissionScopeOutputReference = ApplicationApiOauth2PermissionScopeOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ApplicationApiOauth2PermissionScopeOutputReference[_a] = { fqn: "@cdktf/provider-azuread.application.ApplicationApiOauth2PermissionScopeOutputReference", version: "14.3.1" };
class ApplicationApiOauth2PermissionScopeList 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 ApplicationApiOauth2PermissionScopeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApplicationApiOauth2PermissionScopeList = ApplicationApiOauth2PermissionScopeList;
_b = JSII_RTTI_SYMBOL_1;
ApplicationApiOauth2PermissionScopeList[_b] = { fqn: "@cdktf/provider-azuread.application.ApplicationApiOauth2PermissionScopeList", version: "14.3.1" };
function applicationApiToTerraform(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 {
known_client_applications: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.knownClientApplications),
mapped_claims_enabled: cdktf.booleanToTerraform(struct.mappedClaimsEnabled),
requested_access_token_version: cdktf.numberToTerraform(struct.requestedAccessTokenVersion),
oauth2_permission_scope: cdktf.listMapper(applicationApiOauth2PermissionScopeToTerraform, true)(struct.oauth2PermissionScope),
};
}
function applicationApiToHclTerraform(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 = {
known_client_applications: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.knownClientApplications),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
mapped_claims_enabled: {
value: cdktf.booleanToHclTerraform(struct.mappedClaimsEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
requested_access_token_version: {
value: cdktf.numberToHclTerraform(struct.requestedAccessTokenVersion),
isBlock: false,
type: "simple",
storageClassType: "number",
},
oauth2_permission_scope: {
value: cdktf.listMapperHcl(applicationApiOauth2PermissionScopeToHclTerraform, true)(struct.oauth2PermissionScope),
isBlock: true,
type: "set",
storageClassType: "ApplicationApiOauth2PermissionScopeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApplicationApiOutputReference 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;
// oauth2_permission_scope - computed: false, optional: true, required: false
this._oauth2PermissionScope = new ApplicationApiOauth2PermissionScopeList(this, "oauth2_permission_scope", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._knownClientApplications !== undefined) {
hasAnyValues = true;
internalValueResult.knownClientApplications = this._knownClientApplications;
}
if (this._mappedClaimsEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.mappedClaimsEnabled = this._mappedClaimsEnabled;
}
if (this._requestedAccessTokenVersion !== undefined) {
hasAnyValues = true;
internalValueResult.requestedAccessTokenVersion = this._requestedAccessTokenVersion;
}
if (this._oauth2PermissionScope?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.oauth2PermissionScope = this._oauth2PermissionScope?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._knownClientApplications = undefined;
this._mappedClaimsEnabled = undefined;
this._requestedAccessTokenVersion = undefined;
this._oauth2PermissionScope.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._knownClientApplications = value.knownClientApplications;
this._mappedClaimsEnabled = value.mappedClaimsEnabled;
this._requestedAccessTokenVersion = value.requestedAccessTokenVersion;
this._oauth2PermissionScope.internalValue = value.oauth2PermissionScope;
}
}
get knownClientApplications() {
return cdktf.Fn.tolist(this.getListAttribute('known_client_applications'));
}
set knownClientApplications(value) {
this._knownClientApplications = value;
}
resetKnownClientApplications() {
this._knownClientApplications = undefined;
}
// Temporarily expose input value. Use with caution.
get knownClientApplicationsInput() {
return this._knownClientApplications;
}
get mappedClaimsEnabled() {
return this.getBooleanAttribute('mapped_claims_enabled');
}
set mappedClaimsEnabled(value) {
this._mappedClaimsEnabled = value;
}
resetMappedClaimsEnabled() {
this._mappedClaimsEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get mappedClaimsEnabledInput() {
return this._mappedClaimsEnabled;
}
get requestedAccessTokenVersion() {
return this.getNumberAttribute('requested_access_token_version');
}
set requestedAccessTokenVersion(value) {
this._requestedAccessTokenVersion = value;
}
resetRequestedAccessTokenVersion() {
this._requestedAccessTokenVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get requestedAccessTokenVersionInput() {
return this._requestedAccessTokenVersion;
}
get oauth2PermissionScope() {
return this._oauth2PermissionScope;
}
putOauth2PermissionScope(value) {
this._oauth2PermissionScope.internalValue = value;
}
resetOauth2PermissionScope() {
this._oauth2PermissionScope.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get oauth2PermissionScopeInput() {
return this._oauth2PermissionScope.internalValue;
}
}
exports.ApplicationApiOutputReference = ApplicationApiOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ApplicationApiOutputReference[_c] = { fqn: "@cdktf/provider-azuread.application.ApplicationApiOutputReference", version: "14.3.1" };
function applicationAppRoleToTerraform(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_member_types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedMemberTypes),
description: cdktf.stringToTerraform(struct.description),
display_name: cdktf.stringToTerraform(struct.displayName),
enabled: cdktf.booleanToTerraform(struct.enabled),
id: cdktf.stringToTerraform(struct.id),
value: cdktf.stringToTerraform(struct.value),
};
}
function applicationAppRoleToHclTerraform(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_member_types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedMemberTypes),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
description: {
value: cdktf.stringToHclTerraform(struct.description),
isBlock: false,
type: "simple",
storageClassType: "string",
},
display_name: {
value: cdktf.stringToHclTerraform(struct.displayName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
enabled: {
value: cdktf.booleanToHclTerraform(struct.enabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
id: {
value: cdktf.stringToHclTerraform(struct.id),
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));
}
class ApplicationAppRoleOutputReference 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._allowedMemberTypes !== undefined) {
hasAnyValues = true;
internalValueResult.allowedMemberTypes = this._allowedMemberTypes;
}
if (this._description !== undefined) {
hasAnyValues = true;
internalValueResult.description = this._description;
}
if (this._displayName !== undefined) {
hasAnyValues = true;
internalValueResult.displayName = this._displayName;
}
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
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._allowedMemberTypes = undefined;
this._description = undefined;
this._displayName = undefined;
this._enabled = undefined;
this._id = 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._allowedMemberTypes = value.allowedMemberTypes;
this._description = value.description;
this._displayName = value.displayName;
this._enabled = value.enabled;
this._id = value.id;
this._value = value.value;
}
}
get allowedMemberTypes() {
return cdktf.Fn.tolist(this.getListAttribute('allowed_member_types'));
}
set allowedMemberTypes(value) {
this._allowedMemberTypes = value;
}
// Temporarily expose input value. Use with caution.
get allowedMemberTypesInput() {
return this._allowedMemberTypes;
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
get displayName() {
return this.getStringAttribute('display_name');
}
set displayName(value) {
this._displayName = value;
}
// Temporarily expose input value. Use with caution.
get displayNameInput() {
return this._displayName;
}
get enabled() {
return this.getBooleanAttribute('enabled');
}
set enabled(value) {
this._enabled = value;
}
resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
get enabledInput() {
return this._enabled;
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
resetValue() {
this._value = undefined;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.ApplicationAppRoleOutputReference = ApplicationAppRoleOutputReference;
_d = JSII_RTTI_SYMBOL_1;
ApplicationAppRoleOutputReference[_d] = { fqn: "@cdktf/provider-azuread.application.ApplicationAppRoleOutputReference", version: "14.3.1" };
class ApplicationAppRoleList 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 ApplicationAppRoleOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApplicationAppRoleList = ApplicationAppRoleList;
_e = JSII_RTTI_SYMBOL_1;
ApplicationAppRoleList[_e] = { fqn: "@cdktf/provider-azuread.application.ApplicationAppRoleList", version: "14.3.1" };
function applicationFeatureTagsToTerraform(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 {
custom_single_sign_on: cdktf.booleanToTerraform(struct.customSingleSignOn),
enterprise: cdktf.booleanToTerraform(struct.enterprise),
gallery: cdktf.booleanToTerraform(struct.gallery),
hide: cdktf.booleanToTerraform(struct.hide),
};
}
function applicationFeatureTagsToHclTerraform(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 = {
custom_single_sign_on: {
value: cdktf.booleanToHclTerraform(struct.customSingleSignOn),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
enterprise: {
value: cdktf.booleanToHclTerraform(struct.enterprise),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
gallery: {
value: cdktf.booleanToHclTerraform(struct.gallery),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
hide: {
value: cdktf.booleanToHclTerraform(struct.hide),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApplicationFeatureTagsOutputReference 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._customSingleSignOn !== undefined) {
hasAnyValues = true;
internalValueResult.customSingleSignOn = this._customSingleSignOn;
}
if (this._enterprise !== undefined) {
hasAnyValues = true;
internalValueResult.enterprise = this._enterprise;
}
if (this._gallery !== undefined) {
hasAnyValues = true;
internalValueResult.gallery = this._gallery;
}
if (this._hide !== undefined) {
hasAnyValues = true;
internalValueResult.hide = this._hide;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._customSingleSignOn = undefined;
this._enterprise = undefined;
this._gallery = undefined;
this._hide = 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._customSingleSignOn = value.customSingleSignOn;
this._enterprise = value.enterprise;
this._gallery = value.gallery;
this._hide = value.hide;
}
}
get customSingleSignOn() {
return this.getBooleanAttribute('custom_single_sign_on');
}
set customSingleSignOn(value) {
this._customSingleSignOn = value;
}
resetCustomSingleSignOn() {
this._customSingleSignOn = undefined;
}
// Temporarily expose input value. Use with caution.
get customSingleSignOnInput() {
return this._customSingleSignOn;
}
get enterprise() {
return this.getBooleanAttribute('enterprise');
}
set enterprise(value) {
this._enterprise = value;
}
resetEnterprise() {
this._enterprise = undefined;
}
// Temporarily expose input value. Use with caution.
get enterpriseInput() {
return this._enterprise;
}
get gallery() {
return this.getBooleanAttribute('gallery');
}
set gallery(value) {
this._gallery = value;
}
resetGallery() {
this._gallery = undefined;
}
// Temporarily expose input value. Use with caution.
get galleryInput() {
return this._gallery;
}
get hide() {
return this.getBooleanAttribute('hide');
}
set hide(value) {
this._hide = value;
}
resetHide() {
this._hide = undefined;
}
// Temporarily expose input value. Use with caution.
get hideInput() {
return this._hide;
}
}
exports.ApplicationFeatureTagsOutputReference = ApplicationFeatureTagsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ApplicationFeatureTagsOutputReference[_f] = { fqn: "@cdktf/provider-azuread.application.ApplicationFeatureTagsOutputReference", version: "14.3.1" };
class ApplicationFeatureTagsList 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 ApplicationFeatureTagsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApplicationFeatureTagsList = ApplicationFeatureTagsList;
_g = JSII_RTTI_SYMBOL_1;
ApplicationFeatureTagsList[_g] = { fqn: "@cdktf/provider-azuread.application.ApplicationFeatureTagsList", version: "14.3.1" };
function applicationOptionalClaimsAccessTokenToTerraform(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 {
additional_properties: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.additionalProperties),
essential: cdktf.booleanToTerraform(struct.essential),
name: cdktf.stringToTerraform(struct.name),
source: cdktf.stringToTerraform(struct.source),
};
}
function applicationOptionalClaimsAccessTokenToHclTerraform(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 = {
additional_properties: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.additionalProperties),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
essential: {
value: cdktf.booleanToHclTerraform(struct.essential),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source: {
value: cdktf.stringToHclTerraform(struct.source),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApplicationOptionalClaimsAccessTokenOutputReference 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._additionalProperties !== undefined) {
hasAnyValues = true;
internalValueResult.additionalProperties = this._additionalProperties;
}
if (this._essential !== undefined) {
hasAnyValues = true;
internalValueResult.essential = this._essential;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._source !== undefined) {
hasAnyValues = true;
internalValueResult.source = this._source;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._additionalProperties = undefined;
this._essential = undefined;
this._name = undefined;
this._source = 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._additionalProperties = value.additionalProperties;
this._essential = value.essential;
this._name = value.name;
this._source = value.source;
}
}
get additionalProperties() {
return this.getListAttribute('additional_properties');
}
set additionalProperties(value) {
this._additionalProperties = value;
}
resetAdditionalProperties() {
this._additionalProperties = undefined;
}
// Temporarily expose input value. Use with caution.
get additionalPropertiesInput() {
return this._additionalProperties;
}
get essential() {
return this.getBooleanAttribute('essential');
}
set essential(value) {
this._essential = value;
}
resetEssential() {
this._essential = undefined;
}
// Temporarily expose input value. Use with caution.
get essentialInput() {
return this._essential;
}
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 source() {
return this.getStringAttribute('source');
}
set source(value) {
this._source = value;
}
resetSource() {
this._source = undefined;
}
// Temporarily expose input value. Use with caution.
get sourceInput() {
return this._source;
}
}
exports.ApplicationOptionalClaimsAccessTokenOutputReference = ApplicationOptionalClaimsAccessTokenOutputReference;
_h = JSII_RTTI_SYMBOL_1;
ApplicationOptionalClaimsAccessTokenOutputReference[_h] = { fqn: "@cdktf/provider-azuread.application.ApplicationOptionalClaimsAccessTokenOutputReference", version: "14.3.1" };
class ApplicationOptionalClaimsAccessTokenList 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 ApplicationOptionalClaimsAccessTokenOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApplicationOptionalClaimsAccessTokenList = ApplicationOptionalClaimsAccessTokenList;
_j = JSII_RTTI_SYMBOL_1;
ApplicationOptionalClaimsAccessTokenList[_j] = { fqn: "@cdktf/provider-azuread.application.ApplicationOptionalClaimsAccessTokenList", version: "14.3.1" };
function applicationOptionalClaimsIdTokenToTerraform(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 {
additional_properties: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.additionalProperties),
essential: cdktf.booleanToTerraform(struct.essential),
name: cdktf.stringToTerraform(struct.name),
source: cdktf.stringToTerraform(struct.source),
};
}
function applicationOptionalClaimsIdTokenToHclTerraform(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 = {
additional_properties: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.additionalProperties),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
essential: {
value: cdktf.booleanToHclTerraform(struct.essential),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
source: {
value: cdktf.stringToHclTerraform(struct.source),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApplicationOptionalClaimsIdTokenOutputReference 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._additionalProperties !== undefined) {
hasAnyValues = true;
internalValueResult.additionalProperties = this._additionalProperties;
}
if (this._essential !== undefined) {
hasAnyValues = true;
internalValueResult.essential = this._essential;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._source !== undefined) {
hasAnyValues = true;
internalValueResult.source = this._source;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._additionalProperties = undefined;
this._essential = undefined;
this._name = undefined;
this._source = 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._additionalProperties = value.additionalProperties;
this._essential = value.essential;
this._name = value.name;
this._source = value.source;
}
}
get additionalProperties() {
return this.getListAttribute('additional_properties');
}
set additionalProperties(value) {
this._additionalProperties = value;
}
resetAdditionalProperties() {
this._additionalProperties = undefined;
}
// Temporarily expose input value. Use with caution.
get additionalPropertiesInput() {
return this._additionalProperties;
}
get essential() {
return this.getBooleanAttribute('essential');
}
set essential(value) {
this._essential = value;
}
resetEssential() {
this._essential = undefined;
}
// Temporarily expose input value. Use with caution.
get essentialInput() {
return this._essential;
}
get name() {
retu