Skip to content

Commit 8946442

Browse files
committed
fix: getXxx method to findXxx
1 parent 0764b4a commit 8946442

6 files changed

+8
-8
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export enum CodeConnectionsHostProviderType {
1414
}
1515

1616
export enum ResponseField {
17-
HostArn = 'HostArn',
17+
HOST_ARN = 'HostArn',
1818
}
1919

2020
export interface CodeConnectionsHostCustomResourceProps {
@@ -94,8 +94,8 @@ export class CodeConnectionsHostCustomResource extends cr.AwsCustomResource {
9494
});
9595
}
9696

97-
getHostArn(): string {
98-
return this.getResponseField(ResponseField.HostArn);
97+
findHostArn(): string {
98+
return this.getResponseField(ResponseField.HOST_ARN);
9999
}
100100

101101
}

test/custom-resource.bitbucket.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('CustomResource Testing', () => {
2020
providerType: CodeConnectionsHostProviderType.BIT_BUCKET,
2121
});
2222

23-
const hostArn = bitbucketConnectionHostCustomResource.getHostArn();
23+
const hostArn = bitbucketConnectionHostCustomResource.findHostArn();
2424

2525
new codeconnections.CfnConnection(stack, 'Connection', {
2626
connectionName: 'example-bitbucket-connection',

test/custom-resource.github-enterprise.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('CustomResource Testing', () => {
2020
providerType: CodeConnectionsHostProviderType.GIT_HUB_ENTERPRISE_SERVER,
2121
});
2222

23-
const hostArn = gitHubEnterpriseConnectionHostCustomResource.getHostArn();
23+
const hostArn = gitHubEnterpriseConnectionHostCustomResource.findHostArn();
2424

2525
new codeconnections.CfnConnection(stack, 'Connection', {
2626
connectionName: 'example-github-enterprise-connection',

test/custom-resource.github.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('CustomResource Testing', () => {
2020
providerType: CodeConnectionsHostProviderType.GIT_HUB,
2121
});
2222

23-
const hostArn = gitHubConnectionHostCustomResource.getHostArn();
23+
const hostArn = gitHubConnectionHostCustomResource.findHostArn();
2424

2525
new codeconnections.CfnConnection(stack, 'Connection', {
2626
connectionName: 'example-github-connection',

test/custom-resource.gitlab-self-managed.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('CustomResource Testing', () => {
2020
providerType: CodeConnectionsHostProviderType.GIT_LAB_SELF_MANAGED,
2121
});
2222

23-
const hostArn = gitLabSelfManagedConnectionHostCustomResource.getHostArn();
23+
const hostArn = gitLabSelfManagedConnectionHostCustomResource.findHostArn();
2424

2525
new codeconnections.CfnConnection(stack, 'Connection', {
2626
connectionName: 'example-gitlab-self-managed-connection',

test/custom-resource.gitlab.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('CustomResource Testing', () => {
2020
providerType: CodeConnectionsHostProviderType.GIT_LAB,
2121
});
2222

23-
const hostArn = gitLabConnectionHostCustomResource.getHostArn();
23+
const hostArn = gitLabConnectionHostCustomResource.findHostArn();
2424

2525
new codeconnections.CfnConnection(stack, 'Connection', {
2626
connectionName: 'example-gitlab-connection',

0 commit comments

Comments
 (0)