File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
packages/@aws-cdk/aws-apigateway/lib Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,8 @@ incompatible-argument:@aws-cdk/aws-ecs.TaskDefinition.addVolume
7
7
change-return-type:@aws-cdk/core.Fn.getAtt
8
8
new-argument:@aws-cdk/aws-iam.ManagedPolicy.<initializer>
9
9
new-argument:@aws-cdk/aws-iam.ManagedPolicy.<initializer>
10
+ removed:@aws-cdk/aws-apigateway.AwsIntegration.props
11
+ removed:@aws-cdk/aws-apigateway.HttpIntegration.props
12
+ removed:@aws-cdk/aws-apigateway.Integration.props
13
+ removed:@aws-cdk/aws-apigateway.LambdaIntegration.props
14
+ removed:@aws-cdk/aws-apigateway.MockIntegration.props
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export interface IntegrationOptions {
31
31
*
32
32
* @default A role is not assumed
33
33
*/
34
- readonly credentialsRole ?: iam . Role ;
34
+ readonly credentialsRole ?: iam . IRole ;
35
35
36
36
/**
37
37
* Requires that the caller's identity be passed through from the request.
@@ -139,7 +139,16 @@ export interface IntegrationProps {
139
139
* or implement on your own by specifying the set of props.
140
140
*/
141
141
export class Integration {
142
- constructor ( readonly props : IntegrationProps ) { }
142
+ constructor ( private readonly props : IntegrationProps ) { }
143
+
144
+ /**
145
+ * Allows `Method` to access the integration props.
146
+ *
147
+ * @internal
148
+ */
149
+ public get _props ( ) {
150
+ return this . props ;
151
+ }
143
152
144
153
/**
145
154
* Can be overridden by subclasses to allow the integration to interact with the method
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ export class Method extends Resource {
188
188
189
189
integration . bind ( this ) ;
190
190
191
- const options = integration . props . options || { } ;
191
+ const options = integration . _props . options || { } ;
192
192
193
193
let credentials ;
194
194
if ( options . credentialsPassthrough !== undefined && options . credentialsRole !== undefined ) {
@@ -212,12 +212,12 @@ export class Method extends Resource {
212
212
}
213
213
214
214
return {
215
- type : integration . props . type ,
216
- uri : integration . props . uri ,
215
+ type : integration . _props . type ,
216
+ uri : integration . _props . uri ,
217
217
cacheKeyParameters : options . cacheKeyParameters ,
218
218
cacheNamespace : options . cacheNamespace ,
219
219
contentHandling : options . contentHandling ,
220
- integrationHttpMethod : integration . props . integrationHttpMethod ,
220
+ integrationHttpMethod : integration . _props . integrationHttpMethod ,
221
221
requestParameters : options . requestParameters ,
222
222
requestTemplates : options . requestTemplates ,
223
223
passthroughBehavior : options . passthroughBehavior ,
You can’t perform that action at this time.
0 commit comments