-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aws-cloudformation): move AwsSdkCall inside custom resource provider
- Loading branch information
1 parent
6e60018
commit dcadcc0
Showing
4 changed files
with
63 additions
and
62 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
packages/@aws-cdk/aws-cloudformation/lib/aws-custom-resource-provider/aws-sdk-call.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* An AWS SDK call. | ||
*/ | ||
export interface AwsSdkCall { | ||
/** | ||
* The service to call | ||
* | ||
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/index.html | ||
*/ | ||
readonly service: string; | ||
|
||
/** | ||
* The service action to call | ||
* | ||
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/index.html | ||
*/ | ||
readonly action: string; | ||
|
||
/** | ||
* The parameters for the service action | ||
* | ||
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/index.html | ||
*/ | ||
readonly parameters?: any; | ||
|
||
/** | ||
* The path to the data in the API call response to use as the physical | ||
* resource id. Either `physicalResourceId` or `physicalResourceIdPath` | ||
* must be specified for onCreate or onUpdate calls. | ||
* | ||
* @default no path | ||
*/ | ||
readonly physicalResourceIdPath?: string; | ||
|
||
/** | ||
* The physical resource id of the custom resource for this call. Either | ||
* `physicalResourceId` or `physicalResourceIdPath` must be specified for | ||
* onCreate or onUpdate calls. | ||
* | ||
* @default no physical resource id | ||
*/ | ||
readonly physicalResourceId?: string; | ||
|
||
/** | ||
* The regex pattern to use to catch API errors. The `code` property of the | ||
* `Error` object will be tested against this pattern. If there is a match an | ||
* error will not be thrown. | ||
* | ||
* @default do not catch errors | ||
*/ | ||
readonly catchErrorPattern?: string; | ||
|
||
/** | ||
* API version to use for the service | ||
* | ||
* @see https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/locking-api-versions.html | ||
* @default use latest available API version | ||
*/ | ||
readonly apiVersion?: string; | ||
} |
2 changes: 1 addition & 1 deletion
2
packages/@aws-cdk/aws-cloudformation/lib/aws-custom-resource-provider/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export * from './cloud-formation-capabilities'; | ||
export * from './custom-resource'; | ||
export * from './aws-custom-resource'; | ||
export * from './aws-custom-resource-provider/aws-sdk-call'; | ||
|
||
// AWS::CloudFormation CloudFormation Resources: | ||
export * from './cloudformation.generated'; |