Skip to content

Commit 4772746

Browse files
committed
fix: remove export ResourceNamingOptions
1 parent a1ed383 commit 4772746

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

.projen/deps.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const project = new awscdk.AwsCdkConstructLibrary({
1010
projenrcTs: true,
1111
repositoryUrl: 'https://github.com/gammarers/aws-codeconnections-host-custom-resource.git',
1212
deps: [
13-
'@gammarers/aws-resource-naming@^0.8.0',
13+
'@gammarers/aws-resource-naming@^0.10.1',
1414
],
1515
peerDeps: [
16-
'@gammarers/aws-resource-naming@^0.8.0',
16+
'@gammarers/aws-resource-naming@^0.10.1',
1717
],
1818
releaseToNpm: true,
1919
npmAccess: javascript.NpmAccess.PUBLIC,

package.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { ResourceAutoNaming, ResourceDefaultNaming, ResourceNaming, ResourceNamingOptions, ResourceNamingType } from '@gammarers/aws-resource-naming';
1+
import { ResourceAutoNaming, ResourceDefaultNaming, ResourceNaming, ResourceNamingType } from '@gammarers/aws-resource-naming';
22
import * as cdk from 'aws-cdk-lib';
33
import * as iam from 'aws-cdk-lib/aws-iam';
44
import * as cr from 'aws-cdk-lib/custom-resources';
55
import { Construct } from 'constructs';
66

7-
export { ResourceAutoNaming, ResourceDefaultNaming, ResourceNamingOptions, ResourceNamingType };
7+
export { ResourceAutoNaming, ResourceDefaultNaming, ResourceNamingType };
88

99
// Bitbucket | GitHub | GitHubEnterpriseServer | GitLab | GitLabSelfManaged
1010
export enum CodeConnectionsHostProviderType {
@@ -76,8 +76,6 @@ export interface CodeConnectionsHostCustomResourceProps {
7676
readonly name: string;
7777
readonly providerEndpoint: string;
7878
readonly providerType: CodeConnectionsHostProviderType;
79-
//readonly resouceNamingOption?: ResourceNamingOptions;
80-
// readonly resouceNamingOption?: { type: ResourceNaming.NamingType.DEFAULT } | { type: ResourceNaming.NamingType.AUTO } | CustomNaming;
8179
readonly resourceNamingOption?: ResourceNamingOption;
8280
}
8381

@@ -91,7 +89,7 @@ export class CodeConnectionsHostCustomResource extends cr.AwsCustomResource {
9189
functionName: `custom-resource-codeconnection-host-${random}-func`,
9290
functionRoleName: `custom-resource-codeconnection-host-${random}-func-exc-role`,
9391
};
94-
const names = ResourceNaming.naming(autoNaming, props.resourceNamingOption as ResourceNamingOptions);
92+
const names = ResourceNaming.naming(autoNaming, props.resourceNamingOption as ResourceNaming.ResourceNamingOption);
9593
// const naming = {
9694
// names: autoNaming,
9795
// };

yarn.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)