// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Network Firewall */ export interface NetworkfirewallResourcePolicyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/networkfirewall_resource_policy.html#policy NetworkfirewallResourcePolicy#policy} */ readonly policy: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/networkfirewall_resource_policy.html#resource_arn NetworkfirewallResourcePolicy#resource_arn} */ readonly resourceArn: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/networkfirewall_resource_policy.html aws_networkfirewall_resource_policy} */ export class NetworkfirewallResourcePolicy extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_networkfirewall_resource_policy"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/networkfirewall_resource_policy.html aws_networkfirewall_resource_policy} 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 NetworkfirewallResourcePolicyConfig */ public constructor(scope: Construct, id: string, config: NetworkfirewallResourcePolicyConfig) { super(scope, id, { terraformResourceType: 'aws_networkfirewall_resource_policy', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._policy = config.policy; this._resourceArn = config.resourceArn; } // ========== // ATTRIBUTES // ========== // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // policy - computed: false, optional: false, required: true private _policy?: string; public get policy() { return this.getStringAttribute('policy'); } public set policy(value: string) { this._policy = value; } // Temporarily expose input value. Use with caution. public get policyInput() { return this._policy; } // 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; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { policy: cdktf.stringToTerraform(this._policy), resource_arn: cdktf.stringToTerraform(this._resourceArn), }; } }