@cm-madlabs/cdk-constructs
Version:
AWS CDK Constructs that can be used universally
95 lines (94 loc) • 2.15 kB
TypeScript
import { App } from '@aws-cdk/aws-amplify';
import { Construct } from '@aws-cdk/core';
/**
* @stability stable
*/
export interface IAmplifyConsoleForSpaProps {
/**
* Amplify Consoleのアプリ名.
*
* @stability stable
*/
readonly amplifyAppName?: string;
/**
* BASIC認証を行うかどうか.
*
* @stability stable
*/
readonly isBasicAuth: boolean;
/**
* BASIC認証を行う場合のパスワード格納している SecretManager の SecretId.
*
* @stability stable
*/
readonly basicAuthSecretId?: string;
/**
* BASIC認証を行う場合のユーザー名.
*
* @stability stable
*/
readonly basicAuthUserName?: string;
/**
* GitHubの Personal AccessToken を格納している SecretManager の SecretId.
*
* @stability stable
*/
readonly githubTokenSecretId: string;
/**
* GitHubのオーナー.
*
* @stability stable
*/
readonly githubOwner: string;
/**
* GitHubのリポジトリ.
*
* @stability stable
*/
readonly githubRepo: string;
/**
* 自動的にビルドするかどうか.
*
* @stability stable
*/
readonly isAutoBuild: boolean;
/**
* PreBuild.
*
* @stability stable
*/
readonly preBuildCommands: string[];
/**
* Build.
*
* @stability stable
*/
readonly buildCommands: string[];
/**
* PostBuild.
*
* @stability stable
*/
readonly postBuildCommands: string[];
/**
* artifactのbaseDirectory(デプロイ対象のフォルダ).
*
* @stability stable
*/
readonly baseDirectory: string;
}
/**
* Amplify ConsoleのCICDを作成するConstruct ReactなどのSPAをホスティングするために利用する.
*
* @stability stable
*/
export declare class AmplifyConsoleCiCd extends Construct {
/**
* @stability stable
*/
readonly amplify: App;
/**
* @stability stable
*/
constructor(scope: Construct, id: string, props: IAmplifyConsoleForSpaProps);
}