Skip to content

Commit ed899c5

Browse files
committed
Fix ESLint build issues
1 parent f3eb323 commit ed899c5

File tree

3 files changed

+435
-105
lines changed

3 files changed

+435
-105
lines changed

packages/aws-cdk-lib/aws-appsync/lib/source-api-association-merge.ts

+17-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import { randomUUID } from 'crypto';
22
import * as path from 'path';
3-
import { Construct } from 'constructs';
3+
import { Construct, IConstruct } from 'constructs';
44
import { ISourceApiAssociation } from './source-api-association';
55
import { PolicyStatement, Effect } from '../../aws-iam';
66
import { Runtime, Function } from '../../aws-lambda/lib';
77
import { NodejsFunction } from '../../aws-lambda-nodejs';
8-
import { CfnResource, CustomResource, Duration, Resource } from '../../core';
8+
import { CfnResource, CustomResource, Duration } from '../../core';
99
import { Provider } from '../../custom-resources/lib/provider-framework';
1010

11-
export interface ISourceApiAssociationMergeOperationProvider {
11+
/**
12+
* This interface for the provider of the custom resource that will be used to initiate a merge operation during Cloudformation update.
13+
*/
14+
export interface ISourceApiAssociationMergeOperationProvider extends IConstruct {
1215

1316
/**
1417
* Service token which is used for identifying the handler used for the merge operation custom resource.
@@ -23,7 +26,11 @@ export interface ISourceApiAssociationMergeOperationProvider {
2326
associateSourceApiAssociation(sourceApiAssociation: ISourceApiAssociation): void;
2427
}
2528

26-
export class SourceApiAssociationMergeOperationProvider extends Resource implements ISourceApiAssociationMergeOperationProvider {
29+
/**
30+
* SourceApiAssociationMergeProvider class is responsible for constructing the custom resource that will be used for initiating the
31+
* source API merge during a Cloudformation update.
32+
*/
33+
export class SourceApiAssociationMergeOperationProvider extends Construct implements ISourceApiAssociationMergeOperationProvider {
2734

2835
/**
2936
* Service token for the resource provider.
@@ -92,21 +99,24 @@ export interface SourceApiAssociationMergeOperationProps {
9299
readonly sourceApiAssociation: ISourceApiAssociation;
93100

94101
/**
95-
*
102+
* The merge operation provider construct which is responsible for configuring the Lambda resource that will be invoked during
103+
* Cloudformation update.
96104
*/
97105
readonly mergeOperationProvider: ISourceApiAssociationMergeOperationProvider;
98106

99107
/**
100108
* The version identifier for the schema merge operation. Any change to the version identifier will trigger a merge on the next
101109
* update. Use the version identifier property to control when the source API metadata is merged.
110+
*
111+
* @default null
102112
*/
103113
readonly versionIdentifier?: string;
104114

105115
/**
106116
* Flag indicating whether the source api should be merged on every CFN update or not.
107117
* If set to true and there are no changes to the source API, this will result in a no-op merge operation.
108118
*
109-
* @default - False
119+
* @default False
110120
*/
111121
readonly alwaysMergeOnStackUpdate?: boolean;
112122
}
@@ -148,7 +158,7 @@ type MergeResourceProperties = {
148158
* This can be used to propagate changes from the source API to the Merged API when the association is using type MANUAL_MERGE.
149159
* If the merge operation fails, it will fail the Cloudformation update and rollback the stack.
150160
*/
151-
export class SourceApiAssociationMergeOperation extends Resource {
161+
export class SourceApiAssociationMergeOperation extends Construct {
152162

153163
constructor(scope: Construct, id: string, props: SourceApiAssociationMergeOperationProps) {
154164
super(scope, id);

packages/aws-cdk-lib/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"@aws-cdk/spec2cdk": "0.0.0",
147147
"@aws-sdk/client-acm": "^3.414.0",
148148
"@aws-sdk/client-account": "^3.414.0",
149-
"@aws-sdk/client-appsync": "^3.405.0",
149+
"@aws-sdk/client-appsync": "^3.414.0",
150150
"@aws-sdk/client-codepipeline": "^3.414.0",
151151
"@aws-sdk/client-cloudwatch-logs": "^3.414.0",
152152
"@aws-sdk/client-dynamodb": "^3.415.0",

0 commit comments

Comments
 (0)