// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS WAF V2 */ export interface Wafv2WebAclLoggingConfigurationConfig extends cdktf.TerraformMetaArguments { /** * AWS Kinesis Firehose Delivery Stream ARNs * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#log_destination_configs Wafv2WebAclLoggingConfiguration#log_destination_configs} */ readonly logDestinationConfigs: string[]; /** * AWS WebACL ARN * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#resource_arn Wafv2WebAclLoggingConfiguration#resource_arn} */ readonly resourceArn: string; /** * logging_filter block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#logging_filter Wafv2WebAclLoggingConfiguration#logging_filter} */ readonly loggingFilter?: Wafv2WebAclLoggingConfigurationLoggingFilter; /** * redacted_fields block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#redacted_fields Wafv2WebAclLoggingConfiguration#redacted_fields} */ readonly redactedFields?: Wafv2WebAclLoggingConfigurationRedactedFields[]; } export interface Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#action Wafv2WebAclLoggingConfiguration#action} */ readonly action: string; } export function wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionToTerraform(struct?: Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputReference | Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition): any { if (!cdktf.canInspect(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 { action: cdktf.stringToTerraform(struct!.action), } } export class Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._action !== undefined) { hasAnyValues = true; internalValueResult.action = this._action; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition | undefined) { if (value === undefined) { this.isEmptyObject = false; this._action = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._action = value.action; } } // action - computed: false, optional: false, required: true private _action?: string; public get action() { return this.getStringAttribute('action'); } public set action(value: string) { this._action = value; } // Temporarily expose input value. Use with caution. public get actionInput() { return this._action; } } export interface Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#label_name Wafv2WebAclLoggingConfiguration#label_name} */ readonly labelName: string; } export function wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionToTerraform(struct?: Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputReference | Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { label_name: cdktf.stringToTerraform(struct!.labelName), } } export class Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._labelName !== undefined) { hasAnyValues = true; internalValueResult.labelName = this._labelName; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition | undefined) { if (value === undefined) { this.isEmptyObject = false; this._labelName = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._labelName = value.labelName; } } // label_name - computed: false, optional: false, required: true private _labelName?: string; public get labelName() { return this.getStringAttribute('label_name'); } public set labelName(value: string) { this._labelName = value; } // Temporarily expose input value. Use with caution. public get labelNameInput() { return this._labelName; } } export interface Wafv2WebAclLoggingConfigurationLoggingFilterFilterCondition { /** * action_condition block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#action_condition Wafv2WebAclLoggingConfiguration#action_condition} */ readonly actionCondition?: Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionCondition; /** * label_name_condition block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#label_name_condition Wafv2WebAclLoggingConfiguration#label_name_condition} */ readonly labelNameCondition?: Wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameCondition; } export function wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionToTerraform(struct?: Wafv2WebAclLoggingConfigurationLoggingFilterFilterCondition): any { if (!cdktf.canInspect(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 { action_condition: wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionActionConditionToTerraform(struct!.actionCondition), label_name_condition: wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionLabelNameConditionToTerraform(struct!.labelNameCondition), } } export interface Wafv2WebAclLoggingConfigurationLoggingFilterFilter { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#behavior Wafv2WebAclLoggingConfiguration#behavior} */ readonly behavior: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#requirement Wafv2WebAclLoggingConfiguration#requirement} */ readonly requirement: string; /** * condition block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#condition Wafv2WebAclLoggingConfiguration#condition} */ readonly condition: Wafv2WebAclLoggingConfigurationLoggingFilterFilterCondition[]; } export function wafv2WebAclLoggingConfigurationLoggingFilterFilterToTerraform(struct?: Wafv2WebAclLoggingConfigurationLoggingFilterFilter): any { if (!cdktf.canInspect(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 { behavior: cdktf.stringToTerraform(struct!.behavior), requirement: cdktf.stringToTerraform(struct!.requirement), condition: cdktf.listMapper(wafv2WebAclLoggingConfigurationLoggingFilterFilterConditionToTerraform)(struct!.condition), } } export interface Wafv2WebAclLoggingConfigurationLoggingFilter { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#default_behavior Wafv2WebAclLoggingConfiguration#default_behavior} */ readonly defaultBehavior: string; /** * filter block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#filter Wafv2WebAclLoggingConfiguration#filter} */ readonly filter: Wafv2WebAclLoggingConfigurationLoggingFilterFilter[]; } export function wafv2WebAclLoggingConfigurationLoggingFilterToTerraform(struct?: Wafv2WebAclLoggingConfigurationLoggingFilterOutputReference | Wafv2WebAclLoggingConfigurationLoggingFilter): any { if (!cdktf.canInspect(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 { default_behavior: cdktf.stringToTerraform(struct!.defaultBehavior), filter: cdktf.listMapper(wafv2WebAclLoggingConfigurationLoggingFilterFilterToTerraform)(struct!.filter), } } export class Wafv2WebAclLoggingConfigurationLoggingFilterOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationLoggingFilter | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._defaultBehavior !== undefined) { hasAnyValues = true; internalValueResult.defaultBehavior = this._defaultBehavior; } if (this._filter !== undefined) { hasAnyValues = true; internalValueResult.filter = this._filter; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationLoggingFilter | undefined) { if (value === undefined) { this.isEmptyObject = false; this._defaultBehavior = undefined; this._filter = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._defaultBehavior = value.defaultBehavior; this._filter = value.filter; } } // default_behavior - computed: false, optional: false, required: true private _defaultBehavior?: string; public get defaultBehavior() { return this.getStringAttribute('default_behavior'); } public set defaultBehavior(value: string) { this._defaultBehavior = value; } // Temporarily expose input value. Use with caution. public get defaultBehaviorInput() { return this._defaultBehavior; } // filter - computed: false, optional: false, required: true private _filter?: Wafv2WebAclLoggingConfigurationLoggingFilterFilter[]; public get filter() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('filter') as any; } public set filter(value: Wafv2WebAclLoggingConfigurationLoggingFilterFilter[]) { this._filter = value; } // Temporarily expose input value. Use with caution. public get filterInput() { return this._filter; } } export interface Wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArguments { } export function wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArgumentsToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArgumentsOutputReference | Wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArguments): any { if (!cdktf.canInspect(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 { } } export class Wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArgumentsOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArguments | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArguments | undefined) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } } export interface Wafv2WebAclLoggingConfigurationRedactedFieldsBody { } export function wafv2WebAclLoggingConfigurationRedactedFieldsBodyToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFieldsBodyOutputReference | Wafv2WebAclLoggingConfigurationRedactedFieldsBody): any { if (!cdktf.canInspect(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 { } } export class Wafv2WebAclLoggingConfigurationRedactedFieldsBodyOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationRedactedFieldsBody | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationRedactedFieldsBody | undefined) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } } export interface Wafv2WebAclLoggingConfigurationRedactedFieldsMethod { } export function wafv2WebAclLoggingConfigurationRedactedFieldsMethodToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFieldsMethodOutputReference | Wafv2WebAclLoggingConfigurationRedactedFieldsMethod): any { if (!cdktf.canInspect(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 { } } export class Wafv2WebAclLoggingConfigurationRedactedFieldsMethodOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationRedactedFieldsMethod | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationRedactedFieldsMethod | undefined) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } } export interface Wafv2WebAclLoggingConfigurationRedactedFieldsQueryString { } export function wafv2WebAclLoggingConfigurationRedactedFieldsQueryStringToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFieldsQueryStringOutputReference | Wafv2WebAclLoggingConfigurationRedactedFieldsQueryString): any { if (!cdktf.canInspect(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 { } } export class Wafv2WebAclLoggingConfigurationRedactedFieldsQueryStringOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationRedactedFieldsQueryString | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationRedactedFieldsQueryString | undefined) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } } export interface Wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeader { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#name Wafv2WebAclLoggingConfiguration#name} */ readonly name: string; } export function wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeaderToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeaderOutputReference | Wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeader): any { if (!cdktf.canInspect(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 { name: cdktf.stringToTerraform(struct!.name), } } export class Wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeaderOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeader | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeader | undefined) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._name = value.name; } } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } } export interface Wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgument { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#name Wafv2WebAclLoggingConfiguration#name} */ readonly name: string; } export function wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgumentToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgumentOutputReference | Wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgument): any { if (!cdktf.canInspect(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 { name: cdktf.stringToTerraform(struct!.name), } } export class Wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgumentOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgument | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._name !== undefined) { hasAnyValues = true; internalValueResult.name = this._name; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgument | undefined) { if (value === undefined) { this.isEmptyObject = false; this._name = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._name = value.name; } } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } } export interface Wafv2WebAclLoggingConfigurationRedactedFieldsUriPath { } export function wafv2WebAclLoggingConfigurationRedactedFieldsUriPathToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFieldsUriPathOutputReference | Wafv2WebAclLoggingConfigurationRedactedFieldsUriPath): any { if (!cdktf.canInspect(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 { } } export class Wafv2WebAclLoggingConfigurationRedactedFieldsUriPathOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): Wafv2WebAclLoggingConfigurationRedactedFieldsUriPath | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: Wafv2WebAclLoggingConfigurationRedactedFieldsUriPath | undefined) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } } export interface Wafv2WebAclLoggingConfigurationRedactedFields { /** * all_query_arguments block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#all_query_arguments Wafv2WebAclLoggingConfiguration#all_query_arguments} */ readonly allQueryArguments?: Wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArguments; /** * body block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#body Wafv2WebAclLoggingConfiguration#body} */ readonly body?: Wafv2WebAclLoggingConfigurationRedactedFieldsBody; /** * method block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#method Wafv2WebAclLoggingConfiguration#method} */ readonly method?: Wafv2WebAclLoggingConfigurationRedactedFieldsMethod; /** * query_string block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#query_string Wafv2WebAclLoggingConfiguration#query_string} */ readonly queryString?: Wafv2WebAclLoggingConfigurationRedactedFieldsQueryString; /** * single_header block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#single_header Wafv2WebAclLoggingConfiguration#single_header} */ readonly singleHeader?: Wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeader; /** * single_query_argument block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#single_query_argument Wafv2WebAclLoggingConfiguration#single_query_argument} */ readonly singleQueryArgument?: Wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgument; /** * uri_path block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html#uri_path Wafv2WebAclLoggingConfiguration#uri_path} */ readonly uriPath?: Wafv2WebAclLoggingConfigurationRedactedFieldsUriPath; } export function wafv2WebAclLoggingConfigurationRedactedFieldsToTerraform(struct?: Wafv2WebAclLoggingConfigurationRedactedFields): any { if (!cdktf.canInspect(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 { all_query_arguments: wafv2WebAclLoggingConfigurationRedactedFieldsAllQueryArgumentsToTerraform(struct!.allQueryArguments), body: wafv2WebAclLoggingConfigurationRedactedFieldsBodyToTerraform(struct!.body), method: wafv2WebAclLoggingConfigurationRedactedFieldsMethodToTerraform(struct!.method), query_string: wafv2WebAclLoggingConfigurationRedactedFieldsQueryStringToTerraform(struct!.queryString), single_header: wafv2WebAclLoggingConfigurationRedactedFieldsSingleHeaderToTerraform(struct!.singleHeader), single_query_argument: wafv2WebAclLoggingConfigurationRedactedFieldsSingleQueryArgumentToTerraform(struct!.singleQueryArgument), uri_path: wafv2WebAclLoggingConfigurationRedactedFieldsUriPathToTerraform(struct!.uriPath), } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html aws_wafv2_web_acl_logging_configuration} */ export class Wafv2WebAclLoggingConfiguration extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_wafv2_web_acl_logging_configuration"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/wafv2_web_acl_logging_configuration.html aws_wafv2_web_acl_logging_configuration} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options Wafv2WebAclLoggingConfigurationConfig */ public constructor(scope: Construct, id: string, config: Wafv2WebAclLoggingConfigurationConfig) { super(scope, id, { terraformResourceType: 'aws_wafv2_web_acl_logging_configuration', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._logDestinationConfigs = config.logDestinationConfigs; this._resourceArn = config.resourceArn; this._loggingFilter.internalValue = config.loggingFilter; this._redactedFields = config.redactedFields; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // log_destination_configs - computed: false, optional: false, required: true private _logDestinationConfigs?: string[]; public get logDestinationConfigs() { return this.getListAttribute('log_destination_configs'); } public set logDestinationConfigs(value: string[]) { this._logDestinationConfigs = value; } // Temporarily expose input value. Use with caution. public get logDestinationConfigsInput() { return this._logDestinationConfigs; } // resource_arn - computed: false, optional: false, required: true private _resourceArn?: string; public get resourceArn() { return this.getStringAttribute('resource_arn'); } public set resourceArn(value: string) { this._resourceArn = value; } // Temporarily expose input value. Use with caution. public get resourceArnInput() { return this._resourceArn; } // logging_filter - computed: false, optional: true, required: false private _loggingFilter = new Wafv2WebAclLoggingConfigurationLoggingFilterOutputReference(this as any, "logging_filter", true); public get loggingFilter() { return this._loggingFilter; } public putLoggingFilter(value: Wafv2WebAclLoggingConfigurationLoggingFilter) { this._loggingFilter.internalValue = value; } public resetLoggingFilter() { this._loggingFilter.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get loggingFilterInput() { return this._loggingFilter.internalValue; } // redacted_fields - computed: false, optional: true, required: false private _redactedFields?: Wafv2WebAclLoggingConfigurationRedactedFields[]; public get redactedFields() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('redacted_fields') as any; } public set redactedFields(value: Wafv2WebAclLoggingConfigurationRedactedFields[]) { this._redactedFields = value; } public resetRedactedFields() { this._redactedFields = undefined; } // Temporarily expose input value. Use with caution. public get redactedFieldsInput() { return this._redactedFields; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { log_destination_configs: cdktf.listMapper(cdktf.stringToTerraform)(this._logDestinationConfigs), resource_arn: cdktf.stringToTerraform(this._resourceArn), logging_filter: wafv2WebAclLoggingConfigurationLoggingFilterToTerraform(this._loggingFilter.internalValue), redacted_fields: cdktf.listMapper(wafv2WebAclLoggingConfigurationRedactedFieldsToTerraform)(this._redactedFields), }; } }