|
2 | 2 | // SPDX-License-Identifier: Apache-2.0
|
3 | 3 |
|
4 | 4 |
|
5 |
| -import { Context, TrackedConstruct, TrackedConstructProps } from "../../../utils"; |
6 |
| -import { DsfProvider } from '../../../utils/lib/dsf-provider'; |
7 |
| -import { QuickSightSubscriptionProps, QuickSightAuthenticationMethod } from './quicksight-subscription-props'; |
8 |
| -import { Construct } from 'constructs'; |
9 | 5 | import { CustomResource, Duration, RemovalPolicy } from 'aws-cdk-lib';
|
10 |
| -import { IRole, PolicyDocument, Role , ServicePrincipal, PolicyStatement, Effect } from 'aws-cdk-lib/aws-iam'; |
11 |
| -import { ILogGroup } from 'aws-cdk-lib/aws-logs'; |
| 6 | +import { IRole, PolicyDocument, Role, ServicePrincipal, PolicyStatement, Effect } from 'aws-cdk-lib/aws-iam'; |
12 | 7 | import { IFunction } from 'aws-cdk-lib/aws-lambda';
|
13 |
| - |
| 8 | +import { ILogGroup } from 'aws-cdk-lib/aws-logs'; |
| 9 | +import { Construct } from 'constructs'; |
| 10 | +import { QuickSightSubscriptionProps, QuickSightAuthenticationMethod } from './quicksight-subscription-props'; |
| 11 | +import { Context, TrackedConstruct, TrackedConstructProps } from '../../../utils'; |
| 12 | +import { DsfProvider } from '../../../utils/lib/dsf-provider'; |
14 | 13 |
|
15 | 14 |
|
16 | 15 | /**
|
@@ -115,7 +114,7 @@ export class QuickSightSubscription extends TrackedConstruct {
|
115 | 114 | this.adminGroup = props.adminGroup;
|
116 | 115 | this.authorGroup = props.authorGroup;
|
117 | 116 | this.readerGroup = props.readerGroup;
|
118 |
| - this.identityRegion = props.identityRegion; |
| 117 | + this.identityRegion = props.identityRegion; |
119 | 118 |
|
120 | 119 | this.policyActions = [
|
121 | 120 | 'quicksight:Subscribe',
|
@@ -154,7 +153,7 @@ export class QuickSightSubscription extends TrackedConstruct {
|
154 | 153 | }
|
155 | 154 |
|
156 | 155 | this.executionRole = new Role(this, 'Role', {
|
157 |
| - assumedBy: new ServicePrincipal('lambda.amazonaws.com'), |
| 156 | + assumedBy: new ServicePrincipal('lambda.amazonaws.com'), |
158 | 157 | inlinePolicies: {
|
159 | 158 | QuickSightSubscription: new PolicyDocument({
|
160 | 159 | statements: [
|
@@ -197,7 +196,7 @@ export class QuickSightSubscription extends TrackedConstruct {
|
197 | 196 | EDITION: props.edition,
|
198 | 197 | IDENTITY_REGION: props.identityRegion,
|
199 | 198 | },
|
200 |
| - }, |
| 199 | + }, |
201 | 200 | queryInterval: Duration.seconds(10),
|
202 | 201 | removalPolicy: this.removalPolicy,
|
203 | 202 | });
|
|
0 commit comments