@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
695 lines • 1.11 MB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31;
Object.defineProperty(exports, "__esModule", { value: true });
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshiftToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshiftToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsMarketoOauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexusOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexusToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsInforNexusToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsHoneycodeOauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsGoogleAnalyticsOauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatraceOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatraceToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDynatraceToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadogOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadogToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsDatadogToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToTerraform = void 0;
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitudeToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsZendeskOauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeevaOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeevaToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsVeevaToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicroOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicroToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsTrendmicroToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflakeOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflakeToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSnowflakeToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSlackOauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingularOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingularToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSingularToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNowOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNowToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsServiceNowToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataOauthCredentialsOauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentialsOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentialsToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSapoDataBasicAuthCredentialsToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequestOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequestToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsSalesforceOauthRequestToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsRedshiftOutputReference = void 0;
exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflakeOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflakeToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSnowflakeToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlackOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlackToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSlackToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingularOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingularToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSingularToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNowOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNowToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesServiceNowToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthPropertiesOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthPropertiesToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSapoDataOauthPropertiesToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforceOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforceToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesSalesforceToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshiftOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshiftToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesRedshiftToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketoOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketoToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesMarketoToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexusOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexusToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesInforNexusToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycodeOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycodeToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesHoneycodeToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalyticsOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalyticsToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesGoogleAnalyticsToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatraceOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatraceToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDynatraceToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadogOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadogToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesDatadogToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2PropertiesOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2PropertiesToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesCustomConnectorOauth2PropertiesToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitudeOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesAmplitudeToHclTerraform = void 0;
exports.AppflowConnectorProfile = exports.AppflowConnectorProfileConnectorProfileConfigOutputReference = exports.appflowConnectorProfileConnectorProfileConfigToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendeskOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendeskToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesZendeskToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeevaOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeevaToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesVeevaToTerraform = exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicroOutputReference = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicroToHclTerraform = exports.appflowConnectorProfileConnectorProfileConfigConnectorProfilePropertiesTrendmicroToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToTerraform(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 {
api_key: cdktf.stringToTerraform(struct.apiKey),
secret_key: cdktf.stringToTerraform(struct.secretKey),
};
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToTerraform;
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToHclTerraform(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 = {
api_key: {
value: cdktf.stringToHclTerraform(struct.apiKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
secret_key: {
value: cdktf.stringToHclTerraform(struct.secretKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToHclTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeToHclTerraform;
class AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeOutputReference 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._apiKey !== undefined) {
hasAnyValues = true;
internalValueResult.apiKey = this._apiKey;
}
if (this._secretKey !== undefined) {
hasAnyValues = true;
internalValueResult.secretKey = this._secretKey;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._apiKey = undefined;
this._secretKey = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._apiKey = value.apiKey;
this._secretKey = value.secretKey;
}
}
get apiKey() {
return this.getStringAttribute('api_key');
}
set apiKey(value) {
this._apiKey = value;
}
// Temporarily expose input value. Use with caution.
get apiKeyInput() {
return this._apiKey;
}
get secretKey() {
return this.getStringAttribute('secret_key');
}
set secretKey(value) {
this._secretKey = value;
}
// Temporarily expose input value. Use with caution.
get secretKeyInput() {
return this._secretKey;
}
}
exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeOutputReference = AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeOutputReference;
_a = JSII_RTTI_SYMBOL_1;
AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeOutputReference[_a] = { fqn: "@cdktf/provider-aws.appflowConnectorProfile.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsAmplitudeOutputReference", version: "19.50.0" };
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToTerraform(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 {
api_key: cdktf.stringToTerraform(struct.apiKey),
api_secret_key: cdktf.stringToTerraform(struct.apiSecretKey),
};
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToTerraform;
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToHclTerraform(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 = {
api_key: {
value: cdktf.stringToHclTerraform(struct.apiKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
api_secret_key: {
value: cdktf.stringToHclTerraform(struct.apiSecretKey),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToHclTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToHclTerraform;
class AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyOutputReference 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._apiKey !== undefined) {
hasAnyValues = true;
internalValueResult.apiKey = this._apiKey;
}
if (this._apiSecretKey !== undefined) {
hasAnyValues = true;
internalValueResult.apiSecretKey = this._apiSecretKey;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._apiKey = undefined;
this._apiSecretKey = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._apiKey = value.apiKey;
this._apiSecretKey = value.apiSecretKey;
}
}
get apiKey() {
return this.getStringAttribute('api_key');
}
set apiKey(value) {
this._apiKey = value;
}
// Temporarily expose input value. Use with caution.
get apiKeyInput() {
return this._apiKey;
}
get apiSecretKey() {
return this.getStringAttribute('api_secret_key');
}
set apiSecretKey(value) {
this._apiSecretKey = value;
}
resetApiSecretKey() {
this._apiSecretKey = undefined;
}
// Temporarily expose input value. Use with caution.
get apiSecretKeyInput() {
return this._apiSecretKey;
}
}
exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyOutputReference = AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyOutputReference;
_b = JSII_RTTI_SYMBOL_1;
AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyOutputReference[_b] = { fqn: "@cdktf/provider-aws.appflowConnectorProfile.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyOutputReference", version: "19.50.0" };
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToTerraform(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 {
password: cdktf.stringToTerraform(struct.password),
username: cdktf.stringToTerraform(struct.username),
};
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToTerraform;
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToHclTerraform(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 = {
password: {
value: cdktf.stringToHclTerraform(struct.password),
isBlock: false,
type: "simple",
storageClassType: "string",
},
username: {
value: cdktf.stringToHclTerraform(struct.username),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToHclTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToHclTerraform;
class AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicOutputReference 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._password !== undefined) {
hasAnyValues = true;
internalValueResult.password = this._password;
}
if (this._username !== undefined) {
hasAnyValues = true;
internalValueResult.username = this._username;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._password = undefined;
this._username = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._password = value.password;
this._username = value.username;
}
}
get password() {
return this.getStringAttribute('password');
}
set password(value) {
this._password = value;
}
// Temporarily expose input value. Use with caution.
get passwordInput() {
return this._password;
}
get username() {
return this.getStringAttribute('username');
}
set username(value) {
this._username = value;
}
// Temporarily expose input value. Use with caution.
get usernameInput() {
return this._username;
}
}
exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicOutputReference = AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicOutputReference;
_c = JSII_RTTI_SYMBOL_1;
AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicOutputReference[_c] = { fqn: "@cdktf/provider-aws.appflowConnectorProfile.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicOutputReference", version: "19.50.0" };
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToTerraform(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 {
credentials_map: cdktf.hashMapper(cdktf.stringToTerraform)(struct.credentialsMap),
custom_authentication_type: cdktf.stringToTerraform(struct.customAuthenticationType),
};
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToTerraform;
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToHclTerraform(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 = {
credentials_map: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.credentialsMap),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
custom_authentication_type: {
value: cdktf.stringToHclTerraform(struct.customAuthenticationType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToHclTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToHclTerraform;
class AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomOutputReference 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._credentialsMap !== undefined) {
hasAnyValues = true;
internalValueResult.credentialsMap = this._credentialsMap;
}
if (this._customAuthenticationType !== undefined) {
hasAnyValues = true;
internalValueResult.customAuthenticationType = this._customAuthenticationType;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._credentialsMap = undefined;
this._customAuthenticationType = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._credentialsMap = value.credentialsMap;
this._customAuthenticationType = value.customAuthenticationType;
}
}
get credentialsMap() {
return this.getStringMapAttribute('credentials_map');
}
set credentialsMap(value) {
this._credentialsMap = value;
}
resetCredentialsMap() {
this._credentialsMap = undefined;
}
// Temporarily expose input value. Use with caution.
get credentialsMapInput() {
return this._credentialsMap;
}
get customAuthenticationType() {
return this.getStringAttribute('custom_authentication_type');
}
set customAuthenticationType(value) {
this._customAuthenticationType = value;
}
// Temporarily expose input value. Use with caution.
get customAuthenticationTypeInput() {
return this._customAuthenticationType;
}
}
exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomOutputReference = AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomOutputReference;
_d = JSII_RTTI_SYMBOL_1;
AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomOutputReference[_d] = { fqn: "@cdktf/provider-aws.appflowConnectorProfile.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomOutputReference", version: "19.50.0" };
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToTerraform(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_code: cdktf.stringToTerraform(struct.authCode),
redirect_uri: cdktf.stringToTerraform(struct.redirectUri),
};
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToTerraform;
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToHclTerraform(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_code: {
value: cdktf.stringToHclTerraform(struct.authCode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
redirect_uri: {
value: cdktf.stringToHclTerraform(struct.redirectUri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToHclTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToHclTerraform;
class AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestOutputReference 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._authCode !== undefined) {
hasAnyValues = true;
internalValueResult.authCode = this._authCode;
}
if (this._redirectUri !== undefined) {
hasAnyValues = true;
internalValueResult.redirectUri = this._redirectUri;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._authCode = undefined;
this._redirectUri = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._authCode = value.authCode;
this._redirectUri = value.redirectUri;
}
}
get authCode() {
return this.getStringAttribute('auth_code');
}
set authCode(value) {
this._authCode = value;
}
resetAuthCode() {
this._authCode = undefined;
}
// Temporarily expose input value. Use with caution.
get authCodeInput() {
return this._authCode;
}
get redirectUri() {
return this.getStringAttribute('redirect_uri');
}
set redirectUri(value) {
this._redirectUri = value;
}
resetRedirectUri() {
this._redirectUri = undefined;
}
// Temporarily expose input value. Use with caution.
get redirectUriInput() {
return this._redirectUri;
}
}
exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestOutputReference = AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestOutputReference;
_e = JSII_RTTI_SYMBOL_1;
AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestOutputReference[_e] = { fqn: "@cdktf/provider-aws.appflowConnectorProfile.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestOutputReference", version: "19.50.0" };
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToTerraform(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_token: cdktf.stringToTerraform(struct.accessToken),
client_id: cdktf.stringToTerraform(struct.clientId),
client_secret: cdktf.stringToTerraform(struct.clientSecret),
refresh_token: cdktf.stringToTerraform(struct.refreshToken),
oauth_request: appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToTerraform(struct.oauthRequest),
};
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToTerraform;
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToHclTerraform(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_token: {
value: cdktf.stringToHclTerraform(struct.accessToken),
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",
},
refresh_token: {
value: cdktf.stringToHclTerraform(struct.refreshToken),
isBlock: false,
type: "simple",
storageClassType: "string",
},
oauth_request: {
value: appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestToHclTerraform(struct.oauthRequest),
isBlock: true,
type: "list",
storageClassType: "AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToHclTerraform = appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2ToHclTerraform;
class AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OutputReference 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;
// oauth_request - computed: false, optional: true, required: false
this._oauthRequest = new AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OauthRequestOutputReference(this, "oauth_request");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._accessToken !== undefined) {
hasAnyValues = true;
internalValueResult.accessToken = this._accessToken;
}
if (this._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._clientSecret !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecret = this._clientSecret;
}
if (this._refreshToken !== undefined) {
hasAnyValues = true;
internalValueResult.refreshToken = this._refreshToken;
}
if (this._oauthRequest?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.oauthRequest = this._oauthRequest?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._accessToken = undefined;
this._clientId = undefined;
this._clientSecret = undefined;
this._refreshToken = undefined;
this._oauthRequest.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._accessToken = value.accessToken;
this._clientId = value.clientId;
this._clientSecret = value.clientSecret;
this._refreshToken = value.refreshToken;
this._oauthRequest.internalValue = value.oauthRequest;
}
}
get accessToken() {
return this.getStringAttribute('access_token');
}
set accessToken(value) {
this._accessToken = value;
}
resetAccessToken() {
this._accessToken = undefined;
}
// Temporarily expose input value. Use with caution.
get accessTokenInput() {
return this._accessToken;
}
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 refreshToken() {
return this.getStringAttribute('refresh_token');
}
set refreshToken(value) {
this._refreshToken = value;
}
resetRefreshToken() {
this._refreshToken = undefined;
}
// Temporarily expose input value. Use with caution.
get refreshTokenInput() {
return this._refreshToken;
}
get oauthRequest() {
return this._oauthRequest;
}
putOauthRequest(value) {
this._oauthRequest.internalValue = value;
}
resetOauthRequest() {
this._oauthRequest.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get oauthRequestInput() {
return this._oauthRequest.internalValue;
}
}
exports.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OutputReference = AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OutputReference;
_f = JSII_RTTI_SYMBOL_1;
AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OutputReference[_f] = { fqn: "@cdktf/provider-aws.appflowConnectorProfile.AppflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorOauth2OutputReference", version: "19.50.0" };
function appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorToTerraform(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 {
authentication_type: cdktf.stringToTerraform(struct.authenticationType),
api_key: appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorApiKeyToTerraform(struct.apiKey),
basic: appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorBasicToTerraform(struct.basic),
custom: appflowConnectorProfileConnectorProfileConfigConnectorProfileCredentialsCustomConnectorCustomToTerraform(stru