@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
953 lines • 289 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ComputeNetworkFirewallPolicyWithRules = exports.ComputeNetworkFirewallPolicyWithRulesTimeoutsOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesRuleList = exports.ComputeNetworkFirewallPolicyWithRulesRuleOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesRuleTargetSecureTagList = exports.ComputeNetworkFirewallPolicyWithRulesRuleTargetSecureTagOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList = exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList = exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesList = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagList = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchList = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagList = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagOutputReference = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigList = exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigOutputReference = void 0;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigToTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigToTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigToHclTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagToTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagToTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagToHclTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchToTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchToTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchToHclTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagToTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagToTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagToHclTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesToTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesToTerraform;
exports.computeNetworkFirewallPolicyWithRulesPredefinedRulesToHclTerraform = computeNetworkFirewallPolicyWithRulesPredefinedRulesToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToTerraform = computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToHclTerraform = computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToTerraform = computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToHclTerraform = computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleMatchToTerraform = computeNetworkFirewallPolicyWithRulesRuleMatchToTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleMatchToHclTerraform = computeNetworkFirewallPolicyWithRulesRuleMatchToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleTargetSecureTagToTerraform = computeNetworkFirewallPolicyWithRulesRuleTargetSecureTagToTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleTargetSecureTagToHclTerraform = computeNetworkFirewallPolicyWithRulesRuleTargetSecureTagToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleToTerraform = computeNetworkFirewallPolicyWithRulesRuleToTerraform;
exports.computeNetworkFirewallPolicyWithRulesRuleToHclTerraform = computeNetworkFirewallPolicyWithRulesRuleToHclTerraform;
exports.computeNetworkFirewallPolicyWithRulesTimeoutsToTerraform = computeNetworkFirewallPolicyWithRulesTimeoutsToTerraform;
exports.computeNetworkFirewallPolicyWithRulesTimeoutsToHclTerraform = computeNetworkFirewallPolicyWithRulesTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigToTerraform(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 computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigToHclTerraform(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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigOutputReference 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;
}
}
// ip_protocol - computed: true, optional: false, required: false
get ipProtocol() {
return this.getStringAttribute('ip_protocol');
}
// ports - computed: true, optional: false, required: false
get ports() {
return this.getListAttribute('ports');
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigOutputReference = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigOutputReference[_a] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigOutputReference", version: "16.3.0" };
class ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigList 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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigList = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigList;
_b = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigList[_b] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigList", version: "16.3.0" };
function computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagToTerraform(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 computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagToHclTerraform(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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagOutputReference 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;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagOutputReference = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagOutputReference;
_c = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagOutputReference[_c] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagOutputReference", version: "16.3.0" };
class ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagList 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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagList = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagList;
_d = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagList[_d] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagList", version: "16.3.0" };
function computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchToTerraform(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 computeNetworkFirewallPolicyWithRulesPredefinedRulesMatchToHclTerraform(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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchOutputReference 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;
// layer4_config - computed: true, optional: false, required: false
this._layer4Config = new ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchLayer4ConfigList(this, "layer4_config", false);
// src_secure_tag - computed: true, optional: false, required: false
this._srcSecureTag = new ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchSrcSecureTagList(this, "src_secure_tag", 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;
}
}
// dest_address_groups - computed: true, optional: false, required: false
get destAddressGroups() {
return this.getListAttribute('dest_address_groups');
}
// dest_fqdns - computed: true, optional: false, required: false
get destFqdns() {
return this.getListAttribute('dest_fqdns');
}
// dest_ip_ranges - computed: true, optional: false, required: false
get destIpRanges() {
return this.getListAttribute('dest_ip_ranges');
}
// dest_region_codes - computed: true, optional: false, required: false
get destRegionCodes() {
return this.getListAttribute('dest_region_codes');
}
// dest_threat_intelligences - computed: true, optional: false, required: false
get destThreatIntelligences() {
return this.getListAttribute('dest_threat_intelligences');
}
get layer4Config() {
return this._layer4Config;
}
// src_address_groups - computed: true, optional: false, required: false
get srcAddressGroups() {
return this.getListAttribute('src_address_groups');
}
// src_fqdns - computed: true, optional: false, required: false
get srcFqdns() {
return this.getListAttribute('src_fqdns');
}
// src_ip_ranges - computed: true, optional: false, required: false
get srcIpRanges() {
return this.getListAttribute('src_ip_ranges');
}
// src_region_codes - computed: true, optional: false, required: false
get srcRegionCodes() {
return this.getListAttribute('src_region_codes');
}
get srcSecureTag() {
return this._srcSecureTag;
}
// src_threat_intelligences - computed: true, optional: false, required: false
get srcThreatIntelligences() {
return this.getListAttribute('src_threat_intelligences');
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchOutputReference = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchOutputReference;
_e = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchOutputReference[_e] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchOutputReference", version: "16.3.0" };
class ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchList 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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchList = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchList;
_f = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchList[_f] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchList", version: "16.3.0" };
function computeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagToTerraform(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 computeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagToHclTerraform(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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagOutputReference 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;
}
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagOutputReference = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagOutputReference;
_g = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagOutputReference[_g] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagOutputReference", version: "16.3.0" };
class ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagList 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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagList = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagList;
_h = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagList[_h] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagList", version: "16.3.0" };
function computeNetworkFirewallPolicyWithRulesPredefinedRulesToTerraform(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 computeNetworkFirewallPolicyWithRulesPredefinedRulesToHclTerraform(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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesOutputReference 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;
// match - computed: true, optional: false, required: false
this._match = new ComputeNetworkFirewallPolicyWithRulesPredefinedRulesMatchList(this, "match", false);
// target_secure_tag - computed: true, optional: false, required: false
this._targetSecureTag = new ComputeNetworkFirewallPolicyWithRulesPredefinedRulesTargetSecureTagList(this, "target_secure_tag", 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;
}
}
// action - computed: true, optional: false, required: false
get action() {
return this.getStringAttribute('action');
}
// description - computed: true, optional: false, required: false
get description() {
return this.getStringAttribute('description');
}
// direction - computed: true, optional: false, required: false
get direction() {
return this.getStringAttribute('direction');
}
// disabled - computed: true, optional: false, required: false
get disabled() {
return this.getBooleanAttribute('disabled');
}
// enable_logging - computed: true, optional: false, required: false
get enableLogging() {
return this.getBooleanAttribute('enable_logging');
}
get match() {
return this._match;
}
// priority - computed: true, optional: false, required: false
get priority() {
return this.getNumberAttribute('priority');
}
// rule_name - computed: true, optional: false, required: false
get ruleName() {
return this.getStringAttribute('rule_name');
}
// security_profile_group - computed: true, optional: false, required: false
get securityProfileGroup() {
return this.getStringAttribute('security_profile_group');
}
get targetSecureTag() {
return this._targetSecureTag;
}
// target_service_accounts - computed: true, optional: false, required: false
get targetServiceAccounts() {
return this.getListAttribute('target_service_accounts');
}
// tls_inspect - computed: true, optional: false, required: false
get tlsInspect() {
return this.getBooleanAttribute('tls_inspect');
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesOutputReference = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesOutputReference;
_j = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesOutputReference[_j] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesOutputReference", version: "16.3.0" };
class ComputeNetworkFirewallPolicyWithRulesPredefinedRulesList 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 ComputeNetworkFirewallPolicyWithRulesPredefinedRulesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesList = ComputeNetworkFirewallPolicyWithRulesPredefinedRulesList;
_k = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesPredefinedRulesList[_k] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesPredefinedRulesList", version: "16.3.0" };
function computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToTerraform(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 {
ip_protocol: cdktf.stringToTerraform(struct.ipProtocol),
ports: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ports),
};
}
function computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToHclTerraform(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 = {
ip_protocol: {
value: cdktf.stringToHclTerraform(struct.ipProtocol),
isBlock: false,
type: "simple",
storageClassType: "string",
},
ports: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ports),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._ipProtocol !== undefined) {
hasAnyValues = true;
internalValueResult.ipProtocol = this._ipProtocol;
}
if (this._ports !== undefined) {
hasAnyValues = true;
internalValueResult.ports = this._ports;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._ipProtocol = undefined;
this._ports = 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._ipProtocol = value.ipProtocol;
this._ports = value.ports;
}
}
get ipProtocol() {
return this.getStringAttribute('ip_protocol');
}
set ipProtocol(value) {
this._ipProtocol = value;
}
// Temporarily expose input value. Use with caution.
get ipProtocolInput() {
return this._ipProtocol;
}
get ports() {
return this.getListAttribute('ports');
}
set ports(value) {
this._ports = value;
}
resetPorts() {
this._ports = undefined;
}
// Temporarily expose input value. Use with caution.
get portsInput() {
return this._ports;
}
}
exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigOutputReference = ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigOutputReference;
_l = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigOutputReference[_l] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigOutputReference", version: "16.3.0" };
class ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList 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 ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList = ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList;
_m = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList[_m] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList", version: "16.3.0" };
function computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
};
}
function computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagOutputReference 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() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = 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._name = value.name;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
// state - computed: true, optional: false, required: false
get state() {
return this.getStringAttribute('state');
}
}
exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagOutputReference = ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagOutputReference;
_o = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagOutputReference[_o] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagOutputReference", version: "16.3.0" };
class ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList 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 ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList = ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList;
_p = JSII_RTTI_SYMBOL_1;
ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList[_p] = { fqn: "@cdktf/provider-google.computeNetworkFirewallPolicyWithRules.ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList", version: "16.3.0" };
function computeNetworkFirewallPolicyWithRulesRuleMatchToTerraform(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 {
dest_address_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.destAddressGroups),
dest_fqdns: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.destFqdns),
dest_ip_ranges: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.destIpRanges),
dest_region_codes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.destRegionCodes),
dest_threat_intelligences: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.destThreatIntelligences),
src_address_groups: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.srcAddressGroups),
src_fqdns: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.srcFqdns),
src_ip_ranges: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.srcIpRanges),
src_region_codes: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.srcRegionCodes),
src_threat_intelligences: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.srcThreatIntelligences),
layer4_config: cdktf.listMapper(computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToTerraform, true)(struct.layer4Config),
src_secure_tag: cdktf.listMapper(computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToTerraform, true)(struct.srcSecureTag),
};
}
function computeNetworkFirewallPolicyWithRulesRuleMatchToHclTerraform(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 = {
dest_address_groups: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.destAddressGroups),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
dest_fqdns: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.destFqdns),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
dest_ip_ranges: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.destIpRanges),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
dest_region_codes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.destRegionCodes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
dest_threat_intelligences: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.destThreatIntelligences),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
src_address_groups: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.srcAddressGroups),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
src_fqdns: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.srcFqdns),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
src_ip_ranges: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.srcIpRanges),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
src_region_codes: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.srcRegionCodes),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
src_threat_intelligences: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.srcThreatIntelligences),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
layer4_config: {
value: cdktf.listMapperHcl(computeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigToHclTerraform, true)(struct.layer4Config),
isBlock: true,
type: "list",
storageClassType: "ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList",
},
src_secure_tag: {
value: cdktf.listMapperHcl(computeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagToHclTerraform, true)(struct.srcSecureTag),
isBlock: true,
type: "list",
storageClassType: "ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class ComputeNetworkFirewallPolicyWithRulesRuleMatchOutputReference 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;
// layer4_config - computed: false, optional: false, required: true
this._layer4Config = new ComputeNetworkFirewallPolicyWithRulesRuleMatchLayer4ConfigList(this, "layer4_config", false);
// src_secure_tag - computed: false, optional: true, required: false
this._srcSecureTag = new ComputeNetworkFirewallPolicyWithRulesRuleMatchSrcSecureTagList(this, "src_secure_tag", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._destAddressGroups !== undefined) {
hasAnyValues = true;
internalValueResult.destAddressGroups = this._destAddressGroups;
}
if (this._destFqdns !== undefined) {
hasAnyValues = true;
internalValueResult.destFqdns = this._destFqdns;
}
if (this._destIpRanges !== undefined) {
hasAnyValues = true;
internalValueResult.destIpRanges = this._destIpRanges;
}
if (this._destRegionCodes !== undefined) {
hasAnyValues = true;
internalValueResult.destRegionCodes = this._destRegionCodes;
}
if (this._destThreatIntelligences !== undefined) {
hasAnyValues = true;
internalValueResult.destThreatIntelligences = this._destThreatIntelligences;
}
if (this._srcAddressGroups !== undefined) {
hasAnyValues = true;
internalValueResult.srcAddressGroups = this._srcAddressGroups;
}
if (this._srcFqdns !== undefined) {
hasAnyValues = true;
internalValueResult.srcFqdns = this._srcFqdns;
}
if (this._srcIpRanges !== undefined) {
hasAnyValues = true;
internalValueResult.srcIpRanges = this._srcIpRanges;
}
if (this._srcRegionCodes !== undefined) {
hasAnyValues = true;
internalValueResult.srcRegionCodes = this._srcRegionCodes;
}
if (this._srcThreatIntelligences !== undefined) {
hasAnyValues = true;
internalValueResult.srcThreatIntelligences = this._srcThreatIntelligences;
}
if (this._layer4Config?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.layer4Config = this._layer4Config?.internalValue;
}
if (this._srcSecureTag?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.srcSecureTag = this._srcSecureTag?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._destAddressGroups = undefined;
this._destFqdns = undefined;
this._destIpRanges = undefined;
this._destRegionCodes = undefined;
this._destThreatIntelligences = undefined;
this._srcAddressGroups = undefined;
this._srcFqdns = undefined;
this._srcIpRanges = undefined;
this._srcRegionCodes = undefined;
this._srcThreatIntelligences = undefined;
this._layer4Config.internalValue = undefined;
this._srcSecureTag.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._destAddressGroups = value.destAddressGroups;
this._destFqdns = value.destFqdns;
this._destIpRanges = value.destIpRanges;
this._destRegionCodes = value.destRegionCodes;
this._destThreatIntelligences = value.destThreatIntelligences;
this._srcAddressGroups = value.srcAddressGroups;
this._srcFqdns = value.srcFqdns;
this._srcIpRanges = value.srcIpRanges;
this._srcRegionCodes = value.srcRegionCodes;
this._srcThreatIntelligences = value.srcThreatIntelligences;
this._layer4Config.internalValue = value.layer4Config;
this._srcSecureTag.internalValue = value.srcSecureTag;
}
}
get destAddressGroups() {
return this.getListAttribute('dest_address_groups');
}
set destAddressGroups(value) {
this._destAddressGroups = value;
}
resetDestAddressGroups() {
this._destAddressGroups = undefined;
}
// Temporarily expose input value. Use with caution.
get destAddressGroupsInput() {