UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,263 lines 227 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.SesReceiptRule = exports.SesReceiptRuleWorkmailActionList = exports.SesReceiptRuleWorkmailActionOutputReference = exports.SesReceiptRuleStopActionList = exports.SesReceiptRuleStopActionOutputReference = exports.SesReceiptRuleSnsActionList = exports.SesReceiptRuleSnsActionOutputReference = exports.SesReceiptRuleS3ActionList = exports.SesReceiptRuleS3ActionOutputReference = exports.SesReceiptRuleLambdaActionList = exports.SesReceiptRuleLambdaActionOutputReference = exports.SesReceiptRuleBounceActionList = exports.SesReceiptRuleBounceActionOutputReference = exports.SesReceiptRuleAddHeaderActionList = exports.SesReceiptRuleAddHeaderActionOutputReference = void 0; exports.sesReceiptRuleAddHeaderActionToTerraform = sesReceiptRuleAddHeaderActionToTerraform; exports.sesReceiptRuleAddHeaderActionToHclTerraform = sesReceiptRuleAddHeaderActionToHclTerraform; exports.sesReceiptRuleBounceActionToTerraform = sesReceiptRuleBounceActionToTerraform; exports.sesReceiptRuleBounceActionToHclTerraform = sesReceiptRuleBounceActionToHclTerraform; exports.sesReceiptRuleLambdaActionToTerraform = sesReceiptRuleLambdaActionToTerraform; exports.sesReceiptRuleLambdaActionToHclTerraform = sesReceiptRuleLambdaActionToHclTerraform; exports.sesReceiptRuleS3ActionToTerraform = sesReceiptRuleS3ActionToTerraform; exports.sesReceiptRuleS3ActionToHclTerraform = sesReceiptRuleS3ActionToHclTerraform; exports.sesReceiptRuleSnsActionToTerraform = sesReceiptRuleSnsActionToTerraform; exports.sesReceiptRuleSnsActionToHclTerraform = sesReceiptRuleSnsActionToHclTerraform; exports.sesReceiptRuleStopActionToTerraform = sesReceiptRuleStopActionToTerraform; exports.sesReceiptRuleStopActionToHclTerraform = sesReceiptRuleStopActionToHclTerraform; exports.sesReceiptRuleWorkmailActionToTerraform = sesReceiptRuleWorkmailActionToTerraform; exports.sesReceiptRuleWorkmailActionToHclTerraform = sesReceiptRuleWorkmailActionToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function sesReceiptRuleAddHeaderActionToTerraform(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 { header_name: cdktf.stringToTerraform(struct.headerName), header_value: cdktf.stringToTerraform(struct.headerValue), position: cdktf.numberToTerraform(struct.position), }; } function sesReceiptRuleAddHeaderActionToHclTerraform(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 = { header_name: { value: cdktf.stringToHclTerraform(struct.headerName), isBlock: false, type: "simple", storageClassType: "string", }, header_value: { value: cdktf.stringToHclTerraform(struct.headerValue), isBlock: false, type: "simple", storageClassType: "string", }, position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class SesReceiptRuleAddHeaderActionOutputReference 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._headerName !== undefined) { hasAnyValues = true; internalValueResult.headerName = this._headerName; } if (this._headerValue !== undefined) { hasAnyValues = true; internalValueResult.headerValue = this._headerValue; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._headerName = undefined; this._headerValue = undefined; this._position = 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._headerName = value.headerName; this._headerValue = value.headerValue; this._position = value.position; } } get headerName() { return this.getStringAttribute('header_name'); } set headerName(value) { this._headerName = value; } // Temporarily expose input value. Use with caution. get headerNameInput() { return this._headerName; } get headerValue() { return this.getStringAttribute('header_value'); } set headerValue(value) { this._headerValue = value; } // Temporarily expose input value. Use with caution. get headerValueInput() { return this._headerValue; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } } exports.SesReceiptRuleAddHeaderActionOutputReference = SesReceiptRuleAddHeaderActionOutputReference; _a = JSII_RTTI_SYMBOL_1; SesReceiptRuleAddHeaderActionOutputReference[_a] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleAddHeaderActionOutputReference", version: "21.22.1" }; class SesReceiptRuleAddHeaderActionList 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 SesReceiptRuleAddHeaderActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SesReceiptRuleAddHeaderActionList = SesReceiptRuleAddHeaderActionList; _b = JSII_RTTI_SYMBOL_1; SesReceiptRuleAddHeaderActionList[_b] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleAddHeaderActionList", version: "21.22.1" }; function sesReceiptRuleBounceActionToTerraform(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 { message: cdktf.stringToTerraform(struct.message), position: cdktf.numberToTerraform(struct.position), sender: cdktf.stringToTerraform(struct.sender), smtp_reply_code: cdktf.stringToTerraform(struct.smtpReplyCode), status_code: cdktf.stringToTerraform(struct.statusCode), topic_arn: cdktf.stringToTerraform(struct.topicArn), }; } function sesReceiptRuleBounceActionToHclTerraform(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 = { message: { value: cdktf.stringToHclTerraform(struct.message), isBlock: false, type: "simple", storageClassType: "string", }, position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, sender: { value: cdktf.stringToHclTerraform(struct.sender), isBlock: false, type: "simple", storageClassType: "string", }, smtp_reply_code: { value: cdktf.stringToHclTerraform(struct.smtpReplyCode), isBlock: false, type: "simple", storageClassType: "string", }, status_code: { value: cdktf.stringToHclTerraform(struct.statusCode), isBlock: false, type: "simple", storageClassType: "string", }, topic_arn: { value: cdktf.stringToHclTerraform(struct.topicArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class SesReceiptRuleBounceActionOutputReference 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._message !== undefined) { hasAnyValues = true; internalValueResult.message = this._message; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._sender !== undefined) { hasAnyValues = true; internalValueResult.sender = this._sender; } if (this._smtpReplyCode !== undefined) { hasAnyValues = true; internalValueResult.smtpReplyCode = this._smtpReplyCode; } if (this._statusCode !== undefined) { hasAnyValues = true; internalValueResult.statusCode = this._statusCode; } if (this._topicArn !== undefined) { hasAnyValues = true; internalValueResult.topicArn = this._topicArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._message = undefined; this._position = undefined; this._sender = undefined; this._smtpReplyCode = undefined; this._statusCode = undefined; this._topicArn = 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._message = value.message; this._position = value.position; this._sender = value.sender; this._smtpReplyCode = value.smtpReplyCode; this._statusCode = value.statusCode; this._topicArn = value.topicArn; } } get message() { return this.getStringAttribute('message'); } set message(value) { this._message = value; } // Temporarily expose input value. Use with caution. get messageInput() { return this._message; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get sender() { return this.getStringAttribute('sender'); } set sender(value) { this._sender = value; } // Temporarily expose input value. Use with caution. get senderInput() { return this._sender; } get smtpReplyCode() { return this.getStringAttribute('smtp_reply_code'); } set smtpReplyCode(value) { this._smtpReplyCode = value; } // Temporarily expose input value. Use with caution. get smtpReplyCodeInput() { return this._smtpReplyCode; } get statusCode() { return this.getStringAttribute('status_code'); } set statusCode(value) { this._statusCode = value; } resetStatusCode() { this._statusCode = undefined; } // Temporarily expose input value. Use with caution. get statusCodeInput() { return this._statusCode; } get topicArn() { return this.getStringAttribute('topic_arn'); } set topicArn(value) { this._topicArn = value; } resetTopicArn() { this._topicArn = undefined; } // Temporarily expose input value. Use with caution. get topicArnInput() { return this._topicArn; } } exports.SesReceiptRuleBounceActionOutputReference = SesReceiptRuleBounceActionOutputReference; _c = JSII_RTTI_SYMBOL_1; SesReceiptRuleBounceActionOutputReference[_c] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleBounceActionOutputReference", version: "21.22.1" }; class SesReceiptRuleBounceActionList 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 SesReceiptRuleBounceActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SesReceiptRuleBounceActionList = SesReceiptRuleBounceActionList; _d = JSII_RTTI_SYMBOL_1; SesReceiptRuleBounceActionList[_d] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleBounceActionList", version: "21.22.1" }; function sesReceiptRuleLambdaActionToTerraform(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_arn: cdktf.stringToTerraform(struct.functionArn), invocation_type: cdktf.stringToTerraform(struct.invocationType), position: cdktf.numberToTerraform(struct.position), topic_arn: cdktf.stringToTerraform(struct.topicArn), }; } function sesReceiptRuleLambdaActionToHclTerraform(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 = { function_arn: { value: cdktf.stringToHclTerraform(struct.functionArn), isBlock: false, type: "simple", storageClassType: "string", }, invocation_type: { value: cdktf.stringToHclTerraform(struct.invocationType), isBlock: false, type: "simple", storageClassType: "string", }, position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, topic_arn: { value: cdktf.stringToHclTerraform(struct.topicArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class SesReceiptRuleLambdaActionOutputReference 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._functionArn !== undefined) { hasAnyValues = true; internalValueResult.functionArn = this._functionArn; } if (this._invocationType !== undefined) { hasAnyValues = true; internalValueResult.invocationType = this._invocationType; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._topicArn !== undefined) { hasAnyValues = true; internalValueResult.topicArn = this._topicArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._functionArn = undefined; this._invocationType = undefined; this._position = undefined; this._topicArn = 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._functionArn = value.functionArn; this._invocationType = value.invocationType; this._position = value.position; this._topicArn = value.topicArn; } } get functionArn() { return this.getStringAttribute('function_arn'); } set functionArn(value) { this._functionArn = value; } // Temporarily expose input value. Use with caution. get functionArnInput() { return this._functionArn; } get invocationType() { return this.getStringAttribute('invocation_type'); } set invocationType(value) { this._invocationType = value; } resetInvocationType() { this._invocationType = undefined; } // Temporarily expose input value. Use with caution. get invocationTypeInput() { return this._invocationType; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get topicArn() { return this.getStringAttribute('topic_arn'); } set topicArn(value) { this._topicArn = value; } resetTopicArn() { this._topicArn = undefined; } // Temporarily expose input value. Use with caution. get topicArnInput() { return this._topicArn; } } exports.SesReceiptRuleLambdaActionOutputReference = SesReceiptRuleLambdaActionOutputReference; _e = JSII_RTTI_SYMBOL_1; SesReceiptRuleLambdaActionOutputReference[_e] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleLambdaActionOutputReference", version: "21.22.1" }; class SesReceiptRuleLambdaActionList 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 SesReceiptRuleLambdaActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SesReceiptRuleLambdaActionList = SesReceiptRuleLambdaActionList; _f = JSII_RTTI_SYMBOL_1; SesReceiptRuleLambdaActionList[_f] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleLambdaActionList", version: "21.22.1" }; function sesReceiptRuleS3ActionToTerraform(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 { bucket_name: cdktf.stringToTerraform(struct.bucketName), iam_role_arn: cdktf.stringToTerraform(struct.iamRoleArn), kms_key_arn: cdktf.stringToTerraform(struct.kmsKeyArn), object_key_prefix: cdktf.stringToTerraform(struct.objectKeyPrefix), position: cdktf.numberToTerraform(struct.position), topic_arn: cdktf.stringToTerraform(struct.topicArn), }; } function sesReceiptRuleS3ActionToHclTerraform(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 = { bucket_name: { value: cdktf.stringToHclTerraform(struct.bucketName), isBlock: false, type: "simple", storageClassType: "string", }, iam_role_arn: { value: cdktf.stringToHclTerraform(struct.iamRoleArn), isBlock: false, type: "simple", storageClassType: "string", }, kms_key_arn: { value: cdktf.stringToHclTerraform(struct.kmsKeyArn), isBlock: false, type: "simple", storageClassType: "string", }, object_key_prefix: { value: cdktf.stringToHclTerraform(struct.objectKeyPrefix), isBlock: false, type: "simple", storageClassType: "string", }, position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, topic_arn: { value: cdktf.stringToHclTerraform(struct.topicArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class SesReceiptRuleS3ActionOutputReference 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._bucketName !== undefined) { hasAnyValues = true; internalValueResult.bucketName = this._bucketName; } if (this._iamRoleArn !== undefined) { hasAnyValues = true; internalValueResult.iamRoleArn = this._iamRoleArn; } if (this._kmsKeyArn !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyArn = this._kmsKeyArn; } if (this._objectKeyPrefix !== undefined) { hasAnyValues = true; internalValueResult.objectKeyPrefix = this._objectKeyPrefix; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._topicArn !== undefined) { hasAnyValues = true; internalValueResult.topicArn = this._topicArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._bucketName = undefined; this._iamRoleArn = undefined; this._kmsKeyArn = undefined; this._objectKeyPrefix = undefined; this._position = undefined; this._topicArn = 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._bucketName = value.bucketName; this._iamRoleArn = value.iamRoleArn; this._kmsKeyArn = value.kmsKeyArn; this._objectKeyPrefix = value.objectKeyPrefix; this._position = value.position; this._topicArn = value.topicArn; } } get bucketName() { return this.getStringAttribute('bucket_name'); } set bucketName(value) { this._bucketName = value; } // Temporarily expose input value. Use with caution. get bucketNameInput() { return this._bucketName; } get iamRoleArn() { return this.getStringAttribute('iam_role_arn'); } set iamRoleArn(value) { this._iamRoleArn = value; } resetIamRoleArn() { this._iamRoleArn = undefined; } // Temporarily expose input value. Use with caution. get iamRoleArnInput() { return this._iamRoleArn; } get kmsKeyArn() { return this.getStringAttribute('kms_key_arn'); } set kmsKeyArn(value) { this._kmsKeyArn = value; } resetKmsKeyArn() { this._kmsKeyArn = undefined; } // Temporarily expose input value. Use with caution. get kmsKeyArnInput() { return this._kmsKeyArn; } get objectKeyPrefix() { return this.getStringAttribute('object_key_prefix'); } set objectKeyPrefix(value) { this._objectKeyPrefix = value; } resetObjectKeyPrefix() { this._objectKeyPrefix = undefined; } // Temporarily expose input value. Use with caution. get objectKeyPrefixInput() { return this._objectKeyPrefix; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get topicArn() { return this.getStringAttribute('topic_arn'); } set topicArn(value) { this._topicArn = value; } resetTopicArn() { this._topicArn = undefined; } // Temporarily expose input value. Use with caution. get topicArnInput() { return this._topicArn; } } exports.SesReceiptRuleS3ActionOutputReference = SesReceiptRuleS3ActionOutputReference; _g = JSII_RTTI_SYMBOL_1; SesReceiptRuleS3ActionOutputReference[_g] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleS3ActionOutputReference", version: "21.22.1" }; class SesReceiptRuleS3ActionList 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 SesReceiptRuleS3ActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SesReceiptRuleS3ActionList = SesReceiptRuleS3ActionList; _h = JSII_RTTI_SYMBOL_1; SesReceiptRuleS3ActionList[_h] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleS3ActionList", version: "21.22.1" }; function sesReceiptRuleSnsActionToTerraform(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 { encoding: cdktf.stringToTerraform(struct.encoding), position: cdktf.numberToTerraform(struct.position), topic_arn: cdktf.stringToTerraform(struct.topicArn), }; } function sesReceiptRuleSnsActionToHclTerraform(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 = { encoding: { value: cdktf.stringToHclTerraform(struct.encoding), isBlock: false, type: "simple", storageClassType: "string", }, position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, topic_arn: { value: cdktf.stringToHclTerraform(struct.topicArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class SesReceiptRuleSnsActionOutputReference 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._encoding !== undefined) { hasAnyValues = true; internalValueResult.encoding = this._encoding; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._topicArn !== undefined) { hasAnyValues = true; internalValueResult.topicArn = this._topicArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._encoding = undefined; this._position = undefined; this._topicArn = 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._encoding = value.encoding; this._position = value.position; this._topicArn = value.topicArn; } } get encoding() { return this.getStringAttribute('encoding'); } set encoding(value) { this._encoding = value; } resetEncoding() { this._encoding = undefined; } // Temporarily expose input value. Use with caution. get encodingInput() { return this._encoding; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get topicArn() { return this.getStringAttribute('topic_arn'); } set topicArn(value) { this._topicArn = value; } // Temporarily expose input value. Use with caution. get topicArnInput() { return this._topicArn; } } exports.SesReceiptRuleSnsActionOutputReference = SesReceiptRuleSnsActionOutputReference; _j = JSII_RTTI_SYMBOL_1; SesReceiptRuleSnsActionOutputReference[_j] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleSnsActionOutputReference", version: "21.22.1" }; class SesReceiptRuleSnsActionList 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 SesReceiptRuleSnsActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SesReceiptRuleSnsActionList = SesReceiptRuleSnsActionList; _k = JSII_RTTI_SYMBOL_1; SesReceiptRuleSnsActionList[_k] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleSnsActionList", version: "21.22.1" }; function sesReceiptRuleStopActionToTerraform(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 { position: cdktf.numberToTerraform(struct.position), scope: cdktf.stringToTerraform(struct.scope), topic_arn: cdktf.stringToTerraform(struct.topicArn), }; } function sesReceiptRuleStopActionToHclTerraform(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 = { position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, scope: { value: cdktf.stringToHclTerraform(struct.scope), isBlock: false, type: "simple", storageClassType: "string", }, topic_arn: { value: cdktf.stringToHclTerraform(struct.topicArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class SesReceiptRuleStopActionOutputReference 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._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._scope !== undefined) { hasAnyValues = true; internalValueResult.scope = this._scope; } if (this._topicArn !== undefined) { hasAnyValues = true; internalValueResult.topicArn = this._topicArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._position = undefined; this._scope = undefined; this._topicArn = 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._position = value.position; this._scope = value.scope; this._topicArn = value.topicArn; } } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get scope() { return this.getStringAttribute('scope'); } set scope(value) { this._scope = value; } // Temporarily expose input value. Use with caution. get scopeInput() { return this._scope; } get topicArn() { return this.getStringAttribute('topic_arn'); } set topicArn(value) { this._topicArn = value; } resetTopicArn() { this._topicArn = undefined; } // Temporarily expose input value. Use with caution. get topicArnInput() { return this._topicArn; } } exports.SesReceiptRuleStopActionOutputReference = SesReceiptRuleStopActionOutputReference; _l = JSII_RTTI_SYMBOL_1; SesReceiptRuleStopActionOutputReference[_l] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleStopActionOutputReference", version: "21.22.1" }; class SesReceiptRuleStopActionList 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 SesReceiptRuleStopActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SesReceiptRuleStopActionList = SesReceiptRuleStopActionList; _m = JSII_RTTI_SYMBOL_1; SesReceiptRuleStopActionList[_m] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleStopActionList", version: "21.22.1" }; function sesReceiptRuleWorkmailActionToTerraform(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 { organization_arn: cdktf.stringToTerraform(struct.organizationArn), position: cdktf.numberToTerraform(struct.position), topic_arn: cdktf.stringToTerraform(struct.topicArn), }; } function sesReceiptRuleWorkmailActionToHclTerraform(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 = { organization_arn: { value: cdktf.stringToHclTerraform(struct.organizationArn), isBlock: false, type: "simple", storageClassType: "string", }, position: { value: cdktf.numberToHclTerraform(struct.position), isBlock: false, type: "simple", storageClassType: "number", }, topic_arn: { value: cdktf.stringToHclTerraform(struct.topicArn), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class SesReceiptRuleWorkmailActionOutputReference 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._organizationArn !== undefined) { hasAnyValues = true; internalValueResult.organizationArn = this._organizationArn; } if (this._position !== undefined) { hasAnyValues = true; internalValueResult.position = this._position; } if (this._topicArn !== undefined) { hasAnyValues = true; internalValueResult.topicArn = this._topicArn; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._organizationArn = undefined; this._position = undefined; this._topicArn = 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._organizationArn = value.organizationArn; this._position = value.position; this._topicArn = value.topicArn; } } get organizationArn() { return this.getStringAttribute('organization_arn'); } set organizationArn(value) { this._organizationArn = value; } // Temporarily expose input value. Use with caution. get organizationArnInput() { return this._organizationArn; } get position() { return this.getNumberAttribute('position'); } set position(value) { this._position = value; } // Temporarily expose input value. Use with caution. get positionInput() { return this._position; } get topicArn() { return this.getStringAttribute('topic_arn'); } set topicArn(value) { this._topicArn = value; } resetTopicArn() { this._topicArn = undefined; } // Temporarily expose input value. Use with caution. get topicArnInput() { return this._topicArn; } } exports.SesReceiptRuleWorkmailActionOutputReference = SesReceiptRuleWorkmailActionOutputReference; _o = JSII_RTTI_SYMBOL_1; SesReceiptRuleWorkmailActionOutputReference[_o] = { fqn: "@cdktf/provider-aws.sesReceiptRule.SesReceiptRuleWorkmailActionOutputReference", version: "21.22.1" }; class SesReceiptRuleWorkmailActionList 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 SesReceiptRuleWorkmailActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.SesReceiptRuleWorkmailActionList = SesReceiptRuleWorkmailActionList; _p = JSII_RTT