UNPKG

aws-sdk

Version:
1,058 lines 81.9 kB
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; interface Blob {} declare class Amplify extends Service { /** * Constructs a service object. This object has one method for each API operation. */ constructor(options?: Amplify.Types.ClientConfiguration) config: Config & Amplify.Types.ClientConfiguration; /** * Creates a new Amplify app. */ createApp(params: Amplify.Types.CreateAppRequest, callback?: (err: AWSError, data: Amplify.Types.CreateAppResult) => void): Request<Amplify.Types.CreateAppResult, AWSError>; /** * Creates a new Amplify app. */ createApp(callback?: (err: AWSError, data: Amplify.Types.CreateAppResult) => void): Request<Amplify.Types.CreateAppResult, AWSError>; /** * Creates a new backend environment for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ createBackendEnvironment(params: Amplify.Types.CreateBackendEnvironmentRequest, callback?: (err: AWSError, data: Amplify.Types.CreateBackendEnvironmentResult) => void): Request<Amplify.Types.CreateBackendEnvironmentResult, AWSError>; /** * Creates a new backend environment for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ createBackendEnvironment(callback?: (err: AWSError, data: Amplify.Types.CreateBackendEnvironmentResult) => void): Request<Amplify.Types.CreateBackendEnvironmentResult, AWSError>; /** * Creates a new branch for an Amplify app. */ createBranch(params: Amplify.Types.CreateBranchRequest, callback?: (err: AWSError, data: Amplify.Types.CreateBranchResult) => void): Request<Amplify.Types.CreateBranchResult, AWSError>; /** * Creates a new branch for an Amplify app. */ createBranch(callback?: (err: AWSError, data: Amplify.Types.CreateBranchResult) => void): Request<Amplify.Types.CreateBranchResult, AWSError>; /** * Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail. */ createDeployment(params: Amplify.Types.CreateDeploymentRequest, callback?: (err: AWSError, data: Amplify.Types.CreateDeploymentResult) => void): Request<Amplify.Types.CreateDeploymentResult, AWSError>; /** * Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail. */ createDeployment(callback?: (err: AWSError, data: Amplify.Types.CreateDeploymentResult) => void): Request<Amplify.Types.CreateDeploymentResult, AWSError>; /** * Creates a new domain association for an Amplify app. This action associates a custom domain with the Amplify app */ createDomainAssociation(params: Amplify.Types.CreateDomainAssociationRequest, callback?: (err: AWSError, data: Amplify.Types.CreateDomainAssociationResult) => void): Request<Amplify.Types.CreateDomainAssociationResult, AWSError>; /** * Creates a new domain association for an Amplify app. This action associates a custom domain with the Amplify app */ createDomainAssociation(callback?: (err: AWSError, data: Amplify.Types.CreateDomainAssociationResult) => void): Request<Amplify.Types.CreateDomainAssociationResult, AWSError>; /** * Creates a new webhook on an Amplify app. */ createWebhook(params: Amplify.Types.CreateWebhookRequest, callback?: (err: AWSError, data: Amplify.Types.CreateWebhookResult) => void): Request<Amplify.Types.CreateWebhookResult, AWSError>; /** * Creates a new webhook on an Amplify app. */ createWebhook(callback?: (err: AWSError, data: Amplify.Types.CreateWebhookResult) => void): Request<Amplify.Types.CreateWebhookResult, AWSError>; /** * Deletes an existing Amplify app specified by an app ID. */ deleteApp(params: Amplify.Types.DeleteAppRequest, callback?: (err: AWSError, data: Amplify.Types.DeleteAppResult) => void): Request<Amplify.Types.DeleteAppResult, AWSError>; /** * Deletes an existing Amplify app specified by an app ID. */ deleteApp(callback?: (err: AWSError, data: Amplify.Types.DeleteAppResult) => void): Request<Amplify.Types.DeleteAppResult, AWSError>; /** * Deletes a backend environment for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ deleteBackendEnvironment(params: Amplify.Types.DeleteBackendEnvironmentRequest, callback?: (err: AWSError, data: Amplify.Types.DeleteBackendEnvironmentResult) => void): Request<Amplify.Types.DeleteBackendEnvironmentResult, AWSError>; /** * Deletes a backend environment for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ deleteBackendEnvironment(callback?: (err: AWSError, data: Amplify.Types.DeleteBackendEnvironmentResult) => void): Request<Amplify.Types.DeleteBackendEnvironmentResult, AWSError>; /** * Deletes a branch for an Amplify app. */ deleteBranch(params: Amplify.Types.DeleteBranchRequest, callback?: (err: AWSError, data: Amplify.Types.DeleteBranchResult) => void): Request<Amplify.Types.DeleteBranchResult, AWSError>; /** * Deletes a branch for an Amplify app. */ deleteBranch(callback?: (err: AWSError, data: Amplify.Types.DeleteBranchResult) => void): Request<Amplify.Types.DeleteBranchResult, AWSError>; /** * Deletes a domain association for an Amplify app. */ deleteDomainAssociation(params: Amplify.Types.DeleteDomainAssociationRequest, callback?: (err: AWSError, data: Amplify.Types.DeleteDomainAssociationResult) => void): Request<Amplify.Types.DeleteDomainAssociationResult, AWSError>; /** * Deletes a domain association for an Amplify app. */ deleteDomainAssociation(callback?: (err: AWSError, data: Amplify.Types.DeleteDomainAssociationResult) => void): Request<Amplify.Types.DeleteDomainAssociationResult, AWSError>; /** * Deletes a job for a branch of an Amplify app. */ deleteJob(params: Amplify.Types.DeleteJobRequest, callback?: (err: AWSError, data: Amplify.Types.DeleteJobResult) => void): Request<Amplify.Types.DeleteJobResult, AWSError>; /** * Deletes a job for a branch of an Amplify app. */ deleteJob(callback?: (err: AWSError, data: Amplify.Types.DeleteJobResult) => void): Request<Amplify.Types.DeleteJobResult, AWSError>; /** * Deletes a webhook. */ deleteWebhook(params: Amplify.Types.DeleteWebhookRequest, callback?: (err: AWSError, data: Amplify.Types.DeleteWebhookResult) => void): Request<Amplify.Types.DeleteWebhookResult, AWSError>; /** * Deletes a webhook. */ deleteWebhook(callback?: (err: AWSError, data: Amplify.Types.DeleteWebhookResult) => void): Request<Amplify.Types.DeleteWebhookResult, AWSError>; /** * Returns the website access logs for a specific time range using a presigned URL. */ generateAccessLogs(params: Amplify.Types.GenerateAccessLogsRequest, callback?: (err: AWSError, data: Amplify.Types.GenerateAccessLogsResult) => void): Request<Amplify.Types.GenerateAccessLogsResult, AWSError>; /** * Returns the website access logs for a specific time range using a presigned URL. */ generateAccessLogs(callback?: (err: AWSError, data: Amplify.Types.GenerateAccessLogsResult) => void): Request<Amplify.Types.GenerateAccessLogsResult, AWSError>; /** * Returns an existing Amplify app specified by an app ID. */ getApp(params: Amplify.Types.GetAppRequest, callback?: (err: AWSError, data: Amplify.Types.GetAppResult) => void): Request<Amplify.Types.GetAppResult, AWSError>; /** * Returns an existing Amplify app specified by an app ID. */ getApp(callback?: (err: AWSError, data: Amplify.Types.GetAppResult) => void): Request<Amplify.Types.GetAppResult, AWSError>; /** * Returns the artifact info that corresponds to an artifact id. */ getArtifactUrl(params: Amplify.Types.GetArtifactUrlRequest, callback?: (err: AWSError, data: Amplify.Types.GetArtifactUrlResult) => void): Request<Amplify.Types.GetArtifactUrlResult, AWSError>; /** * Returns the artifact info that corresponds to an artifact id. */ getArtifactUrl(callback?: (err: AWSError, data: Amplify.Types.GetArtifactUrlResult) => void): Request<Amplify.Types.GetArtifactUrlResult, AWSError>; /** * Returns a backend environment for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ getBackendEnvironment(params: Amplify.Types.GetBackendEnvironmentRequest, callback?: (err: AWSError, data: Amplify.Types.GetBackendEnvironmentResult) => void): Request<Amplify.Types.GetBackendEnvironmentResult, AWSError>; /** * Returns a backend environment for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ getBackendEnvironment(callback?: (err: AWSError, data: Amplify.Types.GetBackendEnvironmentResult) => void): Request<Amplify.Types.GetBackendEnvironmentResult, AWSError>; /** * Returns a branch for an Amplify app. */ getBranch(params: Amplify.Types.GetBranchRequest, callback?: (err: AWSError, data: Amplify.Types.GetBranchResult) => void): Request<Amplify.Types.GetBranchResult, AWSError>; /** * Returns a branch for an Amplify app. */ getBranch(callback?: (err: AWSError, data: Amplify.Types.GetBranchResult) => void): Request<Amplify.Types.GetBranchResult, AWSError>; /** * Returns the domain information for an Amplify app. */ getDomainAssociation(params: Amplify.Types.GetDomainAssociationRequest, callback?: (err: AWSError, data: Amplify.Types.GetDomainAssociationResult) => void): Request<Amplify.Types.GetDomainAssociationResult, AWSError>; /** * Returns the domain information for an Amplify app. */ getDomainAssociation(callback?: (err: AWSError, data: Amplify.Types.GetDomainAssociationResult) => void): Request<Amplify.Types.GetDomainAssociationResult, AWSError>; /** * Returns a job for a branch of an Amplify app. */ getJob(params: Amplify.Types.GetJobRequest, callback?: (err: AWSError, data: Amplify.Types.GetJobResult) => void): Request<Amplify.Types.GetJobResult, AWSError>; /** * Returns a job for a branch of an Amplify app. */ getJob(callback?: (err: AWSError, data: Amplify.Types.GetJobResult) => void): Request<Amplify.Types.GetJobResult, AWSError>; /** * Returns the webhook information that corresponds to a specified webhook ID. */ getWebhook(params: Amplify.Types.GetWebhookRequest, callback?: (err: AWSError, data: Amplify.Types.GetWebhookResult) => void): Request<Amplify.Types.GetWebhookResult, AWSError>; /** * Returns the webhook information that corresponds to a specified webhook ID. */ getWebhook(callback?: (err: AWSError, data: Amplify.Types.GetWebhookResult) => void): Request<Amplify.Types.GetWebhookResult, AWSError>; /** * Returns a list of the existing Amplify apps. */ listApps(params: Amplify.Types.ListAppsRequest, callback?: (err: AWSError, data: Amplify.Types.ListAppsResult) => void): Request<Amplify.Types.ListAppsResult, AWSError>; /** * Returns a list of the existing Amplify apps. */ listApps(callback?: (err: AWSError, data: Amplify.Types.ListAppsResult) => void): Request<Amplify.Types.ListAppsResult, AWSError>; /** * Returns a list of artifacts for a specified app, branch, and job. */ listArtifacts(params: Amplify.Types.ListArtifactsRequest, callback?: (err: AWSError, data: Amplify.Types.ListArtifactsResult) => void): Request<Amplify.Types.ListArtifactsResult, AWSError>; /** * Returns a list of artifacts for a specified app, branch, and job. */ listArtifacts(callback?: (err: AWSError, data: Amplify.Types.ListArtifactsResult) => void): Request<Amplify.Types.ListArtifactsResult, AWSError>; /** * Lists the backend environments for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ listBackendEnvironments(params: Amplify.Types.ListBackendEnvironmentsRequest, callback?: (err: AWSError, data: Amplify.Types.ListBackendEnvironmentsResult) => void): Request<Amplify.Types.ListBackendEnvironmentsResult, AWSError>; /** * Lists the backend environments for an Amplify app. This API is available only to Amplify Gen 1 applications where the backend is created using Amplify Studio or the Amplify command line interface (CLI). This API isn’t available to Amplify Gen 2 applications. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ listBackendEnvironments(callback?: (err: AWSError, data: Amplify.Types.ListBackendEnvironmentsResult) => void): Request<Amplify.Types.ListBackendEnvironmentsResult, AWSError>; /** * Lists the branches of an Amplify app. */ listBranches(params: Amplify.Types.ListBranchesRequest, callback?: (err: AWSError, data: Amplify.Types.ListBranchesResult) => void): Request<Amplify.Types.ListBranchesResult, AWSError>; /** * Lists the branches of an Amplify app. */ listBranches(callback?: (err: AWSError, data: Amplify.Types.ListBranchesResult) => void): Request<Amplify.Types.ListBranchesResult, AWSError>; /** * Returns the domain associations for an Amplify app. */ listDomainAssociations(params: Amplify.Types.ListDomainAssociationsRequest, callback?: (err: AWSError, data: Amplify.Types.ListDomainAssociationsResult) => void): Request<Amplify.Types.ListDomainAssociationsResult, AWSError>; /** * Returns the domain associations for an Amplify app. */ listDomainAssociations(callback?: (err: AWSError, data: Amplify.Types.ListDomainAssociationsResult) => void): Request<Amplify.Types.ListDomainAssociationsResult, AWSError>; /** * Lists the jobs for a branch of an Amplify app. */ listJobs(params: Amplify.Types.ListJobsRequest, callback?: (err: AWSError, data: Amplify.Types.ListJobsResult) => void): Request<Amplify.Types.ListJobsResult, AWSError>; /** * Lists the jobs for a branch of an Amplify app. */ listJobs(callback?: (err: AWSError, data: Amplify.Types.ListJobsResult) => void): Request<Amplify.Types.ListJobsResult, AWSError>; /** * Returns a list of tags for a specified Amazon Resource Name (ARN). */ listTagsForResource(params: Amplify.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Amplify.Types.ListTagsForResourceResponse) => void): Request<Amplify.Types.ListTagsForResourceResponse, AWSError>; /** * Returns a list of tags for a specified Amazon Resource Name (ARN). */ listTagsForResource(callback?: (err: AWSError, data: Amplify.Types.ListTagsForResourceResponse) => void): Request<Amplify.Types.ListTagsForResourceResponse, AWSError>; /** * Returns a list of webhooks for an Amplify app. */ listWebhooks(params: Amplify.Types.ListWebhooksRequest, callback?: (err: AWSError, data: Amplify.Types.ListWebhooksResult) => void): Request<Amplify.Types.ListWebhooksResult, AWSError>; /** * Returns a list of webhooks for an Amplify app. */ listWebhooks(callback?: (err: AWSError, data: Amplify.Types.ListWebhooksResult) => void): Request<Amplify.Types.ListWebhooksResult, AWSError>; /** * Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail. */ startDeployment(params: Amplify.Types.StartDeploymentRequest, callback?: (err: AWSError, data: Amplify.Types.StartDeploymentResult) => void): Request<Amplify.Types.StartDeploymentResult, AWSError>; /** * Starts a deployment for a manually deployed app. Manually deployed apps are not connected to a repository. The maximum duration between the CreateDeployment call and the StartDeployment call cannot exceed 8 hours. If the duration exceeds 8 hours, the StartDeployment call and the associated Job will fail. */ startDeployment(callback?: (err: AWSError, data: Amplify.Types.StartDeploymentResult) => void): Request<Amplify.Types.StartDeploymentResult, AWSError>; /** * Starts a new job for a branch of an Amplify app. */ startJob(params: Amplify.Types.StartJobRequest, callback?: (err: AWSError, data: Amplify.Types.StartJobResult) => void): Request<Amplify.Types.StartJobResult, AWSError>; /** * Starts a new job for a branch of an Amplify app. */ startJob(callback?: (err: AWSError, data: Amplify.Types.StartJobResult) => void): Request<Amplify.Types.StartJobResult, AWSError>; /** * Stops a job that is in progress for a branch of an Amplify app. */ stopJob(params: Amplify.Types.StopJobRequest, callback?: (err: AWSError, data: Amplify.Types.StopJobResult) => void): Request<Amplify.Types.StopJobResult, AWSError>; /** * Stops a job that is in progress for a branch of an Amplify app. */ stopJob(callback?: (err: AWSError, data: Amplify.Types.StopJobResult) => void): Request<Amplify.Types.StopJobResult, AWSError>; /** * Tags the resource with a tag key and value. */ tagResource(params: Amplify.Types.TagResourceRequest, callback?: (err: AWSError, data: Amplify.Types.TagResourceResponse) => void): Request<Amplify.Types.TagResourceResponse, AWSError>; /** * Tags the resource with a tag key and value. */ tagResource(callback?: (err: AWSError, data: Amplify.Types.TagResourceResponse) => void): Request<Amplify.Types.TagResourceResponse, AWSError>; /** * Untags a resource with a specified Amazon Resource Name (ARN). */ untagResource(params: Amplify.Types.UntagResourceRequest, callback?: (err: AWSError, data: Amplify.Types.UntagResourceResponse) => void): Request<Amplify.Types.UntagResourceResponse, AWSError>; /** * Untags a resource with a specified Amazon Resource Name (ARN). */ untagResource(callback?: (err: AWSError, data: Amplify.Types.UntagResourceResponse) => void): Request<Amplify.Types.UntagResourceResponse, AWSError>; /** * Updates an existing Amplify app. */ updateApp(params: Amplify.Types.UpdateAppRequest, callback?: (err: AWSError, data: Amplify.Types.UpdateAppResult) => void): Request<Amplify.Types.UpdateAppResult, AWSError>; /** * Updates an existing Amplify app. */ updateApp(callback?: (err: AWSError, data: Amplify.Types.UpdateAppResult) => void): Request<Amplify.Types.UpdateAppResult, AWSError>; /** * Updates a branch for an Amplify app. */ updateBranch(params: Amplify.Types.UpdateBranchRequest, callback?: (err: AWSError, data: Amplify.Types.UpdateBranchResult) => void): Request<Amplify.Types.UpdateBranchResult, AWSError>; /** * Updates a branch for an Amplify app. */ updateBranch(callback?: (err: AWSError, data: Amplify.Types.UpdateBranchResult) => void): Request<Amplify.Types.UpdateBranchResult, AWSError>; /** * Creates a new domain association for an Amplify app. */ updateDomainAssociation(params: Amplify.Types.UpdateDomainAssociationRequest, callback?: (err: AWSError, data: Amplify.Types.UpdateDomainAssociationResult) => void): Request<Amplify.Types.UpdateDomainAssociationResult, AWSError>; /** * Creates a new domain association for an Amplify app. */ updateDomainAssociation(callback?: (err: AWSError, data: Amplify.Types.UpdateDomainAssociationResult) => void): Request<Amplify.Types.UpdateDomainAssociationResult, AWSError>; /** * Updates a webhook. */ updateWebhook(params: Amplify.Types.UpdateWebhookRequest, callback?: (err: AWSError, data: Amplify.Types.UpdateWebhookResult) => void): Request<Amplify.Types.UpdateWebhookResult, AWSError>; /** * Updates a webhook. */ updateWebhook(callback?: (err: AWSError, data: Amplify.Types.UpdateWebhookResult) => void): Request<Amplify.Types.UpdateWebhookResult, AWSError>; } declare namespace Amplify { export type AccessToken = string; export type ActiveJobId = string; export interface App { /** * The unique ID of the Amplify app. */ appId: AppId; /** * The Amazon Resource Name (ARN) of the Amplify app. */ appArn: AppArn; /** * The name for the Amplify app. */ name: Name; /** * The tag for the Amplify app. */ tags?: TagMap; /** * The description for the Amplify app. */ description: Description; /** * The Git repository for the Amplify app. */ repository: Repository; /** * The platform for the Amplify app. For a static app, set the platform type to WEB. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC. */ platform: Platform; /** * Creates a date and time for the Amplify app. */ createTime: CreateTime; /** * Updates the date and time for the Amplify app. */ updateTime: UpdateTime; /** * The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) of the Amplify app. */ iamServiceRoleArn?: ServiceRoleArn; /** * The environment variables for the Amplify app. For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide. */ environmentVariables: EnvironmentVariables; /** * The default domain for the Amplify app. */ defaultDomain: DefaultDomain; /** * Enables the auto-building of branches for the Amplify app. */ enableBranchAutoBuild: EnableBranchAutoBuild; /** * Automatically disconnect a branch in the Amplify console when you delete a branch from your Git repository. */ enableBranchAutoDeletion?: EnableBranchAutoDeletion; /** * Enables basic authorization for the Amplify app's branches. */ enableBasicAuth: EnableBasicAuth; /** * The basic authorization credentials for branches for the Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password. */ basicAuthCredentials?: BasicAuthCredentials; /** * Describes the custom redirect and rewrite rules for the Amplify app. */ customRules?: CustomRules; /** * Describes the information about a production branch of the Amplify app. */ productionBranch?: ProductionBranch; /** * Describes the content of the build specification (build spec) for the Amplify app. */ buildSpec?: BuildSpec; /** * Describes the custom HTTP headers for the Amplify app. */ customHeaders?: CustomHeaders; /** * Enables automated branch creation for the Amplify app. */ enableAutoBranchCreation?: EnableAutoBranchCreation; /** * Describes the automated branch creation glob patterns for the Amplify app. */ autoBranchCreationPatterns?: AutoBranchCreationPatterns; /** * Describes the automated branch creation configuration for the Amplify app. */ autoBranchCreationConfig?: AutoBranchCreationConfig; /** * This is for internal use. The Amplify service uses this parameter to specify the authentication protocol to use to access the Git repository for an Amplify app. Amplify specifies TOKEN for a GitHub repository, SIGV4 for an Amazon Web Services CodeCommit repository, and SSH for GitLab and Bitbucket repositories. */ repositoryCloneMethod?: RepositoryCloneMethod; /** * The cache configuration for the Amplify app. If you don't specify the cache configuration type, Amplify uses the default AMPLIFY_MANAGED setting. */ cacheConfig?: CacheConfig; } export type AppArn = string; export type AppId = string; export type Apps = App[]; export interface Artifact { /** * The file name for the artifact. */ artifactFileName: ArtifactFileName; /** * The unique ID for the artifact. */ artifactId: ArtifactId; } export type ArtifactFileName = string; export type ArtifactId = string; export type ArtifactUrl = string; export type Artifacts = Artifact[]; export type ArtifactsUrl = string; export type AssociatedResource = string; export type AssociatedResources = AssociatedResource[]; export interface AutoBranchCreationConfig { /** * Describes the current stage for the autocreated branch. */ stage?: Stage; /** * The framework for the autocreated branch. */ framework?: Framework; /** * Enables auto building for the autocreated branch. */ enableAutoBuild?: EnableAutoBuild; /** * The environment variables for the autocreated branch. */ environmentVariables?: EnvironmentVariables; /** * The basic authorization credentials for the autocreated branch. You must base64-encode the authorization credentials and provide them in the format user:password. */ basicAuthCredentials?: BasicAuthCredentials; /** * Enables basic authorization for the autocreated branch. */ enableBasicAuth?: EnableBasicAuth; /** * Enables performance mode for the branch. Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. */ enablePerformanceMode?: EnablePerformanceMode; /** * The build specification (build spec) for the autocreated branch. */ buildSpec?: BuildSpec; /** * Enables pull request previews for the autocreated branch. */ enablePullRequestPreview?: EnablePullRequestPreview; /** * The Amplify environment name for the pull request. */ pullRequestEnvironmentName?: PullRequestEnvironmentName; } export type AutoBranchCreationPattern = string; export type AutoBranchCreationPatterns = AutoBranchCreationPattern[]; export type AutoSubDomainCreationPattern = string; export type AutoSubDomainCreationPatterns = AutoSubDomainCreationPattern[]; export type AutoSubDomainIAMRole = string; export interface Backend { /** * The Amazon Resource Name (ARN) for the CloudFormation stack. */ stackArn?: StackArn; } export interface BackendEnvironment { /** * The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. */ backendEnvironmentArn: BackendEnvironmentArn; /** * The name for a backend environment that is part of an Amplify app. */ environmentName: EnvironmentName; /** * The AWS CloudFormation stack name of a backend environment. */ stackName?: StackName; /** * The name of deployment artifacts. */ deploymentArtifacts?: DeploymentArtifacts; /** * The creation date and time for a backend environment that is part of an Amplify app. */ createTime: CreateTime; /** * The last updated date and time for a backend environment that is part of an Amplify app. */ updateTime: UpdateTime; } export type BackendEnvironmentArn = string; export type BackendEnvironments = BackendEnvironment[]; export type BasicAuthCredentials = string; export interface Branch { /** * The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. */ branchArn: BranchArn; /** * The name for the branch that is part of an Amplify app. */ branchName: BranchName; /** * The description for the branch that is part of an Amplify app. */ description: Description; /** * The tag for the branch of an Amplify app. */ tags?: TagMap; /** * The current stage for the branch that is part of an Amplify app. */ stage: Stage; /** * The display name for the branch. This is used as the default domain prefix. */ displayName: DisplayName; /** * Enables notifications for a branch that is part of an Amplify app. */ enableNotification: EnableNotification; /** * The creation date and time for a branch that is part of an Amplify app. */ createTime: CreateTime; /** * The last updated date and time for a branch that is part of an Amplify app. */ updateTime: UpdateTime; /** * The environment variables specific to a branch of an Amplify app. */ environmentVariables: EnvironmentVariables; /** * Enables auto-building on push for a branch of an Amplify app. */ enableAutoBuild: EnableAutoBuild; /** * The custom domains for a branch of an Amplify app. */ customDomains: CustomDomains; /** * The framework for a branch of an Amplify app. */ framework: Framework; /** * The ID of the active job for a branch of an Amplify app. */ activeJobId: ActiveJobId; /** * The total number of jobs that are part of an Amplify app. */ totalNumberOfJobs: TotalNumberOfJobs; /** * Enables basic authorization for a branch of an Amplify app. */ enableBasicAuth: EnableBasicAuth; /** * Enables performance mode for the branch. Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. */ enablePerformanceMode?: EnablePerformanceMode; /** * The thumbnail URL for the branch of an Amplify app. */ thumbnailUrl?: ThumbnailUrl; /** * The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password. */ basicAuthCredentials?: BasicAuthCredentials; /** * The build specification (build spec) content for the branch of an Amplify app. */ buildSpec?: BuildSpec; /** * The content Time to Live (TTL) for the website in seconds. */ ttl: TTL; /** * A list of custom resources that are linked to this branch. */ associatedResources?: AssociatedResources; /** * Enables pull request previews for the branch. */ enablePullRequestPreview: EnablePullRequestPreview; /** * The Amplify environment name for the pull request. */ pullRequestEnvironmentName?: PullRequestEnvironmentName; /** * The destination branch if the branch is a pull request branch. */ destinationBranch?: BranchName; /** * The source branch if the branch is a pull request branch. */ sourceBranch?: BranchName; /** * The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. This property is available to Amplify Gen 1 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ backendEnvironmentArn?: BackendEnvironmentArn; backend?: Backend; } export type BranchArn = string; export type BranchName = string; export type Branches = Branch[]; export type BuildSpec = string; export interface CacheConfig { /** * The type of cache configuration to use for an Amplify app. The AMPLIFY_MANAGED cache configuration automatically applies an optimized cache configuration for your app based on its platform, routing rules, and rewrite rules. This is the default setting. The AMPLIFY_MANAGED_NO_COOKIES cache configuration type is the same as AMPLIFY_MANAGED, except that it excludes all cookies from the cache key. */ type: CacheConfigType; } export type CacheConfigType = "AMPLIFY_MANAGED"|"AMPLIFY_MANAGED_NO_COOKIES"|string; export interface Certificate { /** * The type of SSL/TLS certificate that you want to use. Specify AMPLIFY_MANAGED to use the default certificate that Amplify provisions for you. Specify CUSTOM to use your own certificate that you have already added to Certificate Manager in your Amazon Web Services account. Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into Certificate Manager in the ACM User guide. */ type: CertificateType; /** * The Amazon resource name (ARN) for a custom certificate that you have already added to Certificate Manager in your Amazon Web Services account. This field is required only when the certificate type is CUSTOM. */ customCertificateArn?: CertificateArn; /** * The DNS record for certificate verification. */ certificateVerificationDNSRecord?: CertificateVerificationDNSRecord; } export type CertificateArn = string; export interface CertificateSettings { /** * The certificate type. Specify AMPLIFY_MANAGED to use the default certificate that Amplify provisions for you. Specify CUSTOM to use your own certificate that you have already added to Certificate Manager in your Amazon Web Services account. Make sure you request (or import) the certificate in the US East (N. Virginia) Region (us-east-1). For more information about using ACM, see Importing certificates into Certificate Manager in the ACM User guide. */ type: CertificateType; /** * The Amazon resource name (ARN) for the custom certificate that you have already added to Certificate Manager in your Amazon Web Services account. This field is required only when the certificate type is CUSTOM. */ customCertificateArn?: CertificateArn; } export type CertificateType = "AMPLIFY_MANAGED"|"CUSTOM"|string; export type CertificateVerificationDNSRecord = string; export type CommitId = string; export type CommitMessage = string; export type CommitTime = Date; export type Condition = string; export type Context = string; export interface CreateAppRequest { /** * The name of the Amplify app. */ name: Name; /** * The description of the Amplify app. */ description?: Description; /** * The Git repository for the Amplify app. */ repository?: Repository; /** * The platform for the Amplify app. For a static app, set the platform type to WEB. For a dynamic server-side rendered (SSR) app, set the platform type to WEB_COMPUTE. For an app requiring Amplify Hosting's original SSR support only, set the platform type to WEB_DYNAMIC. */ platform?: Platform; /** * The AWS Identity and Access Management (IAM) service role for an Amplify app. */ iamServiceRoleArn?: ServiceRoleArn; /** * The OAuth token for a third-party source control system for an Amplify app. The OAuth token is used to create a webhook and a read-only deploy key using SSH cloning. The OAuth token is not stored. Use oauthToken for repository providers other than GitHub, such as Bitbucket or CodeCommit. To authorize access to GitHub as your repository provider, use accessToken. You must specify either oauthToken or accessToken when you create a new app. Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide . */ oauthToken?: OauthToken; /** * The personal access token for a GitHub repository for an Amplify app. The personal access token is used to authorize access to a GitHub repository using the Amplify GitHub App. The token is not stored. Use accessToken for GitHub repositories only. To authorize access to a repository provider such as Bitbucket or CodeCommit, use oauthToken. You must specify either accessToken or oauthToken when you create a new app. Existing Amplify apps deployed from a GitHub repository using OAuth continue to work with CI/CD. However, we strongly recommend that you migrate these apps to use the GitHub App. For more information, see Migrating an existing OAuth app to the Amplify GitHub App in the Amplify User Guide . */ accessToken?: AccessToken; /** * The environment variables map for an Amplify app. For a list of the environment variables that are accessible to Amplify by default, see Amplify Environment variables in the Amplify Hosting User Guide. */ environmentVariables?: EnvironmentVariables; /** * Enables the auto building of branches for an Amplify app. */ enableBranchAutoBuild?: EnableBranchAutoBuild; /** * Automatically disconnects a branch in the Amplify console when you delete a branch from your Git repository. */ enableBranchAutoDeletion?: EnableBranchAutoDeletion; /** * Enables basic authorization for an Amplify app. This will apply to all branches that are part of this app. */ enableBasicAuth?: EnableBasicAuth; /** * The credentials for basic authorization for an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password. */ basicAuthCredentials?: BasicAuthCredentials; /** * The custom rewrite and redirect rules for an Amplify app. */ customRules?: CustomRules; /** * The tag for an Amplify app. */ tags?: TagMap; /** * The build specification (build spec) for an Amplify app. */ buildSpec?: BuildSpec; /** * The custom HTTP headers for an Amplify app. */ customHeaders?: CustomHeaders; /** * Enables automated branch creation for an Amplify app. */ enableAutoBranchCreation?: EnableAutoBranchCreation; /** * The automated branch creation glob patterns for an Amplify app. */ autoBranchCreationPatterns?: AutoBranchCreationPatterns; /** * The automated branch creation configuration for an Amplify app. */ autoBranchCreationConfig?: AutoBranchCreationConfig; /** * The cache configuration for the Amplify app. */ cacheConfig?: CacheConfig; } export interface CreateAppResult { app: App; } export interface CreateBackendEnvironmentRequest { /** * The unique ID for an Amplify app. */ appId: AppId; /** * The name for the backend environment. */ environmentName: EnvironmentName; /** * The AWS CloudFormation stack name of a backend environment. */ stackName?: StackName; /** * The name of deployment artifacts. */ deploymentArtifacts?: DeploymentArtifacts; } export interface CreateBackendEnvironmentResult { /** * Describes the backend environment for an Amplify app. */ backendEnvironment: BackendEnvironment; } export interface CreateBranchRequest { /** * The unique ID for an Amplify app. */ appId: AppId; /** * The name for the branch. */ branchName: BranchName; /** * The description for the branch. */ description?: Description; /** * Describes the current stage for the branch. */ stage?: Stage; /** * The framework for the branch. */ framework?: Framework; /** * Enables notifications for the branch. */ enableNotification?: EnableNotification; /** * Enables auto building for the branch. */ enableAutoBuild?: EnableAutoBuild; /** * The environment variables for the branch. */ environmentVariables?: EnvironmentVariables; /** * The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format user:password. */ basicAuthCredentials?: BasicAuthCredentials; /** * Enables basic authorization for the branch. */ enableBasicAuth?: EnableBasicAuth; /** * Enables performance mode for the branch. Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out. */ enablePerformanceMode?: EnablePerformanceMode; /** * The tag for the branch. */ tags?: TagMap; /** * The build specification (build spec) for the branch. */ buildSpec?: BuildSpec; /** * The content Time To Live (TTL) for the website in seconds. */ ttl?: TTL; /** * The display name for a branch. This is used as the default domain prefix. */ displayName?: DisplayName; /** * Enables pull request previews for this branch. */ enablePullRequestPreview?: EnablePullRequestPreview; /** * The Amplify environment name for the pull request. */ pullRequestEnvironmentName?: PullRequestEnvironmentName; /** * The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app. This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the Amplify command line interface (CLI). */ backendEnvironmentArn?: BackendEnvironmentArn; /** * The backend for a Branch of an Amplify app. Use for a backend created from an CloudFormation stack. This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code. */ backend?: Backend; } export interface CreateBranchResult { /** * Describes the branch for an Amplify app, which maps to a third-party repository branch. */ branch: Branch; } export interface CreateDeploymentRequest { /** * The unique ID for an Amplify app. */ appId: AppId; /** * The name of the branch to use for the job. */ branchName: BranchName; /** * An optional file map that contains the file name as the key and the file content md5 hash as the value. If this argument is provided, the service will generate a unique upload URL per file. Otherwise, the service will only generate a single upload URL for the zipped files. */ fileMap?: FileMap; } export interface CreateDeploymentResult { /** * The job ID for this deployment. will supply to start deployment api. */ jobId?: JobId; /** * When the fileMap argument is provided in the request, fileUploadUrls will contain a map of file names to upload URLs. */ fileUploadUrls: FileUploadUrls; /** * When the fileMap argument is not provided in the request, this zipUploadUrl is returned. */ zipUploadUrl: UploadUrl; } export interface CreateDomainAssociationRequest { /** * The unique ID for an Amplify app. */ appId: AppId; /** * The domain name for the domain association. */ domainName: DomainName; /** * Enables the automated creation of subdomains for branches. */ enableAutoSubDomain?: EnableAutoSubDomain; /** * The setting for the subdomain. */ subDomainSettings: SubDomainSettings; /** * Sets the branch patterns for automatic subdomain creation. */ autoSubDomainCreationPatterns?: AutoSubDomainCreationPatterns; /** * The required AWS Identity and Access Management (IAM) service role for the Amazon Resource Name (ARN) for automatically creating subdomains. */ autoSubDomainIAMRole?: AutoSubDomainIAMRole; /** * The type of SSL/TLS certificate to use for your custom domain. If you don't specify a certificate type, Amplify uses the default certificate that it provisions and manages for you. */ certificateSettings?: CertificateSettings; } export interface CreateDomainAssociationResult { /** * Describes the structure of a domain association, which associates a custom domain with an Amplify app. */ domainAssociation: DomainAssociation; } export type CreateTime = Date; export interface CreateWebhookRequest { /** * The unique ID for an Amplify app. */ appId: AppId; /** * The name for a branch that is part of an Amplify app. */ branchName: BranchName; /** * The description for a webhook. */ description?: Description; } export interface CreateWebhookResult { /** * Describes a webhook that connects repository events to an Amplify app. */ webhook: Webhook; } export type CustomDomain = string; export type CustomDomains = CustomDomain[]; export type CustomHeaders = string; export interface CustomRule { /** * The source pattern for a URL rewrite or redirect rule. */ source: Source; /** * The target pattern for a URL rewrite or redirect rule. */ target: Target; /** * The status code for a URL rewrite or redirect rule. 200 Represents a 200 rewrite rule. 301 Represents a 301 (moved permanently) redirect rule. This and all future requests should be directed to the target URL. 302 Represents a 302 temporary redirect rule. 404 Represents a 404 redirect rule. 404-200 Represents a 404 rewrite rule. */ status?: Status; /** * The condition for a URL rewrite or redirect rule, such as a country code. */ condition?: Condition; } export type CustomRules = CustomRule[]; export type DNSRecord = string; export type DefaultDomain = string; export interface DeleteAppRequest { /** * The unique ID for an Amplify app. */ appId: AppId; } export interface DeleteAppResult { app: App; } export interface DeleteBackendEnvironmentRequest { /** * The unique ID of an Amplify app. */ appId: AppId; /** * The name of a backend environment of an Amplify app. */ environmentName: EnvironmentName; } export interface DeleteBackendEnvironmentResult { /** * Describes the backend environment for an Amplify app. */ backendEnvironment: BackendEnvironment; } export interface DeleteBranchRequest { /** * The unique ID for an Amplify app. */ appId: AppId; /** * The name of the branch. */ branchName: BranchName; } export interface DeleteBranchResult { /** * The branch for an Amplify app, which maps to a third-party repository branch. */ branch: Branch; } export interface DeleteDomainAssociationRequest { /** * The unique id for an Amplify app. */ appId: AppId; /** * The name of the domain. */ domainName: DomainName; } export interface DeleteDomainAssociationResult { domainAssociation: DomainAssociation; } export interface DeleteJobRequest { /** * The unique ID for an Amplify app. */ appId: AppId; /** * The name of the branch to use for the job. */ branchName: BranchName; /** * The unique ID for the job. */ jobId: JobId; } export interface DeleteJobResult { jobSummary: JobSummary; } export interface DeleteWebhookRequest { /** * The unique ID for a webhook. */ webhookId: WebhookId; } export interface DeleteWebhookResult { /** * Describes a webhook that connects repository events to an Amplify app. */ webhook: Webhook; } export type DeploymentArtifacts = string; ex