@aws-cf-builder/packs
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -19,3 +19,4 @@ export declare const DEFAULT_AUTH_TYPE = "COGNITO_USER_POOLS"; | ||
authorizer?: AddGatewayAuthorizerConfig | boolean; | ||
deploymentSuffix?: string; | ||
}; | ||
export declare const addGateway: import("@aws-cf-builder/utils").ResourcePackApplier<AddGatewayConfig>; |
@@ -18,7 +18,7 @@ (function (factory) { | ||
var _b, _c, _d, _e, _f, _g; | ||
var id = _a.id, hostedZoneId = _a.hostedZoneId, domainName = _a.domainName, certificateArn = _a.certificateArn, _h = _a.cloudFunction, cloudFunctionId = _h.id, _j = _h.region, cloudFunctionRegion = _j === void 0 ? '${AWS::Region}' : _j, _k = _a.stageName, stageName = _k === void 0 ? 'production' : _k, authorizer = _a.authorizer; | ||
var id = _a.id, hostedZoneId = _a.hostedZoneId, domainName = _a.domainName, certificateArn = _a.certificateArn, _h = _a.cloudFunction, cloudFunctionId = _h.id, _j = _h.region, cloudFunctionRegion = _j === void 0 ? '${AWS::Region}' : _j, _k = _a.stageName, stageName = _k === void 0 ? 'production' : _k, authorizer = _a.authorizer, _l = _a.deploymentSuffix, deploymentSuffix = _l === void 0 ? '' : _l; | ||
var cloudFunctionUri = { | ||
'Fn::Sub': "arn:aws:apigateway:" + cloudFunctionRegion + ":lambda:path/2015-03-31/functions/${" + cloudFunctionId + ".Arn}/invocations", | ||
}; | ||
var _l = !!authorizer && typeof authorizer === 'object' ? authorizer : {}, _m = _l.scopes, authScopes = _m === void 0 ? ['phone', 'email', 'openid', 'profile'] : _m, _o = _l.type, authType = _o === void 0 ? 'COGNITO_USER_POOLS' : _o, providerARNs = _l.providerARNs, _p = _l.identitySource, identitySource = _p === void 0 ? 'method.request.header.authorization' : _p; | ||
var _m = !!authorizer && typeof authorizer === 'object' ? authorizer : {}, _o = _m.scopes, authScopes = _o === void 0 ? ['phone', 'email', 'openid', 'profile'] : _o, _p = _m.type, authType = _p === void 0 ? 'COGNITO_USER_POOLS' : _p, providerARNs = _m.providerARNs, _q = _m.identitySource, identitySource = _q === void 0 ? 'method.request.header.authorization' : _q; | ||
var authorizerId = id + "CustomAuthorizer"; | ||
@@ -153,6 +153,7 @@ var authProps = !!authorizer | ||
// SUPPORTING RESOURCES | ||
_d[id + "GatewayRESTAPIDeployment"] = { | ||
_d[id + "GatewayRESTAPIDeployment" + deploymentSuffix] = { | ||
Type: 'AWS::ApiGateway::Deployment', | ||
DependsOn: [id + "GatewayRESTAPIResource", id + "GatewayRESTAPIMethod", id + "GatewayRESTAPIRootMethod", id, cloudFunctionId], | ||
Properties: { | ||
StageDescription: {}, | ||
RestApiId: { | ||
@@ -159,0 +160,0 @@ Ref: id, |
{ | ||
"name": "@aws-cf-builder/packs", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"main": "dist/index.js", | ||
@@ -28,4 +28,4 @@ "files": [ | ||
"dependencies": { | ||
"@aws-cf-builder/types": "^3.0.0", | ||
"@aws-cf-builder/utils": "^3.0.0", | ||
"@aws-cf-builder/types": "^3.1.0", | ||
"@aws-cf-builder/utils": "^3.1.0", | ||
"tslib": "^2.3.0", | ||
@@ -32,0 +32,0 @@ "typescript": "^4.3.5", |
Sorry, the diff of this file is not supported yet
63351
1051
Updated@aws-cf-builder/types@^3.1.0
Updated@aws-cf-builder/utils@^3.1.0