UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,034 lines 214 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w; Object.defineProperty(exports, "__esModule", { value: true }); exports.dataAwsLbListenerRuleConditionToHclTerraform = exports.dataAwsLbListenerRuleConditionToTerraform = exports.DataAwsLbListenerRuleConditionSourceIpOutputReference = exports.dataAwsLbListenerRuleConditionSourceIpToHclTerraform = exports.dataAwsLbListenerRuleConditionSourceIpToTerraform = exports.DataAwsLbListenerRuleConditionQueryStringOutputReference = exports.dataAwsLbListenerRuleConditionQueryStringToHclTerraform = exports.dataAwsLbListenerRuleConditionQueryStringToTerraform = exports.DataAwsLbListenerRuleConditionQueryStringValuesList = exports.DataAwsLbListenerRuleConditionQueryStringValuesOutputReference = exports.dataAwsLbListenerRuleConditionQueryStringValuesToHclTerraform = exports.dataAwsLbListenerRuleConditionQueryStringValuesToTerraform = exports.DataAwsLbListenerRuleConditionPathPatternOutputReference = exports.dataAwsLbListenerRuleConditionPathPatternToHclTerraform = exports.dataAwsLbListenerRuleConditionPathPatternToTerraform = exports.DataAwsLbListenerRuleConditionHttpRequestMethodOutputReference = exports.dataAwsLbListenerRuleConditionHttpRequestMethodToHclTerraform = exports.dataAwsLbListenerRuleConditionHttpRequestMethodToTerraform = exports.DataAwsLbListenerRuleConditionHttpHeaderOutputReference = exports.dataAwsLbListenerRuleConditionHttpHeaderToHclTerraform = exports.dataAwsLbListenerRuleConditionHttpHeaderToTerraform = exports.DataAwsLbListenerRuleConditionHostHeaderOutputReference = exports.dataAwsLbListenerRuleConditionHostHeaderToHclTerraform = exports.dataAwsLbListenerRuleConditionHostHeaderToTerraform = exports.DataAwsLbListenerRuleActionList = exports.DataAwsLbListenerRuleActionOutputReference = exports.dataAwsLbListenerRuleActionToHclTerraform = exports.dataAwsLbListenerRuleActionToTerraform = exports.DataAwsLbListenerRuleActionRedirectOutputReference = exports.dataAwsLbListenerRuleActionRedirectToHclTerraform = exports.dataAwsLbListenerRuleActionRedirectToTerraform = exports.DataAwsLbListenerRuleActionForwardOutputReference = exports.dataAwsLbListenerRuleActionForwardToHclTerraform = exports.dataAwsLbListenerRuleActionForwardToTerraform = exports.DataAwsLbListenerRuleActionForwardTargetGroupList = exports.DataAwsLbListenerRuleActionForwardTargetGroupOutputReference = exports.dataAwsLbListenerRuleActionForwardTargetGroupToHclTerraform = exports.dataAwsLbListenerRuleActionForwardTargetGroupToTerraform = exports.DataAwsLbListenerRuleActionForwardStickinessOutputReference = exports.dataAwsLbListenerRuleActionForwardStickinessToHclTerraform = exports.dataAwsLbListenerRuleActionForwardStickinessToTerraform = exports.DataAwsLbListenerRuleActionFixedResponseOutputReference = exports.dataAwsLbListenerRuleActionFixedResponseToHclTerraform = exports.dataAwsLbListenerRuleActionFixedResponseToTerraform = exports.DataAwsLbListenerRuleActionAuthenticateOidcOutputReference = exports.dataAwsLbListenerRuleActionAuthenticateOidcToHclTerraform = exports.dataAwsLbListenerRuleActionAuthenticateOidcToTerraform = exports.DataAwsLbListenerRuleActionAuthenticateCognitoOutputReference = exports.dataAwsLbListenerRuleActionAuthenticateCognitoToHclTerraform = exports.dataAwsLbListenerRuleActionAuthenticateCognitoToTerraform = void 0; exports.DataAwsLbListenerRule = exports.DataAwsLbListenerRuleConditionList = exports.DataAwsLbListenerRuleConditionOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dataAwsLbListenerRuleActionAuthenticateCognitoToTerraform(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.dataAwsLbListenerRuleActionAuthenticateCognitoToTerraform = dataAwsLbListenerRuleActionAuthenticateCognitoToTerraform; function dataAwsLbListenerRuleActionAuthenticateCognitoToHclTerraform(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.dataAwsLbListenerRuleActionAuthenticateCognitoToHclTerraform = dataAwsLbListenerRuleActionAuthenticateCognitoToHclTerraform; class DataAwsLbListenerRuleActionAuthenticateCognitoOutputReference 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; // authentication_request_extra_params - computed: true, optional: false, required: false this._authenticationRequestExtraParams = new cdktf.StringMap(this, "authentication_request_extra_params"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } get authenticationRequestExtraParams() { return this._authenticationRequestExtraParams; } // on_unauthenticated_request - computed: true, optional: false, required: false get onUnauthenticatedRequest() { return this.getStringAttribute('on_unauthenticated_request'); } // scope - computed: true, optional: false, required: false get scope() { return this.getStringAttribute('scope'); } // session_cookie_name - computed: true, optional: false, required: false get sessionCookieName() { return this.getStringAttribute('session_cookie_name'); } // session_timeout - computed: true, optional: false, required: false get sessionTimeout() { return this.getNumberAttribute('session_timeout'); } // user_pool_arn - computed: true, optional: false, required: false get userPoolArn() { return this.getStringAttribute('user_pool_arn'); } // user_pool_client_id - computed: true, optional: false, required: false get userPoolClientId() { return this.getStringAttribute('user_pool_client_id'); } // user_pool_domain - computed: true, optional: false, required: false get userPoolDomain() { return this.getStringAttribute('user_pool_domain'); } } exports.DataAwsLbListenerRuleActionAuthenticateCognitoOutputReference = DataAwsLbListenerRuleActionAuthenticateCognitoOutputReference; _a = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionAuthenticateCognitoOutputReference[_a] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionAuthenticateCognitoOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleActionAuthenticateOidcToTerraform(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.dataAwsLbListenerRuleActionAuthenticateOidcToTerraform = dataAwsLbListenerRuleActionAuthenticateOidcToTerraform; function dataAwsLbListenerRuleActionAuthenticateOidcToHclTerraform(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.dataAwsLbListenerRuleActionAuthenticateOidcToHclTerraform = dataAwsLbListenerRuleActionAuthenticateOidcToHclTerraform; class DataAwsLbListenerRuleActionAuthenticateOidcOutputReference 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; // authentication_request_extra_params - computed: true, optional: false, required: false this._authenticationRequestExtraParams = new cdktf.StringMap(this, "authentication_request_extra_params"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } get authenticationRequestExtraParams() { return this._authenticationRequestExtraParams; } // authorization_endpoint - computed: true, optional: false, required: false get authorizationEndpoint() { return this.getStringAttribute('authorization_endpoint'); } // client_id - computed: true, optional: false, required: false get clientId() { return this.getStringAttribute('client_id'); } // issuer - computed: true, optional: false, required: false get issuer() { return this.getStringAttribute('issuer'); } // on_unauthenticated_request - computed: true, optional: false, required: false get onUnauthenticatedRequest() { return this.getStringAttribute('on_unauthenticated_request'); } // scope - computed: true, optional: false, required: false get scope() { return this.getStringAttribute('scope'); } // session_cookie_name - computed: true, optional: false, required: false get sessionCookieName() { return this.getStringAttribute('session_cookie_name'); } // session_timeout - computed: true, optional: false, required: false get sessionTimeout() { return this.getNumberAttribute('session_timeout'); } // token_endpoint - computed: true, optional: false, required: false get tokenEndpoint() { return this.getStringAttribute('token_endpoint'); } // user_info_endpoint - computed: true, optional: false, required: false get userInfoEndpoint() { return this.getStringAttribute('user_info_endpoint'); } } exports.DataAwsLbListenerRuleActionAuthenticateOidcOutputReference = DataAwsLbListenerRuleActionAuthenticateOidcOutputReference; _b = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionAuthenticateOidcOutputReference[_b] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionAuthenticateOidcOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleActionFixedResponseToTerraform(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.dataAwsLbListenerRuleActionFixedResponseToTerraform = dataAwsLbListenerRuleActionFixedResponseToTerraform; function dataAwsLbListenerRuleActionFixedResponseToHclTerraform(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.dataAwsLbListenerRuleActionFixedResponseToHclTerraform = dataAwsLbListenerRuleActionFixedResponseToHclTerraform; class DataAwsLbListenerRuleActionFixedResponseOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // content_type - computed: true, optional: false, required: false get contentType() { return this.getStringAttribute('content_type'); } // message_body - computed: true, optional: false, required: false get messageBody() { return this.getStringAttribute('message_body'); } // status_code - computed: true, optional: false, required: false get statusCode() { return this.getStringAttribute('status_code'); } } exports.DataAwsLbListenerRuleActionFixedResponseOutputReference = DataAwsLbListenerRuleActionFixedResponseOutputReference; _c = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionFixedResponseOutputReference[_c] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionFixedResponseOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleActionForwardStickinessToTerraform(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.dataAwsLbListenerRuleActionForwardStickinessToTerraform = dataAwsLbListenerRuleActionForwardStickinessToTerraform; function dataAwsLbListenerRuleActionForwardStickinessToHclTerraform(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.dataAwsLbListenerRuleActionForwardStickinessToHclTerraform = dataAwsLbListenerRuleActionForwardStickinessToHclTerraform; class DataAwsLbListenerRuleActionForwardStickinessOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // duration - computed: true, optional: false, required: false get duration() { return this.getNumberAttribute('duration'); } // enabled - computed: true, optional: false, required: false get enabled() { return this.getBooleanAttribute('enabled'); } } exports.DataAwsLbListenerRuleActionForwardStickinessOutputReference = DataAwsLbListenerRuleActionForwardStickinessOutputReference; _d = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionForwardStickinessOutputReference[_d] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionForwardStickinessOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleActionForwardTargetGroupToTerraform(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.dataAwsLbListenerRuleActionForwardTargetGroupToTerraform = dataAwsLbListenerRuleActionForwardTargetGroupToTerraform; function dataAwsLbListenerRuleActionForwardTargetGroupToHclTerraform(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.dataAwsLbListenerRuleActionForwardTargetGroupToHclTerraform = dataAwsLbListenerRuleActionForwardTargetGroupToHclTerraform; class DataAwsLbListenerRuleActionForwardTargetGroupOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // arn - computed: true, optional: false, required: false get arn() { return this.getStringAttribute('arn'); } // weight - computed: true, optional: false, required: false get weight() { return this.getNumberAttribute('weight'); } } exports.DataAwsLbListenerRuleActionForwardTargetGroupOutputReference = DataAwsLbListenerRuleActionForwardTargetGroupOutputReference; _e = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionForwardTargetGroupOutputReference[_e] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionForwardTargetGroupOutputReference", version: "19.50.0" }; class DataAwsLbListenerRuleActionForwardTargetGroupList 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 DataAwsLbListenerRuleActionForwardTargetGroupOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsLbListenerRuleActionForwardTargetGroupList = DataAwsLbListenerRuleActionForwardTargetGroupList; _f = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionForwardTargetGroupList[_f] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionForwardTargetGroupList", version: "19.50.0" }; function dataAwsLbListenerRuleActionForwardToTerraform(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 { target_group: cdktf.listMapper(dataAwsLbListenerRuleActionForwardTargetGroupToTerraform, true)(struct.targetGroup), }; } exports.dataAwsLbListenerRuleActionForwardToTerraform = dataAwsLbListenerRuleActionForwardToTerraform; function dataAwsLbListenerRuleActionForwardToHclTerraform(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 = { target_group: { value: cdktf.listMapperHcl(dataAwsLbListenerRuleActionForwardTargetGroupToHclTerraform, true)(struct.targetGroup), isBlock: true, type: "set", storageClassType: "DataAwsLbListenerRuleActionForwardTargetGroupList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataAwsLbListenerRuleActionForwardToHclTerraform = dataAwsLbListenerRuleActionForwardToHclTerraform; class DataAwsLbListenerRuleActionForwardOutputReference 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; // stickiness - computed: false, optional: false, required: false this._stickiness = new DataAwsLbListenerRuleActionForwardStickinessOutputReference(this, "stickiness"); // target_group - computed: false, optional: true, required: false this._targetGroup = new DataAwsLbListenerRuleActionForwardTargetGroupList(this, "target_group", true); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._targetGroup?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.targetGroup = this._targetGroup?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._targetGroup.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._targetGroup.internalValue = value.targetGroup; } } get stickiness() { return this._stickiness; } get targetGroup() { return this._targetGroup; } putTargetGroup(value) { this._targetGroup.internalValue = value; } resetTargetGroup() { this._targetGroup.internalValue = undefined; } // Temporarily expose input value. Use with caution. get targetGroupInput() { return this._targetGroup.internalValue; } } exports.DataAwsLbListenerRuleActionForwardOutputReference = DataAwsLbListenerRuleActionForwardOutputReference; _g = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionForwardOutputReference[_g] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionForwardOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleActionRedirectToTerraform(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.dataAwsLbListenerRuleActionRedirectToTerraform = dataAwsLbListenerRuleActionRedirectToTerraform; function dataAwsLbListenerRuleActionRedirectToHclTerraform(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.dataAwsLbListenerRuleActionRedirectToHclTerraform = dataAwsLbListenerRuleActionRedirectToHclTerraform; class DataAwsLbListenerRuleActionRedirectOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // host - computed: true, optional: false, required: false get host() { return this.getStringAttribute('host'); } // path - computed: true, optional: false, required: false get path() { return this.getStringAttribute('path'); } // port - computed: true, optional: false, required: false get port() { return this.getStringAttribute('port'); } // protocol - computed: true, optional: false, required: false get protocol() { return this.getStringAttribute('protocol'); } // query - computed: true, optional: false, required: false get query() { return this.getStringAttribute('query'); } // status_code - computed: true, optional: false, required: false get statusCode() { return this.getStringAttribute('status_code'); } } exports.DataAwsLbListenerRuleActionRedirectOutputReference = DataAwsLbListenerRuleActionRedirectOutputReference; _h = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionRedirectOutputReference[_h] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionRedirectOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleActionToTerraform(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 { forward: dataAwsLbListenerRuleActionForwardToTerraform(struct.forward), }; } exports.dataAwsLbListenerRuleActionToTerraform = dataAwsLbListenerRuleActionToTerraform; function dataAwsLbListenerRuleActionToHclTerraform(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 = { forward: { value: dataAwsLbListenerRuleActionForwardToHclTerraform(struct.forward), isBlock: true, type: "struct", storageClassType: "DataAwsLbListenerRuleActionForward", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dataAwsLbListenerRuleActionToHclTerraform = dataAwsLbListenerRuleActionToHclTerraform; class DataAwsLbListenerRuleActionOutputReference 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; // authenticate_cognito - computed: false, optional: false, required: false this._authenticateCognito = new DataAwsLbListenerRuleActionAuthenticateCognitoOutputReference(this, "authenticate_cognito"); // authenticate_oidc - computed: false, optional: false, required: false this._authenticateOidc = new DataAwsLbListenerRuleActionAuthenticateOidcOutputReference(this, "authenticate_oidc"); // fixed_response - computed: false, optional: false, required: false this._fixedResponse = new DataAwsLbListenerRuleActionFixedResponseOutputReference(this, "fixed_response"); // forward - computed: false, optional: true, required: false this._forward = new DataAwsLbListenerRuleActionForwardOutputReference(this, "forward"); // redirect - computed: false, optional: false, required: false this._redirect = new DataAwsLbListenerRuleActionRedirectOutputReference(this, "redirect"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._forward?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.forward = this._forward?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._forward.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._forward.internalValue = value.forward; } } // order - computed: true, optional: false, required: false get order() { return this.getNumberAttribute('order'); } // type - computed: true, optional: false, required: false get type() { return this.getStringAttribute('type'); } get authenticateCognito() { return this._authenticateCognito; } get authenticateOidc() { return this._authenticateOidc; } get fixedResponse() { return this._fixedResponse; } get forward() { return this._forward; } putForward(value) { this._forward.internalValue = value; } resetForward() { this._forward.internalValue = undefined; } // Temporarily expose input value. Use with caution. get forwardInput() { return this._forward.internalValue; } get redirect() { return this._redirect; } } exports.DataAwsLbListenerRuleActionOutputReference = DataAwsLbListenerRuleActionOutputReference; _j = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionOutputReference[_j] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionOutputReference", version: "19.50.0" }; class DataAwsLbListenerRuleActionList 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 DataAwsLbListenerRuleActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DataAwsLbListenerRuleActionList = DataAwsLbListenerRuleActionList; _k = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleActionList[_k] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleActionList", version: "19.50.0" }; function dataAwsLbListenerRuleConditionHostHeaderToTerraform(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.dataAwsLbListenerRuleConditionHostHeaderToTerraform = dataAwsLbListenerRuleConditionHostHeaderToTerraform; function dataAwsLbListenerRuleConditionHostHeaderToHclTerraform(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.dataAwsLbListenerRuleConditionHostHeaderToHclTerraform = dataAwsLbListenerRuleConditionHostHeaderToHclTerraform; class DataAwsLbListenerRuleConditionHostHeaderOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // values - computed: true, optional: false, required: false get values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } } exports.DataAwsLbListenerRuleConditionHostHeaderOutputReference = DataAwsLbListenerRuleConditionHostHeaderOutputReference; _l = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleConditionHostHeaderOutputReference[_l] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleConditionHostHeaderOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleConditionHttpHeaderToTerraform(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.dataAwsLbListenerRuleConditionHttpHeaderToTerraform = dataAwsLbListenerRuleConditionHttpHeaderToTerraform; function dataAwsLbListenerRuleConditionHttpHeaderToHclTerraform(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.dataAwsLbListenerRuleConditionHttpHeaderToHclTerraform = dataAwsLbListenerRuleConditionHttpHeaderToHclTerraform; class DataAwsLbListenerRuleConditionHttpHeaderOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // http_header_name - computed: true, optional: false, required: false get httpHeaderName() { return this.getStringAttribute('http_header_name'); } // values - computed: true, optional: false, required: false get values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } } exports.DataAwsLbListenerRuleConditionHttpHeaderOutputReference = DataAwsLbListenerRuleConditionHttpHeaderOutputReference; _m = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleConditionHttpHeaderOutputReference[_m] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleConditionHttpHeaderOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleConditionHttpRequestMethodToTerraform(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.dataAwsLbListenerRuleConditionHttpRequestMethodToTerraform = dataAwsLbListenerRuleConditionHttpRequestMethodToTerraform; function dataAwsLbListenerRuleConditionHttpRequestMethodToHclTerraform(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.dataAwsLbListenerRuleConditionHttpRequestMethodToHclTerraform = dataAwsLbListenerRuleConditionHttpRequestMethodToHclTerraform; class DataAwsLbListenerRuleConditionHttpRequestMethodOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // values - computed: true, optional: false, required: false get values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } } exports.DataAwsLbListenerRuleConditionHttpRequestMethodOutputReference = DataAwsLbListenerRuleConditionHttpRequestMethodOutputReference; _o = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleConditionHttpRequestMethodOutputReference[_o] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleConditionHttpRequestMethodOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleConditionPathPatternToTerraform(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.dataAwsLbListenerRuleConditionPathPatternToTerraform = dataAwsLbListenerRuleConditionPathPatternToTerraform; function dataAwsLbListenerRuleConditionPathPatternToHclTerraform(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.dataAwsLbListenerRuleConditionPathPatternToHclTerraform = dataAwsLbListenerRuleConditionPathPatternToHclTerraform; class DataAwsLbListenerRuleConditionPathPatternOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // values - computed: true, optional: false, required: false get values() { return cdktf.Fn.tolist(this.getListAttribute('values')); } } exports.DataAwsLbListenerRuleConditionPathPatternOutputReference = DataAwsLbListenerRuleConditionPathPatternOutputReference; _p = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleConditionPathPatternOutputReference[_p] = { fqn: "@cdktf/provider-aws.dataAwsLbListenerRule.DataAwsLbListenerRuleConditionPathPatternOutputReference", version: "19.50.0" }; function dataAwsLbListenerRuleConditionQueryStringValuesToTerraform(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.dataAwsLbListenerRuleConditionQueryStringValuesToTerraform = dataAwsLbListenerRuleConditionQueryStringValuesToTerraform; function dataAwsLbListenerRuleConditionQueryStringValuesToHclTerraform(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.dataAwsLbListenerRuleConditionQueryStringValuesToHclTerraform = dataAwsLbListenerRuleConditionQueryStringValuesToHclTerraform; class DataAwsLbListenerRuleConditionQueryStringValuesOutputReference 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 = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; } } // key - computed: true, optional: false, required: false get key() { return this.getStringAttribute('key'); } // value - computed: true, optional: false, required: false get value() { return this.getStringAttribute('value'); } } exports.DataAwsLbListenerRuleConditionQueryStringValuesOutputReference = DataAwsLbListenerRuleConditionQueryStringValuesOutputReference; _q = JSII_RTTI_SYMBOL_1; DataAwsLbListenerRuleConditionQueryStringValuesOutputReference[_q] = { fqn: "@cdktf/provider-aws.dataAwsLbL