@collaborne/custom-cloudformation-resources
Advanced tools
Comparing version 0.5.0 to 0.5.1
export declare const SUCCESS = "SUCCESS"; | ||
export declare const FAILED = "FAILED"; | ||
export declare type ResponseStatus = typeof SUCCESS | typeof FAILED; | ||
/** | ||
* See <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref-requests.html> | ||
*/ | ||
export interface CustomResourceRequest { | ||
/** | ||
* The service token used for actually invoking the handler | ||
* | ||
* Note: This field is not documented by AWS, but it is visible both in dumps and other blog posts/medium articles. | ||
*/ | ||
ServiceToken: string; | ||
RequestType: 'Create' | 'Update' | 'Delete'; | ||
ServiceToken: string; | ||
ResponseURL: string; | ||
@@ -8,0 +16,0 @@ StackId: string; |
@@ -11,4 +11,8 @@ import { CognitoIdentityServiceProvider } from 'aws-sdk'; | ||
}; | ||
UserPoolId: { | ||
type: "string"; | ||
comment: string; | ||
}; | ||
}; | ||
required: "UserPoolDomain"[]; | ||
required: string[]; | ||
}; | ||
@@ -15,0 +19,0 @@ declare type ResourceAttributes = Pick<CognitoIdentityServiceProvider.DomainDescriptionType, 'CloudFrontDistribution'>; |
@@ -12,4 +12,8 @@ "use strict"; | ||
}, | ||
UserPoolId: { | ||
type: 'string', | ||
comment: 'Required to ensure that the attributes get updated when the domain is moved between user pools', | ||
}, | ||
}, | ||
required: ['UserPoolDomain'], | ||
required: ['UserPoolDomain', 'UserPoolId'], | ||
}; | ||
@@ -16,0 +20,0 @@ class UserPoolDomainAttributes extends custom_resource_1.CustomResource { |
{ | ||
"name": "@collaborne/custom-cloudformation-resources", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Custom CloudFormation resources", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -13,5 +13,13 @@ // Based on the cfn-response sources published by AWS at | ||
/** | ||
* See <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref-requests.html> | ||
*/ | ||
export interface CustomResourceRequest { | ||
/** | ||
* The service token used for actually invoking the handler | ||
* | ||
* Note: This field is not documented by AWS, but it is visible both in dumps and other blog posts/medium articles. | ||
*/ | ||
ServiceToken: string; | ||
RequestType: 'Create' | 'Update' | 'Delete'; | ||
ServiceToken: string; | ||
ResponseURL: string; | ||
@@ -18,0 +26,0 @@ StackId: string; |
@@ -14,4 +14,9 @@ import { CognitoIdentityServiceProvider } from 'aws-sdk'; | ||
}, | ||
UserPoolId: { | ||
type: 'string' as const, | ||
comment: | ||
'Required to ensure that the attributes get updated when the domain is moved between user pools', | ||
}, | ||
}, | ||
required: ['UserPoolDomain' as const], | ||
required: ['UserPoolDomain' as const, 'UserPoolId'], | ||
}; | ||
@@ -18,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
163190
1954