@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,000 lines (999 loc) • 1.39 MB
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, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LinuxWebAppSlotAuthSettingsV2LoginOutputReference = exports.linuxWebAppSlotAuthSettingsV2LoginToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2LoginToTerraform = exports.LinuxWebAppSlotAuthSettingsV2GoogleV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2GoogleV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2GoogleV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2GithubV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2GithubV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2GithubV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2FacebookV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2FacebookV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2FacebookV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2CustomOidcV2List = exports.LinuxWebAppSlotAuthSettingsV2CustomOidcV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2CustomOidcV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2CustomOidcV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2AzureStaticWebAppV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2AzureStaticWebAppV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2AzureStaticWebAppV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2AppleV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2AppleV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2AppleV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2ActiveDirectoryV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2ActiveDirectoryV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2ActiveDirectoryV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsOutputReference = exports.linuxWebAppSlotAuthSettingsToHclTerraform = exports.linuxWebAppSlotAuthSettingsToTerraform = exports.LinuxWebAppSlotAuthSettingsTwitterOutputReference = exports.linuxWebAppSlotAuthSettingsTwitterToHclTerraform = exports.linuxWebAppSlotAuthSettingsTwitterToTerraform = exports.LinuxWebAppSlotAuthSettingsMicrosoftOutputReference = exports.linuxWebAppSlotAuthSettingsMicrosoftToHclTerraform = exports.linuxWebAppSlotAuthSettingsMicrosoftToTerraform = exports.LinuxWebAppSlotAuthSettingsGoogleOutputReference = exports.linuxWebAppSlotAuthSettingsGoogleToHclTerraform = exports.linuxWebAppSlotAuthSettingsGoogleToTerraform = exports.LinuxWebAppSlotAuthSettingsGithubOutputReference = exports.linuxWebAppSlotAuthSettingsGithubToHclTerraform = exports.linuxWebAppSlotAuthSettingsGithubToTerraform = exports.LinuxWebAppSlotAuthSettingsFacebookOutputReference = exports.linuxWebAppSlotAuthSettingsFacebookToHclTerraform = exports.linuxWebAppSlotAuthSettingsFacebookToTerraform = exports.LinuxWebAppSlotAuthSettingsActiveDirectoryOutputReference = exports.linuxWebAppSlotAuthSettingsActiveDirectoryToHclTerraform = exports.linuxWebAppSlotAuthSettingsActiveDirectoryToTerraform = exports.LinuxWebAppSlotSiteCredentialList = exports.LinuxWebAppSlotSiteCredentialOutputReference = exports.linuxWebAppSlotSiteCredentialToHclTerraform = exports.linuxWebAppSlotSiteCredentialToTerraform = void 0;
exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestToTerraform = exports.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerRequestsOutputReference = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerRequestsToHclTerraform = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerRequestsToTerraform = exports.LinuxWebAppSlotSiteConfigAutoHealSettingActionOutputReference = exports.linuxWebAppSlotSiteConfigAutoHealSettingActionToHclTerraform = exports.linuxWebAppSlotSiteConfigAutoHealSettingActionToTerraform = exports.LinuxWebAppSlotSiteConfigApplicationStackOutputReference = exports.linuxWebAppSlotSiteConfigApplicationStackToHclTerraform = exports.linuxWebAppSlotSiteConfigApplicationStackToTerraform = exports.LinuxWebAppSlotLogsOutputReference = exports.linuxWebAppSlotLogsToHclTerraform = exports.linuxWebAppSlotLogsToTerraform = exports.LinuxWebAppSlotLogsHttpLogsOutputReference = exports.linuxWebAppSlotLogsHttpLogsToHclTerraform = exports.linuxWebAppSlotLogsHttpLogsToTerraform = exports.LinuxWebAppSlotLogsHttpLogsFileSystemOutputReference = exports.linuxWebAppSlotLogsHttpLogsFileSystemToHclTerraform = exports.linuxWebAppSlotLogsHttpLogsFileSystemToTerraform = exports.LinuxWebAppSlotLogsHttpLogsAzureBlobStorageOutputReference = exports.linuxWebAppSlotLogsHttpLogsAzureBlobStorageToHclTerraform = exports.linuxWebAppSlotLogsHttpLogsAzureBlobStorageToTerraform = exports.LinuxWebAppSlotLogsApplicationLogsOutputReference = exports.linuxWebAppSlotLogsApplicationLogsToHclTerraform = exports.linuxWebAppSlotLogsApplicationLogsToTerraform = exports.LinuxWebAppSlotLogsApplicationLogsAzureBlobStorageOutputReference = exports.linuxWebAppSlotLogsApplicationLogsAzureBlobStorageToHclTerraform = exports.linuxWebAppSlotLogsApplicationLogsAzureBlobStorageToTerraform = exports.LinuxWebAppSlotIdentityOutputReference = exports.linuxWebAppSlotIdentityToHclTerraform = exports.linuxWebAppSlotIdentityToTerraform = exports.LinuxWebAppSlotConnectionStringList = exports.LinuxWebAppSlotConnectionStringOutputReference = exports.linuxWebAppSlotConnectionStringToHclTerraform = exports.linuxWebAppSlotConnectionStringToTerraform = exports.LinuxWebAppSlotBackupOutputReference = exports.linuxWebAppSlotBackupToHclTerraform = exports.linuxWebAppSlotBackupToTerraform = exports.LinuxWebAppSlotBackupScheduleOutputReference = exports.linuxWebAppSlotBackupScheduleToHclTerraform = exports.linuxWebAppSlotBackupScheduleToTerraform = exports.LinuxWebAppSlotAuthSettingsV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2TwitterV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2TwitterV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2TwitterV2ToTerraform = exports.LinuxWebAppSlotAuthSettingsV2MicrosoftV2OutputReference = exports.linuxWebAppSlotAuthSettingsV2MicrosoftV2ToHclTerraform = exports.linuxWebAppSlotAuthSettingsV2MicrosoftV2ToTerraform = void 0;
exports.LinuxWebAppSlot = exports.LinuxWebAppSlotTimeoutsOutputReference = exports.linuxWebAppSlotTimeoutsToHclTerraform = exports.linuxWebAppSlotTimeoutsToTerraform = exports.LinuxWebAppSlotStorageAccountList = exports.LinuxWebAppSlotStorageAccountOutputReference = exports.linuxWebAppSlotStorageAccountToHclTerraform = exports.linuxWebAppSlotStorageAccountToTerraform = exports.LinuxWebAppSlotSiteConfigOutputReference = exports.linuxWebAppSlotSiteConfigToHclTerraform = exports.linuxWebAppSlotSiteConfigToTerraform = exports.LinuxWebAppSlotSiteConfigScmIpRestrictionList = exports.LinuxWebAppSlotSiteConfigScmIpRestrictionOutputReference = exports.linuxWebAppSlotSiteConfigScmIpRestrictionToHclTerraform = exports.linuxWebAppSlotSiteConfigScmIpRestrictionToTerraform = exports.LinuxWebAppSlotSiteConfigScmIpRestrictionHeadersList = exports.LinuxWebAppSlotSiteConfigScmIpRestrictionHeadersOutputReference = exports.linuxWebAppSlotSiteConfigScmIpRestrictionHeadersToHclTerraform = exports.linuxWebAppSlotSiteConfigScmIpRestrictionHeadersToTerraform = exports.LinuxWebAppSlotSiteConfigIpRestrictionList = exports.LinuxWebAppSlotSiteConfigIpRestrictionOutputReference = exports.linuxWebAppSlotSiteConfigIpRestrictionToHclTerraform = exports.linuxWebAppSlotSiteConfigIpRestrictionToTerraform = exports.LinuxWebAppSlotSiteConfigIpRestrictionHeadersList = exports.LinuxWebAppSlotSiteConfigIpRestrictionHeadersOutputReference = exports.linuxWebAppSlotSiteConfigIpRestrictionHeadersToHclTerraform = exports.linuxWebAppSlotSiteConfigIpRestrictionHeadersToTerraform = exports.LinuxWebAppSlotSiteConfigCorsOutputReference = exports.linuxWebAppSlotSiteConfigCorsToHclTerraform = exports.linuxWebAppSlotSiteConfigCorsToTerraform = exports.LinuxWebAppSlotSiteConfigAutoHealSettingOutputReference = exports.linuxWebAppSlotSiteConfigAutoHealSettingToHclTerraform = exports.linuxWebAppSlotSiteConfigAutoHealSettingToTerraform = exports.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerOutputReference = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerToHclTerraform = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerToTerraform = exports.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeList = exports.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeOutputReference = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeToHclTerraform = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerStatusCodeToTerraform = exports.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathList = exports.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathOutputReference = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathToHclTerraform = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestWithPathToTerraform = exports.LinuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestOutputReference = exports.linuxWebAppSlotSiteConfigAutoHealSettingTriggerSlowRequestToHclTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function linuxWebAppSlotSiteCredentialToTerraform(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 {};
}
exports.linuxWebAppSlotSiteCredentialToTerraform = linuxWebAppSlotSiteCredentialToTerraform;
function linuxWebAppSlotSiteCredentialToHclTerraform(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 = {};
return attrs;
}
exports.linuxWebAppSlotSiteCredentialToHclTerraform = linuxWebAppSlotSiteCredentialToHclTerraform;
class LinuxWebAppSlotSiteCredentialOutputReference 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() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// password - computed: true, optional: false, required: false
get password() {
return this.getStringAttribute('password');
}
}
exports.LinuxWebAppSlotSiteCredentialOutputReference = LinuxWebAppSlotSiteCredentialOutputReference;
_a = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotSiteCredentialOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotSiteCredentialOutputReference", version: "12.27.0" };
class LinuxWebAppSlotSiteCredentialList 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 LinuxWebAppSlotSiteCredentialOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LinuxWebAppSlotSiteCredentialList = LinuxWebAppSlotSiteCredentialList;
_b = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotSiteCredentialList[_b] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotSiteCredentialList", version: "12.27.0" };
function linuxWebAppSlotAuthSettingsActiveDirectoryToTerraform(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_audiences: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedAudiences),
client_id: cdktf.stringToTerraform(struct.clientId),
client_secret: cdktf.stringToTerraform(struct.clientSecret),
client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName),
};
}
exports.linuxWebAppSlotAuthSettingsActiveDirectoryToTerraform = linuxWebAppSlotAuthSettingsActiveDirectoryToTerraform;
function linuxWebAppSlotAuthSettingsActiveDirectoryToHclTerraform(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_audiences: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.allowedAudiences),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret: {
value: cdktf.stringToHclTerraform(struct.clientSecret),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret_setting_name: {
value: cdktf.stringToHclTerraform(struct.clientSecretSettingName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.linuxWebAppSlotAuthSettingsActiveDirectoryToHclTerraform = linuxWebAppSlotAuthSettingsActiveDirectoryToHclTerraform;
class LinuxWebAppSlotAuthSettingsActiveDirectoryOutputReference 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._allowedAudiences !== undefined) {
hasAnyValues = true;
internalValueResult.allowedAudiences = this._allowedAudiences;
}
if (this._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._clientSecret !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecret = this._clientSecret;
}
if (this._clientSecretSettingName !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecretSettingName = this._clientSecretSettingName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._allowedAudiences = undefined;
this._clientId = undefined;
this._clientSecret = undefined;
this._clientSecretSettingName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._allowedAudiences = value.allowedAudiences;
this._clientId = value.clientId;
this._clientSecret = value.clientSecret;
this._clientSecretSettingName = value.clientSecretSettingName;
}
}
get allowedAudiences() {
return this.getListAttribute('allowed_audiences');
}
set allowedAudiences(value) {
this._allowedAudiences = value;
}
resetAllowedAudiences() {
this._allowedAudiences = undefined;
}
// Temporarily expose input value. Use with caution.
get allowedAudiencesInput() {
return this._allowedAudiences;
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get clientSecret() {
return this.getStringAttribute('client_secret');
}
set clientSecret(value) {
this._clientSecret = value;
}
resetClientSecret() {
this._clientSecret = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretInput() {
return this._clientSecret;
}
get clientSecretSettingName() {
return this.getStringAttribute('client_secret_setting_name');
}
set clientSecretSettingName(value) {
this._clientSecretSettingName = value;
}
resetClientSecretSettingName() {
this._clientSecretSettingName = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretSettingNameInput() {
return this._clientSecretSettingName;
}
}
exports.LinuxWebAppSlotAuthSettingsActiveDirectoryOutputReference = LinuxWebAppSlotAuthSettingsActiveDirectoryOutputReference;
_c = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotAuthSettingsActiveDirectoryOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotAuthSettingsActiveDirectoryOutputReference", version: "12.27.0" };
function linuxWebAppSlotAuthSettingsFacebookToTerraform(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 {
app_id: cdktf.stringToTerraform(struct.appId),
app_secret: cdktf.stringToTerraform(struct.appSecret),
app_secret_setting_name: cdktf.stringToTerraform(struct.appSecretSettingName),
oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes),
};
}
exports.linuxWebAppSlotAuthSettingsFacebookToTerraform = linuxWebAppSlotAuthSettingsFacebookToTerraform;
function linuxWebAppSlotAuthSettingsFacebookToHclTerraform(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 = {
app_id: {
value: cdktf.stringToHclTerraform(struct.appId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
app_secret: {
value: cdktf.stringToHclTerraform(struct.appSecret),
isBlock: false,
type: "simple",
storageClassType: "string",
},
app_secret_setting_name: {
value: cdktf.stringToHclTerraform(struct.appSecretSettingName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
oauth_scopes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.linuxWebAppSlotAuthSettingsFacebookToHclTerraform = linuxWebAppSlotAuthSettingsFacebookToHclTerraform;
class LinuxWebAppSlotAuthSettingsFacebookOutputReference 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._appId !== undefined) {
hasAnyValues = true;
internalValueResult.appId = this._appId;
}
if (this._appSecret !== undefined) {
hasAnyValues = true;
internalValueResult.appSecret = this._appSecret;
}
if (this._appSecretSettingName !== undefined) {
hasAnyValues = true;
internalValueResult.appSecretSettingName = this._appSecretSettingName;
}
if (this._oauthScopes !== undefined) {
hasAnyValues = true;
internalValueResult.oauthScopes = this._oauthScopes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._appId = undefined;
this._appSecret = undefined;
this._appSecretSettingName = undefined;
this._oauthScopes = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._appId = value.appId;
this._appSecret = value.appSecret;
this._appSecretSettingName = value.appSecretSettingName;
this._oauthScopes = value.oauthScopes;
}
}
get appId() {
return this.getStringAttribute('app_id');
}
set appId(value) {
this._appId = value;
}
// Temporarily expose input value. Use with caution.
get appIdInput() {
return this._appId;
}
get appSecret() {
return this.getStringAttribute('app_secret');
}
set appSecret(value) {
this._appSecret = value;
}
resetAppSecret() {
this._appSecret = undefined;
}
// Temporarily expose input value. Use with caution.
get appSecretInput() {
return this._appSecret;
}
get appSecretSettingName() {
return this.getStringAttribute('app_secret_setting_name');
}
set appSecretSettingName(value) {
this._appSecretSettingName = value;
}
resetAppSecretSettingName() {
this._appSecretSettingName = undefined;
}
// Temporarily expose input value. Use with caution.
get appSecretSettingNameInput() {
return this._appSecretSettingName;
}
get oauthScopes() {
return this.getListAttribute('oauth_scopes');
}
set oauthScopes(value) {
this._oauthScopes = value;
}
resetOauthScopes() {
this._oauthScopes = undefined;
}
// Temporarily expose input value. Use with caution.
get oauthScopesInput() {
return this._oauthScopes;
}
}
exports.LinuxWebAppSlotAuthSettingsFacebookOutputReference = LinuxWebAppSlotAuthSettingsFacebookOutputReference;
_d = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotAuthSettingsFacebookOutputReference[_d] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotAuthSettingsFacebookOutputReference", version: "12.27.0" };
function linuxWebAppSlotAuthSettingsGithubToTerraform(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 {
client_id: cdktf.stringToTerraform(struct.clientId),
client_secret: cdktf.stringToTerraform(struct.clientSecret),
client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName),
oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes),
};
}
exports.linuxWebAppSlotAuthSettingsGithubToTerraform = linuxWebAppSlotAuthSettingsGithubToTerraform;
function linuxWebAppSlotAuthSettingsGithubToHclTerraform(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 = {
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret: {
value: cdktf.stringToHclTerraform(struct.clientSecret),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret_setting_name: {
value: cdktf.stringToHclTerraform(struct.clientSecretSettingName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
oauth_scopes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.linuxWebAppSlotAuthSettingsGithubToHclTerraform = linuxWebAppSlotAuthSettingsGithubToHclTerraform;
class LinuxWebAppSlotAuthSettingsGithubOutputReference 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._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._clientSecret !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecret = this._clientSecret;
}
if (this._clientSecretSettingName !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecretSettingName = this._clientSecretSettingName;
}
if (this._oauthScopes !== undefined) {
hasAnyValues = true;
internalValueResult.oauthScopes = this._oauthScopes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientId = undefined;
this._clientSecret = undefined;
this._clientSecretSettingName = undefined;
this._oauthScopes = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientId = value.clientId;
this._clientSecret = value.clientSecret;
this._clientSecretSettingName = value.clientSecretSettingName;
this._oauthScopes = value.oauthScopes;
}
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get clientSecret() {
return this.getStringAttribute('client_secret');
}
set clientSecret(value) {
this._clientSecret = value;
}
resetClientSecret() {
this._clientSecret = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretInput() {
return this._clientSecret;
}
get clientSecretSettingName() {
return this.getStringAttribute('client_secret_setting_name');
}
set clientSecretSettingName(value) {
this._clientSecretSettingName = value;
}
resetClientSecretSettingName() {
this._clientSecretSettingName = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretSettingNameInput() {
return this._clientSecretSettingName;
}
get oauthScopes() {
return this.getListAttribute('oauth_scopes');
}
set oauthScopes(value) {
this._oauthScopes = value;
}
resetOauthScopes() {
this._oauthScopes = undefined;
}
// Temporarily expose input value. Use with caution.
get oauthScopesInput() {
return this._oauthScopes;
}
}
exports.LinuxWebAppSlotAuthSettingsGithubOutputReference = LinuxWebAppSlotAuthSettingsGithubOutputReference;
_e = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotAuthSettingsGithubOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotAuthSettingsGithubOutputReference", version: "12.27.0" };
function linuxWebAppSlotAuthSettingsGoogleToTerraform(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 {
client_id: cdktf.stringToTerraform(struct.clientId),
client_secret: cdktf.stringToTerraform(struct.clientSecret),
client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName),
oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes),
};
}
exports.linuxWebAppSlotAuthSettingsGoogleToTerraform = linuxWebAppSlotAuthSettingsGoogleToTerraform;
function linuxWebAppSlotAuthSettingsGoogleToHclTerraform(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 = {
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret: {
value: cdktf.stringToHclTerraform(struct.clientSecret),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret_setting_name: {
value: cdktf.stringToHclTerraform(struct.clientSecretSettingName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
oauth_scopes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.linuxWebAppSlotAuthSettingsGoogleToHclTerraform = linuxWebAppSlotAuthSettingsGoogleToHclTerraform;
class LinuxWebAppSlotAuthSettingsGoogleOutputReference 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._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._clientSecret !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecret = this._clientSecret;
}
if (this._clientSecretSettingName !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecretSettingName = this._clientSecretSettingName;
}
if (this._oauthScopes !== undefined) {
hasAnyValues = true;
internalValueResult.oauthScopes = this._oauthScopes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientId = undefined;
this._clientSecret = undefined;
this._clientSecretSettingName = undefined;
this._oauthScopes = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientId = value.clientId;
this._clientSecret = value.clientSecret;
this._clientSecretSettingName = value.clientSecretSettingName;
this._oauthScopes = value.oauthScopes;
}
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get clientSecret() {
return this.getStringAttribute('client_secret');
}
set clientSecret(value) {
this._clientSecret = value;
}
resetClientSecret() {
this._clientSecret = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretInput() {
return this._clientSecret;
}
get clientSecretSettingName() {
return this.getStringAttribute('client_secret_setting_name');
}
set clientSecretSettingName(value) {
this._clientSecretSettingName = value;
}
resetClientSecretSettingName() {
this._clientSecretSettingName = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretSettingNameInput() {
return this._clientSecretSettingName;
}
get oauthScopes() {
return this.getListAttribute('oauth_scopes');
}
set oauthScopes(value) {
this._oauthScopes = value;
}
resetOauthScopes() {
this._oauthScopes = undefined;
}
// Temporarily expose input value. Use with caution.
get oauthScopesInput() {
return this._oauthScopes;
}
}
exports.LinuxWebAppSlotAuthSettingsGoogleOutputReference = LinuxWebAppSlotAuthSettingsGoogleOutputReference;
_f = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotAuthSettingsGoogleOutputReference[_f] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotAuthSettingsGoogleOutputReference", version: "12.27.0" };
function linuxWebAppSlotAuthSettingsMicrosoftToTerraform(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 {
client_id: cdktf.stringToTerraform(struct.clientId),
client_secret: cdktf.stringToTerraform(struct.clientSecret),
client_secret_setting_name: cdktf.stringToTerraform(struct.clientSecretSettingName),
oauth_scopes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.oauthScopes),
};
}
exports.linuxWebAppSlotAuthSettingsMicrosoftToTerraform = linuxWebAppSlotAuthSettingsMicrosoftToTerraform;
function linuxWebAppSlotAuthSettingsMicrosoftToHclTerraform(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 = {
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret: {
value: cdktf.stringToHclTerraform(struct.clientSecret),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret_setting_name: {
value: cdktf.stringToHclTerraform(struct.clientSecretSettingName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
oauth_scopes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.oauthScopes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.linuxWebAppSlotAuthSettingsMicrosoftToHclTerraform = linuxWebAppSlotAuthSettingsMicrosoftToHclTerraform;
class LinuxWebAppSlotAuthSettingsMicrosoftOutputReference 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._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._clientSecret !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecret = this._clientSecret;
}
if (this._clientSecretSettingName !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecretSettingName = this._clientSecretSettingName;
}
if (this._oauthScopes !== undefined) {
hasAnyValues = true;
internalValueResult.oauthScopes = this._oauthScopes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientId = undefined;
this._clientSecret = undefined;
this._clientSecretSettingName = undefined;
this._oauthScopes = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientId = value.clientId;
this._clientSecret = value.clientSecret;
this._clientSecretSettingName = value.clientSecretSettingName;
this._oauthScopes = value.oauthScopes;
}
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get clientSecret() {
return this.getStringAttribute('client_secret');
}
set clientSecret(value) {
this._clientSecret = value;
}
resetClientSecret() {
this._clientSecret = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretInput() {
return this._clientSecret;
}
get clientSecretSettingName() {
return this.getStringAttribute('client_secret_setting_name');
}
set clientSecretSettingName(value) {
this._clientSecretSettingName = value;
}
resetClientSecretSettingName() {
this._clientSecretSettingName = undefined;
}
// Temporarily expose input value. Use with caution.
get clientSecretSettingNameInput() {
return this._clientSecretSettingName;
}
get oauthScopes() {
return this.getListAttribute('oauth_scopes');
}
set oauthScopes(value) {
this._oauthScopes = value;
}
resetOauthScopes() {
this._oauthScopes = undefined;
}
// Temporarily expose input value. Use with caution.
get oauthScopesInput() {
return this._oauthScopes;
}
}
exports.LinuxWebAppSlotAuthSettingsMicrosoftOutputReference = LinuxWebAppSlotAuthSettingsMicrosoftOutputReference;
_g = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotAuthSettingsMicrosoftOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotAuthSettingsMicrosoftOutputReference", version: "12.27.0" };
function linuxWebAppSlotAuthSettingsTwitterToTerraform(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 {
consumer_key: cdktf.stringToTerraform(struct.consumerKey),
consumer_secret: cdktf.stringToTerraform(struct.consumerSecret),
consumer_secret_setting_name: cdktf.stringToTerraform(struct.consumerSecretSettingName),
};
}
exports.linuxWebAppSlotAuthSettingsTwitterToTerraform = linuxWebAppSlotAuthSettingsTwitterToTerraform;
function linuxWebAppSlotAuthSettingsTwitterToHclTerraform(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 = {
consumer_key: {
value: cdktf.stringToHclTerraform(struct.consumerKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
consumer_secret: {
value: cdktf.stringToHclTerraform(struct.consumerSecret),
isBlock: false,
type: "simple",
storageClassType: "string",
},
consumer_secret_setting_name: {
value: cdktf.stringToHclTerraform(struct.consumerSecretSettingName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.linuxWebAppSlotAuthSettingsTwitterToHclTerraform = linuxWebAppSlotAuthSettingsTwitterToHclTerraform;
class LinuxWebAppSlotAuthSettingsTwitterOutputReference 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._consumerKey !== undefined) {
hasAnyValues = true;
internalValueResult.consumerKey = this._consumerKey;
}
if (this._consumerSecret !== undefined) {
hasAnyValues = true;
internalValueResult.consumerSecret = this._consumerSecret;
}
if (this._consumerSecretSettingName !== undefined) {
hasAnyValues = true;
internalValueResult.consumerSecretSettingName = this._consumerSecretSettingName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._consumerKey = undefined;
this._consumerSecret = undefined;
this._consumerSecretSettingName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._consumerKey = value.consumerKey;
this._consumerSecret = value.consumerSecret;
this._consumerSecretSettingName = value.consumerSecretSettingName;
}
}
get consumerKey() {
return this.getStringAttribute('consumer_key');
}
set consumerKey(value) {
this._consumerKey = value;
}
// Temporarily expose input value. Use with caution.
get consumerKeyInput() {
return this._consumerKey;
}
get consumerSecret() {
return this.getStringAttribute('consumer_secret');
}
set consumerSecret(value) {
this._consumerSecret = value;
}
resetConsumerSecret() {
this._consumerSecret = undefined;
}
// Temporarily expose input value. Use with caution.
get consumerSecretInput() {
return this._consumerSecret;
}
get consumerSecretSettingName() {
return this.getStringAttribute('consumer_secret_setting_name');
}
set consumerSecretSettingName(value) {
this._consumerSecretSettingName = value;
}
resetConsumerSecretSettingName() {
this._consumerSecretSettingName = undefined;
}
// Temporarily expose input value. Use with caution.
get consumerSecretSettingNameInput() {
return this._consumerSecretSettingName;
}
}
exports.LinuxWebAppSlotAuthSettingsTwitterOutputReference = LinuxWebAppSlotAuthSettingsTwitterOutputReference;
_h = JSII_RTTI_SYMBOL_1;
LinuxWebAppSlotAuthSettingsTwitterOutputReference[_h] = { fqn: "@cdktf/provider-azurerm.linuxWebAppSlot.LinuxWebAppSlotAuthSettingsTwitterOutputReference", version: "12.27.0" };
function linuxWebAppSlotAuthSettingsToTerraform(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_login_parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.additionalLoginParameters),
allowed_external_redirect_urls: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.allowedExternalRedirectUrls),
default_provider: cdktf.stringToTerraform(struct.defaultProvider),
enabled: cdktf.booleanToTerraform(struct.enabled),
issuer: cdktf.stringToTerraform(struct.issuer),
runtime_version: cdktf.stringToTerraform(struct.runtimeVersion),
token_refresh_extension_hours: cdktf.numberToTerraform(struct.tokenRefreshExtensionHours),
token_store_enabled: cdktf.booleanToTerraform(struct.tokenStoreEnabled),
unauthenticated_client_action: cdktf.stringToTerraform(struct.unauthenticatedClientAction),
active_directory: linuxWebAppSlotAuthSettingsActiveDirectoryToTerraform(struct.activeDirectory),
facebook: linuxWebAppSlotAuthSettingsFacebookToTerraform(struct.facebook),
github: linuxWebAppSlotAuthSettingsGithubToTerraform(struct.github),
google: linuxWebAppSlotAuthSettingsGoogleToTerraform(struct.google),
microsoft: linuxWebAppSlotAuthSettingsMicrosoftToTerraform(struct.microsoft),
twitter: linuxWebAppSlotAuthSettingsTwitterToTerraform(struct.twitter),
};
}
exports.linuxWebAppSlotAuthSettingsToTerraform = linuxWebAppSlotAuthSettingsToTerraform;
function linuxWebAppSlotAuthSettingsToHclTerraform(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");