@cdktf/provider-azurerm
Version:
Prebuilt azurerm Provider for Terraform CDK (cdktf)
1,171 lines (1,170 loc) • 244 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiManagementCustomDomain = exports.ApiManagementCustomDomainTimeoutsOutputReference = exports.apiManagementCustomDomainTimeoutsToHclTerraform = exports.apiManagementCustomDomainTimeoutsToTerraform = exports.ApiManagementCustomDomainScmList = exports.ApiManagementCustomDomainScmOutputReference = exports.apiManagementCustomDomainScmToHclTerraform = exports.apiManagementCustomDomainScmToTerraform = exports.ApiManagementCustomDomainPortalList = exports.ApiManagementCustomDomainPortalOutputReference = exports.apiManagementCustomDomainPortalToHclTerraform = exports.apiManagementCustomDomainPortalToTerraform = exports.ApiManagementCustomDomainManagementList = exports.ApiManagementCustomDomainManagementOutputReference = exports.apiManagementCustomDomainManagementToHclTerraform = exports.apiManagementCustomDomainManagementToTerraform = exports.ApiManagementCustomDomainGatewayList = exports.ApiManagementCustomDomainGatewayOutputReference = exports.apiManagementCustomDomainGatewayToHclTerraform = exports.apiManagementCustomDomainGatewayToTerraform = exports.ApiManagementCustomDomainDeveloperPortalList = exports.ApiManagementCustomDomainDeveloperPortalOutputReference = exports.apiManagementCustomDomainDeveloperPortalToHclTerraform = exports.apiManagementCustomDomainDeveloperPortalToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function apiManagementCustomDomainDeveloperPortalToTerraform(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 {
certificate: cdktf.stringToTerraform(struct.certificate),
certificate_password: cdktf.stringToTerraform(struct.certificatePassword),
host_name: cdktf.stringToTerraform(struct.hostName),
key_vault_id: cdktf.stringToTerraform(struct.keyVaultId),
negotiate_client_certificate: cdktf.booleanToTerraform(struct.negotiateClientCertificate),
ssl_keyvault_identity_client_id: cdktf.stringToTerraform(struct.sslKeyvaultIdentityClientId),
};
}
exports.apiManagementCustomDomainDeveloperPortalToTerraform = apiManagementCustomDomainDeveloperPortalToTerraform;
function apiManagementCustomDomainDeveloperPortalToHclTerraform(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 = {
certificate: {
value: cdktf.stringToHclTerraform(struct.certificate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
certificate_password: {
value: cdktf.stringToHclTerraform(struct.certificatePassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
host_name: {
value: cdktf.stringToHclTerraform(struct.hostName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_vault_id: {
value: cdktf.stringToHclTerraform(struct.keyVaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
negotiate_client_certificate: {
value: cdktf.booleanToHclTerraform(struct.negotiateClientCertificate),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ssl_keyvault_identity_client_id: {
value: cdktf.stringToHclTerraform(struct.sslKeyvaultIdentityClientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.apiManagementCustomDomainDeveloperPortalToHclTerraform = apiManagementCustomDomainDeveloperPortalToHclTerraform;
class ApiManagementCustomDomainDeveloperPortalOutputReference 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._certificate !== undefined) {
hasAnyValues = true;
internalValueResult.certificate = this._certificate;
}
if (this._certificatePassword !== undefined) {
hasAnyValues = true;
internalValueResult.certificatePassword = this._certificatePassword;
}
if (this._hostName !== undefined) {
hasAnyValues = true;
internalValueResult.hostName = this._hostName;
}
if (this._keyVaultId !== undefined) {
hasAnyValues = true;
internalValueResult.keyVaultId = this._keyVaultId;
}
if (this._negotiateClientCertificate !== undefined) {
hasAnyValues = true;
internalValueResult.negotiateClientCertificate = this._negotiateClientCertificate;
}
if (this._sslKeyvaultIdentityClientId !== undefined) {
hasAnyValues = true;
internalValueResult.sslKeyvaultIdentityClientId = this._sslKeyvaultIdentityClientId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._certificate = undefined;
this._certificatePassword = undefined;
this._hostName = undefined;
this._keyVaultId = undefined;
this._negotiateClientCertificate = undefined;
this._sslKeyvaultIdentityClientId = 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._certificate = value.certificate;
this._certificatePassword = value.certificatePassword;
this._hostName = value.hostName;
this._keyVaultId = value.keyVaultId;
this._negotiateClientCertificate = value.negotiateClientCertificate;
this._sslKeyvaultIdentityClientId = value.sslKeyvaultIdentityClientId;
}
}
get certificate() {
return this.getStringAttribute('certificate');
}
set certificate(value) {
this._certificate = value;
}
resetCertificate() {
this._certificate = undefined;
}
// Temporarily expose input value. Use with caution.
get certificateInput() {
return this._certificate;
}
get certificatePassword() {
return this.getStringAttribute('certificate_password');
}
set certificatePassword(value) {
this._certificatePassword = value;
}
resetCertificatePassword() {
this._certificatePassword = undefined;
}
// Temporarily expose input value. Use with caution.
get certificatePasswordInput() {
return this._certificatePassword;
}
// certificate_source - computed: true, optional: false, required: false
get certificateSource() {
return this.getStringAttribute('certificate_source');
}
// certificate_status - computed: true, optional: false, required: false
get certificateStatus() {
return this.getStringAttribute('certificate_status');
}
// expiry - computed: true, optional: false, required: false
get expiry() {
return this.getStringAttribute('expiry');
}
get hostName() {
return this.getStringAttribute('host_name');
}
set hostName(value) {
this._hostName = value;
}
// Temporarily expose input value. Use with caution.
get hostNameInput() {
return this._hostName;
}
get keyVaultId() {
return this.getStringAttribute('key_vault_id');
}
set keyVaultId(value) {
this._keyVaultId = value;
}
resetKeyVaultId() {
this._keyVaultId = undefined;
}
// Temporarily expose input value. Use with caution.
get keyVaultIdInput() {
return this._keyVaultId;
}
get negotiateClientCertificate() {
return this.getBooleanAttribute('negotiate_client_certificate');
}
set negotiateClientCertificate(value) {
this._negotiateClientCertificate = value;
}
resetNegotiateClientCertificate() {
this._negotiateClientCertificate = undefined;
}
// Temporarily expose input value. Use with caution.
get negotiateClientCertificateInput() {
return this._negotiateClientCertificate;
}
get sslKeyvaultIdentityClientId() {
return this.getStringAttribute('ssl_keyvault_identity_client_id');
}
set sslKeyvaultIdentityClientId(value) {
this._sslKeyvaultIdentityClientId = value;
}
resetSslKeyvaultIdentityClientId() {
this._sslKeyvaultIdentityClientId = undefined;
}
// Temporarily expose input value. Use with caution.
get sslKeyvaultIdentityClientIdInput() {
return this._sslKeyvaultIdentityClientId;
}
// subject - computed: true, optional: false, required: false
get subject() {
return this.getStringAttribute('subject');
}
// thumbprint - computed: true, optional: false, required: false
get thumbprint() {
return this.getStringAttribute('thumbprint');
}
}
exports.ApiManagementCustomDomainDeveloperPortalOutputReference = ApiManagementCustomDomainDeveloperPortalOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainDeveloperPortalOutputReference[_a] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainDeveloperPortalOutputReference", version: "12.27.0" };
class ApiManagementCustomDomainDeveloperPortalList 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 ApiManagementCustomDomainDeveloperPortalOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApiManagementCustomDomainDeveloperPortalList = ApiManagementCustomDomainDeveloperPortalList;
_b = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainDeveloperPortalList[_b] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainDeveloperPortalList", version: "12.27.0" };
function apiManagementCustomDomainGatewayToTerraform(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 {
certificate: cdktf.stringToTerraform(struct.certificate),
certificate_password: cdktf.stringToTerraform(struct.certificatePassword),
default_ssl_binding: cdktf.booleanToTerraform(struct.defaultSslBinding),
host_name: cdktf.stringToTerraform(struct.hostName),
key_vault_id: cdktf.stringToTerraform(struct.keyVaultId),
negotiate_client_certificate: cdktf.booleanToTerraform(struct.negotiateClientCertificate),
ssl_keyvault_identity_client_id: cdktf.stringToTerraform(struct.sslKeyvaultIdentityClientId),
};
}
exports.apiManagementCustomDomainGatewayToTerraform = apiManagementCustomDomainGatewayToTerraform;
function apiManagementCustomDomainGatewayToHclTerraform(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 = {
certificate: {
value: cdktf.stringToHclTerraform(struct.certificate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
certificate_password: {
value: cdktf.stringToHclTerraform(struct.certificatePassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
default_ssl_binding: {
value: cdktf.booleanToHclTerraform(struct.defaultSslBinding),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
host_name: {
value: cdktf.stringToHclTerraform(struct.hostName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_vault_id: {
value: cdktf.stringToHclTerraform(struct.keyVaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
negotiate_client_certificate: {
value: cdktf.booleanToHclTerraform(struct.negotiateClientCertificate),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ssl_keyvault_identity_client_id: {
value: cdktf.stringToHclTerraform(struct.sslKeyvaultIdentityClientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.apiManagementCustomDomainGatewayToHclTerraform = apiManagementCustomDomainGatewayToHclTerraform;
class ApiManagementCustomDomainGatewayOutputReference 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._certificate !== undefined) {
hasAnyValues = true;
internalValueResult.certificate = this._certificate;
}
if (this._certificatePassword !== undefined) {
hasAnyValues = true;
internalValueResult.certificatePassword = this._certificatePassword;
}
if (this._defaultSslBinding !== undefined) {
hasAnyValues = true;
internalValueResult.defaultSslBinding = this._defaultSslBinding;
}
if (this._hostName !== undefined) {
hasAnyValues = true;
internalValueResult.hostName = this._hostName;
}
if (this._keyVaultId !== undefined) {
hasAnyValues = true;
internalValueResult.keyVaultId = this._keyVaultId;
}
if (this._negotiateClientCertificate !== undefined) {
hasAnyValues = true;
internalValueResult.negotiateClientCertificate = this._negotiateClientCertificate;
}
if (this._sslKeyvaultIdentityClientId !== undefined) {
hasAnyValues = true;
internalValueResult.sslKeyvaultIdentityClientId = this._sslKeyvaultIdentityClientId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._certificate = undefined;
this._certificatePassword = undefined;
this._defaultSslBinding = undefined;
this._hostName = undefined;
this._keyVaultId = undefined;
this._negotiateClientCertificate = undefined;
this._sslKeyvaultIdentityClientId = 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._certificate = value.certificate;
this._certificatePassword = value.certificatePassword;
this._defaultSslBinding = value.defaultSslBinding;
this._hostName = value.hostName;
this._keyVaultId = value.keyVaultId;
this._negotiateClientCertificate = value.negotiateClientCertificate;
this._sslKeyvaultIdentityClientId = value.sslKeyvaultIdentityClientId;
}
}
get certificate() {
return this.getStringAttribute('certificate');
}
set certificate(value) {
this._certificate = value;
}
resetCertificate() {
this._certificate = undefined;
}
// Temporarily expose input value. Use with caution.
get certificateInput() {
return this._certificate;
}
get certificatePassword() {
return this.getStringAttribute('certificate_password');
}
set certificatePassword(value) {
this._certificatePassword = value;
}
resetCertificatePassword() {
this._certificatePassword = undefined;
}
// Temporarily expose input value. Use with caution.
get certificatePasswordInput() {
return this._certificatePassword;
}
// certificate_source - computed: true, optional: false, required: false
get certificateSource() {
return this.getStringAttribute('certificate_source');
}
// certificate_status - computed: true, optional: false, required: false
get certificateStatus() {
return this.getStringAttribute('certificate_status');
}
get defaultSslBinding() {
return this.getBooleanAttribute('default_ssl_binding');
}
set defaultSslBinding(value) {
this._defaultSslBinding = value;
}
resetDefaultSslBinding() {
this._defaultSslBinding = undefined;
}
// Temporarily expose input value. Use with caution.
get defaultSslBindingInput() {
return this._defaultSslBinding;
}
// expiry - computed: true, optional: false, required: false
get expiry() {
return this.getStringAttribute('expiry');
}
get hostName() {
return this.getStringAttribute('host_name');
}
set hostName(value) {
this._hostName = value;
}
// Temporarily expose input value. Use with caution.
get hostNameInput() {
return this._hostName;
}
get keyVaultId() {
return this.getStringAttribute('key_vault_id');
}
set keyVaultId(value) {
this._keyVaultId = value;
}
resetKeyVaultId() {
this._keyVaultId = undefined;
}
// Temporarily expose input value. Use with caution.
get keyVaultIdInput() {
return this._keyVaultId;
}
get negotiateClientCertificate() {
return this.getBooleanAttribute('negotiate_client_certificate');
}
set negotiateClientCertificate(value) {
this._negotiateClientCertificate = value;
}
resetNegotiateClientCertificate() {
this._negotiateClientCertificate = undefined;
}
// Temporarily expose input value. Use with caution.
get negotiateClientCertificateInput() {
return this._negotiateClientCertificate;
}
get sslKeyvaultIdentityClientId() {
return this.getStringAttribute('ssl_keyvault_identity_client_id');
}
set sslKeyvaultIdentityClientId(value) {
this._sslKeyvaultIdentityClientId = value;
}
resetSslKeyvaultIdentityClientId() {
this._sslKeyvaultIdentityClientId = undefined;
}
// Temporarily expose input value. Use with caution.
get sslKeyvaultIdentityClientIdInput() {
return this._sslKeyvaultIdentityClientId;
}
// subject - computed: true, optional: false, required: false
get subject() {
return this.getStringAttribute('subject');
}
// thumbprint - computed: true, optional: false, required: false
get thumbprint() {
return this.getStringAttribute('thumbprint');
}
}
exports.ApiManagementCustomDomainGatewayOutputReference = ApiManagementCustomDomainGatewayOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainGatewayOutputReference[_c] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainGatewayOutputReference", version: "12.27.0" };
class ApiManagementCustomDomainGatewayList 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 ApiManagementCustomDomainGatewayOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApiManagementCustomDomainGatewayList = ApiManagementCustomDomainGatewayList;
_d = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainGatewayList[_d] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainGatewayList", version: "12.27.0" };
function apiManagementCustomDomainManagementToTerraform(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 {
certificate: cdktf.stringToTerraform(struct.certificate),
certificate_password: cdktf.stringToTerraform(struct.certificatePassword),
host_name: cdktf.stringToTerraform(struct.hostName),
key_vault_id: cdktf.stringToTerraform(struct.keyVaultId),
negotiate_client_certificate: cdktf.booleanToTerraform(struct.negotiateClientCertificate),
ssl_keyvault_identity_client_id: cdktf.stringToTerraform(struct.sslKeyvaultIdentityClientId),
};
}
exports.apiManagementCustomDomainManagementToTerraform = apiManagementCustomDomainManagementToTerraform;
function apiManagementCustomDomainManagementToHclTerraform(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 = {
certificate: {
value: cdktf.stringToHclTerraform(struct.certificate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
certificate_password: {
value: cdktf.stringToHclTerraform(struct.certificatePassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
host_name: {
value: cdktf.stringToHclTerraform(struct.hostName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_vault_id: {
value: cdktf.stringToHclTerraform(struct.keyVaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
negotiate_client_certificate: {
value: cdktf.booleanToHclTerraform(struct.negotiateClientCertificate),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ssl_keyvault_identity_client_id: {
value: cdktf.stringToHclTerraform(struct.sslKeyvaultIdentityClientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.apiManagementCustomDomainManagementToHclTerraform = apiManagementCustomDomainManagementToHclTerraform;
class ApiManagementCustomDomainManagementOutputReference 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._certificate !== undefined) {
hasAnyValues = true;
internalValueResult.certificate = this._certificate;
}
if (this._certificatePassword !== undefined) {
hasAnyValues = true;
internalValueResult.certificatePassword = this._certificatePassword;
}
if (this._hostName !== undefined) {
hasAnyValues = true;
internalValueResult.hostName = this._hostName;
}
if (this._keyVaultId !== undefined) {
hasAnyValues = true;
internalValueResult.keyVaultId = this._keyVaultId;
}
if (this._negotiateClientCertificate !== undefined) {
hasAnyValues = true;
internalValueResult.negotiateClientCertificate = this._negotiateClientCertificate;
}
if (this._sslKeyvaultIdentityClientId !== undefined) {
hasAnyValues = true;
internalValueResult.sslKeyvaultIdentityClientId = this._sslKeyvaultIdentityClientId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._certificate = undefined;
this._certificatePassword = undefined;
this._hostName = undefined;
this._keyVaultId = undefined;
this._negotiateClientCertificate = undefined;
this._sslKeyvaultIdentityClientId = 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._certificate = value.certificate;
this._certificatePassword = value.certificatePassword;
this._hostName = value.hostName;
this._keyVaultId = value.keyVaultId;
this._negotiateClientCertificate = value.negotiateClientCertificate;
this._sslKeyvaultIdentityClientId = value.sslKeyvaultIdentityClientId;
}
}
get certificate() {
return this.getStringAttribute('certificate');
}
set certificate(value) {
this._certificate = value;
}
resetCertificate() {
this._certificate = undefined;
}
// Temporarily expose input value. Use with caution.
get certificateInput() {
return this._certificate;
}
get certificatePassword() {
return this.getStringAttribute('certificate_password');
}
set certificatePassword(value) {
this._certificatePassword = value;
}
resetCertificatePassword() {
this._certificatePassword = undefined;
}
// Temporarily expose input value. Use with caution.
get certificatePasswordInput() {
return this._certificatePassword;
}
// certificate_source - computed: true, optional: false, required: false
get certificateSource() {
return this.getStringAttribute('certificate_source');
}
// certificate_status - computed: true, optional: false, required: false
get certificateStatus() {
return this.getStringAttribute('certificate_status');
}
// expiry - computed: true, optional: false, required: false
get expiry() {
return this.getStringAttribute('expiry');
}
get hostName() {
return this.getStringAttribute('host_name');
}
set hostName(value) {
this._hostName = value;
}
// Temporarily expose input value. Use with caution.
get hostNameInput() {
return this._hostName;
}
get keyVaultId() {
return this.getStringAttribute('key_vault_id');
}
set keyVaultId(value) {
this._keyVaultId = value;
}
resetKeyVaultId() {
this._keyVaultId = undefined;
}
// Temporarily expose input value. Use with caution.
get keyVaultIdInput() {
return this._keyVaultId;
}
get negotiateClientCertificate() {
return this.getBooleanAttribute('negotiate_client_certificate');
}
set negotiateClientCertificate(value) {
this._negotiateClientCertificate = value;
}
resetNegotiateClientCertificate() {
this._negotiateClientCertificate = undefined;
}
// Temporarily expose input value. Use with caution.
get negotiateClientCertificateInput() {
return this._negotiateClientCertificate;
}
get sslKeyvaultIdentityClientId() {
return this.getStringAttribute('ssl_keyvault_identity_client_id');
}
set sslKeyvaultIdentityClientId(value) {
this._sslKeyvaultIdentityClientId = value;
}
resetSslKeyvaultIdentityClientId() {
this._sslKeyvaultIdentityClientId = undefined;
}
// Temporarily expose input value. Use with caution.
get sslKeyvaultIdentityClientIdInput() {
return this._sslKeyvaultIdentityClientId;
}
// subject - computed: true, optional: false, required: false
get subject() {
return this.getStringAttribute('subject');
}
// thumbprint - computed: true, optional: false, required: false
get thumbprint() {
return this.getStringAttribute('thumbprint');
}
}
exports.ApiManagementCustomDomainManagementOutputReference = ApiManagementCustomDomainManagementOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainManagementOutputReference[_e] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainManagementOutputReference", version: "12.27.0" };
class ApiManagementCustomDomainManagementList 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 ApiManagementCustomDomainManagementOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApiManagementCustomDomainManagementList = ApiManagementCustomDomainManagementList;
_f = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainManagementList[_f] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainManagementList", version: "12.27.0" };
function apiManagementCustomDomainPortalToTerraform(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 {
certificate: cdktf.stringToTerraform(struct.certificate),
certificate_password: cdktf.stringToTerraform(struct.certificatePassword),
host_name: cdktf.stringToTerraform(struct.hostName),
key_vault_id: cdktf.stringToTerraform(struct.keyVaultId),
negotiate_client_certificate: cdktf.booleanToTerraform(struct.negotiateClientCertificate),
ssl_keyvault_identity_client_id: cdktf.stringToTerraform(struct.sslKeyvaultIdentityClientId),
};
}
exports.apiManagementCustomDomainPortalToTerraform = apiManagementCustomDomainPortalToTerraform;
function apiManagementCustomDomainPortalToHclTerraform(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 = {
certificate: {
value: cdktf.stringToHclTerraform(struct.certificate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
certificate_password: {
value: cdktf.stringToHclTerraform(struct.certificatePassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
host_name: {
value: cdktf.stringToHclTerraform(struct.hostName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_vault_id: {
value: cdktf.stringToHclTerraform(struct.keyVaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
negotiate_client_certificate: {
value: cdktf.booleanToHclTerraform(struct.negotiateClientCertificate),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ssl_keyvault_identity_client_id: {
value: cdktf.stringToHclTerraform(struct.sslKeyvaultIdentityClientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.apiManagementCustomDomainPortalToHclTerraform = apiManagementCustomDomainPortalToHclTerraform;
class ApiManagementCustomDomainPortalOutputReference 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._certificate !== undefined) {
hasAnyValues = true;
internalValueResult.certificate = this._certificate;
}
if (this._certificatePassword !== undefined) {
hasAnyValues = true;
internalValueResult.certificatePassword = this._certificatePassword;
}
if (this._hostName !== undefined) {
hasAnyValues = true;
internalValueResult.hostName = this._hostName;
}
if (this._keyVaultId !== undefined) {
hasAnyValues = true;
internalValueResult.keyVaultId = this._keyVaultId;
}
if (this._negotiateClientCertificate !== undefined) {
hasAnyValues = true;
internalValueResult.negotiateClientCertificate = this._negotiateClientCertificate;
}
if (this._sslKeyvaultIdentityClientId !== undefined) {
hasAnyValues = true;
internalValueResult.sslKeyvaultIdentityClientId = this._sslKeyvaultIdentityClientId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._certificate = undefined;
this._certificatePassword = undefined;
this._hostName = undefined;
this._keyVaultId = undefined;
this._negotiateClientCertificate = undefined;
this._sslKeyvaultIdentityClientId = 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._certificate = value.certificate;
this._certificatePassword = value.certificatePassword;
this._hostName = value.hostName;
this._keyVaultId = value.keyVaultId;
this._negotiateClientCertificate = value.negotiateClientCertificate;
this._sslKeyvaultIdentityClientId = value.sslKeyvaultIdentityClientId;
}
}
get certificate() {
return this.getStringAttribute('certificate');
}
set certificate(value) {
this._certificate = value;
}
resetCertificate() {
this._certificate = undefined;
}
// Temporarily expose input value. Use with caution.
get certificateInput() {
return this._certificate;
}
get certificatePassword() {
return this.getStringAttribute('certificate_password');
}
set certificatePassword(value) {
this._certificatePassword = value;
}
resetCertificatePassword() {
this._certificatePassword = undefined;
}
// Temporarily expose input value. Use with caution.
get certificatePasswordInput() {
return this._certificatePassword;
}
// certificate_source - computed: true, optional: false, required: false
get certificateSource() {
return this.getStringAttribute('certificate_source');
}
// certificate_status - computed: true, optional: false, required: false
get certificateStatus() {
return this.getStringAttribute('certificate_status');
}
// expiry - computed: true, optional: false, required: false
get expiry() {
return this.getStringAttribute('expiry');
}
get hostName() {
return this.getStringAttribute('host_name');
}
set hostName(value) {
this._hostName = value;
}
// Temporarily expose input value. Use with caution.
get hostNameInput() {
return this._hostName;
}
get keyVaultId() {
return this.getStringAttribute('key_vault_id');
}
set keyVaultId(value) {
this._keyVaultId = value;
}
resetKeyVaultId() {
this._keyVaultId = undefined;
}
// Temporarily expose input value. Use with caution.
get keyVaultIdInput() {
return this._keyVaultId;
}
get negotiateClientCertificate() {
return this.getBooleanAttribute('negotiate_client_certificate');
}
set negotiateClientCertificate(value) {
this._negotiateClientCertificate = value;
}
resetNegotiateClientCertificate() {
this._negotiateClientCertificate = undefined;
}
// Temporarily expose input value. Use with caution.
get negotiateClientCertificateInput() {
return this._negotiateClientCertificate;
}
get sslKeyvaultIdentityClientId() {
return this.getStringAttribute('ssl_keyvault_identity_client_id');
}
set sslKeyvaultIdentityClientId(value) {
this._sslKeyvaultIdentityClientId = value;
}
resetSslKeyvaultIdentityClientId() {
this._sslKeyvaultIdentityClientId = undefined;
}
// Temporarily expose input value. Use with caution.
get sslKeyvaultIdentityClientIdInput() {
return this._sslKeyvaultIdentityClientId;
}
// subject - computed: true, optional: false, required: false
get subject() {
return this.getStringAttribute('subject');
}
// thumbprint - computed: true, optional: false, required: false
get thumbprint() {
return this.getStringAttribute('thumbprint');
}
}
exports.ApiManagementCustomDomainPortalOutputReference = ApiManagementCustomDomainPortalOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainPortalOutputReference[_g] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainPortalOutputReference", version: "12.27.0" };
class ApiManagementCustomDomainPortalList 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 ApiManagementCustomDomainPortalOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApiManagementCustomDomainPortalList = ApiManagementCustomDomainPortalList;
_h = JSII_RTTI_SYMBOL_1;
ApiManagementCustomDomainPortalList[_h] = { fqn: "@cdktf/provider-azurerm.apiManagementCustomDomain.ApiManagementCustomDomainPortalList", version: "12.27.0" };
function apiManagementCustomDomainScmToTerraform(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 {
certificate: cdktf.stringToTerraform(struct.certificate),
certificate_password: cdktf.stringToTerraform(struct.certificatePassword),
host_name: cdktf.stringToTerraform(struct.hostName),
key_vault_id: cdktf.stringToTerraform(struct.keyVaultId),
negotiate_client_certificate: cdktf.booleanToTerraform(struct.negotiateClientCertificate),
ssl_keyvault_identity_client_id: cdktf.stringToTerraform(struct.sslKeyvaultIdentityClientId),
};
}
exports.apiManagementCustomDomainScmToTerraform = apiManagementCustomDomainScmToTerraform;
function apiManagementCustomDomainScmToHclTerraform(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 = {
certificate: {
value: cdktf.stringToHclTerraform(struct.certificate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
certificate_password: {
value: cdktf.stringToHclTerraform(struct.certificatePassword),
isBlock: false,
type: "simple",
storageClassType: "string",
},
host_name: {
value: cdktf.stringToHclTerraform(struct.hostName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_vault_id: {
value: cdktf.stringToHclTerraform(struct.keyVaultId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
negotiate_client_certificate: {
value: cdktf.booleanToHclTerraform(struct.negotiateClientCertificate),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
ssl_keyvault_identity_client_id: {
value: cdktf.stringToHclTerraform(struct.sslKeyvaultIdentityClientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.apiManagementCustomDomainScmToHclTerraform = apiManagementCustomDomainScmToHclTerraform;
class ApiManagementCustomDomainScmOutputReference 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._certificate !== undefined) {
hasAnyValues = true;
internalValueResult.certificate = this._certificate;
}
if (this._certificatePassword !== undefined) {
hasAnyValues = true;
internalValueResult.certificatePassword = this._certificatePassword;
}
if (this._hostName !== undefined) {
hasAnyValues = true;
internalValueResult.hostName = this._hostName;
}
if (this._keyVaultId !== undefined) {
hasAnyValues = true;
internalValueResult.keyVaultId = this._keyVaultId;
}
if (this._negotiateClientCertificate !== undefined) {
hasAnyValues = true;
internalValueResult.negotiateClientCertificate = this._negotiateClientCertificate;
}
if (this._sslKeyvaultIdentityClientId !== undefined) {
hasAnyValues = true;
internalValueResult.sslKeyvaultIdentityClientId = this._sslKeyvaultIdentityClientId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._certificate = undefined;