UNPKG

@aws/cloudfront-hosting-toolkit

Version:

CloudFront Hosting Toolkit offers the convenience of a managed frontend hosting service while retaining full control over the hosting and deployment infrastructure to make it your own.

108 lines (107 loc) 3.09 kB
#!/usr/bin/env node export declare const getGithubRepositoryQuestions: (initialUrl?: string, initialBranch?: string) => ({ validate: (value: string) => true | "GitHub repository format must be https://github.com/USERNAME/REPOSITORY.git or git@github.com:USERNAME/REPOSITORY.git and can be added only once"; initial?: string | undefined; type: string; name: string; message: string; } | { type: string; name: string; message: string; initial: string; validate: (value: string) => true | "Branch name is mandatory"; })[]; export declare const getS3BucketConfigurationQuestions: (defaultBucket: string, defaultPath?: string) => ({ message: string; validate: (value: string) => true | "The bucket name must not be empty, and the corresponding bucket must exist"; initial?: string | undefined; type: string; name: string; } | { message: string; validate: (value: string) => true | "The prefix should not have leading or trailing slashes"; initial?: string | undefined; type: string; name: string; })[]; export declare const getFrameworkSelectionQuestions: (initialValue?: string) => { type: string; name: string; message: string; choices: { title: string; value: string; }[]; initial: number; }[]; export declare const getDomainNameQuestion: (defaultDomainName?: string) => { type: string; name: string; message: string; choices: { title: string; value: string; }[]; initial: number; }[]; export declare const continueConfirmationQuestion: { type: string; name: string; message: string; validate: (value: string) => true | "You have to type OK to continue"; }; export declare const domainNameDetailsQuestions: (defaultDomainName?: string) => ({ message: string; validate: (value: string) => true | "Domain name format must be www.mydomainname.com or mydomainname.com"; initial?: string | undefined; type: string; name: string; choices?: undefined; } | { type: string; name: string; message: string; choices: { title: string; value: string; }[]; initial: number; })[]; export declare const hostedZoneIdQuestion: (defaultHostedZoneId?: string) => { message: string; validate: (value: string) => true | "The hosted zone must not be empty"; initial?: string | undefined; type: string; name: string; }[]; export declare const cloudFrontAssociationQuestion: { type: string; name: string; message: string; choices: { title: string; value: string; }[]; initial: number; }; export declare const manualGitHubConfigConfirmationQuestion: { type: string; name: string; message: string; choices: { title: string; value: string; }[]; initial: number; }; export declare const hostingInfrastructureDeletionConfirmation: { type: string; name: string; message: string; choices: { title: string; value: string; }[]; initial: number; };