Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
awsluja committed Sep 18, 2024
1 parent 6d47e1b commit e99ba20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SecretResourceProps } from './lambda/backend_secret_fetcher_types.js';
*/
export const SECRET_RESOURCE_PROVIDER_ID = 'SecretFetcherResourceProvider';

class SecretFetcherCustomResource extends CustomResource {
class AmplifySecretFetcherCustomResource extends CustomResource {
private secrets: Set<string>;
constructor(
scope: Construct,
Expand Down Expand Up @@ -52,11 +52,11 @@ export class BackendSecretFetcherFactory {
scope: Construct,
secretName: string,
backendIdentifier: BackendIdentifier
): SecretFetcherCustomResource => {
): AmplifySecretFetcherCustomResource => {
const secretResourceId = `SecretFetcherResource`;
const existingResource = scope.node.tryFindChild(
secretResourceId
) as SecretFetcherCustomResource;
) as AmplifySecretFetcherCustomResource;

if (existingResource) {
existingResource.addSecret(secretName);
Expand Down Expand Up @@ -88,7 +88,7 @@ export class BackendSecretFetcherFactory {
}),
};

return new SecretFetcherCustomResource(
return new AmplifySecretFetcherCustomResource(
scope,
secretResourceId,
{
Expand Down

0 comments on commit e99ba20

Please sign in to comment.