@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
806 lines • 1.21 MB
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, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, _71, _72, _73, _74, _75, _76;
Object.defineProperty(exports, "__esModule", { value: true });
exports.securityhubAutomationRuleCriteriaConfidenceToHclTerraform = exports.securityhubAutomationRuleCriteriaConfidenceToTerraform = exports.SecurityhubAutomationRuleCriteriaComplianceStatusList = exports.SecurityhubAutomationRuleCriteriaComplianceStatusOutputReference = exports.securityhubAutomationRuleCriteriaComplianceStatusToHclTerraform = exports.securityhubAutomationRuleCriteriaComplianceStatusToTerraform = exports.SecurityhubAutomationRuleCriteriaComplianceSecurityControlIdList = exports.SecurityhubAutomationRuleCriteriaComplianceSecurityControlIdOutputReference = exports.securityhubAutomationRuleCriteriaComplianceSecurityControlIdToHclTerraform = exports.securityhubAutomationRuleCriteriaComplianceSecurityControlIdToTerraform = exports.SecurityhubAutomationRuleCriteriaComplianceAssociatedStandardsIdList = exports.SecurityhubAutomationRuleCriteriaComplianceAssociatedStandardsIdOutputReference = exports.securityhubAutomationRuleCriteriaComplianceAssociatedStandardsIdToHclTerraform = exports.securityhubAutomationRuleCriteriaComplianceAssociatedStandardsIdToTerraform = exports.SecurityhubAutomationRuleCriteriaCompanyNameList = exports.SecurityhubAutomationRuleCriteriaCompanyNameOutputReference = exports.securityhubAutomationRuleCriteriaCompanyNameToHclTerraform = exports.securityhubAutomationRuleCriteriaCompanyNameToTerraform = exports.SecurityhubAutomationRuleCriteriaAwsAccountNameList = exports.SecurityhubAutomationRuleCriteriaAwsAccountNameOutputReference = exports.securityhubAutomationRuleCriteriaAwsAccountNameToHclTerraform = exports.securityhubAutomationRuleCriteriaAwsAccountNameToTerraform = exports.SecurityhubAutomationRuleCriteriaAwsAccountIdList = exports.SecurityhubAutomationRuleCriteriaAwsAccountIdOutputReference = exports.securityhubAutomationRuleCriteriaAwsAccountIdToHclTerraform = exports.securityhubAutomationRuleCriteriaAwsAccountIdToTerraform = exports.SecurityhubAutomationRuleActionsList = exports.SecurityhubAutomationRuleActionsOutputReference = exports.securityhubAutomationRuleActionsToHclTerraform = exports.securityhubAutomationRuleActionsToTerraform = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateList = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateOutputReference = exports.securityhubAutomationRuleActionsFindingFieldsUpdateToHclTerraform = exports.securityhubAutomationRuleActionsFindingFieldsUpdateToTerraform = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowOutputReference = exports.securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToHclTerraform = exports.securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToTerraform = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityOutputReference = exports.securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToHclTerraform = exports.securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToTerraform = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsOutputReference = exports.securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToHclTerraform = exports.securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToTerraform = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList = exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteOutputReference = exports.securityhubAutomationRuleActionsFindingFieldsUpdateNoteToHclTerraform = exports.securityhubAutomationRuleActionsFindingFieldsUpdateNoteToTerraform = void 0;
exports.SecurityhubAutomationRuleCriteriaNoteUpdatedAtDateRangeList = exports.SecurityhubAutomationRuleCriteriaNoteUpdatedAtDateRangeOutputReference = exports.securityhubAutomationRuleCriteriaNoteUpdatedAtDateRangeToHclTerraform = exports.securityhubAutomationRuleCriteriaNoteUpdatedAtDateRangeToTerraform = exports.SecurityhubAutomationRuleCriteriaNoteTextList = exports.SecurityhubAutomationRuleCriteriaNoteTextOutputReference = exports.securityhubAutomationRuleCriteriaNoteTextToHclTerraform = exports.securityhubAutomationRuleCriteriaNoteTextToTerraform = exports.SecurityhubAutomationRuleCriteriaLastObservedAtList = exports.SecurityhubAutomationRuleCriteriaLastObservedAtOutputReference = exports.securityhubAutomationRuleCriteriaLastObservedAtToHclTerraform = exports.securityhubAutomationRuleCriteriaLastObservedAtToTerraform = exports.SecurityhubAutomationRuleCriteriaLastObservedAtDateRangeList = exports.SecurityhubAutomationRuleCriteriaLastObservedAtDateRangeOutputReference = exports.securityhubAutomationRuleCriteriaLastObservedAtDateRangeToHclTerraform = exports.securityhubAutomationRuleCriteriaLastObservedAtDateRangeToTerraform = exports.SecurityhubAutomationRuleCriteriaIdList = exports.SecurityhubAutomationRuleCriteriaIdOutputReference = exports.securityhubAutomationRuleCriteriaIdToHclTerraform = exports.securityhubAutomationRuleCriteriaIdToTerraform = exports.SecurityhubAutomationRuleCriteriaGeneratorIdList = exports.SecurityhubAutomationRuleCriteriaGeneratorIdOutputReference = exports.securityhubAutomationRuleCriteriaGeneratorIdToHclTerraform = exports.securityhubAutomationRuleCriteriaGeneratorIdToTerraform = exports.SecurityhubAutomationRuleCriteriaFirstObservedAtList = exports.SecurityhubAutomationRuleCriteriaFirstObservedAtOutputReference = exports.securityhubAutomationRuleCriteriaFirstObservedAtToHclTerraform = exports.securityhubAutomationRuleCriteriaFirstObservedAtToTerraform = exports.SecurityhubAutomationRuleCriteriaFirstObservedAtDateRangeList = exports.SecurityhubAutomationRuleCriteriaFirstObservedAtDateRangeOutputReference = exports.securityhubAutomationRuleCriteriaFirstObservedAtDateRangeToHclTerraform = exports.securityhubAutomationRuleCriteriaFirstObservedAtDateRangeToTerraform = exports.SecurityhubAutomationRuleCriteriaDescriptionList = exports.SecurityhubAutomationRuleCriteriaDescriptionOutputReference = exports.securityhubAutomationRuleCriteriaDescriptionToHclTerraform = exports.securityhubAutomationRuleCriteriaDescriptionToTerraform = exports.SecurityhubAutomationRuleCriteriaCriticalityList = exports.SecurityhubAutomationRuleCriteriaCriticalityOutputReference = exports.securityhubAutomationRuleCriteriaCriticalityToHclTerraform = exports.securityhubAutomationRuleCriteriaCriticalityToTerraform = exports.SecurityhubAutomationRuleCriteriaCreatedAtList = exports.SecurityhubAutomationRuleCriteriaCreatedAtOutputReference = exports.securityhubAutomationRuleCriteriaCreatedAtToHclTerraform = exports.securityhubAutomationRuleCriteriaCreatedAtToTerraform = exports.SecurityhubAutomationRuleCriteriaCreatedAtDateRangeList = exports.SecurityhubAutomationRuleCriteriaCreatedAtDateRangeOutputReference = exports.securityhubAutomationRuleCriteriaCreatedAtDateRangeToHclTerraform = exports.securityhubAutomationRuleCriteriaCreatedAtDateRangeToTerraform = exports.SecurityhubAutomationRuleCriteriaConfidenceList = exports.SecurityhubAutomationRuleCriteriaConfidenceOutputReference = void 0;
exports.securityhubAutomationRuleCriteriaResourceRegionToHclTerraform = exports.securityhubAutomationRuleCriteriaResourceRegionToTerraform = exports.SecurityhubAutomationRuleCriteriaResourcePartitionList = exports.SecurityhubAutomationRuleCriteriaResourcePartitionOutputReference = exports.securityhubAutomationRuleCriteriaResourcePartitionToHclTerraform = exports.securityhubAutomationRuleCriteriaResourcePartitionToTerraform = exports.SecurityhubAutomationRuleCriteriaResourceIdList = exports.SecurityhubAutomationRuleCriteriaResourceIdOutputReference = exports.securityhubAutomationRuleCriteriaResourceIdToHclTerraform = exports.securityhubAutomationRuleCriteriaResourceIdToTerraform = exports.SecurityhubAutomationRuleCriteriaResourceDetailsOtherList = exports.SecurityhubAutomationRuleCriteriaResourceDetailsOtherOutputReference = exports.securityhubAutomationRuleCriteriaResourceDetailsOtherToHclTerraform = exports.securityhubAutomationRuleCriteriaResourceDetailsOtherToTerraform = exports.SecurityhubAutomationRuleCriteriaResourceApplicationNameList = exports.SecurityhubAutomationRuleCriteriaResourceApplicationNameOutputReference = exports.securityhubAutomationRuleCriteriaResourceApplicationNameToHclTerraform = exports.securityhubAutomationRuleCriteriaResourceApplicationNameToTerraform = exports.SecurityhubAutomationRuleCriteriaResourceApplicationArnList = exports.SecurityhubAutomationRuleCriteriaResourceApplicationArnOutputReference = exports.securityhubAutomationRuleCriteriaResourceApplicationArnToHclTerraform = exports.securityhubAutomationRuleCriteriaResourceApplicationArnToTerraform = exports.SecurityhubAutomationRuleCriteriaRelatedFindingsProductArnList = exports.SecurityhubAutomationRuleCriteriaRelatedFindingsProductArnOutputReference = exports.securityhubAutomationRuleCriteriaRelatedFindingsProductArnToHclTerraform = exports.securityhubAutomationRuleCriteriaRelatedFindingsProductArnToTerraform = exports.SecurityhubAutomationRuleCriteriaRelatedFindingsIdList = exports.SecurityhubAutomationRuleCriteriaRelatedFindingsIdOutputReference = exports.securityhubAutomationRuleCriteriaRelatedFindingsIdToHclTerraform = exports.securityhubAutomationRuleCriteriaRelatedFindingsIdToTerraform = exports.SecurityhubAutomationRuleCriteriaRecordStateList = exports.SecurityhubAutomationRuleCriteriaRecordStateOutputReference = exports.securityhubAutomationRuleCriteriaRecordStateToHclTerraform = exports.securityhubAutomationRuleCriteriaRecordStateToTerraform = exports.SecurityhubAutomationRuleCriteriaProductNameList = exports.SecurityhubAutomationRuleCriteriaProductNameOutputReference = exports.securityhubAutomationRuleCriteriaProductNameToHclTerraform = exports.securityhubAutomationRuleCriteriaProductNameToTerraform = exports.SecurityhubAutomationRuleCriteriaProductArnList = exports.SecurityhubAutomationRuleCriteriaProductArnOutputReference = exports.securityhubAutomationRuleCriteriaProductArnToHclTerraform = exports.securityhubAutomationRuleCriteriaProductArnToTerraform = exports.SecurityhubAutomationRuleCriteriaNoteUpdatedByList = exports.SecurityhubAutomationRuleCriteriaNoteUpdatedByOutputReference = exports.securityhubAutomationRuleCriteriaNoteUpdatedByToHclTerraform = exports.securityhubAutomationRuleCriteriaNoteUpdatedByToTerraform = exports.SecurityhubAutomationRuleCriteriaNoteUpdatedAtList = exports.SecurityhubAutomationRuleCriteriaNoteUpdatedAtOutputReference = exports.securityhubAutomationRuleCriteriaNoteUpdatedAtToHclTerraform = exports.securityhubAutomationRuleCriteriaNoteUpdatedAtToTerraform = void 0;
exports.SecurityhubAutomationRuleCriteriaList = exports.SecurityhubAutomationRuleCriteriaOutputReference = exports.securityhubAutomationRuleCriteriaToHclTerraform = exports.securityhubAutomationRuleCriteriaToTerraform = exports.SecurityhubAutomationRuleCriteriaWorkflowStatusList = exports.SecurityhubAutomationRuleCriteriaWorkflowStatusOutputReference = exports.securityhubAutomationRuleCriteriaWorkflowStatusToHclTerraform = exports.securityhubAutomationRuleCriteriaWorkflowStatusToTerraform = exports.SecurityhubAutomationRuleCriteriaVerificationStateList = exports.SecurityhubAutomationRuleCriteriaVerificationStateOutputReference = exports.securityhubAutomationRuleCriteriaVerificationStateToHclTerraform = exports.securityhubAutomationRuleCriteriaVerificationStateToTerraform = exports.SecurityhubAutomationRuleCriteriaUserDefinedFieldsList = exports.SecurityhubAutomationRuleCriteriaUserDefinedFieldsOutputReference = exports.securityhubAutomationRuleCriteriaUserDefinedFieldsToHclTerraform = exports.securityhubAutomationRuleCriteriaUserDefinedFieldsToTerraform = exports.SecurityhubAutomationRuleCriteriaUpdatedAtList = exports.SecurityhubAutomationRuleCriteriaUpdatedAtOutputReference = exports.securityhubAutomationRuleCriteriaUpdatedAtToHclTerraform = exports.securityhubAutomationRuleCriteriaUpdatedAtToTerraform = exports.SecurityhubAutomationRuleCriteriaUpdatedAtDateRangeList = exports.SecurityhubAutomationRuleCriteriaUpdatedAtDateRangeOutputReference = exports.securityhubAutomationRuleCriteriaUpdatedAtDateRangeToHclTerraform = exports.securityhubAutomationRuleCriteriaUpdatedAtDateRangeToTerraform = exports.SecurityhubAutomationRuleCriteriaTypeList = exports.SecurityhubAutomationRuleCriteriaTypeOutputReference = exports.securityhubAutomationRuleCriteriaTypeToHclTerraform = exports.securityhubAutomationRuleCriteriaTypeToTerraform = exports.SecurityhubAutomationRuleCriteriaTitleList = exports.SecurityhubAutomationRuleCriteriaTitleOutputReference = exports.securityhubAutomationRuleCriteriaTitleToHclTerraform = exports.securityhubAutomationRuleCriteriaTitleToTerraform = exports.SecurityhubAutomationRuleCriteriaSourceUrlList = exports.SecurityhubAutomationRuleCriteriaSourceUrlOutputReference = exports.securityhubAutomationRuleCriteriaSourceUrlToHclTerraform = exports.securityhubAutomationRuleCriteriaSourceUrlToTerraform = exports.SecurityhubAutomationRuleCriteriaSeverityLabelList = exports.SecurityhubAutomationRuleCriteriaSeverityLabelOutputReference = exports.securityhubAutomationRuleCriteriaSeverityLabelToHclTerraform = exports.securityhubAutomationRuleCriteriaSeverityLabelToTerraform = exports.SecurityhubAutomationRuleCriteriaResourceTypeList = exports.SecurityhubAutomationRuleCriteriaResourceTypeOutputReference = exports.securityhubAutomationRuleCriteriaResourceTypeToHclTerraform = exports.securityhubAutomationRuleCriteriaResourceTypeToTerraform = exports.SecurityhubAutomationRuleCriteriaResourceTagsList = exports.SecurityhubAutomationRuleCriteriaResourceTagsOutputReference = exports.securityhubAutomationRuleCriteriaResourceTagsToHclTerraform = exports.securityhubAutomationRuleCriteriaResourceTagsToTerraform = exports.SecurityhubAutomationRuleCriteriaResourceRegionList = exports.SecurityhubAutomationRuleCriteriaResourceRegionOutputReference = void 0;
exports.SecurityhubAutomationRule = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function securityhubAutomationRuleActionsFindingFieldsUpdateNoteToTerraform(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 {
text: cdktf.stringToTerraform(struct.text),
updated_by: cdktf.stringToTerraform(struct.updatedBy),
};
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateNoteToTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateNoteToTerraform;
function securityhubAutomationRuleActionsFindingFieldsUpdateNoteToHclTerraform(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 = {
text: {
value: cdktf.stringToHclTerraform(struct.text),
isBlock: false,
type: "simple",
storageClassType: "string",
},
updated_by: {
value: cdktf.stringToHclTerraform(struct.updatedBy),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateNoteToHclTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateNoteToHclTerraform;
class SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteOutputReference 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._text !== undefined) {
hasAnyValues = true;
internalValueResult.text = this._text;
}
if (this._updatedBy !== undefined) {
hasAnyValues = true;
internalValueResult.updatedBy = this._updatedBy;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._text = undefined;
this._updatedBy = 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._text = value.text;
this._updatedBy = value.updatedBy;
}
}
get text() {
return this.getStringAttribute('text');
}
set text(value) {
this._text = value;
}
// Temporarily expose input value. Use with caution.
get textInput() {
return this._text;
}
get updatedBy() {
return this.getStringAttribute('updated_by');
}
set updatedBy(value) {
this._updatedBy = value;
}
// Temporarily expose input value. Use with caution.
get updatedByInput() {
return this._updatedBy;
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteOutputReference = SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteOutputReference;
_a = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteOutputReference[_a] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteOutputReference", version: "19.50.0" };
class SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList 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 SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList = SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList;
_b = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList[_b] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList", version: "19.50.0" };
function securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToTerraform(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 {
id: cdktf.stringToTerraform(struct.id),
product_arn: cdktf.stringToTerraform(struct.productArn),
};
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToTerraform;
function securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToHclTerraform(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 = {
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
product_arn: {
value: cdktf.stringToHclTerraform(struct.productArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToHclTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToHclTerraform;
class SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsOutputReference 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._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
if (this._productArn !== undefined) {
hasAnyValues = true;
internalValueResult.productArn = this._productArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._id = undefined;
this._productArn = 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._id = value.id;
this._productArn = value.productArn;
}
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
get productArn() {
return this.getStringAttribute('product_arn');
}
set productArn(value) {
this._productArn = value;
}
// Temporarily expose input value. Use with caution.
get productArnInput() {
return this._productArn;
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsOutputReference = SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsOutputReference[_c] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsOutputReference", version: "19.50.0" };
class SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList 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 SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList = SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList;
_d = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList[_d] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList", version: "19.50.0" };
function securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToTerraform(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 {
label: cdktf.stringToTerraform(struct.label),
product: cdktf.numberToTerraform(struct.product),
};
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToTerraform;
function securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToHclTerraform(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 = {
label: {
value: cdktf.stringToHclTerraform(struct.label),
isBlock: false,
type: "simple",
storageClassType: "string",
},
product: {
value: cdktf.numberToHclTerraform(struct.product),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToHclTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToHclTerraform;
class SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityOutputReference 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._label !== undefined) {
hasAnyValues = true;
internalValueResult.label = this._label;
}
if (this._product !== undefined) {
hasAnyValues = true;
internalValueResult.product = this._product;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._label = undefined;
this._product = 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._label = value.label;
this._product = value.product;
}
}
get label() {
return this.getStringAttribute('label');
}
set label(value) {
this._label = value;
}
resetLabel() {
this._label = undefined;
}
// Temporarily expose input value. Use with caution.
get labelInput() {
return this._label;
}
get product() {
return this.getNumberAttribute('product');
}
set product(value) {
this._product = value;
}
resetProduct() {
this._product = undefined;
}
// Temporarily expose input value. Use with caution.
get productInput() {
return this._product;
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityOutputReference = SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityOutputReference;
_e = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityOutputReference[_e] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityOutputReference", version: "19.50.0" };
class SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList 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 SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList = SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList;
_f = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList[_f] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList", version: "19.50.0" };
function securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToTerraform(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 {
status: cdktf.stringToTerraform(struct.status),
};
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToTerraform;
function securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToHclTerraform(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 = {
status: {
value: cdktf.stringToHclTerraform(struct.status),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToHclTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToHclTerraform;
class SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowOutputReference 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._status !== undefined) {
hasAnyValues = true;
internalValueResult.status = this._status;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._status = 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._status = value.status;
}
}
get status() {
return this.getStringAttribute('status');
}
set status(value) {
this._status = value;
}
resetStatus() {
this._status = undefined;
}
// Temporarily expose input value. Use with caution.
get statusInput() {
return this._status;
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowOutputReference = SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowOutputReference;
_g = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowOutputReference[_g] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowOutputReference", version: "19.50.0" };
class SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList 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 SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList = SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList;
_h = JSII_RTTI_SYMBOL_1;
SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList[_h] = { fqn: "@cdktf/provider-aws.securityhubAutomationRule.SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList", version: "19.50.0" };
function securityhubAutomationRuleActionsFindingFieldsUpdateToTerraform(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 {
confidence: cdktf.numberToTerraform(struct.confidence),
criticality: cdktf.numberToTerraform(struct.criticality),
types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.types),
user_defined_fields: cdktf.hashMapper(cdktf.stringToTerraform)(struct.userDefinedFields),
verification_state: cdktf.stringToTerraform(struct.verificationState),
note: cdktf.listMapper(securityhubAutomationRuleActionsFindingFieldsUpdateNoteToTerraform, true)(struct.note),
related_findings: cdktf.listMapper(securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToTerraform, true)(struct.relatedFindings),
severity: cdktf.listMapper(securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToTerraform, true)(struct.severity),
workflow: cdktf.listMapper(securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToTerraform, true)(struct.workflow),
};
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateToTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateToTerraform;
function securityhubAutomationRuleActionsFindingFieldsUpdateToHclTerraform(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 = {
confidence: {
value: cdktf.numberToHclTerraform(struct.confidence),
isBlock: false,
type: "simple",
storageClassType: "number",
},
criticality: {
value: cdktf.numberToHclTerraform(struct.criticality),
isBlock: false,
type: "simple",
storageClassType: "number",
},
types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.types),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
user_defined_fields: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.userDefinedFields),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
verification_state: {
value: cdktf.stringToHclTerraform(struct.verificationState),
isBlock: false,
type: "simple",
storageClassType: "string",
},
note: {
value: cdktf.listMapperHcl(securityhubAutomationRuleActionsFindingFieldsUpdateNoteToHclTerraform, true)(struct.note),
isBlock: true,
type: "list",
storageClassType: "SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList",
},
related_findings: {
value: cdktf.listMapperHcl(securityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsToHclTerraform, true)(struct.relatedFindings),
isBlock: true,
type: "set",
storageClassType: "SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList",
},
severity: {
value: cdktf.listMapperHcl(securityhubAutomationRuleActionsFindingFieldsUpdateSeverityToHclTerraform, true)(struct.severity),
isBlock: true,
type: "list",
storageClassType: "SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList",
},
workflow: {
value: cdktf.listMapperHcl(securityhubAutomationRuleActionsFindingFieldsUpdateWorkflowToHclTerraform, true)(struct.workflow),
isBlock: true,
type: "list",
storageClassType: "SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.securityhubAutomationRuleActionsFindingFieldsUpdateToHclTerraform = securityhubAutomationRuleActionsFindingFieldsUpdateToHclTerraform;
class SecurityhubAutomationRuleActionsFindingFieldsUpdateOutputReference 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;
// note - computed: false, optional: true, required: false
this._note = new SecurityhubAutomationRuleActionsFindingFieldsUpdateNoteList(this, "note", false);
// related_findings - computed: false, optional: true, required: false
this._relatedFindings = new SecurityhubAutomationRuleActionsFindingFieldsUpdateRelatedFindingsList(this, "related_findings", true);
// severity - computed: false, optional: true, required: false
this._severity = new SecurityhubAutomationRuleActionsFindingFieldsUpdateSeverityList(this, "severity", false);
// workflow - computed: false, optional: true, required: false
this._workflow = new SecurityhubAutomationRuleActionsFindingFieldsUpdateWorkflowList(this, "workflow", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._confidence !== undefined) {
hasAnyValues = true;
internalValueResult.confidence = this._confidence;
}
if (this._criticality !== undefined) {
hasAnyValues = true;
internalValueResult.criticality = this._criticality;
}
if (this._types !== undefined) {
hasAnyValues = true;
internalValueResult.types = this._types;
}
if (this._userDefinedFields !== undefined) {
hasAnyValues = true;
internalValueResult.userDefinedFields = this._userDefinedFields;
}
if (this._verificationState !== undefined) {
hasAnyValues = true;
internalValueResult.verificationState = this._verificationState;
}
if (this._note?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.note = this._note?.internalValue;
}
if (this._relatedFindings?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.relatedFindings = this._relatedFindings?.internalValue;
}
if (this._severity?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.severity = this._severity?.internalValue;
}
if (this._workflow?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.workflow = this._workflow?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._confidence = undefined;
this._criticality = undefined;
this._types = undefined;
this._userDefinedFields = undefined;
this._verificationState = undefined;
this._note.internalValue = undefined;
this._relatedFindings.internalValue = undefined;
this._severity.internalValue = undefined;
this._workflow.internalValue = 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._confidence = value.confidence;
this._criticality = value.criticality;
this._types = value.types;
this._userDefinedFields = value.userDefinedFields;
this._verificationState = value.verificationState;
this._note.internalValue = value.note;
this._relatedFindings.internalValue = value.relatedFindings;
this._severity.internalValue = value.severity;
this._workflow.internalValue = value.workflow;
}
}
get confidence() {
return this.getNumberAttribute('confidence');
}
set confidence(value) {
this._confidence = value;
}
resetConfidence() {
this._confidence = undefined;
}
// Temporarily expose input value. Use with caution.
get confidenceInput() {
return this._confidence;
}
get criticality() {
return this.getNumberAttribute('criticality');
}
set criticality(value) {
this._criticality = value;
}
resetCriticality() {
this._criticality = undefined;
}
// Temporarily expose input value. Use with caution.
get criticalityInput() {
return this._criticality;
}
get types() {
return this.getListAttribute('types');
}
set types(value) {
this._types = value;
}
resetTypes() {
this._types = undefined;
}
// Temporarily expose input value. Use with caution.
get typesInput() {
return this._types;
}
get userDefinedFields() {
return this.getStringMapAttribute('user_defined_fields');
}
set userDefinedFields(value) {
this._userDefinedFields = value;
}
resetUserDefinedFields() {
this._userDefinedFields = undefined;
}
// Temporarily expose input value. Use with caution.
get userDefinedFieldsInput() {
return this._userDefinedFields;
}
get verificationState() {
return this.getStringAttribute('verification_state');
}
set verificationState(value) {
this._verificationState = value;
}
resetVerificationState() {
this._verificationState = undefined;
}
// Temporarily expose input value. Use with caution.
get verificationStateInput() {
return this._verificationState;
}
get note() {
return this._note;
}
putNote(value) {
this._note.internalValue = value;
}
resetNote() {
this._note.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get noteInput() {
return this._note.internalValue;
}
get relatedFindings() {
return this._relatedFindings;
}
putRelatedFindings(value) {
this._relatedFindings.internalValue = value;
}
resetRelatedFindings() {
this._relatedFindings.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get relatedFindingsInput() {
return this._relatedFindings.internalValue;
}
get severity() {
return this._severity;
}
putSeverity(value) {
this._severity.internalValue = value;
}
resetSeverity() {
this._severity.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get severityInput() {
return this._severity.internalValue;
}
get workflow() {
return this._workflow;
}
putWorkflow(value) {
this._workflow.internalValue = value;
}
resetWorkflow() {
this._workflow.internalVal