@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
1,062 lines • 260 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.ApihubPluginInstance = exports.ApihubPluginInstanceTimeoutsOutputReference = exports.ApihubPluginInstanceAuthConfigOutputReference = exports.ApihubPluginInstanceAuthConfigUserPasswordConfigOutputReference = exports.ApihubPluginInstanceAuthConfigUserPasswordConfigPasswordOutputReference = exports.ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigOutputReference = exports.ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretOutputReference = exports.ApihubPluginInstanceAuthConfigGoogleServiceAccountConfigOutputReference = exports.ApihubPluginInstanceAuthConfigApiKeyConfigOutputReference = exports.ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyOutputReference = exports.ApihubPluginInstanceActionsList = exports.ApihubPluginInstanceActionsOutputReference = exports.ApihubPluginInstanceActionsCurationConfigOutputReference = exports.ApihubPluginInstanceActionsCurationConfigCustomCurationOutputReference = exports.ApihubPluginInstanceActionsHubInstanceActionList = exports.ApihubPluginInstanceActionsHubInstanceActionOutputReference = exports.ApihubPluginInstanceActionsHubInstanceActionLastExecutionList = exports.ApihubPluginInstanceActionsHubInstanceActionLastExecutionOutputReference = void 0;
exports.apihubPluginInstanceActionsHubInstanceActionLastExecutionToTerraform = apihubPluginInstanceActionsHubInstanceActionLastExecutionToTerraform;
exports.apihubPluginInstanceActionsHubInstanceActionLastExecutionToHclTerraform = apihubPluginInstanceActionsHubInstanceActionLastExecutionToHclTerraform;
exports.apihubPluginInstanceActionsHubInstanceActionToTerraform = apihubPluginInstanceActionsHubInstanceActionToTerraform;
exports.apihubPluginInstanceActionsHubInstanceActionToHclTerraform = apihubPluginInstanceActionsHubInstanceActionToHclTerraform;
exports.apihubPluginInstanceActionsCurationConfigCustomCurationToTerraform = apihubPluginInstanceActionsCurationConfigCustomCurationToTerraform;
exports.apihubPluginInstanceActionsCurationConfigCustomCurationToHclTerraform = apihubPluginInstanceActionsCurationConfigCustomCurationToHclTerraform;
exports.apihubPluginInstanceActionsCurationConfigToTerraform = apihubPluginInstanceActionsCurationConfigToTerraform;
exports.apihubPluginInstanceActionsCurationConfigToHclTerraform = apihubPluginInstanceActionsCurationConfigToHclTerraform;
exports.apihubPluginInstanceActionsToTerraform = apihubPluginInstanceActionsToTerraform;
exports.apihubPluginInstanceActionsToHclTerraform = apihubPluginInstanceActionsToHclTerraform;
exports.apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToTerraform = apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToTerraform;
exports.apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToHclTerraform = apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToHclTerraform;
exports.apihubPluginInstanceAuthConfigApiKeyConfigToTerraform = apihubPluginInstanceAuthConfigApiKeyConfigToTerraform;
exports.apihubPluginInstanceAuthConfigApiKeyConfigToHclTerraform = apihubPluginInstanceAuthConfigApiKeyConfigToHclTerraform;
exports.apihubPluginInstanceAuthConfigGoogleServiceAccountConfigToTerraform = apihubPluginInstanceAuthConfigGoogleServiceAccountConfigToTerraform;
exports.apihubPluginInstanceAuthConfigGoogleServiceAccountConfigToHclTerraform = apihubPluginInstanceAuthConfigGoogleServiceAccountConfigToHclTerraform;
exports.apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToTerraform = apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToTerraform;
exports.apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToHclTerraform = apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToHclTerraform;
exports.apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigToTerraform = apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigToTerraform;
exports.apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigToHclTerraform = apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigToHclTerraform;
exports.apihubPluginInstanceAuthConfigUserPasswordConfigPasswordToTerraform = apihubPluginInstanceAuthConfigUserPasswordConfigPasswordToTerraform;
exports.apihubPluginInstanceAuthConfigUserPasswordConfigPasswordToHclTerraform = apihubPluginInstanceAuthConfigUserPasswordConfigPasswordToHclTerraform;
exports.apihubPluginInstanceAuthConfigUserPasswordConfigToTerraform = apihubPluginInstanceAuthConfigUserPasswordConfigToTerraform;
exports.apihubPluginInstanceAuthConfigUserPasswordConfigToHclTerraform = apihubPluginInstanceAuthConfigUserPasswordConfigToHclTerraform;
exports.apihubPluginInstanceAuthConfigToTerraform = apihubPluginInstanceAuthConfigToTerraform;
exports.apihubPluginInstanceAuthConfigToHclTerraform = apihubPluginInstanceAuthConfigToHclTerraform;
exports.apihubPluginInstanceTimeoutsToTerraform = apihubPluginInstanceTimeoutsToTerraform;
exports.apihubPluginInstanceTimeoutsToHclTerraform = apihubPluginInstanceTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function apihubPluginInstanceActionsHubInstanceActionLastExecutionToTerraform(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 {};
}
function apihubPluginInstanceActionsHubInstanceActionLastExecutionToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class ApihubPluginInstanceActionsHubInstanceActionLastExecutionOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// end_time - computed: true, optional: false, required: false
get endTime() {
return this.getStringAttribute('end_time');
}
// error_message - computed: true, optional: false, required: false
get errorMessage() {
return this.getStringAttribute('error_message');
}
// result - computed: true, optional: false, required: false
get result() {
return this.getStringAttribute('result');
}
// start_time - computed: true, optional: false, required: false
get startTime() {
return this.getStringAttribute('start_time');
}
}
exports.ApihubPluginInstanceActionsHubInstanceActionLastExecutionOutputReference = ApihubPluginInstanceActionsHubInstanceActionLastExecutionOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsHubInstanceActionLastExecutionOutputReference[_a] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsHubInstanceActionLastExecutionOutputReference", version: "16.3.0" };
class ApihubPluginInstanceActionsHubInstanceActionLastExecutionList 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 ApihubPluginInstanceActionsHubInstanceActionLastExecutionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApihubPluginInstanceActionsHubInstanceActionLastExecutionList = ApihubPluginInstanceActionsHubInstanceActionLastExecutionList;
_b = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsHubInstanceActionLastExecutionList[_b] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsHubInstanceActionLastExecutionList", version: "16.3.0" };
function apihubPluginInstanceActionsHubInstanceActionToTerraform(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 {};
}
function apihubPluginInstanceActionsHubInstanceActionToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class ApihubPluginInstanceActionsHubInstanceActionOutputReference 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;
// last_execution - computed: true, optional: false, required: false
this._lastExecution = new ApihubPluginInstanceActionsHubInstanceActionLastExecutionList(this, "last_execution", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// current_execution_state - computed: true, optional: false, required: false
get currentExecutionState() {
return this.getStringAttribute('current_execution_state');
}
get lastExecution() {
return this._lastExecution;
}
}
exports.ApihubPluginInstanceActionsHubInstanceActionOutputReference = ApihubPluginInstanceActionsHubInstanceActionOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsHubInstanceActionOutputReference[_c] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsHubInstanceActionOutputReference", version: "16.3.0" };
class ApihubPluginInstanceActionsHubInstanceActionList 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 ApihubPluginInstanceActionsHubInstanceActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApihubPluginInstanceActionsHubInstanceActionList = ApihubPluginInstanceActionsHubInstanceActionList;
_d = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsHubInstanceActionList[_d] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsHubInstanceActionList", version: "16.3.0" };
function apihubPluginInstanceActionsCurationConfigCustomCurationToTerraform(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 {
curation: cdktf.stringToTerraform(struct.curation),
};
}
function apihubPluginInstanceActionsCurationConfigCustomCurationToHclTerraform(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 = {
curation: {
value: cdktf.stringToHclTerraform(struct.curation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceActionsCurationConfigCustomCurationOutputReference 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._curation !== undefined) {
hasAnyValues = true;
internalValueResult.curation = this._curation;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._curation = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._curation = value.curation;
}
}
get curation() {
return this.getStringAttribute('curation');
}
set curation(value) {
this._curation = value;
}
// Temporarily expose input value. Use with caution.
get curationInput() {
return this._curation;
}
}
exports.ApihubPluginInstanceActionsCurationConfigCustomCurationOutputReference = ApihubPluginInstanceActionsCurationConfigCustomCurationOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsCurationConfigCustomCurationOutputReference[_e] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsCurationConfigCustomCurationOutputReference", version: "16.3.0" };
function apihubPluginInstanceActionsCurationConfigToTerraform(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 {
curation_type: cdktf.stringToTerraform(struct.curationType),
custom_curation: apihubPluginInstanceActionsCurationConfigCustomCurationToTerraform(struct.customCuration),
};
}
function apihubPluginInstanceActionsCurationConfigToHclTerraform(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 = {
curation_type: {
value: cdktf.stringToHclTerraform(struct.curationType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
custom_curation: {
value: apihubPluginInstanceActionsCurationConfigCustomCurationToHclTerraform(struct.customCuration),
isBlock: true,
type: "list",
storageClassType: "ApihubPluginInstanceActionsCurationConfigCustomCurationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceActionsCurationConfigOutputReference 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;
// custom_curation - computed: false, optional: true, required: false
this._customCuration = new ApihubPluginInstanceActionsCurationConfigCustomCurationOutputReference(this, "custom_curation");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._curationType !== undefined) {
hasAnyValues = true;
internalValueResult.curationType = this._curationType;
}
if (this._customCuration?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.customCuration = this._customCuration?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._curationType = undefined;
this._customCuration.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._curationType = value.curationType;
this._customCuration.internalValue = value.customCuration;
}
}
get curationType() {
return this.getStringAttribute('curation_type');
}
set curationType(value) {
this._curationType = value;
}
resetCurationType() {
this._curationType = undefined;
}
// Temporarily expose input value. Use with caution.
get curationTypeInput() {
return this._curationType;
}
get customCuration() {
return this._customCuration;
}
putCustomCuration(value) {
this._customCuration.internalValue = value;
}
resetCustomCuration() {
this._customCuration.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get customCurationInput() {
return this._customCuration.internalValue;
}
}
exports.ApihubPluginInstanceActionsCurationConfigOutputReference = ApihubPluginInstanceActionsCurationConfigOutputReference;
_f = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsCurationConfigOutputReference[_f] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsCurationConfigOutputReference", version: "16.3.0" };
function apihubPluginInstanceActionsToTerraform(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 {
action_id: cdktf.stringToTerraform(struct.actionId),
schedule_cron_expression: cdktf.stringToTerraform(struct.scheduleCronExpression),
schedule_time_zone: cdktf.stringToTerraform(struct.scheduleTimeZone),
curation_config: apihubPluginInstanceActionsCurationConfigToTerraform(struct.curationConfig),
};
}
function apihubPluginInstanceActionsToHclTerraform(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 = {
action_id: {
value: cdktf.stringToHclTerraform(struct.actionId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schedule_cron_expression: {
value: cdktf.stringToHclTerraform(struct.scheduleCronExpression),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schedule_time_zone: {
value: cdktf.stringToHclTerraform(struct.scheduleTimeZone),
isBlock: false,
type: "simple",
storageClassType: "string",
},
curation_config: {
value: apihubPluginInstanceActionsCurationConfigToHclTerraform(struct.curationConfig),
isBlock: true,
type: "list",
storageClassType: "ApihubPluginInstanceActionsCurationConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceActionsOutputReference 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;
// hub_instance_action - computed: true, optional: false, required: false
this._hubInstanceAction = new ApihubPluginInstanceActionsHubInstanceActionList(this, "hub_instance_action", false);
// curation_config - computed: false, optional: true, required: false
this._curationConfig = new ApihubPluginInstanceActionsCurationConfigOutputReference(this, "curation_config");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._actionId !== undefined) {
hasAnyValues = true;
internalValueResult.actionId = this._actionId;
}
if (this._scheduleCronExpression !== undefined) {
hasAnyValues = true;
internalValueResult.scheduleCronExpression = this._scheduleCronExpression;
}
if (this._scheduleTimeZone !== undefined) {
hasAnyValues = true;
internalValueResult.scheduleTimeZone = this._scheduleTimeZone;
}
if (this._curationConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.curationConfig = this._curationConfig?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._actionId = undefined;
this._scheduleCronExpression = undefined;
this._scheduleTimeZone = undefined;
this._curationConfig.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._actionId = value.actionId;
this._scheduleCronExpression = value.scheduleCronExpression;
this._scheduleTimeZone = value.scheduleTimeZone;
this._curationConfig.internalValue = value.curationConfig;
}
}
get actionId() {
return this.getStringAttribute('action_id');
}
set actionId(value) {
this._actionId = value;
}
// Temporarily expose input value. Use with caution.
get actionIdInput() {
return this._actionId;
}
get hubInstanceAction() {
return this._hubInstanceAction;
}
get scheduleCronExpression() {
return this.getStringAttribute('schedule_cron_expression');
}
set scheduleCronExpression(value) {
this._scheduleCronExpression = value;
}
resetScheduleCronExpression() {
this._scheduleCronExpression = undefined;
}
// Temporarily expose input value. Use with caution.
get scheduleCronExpressionInput() {
return this._scheduleCronExpression;
}
get scheduleTimeZone() {
return this.getStringAttribute('schedule_time_zone');
}
set scheduleTimeZone(value) {
this._scheduleTimeZone = value;
}
resetScheduleTimeZone() {
this._scheduleTimeZone = undefined;
}
// Temporarily expose input value. Use with caution.
get scheduleTimeZoneInput() {
return this._scheduleTimeZone;
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
get curationConfig() {
return this._curationConfig;
}
putCurationConfig(value) {
this._curationConfig.internalValue = value;
}
resetCurationConfig() {
this._curationConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get curationConfigInput() {
return this._curationConfig.internalValue;
}
}
exports.ApihubPluginInstanceActionsOutputReference = ApihubPluginInstanceActionsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsOutputReference[_g] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsOutputReference", version: "16.3.0" };
class ApihubPluginInstanceActionsList 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 ApihubPluginInstanceActionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ApihubPluginInstanceActionsList = ApihubPluginInstanceActionsList;
_h = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceActionsList[_h] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceActionsList", version: "16.3.0" };
function apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToTerraform(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 {
secret_version: cdktf.stringToTerraform(struct.secretVersion),
};
}
function apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToHclTerraform(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 = {
secret_version: {
value: cdktf.stringToHclTerraform(struct.secretVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyOutputReference 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._secretVersion !== undefined) {
hasAnyValues = true;
internalValueResult.secretVersion = this._secretVersion;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._secretVersion = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._secretVersion = value.secretVersion;
}
}
get secretVersion() {
return this.getStringAttribute('secret_version');
}
set secretVersion(value) {
this._secretVersion = value;
}
// Temporarily expose input value. Use with caution.
get secretVersionInput() {
return this._secretVersion;
}
}
exports.ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyOutputReference = ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyOutputReference;
_j = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyOutputReference[_j] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyOutputReference", version: "16.3.0" };
function apihubPluginInstanceAuthConfigApiKeyConfigToTerraform(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 {
http_element_location: cdktf.stringToTerraform(struct.httpElementLocation),
name: cdktf.stringToTerraform(struct.name),
api_key: apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToTerraform(struct.apiKey),
};
}
function apihubPluginInstanceAuthConfigApiKeyConfigToHclTerraform(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 = {
http_element_location: {
value: cdktf.stringToHclTerraform(struct.httpElementLocation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
api_key: {
value: apihubPluginInstanceAuthConfigApiKeyConfigApiKeyToHclTerraform(struct.apiKey),
isBlock: true,
type: "list",
storageClassType: "ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceAuthConfigApiKeyConfigOutputReference 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;
// api_key - computed: false, optional: false, required: true
this._apiKey = new ApihubPluginInstanceAuthConfigApiKeyConfigApiKeyOutputReference(this, "api_key");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._httpElementLocation !== undefined) {
hasAnyValues = true;
internalValueResult.httpElementLocation = this._httpElementLocation;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._apiKey?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.apiKey = this._apiKey?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._httpElementLocation = undefined;
this._name = undefined;
this._apiKey.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._httpElementLocation = value.httpElementLocation;
this._name = value.name;
this._apiKey.internalValue = value.apiKey;
}
}
get httpElementLocation() {
return this.getStringAttribute('http_element_location');
}
set httpElementLocation(value) {
this._httpElementLocation = value;
}
// Temporarily expose input value. Use with caution.
get httpElementLocationInput() {
return this._httpElementLocation;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get apiKey() {
return this._apiKey;
}
putApiKey(value) {
this._apiKey.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get apiKeyInput() {
return this._apiKey.internalValue;
}
}
exports.ApihubPluginInstanceAuthConfigApiKeyConfigOutputReference = ApihubPluginInstanceAuthConfigApiKeyConfigOutputReference;
_k = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceAuthConfigApiKeyConfigOutputReference[_k] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceAuthConfigApiKeyConfigOutputReference", version: "16.3.0" };
function apihubPluginInstanceAuthConfigGoogleServiceAccountConfigToTerraform(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 {
service_account: cdktf.stringToTerraform(struct.serviceAccount),
};
}
function apihubPluginInstanceAuthConfigGoogleServiceAccountConfigToHclTerraform(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 = {
service_account: {
value: cdktf.stringToHclTerraform(struct.serviceAccount),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceAuthConfigGoogleServiceAccountConfigOutputReference 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._serviceAccount !== undefined) {
hasAnyValues = true;
internalValueResult.serviceAccount = this._serviceAccount;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._serviceAccount = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._serviceAccount = value.serviceAccount;
}
}
get serviceAccount() {
return this.getStringAttribute('service_account');
}
set serviceAccount(value) {
this._serviceAccount = value;
}
// Temporarily expose input value. Use with caution.
get serviceAccountInput() {
return this._serviceAccount;
}
}
exports.ApihubPluginInstanceAuthConfigGoogleServiceAccountConfigOutputReference = ApihubPluginInstanceAuthConfigGoogleServiceAccountConfigOutputReference;
_l = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceAuthConfigGoogleServiceAccountConfigOutputReference[_l] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceAuthConfigGoogleServiceAccountConfigOutputReference", version: "16.3.0" };
function apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToTerraform(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 {
secret_version: cdktf.stringToTerraform(struct.secretVersion),
};
}
function apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToHclTerraform(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 = {
secret_version: {
value: cdktf.stringToHclTerraform(struct.secretVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretOutputReference 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._secretVersion !== undefined) {
hasAnyValues = true;
internalValueResult.secretVersion = this._secretVersion;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._secretVersion = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._secretVersion = value.secretVersion;
}
}
get secretVersion() {
return this.getStringAttribute('secret_version');
}
set secretVersion(value) {
this._secretVersion = value;
}
// Temporarily expose input value. Use with caution.
get secretVersionInput() {
return this._secretVersion;
}
}
exports.ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretOutputReference = ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretOutputReference;
_m = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretOutputReference[_m] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretOutputReference", version: "16.3.0" };
function apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
client_id: cdktf.stringToTerraform(struct.clientId),
client_secret: apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToTerraform(struct.clientSecret),
};
}
function apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
client_secret: {
value: apihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretToHclTerraform(struct.clientSecret),
isBlock: true,
type: "list",
storageClassType: "ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigOutputReference 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_secret - computed: false, optional: false, required: true
this._clientSecret = new ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigClientSecretOutputReference(this, "client_secret");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._clientSecret?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.clientSecret = this._clientSecret?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._clientId = undefined;
this._clientSecret.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._clientId = value.clientId;
this._clientSecret.internalValue = value.clientSecret;
}
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get clientSecret() {
return this._clientSecret;
}
putClientSecret(value) {
this._clientSecret.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get clientSecretInput() {
return this._clientSecret.internalValue;
}
}
exports.ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigOutputReference = ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigOutputReference;
_o = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigOutputReference[_o] = { fqn: "@cdktf/provider-google.apihubPluginInstance.ApihubPluginInstanceAuthConfigOauth2ClientCredentialsConfigOutputReference", version: "16.3.0" };
function apihubPluginInstanceAuthConfigUserPasswordConfigPasswordToTerraform(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 {
secret_version: cdktf.stringToTerraform(struct.secretVersion),
};
}
function apihubPluginInstanceAuthConfigUserPasswordConfigPasswordToHclTerraform(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 = {
secret_version: {
value: cdktf.stringToHclTerraform(struct.secretVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ApihubPluginInstanceAuthConfigUserPasswordConfigPasswordOutputReference 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._secretVersion !== undefined) {
hasAnyValues = true;
internalValueResult.secretVersion = this._secretVersion;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._secretVersion = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._secretVersion = value.secretVersion;
}
}
get secretVersion() {
return this.getStringAttribute('secret_version');
}
set secretVersion(value) {
this._secretVersion = value;
}
// Temporarily expose input value. Use with caution.
get secretVersionInput() {
return this._secretVersion;
}
}
exports.ApihubPluginInstanceAuthConfigUserPasswordConfigPasswordOutputReference = ApihubPluginInstanceAuthConfigUserPasswordConfigPasswordOutputReference;
_p = JSII_RTTI_SYMBOL_1;
ApihubPluginInstanceAuthConfigU