// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Pinpoint */ export interface PinpointAdmChannelConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_adm_channel.html#application_id PinpointAdmChannel#application_id} */ readonly applicationId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_adm_channel.html#client_id PinpointAdmChannel#client_id} */ readonly clientId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_adm_channel.html#client_secret PinpointAdmChannel#client_secret} */ readonly clientSecret: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_adm_channel.html#enabled PinpointAdmChannel#enabled} */ readonly enabled?: boolean | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_adm_channel.html aws_pinpoint_adm_channel} */ export class PinpointAdmChannel extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_pinpoint_adm_channel"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/pinpoint_adm_channel.html aws_pinpoint_adm_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 PinpointAdmChannelConfig */ public constructor(scope: Construct, id: string, config: PinpointAdmChannelConfig) { super(scope, id, { terraformResourceType: 'aws_pinpoint_adm_channel', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._applicationId = config.applicationId; this._clientId = config.clientId; this._clientSecret = config.clientSecret; this._enabled = config.enabled; } // ========== // ATTRIBUTES // ========== // 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; } // client_id - computed: false, optional: false, required: true private _clientId?: string; public get clientId() { return this.getStringAttribute('client_id'); } public set clientId(value: string) { this._clientId = value; } // Temporarily expose input value. Use with caution. public get clientIdInput() { return this._clientId; } // client_secret - computed: false, optional: false, required: true private _clientSecret?: string; public get clientSecret() { return this.getStringAttribute('client_secret'); } public set clientSecret(value: string) { this._clientSecret = value; } // Temporarily expose input value. Use with caution. public get clientSecretInput() { return this._clientSecret; } // 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'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { application_id: cdktf.stringToTerraform(this._applicationId), client_id: cdktf.stringToTerraform(this._clientId), client_secret: cdktf.stringToTerraform(this._clientSecret), enabled: cdktf.booleanToTerraform(this._enabled), }; } }