rhizo-co-terraform-provider-oci
Version:
Prebuilt oci Provider for Terraform CDK (cdktf)
1,073 lines • 177 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BlockchainBlockchainPlatform = exports.BlockchainBlockchainPlatformTimeoutsOutputReference = exports.blockchainBlockchainPlatformTimeoutsToHclTerraform = exports.blockchainBlockchainPlatformTimeoutsToTerraform = exports.BlockchainBlockchainPlatformReplicasOutputReference = exports.blockchainBlockchainPlatformReplicasToHclTerraform = exports.blockchainBlockchainPlatformReplicasToTerraform = exports.BlockchainBlockchainPlatformHostOcpuUtilizationInfoList = exports.BlockchainBlockchainPlatformHostOcpuUtilizationInfoOutputReference = exports.blockchainBlockchainPlatformHostOcpuUtilizationInfoToHclTerraform = exports.blockchainBlockchainPlatformHostOcpuUtilizationInfoToTerraform = exports.BlockchainBlockchainPlatformComponentDetailsList = exports.BlockchainBlockchainPlatformComponentDetailsOutputReference = exports.blockchainBlockchainPlatformComponentDetailsToHclTerraform = exports.blockchainBlockchainPlatformComponentDetailsToTerraform = exports.BlockchainBlockchainPlatformComponentDetailsPeersList = exports.BlockchainBlockchainPlatformComponentDetailsPeersOutputReference = exports.blockchainBlockchainPlatformComponentDetailsPeersToHclTerraform = exports.blockchainBlockchainPlatformComponentDetailsPeersToTerraform = exports.BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamList = exports.BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamOutputReference = exports.blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToHclTerraform = exports.blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToTerraform = exports.BlockchainBlockchainPlatformComponentDetailsOsnsList = exports.BlockchainBlockchainPlatformComponentDetailsOsnsOutputReference = exports.blockchainBlockchainPlatformComponentDetailsOsnsToHclTerraform = exports.blockchainBlockchainPlatformComponentDetailsOsnsToTerraform = exports.BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamList = exports.BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamOutputReference = exports.blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToHclTerraform = exports.blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToTerraform(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 {};
}
exports.blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToTerraform = blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToTerraform;
function blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToHclTerraform(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;
}
exports.blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToHclTerraform = blockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamToHclTerraform;
class BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamOutputReference 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;
}
}
// ocpu_allocation_number - computed: true, optional: false, required: false
get ocpuAllocationNumber() {
return this.getNumberAttribute('ocpu_allocation_number');
}
}
exports.BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamOutputReference = BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamOutputReference;
_a = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamOutputReference", version: "1.0.0" };
class BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamList 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 BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamList = BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamList;
_b = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamList[_b] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamList", version: "1.0.0" };
function blockchainBlockchainPlatformComponentDetailsOsnsToTerraform(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 {};
}
exports.blockchainBlockchainPlatformComponentDetailsOsnsToTerraform = blockchainBlockchainPlatformComponentDetailsOsnsToTerraform;
function blockchainBlockchainPlatformComponentDetailsOsnsToHclTerraform(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;
}
exports.blockchainBlockchainPlatformComponentDetailsOsnsToHclTerraform = blockchainBlockchainPlatformComponentDetailsOsnsToHclTerraform;
class BlockchainBlockchainPlatformComponentDetailsOsnsOutputReference 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;
// ocpu_allocation_param - computed: true, optional: false, required: false
this._ocpuAllocationParam = new BlockchainBlockchainPlatformComponentDetailsOsnsOcpuAllocationParamList(this, "ocpu_allocation_param", 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;
}
}
// ad - computed: true, optional: false, required: false
get ad() {
return this.getStringAttribute('ad');
}
get ocpuAllocationParam() {
return this._ocpuAllocationParam;
}
// osn_key - computed: true, optional: false, required: false
get osnKey() {
return this.getStringAttribute('osn_key');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
}
exports.BlockchainBlockchainPlatformComponentDetailsOsnsOutputReference = BlockchainBlockchainPlatformComponentDetailsOsnsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsOsnsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsOsnsOutputReference", version: "1.0.0" };
class BlockchainBlockchainPlatformComponentDetailsOsnsList 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 BlockchainBlockchainPlatformComponentDetailsOsnsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BlockchainBlockchainPlatformComponentDetailsOsnsList = BlockchainBlockchainPlatformComponentDetailsOsnsList;
_d = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsOsnsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsOsnsList", version: "1.0.0" };
function blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToTerraform(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 {};
}
exports.blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToTerraform = blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToTerraform;
function blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToHclTerraform(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;
}
exports.blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToHclTerraform = blockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamToHclTerraform;
class BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamOutputReference 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;
}
}
// ocpu_allocation_number - computed: true, optional: false, required: false
get ocpuAllocationNumber() {
return this.getNumberAttribute('ocpu_allocation_number');
}
}
exports.BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamOutputReference = BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamOutputReference;
_e = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamOutputReference", version: "1.0.0" };
class BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamList 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 BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamList = BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamList;
_f = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamList[_f] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamList", version: "1.0.0" };
function blockchainBlockchainPlatformComponentDetailsPeersToTerraform(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 {};
}
exports.blockchainBlockchainPlatformComponentDetailsPeersToTerraform = blockchainBlockchainPlatformComponentDetailsPeersToTerraform;
function blockchainBlockchainPlatformComponentDetailsPeersToHclTerraform(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;
}
exports.blockchainBlockchainPlatformComponentDetailsPeersToHclTerraform = blockchainBlockchainPlatformComponentDetailsPeersToHclTerraform;
class BlockchainBlockchainPlatformComponentDetailsPeersOutputReference 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;
// ocpu_allocation_param - computed: true, optional: false, required: false
this._ocpuAllocationParam = new BlockchainBlockchainPlatformComponentDetailsPeersOcpuAllocationParamList(this, "ocpu_allocation_param", 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;
}
}
// ad - computed: true, optional: false, required: false
get ad() {
return this.getStringAttribute('ad');
}
// alias - computed: true, optional: false, required: false
get alias() {
return this.getStringAttribute('alias');
}
// host - computed: true, optional: false, required: false
get host() {
return this.getStringAttribute('host');
}
get ocpuAllocationParam() {
return this._ocpuAllocationParam;
}
// peer_key - computed: true, optional: false, required: false
get peerKey() {
return this.getStringAttribute('peer_key');
}
// role - computed: true, optional: false, required: false
get role() {
return this.getStringAttribute('role');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
}
exports.BlockchainBlockchainPlatformComponentDetailsPeersOutputReference = BlockchainBlockchainPlatformComponentDetailsPeersOutputReference;
_g = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsPeersOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsPeersOutputReference", version: "1.0.0" };
class BlockchainBlockchainPlatformComponentDetailsPeersList 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 BlockchainBlockchainPlatformComponentDetailsPeersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BlockchainBlockchainPlatformComponentDetailsPeersList = BlockchainBlockchainPlatformComponentDetailsPeersList;
_h = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsPeersList[_h] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsPeersList", version: "1.0.0" };
function blockchainBlockchainPlatformComponentDetailsToTerraform(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 {};
}
exports.blockchainBlockchainPlatformComponentDetailsToTerraform = blockchainBlockchainPlatformComponentDetailsToTerraform;
function blockchainBlockchainPlatformComponentDetailsToHclTerraform(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;
}
exports.blockchainBlockchainPlatformComponentDetailsToHclTerraform = blockchainBlockchainPlatformComponentDetailsToHclTerraform;
class BlockchainBlockchainPlatformComponentDetailsOutputReference 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;
// osns - computed: true, optional: false, required: false
this._osns = new BlockchainBlockchainPlatformComponentDetailsOsnsList(this, "osns", false);
// peers - computed: true, optional: false, required: false
this._peers = new BlockchainBlockchainPlatformComponentDetailsPeersList(this, "peers", 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;
}
}
get osns() {
return this._osns;
}
get peers() {
return this._peers;
}
}
exports.BlockchainBlockchainPlatformComponentDetailsOutputReference = BlockchainBlockchainPlatformComponentDetailsOutputReference;
_j = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsOutputReference", version: "1.0.0" };
class BlockchainBlockchainPlatformComponentDetailsList 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 BlockchainBlockchainPlatformComponentDetailsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BlockchainBlockchainPlatformComponentDetailsList = BlockchainBlockchainPlatformComponentDetailsList;
_k = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformComponentDetailsList[_k] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformComponentDetailsList", version: "1.0.0" };
function blockchainBlockchainPlatformHostOcpuUtilizationInfoToTerraform(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 {};
}
exports.blockchainBlockchainPlatformHostOcpuUtilizationInfoToTerraform = blockchainBlockchainPlatformHostOcpuUtilizationInfoToTerraform;
function blockchainBlockchainPlatformHostOcpuUtilizationInfoToHclTerraform(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;
}
exports.blockchainBlockchainPlatformHostOcpuUtilizationInfoToHclTerraform = blockchainBlockchainPlatformHostOcpuUtilizationInfoToHclTerraform;
class BlockchainBlockchainPlatformHostOcpuUtilizationInfoOutputReference 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;
}
}
// host - computed: true, optional: false, required: false
get host() {
return this.getStringAttribute('host');
}
// ocpu_capacity_number - computed: true, optional: false, required: false
get ocpuCapacityNumber() {
return this.getNumberAttribute('ocpu_capacity_number');
}
// ocpu_utilization_number - computed: true, optional: false, required: false
get ocpuUtilizationNumber() {
return this.getNumberAttribute('ocpu_utilization_number');
}
}
exports.BlockchainBlockchainPlatformHostOcpuUtilizationInfoOutputReference = BlockchainBlockchainPlatformHostOcpuUtilizationInfoOutputReference;
_l = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformHostOcpuUtilizationInfoOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformHostOcpuUtilizationInfoOutputReference", version: "1.0.0" };
class BlockchainBlockchainPlatformHostOcpuUtilizationInfoList 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 BlockchainBlockchainPlatformHostOcpuUtilizationInfoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.BlockchainBlockchainPlatformHostOcpuUtilizationInfoList = BlockchainBlockchainPlatformHostOcpuUtilizationInfoList;
_m = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformHostOcpuUtilizationInfoList[_m] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformHostOcpuUtilizationInfoList", version: "1.0.0" };
function blockchainBlockchainPlatformReplicasToTerraform(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 {
ca_count: cdktf.numberToTerraform(struct.caCount),
console_count: cdktf.numberToTerraform(struct.consoleCount),
proxy_count: cdktf.numberToTerraform(struct.proxyCount),
};
}
exports.blockchainBlockchainPlatformReplicasToTerraform = blockchainBlockchainPlatformReplicasToTerraform;
function blockchainBlockchainPlatformReplicasToHclTerraform(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 = {
ca_count: {
value: cdktf.numberToHclTerraform(struct.caCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
console_count: {
value: cdktf.numberToHclTerraform(struct.consoleCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
proxy_count: {
value: cdktf.numberToHclTerraform(struct.proxyCount),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.blockchainBlockchainPlatformReplicasToHclTerraform = blockchainBlockchainPlatformReplicasToHclTerraform;
class BlockchainBlockchainPlatformReplicasOutputReference 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._caCount !== undefined) {
hasAnyValues = true;
internalValueResult.caCount = this._caCount;
}
if (this._consoleCount !== undefined) {
hasAnyValues = true;
internalValueResult.consoleCount = this._consoleCount;
}
if (this._proxyCount !== undefined) {
hasAnyValues = true;
internalValueResult.proxyCount = this._proxyCount;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._caCount = undefined;
this._consoleCount = undefined;
this._proxyCount = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._caCount = value.caCount;
this._consoleCount = value.consoleCount;
this._proxyCount = value.proxyCount;
}
}
get caCount() {
return this.getNumberAttribute('ca_count');
}
set caCount(value) {
this._caCount = value;
}
resetCaCount() {
this._caCount = undefined;
}
// Temporarily expose input value. Use with caution.
get caCountInput() {
return this._caCount;
}
get consoleCount() {
return this.getNumberAttribute('console_count');
}
set consoleCount(value) {
this._consoleCount = value;
}
resetConsoleCount() {
this._consoleCount = undefined;
}
// Temporarily expose input value. Use with caution.
get consoleCountInput() {
return this._consoleCount;
}
get proxyCount() {
return this.getNumberAttribute('proxy_count');
}
set proxyCount(value) {
this._proxyCount = value;
}
resetProxyCount() {
this._proxyCount = undefined;
}
// Temporarily expose input value. Use with caution.
get proxyCountInput() {
return this._proxyCount;
}
}
exports.BlockchainBlockchainPlatformReplicasOutputReference = BlockchainBlockchainPlatformReplicasOutputReference;
_o = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformReplicasOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformReplicasOutputReference", version: "1.0.0" };
function blockchainBlockchainPlatformTimeoutsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
create: cdktf.stringToTerraform(struct.create),
delete: cdktf.stringToTerraform(struct.delete),
update: cdktf.stringToTerraform(struct.update),
};
}
exports.blockchainBlockchainPlatformTimeoutsToTerraform = blockchainBlockchainPlatformTimeoutsToTerraform;
function blockchainBlockchainPlatformTimeoutsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {
create: {
value: cdktf.stringToHclTerraform(struct.create),
isBlock: false,
type: "simple",
storageClassType: "string",
},
delete: {
value: cdktf.stringToHclTerraform(struct.delete),
isBlock: false,
type: "simple",
storageClassType: "string",
},
update: {
value: cdktf.stringToHclTerraform(struct.update),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.blockchainBlockchainPlatformTimeoutsToHclTerraform = blockchainBlockchainPlatformTimeoutsToHclTerraform;
class BlockchainBlockchainPlatformTimeoutsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.BlockchainBlockchainPlatformTimeoutsOutputReference = BlockchainBlockchainPlatformTimeoutsOutputReference;
_p = JSII_RTTI_SYMBOL_1;
BlockchainBlockchainPlatformTimeoutsOutputReference[_p] = { fqn: "rhizo-co-terraform-provider-oci.blockchainBlockchainPlatform.BlockchainBlockchainPlatformTimeoutsOutputReference", version: "1.0.0" };
/**
* Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/blockchain_blockchain_platform oci_blockchain_blockchain_platform}
*/
class BlockchainBlockchainPlatform extends cdktf.TerraformResource {
// ==============
// STATIC Methods
// ==============
/**
* Generates CDKTF code for importing a BlockchainBlockchainPlatform resource upon running "cdktf plan <stack-name>"
* @param scope The scope in which to define this construct
* @param importToId The construct id used in the generated config for the BlockchainBlockchainPlatform to import
* @param importFromId The id of the existing BlockchainBlockchainPlatform that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/blockchain_blockchain_platform#import import section} in the documentation of this resource for the id to use
* @param provider? Optional instance of the provider where the BlockchainBlockchainPlatform to import is found
*/
static generateConfigForImport(scope, importToId, importFromId, provider) {
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_blockchain_blockchain_platform", importId: importFromId, provider });
}
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/blockchain_blockchain_platform oci_blockchain_blockchain_platform} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options BlockchainBlockchainPlatformConfig
*/
constructor(scope, id, config) {
super(scope, id, {
terraformResourceType: 'oci_blockchain_blockchain_platform',
terraformGeneratorMetadata: {
providerName: 'oci',
providerVersion: '6.18.0',
providerVersionConstraint: '~> 6.18.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
// component_details - computed: true, optional: false, required: false
this._componentDetails = new BlockchainBlockchainPlatformComponentDetailsList(this, "component_details", false);
// host_ocpu_utilization_info - computed: true, optional: false, required: false
this._hostOcpuUtilizationInfo = new BlockchainBlockchainPlatformHostOcpuUtilizationInfoList(this, "host_ocpu_utilization_info", false);
// replicas - computed: false, optional: true, required: false
this._replicas = new BlockchainBlockchainPlatformReplicasOutputReference(this, "replicas");
// timeouts - computed: false, optional: true, required: false
this._timeouts = new BlockchainBlockchainPlatformTimeoutsOutputReference(this, "timeouts");
this._caCertArchiveText = config.caCertArchiveText;
this._compartmentId = config.compartmentId;
this._computeShape = config.computeShape;
this._definedTags = config.definedTags;
this._description = config.description;
this._displayName = config.displayName;
this._federatedUserId = config.federatedUserId;
this._freeformTags = config.freeformTags;
this._id = config.id;
this._idcsAccessToken = config.idcsAccessToken;
this._isByol = config.isByol;
this._loadBalancerShape = config.loadBalancerShape;
this._platformRole = config.platformRole;
this._platformVersion = config.platformVersion;
this._storageSizeInTbs = config.storageSizeInTbs;
this._totalOcpuCapacity = config.totalOcpuCapacity;
this._replicas.internalValue = config.replicas;
this._timeouts.internalValue = config.timeouts;
}
get caCertArchiveText() {
return this.getStringAttribute('ca_cert_archive_text');
}
set caCertArchiveText(value) {
this._caCertArchiveText = value;
}
resetCaCertArchiveText() {
this._caCertArchiveText = undefined;
}
// Temporarily expose input value. Use with caution.
get caCertArchiveTextInput() {
return this._caCertArchiveText;
}
get compartmentId() {
return this.getStringAttribute('compartment_id');
}
set compartmentId(value) {
this._compartmentId = value;
}
// Temporarily expose input value. Use with caution.
get compartmentIdInput() {
return this._compartmentId;
}
get componentDetails() {
return this._componentDetails;
}
get computeShape() {
return this.getStringAttribute('compute_shape');
}
set computeShape(value) {
this._computeShape = value;
}
// Temporarily expose input value. Use with caution.
get computeShapeInput() {
return this._computeShape;
}
get definedTags() {
return this.getStringMapAttribute('defined_tags');
}
set definedTags(value) {
this._definedTags = value;
}
resetDefinedTags() {
this._definedTags = undefined;
}
// Temporarily expose input value. Use with caution.
get definedTagsInput() {
return this._definedTags;
}
get description() {
return this.getStringAttribute('description');
}
set description(value) {
this._description = value;
}
resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
get descriptionInput() {
return this._description;
}
get displayName() {
return this.getStringAttribute('display_name');
}
set displayName(value) {
this._displayName = value;
}
// Temporarily expose input value. Use with caution.
get displayNameInput() {
return this._displayName;
}
get federatedUserId() {
return this.getStringAttribute('federated_user_id');
}
set federatedUserId(value) {
this._federatedUserId = value;
}
resetFederatedUserId() {
this._federatedUserId = undefined;
}
// Temporarily expose input value. Use with caution.
get federatedUserIdInput() {
return this._federatedUserId;
}
get freeformTags() {
return this.getStringMapAttribute('freeform_tags');
}
set freeformTags(value) {
this._freeformTags = value;
}
resetFreeformTags() {
this._freeformTags = undefined;
}
// Temporarily expose input value. Use with caution.
get freeformTagsInput() {
return this._freeformTags;
}
get hostOcpuUtilizationInfo() {
return this._hostOcpuUtilizationInfo;
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get idcsAccessToken() {
return this.getStringAttribute('idcs_access_token');
}
set idcsAccessToken(value) {
this._idcsAccessToken = value;
}
// Temporarily expose input value. Use with caution.
get idcsAccessTokenInput() {
return this._idcsAccessToken;
}
get isByol() {
return this.getBooleanAttribute('is_byol');
}
set isByol(value) {
this._isByol = value;
}
resetIsByol() {
this._isByol = undefined;
}
// Temporarily expose input value. Use with caution.
get isByolInput() {
return this._isByol;
}
// is_multi_ad - computed: true, optional: false, required: false
get isMultiAd() {
return this.getBooleanAttribute('is_multi_ad');
}
// lifecycle_details - computed: true, optional: false, required: false
get lifecycleDetails() {
return this.getStringAttribute('lifecycle_details');
}
get loadBalancerShape() {
return this.getStringAttribute('load_balancer_shape');
}
set loadBalancerShape(value) {
this._loadBalancerShape = value;
}
resetLoadBalancerShape() {
this._loadBalancerShape = undefined;
}
// Temporarily expose input value. Use with caution.
get loadBalancerShapeInput() {
return this._loadBalancerShape;
}
get platformRole() {
return this.getStringAttribute('platform_role');
}
set platformRole(value) {
this._platformRole = value;
}
// Temporarily expose input value. Use with caution.
get platformRoleInput() {
return this._platformRole;
}
// platform_shape_type - computed: true, optional: false, required: false
get platformShapeType() {
return this.getStringAttribute('platform_shape_type');
}
get platformVersion() {
return this.getStringAttribute('platform_version');
}
set platformVersion(value) {
this._platformVersion = value;
}
resetPlatformVersion() {
this._platformVersion = undefined;
}
// Temporarily expose input value. Use with caution.
get platformVersionInput() {
return this._platformVersion;
}
// service_endpoint - computed: true, optional: false, required: false
get serviceEndpoint() {
return this.getStringAttribute('service_endpoint');
}
// service_version - computed: true, optional: false, required: false
get serviceVersion() {
return this.getStringAttribute('service_version');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
get storageSizeInTbs() {
return this.getNumberAttribute('storage_size_in_tbs');
}
set storageSizeInTbs(value) {
this._storageSizeInTbs = value;
}
resetStorageSizeInTbs() {
this._storageSizeInTbs = undefined;
}
// Temporarily expose input value. Use with caution.
get storageSizeInTbsInput() {
return this._storageSizeInTbs;
}
// storage_used_in_tbs - computed: true, optional: false, required: false
get storageUsedInTbs() {
return this.getNumberAttribute('storage_used_in_tbs');
}
// time_created - computed: true, optional: false, required: false
get timeCreated() {
return this.getStringAttribute('time_created');
}
// time_updated - computed: true, optional: false, required: false
get timeUpdated() {
return this.getStringAttribute('time_updated');
}
get totalOcpuCapacity() {
return this.getNumberAttribute('total_ocpu_capacity');
}
set totalOcpuCapacity(value) {
this._totalOcpuCapacity = value;
}
resetTotalOcpuCapacity() {
t