// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Backup */ export interface BackupGlobalSettingsConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/backup_global_settings.html#global_settings BackupGlobalSettings#global_settings} */ readonly globalSettings: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/backup_global_settings.html aws_backup_global_settings} */ export class BackupGlobalSettings extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_backup_global_settings"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/backup_global_settings.html aws_backup_global_settings} 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 BackupGlobalSettingsConfig */ public constructor(scope: Construct, id: string, config: BackupGlobalSettingsConfig) { super(scope, id, { terraformResourceType: 'aws_backup_global_settings', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._globalSettings = config.globalSettings; } // ========== // ATTRIBUTES // ========== // global_settings - computed: false, optional: false, required: true private _globalSettings?: { [key: string]: string } | cdktf.IResolvable; public get globalSettings() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('global_settings') as any; } public set globalSettings(value: { [key: string]: string } | cdktf.IResolvable) { this._globalSettings = value; } // Temporarily expose input value. Use with caution. public get globalSettingsInput() { return this._globalSettings; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { global_settings: cdktf.hashMapper(cdktf.anyToTerraform)(this._globalSettings), }; } }