// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Pinpoint */ export interface PinpointBaiduChannelConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_baidu_channel.html#api_key PinpointBaiduChannel#api_key} */ readonly apiKey: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_baidu_channel.html#application_id PinpointBaiduChannel#application_id} */ readonly applicationId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_baidu_channel.html#enabled PinpointBaiduChannel#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_baidu_channel.html#secret_key PinpointBaiduChannel#secret_key} */ readonly secretKey: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_baidu_channel.html aws_pinpoint_baidu_channel} */ export class PinpointBaiduChannel extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_pinpoint_baidu_channel"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_baidu_channel.html aws_pinpoint_baidu_channel} 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 PinpointBaiduChannelConfig */ public constructor(scope: Construct, id: string, config: PinpointBaiduChannelConfig) { super(scope, id, { terraformResourceType: 'aws_pinpoint_baidu_channel', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._apiKey = config.apiKey; this._applicationId = config.applicationId; this._enabled = config.enabled; this._secretKey = config.secretKey; } // ========== // ATTRIBUTES // ========== // api_key - computed: false, optional: false, required: true private _apiKey?: string; public get apiKey() { return this.getStringAttribute('api_key'); } public set apiKey(value: string) { this._apiKey = value; } // Temporarily expose input value. Use with caution. public get apiKeyInput() { return this._apiKey; } // application_id - computed: false, optional: false, required: true private _applicationId?: string; public get applicationId() { return this.getStringAttribute('application_id'); } public set applicationId(value: string) { this._applicationId = value; } // Temporarily expose input value. Use with caution. public get applicationIdInput() { return this._applicationId; } // enabled - computed: false, optional: true, required: false private _enabled?: boolean | cdktf.IResolvable; public get enabled() { return this.getBooleanAttribute('enabled') as any; } public set enabled(value: boolean | cdktf.IResolvable) { this._enabled = value; } public resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. public get enabledInput() { return this._enabled; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // secret_key - computed: false, optional: false, required: true private _secretKey?: string; public get secretKey() { return this.getStringAttribute('secret_key'); } public set secretKey(value: string) { this._secretKey = value; } // Temporarily expose input value. Use with caution. public get secretKeyInput() { return this._secretKey; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { api_key: cdktf.stringToTerraform(this._apiKey), application_id: cdktf.stringToTerraform(this._applicationId), enabled: cdktf.booleanToTerraform(this._enabled), secret_key: cdktf.stringToTerraform(this._secretKey), }; } }