@aws-amplify/cli-internal
Version:
Amplify CLI
36 lines • 2.59 kB
TypeScript
import { ResourceToImport } from '@aws-sdk/client-cloudformation';
import { ForwardCategoryRefactorer } from '../workflow/forward-category-refactorer';
import { RefactorBlueprint } from '../workflow/category-refactorer';
import { CFNResource, CFNTemplate } from '../../_common/cfn-template';
import { AmplifyMigrationOperation } from '../../_common/operation';
import { SocialAuthConfig, StackFacade } from '../stack-facade';
export declare const GEN1_NATIVE_APP_CLIENT_LOGICAL_ID = "UserPoolClient";
export declare const GEN1_WEB_CLIENT_LOGICAL_ID = "UserPoolClientWeb";
export declare const GEN2_NATIVE_APP_CLIENT_LOGICAL_ID = "UserPoolNativeAppClient";
export declare const GEN2_WEB_CLIENT_LOGICAL_ID = "UserPoolAppClient";
export declare const USER_POOL_CLIENT_TYPE = "AWS::Cognito::UserPoolClient";
export declare const USER_POOL_TYPE = "AWS::Cognito::UserPool";
export declare const IDENTITY_POOL_TYPE = "AWS::Cognito::IdentityPool";
export declare const IDENTITY_POOL_ROLE_ATTACHMENT_TYPE = "AWS::Cognito::IdentityPoolRoleAttachment";
export declare const USER_POOL_DOMAIN_TYPE = "AWS::Cognito::UserPoolDomain";
export declare const USER_POOL_IDENTITY_PROVIDER_TYPE = "AWS::Cognito::UserPoolIdentityProvider";
export declare const RESOURCE_TYPES: string[];
export declare function buildImportSpec(config: SocialAuthConfig, domainLogicalId: string, idpLogicalIds: Map<string, string>): {
resourcesToImport: ResourceToImport[];
templateAdditions: Record<string, CFNResource>;
};
export declare function extractSocialAuthLogicalIds(template: CFNTemplate): {
readonly domainLogicalId: string | undefined;
readonly idpLogicalIds: Map<string, string>;
};
export declare function renderImportTable(resourcesToImport: ResourceToImport[], gen2StackName: string): string;
export declare function renderOrphanTable(stackFacade: StackFacade, logicalIds: string[], template: CFNTemplate, stackName: string, variant: 'forward' | 'rollback'): Promise<string>;
export declare class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer {
protected resourceTypes(): string[];
protected beforeMove(blueprint: RefactorBlueprint): Promise<AmplifyMigrationOperation[]>;
protected move(blueprint: RefactorBlueprint): Promise<AmplifyMigrationOperation[]>;
protected gen2LogicalId(sourceId: string, sourceResource: CFNResource, targetResources: Map<string, CFNResource>): Promise<string>;
protected fetchSourceStackId(): Promise<string | undefined>;
protected fetchDestStackId(): Promise<string | undefined>;
}
//# sourceMappingURL=auth-cognito-forward.d.ts.map