@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,114 lines • 255 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppsyncGraphqlApi = exports.AppsyncGraphqlApiUserPoolConfigOutputReference = exports.appsyncGraphqlApiUserPoolConfigToHclTerraform = exports.appsyncGraphqlApiUserPoolConfigToTerraform = exports.AppsyncGraphqlApiOpenidConnectConfigOutputReference = exports.appsyncGraphqlApiOpenidConnectConfigToHclTerraform = exports.appsyncGraphqlApiOpenidConnectConfigToTerraform = exports.AppsyncGraphqlApiLogConfigOutputReference = exports.appsyncGraphqlApiLogConfigToHclTerraform = exports.appsyncGraphqlApiLogConfigToTerraform = exports.AppsyncGraphqlApiLambdaAuthorizerConfigOutputReference = exports.appsyncGraphqlApiLambdaAuthorizerConfigToHclTerraform = exports.appsyncGraphqlApiLambdaAuthorizerConfigToTerraform = exports.AppsyncGraphqlApiEnhancedMetricsConfigOutputReference = exports.appsyncGraphqlApiEnhancedMetricsConfigToHclTerraform = exports.appsyncGraphqlApiEnhancedMetricsConfigToTerraform = exports.AppsyncGraphqlApiAdditionalAuthenticationProviderList = exports.AppsyncGraphqlApiAdditionalAuthenticationProviderOutputReference = exports.appsyncGraphqlApiAdditionalAuthenticationProviderToHclTerraform = exports.appsyncGraphqlApiAdditionalAuthenticationProviderToTerraform = exports.AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigOutputReference = exports.appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToHclTerraform = exports.appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToTerraform = exports.AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigOutputReference = exports.appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToHclTerraform = exports.appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToTerraform = exports.AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigOutputReference = exports.appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToHclTerraform = exports.appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToTerraform(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 {
authorizer_result_ttl_in_seconds: cdktf.numberToTerraform(struct.authorizerResultTtlInSeconds),
authorizer_uri: cdktf.stringToTerraform(struct.authorizerUri),
identity_validation_expression: cdktf.stringToTerraform(struct.identityValidationExpression),
};
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToTerraform;
function appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToHclTerraform(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 = {
authorizer_result_ttl_in_seconds: {
value: cdktf.numberToHclTerraform(struct.authorizerResultTtlInSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
authorizer_uri: {
value: cdktf.stringToHclTerraform(struct.authorizerUri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
identity_validation_expression: {
value: cdktf.stringToHclTerraform(struct.identityValidationExpression),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToHclTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToHclTerraform;
class AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._authorizerResultTtlInSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.authorizerResultTtlInSeconds = this._authorizerResultTtlInSeconds;
}
if (this._authorizerUri !== undefined) {
hasAnyValues = true;
internalValueResult.authorizerUri = this._authorizerUri;
}
if (this._identityValidationExpression !== undefined) {
hasAnyValues = true;
internalValueResult.identityValidationExpression = this._identityValidationExpression;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._authorizerResultTtlInSeconds = undefined;
this._authorizerUri = undefined;
this._identityValidationExpression = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._authorizerResultTtlInSeconds = value.authorizerResultTtlInSeconds;
this._authorizerUri = value.authorizerUri;
this._identityValidationExpression = value.identityValidationExpression;
}
}
get authorizerResultTtlInSeconds() {
return this.getNumberAttribute('authorizer_result_ttl_in_seconds');
}
set authorizerResultTtlInSeconds(value) {
this._authorizerResultTtlInSeconds = value;
}
resetAuthorizerResultTtlInSeconds() {
this._authorizerResultTtlInSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get authorizerResultTtlInSecondsInput() {
return this._authorizerResultTtlInSeconds;
}
get authorizerUri() {
return this.getStringAttribute('authorizer_uri');
}
set authorizerUri(value) {
this._authorizerUri = value;
}
// Temporarily expose input value. Use with caution.
get authorizerUriInput() {
return this._authorizerUri;
}
get identityValidationExpression() {
return this.getStringAttribute('identity_validation_expression');
}
set identityValidationExpression(value) {
this._identityValidationExpression = value;
}
resetIdentityValidationExpression() {
this._identityValidationExpression = undefined;
}
// Temporarily expose input value. Use with caution.
get identityValidationExpressionInput() {
return this._identityValidationExpression;
}
}
exports.AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigOutputReference = AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigOutputReference[_a] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigOutputReference", version: "19.50.0" };
function appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToTerraform(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 {
auth_ttl: cdktf.numberToTerraform(struct.authTtl),
client_id: cdktf.stringToTerraform(struct.clientId),
iat_ttl: cdktf.numberToTerraform(struct.iatTtl),
issuer: cdktf.stringToTerraform(struct.issuer),
};
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToTerraform;
function appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToHclTerraform(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 = {
auth_ttl: {
value: cdktf.numberToHclTerraform(struct.authTtl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
iat_ttl: {
value: cdktf.numberToHclTerraform(struct.iatTtl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
issuer: {
value: cdktf.stringToHclTerraform(struct.issuer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToHclTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToHclTerraform;
class AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._authTtl !== undefined) {
hasAnyValues = true;
internalValueResult.authTtl = this._authTtl;
}
if (this._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._iatTtl !== undefined) {
hasAnyValues = true;
internalValueResult.iatTtl = this._iatTtl;
}
if (this._issuer !== undefined) {
hasAnyValues = true;
internalValueResult.issuer = this._issuer;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._authTtl = undefined;
this._clientId = undefined;
this._iatTtl = undefined;
this._issuer = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._authTtl = value.authTtl;
this._clientId = value.clientId;
this._iatTtl = value.iatTtl;
this._issuer = value.issuer;
}
}
get authTtl() {
return this.getNumberAttribute('auth_ttl');
}
set authTtl(value) {
this._authTtl = value;
}
resetAuthTtl() {
this._authTtl = undefined;
}
// Temporarily expose input value. Use with caution.
get authTtlInput() {
return this._authTtl;
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
resetClientId() {
this._clientId = undefined;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get iatTtl() {
return this.getNumberAttribute('iat_ttl');
}
set iatTtl(value) {
this._iatTtl = value;
}
resetIatTtl() {
this._iatTtl = undefined;
}
// Temporarily expose input value. Use with caution.
get iatTtlInput() {
return this._iatTtl;
}
get issuer() {
return this.getStringAttribute('issuer');
}
set issuer(value) {
this._issuer = value;
}
// Temporarily expose input value. Use with caution.
get issuerInput() {
return this._issuer;
}
}
exports.AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigOutputReference = AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigOutputReference;
_b = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigOutputReference[_b] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigOutputReference", version: "19.50.0" };
function appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToTerraform(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 {
app_id_client_regex: cdktf.stringToTerraform(struct.appIdClientRegex),
aws_region: cdktf.stringToTerraform(struct.awsRegion),
user_pool_id: cdktf.stringToTerraform(struct.userPoolId),
};
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToTerraform;
function appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToHclTerraform(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 = {
app_id_client_regex: {
value: cdktf.stringToHclTerraform(struct.appIdClientRegex),
isBlock: false,
type: "simple",
storageClassType: "string",
},
aws_region: {
value: cdktf.stringToHclTerraform(struct.awsRegion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
user_pool_id: {
value: cdktf.stringToHclTerraform(struct.userPoolId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToHclTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToHclTerraform;
class AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._appIdClientRegex !== undefined) {
hasAnyValues = true;
internalValueResult.appIdClientRegex = this._appIdClientRegex;
}
if (this._awsRegion !== undefined) {
hasAnyValues = true;
internalValueResult.awsRegion = this._awsRegion;
}
if (this._userPoolId !== undefined) {
hasAnyValues = true;
internalValueResult.userPoolId = this._userPoolId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._appIdClientRegex = undefined;
this._awsRegion = undefined;
this._userPoolId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._appIdClientRegex = value.appIdClientRegex;
this._awsRegion = value.awsRegion;
this._userPoolId = value.userPoolId;
}
}
get appIdClientRegex() {
return this.getStringAttribute('app_id_client_regex');
}
set appIdClientRegex(value) {
this._appIdClientRegex = value;
}
resetAppIdClientRegex() {
this._appIdClientRegex = undefined;
}
// Temporarily expose input value. Use with caution.
get appIdClientRegexInput() {
return this._appIdClientRegex;
}
get awsRegion() {
return this.getStringAttribute('aws_region');
}
set awsRegion(value) {
this._awsRegion = value;
}
resetAwsRegion() {
this._awsRegion = undefined;
}
// Temporarily expose input value. Use with caution.
get awsRegionInput() {
return this._awsRegion;
}
get userPoolId() {
return this.getStringAttribute('user_pool_id');
}
set userPoolId(value) {
this._userPoolId = value;
}
// Temporarily expose input value. Use with caution.
get userPoolIdInput() {
return this._userPoolId;
}
}
exports.AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigOutputReference = AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigOutputReference;
_c = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigOutputReference[_c] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigOutputReference", version: "19.50.0" };
function appsyncGraphqlApiAdditionalAuthenticationProviderToTerraform(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 {
authentication_type: cdktf.stringToTerraform(struct.authenticationType),
lambda_authorizer_config: appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToTerraform(struct.lambdaAuthorizerConfig),
openid_connect_config: appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToTerraform(struct.openidConnectConfig),
user_pool_config: appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToTerraform(struct.userPoolConfig),
};
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderToTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderToTerraform;
function appsyncGraphqlApiAdditionalAuthenticationProviderToHclTerraform(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 = {
authentication_type: {
value: cdktf.stringToHclTerraform(struct.authenticationType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
lambda_authorizer_config: {
value: appsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigToHclTerraform(struct.lambdaAuthorizerConfig),
isBlock: true,
type: "list",
storageClassType: "AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigList",
},
openid_connect_config: {
value: appsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigToHclTerraform(struct.openidConnectConfig),
isBlock: true,
type: "list",
storageClassType: "AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigList",
},
user_pool_config: {
value: appsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigToHclTerraform(struct.userPoolConfig),
isBlock: true,
type: "list",
storageClassType: "AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiAdditionalAuthenticationProviderToHclTerraform = appsyncGraphqlApiAdditionalAuthenticationProviderToHclTerraform;
class AppsyncGraphqlApiAdditionalAuthenticationProviderOutputReference 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;
// lambda_authorizer_config - computed: false, optional: true, required: false
this._lambdaAuthorizerConfig = new AppsyncGraphqlApiAdditionalAuthenticationProviderLambdaAuthorizerConfigOutputReference(this, "lambda_authorizer_config");
// openid_connect_config - computed: false, optional: true, required: false
this._openidConnectConfig = new AppsyncGraphqlApiAdditionalAuthenticationProviderOpenidConnectConfigOutputReference(this, "openid_connect_config");
// user_pool_config - computed: false, optional: true, required: false
this._userPoolConfig = new AppsyncGraphqlApiAdditionalAuthenticationProviderUserPoolConfigOutputReference(this, "user_pool_config");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._authenticationType !== undefined) {
hasAnyValues = true;
internalValueResult.authenticationType = this._authenticationType;
}
if (this._lambdaAuthorizerConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.lambdaAuthorizerConfig = this._lambdaAuthorizerConfig?.internalValue;
}
if (this._openidConnectConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.openidConnectConfig = this._openidConnectConfig?.internalValue;
}
if (this._userPoolConfig?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.userPoolConfig = this._userPoolConfig?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._authenticationType = undefined;
this._lambdaAuthorizerConfig.internalValue = undefined;
this._openidConnectConfig.internalValue = undefined;
this._userPoolConfig.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._authenticationType = value.authenticationType;
this._lambdaAuthorizerConfig.internalValue = value.lambdaAuthorizerConfig;
this._openidConnectConfig.internalValue = value.openidConnectConfig;
this._userPoolConfig.internalValue = value.userPoolConfig;
}
}
get authenticationType() {
return this.getStringAttribute('authentication_type');
}
set authenticationType(value) {
this._authenticationType = value;
}
// Temporarily expose input value. Use with caution.
get authenticationTypeInput() {
return this._authenticationType;
}
get lambdaAuthorizerConfig() {
return this._lambdaAuthorizerConfig;
}
putLambdaAuthorizerConfig(value) {
this._lambdaAuthorizerConfig.internalValue = value;
}
resetLambdaAuthorizerConfig() {
this._lambdaAuthorizerConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get lambdaAuthorizerConfigInput() {
return this._lambdaAuthorizerConfig.internalValue;
}
get openidConnectConfig() {
return this._openidConnectConfig;
}
putOpenidConnectConfig(value) {
this._openidConnectConfig.internalValue = value;
}
resetOpenidConnectConfig() {
this._openidConnectConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get openidConnectConfigInput() {
return this._openidConnectConfig.internalValue;
}
get userPoolConfig() {
return this._userPoolConfig;
}
putUserPoolConfig(value) {
this._userPoolConfig.internalValue = value;
}
resetUserPoolConfig() {
this._userPoolConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get userPoolConfigInput() {
return this._userPoolConfig.internalValue;
}
}
exports.AppsyncGraphqlApiAdditionalAuthenticationProviderOutputReference = AppsyncGraphqlApiAdditionalAuthenticationProviderOutputReference;
_d = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiAdditionalAuthenticationProviderOutputReference[_d] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiAdditionalAuthenticationProviderOutputReference", version: "19.50.0" };
class AppsyncGraphqlApiAdditionalAuthenticationProviderList 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 AppsyncGraphqlApiAdditionalAuthenticationProviderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.AppsyncGraphqlApiAdditionalAuthenticationProviderList = AppsyncGraphqlApiAdditionalAuthenticationProviderList;
_e = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiAdditionalAuthenticationProviderList[_e] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiAdditionalAuthenticationProviderList", version: "19.50.0" };
function appsyncGraphqlApiEnhancedMetricsConfigToTerraform(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 {
data_source_level_metrics_behavior: cdktf.stringToTerraform(struct.dataSourceLevelMetricsBehavior),
operation_level_metrics_config: cdktf.stringToTerraform(struct.operationLevelMetricsConfig),
resolver_level_metrics_behavior: cdktf.stringToTerraform(struct.resolverLevelMetricsBehavior),
};
}
exports.appsyncGraphqlApiEnhancedMetricsConfigToTerraform = appsyncGraphqlApiEnhancedMetricsConfigToTerraform;
function appsyncGraphqlApiEnhancedMetricsConfigToHclTerraform(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 = {
data_source_level_metrics_behavior: {
value: cdktf.stringToHclTerraform(struct.dataSourceLevelMetricsBehavior),
isBlock: false,
type: "simple",
storageClassType: "string",
},
operation_level_metrics_config: {
value: cdktf.stringToHclTerraform(struct.operationLevelMetricsConfig),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resolver_level_metrics_behavior: {
value: cdktf.stringToHclTerraform(struct.resolverLevelMetricsBehavior),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiEnhancedMetricsConfigToHclTerraform = appsyncGraphqlApiEnhancedMetricsConfigToHclTerraform;
class AppsyncGraphqlApiEnhancedMetricsConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._dataSourceLevelMetricsBehavior !== undefined) {
hasAnyValues = true;
internalValueResult.dataSourceLevelMetricsBehavior = this._dataSourceLevelMetricsBehavior;
}
if (this._operationLevelMetricsConfig !== undefined) {
hasAnyValues = true;
internalValueResult.operationLevelMetricsConfig = this._operationLevelMetricsConfig;
}
if (this._resolverLevelMetricsBehavior !== undefined) {
hasAnyValues = true;
internalValueResult.resolverLevelMetricsBehavior = this._resolverLevelMetricsBehavior;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._dataSourceLevelMetricsBehavior = undefined;
this._operationLevelMetricsConfig = undefined;
this._resolverLevelMetricsBehavior = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._dataSourceLevelMetricsBehavior = value.dataSourceLevelMetricsBehavior;
this._operationLevelMetricsConfig = value.operationLevelMetricsConfig;
this._resolverLevelMetricsBehavior = value.resolverLevelMetricsBehavior;
}
}
get dataSourceLevelMetricsBehavior() {
return this.getStringAttribute('data_source_level_metrics_behavior');
}
set dataSourceLevelMetricsBehavior(value) {
this._dataSourceLevelMetricsBehavior = value;
}
// Temporarily expose input value. Use with caution.
get dataSourceLevelMetricsBehaviorInput() {
return this._dataSourceLevelMetricsBehavior;
}
get operationLevelMetricsConfig() {
return this.getStringAttribute('operation_level_metrics_config');
}
set operationLevelMetricsConfig(value) {
this._operationLevelMetricsConfig = value;
}
// Temporarily expose input value. Use with caution.
get operationLevelMetricsConfigInput() {
return this._operationLevelMetricsConfig;
}
get resolverLevelMetricsBehavior() {
return this.getStringAttribute('resolver_level_metrics_behavior');
}
set resolverLevelMetricsBehavior(value) {
this._resolverLevelMetricsBehavior = value;
}
// Temporarily expose input value. Use with caution.
get resolverLevelMetricsBehaviorInput() {
return this._resolverLevelMetricsBehavior;
}
}
exports.AppsyncGraphqlApiEnhancedMetricsConfigOutputReference = AppsyncGraphqlApiEnhancedMetricsConfigOutputReference;
_f = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiEnhancedMetricsConfigOutputReference[_f] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiEnhancedMetricsConfigOutputReference", version: "19.50.0" };
function appsyncGraphqlApiLambdaAuthorizerConfigToTerraform(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 {
authorizer_result_ttl_in_seconds: cdktf.numberToTerraform(struct.authorizerResultTtlInSeconds),
authorizer_uri: cdktf.stringToTerraform(struct.authorizerUri),
identity_validation_expression: cdktf.stringToTerraform(struct.identityValidationExpression),
};
}
exports.appsyncGraphqlApiLambdaAuthorizerConfigToTerraform = appsyncGraphqlApiLambdaAuthorizerConfigToTerraform;
function appsyncGraphqlApiLambdaAuthorizerConfigToHclTerraform(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 = {
authorizer_result_ttl_in_seconds: {
value: cdktf.numberToHclTerraform(struct.authorizerResultTtlInSeconds),
isBlock: false,
type: "simple",
storageClassType: "number",
},
authorizer_uri: {
value: cdktf.stringToHclTerraform(struct.authorizerUri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
identity_validation_expression: {
value: cdktf.stringToHclTerraform(struct.identityValidationExpression),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiLambdaAuthorizerConfigToHclTerraform = appsyncGraphqlApiLambdaAuthorizerConfigToHclTerraform;
class AppsyncGraphqlApiLambdaAuthorizerConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._authorizerResultTtlInSeconds !== undefined) {
hasAnyValues = true;
internalValueResult.authorizerResultTtlInSeconds = this._authorizerResultTtlInSeconds;
}
if (this._authorizerUri !== undefined) {
hasAnyValues = true;
internalValueResult.authorizerUri = this._authorizerUri;
}
if (this._identityValidationExpression !== undefined) {
hasAnyValues = true;
internalValueResult.identityValidationExpression = this._identityValidationExpression;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._authorizerResultTtlInSeconds = undefined;
this._authorizerUri = undefined;
this._identityValidationExpression = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._authorizerResultTtlInSeconds = value.authorizerResultTtlInSeconds;
this._authorizerUri = value.authorizerUri;
this._identityValidationExpression = value.identityValidationExpression;
}
}
get authorizerResultTtlInSeconds() {
return this.getNumberAttribute('authorizer_result_ttl_in_seconds');
}
set authorizerResultTtlInSeconds(value) {
this._authorizerResultTtlInSeconds = value;
}
resetAuthorizerResultTtlInSeconds() {
this._authorizerResultTtlInSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
get authorizerResultTtlInSecondsInput() {
return this._authorizerResultTtlInSeconds;
}
get authorizerUri() {
return this.getStringAttribute('authorizer_uri');
}
set authorizerUri(value) {
this._authorizerUri = value;
}
// Temporarily expose input value. Use with caution.
get authorizerUriInput() {
return this._authorizerUri;
}
get identityValidationExpression() {
return this.getStringAttribute('identity_validation_expression');
}
set identityValidationExpression(value) {
this._identityValidationExpression = value;
}
resetIdentityValidationExpression() {
this._identityValidationExpression = undefined;
}
// Temporarily expose input value. Use with caution.
get identityValidationExpressionInput() {
return this._identityValidationExpression;
}
}
exports.AppsyncGraphqlApiLambdaAuthorizerConfigOutputReference = AppsyncGraphqlApiLambdaAuthorizerConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiLambdaAuthorizerConfigOutputReference[_g] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiLambdaAuthorizerConfigOutputReference", version: "19.50.0" };
function appsyncGraphqlApiLogConfigToTerraform(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 {
cloudwatch_logs_role_arn: cdktf.stringToTerraform(struct.cloudwatchLogsRoleArn),
exclude_verbose_content: cdktf.booleanToTerraform(struct.excludeVerboseContent),
field_log_level: cdktf.stringToTerraform(struct.fieldLogLevel),
};
}
exports.appsyncGraphqlApiLogConfigToTerraform = appsyncGraphqlApiLogConfigToTerraform;
function appsyncGraphqlApiLogConfigToHclTerraform(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 = {
cloudwatch_logs_role_arn: {
value: cdktf.stringToHclTerraform(struct.cloudwatchLogsRoleArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
exclude_verbose_content: {
value: cdktf.booleanToHclTerraform(struct.excludeVerboseContent),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
field_log_level: {
value: cdktf.stringToHclTerraform(struct.fieldLogLevel),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiLogConfigToHclTerraform = appsyncGraphqlApiLogConfigToHclTerraform;
class AppsyncGraphqlApiLogConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._cloudwatchLogsRoleArn !== undefined) {
hasAnyValues = true;
internalValueResult.cloudwatchLogsRoleArn = this._cloudwatchLogsRoleArn;
}
if (this._excludeVerboseContent !== undefined) {
hasAnyValues = true;
internalValueResult.excludeVerboseContent = this._excludeVerboseContent;
}
if (this._fieldLogLevel !== undefined) {
hasAnyValues = true;
internalValueResult.fieldLogLevel = this._fieldLogLevel;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._cloudwatchLogsRoleArn = undefined;
this._excludeVerboseContent = undefined;
this._fieldLogLevel = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cloudwatchLogsRoleArn = value.cloudwatchLogsRoleArn;
this._excludeVerboseContent = value.excludeVerboseContent;
this._fieldLogLevel = value.fieldLogLevel;
}
}
get cloudwatchLogsRoleArn() {
return this.getStringAttribute('cloudwatch_logs_role_arn');
}
set cloudwatchLogsRoleArn(value) {
this._cloudwatchLogsRoleArn = value;
}
// Temporarily expose input value. Use with caution.
get cloudwatchLogsRoleArnInput() {
return this._cloudwatchLogsRoleArn;
}
get excludeVerboseContent() {
return this.getBooleanAttribute('exclude_verbose_content');
}
set excludeVerboseContent(value) {
this._excludeVerboseContent = value;
}
resetExcludeVerboseContent() {
this._excludeVerboseContent = undefined;
}
// Temporarily expose input value. Use with caution.
get excludeVerboseContentInput() {
return this._excludeVerboseContent;
}
get fieldLogLevel() {
return this.getStringAttribute('field_log_level');
}
set fieldLogLevel(value) {
this._fieldLogLevel = value;
}
// Temporarily expose input value. Use with caution.
get fieldLogLevelInput() {
return this._fieldLogLevel;
}
}
exports.AppsyncGraphqlApiLogConfigOutputReference = AppsyncGraphqlApiLogConfigOutputReference;
_h = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiLogConfigOutputReference[_h] = { fqn: "@cdktf/provider-aws.appsyncGraphqlApi.AppsyncGraphqlApiLogConfigOutputReference", version: "19.50.0" };
function appsyncGraphqlApiOpenidConnectConfigToTerraform(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 {
auth_ttl: cdktf.numberToTerraform(struct.authTtl),
client_id: cdktf.stringToTerraform(struct.clientId),
iat_ttl: cdktf.numberToTerraform(struct.iatTtl),
issuer: cdktf.stringToTerraform(struct.issuer),
};
}
exports.appsyncGraphqlApiOpenidConnectConfigToTerraform = appsyncGraphqlApiOpenidConnectConfigToTerraform;
function appsyncGraphqlApiOpenidConnectConfigToHclTerraform(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 = {
auth_ttl: {
value: cdktf.numberToHclTerraform(struct.authTtl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
client_id: {
value: cdktf.stringToHclTerraform(struct.clientId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
iat_ttl: {
value: cdktf.numberToHclTerraform(struct.iatTtl),
isBlock: false,
type: "simple",
storageClassType: "number",
},
issuer: {
value: cdktf.stringToHclTerraform(struct.issuer),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.appsyncGraphqlApiOpenidConnectConfigToHclTerraform = appsyncGraphqlApiOpenidConnectConfigToHclTerraform;
class AppsyncGraphqlApiOpenidConnectConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._authTtl !== undefined) {
hasAnyValues = true;
internalValueResult.authTtl = this._authTtl;
}
if (this._clientId !== undefined) {
hasAnyValues = true;
internalValueResult.clientId = this._clientId;
}
if (this._iatTtl !== undefined) {
hasAnyValues = true;
internalValueResult.iatTtl = this._iatTtl;
}
if (this._issuer !== undefined) {
hasAnyValues = true;
internalValueResult.issuer = this._issuer;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._authTtl = undefined;
this._clientId = undefined;
this._iatTtl = undefined;
this._issuer = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._authTtl = value.authTtl;
this._clientId = value.clientId;
this._iatTtl = value.iatTtl;
this._issuer = value.issuer;
}
}
get authTtl() {
return this.getNumberAttribute('auth_ttl');
}
set authTtl(value) {
this._authTtl = value;
}
resetAuthTtl() {
this._authTtl = undefined;
}
// Temporarily expose input value. Use with caution.
get authTtlInput() {
return this._authTtl;
}
get clientId() {
return this.getStringAttribute('client_id');
}
set clientId(value) {
this._clientId = value;
}
resetClientId() {
this._clientId = undefined;
}
// Temporarily expose input value. Use with caution.
get clientIdInput() {
return this._clientId;
}
get iatTtl() {
return this.getNumberAttribute('iat_ttl');
}
set iatTtl(value) {
this._iatTtl = value;
}
resetIatTtl() {
this._iatTtl = undefined;
}
// Temporarily expose input value. Use with caution.
get iatTtlInput() {
return this._iatTtl;
}
get issuer() {
return this.getStringAttribute('issuer');
}
set issuer(value) {
this._issuer = value;
}
// Temporarily expose input value. Use with caution.
get issuerInput() {
return this._issuer;
}
}
exports.AppsyncGraphqlApiOpenidConnectConfigOutputReference = AppsyncGraphqlApiOpenidConnectConfigOutputReference;
_j = JSII_RTTI_SYMBOL_1;
AppsyncGraphqlApiOp