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