@aws-amplify/deployed-backend-client
Advanced tools
Comparing version 0.2.0-alpha.0 to 0.2.0-alpha.1
@@ -1,5 +0,5 @@ | ||
import { UniqueBackendIdentifier } from '@aws-amplify/plugin-types'; | ||
import { StackIdentifier } from './stack-name-resolvers/passthrough_main_stack_name_resolver.js'; | ||
import { AppNameAndBranchBackendIdentifier } from './stack-name-resolvers/app_name_and_branch_main_stack_name_resolver.js'; | ||
import { UniqueBackendIdentifier } from '@aws-amplify/plugin-types'; | ||
export type BackendIdentifier = UniqueBackendIdentifier | StackIdentifier | AppNameAndBranchBackendIdentifier; | ||
//# sourceMappingURL=backend_identifier.d.ts.map |
export {}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2VuZF9pZGVudGlmaWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2JhY2tlbmRfaWRlbnRpZmllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVW5pcXVlQmFja2VuZElkZW50aWZpZXIgfSBmcm9tICdAYXdzLWFtcGxpZnkvcGx1Z2luLXR5cGVzJztcbmltcG9ydCB7IFN0YWNrSWRlbnRpZmllciB9IGZyb20gJy4vc3RhY2stbmFtZS1yZXNvbHZlcnMvcGFzc3Rocm91Z2hfbWFpbl9zdGFja19uYW1lX3Jlc29sdmVyLmpzJztcbmltcG9ydCB7IEFwcE5hbWVBbmRCcmFuY2hCYWNrZW5kSWRlbnRpZmllciB9IGZyb20gJy4vc3RhY2stbmFtZS1yZXNvbHZlcnMvYXBwX25hbWVfYW5kX2JyYW5jaF9tYWluX3N0YWNrX25hbWVfcmVzb2x2ZXIuanMnO1xuZXhwb3J0IHR5cGUgQmFja2VuZElkZW50aWZpZXIgPVxuICB8IFVuaXF1ZUJhY2tlbmRJZGVudGlmaWVyXG4gIHwgU3RhY2tJZGVudGlmaWVyXG4gIHwgQXBwTmFtZUFuZEJyYW5jaEJhY2tlbmRJZGVudGlmaWVyO1xuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2VuZF9pZGVudGlmaWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2JhY2tlbmRfaWRlbnRpZmllci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU3RhY2tJZGVudGlmaWVyIH0gZnJvbSAnLi9zdGFjay1uYW1lLXJlc29sdmVycy9wYXNzdGhyb3VnaF9tYWluX3N0YWNrX25hbWVfcmVzb2x2ZXIuanMnO1xuaW1wb3J0IHsgQXBwTmFtZUFuZEJyYW5jaEJhY2tlbmRJZGVudGlmaWVyIH0gZnJvbSAnLi9zdGFjay1uYW1lLXJlc29sdmVycy9hcHBfbmFtZV9hbmRfYnJhbmNoX21haW5fc3RhY2tfbmFtZV9yZXNvbHZlci5qcyc7XG5pbXBvcnQgeyBVbmlxdWVCYWNrZW5kSWRlbnRpZmllciB9IGZyb20gJ0Bhd3MtYW1wbGlmeS9wbHVnaW4tdHlwZXMnO1xuZXhwb3J0IHR5cGUgQmFja2VuZElkZW50aWZpZXIgPVxuICB8IFVuaXF1ZUJhY2tlbmRJZGVudGlmaWVyXG4gIHwgU3RhY2tJZGVudGlmaWVyXG4gIHwgQXBwTmFtZUFuZEJyYW5jaEJhY2tlbmRJZGVudGlmaWVyO1xuIl19 |
import { AwsCredentialIdentityProvider } from '@aws-sdk/types'; | ||
import { BackendIdentifier } from './index.js'; | ||
import { BackendOutputClient } from './backend_output_client_factory.js'; | ||
/** | ||
* Simplifies the retrieval of all backend output values | ||
*/ | ||
export declare class BackendOutputClient { | ||
export declare class DefaultBackendOutputClient implements BackendOutputClient { | ||
private credentials; | ||
private backendIdentifier; | ||
/** | ||
* Instantiates a BackendOutputClient | ||
*/ | ||
constructor(credentials: AwsCredentialIdentityProvider, backendIdentifier: BackendIdentifier); | ||
getOutput: () => Promise<{ | ||
constructor(credentials: AwsCredentialIdentityProvider); | ||
getOutput: (backendIdentifier: BackendIdentifier) => Promise<{ | ||
"AWS::Amplify::Platform"?: { | ||
version: "1"; | ||
payload: { | ||
deploymentType: string; | ||
}; | ||
} | undefined; | ||
"AWS::Amplify::Auth"?: { | ||
@@ -15,0 +21,0 @@ version: "1"; |
@@ -8,14 +8,12 @@ import { unifiedBackendOutputSchema } from '@aws-amplify/backend-output-schemas'; | ||
*/ | ||
export class BackendOutputClient { | ||
export class DefaultBackendOutputClient { | ||
credentials; | ||
backendIdentifier; | ||
/** | ||
* Instantiates a BackendOutputClient | ||
*/ | ||
constructor(credentials, backendIdentifier) { | ||
constructor(credentials) { | ||
this.credentials = credentials; | ||
this.backendIdentifier = backendIdentifier; | ||
} | ||
getOutput = async () => { | ||
const outputFetcher = new BackendOutputFetcherFactory(new CloudFormationClient({ credentials: this.credentials }), new AmplifyClient({ credentials: this.credentials })).getStrategy(this.backendIdentifier); | ||
getOutput = async (backendIdentifier) => { | ||
const outputFetcher = new BackendOutputFetcherFactory(new CloudFormationClient({ credentials: this.credentials }), new AmplifyClient({ credentials: this.credentials })).getStrategy(backendIdentifier); | ||
const output = await outputFetcher.fetchBackendOutput(); | ||
@@ -25,2 +23,2 @@ return unifiedBackendOutputSchema.parse(output); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2VuZF9vdXRwdXRfY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2JhY2tlbmRfb3V0cHV0X2NsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUNqRixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0seUJ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luc3RhbnRpYXRlcyBhIEJhY2tlbmRPdXRwdXRDbGllbnRcbiAgICovXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgY3JlZGVudGlhbHM6IEF3c0NyZWRlbnRpYWxJZGVudGl0eVByb3ZpZGVyKSB7fVxuICBnZXRPdXRwdXQgPSBhc3luYyAoYmFja2VuZElkZW50aWZpZXI6IEJhY2tlbmRJZGVudGlmaWVyKSA9PiB7XG4gICAgY29uc3Qgb3V0cHV0RmV0Y2hlciA9IG5ldyBCYWNrZW5kT3V0cHV0RmV0Y2hlckZhY3RvcnkoXG4gICAgICBuZXcgQ2xvdWRGb3JtYXRpb25DbGllbnQoeyBjcmVkZW50aWFsczogdGhpcy5jcmVkZW50aWFscyB9KSxcbiAgICAgIG5ldyBBbXBsaWZ5Q2xpZW50KHsgY3JlZGVudGlhbHM6IHRoaXMuY3JlZGVudGlhbHMgfSlcbiAgICApLmdldFN0cmF0ZWd5KGJhY2tlbmRJZGVudGlmaWVyKTtcbiAgICBjb25zdCBvdXRwdXQgPSBhd2FpdCBvdXRwdXRGZXRjaGVyLmZldGNoQmFja2VuZE91dHB1dCgpO1xuICAgIHJldHVybiB1bmlmaWVkQmFja2VuZE91dHB1dFNjaGVtYS5wYXJzZShvdXRwdXQpO1xuICB9O1xufVxuIl19 |
@@ -1,2 +0,1 @@ | ||
import { UniqueBackendIdentifier } from '@aws-amplify/plugin-types'; | ||
import { AmplifyClient } from '@aws-sdk/client-amplify'; | ||
@@ -8,2 +7,3 @@ import { CloudFormationClient } from '@aws-sdk/client-cloudformation'; | ||
import { StackMetadataBackendOutputRetrievalStrategy } from './stack_metadata_output_retrieval_strategy.js'; | ||
import { UniqueBackendIdentifier } from '@aws-amplify/plugin-types'; | ||
/** | ||
@@ -10,0 +10,0 @@ * Asserts that a BackendIdentifier is a UniqueBackendIdentifier |
@@ -9,3 +9,3 @@ import { AppNameAndBranchMainStackNameResolver, } from './stack-name-resolvers/app_name_and_branch_main_stack_name_resolver.js'; | ||
export const isUniqueBackendIdentifier = (backendIdentifier) => { | ||
return 'backendId' in backendIdentifier && 'branchName' in backendIdentifier; | ||
return ('backendId' in backendIdentifier && 'disambiguator' in backendIdentifier); | ||
}; | ||
@@ -47,2 +47,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2VuZF9vdXRwdXRfZmV0Y2hlcl9mYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2JhY2tlbmRfb3V0cHV0X2ZldGNoZXJfZmFjdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEVBRUwscUNBQXFDLEdBQ3RDLE1BQU0sd0VBQXdFLENBQUM7QUFDaEYsT0FBTyxFQUNMLGdDQUFnQyxHQUVqQyxNQUFNLGdFQUFnRSxDQUFDO0FBQ3hFLE9BQU8sRUFBRSw0Q0FBNEMsRUFBRSxNQUFNLGlGQUFpRixDQUFDO0FBQy9JLE9BQU8sRUFBRSwyQ0FBMkMsRUFBRSxNQUFNLCtDQUErQyxDQUFDO0FBRTVHOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0seUJBQXlCLEdBQUcsQ0FDdkMsaUJBQW9DLEVBQ1UsRUFBRTtJQUNoRCxPQUFPLFdBQVcsSUFBSSxpQkFBaUIsSUFBSSxZQUFZLElBQUksaUJBQWlCLENBQUM7QUFDL0UsQ0FBQyxDQUFDO0FBQ0Y7O0dBRUc7QUFDSCxNQUFNLENBQUMsTUFBTSw0QkFBNEIsR0FBRyxDQUMxQyxpQkFBb0MsRUFDb0IsRUFBRTtJQUMxRCxPQUFPLFNBQVMsSUFBSSxpQkFBaUIsQ0FBQztBQUN4QyxDQUFDLENBQUM7QUFDRjs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLGlCQUFpQixHQUFHLENBQy9CLGlCQUFvQyxFQUNFLEVBQUU7SUFDeEM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b2x2ZXIoXG4gICAgICAgIHRoaXMuYW1wbGlmeUNsaWVudCxcbiAgICAgICAgYmFja2VuZElkZW50aWZpZXJcbiAgICAgIClcbiAgICApO1xuICB9O1xufVxuIl19 |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export const getMainStackName = (uniqueDeploymentIdentifier) => `amplify-${uniqueDeploymentIdentifier.backendId}-${uniqueDeploymentIdentifier.branchName}`; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0X21haW5fc3RhY2tfbmFtZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9nZXRfbWFpbl9zdGFja19uYW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBOzs7Ozs7O0dBT0c7QUFDSCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRyxDQUM5QiwwQkFBbUQsRUFDM0MsRUFBRSxDQUNWLFdBQVcsMEJBQTBCLENBQUMsU0FBUyxJQUFJLDBCQUEwQixDQUFDLFVBQVUsRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgVW5pcXVlQmFja2VuZElkZW50aWZpZXIgfSBmcm9tICdAYXdzLWFtcGxpZnkvcGx1Z2luLXR5cGVzJztcblxuLyoqXG4gKiBHZW5lcmF0ZXMgYW4gU1NNIHBhcmFtZXRlciBrZXkgdG8gaWRlbnRpZnkgdGhlIG1haW4gc3RhY2sgYXNzb2NpYXRlZCB3aXRoIHRoZSBnaXZlbiBwcm9qZWN0IGVudmlyb25tZW50LlxuICpcbiAqIFRoaXMga2V5IGlzIHNoYXJlZCBiZXR3ZWVuIHN0YWNrIGNyZWF0aW9uIGluIFxcQGF3cy1hbXBsaWZ5L2JhY2tlbmQgYW5kIHN0YWNrIGRpc2NvdmVyeSBkdXJpbmcgY2xpZW50IGNvbmZpZyBnZW5lcmF0aW9uLlxuICogSXQgaXMgdGhlIFwiYnJlYWRjcnVtYlwiIHRoYXQgZW5hYmxlcyBjbGllbnQgY29uZmlnIGdlbmVyYXRpb24gdG8gZGlzY292ZXIgdGhlIHN0YWNrIG91dHB1dHMgZm9yIGEgZ2l2ZW4gcHJvamVjdCBlbnZpcm9ubWVudC5cbiAqXG4gKiBZb3Ugc2hvdWxkIHByb2JhYmx5IG5vdCBjaGFuZ2UgdGhpcyBldmVyLiBJdCB3b3VsZCBjb25zdGl0dXRlIGEgaHVnZSBicmVha2luZyBjaGFuZ2UgdG8gaG93IHN0YWNrcyBhcmUgZGlzY292ZXJlZCBsYXRlci5cbiAqL1xuZXhwb3J0IGNvbnN0IGdldE1haW5TdGFja05hbWUgPSAoXG4gIHVuaXF1ZURlcGxveW1lbnRJZGVudGlmaWVyOiBVbmlxdWVCYWNrZW5kSWRlbnRpZmllclxuKTogc3RyaW5nID0+XG4gIGBhbXBsaWZ5LSR7dW5pcXVlRGVwbG95bWVudElkZW50aWZpZXIuYmFja2VuZElkfS0ke3VuaXF1ZURlcGxveW1lbnRJZGVudGlmaWVyLmJyYW5jaE5hbWV9YDtcbiJdfQ== | ||
export const getMainStackName = (uniqueDeploymentIdentifier) => `amplify-${uniqueDeploymentIdentifier.backendId}-${uniqueDeploymentIdentifier.disambiguator}`; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0X21haW5fc3RhY2tfbmFtZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9nZXRfbWFpbl9zdGFja19uYW1lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBOzs7Ozs7O0dBT0c7QUFDSCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRyxDQUM5QiwwQkFBbUQsRUFDM0MsRUFBRSxDQUNWLFdBQVcsMEJBQTBCLENBQUMsU0FBUyxJQUFJLDBCQUEwQixDQUFDLGFBQWEsRUFBRSxDQUF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iJdfQ== |
export * from './backend_identifier.js'; | ||
export * from './backend_output_client.js'; | ||
export * from './backend_output_client_factory.js'; | ||
export * from './deployed_backend_client_factory.js'; | ||
export { AppNameAndBranchBackendIdentifier } from './stack-name-resolvers/app_name_and_branch_main_stack_name_resolver.js'; | ||
export { StackIdentifier } from './stack-name-resolvers/passthrough_main_stack_name_resolver.js'; | ||
//# sourceMappingURL=index.d.ts.map |
export * from './backend_identifier.js'; | ||
export * from './backend_output_client.js'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9iYWNrZW5kX2lkZW50aWZpZXIuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9iYWNrZW5kX291dHB1dF9jbGllbnQuanMnO1xuZXhwb3J0IHsgQXBwTmFtZUFuZEJyYW5jaEJhY2tlbmRJZGVudGlmaWVyIH0gZnJvbSAnLi9zdGFjay1uYW1lLXJlc29sdmVycy9hcHBfbmFtZV9hbmRfYnJhbmNoX21haW5fc3RhY2tfbmFtZV9yZXNvbHZlci5qcyc7XG5leHBvcnQgeyBTdGFja0lkZW50aWZpZXIgfSBmcm9tICcuL3N0YWNrLW5hbWUtcmVzb2x2ZXJzL3Bhc3N0aHJvdWdoX21haW5fc3RhY2tfbmFtZV9yZXNvbHZlci5qcyc7XG4iXX0= | ||
export * from './backend_output_client_factory.js'; | ||
export * from './deployed_backend_client_factory.js'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLG9DQUFvQyxDQUFDO0FBQ25ELGNBQWMsc0NBQXNDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2JhY2tlbmRfaWRlbnRpZmllci5qcyc7XG5leHBvcnQgKiBmcm9tICcuL2JhY2tlbmRfb3V0cHV0X2NsaWVudF9mYWN0b3J5LmpzJztcbmV4cG9ydCAqIGZyb20gJy4vZGVwbG95ZWRfYmFja2VuZF9jbGllbnRfZmFjdG9yeS5qcyc7XG5leHBvcnQgeyBBcHBOYW1lQW5kQnJhbmNoQmFja2VuZElkZW50aWZpZXIgfSBmcm9tICcuL3N0YWNrLW5hbWUtcmVzb2x2ZXJzL2FwcF9uYW1lX2FuZF9icmFuY2hfbWFpbl9zdGFja19uYW1lX3Jlc29sdmVyLmpzJztcbmV4cG9ydCB7IFN0YWNrSWRlbnRpZmllciB9IGZyb20gJy4vc3RhY2stbmFtZS1yZXNvbHZlcnMvcGFzc3Rocm91Z2hfbWFpbl9zdGFja19uYW1lX3Jlc29sdmVyLmpzJztcbiJdfQ== |
import { DescribeStacksCommand, GetTemplateSummaryCommand, } from '@aws-sdk/client-cloudformation'; | ||
import { backendOutputStackMetadataSchema } from '@aws-amplify/backend-output-schemas/platform'; | ||
import { BackendOutputClientError, BackendOutputClientErrorType, } from './index.js'; | ||
/** | ||
@@ -27,3 +28,3 @@ * Gets Amplify backend outputs from stack metadata and outputs | ||
if (typeof templateSummary.Metadata !== 'string') { | ||
throw new Error('Stack template metadata is not a string'); | ||
throw new BackendOutputClientError(BackendOutputClientErrorType.METADATA_RETRIEVAL_ERROR, 'Stack template metadata is not a string'); | ||
} | ||
@@ -37,3 +38,3 @@ const metadataObject = JSON.parse(templateSummary.Metadata); | ||
if (outputs === undefined) { | ||
throw new Error('Stack outputs are undefined'); | ||
throw new BackendOutputClientError(BackendOutputClientErrorType.METADATA_RETRIEVAL_ERROR, 'Stack outputs are undefined'); | ||
} | ||
@@ -54,3 +55,3 @@ // outputs is a list of output entries. here we turn that into a Record<name, value> object | ||
if (stackOutputRecord[outputName] === undefined) { | ||
throw new Error(`Output ${outputName} not found in stack`); | ||
throw new BackendOutputClientError(BackendOutputClientErrorType.METADATA_RETRIEVAL_ERROR, `Output ${outputName} not found in stack`); | ||
} | ||
@@ -70,2 +71,2 @@ return { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhY2tfbWV0YWRhdGFfb3V0cHV0X3JldHJpZXZhbF9zdHJhdGVneS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zdGFja19tZXRhZGF0YV9vdXRwdXRfcmV0cmlldmFsX3N0cmF0ZWd5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTCxxQkFBcUIsRUFDckIseUJBQXlCLEdBQzFCLE1BQU0sZ0NBQWdDLENBQUM7QUFNeEMsT0FBTyxFQUFFLGdDQUFnQyxFQUFFLE1BQU0sOENBQThDLENBQUM7QUFFaEc7O0dBRUc7QUFDSCxNQUFNLE9BQU8sMkNBQTJDO0lBT25DO0lBQ0E7SUFMbkI7O09BRUc7SUFDSCxZQUNtQixTQUErQixFQUMvQixpQkFBd0M7UUFEeEMsY0FBUyxHQUFULFNBQVMsQ0FBc0I7UUFDL0Isc0JBQWlCLEdBQWpCLGlCQUFpQixDQUF1QjtJQUN4RCxDQUFDO0lBRUo7Ozs7O09BS0c7SUFDSCxrQkFBa0IsR0FBRyxLQUFLLElBQTRCLEVBQUU7UUFDdEQsTUFBTSxTQUFTLEdBQUcsTUFBTSxJQUFJLENBQUMsaUJBQWlCLENBQUMsb0JBQW9CLEVBQUUsQ0FBQztRQUV0RSxnRUFBZ0U7UUFDaEUsTUFBTSxlQUFlLE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AgICAgICAgICB9O1xuICAgICAgICB9LFxuICAgICAgICB7fSBhcyBSZWNvcmQ8c3RyaW5nLCBzdHJpbmc+XG4gICAgICApO1xuICAgICAgcmVzdWx0W291dHB1dEtleU5hbWVdID0ge1xuICAgICAgICB2ZXJzaW9uOiBlbnRyeS52ZXJzaW9uLFxuICAgICAgICBwYXlsb2FkOiBvdXRwdXREYXRhLFxuICAgICAgfTtcbiAgICB9KTtcbiAgICByZXR1cm4gcmVzdWx0O1xuICB9O1xufVxuIl19 |
import { ListAppsCommand } from '@aws-sdk/client-amplify'; | ||
import { getMainStackName } from '../get_main_stack_name.js'; | ||
import { BranchBackendIdentifier } from '@aws-amplify/platform-core'; | ||
/** | ||
@@ -38,8 +39,5 @@ * Resolves stack names given an Amplify app name and branch | ||
} | ||
return getMainStackName({ | ||
backendId: appId, | ||
branchName: this.appNameAndBranch.branchName, | ||
}); | ||
return getMainStackName(new BranchBackendIdentifier(appId, this.appNameAndBranch.branchName)); | ||
}; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwX25hbWVfYW5kX2JyYW5jaF9tYWluX3N0YWNrX25hbWVfcmVzb2x2ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvc3RhY2stbmFtZS1yZXNvbHZlcnMvYXBwX25hbWVfYW5kX2JyYW5jaF9tYWluX3N0YWNrX25hbWVfcmVzb2x2ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFpQixlQUFlLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQVU3RDs7R0FFRztBQUNILE1BQU0sT0FBTyxxQ0FBcUM7SUFPN0I7SUFDQTtJQUxuQjs7T0FFRztJQUNILFlBQ21CLGFBQTRCLEVBQzVCLGdCQUFtR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LiBUcnkgdXNpbmcgQXBwSWQgaW5zdGVhZC5gXG4gICAgICApO1xuICAgIH1cblxuICAgIHJldHVybiBnZXRNYWluU3RhY2tOYW1lKFxuICAgICAgbmV3IEJyYW5jaEJhY2tlbmRJZGVudGlmaWVyKGFwcElkLCB0aGlzLmFwcE5hbWVBbmRCcmFuY2guYnJhbmNoTmFtZSlcbiAgICApO1xuICB9O1xufVxuIl19 |
{ | ||
"name": "@aws-amplify/deployed-backend-client", | ||
"version": "0.2.0-alpha.0", | ||
"version": "0.2.0-alpha.1", | ||
"type": "module", | ||
@@ -20,3 +20,4 @@ "publishConfig": { | ||
"dependencies": { | ||
"@aws-amplify/backend-output-schemas": "^0.2.0-alpha.3", | ||
"@aws-amplify/backend-output-schemas": "^0.2.0-alpha.4", | ||
"@aws-amplify/platform-core": "^0.1.1-alpha.0", | ||
"@aws-sdk/client-amplify": "^3.414.0", | ||
@@ -23,0 +24,0 @@ "@aws-sdk/client-cloudformation": "^3.414.0", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
89994
25
749
6
1
+ Added@aws-amplify/platform-core@0.1.4(transitive)
+ Added@aws-amplify/plugin-types@0.3.1(transitive)
+ Added@aws-cdk/asset-awscli-v1@2.2.210(transitive)
+ Added@aws-cdk/asset-kubectl-v20@2.1.3(transitive)
+ Added@aws-cdk/asset-node-proxy-agent-v6@2.1.0(transitive)
+ Added@aws-cdk/cloud-assembly-schema@38.0.1(transitive)
+ Addedaws-cdk-lib@2.166.0(transitive)
+ Addedconstructs@10.4.2(transitive)