UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,000 lines 139 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataGoogleComputeRouterStatus = exports.DataGoogleComputeRouterStatusBestRoutesForRouterList = exports.DataGoogleComputeRouterStatusBestRoutesForRouterOutputReference = exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsList = exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsOutputReference = exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataList = exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataOutputReference = exports.DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsList = exports.DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsOutputReference = exports.DataGoogleComputeRouterStatusBestRoutesList = exports.DataGoogleComputeRouterStatusBestRoutesOutputReference = exports.DataGoogleComputeRouterStatusBestRoutesWarningsList = exports.DataGoogleComputeRouterStatusBestRoutesWarningsOutputReference = exports.DataGoogleComputeRouterStatusBestRoutesWarningsDataList = exports.DataGoogleComputeRouterStatusBestRoutesWarningsDataOutputReference = exports.DataGoogleComputeRouterStatusBestRoutesAsPathsList = exports.DataGoogleComputeRouterStatusBestRoutesAsPathsOutputReference = void 0; exports.dataGoogleComputeRouterStatusBestRoutesAsPathsToTerraform = dataGoogleComputeRouterStatusBestRoutesAsPathsToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesAsPathsToHclTerraform = dataGoogleComputeRouterStatusBestRoutesAsPathsToHclTerraform; exports.dataGoogleComputeRouterStatusBestRoutesWarningsDataToTerraform = dataGoogleComputeRouterStatusBestRoutesWarningsDataToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesWarningsDataToHclTerraform = dataGoogleComputeRouterStatusBestRoutesWarningsDataToHclTerraform; exports.dataGoogleComputeRouterStatusBestRoutesWarningsToTerraform = dataGoogleComputeRouterStatusBestRoutesWarningsToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesWarningsToHclTerraform = dataGoogleComputeRouterStatusBestRoutesWarningsToHclTerraform; exports.dataGoogleComputeRouterStatusBestRoutesToTerraform = dataGoogleComputeRouterStatusBestRoutesToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesToHclTerraform = dataGoogleComputeRouterStatusBestRoutesToHclTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterAsPathsToTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterAsPathsToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterAsPathsToHclTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterAsPathsToHclTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataToTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataToHclTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataToHclTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterWarningsToTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterWarningsToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterWarningsToHclTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterWarningsToHclTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterToTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterToTerraform; exports.dataGoogleComputeRouterStatusBestRoutesForRouterToHclTerraform = dataGoogleComputeRouterStatusBestRoutesForRouterToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataGoogleComputeRouterStatusBestRoutesAsPathsToTerraform(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 dataGoogleComputeRouterStatusBestRoutesAsPathsToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesAsPathsOutputReference 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; } } // as_lists - computed: true, optional: false, required: false get asLists() { return this.getNumberListAttribute('as_lists'); } // path_segment_type - computed: true, optional: false, required: false get pathSegmentType() { return this.getStringAttribute('path_segment_type'); } } exports.DataGoogleComputeRouterStatusBestRoutesAsPathsOutputReference = DataGoogleComputeRouterStatusBestRoutesAsPathsOutputReference; _a = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesAsPathsOutputReference[_a] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesAsPathsOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesAsPathsList 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 DataGoogleComputeRouterStatusBestRoutesAsPathsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesAsPathsList = DataGoogleComputeRouterStatusBestRoutesAsPathsList; _b = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesAsPathsList[_b] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesAsPathsList", version: "14.35.0" }; function dataGoogleComputeRouterStatusBestRoutesWarningsDataToTerraform(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 dataGoogleComputeRouterStatusBestRoutesWarningsDataToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesWarningsDataOutputReference 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; } } // key - computed: true, optional: false, required: false get key() { return this.getStringAttribute('key'); } // value - computed: true, optional: false, required: false get value() { return this.getStringAttribute('value'); } } exports.DataGoogleComputeRouterStatusBestRoutesWarningsDataOutputReference = DataGoogleComputeRouterStatusBestRoutesWarningsDataOutputReference; _c = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesWarningsDataOutputReference[_c] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesWarningsDataOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesWarningsDataList 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 DataGoogleComputeRouterStatusBestRoutesWarningsDataOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesWarningsDataList = DataGoogleComputeRouterStatusBestRoutesWarningsDataList; _d = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesWarningsDataList[_d] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesWarningsDataList", version: "14.35.0" }; function dataGoogleComputeRouterStatusBestRoutesWarningsToTerraform(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 dataGoogleComputeRouterStatusBestRoutesWarningsToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesWarningsOutputReference 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; // data - computed: true, optional: false, required: false this._data = new DataGoogleComputeRouterStatusBestRoutesWarningsDataList(this, "data", 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; } } // code - computed: true, optional: false, required: false get code() { return this.getStringAttribute('code'); } get data() { return this._data; } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } } exports.DataGoogleComputeRouterStatusBestRoutesWarningsOutputReference = DataGoogleComputeRouterStatusBestRoutesWarningsOutputReference; _e = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesWarningsOutputReference[_e] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesWarningsOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesWarningsList 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 DataGoogleComputeRouterStatusBestRoutesWarningsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesWarningsList = DataGoogleComputeRouterStatusBestRoutesWarningsList; _f = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesWarningsList[_f] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesWarningsList", version: "14.35.0" }; function dataGoogleComputeRouterStatusBestRoutesToTerraform(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 dataGoogleComputeRouterStatusBestRoutesToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesOutputReference 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; // as_paths - computed: true, optional: false, required: false this._asPaths = new DataGoogleComputeRouterStatusBestRoutesAsPathsList(this, "as_paths", false); // warnings - computed: true, optional: false, required: false this._warnings = new DataGoogleComputeRouterStatusBestRoutesWarningsList(this, "warnings", 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 asPaths() { return this._asPaths; } // creation_timestamp - computed: true, optional: false, required: false get creationTimestamp() { return this.getStringAttribute('creation_timestamp'); } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } // dest_range - computed: true, optional: false, required: false get destRange() { return this.getStringAttribute('dest_range'); } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // network - computed: true, optional: false, required: false get network() { return this.getStringAttribute('network'); } // next_hop_gateway - computed: true, optional: false, required: false get nextHopGateway() { return this.getStringAttribute('next_hop_gateway'); } // next_hop_hub - computed: true, optional: false, required: false get nextHopHub() { return this.getStringAttribute('next_hop_hub'); } // next_hop_ilb - computed: true, optional: false, required: false get nextHopIlb() { return this.getStringAttribute('next_hop_ilb'); } // next_hop_instance - computed: true, optional: false, required: false get nextHopInstance() { return this.getStringAttribute('next_hop_instance'); } // next_hop_instance_zone - computed: true, optional: false, required: false get nextHopInstanceZone() { return this.getStringAttribute('next_hop_instance_zone'); } // next_hop_inter_region_cost - computed: true, optional: false, required: false get nextHopInterRegionCost() { return this.getStringAttribute('next_hop_inter_region_cost'); } // next_hop_ip - computed: true, optional: false, required: false get nextHopIp() { return this.getStringAttribute('next_hop_ip'); } // next_hop_med - computed: true, optional: false, required: false get nextHopMed() { return this.getStringAttribute('next_hop_med'); } // next_hop_network - computed: true, optional: false, required: false get nextHopNetwork() { return this.getStringAttribute('next_hop_network'); } // next_hop_origin - computed: true, optional: false, required: false get nextHopOrigin() { return this.getStringAttribute('next_hop_origin'); } // next_hop_peering - computed: true, optional: false, required: false get nextHopPeering() { return this.getStringAttribute('next_hop_peering'); } // next_hop_vpn_tunnel - computed: true, optional: false, required: false get nextHopVpnTunnel() { return this.getStringAttribute('next_hop_vpn_tunnel'); } // priority - computed: true, optional: false, required: false get priority() { return this.getNumberAttribute('priority'); } // project - computed: true, optional: false, required: false get project() { return this.getStringAttribute('project'); } // route_status - computed: true, optional: false, required: false get routeStatus() { return this.getStringAttribute('route_status'); } // route_type - computed: true, optional: false, required: false get routeType() { return this.getStringAttribute('route_type'); } // self_link - computed: true, optional: false, required: false get selfLink() { return this.getStringAttribute('self_link'); } // tags - computed: true, optional: false, required: false get tags() { return cdktf.Fn.tolist(this.getListAttribute('tags')); } get warnings() { return this._warnings; } } exports.DataGoogleComputeRouterStatusBestRoutesOutputReference = DataGoogleComputeRouterStatusBestRoutesOutputReference; _g = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesOutputReference[_g] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesList 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 DataGoogleComputeRouterStatusBestRoutesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesList = DataGoogleComputeRouterStatusBestRoutesList; _h = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesList[_h] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesList", version: "14.35.0" }; function dataGoogleComputeRouterStatusBestRoutesForRouterAsPathsToTerraform(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 dataGoogleComputeRouterStatusBestRoutesForRouterAsPathsToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsOutputReference 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; } } // as_lists - computed: true, optional: false, required: false get asLists() { return this.getNumberListAttribute('as_lists'); } // path_segment_type - computed: true, optional: false, required: false get pathSegmentType() { return this.getStringAttribute('path_segment_type'); } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsOutputReference = DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsOutputReference; _j = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsOutputReference[_j] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsList 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 DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsList = DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsList; _k = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsList[_k] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsList", version: "14.35.0" }; function dataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataToTerraform(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 dataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataOutputReference 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; } } // key - computed: true, optional: false, required: false get key() { return this.getStringAttribute('key'); } // value - computed: true, optional: false, required: false get value() { return this.getStringAttribute('value'); } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataOutputReference = DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataOutputReference; _l = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataList 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 DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataList = DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataList; _m = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataList[_m] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataList", version: "14.35.0" }; function dataGoogleComputeRouterStatusBestRoutesForRouterWarningsToTerraform(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 dataGoogleComputeRouterStatusBestRoutesForRouterWarningsToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesForRouterWarningsOutputReference 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; // data - computed: true, optional: false, required: false this._data = new DataGoogleComputeRouterStatusBestRoutesForRouterWarningsDataList(this, "data", 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; } } // code - computed: true, optional: false, required: false get code() { return this.getStringAttribute('code'); } get data() { return this._data; } // message - computed: true, optional: false, required: false get message() { return this.getStringAttribute('message'); } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsOutputReference = DataGoogleComputeRouterStatusBestRoutesForRouterWarningsOutputReference; _o = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterWarningsOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesForRouterWarningsList 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 DataGoogleComputeRouterStatusBestRoutesForRouterWarningsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsList = DataGoogleComputeRouterStatusBestRoutesForRouterWarningsList; _p = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterWarningsList[_p] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterWarningsList", version: "14.35.0" }; function dataGoogleComputeRouterStatusBestRoutesForRouterToTerraform(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 dataGoogleComputeRouterStatusBestRoutesForRouterToHclTerraform(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 DataGoogleComputeRouterStatusBestRoutesForRouterOutputReference 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; // as_paths - computed: true, optional: false, required: false this._asPaths = new DataGoogleComputeRouterStatusBestRoutesForRouterAsPathsList(this, "as_paths", false); // warnings - computed: true, optional: false, required: false this._warnings = new DataGoogleComputeRouterStatusBestRoutesForRouterWarningsList(this, "warnings", 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 asPaths() { return this._asPaths; } // creation_timestamp - computed: true, optional: false, required: false get creationTimestamp() { return this.getStringAttribute('creation_timestamp'); } // description - computed: true, optional: false, required: false get description() { return this.getStringAttribute('description'); } // dest_range - computed: true, optional: false, required: false get destRange() { return this.getStringAttribute('dest_range'); } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // network - computed: true, optional: false, required: false get network() { return this.getStringAttribute('network'); } // next_hop_gateway - computed: true, optional: false, required: false get nextHopGateway() { return this.getStringAttribute('next_hop_gateway'); } // next_hop_hub - computed: true, optional: false, required: false get nextHopHub() { return this.getStringAttribute('next_hop_hub'); } // next_hop_ilb - computed: true, optional: false, required: false get nextHopIlb() { return this.getStringAttribute('next_hop_ilb'); } // next_hop_instance - computed: true, optional: false, required: false get nextHopInstance() { return this.getStringAttribute('next_hop_instance'); } // next_hop_instance_zone - computed: true, optional: false, required: false get nextHopInstanceZone() { return this.getStringAttribute('next_hop_instance_zone'); } // next_hop_inter_region_cost - computed: true, optional: false, required: false get nextHopInterRegionCost() { return this.getStringAttribute('next_hop_inter_region_cost'); } // next_hop_ip - computed: true, optional: false, required: false get nextHopIp() { return this.getStringAttribute('next_hop_ip'); } // next_hop_med - computed: true, optional: false, required: false get nextHopMed() { return this.getStringAttribute('next_hop_med'); } // next_hop_network - computed: true, optional: false, required: false get nextHopNetwork() { return this.getStringAttribute('next_hop_network'); } // next_hop_origin - computed: true, optional: false, required: false get nextHopOrigin() { return this.getStringAttribute('next_hop_origin'); } // next_hop_peering - computed: true, optional: false, required: false get nextHopPeering() { return this.getStringAttribute('next_hop_peering'); } // next_hop_vpn_tunnel - computed: true, optional: false, required: false get nextHopVpnTunnel() { return this.getStringAttribute('next_hop_vpn_tunnel'); } // priority - computed: true, optional: false, required: false get priority() { return this.getNumberAttribute('priority'); } // project - computed: true, optional: false, required: false get project() { return this.getStringAttribute('project'); } // route_status - computed: true, optional: false, required: false get routeStatus() { return this.getStringAttribute('route_status'); } // route_type - computed: true, optional: false, required: false get routeType() { return this.getStringAttribute('route_type'); } // self_link - computed: true, optional: false, required: false get selfLink() { return this.getStringAttribute('self_link'); } // tags - computed: true, optional: false, required: false get tags() { return cdktf.Fn.tolist(this.getListAttribute('tags')); } get warnings() { return this._warnings; } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterOutputReference = DataGoogleComputeRouterStatusBestRoutesForRouterOutputReference; _q = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterOutputReference", version: "14.35.0" }; class DataGoogleComputeRouterStatusBestRoutesForRouterList 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 DataGoogleComputeRouterStatusBestRoutesForRouterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleComputeRouterStatusBestRoutesForRouterList = DataGoogleComputeRouterStatusBestRoutesForRouterList; _r = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatusBestRoutesForRouterList[_r] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatusBestRoutesForRouterList", version: "14.35.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/compute_router_status google_compute_router_status} */ class DataGoogleComputeRouterStatus extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataGoogleComputeRouterStatus 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 DataGoogleComputeRouterStatus to import * @param importFromId The id of the existing DataGoogleComputeRouterStatus that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/compute_router_status#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataGoogleComputeRouterStatus to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_compute_router_status", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/compute_router_status google_compute_router_status} Data Source * * @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 DataGoogleComputeRouterStatusConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'google_compute_router_status', terraformGeneratorMetadata: { providerName: 'google', providerVersion: '6.36.0', providerVersionConstraint: '~> 6.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // ========== // ATTRIBUTES // ========== // best_routes - computed: true, optional: false, required: false this._bestRoutes = new DataGoogleComputeRouterStatusBestRoutesList(this, "best_routes", false); // best_routes_for_router - computed: true, optional: false, required: false this._bestRoutesForRouter = new DataGoogleComputeRouterStatusBestRoutesForRouterList(this, "best_routes_for_router", false); this._id = config.id; this._name = config.name; this._project = config.project; this._region = config.region; } get bestRoutes() { return this._bestRoutes; } get bestRoutesForRouter() { return this._bestRoutesForRouter; } 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 name() { return this.getStringAttribute('name'); } set name(value) { this._name = value; } // Temporarily expose input value. Use with caution. get nameInput() { return this._name; } // network - computed: true, optional: false, required: false get network() { return this.getStringAttribute('network'); } get project() { return this.getStringAttribute('project'); } set project(value) { this._project = value; } resetProject() { this._project = undefined; } // Temporarily expose input value. Use with caution. get projectInput() { return this._project; } get region() { return this.getStringAttribute('region'); } set region(value) { this._region = value; } resetRegion() { this._region = undefined; } // Temporarily expose input value. Use with caution. get regionInput() { return this._region; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { id: cdktf.stringToTerraform(this._id), name: cdktf.stringToTerraform(this._name), project: cdktf.stringToTerraform(this._project), region: cdktf.stringToTerraform(this._region), }; } synthesizeHclAttributes() { const attrs = { id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, name: { value: cdktf.stringToHclTerraform(this._name), isBlock: false, type: "simple", storageClassType: "string", }, project: { value: cdktf.stringToHclTerraform(this._project), isBlock: false, type: "simple", storageClassType: "string", }, region: { value: cdktf.stringToHclTerraform(this._region), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.DataGoogleComputeRouterStatus = DataGoogleComputeRouterStatus; _s = JSII_RTTI_SYMBOL_1; DataGoogleComputeRouterStatus[_s] = { fqn: "@cdktf/provider-google.dataGoogleComputeRouterStatus.DataGoogleComputeRouterStatus", version: "14.35.0" }; // ================= // STATIC PROPERTIES // ================= DataGoogleComputeRouterStatus.tfResourceType = "google_compute_router_status"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS1nb29nbGUtY29tcHV0ZS1yb3V0ZXItc3RhdHVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUEyQ0EsOEhBT0M7QUFHRCxvSUFRQztBQThERCx3SUFPQztBQUdELDhJQVFDO0FBOERELGdJQU9DO0FBR0Qsc0lBUUM7QUFvRUQsZ0hBT0M7QUFHRCxzSEFRQztBQW1MRCxnSkFPQztBQUdELHNKQVFDO0FBOERELDBKQU9DO0FBR0QsZ0tBUUM7QUE4REQsa0pBT0M7QUFHRCx3SkFRQztBQW9FRCxrSUFPQztBQUdELHdJQVFDOztBQXJ1QkQsK0JBQStCO0FBa0MvQixTQUFnQix5REFBeUQsQ0FBQyxNQUF1RDtJQUMvSCxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxPQUFPLEVBQ04sQ0FBQTtBQUNILENBQUM7QUFHRCxTQUFnQiw0REFBNEQsQ0FBQyxNQUF1RDtJQUNsSSxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEt