Skip to content

Commit

Permalink
resource should have at least one "fromXxx" static method or "fromXxx…
Browse files Browse the repository at this point in the history
…Attributes"
  • Loading branch information
WarFox committed Jun 13, 2024
1 parent 39e297f commit 147ba9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-iam/lib/oidc-provider-native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class OIDCProvider extends Resource implements IOIDCProvider {
* @param id ID of the construct
* @param oidcProviderArn the ARN to import
*/
public static fromProviderArn(
public static fromOidcProviderArn(
scope: Construct,
id: string,
oidcProviderArn: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ describe('OIDCProvider resource', () => {
});
});

test('static fromProviderArn can be used to import a provider', () => {
test('static fromOidcProviderArn can be used to import a provider', () => {
// GIVEN
const stack = new Stack();

// WHEN
const provider = iam.OIDCProvider.fromProviderArn(
const provider = iam.OIDCProvider.fromOidcProviderArn(
stack,
'MyProvider',
arnOfProvider,
Expand Down Expand Up @@ -84,7 +84,7 @@ describe('OIDC issuer', () => {
const stack = new Stack();

// WHEN
const provider = iam.OIDCProvider.fromProviderArn(
const provider = iam.OIDCProvider.fromOidcProviderArn(
stack,
'MyProvider',
arnOfProvider,
Expand All @@ -101,7 +101,7 @@ describe('OIDC issuer', () => {
const stack = new Stack();

// WHEN
const provider = iam.OIDCProvider.fromProviderArn(
const provider = iam.OIDCProvider.fromOidcProviderArn(
stack,
'MyProvider',
Token.asString({ Ref: 'ARN' }),
Expand Down

0 comments on commit 147ba9b

Please sign in to comment.