UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,054 lines (1,053 loc) 207 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q; Object.defineProperty(exports, "__esModule", { value: true }); exports.AssuredWorkloadsWorkload = exports.AssuredWorkloadsWorkloadWorkloadOptionsOutputReference = exports.assuredWorkloadsWorkloadWorkloadOptionsToHclTerraform = exports.assuredWorkloadsWorkloadWorkloadOptionsToTerraform = exports.AssuredWorkloadsWorkloadTimeoutsOutputReference = exports.assuredWorkloadsWorkloadTimeoutsToHclTerraform = exports.assuredWorkloadsWorkloadTimeoutsToTerraform = exports.AssuredWorkloadsWorkloadResourceSettingsList = exports.AssuredWorkloadsWorkloadResourceSettingsOutputReference = exports.assuredWorkloadsWorkloadResourceSettingsToHclTerraform = exports.assuredWorkloadsWorkloadResourceSettingsToTerraform = exports.AssuredWorkloadsWorkloadPartnerPermissionsOutputReference = exports.assuredWorkloadsWorkloadPartnerPermissionsToHclTerraform = exports.assuredWorkloadsWorkloadPartnerPermissionsToTerraform = exports.AssuredWorkloadsWorkloadKmsSettingsOutputReference = exports.assuredWorkloadsWorkloadKmsSettingsToHclTerraform = exports.assuredWorkloadsWorkloadKmsSettingsToTerraform = exports.AssuredWorkloadsWorkloadSaaEnrollmentResponseList = exports.AssuredWorkloadsWorkloadSaaEnrollmentResponseOutputReference = exports.assuredWorkloadsWorkloadSaaEnrollmentResponseToHclTerraform = exports.assuredWorkloadsWorkloadSaaEnrollmentResponseToTerraform = exports.AssuredWorkloadsWorkloadResourcesList = exports.AssuredWorkloadsWorkloadResourcesOutputReference = exports.assuredWorkloadsWorkloadResourcesToHclTerraform = exports.assuredWorkloadsWorkloadResourcesToTerraform = exports.AssuredWorkloadsWorkloadEkmProvisioningResponseList = exports.AssuredWorkloadsWorkloadEkmProvisioningResponseOutputReference = exports.assuredWorkloadsWorkloadEkmProvisioningResponseToHclTerraform = exports.assuredWorkloadsWorkloadEkmProvisioningResponseToTerraform = exports.AssuredWorkloadsWorkloadComplianceStatusList = exports.AssuredWorkloadsWorkloadComplianceStatusOutputReference = exports.assuredWorkloadsWorkloadComplianceStatusToHclTerraform = exports.assuredWorkloadsWorkloadComplianceStatusToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function assuredWorkloadsWorkloadComplianceStatusToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.assuredWorkloadsWorkloadComplianceStatusToTerraform = assuredWorkloadsWorkloadComplianceStatusToTerraform; function assuredWorkloadsWorkloadComplianceStatusToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.assuredWorkloadsWorkloadComplianceStatusToHclTerraform = assuredWorkloadsWorkloadComplianceStatusToHclTerraform; class AssuredWorkloadsWorkloadComplianceStatusOutputReference 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; } } // acknowledged_violation_count - computed: true, optional: false, required: false get acknowledgedViolationCount() { return this.getNumberListAttribute('acknowledged_violation_count'); } // active_violation_count - computed: true, optional: false, required: false get activeViolationCount() { return this.getNumberListAttribute('active_violation_count'); } } exports.AssuredWorkloadsWorkloadComplianceStatusOutputReference = AssuredWorkloadsWorkloadComplianceStatusOutputReference; _a = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadComplianceStatusOutputReference[_a] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadComplianceStatusOutputReference", version: "14.12.0" }; class AssuredWorkloadsWorkloadComplianceStatusList 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 AssuredWorkloadsWorkloadComplianceStatusOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AssuredWorkloadsWorkloadComplianceStatusList = AssuredWorkloadsWorkloadComplianceStatusList; _b = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadComplianceStatusList[_b] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadComplianceStatusList", version: "14.12.0" }; function assuredWorkloadsWorkloadEkmProvisioningResponseToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.assuredWorkloadsWorkloadEkmProvisioningResponseToTerraform = assuredWorkloadsWorkloadEkmProvisioningResponseToTerraform; function assuredWorkloadsWorkloadEkmProvisioningResponseToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.assuredWorkloadsWorkloadEkmProvisioningResponseToHclTerraform = assuredWorkloadsWorkloadEkmProvisioningResponseToHclTerraform; class AssuredWorkloadsWorkloadEkmProvisioningResponseOutputReference 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; } } // ekm_provisioning_error_domain - computed: true, optional: false, required: false get ekmProvisioningErrorDomain() { return this.getStringAttribute('ekm_provisioning_error_domain'); } // ekm_provisioning_error_mapping - computed: true, optional: false, required: false get ekmProvisioningErrorMapping() { return this.getStringAttribute('ekm_provisioning_error_mapping'); } // ekm_provisioning_state - computed: true, optional: false, required: false get ekmProvisioningState() { return this.getStringAttribute('ekm_provisioning_state'); } } exports.AssuredWorkloadsWorkloadEkmProvisioningResponseOutputReference = AssuredWorkloadsWorkloadEkmProvisioningResponseOutputReference; _c = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadEkmProvisioningResponseOutputReference[_c] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadEkmProvisioningResponseOutputReference", version: "14.12.0" }; class AssuredWorkloadsWorkloadEkmProvisioningResponseList 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 AssuredWorkloadsWorkloadEkmProvisioningResponseOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AssuredWorkloadsWorkloadEkmProvisioningResponseList = AssuredWorkloadsWorkloadEkmProvisioningResponseList; _d = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadEkmProvisioningResponseList[_d] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadEkmProvisioningResponseList", version: "14.12.0" }; function assuredWorkloadsWorkloadResourcesToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.assuredWorkloadsWorkloadResourcesToTerraform = assuredWorkloadsWorkloadResourcesToTerraform; function assuredWorkloadsWorkloadResourcesToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.assuredWorkloadsWorkloadResourcesToHclTerraform = assuredWorkloadsWorkloadResourcesToHclTerraform; class AssuredWorkloadsWorkloadResourcesOutputReference 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; } } // resource_id - computed: true, optional: false, required: false get resourceId() { return this.getNumberAttribute('resource_id'); } // resource_type - computed: true, optional: false, required: false get resourceType() { return this.getStringAttribute('resource_type'); } } exports.AssuredWorkloadsWorkloadResourcesOutputReference = AssuredWorkloadsWorkloadResourcesOutputReference; _e = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadResourcesOutputReference[_e] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadResourcesOutputReference", version: "14.12.0" }; class AssuredWorkloadsWorkloadResourcesList 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 AssuredWorkloadsWorkloadResourcesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AssuredWorkloadsWorkloadResourcesList = AssuredWorkloadsWorkloadResourcesList; _f = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadResourcesList[_f] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadResourcesList", version: "14.12.0" }; function assuredWorkloadsWorkloadSaaEnrollmentResponseToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return {}; } exports.assuredWorkloadsWorkloadSaaEnrollmentResponseToTerraform = assuredWorkloadsWorkloadSaaEnrollmentResponseToTerraform; function assuredWorkloadsWorkloadSaaEnrollmentResponseToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = {}; return attrs; } exports.assuredWorkloadsWorkloadSaaEnrollmentResponseToHclTerraform = assuredWorkloadsWorkloadSaaEnrollmentResponseToHclTerraform; class AssuredWorkloadsWorkloadSaaEnrollmentResponseOutputReference 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; } } // setup_errors - computed: true, optional: false, required: false get setupErrors() { return this.getListAttribute('setup_errors'); } // setup_status - computed: true, optional: false, required: false get setupStatus() { return this.getStringAttribute('setup_status'); } } exports.AssuredWorkloadsWorkloadSaaEnrollmentResponseOutputReference = AssuredWorkloadsWorkloadSaaEnrollmentResponseOutputReference; _g = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadSaaEnrollmentResponseOutputReference[_g] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadSaaEnrollmentResponseOutputReference", version: "14.12.0" }; class AssuredWorkloadsWorkloadSaaEnrollmentResponseList 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 AssuredWorkloadsWorkloadSaaEnrollmentResponseOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AssuredWorkloadsWorkloadSaaEnrollmentResponseList = AssuredWorkloadsWorkloadSaaEnrollmentResponseList; _h = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadSaaEnrollmentResponseList[_h] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadSaaEnrollmentResponseList", version: "14.12.0" }; function assuredWorkloadsWorkloadKmsSettingsToTerraform(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 { next_rotation_time: cdktf.stringToTerraform(struct.nextRotationTime), rotation_period: cdktf.stringToTerraform(struct.rotationPeriod), }; } exports.assuredWorkloadsWorkloadKmsSettingsToTerraform = assuredWorkloadsWorkloadKmsSettingsToTerraform; function assuredWorkloadsWorkloadKmsSettingsToHclTerraform(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 = { next_rotation_time: { value: cdktf.stringToHclTerraform(struct.nextRotationTime), isBlock: false, type: "simple", storageClassType: "string", }, rotation_period: { value: cdktf.stringToHclTerraform(struct.rotationPeriod), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.assuredWorkloadsWorkloadKmsSettingsToHclTerraform = assuredWorkloadsWorkloadKmsSettingsToHclTerraform; class AssuredWorkloadsWorkloadKmsSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._nextRotationTime !== undefined) { hasAnyValues = true; internalValueResult.nextRotationTime = this._nextRotationTime; } if (this._rotationPeriod !== undefined) { hasAnyValues = true; internalValueResult.rotationPeriod = this._rotationPeriod; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._nextRotationTime = undefined; this._rotationPeriod = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._nextRotationTime = value.nextRotationTime; this._rotationPeriod = value.rotationPeriod; } } get nextRotationTime() { return this.getStringAttribute('next_rotation_time'); } set nextRotationTime(value) { this._nextRotationTime = value; } // Temporarily expose input value. Use with caution. get nextRotationTimeInput() { return this._nextRotationTime; } get rotationPeriod() { return this.getStringAttribute('rotation_period'); } set rotationPeriod(value) { this._rotationPeriod = value; } // Temporarily expose input value. Use with caution. get rotationPeriodInput() { return this._rotationPeriod; } } exports.AssuredWorkloadsWorkloadKmsSettingsOutputReference = AssuredWorkloadsWorkloadKmsSettingsOutputReference; _j = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadKmsSettingsOutputReference[_j] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadKmsSettingsOutputReference", version: "14.12.0" }; function assuredWorkloadsWorkloadPartnerPermissionsToTerraform(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 { assured_workloads_monitoring: cdktf.booleanToTerraform(struct.assuredWorkloadsMonitoring), data_logs_viewer: cdktf.booleanToTerraform(struct.dataLogsViewer), service_access_approver: cdktf.booleanToTerraform(struct.serviceAccessApprover), }; } exports.assuredWorkloadsWorkloadPartnerPermissionsToTerraform = assuredWorkloadsWorkloadPartnerPermissionsToTerraform; function assuredWorkloadsWorkloadPartnerPermissionsToHclTerraform(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 = { assured_workloads_monitoring: { value: cdktf.booleanToHclTerraform(struct.assuredWorkloadsMonitoring), isBlock: false, type: "simple", storageClassType: "boolean", }, data_logs_viewer: { value: cdktf.booleanToHclTerraform(struct.dataLogsViewer), isBlock: false, type: "simple", storageClassType: "boolean", }, service_access_approver: { value: cdktf.booleanToHclTerraform(struct.serviceAccessApprover), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.assuredWorkloadsWorkloadPartnerPermissionsToHclTerraform = assuredWorkloadsWorkloadPartnerPermissionsToHclTerraform; class AssuredWorkloadsWorkloadPartnerPermissionsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._assuredWorkloadsMonitoring !== undefined) { hasAnyValues = true; internalValueResult.assuredWorkloadsMonitoring = this._assuredWorkloadsMonitoring; } if (this._dataLogsViewer !== undefined) { hasAnyValues = true; internalValueResult.dataLogsViewer = this._dataLogsViewer; } if (this._serviceAccessApprover !== undefined) { hasAnyValues = true; internalValueResult.serviceAccessApprover = this._serviceAccessApprover; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._assuredWorkloadsMonitoring = undefined; this._dataLogsViewer = undefined; this._serviceAccessApprover = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._assuredWorkloadsMonitoring = value.assuredWorkloadsMonitoring; this._dataLogsViewer = value.dataLogsViewer; this._serviceAccessApprover = value.serviceAccessApprover; } } get assuredWorkloadsMonitoring() { return this.getBooleanAttribute('assured_workloads_monitoring'); } set assuredWorkloadsMonitoring(value) { this._assuredWorkloadsMonitoring = value; } resetAssuredWorkloadsMonitoring() { this._assuredWorkloadsMonitoring = undefined; } // Temporarily expose input value. Use with caution. get assuredWorkloadsMonitoringInput() { return this._assuredWorkloadsMonitoring; } get dataLogsViewer() { return this.getBooleanAttribute('data_logs_viewer'); } set dataLogsViewer(value) { this._dataLogsViewer = value; } resetDataLogsViewer() { this._dataLogsViewer = undefined; } // Temporarily expose input value. Use with caution. get dataLogsViewerInput() { return this._dataLogsViewer; } get serviceAccessApprover() { return this.getBooleanAttribute('service_access_approver'); } set serviceAccessApprover(value) { this._serviceAccessApprover = value; } resetServiceAccessApprover() { this._serviceAccessApprover = undefined; } // Temporarily expose input value. Use with caution. get serviceAccessApproverInput() { return this._serviceAccessApprover; } } exports.AssuredWorkloadsWorkloadPartnerPermissionsOutputReference = AssuredWorkloadsWorkloadPartnerPermissionsOutputReference; _k = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadPartnerPermissionsOutputReference[_k] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadPartnerPermissionsOutputReference", version: "14.12.0" }; function assuredWorkloadsWorkloadResourceSettingsToTerraform(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 { display_name: cdktf.stringToTerraform(struct.displayName), resource_id: cdktf.stringToTerraform(struct.resourceId), resource_type: cdktf.stringToTerraform(struct.resourceType), }; } exports.assuredWorkloadsWorkloadResourceSettingsToTerraform = assuredWorkloadsWorkloadResourceSettingsToTerraform; function assuredWorkloadsWorkloadResourceSettingsToHclTerraform(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 = { display_name: { value: cdktf.stringToHclTerraform(struct.displayName), isBlock: false, type: "simple", storageClassType: "string", }, resource_id: { value: cdktf.stringToHclTerraform(struct.resourceId), isBlock: false, type: "simple", storageClassType: "string", }, resource_type: { value: cdktf.stringToHclTerraform(struct.resourceType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.assuredWorkloadsWorkloadResourceSettingsToHclTerraform = assuredWorkloadsWorkloadResourceSettingsToHclTerraform; class AssuredWorkloadsWorkloadResourceSettingsOutputReference 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._displayName !== undefined) { hasAnyValues = true; internalValueResult.displayName = this._displayName; } if (this._resourceId !== undefined) { hasAnyValues = true; internalValueResult.resourceId = this._resourceId; } if (this._resourceType !== undefined) { hasAnyValues = true; internalValueResult.resourceType = this._resourceType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._displayName = undefined; this._resourceId = undefined; this._resourceType = 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._displayName = value.displayName; this._resourceId = value.resourceId; this._resourceType = value.resourceType; } } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } resetDisplayName() { this._displayName = undefined; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get resourceId() { return this.getStringAttribute('resource_id'); } set resourceId(value) { this._resourceId = value; } resetResourceId() { this._resourceId = undefined; } // Temporarily expose input value. Use with caution. get resourceIdInput() { return this._resourceId; } get resourceType() { return this.getStringAttribute('resource_type'); } set resourceType(value) { this._resourceType = value; } resetResourceType() { this._resourceType = undefined; } // Temporarily expose input value. Use with caution. get resourceTypeInput() { return this._resourceType; } } exports.AssuredWorkloadsWorkloadResourceSettingsOutputReference = AssuredWorkloadsWorkloadResourceSettingsOutputReference; _l = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadResourceSettingsOutputReference[_l] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadResourceSettingsOutputReference", version: "14.12.0" }; class AssuredWorkloadsWorkloadResourceSettingsList 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 AssuredWorkloadsWorkloadResourceSettingsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AssuredWorkloadsWorkloadResourceSettingsList = AssuredWorkloadsWorkloadResourceSettingsList; _m = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadResourceSettingsList[_m] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadResourceSettingsList", version: "14.12.0" }; function assuredWorkloadsWorkloadTimeoutsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } exports.assuredWorkloadsWorkloadTimeoutsToTerraform = assuredWorkloadsWorkloadTimeoutsToTerraform; function assuredWorkloadsWorkloadTimeoutsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.assuredWorkloadsWorkloadTimeoutsToHclTerraform = assuredWorkloadsWorkloadTimeoutsToHclTerraform; class AssuredWorkloadsWorkloadTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.AssuredWorkloadsWorkloadTimeoutsOutputReference = AssuredWorkloadsWorkloadTimeoutsOutputReference; _o = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadTimeoutsOutputReference[_o] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadTimeoutsOutputReference", version: "14.12.0" }; function assuredWorkloadsWorkloadWorkloadOptionsToTerraform(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 { kaj_enrollment_type: cdktf.stringToTerraform(struct.kajEnrollmentType), }; } exports.assuredWorkloadsWorkloadWorkloadOptionsToTerraform = assuredWorkloadsWorkloadWorkloadOptionsToTerraform; function assuredWorkloadsWorkloadWorkloadOptionsToHclTerraform(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 = { kaj_enrollment_type: { value: cdktf.stringToHclTerraform(struct.kajEnrollmentType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.assuredWorkloadsWorkloadWorkloadOptionsToHclTerraform = assuredWorkloadsWorkloadWorkloadOptionsToHclTerraform; class AssuredWorkloadsWorkloadWorkloadOptionsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._kajEnrollmentType !== undefined) { hasAnyValues = true; internalValueResult.kajEnrollmentType = this._kajEnrollmentType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._kajEnrollmentType = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kajEnrollmentType = value.kajEnrollmentType; } } get kajEnrollmentType() { return this.getStringAttribute('kaj_enrollment_type'); } set kajEnrollmentType(value) { this._kajEnrollmentType = value; } resetKajEnrollmentType() { this._kajEnrollmentType = undefined; } // Temporarily expose input value. Use with caution. get kajEnrollmentTypeInput() { return this._kajEnrollmentType; } } exports.AssuredWorkloadsWorkloadWorkloadOptionsOutputReference = AssuredWorkloadsWorkloadWorkloadOptionsOutputReference; _p = JSII_RTTI_SYMBOL_1; AssuredWorkloadsWorkloadWorkloadOptionsOutputReference[_p] = { fqn: "@cdktf/provider-google.assuredWorkloadsWorkload.AssuredWorkloadsWorkloadWorkloadOptionsOutputReference", version: "14.12.0" }; /** * Represents a {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/assured_workloads_workload google_assured_workloads_workload} */ class AssuredWorkloadsWorkload extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a AssuredWorkloadsWorkload 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 AssuredWorkloadsWorkload to import * @param importFromId The id of the existing AssuredWorkloadsWorkload that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/assured_workloads_workload#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the AssuredWorkloadsWorkload to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "google_assured_workloads_workload", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/hashicorp/google/6.13.0/docs/resources/assured_workloads_workload google_assured_workloads_workload} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options AssuredWorkloadsWorkloadConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'google_assured_workloads_workload', terraformGeneratorMetadata: { providerName: 'google', providerVersion: '6.13.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 }); // compliance_status - computed: true, optional: false, required: false this._complianceStatus = new AssuredWorkloadsWorkloadComplianceStatusList(this, "compliance_status", false); // effective_labels - computed: true, optional: false, required: false this._effectiveLabels = new cdktf.StringMap(this, "effective_labels"); // ekm_provisioning_response - computed: true, optional: false, required: false this._ekmProvisioningResponse = new AssuredWorkloadsWorkloadEkmProvisioningResponseList(this, "ekm_provisioning_response", false); // resources - computed: true, optional: false, required: false this._resources = new AssuredWorkloadsWorkloadResourcesList(this, "resources", false); // saa_enrollment_response - computed: true, optional: false, required: false this._saaEnrollmentResponse = new AssuredWorkloadsWorkloadSaaEnrollmentResponseList(this, "saa_enrollment_response", false); // terraform_labels - computed: true, optional: false, required: false this._terraformLabels = new cdktf.StringMap(this, "terraform_labels"); // kms_settings - computed: false, optional: true, required: false this._kmsSettings = new AssuredWorkloadsWorkloadKmsSettingsOutputReference(this, "kms_settings"); // partner_permissions - computed: false, optional: true, required: false this._partnerPermissions = new AssuredWorkloadsWorkloadPartnerPermissionsOutputReference(this, "partner_permissions"); // resource_settings - computed: false, optional: true, required: false this._resourceSettings = new AssuredWorkloadsWorkloadResourceSettingsList(this, "resource_settings", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new AssuredWorkloadsWorkloadTimeoutsOutputReference(this, "timeouts"); // workload_options - computed: false, optional: true, required: false this._workloadOptions = new AssuredWorkloadsWorkloadWorkloadOptionsOutputReference(this, "workload_options"); this._billingAccount = config.billingAccount; this._complianceRegime = config.complianceRegime; this._displayName = config.displayName; this._enableSovereignControls = config.enableSovereignControls; this._id = config.id; this._labels = config.labels; this._location = config.location; this._organization = config.organization; this._partner = config.partner; this._partnerServicesBillingAccount = config.partnerServicesBillingAccount; this._provisionedResourcesParent = config.provisionedResourcesParent; this._violationNotificationsEnabled = config.violationNotificationsEnabled; this._kmsSettings.internalValue = config.kmsSettings; this._partnerPermissions.internalValue = config.partnerPermissions; this._resourceSettings.internalValue = config.resourceSettings; this._timeouts.internalValue = config.timeouts; this._workloadOptions.internalValue = config.workloadOptions; } get billingAccount() { return this.getStringAttribute('billing_account'); } set billingAccount(value) { this._billingAccount = value; } resetBillingAccount() { this._billingAccount = undefined; } // Temporarily expose input value. Use with caution. get billingAccountInput() { return this._billingAccount; } get complianceRegime() { return this.getStringAttribute('compliance_regime'); } set complianceRegime(value) { this._complianceRegime = value; } // Temporarily expose input value. Use with caution. get complianceRegimeInput() { return this._complianceRegime; } get complianceStatus() { return this._complianceStatus; } // compliant_but_disallowed_services - computed: true, optional: false, required: false get compliantButDisallowedServices() { return this.getListAttribute('compliant_but_disallowed_services'); } // create_time - computed: true, optional: false, required: false get createTime() { return this.getStringAttribute('create_time'); } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get effectiveLabels() { return this._effectiveLabels;