@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,047 lines • 204 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccessContextManagerGcpUserAccessBinding = exports.AccessContextManagerGcpUserAccessBindingTimeoutsOutputReference = exports.AccessContextManagerGcpUserAccessBindingSessionSettingsOutputReference = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsList = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsOutputReference = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeOutputReference = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeOutputReference = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationOutputReference = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsOutputReference = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsOutputReference = exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsOutputReference = void 0;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToHclTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToHclTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToHclTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToHclTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToHclTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToHclTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsToTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsToTerraform;
exports.accessContextManagerGcpUserAccessBindingScopedAccessSettingsToHclTerraform = accessContextManagerGcpUserAccessBindingScopedAccessSettingsToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingSessionSettingsToTerraform = accessContextManagerGcpUserAccessBindingSessionSettingsToTerraform;
exports.accessContextManagerGcpUserAccessBindingSessionSettingsToHclTerraform = accessContextManagerGcpUserAccessBindingSessionSettingsToHclTerraform;
exports.accessContextManagerGcpUserAccessBindingTimeoutsToTerraform = accessContextManagerGcpUserAccessBindingTimeoutsToTerraform;
exports.accessContextManagerGcpUserAccessBindingTimeoutsToHclTerraform = accessContextManagerGcpUserAccessBindingTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToTerraform(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 {
max_inactivity: cdktf.stringToTerraform(struct.maxInactivity),
session_length: cdktf.stringToTerraform(struct.sessionLength),
session_length_enabled: cdktf.booleanToTerraform(struct.sessionLengthEnabled),
session_reauth_method: cdktf.stringToTerraform(struct.sessionReauthMethod),
use_oidc_max_age: cdktf.booleanToTerraform(struct.useOidcMaxAge),
};
}
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToHclTerraform(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 = {
max_inactivity: {
value: cdktf.stringToHclTerraform(struct.maxInactivity),
isBlock: false,
type: "simple",
storageClassType: "string",
},
session_length: {
value: cdktf.stringToHclTerraform(struct.sessionLength),
isBlock: false,
type: "simple",
storageClassType: "string",
},
session_length_enabled: {
value: cdktf.booleanToHclTerraform(struct.sessionLengthEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
session_reauth_method: {
value: cdktf.stringToHclTerraform(struct.sessionReauthMethod),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_oidc_max_age: {
value: cdktf.booleanToHclTerraform(struct.useOidcMaxAge),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsOutputReference 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._maxInactivity !== undefined) {
hasAnyValues = true;
internalValueResult.maxInactivity = this._maxInactivity;
}
if (this._sessionLength !== undefined) {
hasAnyValues = true;
internalValueResult.sessionLength = this._sessionLength;
}
if (this._sessionLengthEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.sessionLengthEnabled = this._sessionLengthEnabled;
}
if (this._sessionReauthMethod !== undefined) {
hasAnyValues = true;
internalValueResult.sessionReauthMethod = this._sessionReauthMethod;
}
if (this._useOidcMaxAge !== undefined) {
hasAnyValues = true;
internalValueResult.useOidcMaxAge = this._useOidcMaxAge;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxInactivity = undefined;
this._sessionLength = undefined;
this._sessionLengthEnabled = undefined;
this._sessionReauthMethod = undefined;
this._useOidcMaxAge = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxInactivity = value.maxInactivity;
this._sessionLength = value.sessionLength;
this._sessionLengthEnabled = value.sessionLengthEnabled;
this._sessionReauthMethod = value.sessionReauthMethod;
this._useOidcMaxAge = value.useOidcMaxAge;
}
}
get maxInactivity() {
return this.getStringAttribute('max_inactivity');
}
set maxInactivity(value) {
this._maxInactivity = value;
}
resetMaxInactivity() {
this._maxInactivity = undefined;
}
// Temporarily expose input value. Use with caution.
get maxInactivityInput() {
return this._maxInactivity;
}
get sessionLength() {
return this.getStringAttribute('session_length');
}
set sessionLength(value) {
this._sessionLength = value;
}
resetSessionLength() {
this._sessionLength = undefined;
}
// Temporarily expose input value. Use with caution.
get sessionLengthInput() {
return this._sessionLength;
}
get sessionLengthEnabled() {
return this.getBooleanAttribute('session_length_enabled');
}
set sessionLengthEnabled(value) {
this._sessionLengthEnabled = value;
}
resetSessionLengthEnabled() {
this._sessionLengthEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get sessionLengthEnabledInput() {
return this._sessionLengthEnabled;
}
get sessionReauthMethod() {
return this.getStringAttribute('session_reauth_method');
}
set sessionReauthMethod(value) {
this._sessionReauthMethod = value;
}
resetSessionReauthMethod() {
this._sessionReauthMethod = undefined;
}
// Temporarily expose input value. Use with caution.
get sessionReauthMethodInput() {
return this._sessionReauthMethod;
}
get useOidcMaxAge() {
return this.getBooleanAttribute('use_oidc_max_age');
}
set useOidcMaxAge(value) {
this._useOidcMaxAge = value;
}
resetUseOidcMaxAge() {
this._useOidcMaxAge = undefined;
}
// Temporarily expose input value. Use with caution.
get useOidcMaxAgeInput() {
return this._useOidcMaxAge;
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsOutputReference = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsOutputReference[_a] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsOutputReference", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToTerraform(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 {
access_levels: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.accessLevels),
session_settings: accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToTerraform(struct.sessionSettings),
};
}
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToHclTerraform(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 = {
access_levels: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.accessLevels),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
session_settings: {
value: accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsToHclTerraform(struct.sessionSettings),
isBlock: true,
type: "list",
storageClassType: "AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsOutputReference 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;
// session_settings - computed: false, optional: true, required: false
this._sessionSettings = new AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsSessionSettingsOutputReference(this, "session_settings");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._accessLevels !== undefined) {
hasAnyValues = true;
internalValueResult.accessLevels = this._accessLevels;
}
if (this._sessionSettings?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.sessionSettings = this._sessionSettings?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._accessLevels = undefined;
this._sessionSettings.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._accessLevels = value.accessLevels;
this._sessionSettings.internalValue = value.sessionSettings;
}
}
get accessLevels() {
return this.getListAttribute('access_levels');
}
set accessLevels(value) {
this._accessLevels = value;
}
resetAccessLevels() {
this._accessLevels = undefined;
}
// Temporarily expose input value. Use with caution.
get accessLevelsInput() {
return this._accessLevels;
}
get sessionSettings() {
return this._sessionSettings;
}
putSessionSettings(value) {
this._sessionSettings.internalValue = value;
}
resetSessionSettings() {
this._sessionSettings.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get sessionSettingsInput() {
return this._sessionSettings.internalValue;
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsOutputReference = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsOutputReference;
_b = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsOutputReference[_b] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsOutputReference", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToTerraform(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 {
access_levels: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.accessLevels),
};
}
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToHclTerraform(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 = {
access_levels: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.accessLevels),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsOutputReference 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._accessLevels !== undefined) {
hasAnyValues = true;
internalValueResult.accessLevels = this._accessLevels;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._accessLevels = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._accessLevels = value.accessLevels;
}
}
get accessLevels() {
return this.getListAttribute('access_levels');
}
set accessLevels(value) {
this._accessLevels = value;
}
resetAccessLevels() {
this._accessLevels = undefined;
}
// Temporarily expose input value. Use with caution.
get accessLevelsInput() {
return this._accessLevels;
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsOutputReference = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsOutputReference[_c] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsOutputReference", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToTerraform(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),
};
}
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToHclTerraform(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",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationOutputReference 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;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientId = value.clientId;
}
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
resetClientId() {
this._clientId = undefined;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationOutputReference = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationOutputReference;
_d = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationOutputReference[_d] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationOutputReference", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToTerraform(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 {
restricted_client_application: accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToTerraform(struct.restrictedClientApplication),
};
}
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToHclTerraform(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 = {
restricted_client_application: {
value: accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationToHclTerraform(struct.restrictedClientApplication),
isBlock: true,
type: "list",
storageClassType: "AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeOutputReference 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;
// restricted_client_application - computed: false, optional: true, required: false
this._restrictedClientApplication = new AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeRestrictedClientApplicationOutputReference(this, "restricted_client_application");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._restrictedClientApplication?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.restrictedClientApplication = this._restrictedClientApplication?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._restrictedClientApplication.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._restrictedClientApplication.internalValue = value.restrictedClientApplication;
}
}
get restrictedClientApplication() {
return this._restrictedClientApplication;
}
putRestrictedClientApplication(value) {
this._restrictedClientApplication.internalValue = value;
}
resetRestrictedClientApplication() {
this._restrictedClientApplication.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get restrictedClientApplicationInput() {
return this._restrictedClientApplication.internalValue;
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeOutputReference = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeOutputReference;
_e = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeOutputReference[_e] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeOutputReference", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToTerraform(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_scope: accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToTerraform(struct.clientScope),
};
}
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToHclTerraform(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_scope: {
value: accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeToHclTerraform(struct.clientScope),
isBlock: true,
type: "list",
storageClassType: "AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeOutputReference 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;
// client_scope - computed: false, optional: true, required: false
this._clientScope = new AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeClientScopeOutputReference(this, "client_scope");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._clientScope?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.clientScope = this._clientScope?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientScope.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientScope.internalValue = value.clientScope;
}
}
get clientScope() {
return this._clientScope;
}
putClientScope(value) {
this._clientScope.internalValue = value;
}
resetClientScope() {
this._clientScope.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get clientScopeInput() {
return this._clientScope.internalValue;
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeOutputReference = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeOutputReference;
_f = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeOutputReference[_f] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeOutputReference", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsToTerraform(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 {
active_settings: accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToTerraform(struct.activeSettings),
dry_run_settings: accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToTerraform(struct.dryRunSettings),
scope: accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToTerraform(struct.scope),
};
}
function accessContextManagerGcpUserAccessBindingScopedAccessSettingsToHclTerraform(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 = {
active_settings: {
value: accessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsToHclTerraform(struct.activeSettings),
isBlock: true,
type: "list",
storageClassType: "AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsList",
},
dry_run_settings: {
value: accessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsToHclTerraform(struct.dryRunSettings),
isBlock: true,
type: "list",
storageClassType: "AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsList",
},
scope: {
value: accessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeToHclTerraform(struct.scope),
isBlock: true,
type: "list",
storageClassType: "AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsOutputReference 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;
// active_settings - computed: false, optional: true, required: false
this._activeSettings = new AccessContextManagerGcpUserAccessBindingScopedAccessSettingsActiveSettingsOutputReference(this, "active_settings");
// dry_run_settings - computed: false, optional: true, required: false
this._dryRunSettings = new AccessContextManagerGcpUserAccessBindingScopedAccessSettingsDryRunSettingsOutputReference(this, "dry_run_settings");
// scope - computed: false, optional: true, required: false
this._scope = new AccessContextManagerGcpUserAccessBindingScopedAccessSettingsScopeOutputReference(this, "scope");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._activeSettings?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.activeSettings = this._activeSettings?.internalValue;
}
if (this._dryRunSettings?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.dryRunSettings = this._dryRunSettings?.internalValue;
}
if (this._scope?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.scope = this._scope?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._activeSettings.internalValue = undefined;
this._dryRunSettings.internalValue = undefined;
this._scope.internalValue = 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._activeSettings.internalValue = value.activeSettings;
this._dryRunSettings.internalValue = value.dryRunSettings;
this._scope.internalValue = value.scope;
}
}
get activeSettings() {
return this._activeSettings;
}
putActiveSettings(value) {
this._activeSettings.internalValue = value;
}
resetActiveSettings() {
this._activeSettings.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get activeSettingsInput() {
return this._activeSettings.internalValue;
}
get dryRunSettings() {
return this._dryRunSettings;
}
putDryRunSettings(value) {
this._dryRunSettings.internalValue = value;
}
resetDryRunSettings() {
this._dryRunSettings.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get dryRunSettingsInput() {
return this._dryRunSettings.internalValue;
}
get scope() {
return this._scope;
}
putScope(value) {
this._scope.internalValue = value;
}
resetScope() {
this._scope.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get scopeInput() {
return this._scope.internalValue;
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsOutputReference = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsOutputReference[_g] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsOutputReference", version: "14.35.0" };
class AccessContextManagerGcpUserAccessBindingScopedAccessSettingsList 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 AccessContextManagerGcpUserAccessBindingScopedAccessSettingsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsList = AccessContextManagerGcpUserAccessBindingScopedAccessSettingsList;
_h = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingScopedAccessSettingsList[_h] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingScopedAccessSettingsList", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingSessionSettingsToTerraform(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 {
max_inactivity: cdktf.stringToTerraform(struct.maxInactivity),
session_length: cdktf.stringToTerraform(struct.sessionLength),
session_length_enabled: cdktf.booleanToTerraform(struct.sessionLengthEnabled),
session_reauth_method: cdktf.stringToTerraform(struct.sessionReauthMethod),
use_oidc_max_age: cdktf.booleanToTerraform(struct.useOidcMaxAge),
};
}
function accessContextManagerGcpUserAccessBindingSessionSettingsToHclTerraform(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 = {
max_inactivity: {
value: cdktf.stringToHclTerraform(struct.maxInactivity),
isBlock: false,
type: "simple",
storageClassType: "string",
},
session_length: {
value: cdktf.stringToHclTerraform(struct.sessionLength),
isBlock: false,
type: "simple",
storageClassType: "string",
},
session_length_enabled: {
value: cdktf.booleanToHclTerraform(struct.sessionLengthEnabled),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
session_reauth_method: {
value: cdktf.stringToHclTerraform(struct.sessionReauthMethod),
isBlock: false,
type: "simple",
storageClassType: "string",
},
use_oidc_max_age: {
value: cdktf.booleanToHclTerraform(struct.useOidcMaxAge),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingSessionSettingsOutputReference 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._maxInactivity !== undefined) {
hasAnyValues = true;
internalValueResult.maxInactivity = this._maxInactivity;
}
if (this._sessionLength !== undefined) {
hasAnyValues = true;
internalValueResult.sessionLength = this._sessionLength;
}
if (this._sessionLengthEnabled !== undefined) {
hasAnyValues = true;
internalValueResult.sessionLengthEnabled = this._sessionLengthEnabled;
}
if (this._sessionReauthMethod !== undefined) {
hasAnyValues = true;
internalValueResult.sessionReauthMethod = this._sessionReauthMethod;
}
if (this._useOidcMaxAge !== undefined) {
hasAnyValues = true;
internalValueResult.useOidcMaxAge = this._useOidcMaxAge;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxInactivity = undefined;
this._sessionLength = undefined;
this._sessionLengthEnabled = undefined;
this._sessionReauthMethod = undefined;
this._useOidcMaxAge = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxInactivity = value.maxInactivity;
this._sessionLength = value.sessionLength;
this._sessionLengthEnabled = value.sessionLengthEnabled;
this._sessionReauthMethod = value.sessionReauthMethod;
this._useOidcMaxAge = value.useOidcMaxAge;
}
}
get maxInactivity() {
return this.getStringAttribute('max_inactivity');
}
set maxInactivity(value) {
this._maxInactivity = value;
}
resetMaxInactivity() {
this._maxInactivity = undefined;
}
// Temporarily expose input value. Use with caution.
get maxInactivityInput() {
return this._maxInactivity;
}
get sessionLength() {
return this.getStringAttribute('session_length');
}
set sessionLength(value) {
this._sessionLength = value;
}
resetSessionLength() {
this._sessionLength = undefined;
}
// Temporarily expose input value. Use with caution.
get sessionLengthInput() {
return this._sessionLength;
}
get sessionLengthEnabled() {
return this.getBooleanAttribute('session_length_enabled');
}
set sessionLengthEnabled(value) {
this._sessionLengthEnabled = value;
}
resetSessionLengthEnabled() {
this._sessionLengthEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
get sessionLengthEnabledInput() {
return this._sessionLengthEnabled;
}
get sessionReauthMethod() {
return this.getStringAttribute('session_reauth_method');
}
set sessionReauthMethod(value) {
this._sessionReauthMethod = value;
}
resetSessionReauthMethod() {
this._sessionReauthMethod = undefined;
}
// Temporarily expose input value. Use with caution.
get sessionReauthMethodInput() {
return this._sessionReauthMethod;
}
get useOidcMaxAge() {
return this.getBooleanAttribute('use_oidc_max_age');
}
set useOidcMaxAge(value) {
this._useOidcMaxAge = value;
}
resetUseOidcMaxAge() {
this._useOidcMaxAge = undefined;
}
// Temporarily expose input value. Use with caution.
get useOidcMaxAgeInput() {
return this._useOidcMaxAge;
}
}
exports.AccessContextManagerGcpUserAccessBindingSessionSettingsOutputReference = AccessContextManagerGcpUserAccessBindingSessionSettingsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
AccessContextManagerGcpUserAccessBindingSessionSettingsOutputReference[_j] = { fqn: "@cdktf/provider-google.accessContextManagerGcpUserAccessBinding.AccessContextManagerGcpUserAccessBindingSessionSettingsOutputReference", version: "14.35.0" };
function accessContextManagerGcpUserAccessBindingTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
function accessContextManagerGcpUserAccessBindingTimeoutsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class AccessContextManagerGcpUserAccessBindingTimeoutsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create