|
1 |
| -import { CustomResource, Reference, Lazy, CfnResource, Stack, ArnFormat } from '@aws-cdk/core'; |
| 1 | +import { ArnFormat, CfnResource, CustomResource, Lazy, Reference, Stack } from '@aws-cdk/core'; |
2 | 2 | import { Construct, IConstruct } from 'constructs';
|
3 | 3 | import { EqualsAssertion } from './assertions';
|
4 |
| -import { ExpectedResult, ActualResult } from './common'; |
| 4 | +import { ActualResult, ExpectedResult } from './common'; |
5 | 5 | import { AssertionsProvider, SDK_RESOURCE_TYPE_PREFIX } from './providers';
|
6 | 6 |
|
7 | 7 | /**
|
@@ -113,7 +113,7 @@ export interface AwsApiCallOptions {
|
113 | 113 | /**
|
114 | 114 | * Options for creating an SDKQuery provider
|
115 | 115 | */
|
116 |
| -export interface AwsApiCallProps extends AwsApiCallOptions {} |
| 116 | +export interface AwsApiCallProps extends AwsApiCallOptions { } |
117 | 117 |
|
118 | 118 | /**
|
119 | 119 | * Construct that creates a custom resource that will perform
|
@@ -142,7 +142,7 @@ export class AwsApiCall extends Construct implements IAwsApiCall {
|
142 | 142 | flattenResponse: Lazy.string({ produce: () => this.flattenResponse }),
|
143 | 143 | salt: Date.now().toString(),
|
144 | 144 | },
|
145 |
| - resourceType: `${SDK_RESOURCE_TYPE_PREFIX}${this.name}`, |
| 145 | + resourceType: `${SDK_RESOURCE_TYPE_PREFIX}${this.name}`.substring(0, 60), |
146 | 146 | });
|
147 | 147 |
|
148 | 148 | // Needed so that all the policies set up by the provider should be available before the custom resource is provisioned.
|
|
0 commit comments