UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

901 lines 132 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataGoogleSecretManagerSecrets = exports.DataGoogleSecretManagerSecretsSecretsList = exports.DataGoogleSecretManagerSecretsSecretsOutputReference = exports.DataGoogleSecretManagerSecretsSecretsTopicsList = exports.DataGoogleSecretManagerSecretsSecretsTopicsOutputReference = exports.DataGoogleSecretManagerSecretsSecretsRotationList = exports.DataGoogleSecretManagerSecretsSecretsRotationOutputReference = exports.DataGoogleSecretManagerSecretsSecretsReplicationList = exports.DataGoogleSecretManagerSecretsSecretsReplicationOutputReference = exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedList = exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedOutputReference = exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasList = exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasOutputReference = exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionList = exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionOutputReference = exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoList = exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoOutputReference = exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionList = exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionOutputReference = void 0; exports.dataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionToTerraform = dataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionToTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionToHclTerraform = dataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationAutoToTerraform = dataGoogleSecretManagerSecretsSecretsReplicationAutoToTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationAutoToHclTerraform = dataGoogleSecretManagerSecretsSecretsReplicationAutoToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionToTerraform = dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionToTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionToHclTerraform = dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasToTerraform = dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasToTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasToHclTerraform = dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationUserManagedToTerraform = dataGoogleSecretManagerSecretsSecretsReplicationUserManagedToTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationUserManagedToHclTerraform = dataGoogleSecretManagerSecretsSecretsReplicationUserManagedToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationToTerraform = dataGoogleSecretManagerSecretsSecretsReplicationToTerraform; exports.dataGoogleSecretManagerSecretsSecretsReplicationToHclTerraform = dataGoogleSecretManagerSecretsSecretsReplicationToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsRotationToTerraform = dataGoogleSecretManagerSecretsSecretsRotationToTerraform; exports.dataGoogleSecretManagerSecretsSecretsRotationToHclTerraform = dataGoogleSecretManagerSecretsSecretsRotationToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsTopicsToTerraform = dataGoogleSecretManagerSecretsSecretsTopicsToTerraform; exports.dataGoogleSecretManagerSecretsSecretsTopicsToHclTerraform = dataGoogleSecretManagerSecretsSecretsTopicsToHclTerraform; exports.dataGoogleSecretManagerSecretsSecretsToTerraform = dataGoogleSecretManagerSecretsSecretsToTerraform; exports.dataGoogleSecretManagerSecretsSecretsToHclTerraform = dataGoogleSecretManagerSecretsSecretsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionToTerraform(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 dataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionOutputReference 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; } } // kms_key_name - computed: true, optional: false, required: false get kmsKeyName() { return this.getStringAttribute('kms_key_name'); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionOutputReference = DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionOutputReference; _a = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionOutputReference[_a] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionList 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 DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionList = DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionList; _b = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionList[_b] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsReplicationAutoToTerraform(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 dataGoogleSecretManagerSecretsSecretsReplicationAutoToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsReplicationAutoOutputReference 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; // customer_managed_encryption - computed: true, optional: false, required: false this._customerManagedEncryption = new DataGoogleSecretManagerSecretsSecretsReplicationAutoCustomerManagedEncryptionList(this, "customer_managed_encryption", 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 customerManagedEncryption() { return this._customerManagedEncryption; } } exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoOutputReference = DataGoogleSecretManagerSecretsSecretsReplicationAutoOutputReference; _c = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationAutoOutputReference[_c] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationAutoOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsReplicationAutoList 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 DataGoogleSecretManagerSecretsSecretsReplicationAutoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationAutoList = DataGoogleSecretManagerSecretsSecretsReplicationAutoList; _d = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationAutoList[_d] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationAutoList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionToTerraform(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 dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionOutputReference 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; } } // kms_key_name - computed: true, optional: false, required: false get kmsKeyName() { return this.getStringAttribute('kms_key_name'); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionOutputReference = DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionOutputReference; _e = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionOutputReference[_e] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionList 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 DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionList = DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionList; _f = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionList[_f] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasToTerraform(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 dataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasOutputReference 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; // customer_managed_encryption - computed: true, optional: false, required: false this._customerManagedEncryption = new DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasCustomerManagedEncryptionList(this, "customer_managed_encryption", 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 customerManagedEncryption() { return this._customerManagedEncryption; } // location - computed: true, optional: false, required: false get location() { return this.getStringAttribute('location'); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasOutputReference = DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasOutputReference; _g = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasOutputReference[_g] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasList 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 DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasList = DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasList; _h = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasList[_h] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsReplicationUserManagedToTerraform(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 dataGoogleSecretManagerSecretsSecretsReplicationUserManagedToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsReplicationUserManagedOutputReference 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; // replicas - computed: true, optional: false, required: false this._replicas = new DataGoogleSecretManagerSecretsSecretsReplicationUserManagedReplicasList(this, "replicas", 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 replicas() { return this._replicas; } } exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedOutputReference = DataGoogleSecretManagerSecretsSecretsReplicationUserManagedOutputReference; _j = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationUserManagedOutputReference[_j] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsReplicationUserManagedList 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 DataGoogleSecretManagerSecretsSecretsReplicationUserManagedOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedList = DataGoogleSecretManagerSecretsSecretsReplicationUserManagedList; _k = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationUserManagedList[_k] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationUserManagedList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsReplicationToTerraform(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 dataGoogleSecretManagerSecretsSecretsReplicationToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsReplicationOutputReference 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; // auto - computed: true, optional: false, required: false this._auto = new DataGoogleSecretManagerSecretsSecretsReplicationAutoList(this, "auto", false); // user_managed - computed: true, optional: false, required: false this._userManaged = new DataGoogleSecretManagerSecretsSecretsReplicationUserManagedList(this, "user_managed", 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 auto() { return this._auto; } get userManaged() { return this._userManaged; } } exports.DataGoogleSecretManagerSecretsSecretsReplicationOutputReference = DataGoogleSecretManagerSecretsSecretsReplicationOutputReference; _l = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsReplicationList 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 DataGoogleSecretManagerSecretsSecretsReplicationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsReplicationList = DataGoogleSecretManagerSecretsSecretsReplicationList; _m = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsReplicationList[_m] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsReplicationList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsRotationToTerraform(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 dataGoogleSecretManagerSecretsSecretsRotationToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsRotationOutputReference 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; } } // next_rotation_time - computed: true, optional: false, required: false get nextRotationTime() { return this.getStringAttribute('next_rotation_time'); } // rotation_period - computed: true, optional: false, required: false get rotationPeriod() { return this.getStringAttribute('rotation_period'); } } exports.DataGoogleSecretManagerSecretsSecretsRotationOutputReference = DataGoogleSecretManagerSecretsSecretsRotationOutputReference; _o = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsRotationOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsRotationOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsRotationList 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 DataGoogleSecretManagerSecretsSecretsRotationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsRotationList = DataGoogleSecretManagerSecretsSecretsRotationList; _p = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsRotationList[_p] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsRotationList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsTopicsToTerraform(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 dataGoogleSecretManagerSecretsSecretsTopicsToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsTopicsOutputReference 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'); } } exports.DataGoogleSecretManagerSecretsSecretsTopicsOutputReference = DataGoogleSecretManagerSecretsSecretsTopicsOutputReference; _q = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsTopicsOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsTopicsOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsTopicsList 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 DataGoogleSecretManagerSecretsSecretsTopicsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsTopicsList = DataGoogleSecretManagerSecretsSecretsTopicsList; _r = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsTopicsList[_r] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsTopicsList", version: "14.35.0" }; function dataGoogleSecretManagerSecretsSecretsToTerraform(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 dataGoogleSecretManagerSecretsSecretsToHclTerraform(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 DataGoogleSecretManagerSecretsSecretsOutputReference 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; // annotations - computed: true, optional: false, required: false this._annotations = new cdktf.StringMap(this, "annotations"); // effective_annotations - computed: true, optional: false, required: false this._effectiveAnnotations = new cdktf.StringMap(this, "effective_annotations"); // effective_labels - computed: true, optional: false, required: false this._effectiveLabels = new cdktf.StringMap(this, "effective_labels"); // labels - computed: true, optional: false, required: false this._labels = new cdktf.StringMap(this, "labels"); // replication - computed: true, optional: false, required: false this._replication = new DataGoogleSecretManagerSecretsSecretsReplicationList(this, "replication", false); // rotation - computed: true, optional: false, required: false this._rotation = new DataGoogleSecretManagerSecretsSecretsRotationList(this, "rotation", false); // terraform_labels - computed: true, optional: false, required: false this._terraformLabels = new cdktf.StringMap(this, "terraform_labels"); // topics - computed: true, optional: false, required: false this._topics = new DataGoogleSecretManagerSecretsSecretsTopicsList(this, "topics", false); // version_aliases - computed: true, optional: false, required: false this._versionAliases = new cdktf.StringMap(this, "version_aliases"); } 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 annotations() { return this._annotations; } // create_time - computed: true, optional: false, required: false get createTime() { return this.getStringAttribute('create_time'); } get effectiveAnnotations() { return this._effectiveAnnotations; } get effectiveLabels() { return this._effectiveLabels; } // expire_time - computed: true, optional: false, required: false get expireTime() { return this.getStringAttribute('expire_time'); } get labels() { return this._labels; } // name - computed: true, optional: false, required: false get name() { return this.getStringAttribute('name'); } // project - computed: true, optional: false, required: false get project() { return this.getStringAttribute('project'); } get replication() { return this._replication; } get rotation() { return this._rotation; } // secret_id - computed: true, optional: false, required: false get secretId() { return this.getStringAttribute('secret_id'); } get terraformLabels() { return this._terraformLabels; } get topics() { return this._topics; } // ttl - computed: true, optional: false, required: false get ttl() { return this.getStringAttribute('ttl'); } get versionAliases() { return this._versionAliases; } // version_destroy_ttl - computed: true, optional: false, required: false get versionDestroyTtl() { return this.getStringAttribute('version_destroy_ttl'); } } exports.DataGoogleSecretManagerSecretsSecretsOutputReference = DataGoogleSecretManagerSecretsSecretsOutputReference; _s = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsOutputReference[_s] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsOutputReference", version: "14.35.0" }; class DataGoogleSecretManagerSecretsSecretsList 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 DataGoogleSecretManagerSecretsSecretsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataGoogleSecretManagerSecretsSecretsList = DataGoogleSecretManagerSecretsSecretsList; _t = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecretsSecretsList[_t] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecretsSecretsList", version: "14.35.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/secret_manager_secrets google_secret_manager_secrets} */ class DataGoogleSecretManagerSecrets extends cdktf.TerraformDataSource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DataGoogleSecretManagerSecrets 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 DataGoogleSecretManagerSecrets to import * @param importFromId The id of the existing DataGoogleSecretManagerSecrets that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/secret_manager_secrets#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DataGoogleSecretManagerSecrets to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_secret_manager_secrets", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.36.0/docs/data-sources/secret_manager_secrets google_secret_manager_secrets} 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 DataGoogleSecretManagerSecretsConfig = {} */ constructor(scope, id, config = {}) { super(scope, id, { terraformResourceType: 'google_secret_manager_secrets', 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 }); // secrets - computed: true, optional: false, required: false this._secrets = new DataGoogleSecretManagerSecretsSecretsList(this, "secrets", false); this._filter = config.filter; this._id = config.id; this._project = config.project; } get filter() { return this.getStringAttribute('filter'); } set filter(value) { this._filter = value; } resetFilter() { this._filter = undefined; } // Temporarily expose input value. Use with caution. get filterInput() { return this._filter; } 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 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 secrets() { return this._secrets; } // ========= // SYNTHESIS // ========= synthesizeAttributes() { return { filter: cdktf.stringToTerraform(this._filter), id: cdktf.stringToTerraform(this._id), project: cdktf.stringToTerraform(this._project), }; } synthesizeHclAttributes() { const attrs = { filter: { value: cdktf.stringToHclTerraform(this._filter), isBlock: false, type: "simple", storageClassType: "string", }, id: { value: cdktf.stringToHclTerraform(this._id), isBlock: false, type: "simple", storageClassType: "string", }, project: { value: cdktf.stringToHclTerraform(this._project), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } } exports.DataGoogleSecretManagerSecrets = DataGoogleSecretManagerSecrets; _u = JSII_RTTI_SYMBOL_1; DataGoogleSecretManagerSecrets[_u] = { fqn: "@cdktf/provider-google.dataGoogleSecretManagerSecrets.DataGoogleSecretManagerSecrets", version: "14.35.0" }; // ================= // STATIC PROPERTIES // ================= DataGoogleSecretManagerSecrets.tfResourceType = "google_secret_manager_secrets"; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS1nb29nbGUtc2VjcmV0LW1hbmFnZXItc2VjcmV0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBb0NBLDRMQU9DO0FBR0Qsa01BUUM7QUF5REQsMElBT0M7QUFHRCxnSkFRQztBQTBERCwwTkFPQztBQUdELGdPQVFDO0FBeURELHdLQU9DO0FBR0QsOEtBUUM7QUErREQsd0pBT0M7QUFHRCw4SkFRQztBQTBERCxrSUFPQztBQUdELHdJQVFDO0FBZ0VELDRIQU9DO0FBR0Qsa0lBUUM7QUE4REQsd0hBT0M7QUFHRCw4SEFRQztBQXlERCw0R0FPQztBQUdELGtIQVFDOztBQXpwQkQsK0JBQStCO0FBMkIvQixTQUFnQix3RkFBd0YsQ0FBQyxNQUFzRjtJQUM3TCxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxPQUFPLEVBQ04sQ0FBQTtBQUNILENBQUM7QUFHRCxTQUFnQiwyRkFBMkYsQ0FBQyxNQUFzRjtJQUNoTSxJQUFJLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxNQUFNLENBQUMsSUFBSSxLQUFLLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxNQUFNLENBQUMsRUFBRSxDQUFDO1FBQUMsT0FBTyxNQUFNLENBQUM7SUFBQyxDQUFDO0lBQzVGLElBQUksS0FBSyxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUM7UUFDbkMsTUFBTSxJQUFJLEtBQUssQ0FBQyxvSEFBb0gsQ0FBQyxDQUFDO0lBQ3hJLENBQUM7SUFDRCxNQUFNLEtBQUssR0FBRyxFQUNiLENBQUM7SUFDRixPQUFPLEtBQUssQ0FBQztBQUNmLENBQUM7QUFFRCxNQUFhLDRGQUE2RixTQUFRLEtBQUssQ0FBQyxhQUFhO0lBR25JOzs7OztNQUtFO0lBQ0YsWUFBbUIsaUJBQTZDLEVBQUUsa0JBQTBCLEVBQUUsa0JBQTBCLEVBQUUsc0JBQStCO1FBQ3ZKLEtBQUssQ0FBQyxpQkFBaUIsRUFBRSxrQkFBa0IsRUFBRSxzQkFBc0IsRUFBRSxrQkFBa0IsQ0FBQyxDQUFDO1FBVG5GLGtCQUFhLEdBQUcsS0FBSyxDQUFDO0lBVTlCLENBQUM7SUFFRCxJQUFXLGFBQWE7UUFDdEIsSUFBSSxZQUFZLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQztRQUN0QyxNQUFNLG1CQUFtQixHQUFRLEVBQUUsQ0FBQztRQUNwQyxPQUFPLFlBQVksQ0FBQyxDQUFDLENBQUMsbUJBQW1CLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQztJQUN4RCxDQUFDO0lBRUQsSUFBVyxhQUFhLENBQUMsS0FBZ0c7UUFDdkgsSUFBSSxLQUFLLEtBQUssU0FBUy