@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,003 lines • 348 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IntegrationsAuthConfig = exports.IntegrationsAuthConfigTimeoutsOutputReference = exports.integrationsAuthConfigTimeoutsToHclTerraform = exports.integrationsAuthConfigTimeoutsToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOutputReference = exports.integrationsAuthConfigDecryptedCredentialToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialUsernameAndPasswordOutputReference = exports.integrationsAuthConfigDecryptedCredentialUsernameAndPasswordToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialUsernameAndPasswordToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialServiceAccountCredentialsOutputReference = exports.integrationsAuthConfigDecryptedCredentialServiceAccountCredentialsToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialServiceAccountCredentialsToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOidcTokenOutputReference = exports.integrationsAuthConfigDecryptedCredentialOidcTokenToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOidcTokenToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesList = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeOutputReference = exports.integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialJwtOutputReference = exports.integrationsAuthConfigDecryptedCredentialJwtToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialJwtToTerraform = exports.IntegrationsAuthConfigDecryptedCredentialAuthTokenOutputReference = exports.integrationsAuthConfigDecryptedCredentialAuthTokenToHclTerraform = exports.integrationsAuthConfigDecryptedCredentialAuthTokenToTerraform = exports.IntegrationsAuthConfigClientCertificateOutputReference = exports.integrationsAuthConfigClientCertificateToHclTerraform = exports.integrationsAuthConfigClientCertificateToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function integrationsAuthConfigClientCertificateToTerraform(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 {
encrypted_private_key: cdktf.stringToTerraform(struct.encryptedPrivateKey),
passphrase: cdktf.stringToTerraform(struct.passphrase),
ssl_certificate: cdktf.stringToTerraform(struct.sslCertificate),
};
}
exports.integrationsAuthConfigClientCertificateToTerraform = integrationsAuthConfigClientCertificateToTerraform;
function integrationsAuthConfigClientCertificateToHclTerraform(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 = {
encrypted_private_key: {
value: cdktf.stringToHclTerraform(struct.encryptedPrivateKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
passphrase: {
value: cdktf.stringToHclTerraform(struct.passphrase),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ssl_certificate: {
value: cdktf.stringToHclTerraform(struct.sslCertificate),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigClientCertificateToHclTerraform = integrationsAuthConfigClientCertificateToHclTerraform;
class IntegrationsAuthConfigClientCertificateOutputReference 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._encryptedPrivateKey !== undefined) {
hasAnyValues = true;
internalValueResult.encryptedPrivateKey = this._encryptedPrivateKey;
}
if (this._passphrase !== undefined) {
hasAnyValues = true;
internalValueResult.passphrase = this._passphrase;
}
if (this._sslCertificate !== undefined) {
hasAnyValues = true;
internalValueResult.sslCertificate = this._sslCertificate;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._encryptedPrivateKey = undefined;
this._passphrase = undefined;
this._sslCertificate = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._encryptedPrivateKey = value.encryptedPrivateKey;
this._passphrase = value.passphrase;
this._sslCertificate = value.sslCertificate;
}
}
get encryptedPrivateKey() {
return this.getStringAttribute('encrypted_private_key');
}
set encryptedPrivateKey(value) {
this._encryptedPrivateKey = value;
}
// Temporarily expose input value. Use with caution.
get encryptedPrivateKeyInput() {
return this._encryptedPrivateKey;
}
get passphrase() {
return this.getStringAttribute('passphrase');
}
set passphrase(value) {
this._passphrase = value;
}
resetPassphrase() {
this._passphrase = undefined;
}
// Temporarily expose input value. Use with caution.
get passphraseInput() {
return this._passphrase;
}
get sslCertificate() {
return this.getStringAttribute('ssl_certificate');
}
set sslCertificate(value) {
this._sslCertificate = value;
}
// Temporarily expose input value. Use with caution.
get sslCertificateInput() {
return this._sslCertificate;
}
}
exports.IntegrationsAuthConfigClientCertificateOutputReference = IntegrationsAuthConfigClientCertificateOutputReference;
_a = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigClientCertificateOutputReference[_a] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigClientCertificateOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialAuthTokenToTerraform(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 {
token: cdktf.stringToTerraform(struct.token),
type: cdktf.stringToTerraform(struct.type),
};
}
exports.integrationsAuthConfigDecryptedCredentialAuthTokenToTerraform = integrationsAuthConfigDecryptedCredentialAuthTokenToTerraform;
function integrationsAuthConfigDecryptedCredentialAuthTokenToHclTerraform(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 = {
token: {
value: cdktf.stringToHclTerraform(struct.token),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialAuthTokenToHclTerraform = integrationsAuthConfigDecryptedCredentialAuthTokenToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialAuthTokenOutputReference 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._token !== undefined) {
hasAnyValues = true;
internalValueResult.token = this._token;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._token = undefined;
this._type = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._token = value.token;
this._type = value.type;
}
}
get token() {
return this.getStringAttribute('token');
}
set token(value) {
this._token = value;
}
resetToken() {
this._token = undefined;
}
// Temporarily expose input value. Use with caution.
get tokenInput() {
return this._token;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialAuthTokenOutputReference = IntegrationsAuthConfigDecryptedCredentialAuthTokenOutputReference;
_b = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialAuthTokenOutputReference[_b] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialAuthTokenOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialJwtToTerraform(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 {
jwt_header: cdktf.stringToTerraform(struct.jwtHeader),
jwt_payload: cdktf.stringToTerraform(struct.jwtPayload),
secret: cdktf.stringToTerraform(struct.secret),
};
}
exports.integrationsAuthConfigDecryptedCredentialJwtToTerraform = integrationsAuthConfigDecryptedCredentialJwtToTerraform;
function integrationsAuthConfigDecryptedCredentialJwtToHclTerraform(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 = {
jwt_header: {
value: cdktf.stringToHclTerraform(struct.jwtHeader),
isBlock: false,
type: "simple",
storageClassType: "string",
},
jwt_payload: {
value: cdktf.stringToHclTerraform(struct.jwtPayload),
isBlock: false,
type: "simple",
storageClassType: "string",
},
secret: {
value: cdktf.stringToHclTerraform(struct.secret),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialJwtToHclTerraform = integrationsAuthConfigDecryptedCredentialJwtToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialJwtOutputReference 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._jwtHeader !== undefined) {
hasAnyValues = true;
internalValueResult.jwtHeader = this._jwtHeader;
}
if (this._jwtPayload !== undefined) {
hasAnyValues = true;
internalValueResult.jwtPayload = this._jwtPayload;
}
if (this._secret !== undefined) {
hasAnyValues = true;
internalValueResult.secret = this._secret;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._jwtHeader = undefined;
this._jwtPayload = undefined;
this._secret = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._jwtHeader = value.jwtHeader;
this._jwtPayload = value.jwtPayload;
this._secret = value.secret;
}
}
// jwt - computed: true, optional: false, required: false
get jwt() {
return this.getStringAttribute('jwt');
}
get jwtHeader() {
return this.getStringAttribute('jwt_header');
}
set jwtHeader(value) {
this._jwtHeader = value;
}
resetJwtHeader() {
this._jwtHeader = undefined;
}
// Temporarily expose input value. Use with caution.
get jwtHeaderInput() {
return this._jwtHeader;
}
get jwtPayload() {
return this.getStringAttribute('jwt_payload');
}
set jwtPayload(value) {
this._jwtPayload = value;
}
resetJwtPayload() {
this._jwtPayload = undefined;
}
// Temporarily expose input value. Use with caution.
get jwtPayloadInput() {
return this._jwtPayload;
}
get secret() {
return this.getStringAttribute('secret');
}
set secret(value) {
this._secret = value;
}
resetSecret() {
this._secret = undefined;
}
// Temporarily expose input value. Use with caution.
get secretInput() {
return this._secret;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialJwtOutputReference = IntegrationsAuthConfigDecryptedCredentialJwtOutputReference;
_c = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialJwtOutputReference[_c] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialJwtOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToTerraform(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 {
auth_endpoint: cdktf.stringToTerraform(struct.authEndpoint),
client_id: cdktf.stringToTerraform(struct.clientId),
client_secret: cdktf.stringToTerraform(struct.clientSecret),
scope: cdktf.stringToTerraform(struct.scope),
token_endpoint: cdktf.stringToTerraform(struct.tokenEndpoint),
};
}
exports.integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToTerraform = integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToTerraform;
function integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToHclTerraform(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 = {
auth_endpoint: {
value: cdktf.stringToHclTerraform(struct.authEndpoint),
isBlock: false,
type: "simple",
storageClassType: "string",
},
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",
},
scope: {
value: cdktf.stringToHclTerraform(struct.scope),
isBlock: false,
type: "simple",
storageClassType: "string",
},
token_endpoint: {
value: cdktf.stringToHclTerraform(struct.tokenEndpoint),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToHclTerraform = integrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeOutputReference 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._authEndpoint !== undefined) {
hasAnyValues = true;
internalValueResult.authEndpoint = this._authEndpoint;
}
if (this._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._clientSecret !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecret = this._clientSecret;
}
if (this._scope !== undefined) {
hasAnyValues = true;
internalValueResult.scope = this._scope;
}
if (this._tokenEndpoint !== undefined) {
hasAnyValues = true;
internalValueResult.tokenEndpoint = this._tokenEndpoint;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._authEndpoint = undefined;
this._clientId = undefined;
this._clientSecret = undefined;
this._scope = undefined;
this._tokenEndpoint = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._authEndpoint = value.authEndpoint;
this._clientId = value.clientId;
this._clientSecret = value.clientSecret;
this._scope = value.scope;
this._tokenEndpoint = value.tokenEndpoint;
}
}
get authEndpoint() {
return this.getStringAttribute('auth_endpoint');
}
set authEndpoint(value) {
this._authEndpoint = value;
}
resetAuthEndpoint() {
this._authEndpoint = undefined;
}
// Temporarily expose input value. Use with caution.
get authEndpointInput() {
return this._authEndpoint;
}
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;
}
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 scope() {
return this.getStringAttribute('scope');
}
set scope(value) {
this._scope = value;
}
resetScope() {
this._scope = undefined;
}
// Temporarily expose input value. Use with caution.
get scopeInput() {
return this._scope;
}
get tokenEndpoint() {
return this.getStringAttribute('token_endpoint');
}
set tokenEndpoint(value) {
this._tokenEndpoint = value;
}
resetTokenEndpoint() {
this._tokenEndpoint = undefined;
}
// Temporarily expose input value. Use with caution.
get tokenEndpointInput() {
return this._tokenEndpoint;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeOutputReference = IntegrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeOutputReference;
_d = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeOutputReference[_d] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialOauth2AuthorizationCodeOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToTerraform(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 {
string_value: cdktf.stringToTerraform(struct.stringValue),
};
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToTerraform;
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToHclTerraform(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 = {
string_value: {
value: cdktf.stringToHclTerraform(struct.stringValue),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToHclTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueOutputReference 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._stringValue !== undefined) {
hasAnyValues = true;
internalValueResult.stringValue = this._stringValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._stringValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._stringValue = value.stringValue;
}
}
get stringValue() {
return this.getStringAttribute('string_value');
}
set stringValue(value) {
this._stringValue = value;
}
resetStringValue() {
this._stringValue = undefined;
}
// Temporarily expose input value. Use with caution.
get stringValueInput() {
return this._stringValue;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueOutputReference = IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueOutputReference;
_e = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueOutputReference[_e] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToTerraform(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 {
literal_value: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToTerraform(struct.literalValue),
};
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToTerraform;
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToHclTerraform(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 = {
literal_value: {
value: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueToHclTerraform(struct.literalValue),
isBlock: true,
type: "list",
storageClassType: "IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToHclTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyOutputReference 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;
// literal_value - computed: false, optional: true, required: false
this._literalValue = new IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyLiteralValueOutputReference(this, "literal_value");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._literalValue?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.literalValue = this._literalValue?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._literalValue.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._literalValue.internalValue = value.literalValue;
}
}
get literalValue() {
return this._literalValue;
}
putLiteralValue(value) {
this._literalValue.internalValue = value;
}
resetLiteralValue() {
this._literalValue.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get literalValueInput() {
return this._literalValue.internalValue;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyOutputReference = IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyOutputReference;
_f = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyOutputReference[_f] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToTerraform(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 {
string_value: cdktf.stringToTerraform(struct.stringValue),
};
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToTerraform;
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToHclTerraform(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 = {
string_value: {
value: cdktf.stringToHclTerraform(struct.stringValue),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToHclTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueOutputReference 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._stringValue !== undefined) {
hasAnyValues = true;
internalValueResult.stringValue = this._stringValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._stringValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._stringValue = value.stringValue;
}
}
get stringValue() {
return this.getStringAttribute('string_value');
}
set stringValue(value) {
this._stringValue = value;
}
resetStringValue() {
this._stringValue = undefined;
}
// Temporarily expose input value. Use with caution.
get stringValueInput() {
return this._stringValue;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueOutputReference = IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueOutputReference;
_g = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueOutputReference[_g] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToTerraform(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 {
literal_value: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToTerraform(struct.literalValue),
};
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToTerraform;
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToHclTerraform(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 = {
literal_value: {
value: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueToHclTerraform(struct.literalValue),
isBlock: true,
type: "list",
storageClassType: "IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToHclTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueOutputReference 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;
// literal_value - computed: false, optional: true, required: false
this._literalValue = new IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueLiteralValueOutputReference(this, "literal_value");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._literalValue?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.literalValue = this._literalValue?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._literalValue.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._literalValue.internalValue = value.literalValue;
}
}
get literalValue() {
return this._literalValue;
}
putLiteralValue(value) {
this._literalValue.internalValue = value;
}
resetLiteralValue() {
this._literalValue.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get literalValueInput() {
return this._literalValue.internalValue;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueOutputReference = IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueOutputReference;
_h = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueOutputReference[_h] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueOutputReference", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToTerraform(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 {
key: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToTerraform(struct.key),
value: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToTerraform(struct.value),
};
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToTerraform;
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToHclTerraform(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 = {
key: {
value: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyToHclTerraform(struct.key),
isBlock: true,
type: "list",
storageClassType: "IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyList",
},
value: {
value: integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueToHclTerraform(struct.value),
isBlock: true,
type: "list",
storageClassType: "IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToHclTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToHclTerraform;
class IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesOutputReference 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;
// key - computed: false, optional: true, required: false
this._key = new IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesKeyOutputReference(this, "key");
// value - computed: false, optional: true, required: false
this._value = new IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesValueOutputReference(this, "value");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._key?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.key = this._key?.internalValue;
}
if (this._value?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._key.internalValue = undefined;
this._value.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._key.internalValue = value.key;
this._value.internalValue = value.value;
}
}
get key() {
return this._key;
}
putKey(value) {
this._key.internalValue = value;
}
resetKey() {
this._key.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get keyInput() {
return this._key.internalValue;
}
get value() {
return this._value;
}
putValue(value) {
this._value.internalValue = value;
}
resetValue() {
this._value.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value.internalValue;
}
}
exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesOutputReference = IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesOutputReference;
_j = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesOutputReference[_j] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesOutputReference", version: "14.12.0" };
class IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesList 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 IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesList = IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesList;
_k = JSII_RTTI_SYMBOL_1;
IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesList[_k] = { fqn: "@cdktf/provider-google.integrationsAuthConfig.IntegrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesList", version: "14.12.0" };
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsToTerraform(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 {
entries: cdktf.listMapper(integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsEntriesToTerraform, true)(struct.entries),
};
}
exports.integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsToTerraform = integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsToTerraform;
function integrationsAuthConfigDecryptedCredentialOauth2ClientCredentialsTokenParamsToHclTerraform(struct) {
if (!cdktf.canInspe