@aws-cdk/aws-elasticloadbalancingv2
Advanced tools
Comparing version 0.30.0 to 0.31.0
@@ -17,6 +17,12 @@ import cdk = require('@aws-cdk/cdk'); | ||
/** | ||
* Target groups to forward requests to | ||
* Target groups to forward requests to. Only one of `targetGroups` or | ||
* `fixedResponse` can be specified. | ||
*/ | ||
readonly targetGroups?: IApplicationTargetGroup[]; | ||
/** | ||
* Fixed response to return. Only one of `fixedResponse` or | ||
* `targetGroups` can be specified. | ||
*/ | ||
readonly fixedResponse?: FixedResponse; | ||
/** | ||
* Rule applies if the requested host matches the indicated host | ||
@@ -52,2 +58,33 @@ * | ||
/** | ||
* The content type for a fixed response | ||
*/ | ||
export declare enum ContentType { | ||
TEXT_PLAIN = "text/plain", | ||
TEXT_CSS = "text/css", | ||
TEXT_HTML = "text/html", | ||
APPLICATION_JAVASCRIPT = "application/javascript", | ||
APPLICATION_JSON = "application/json" | ||
} | ||
/** | ||
* A fixed response | ||
*/ | ||
export interface FixedResponse { | ||
/** | ||
* The HTTP response code (2XX, 4XX or 5XX) | ||
*/ | ||
readonly statusCode: string; | ||
/** | ||
* The content type | ||
* | ||
* @default text/plain | ||
*/ | ||
readonly contentType?: ContentType; | ||
/** | ||
* The message | ||
* | ||
* @default no message | ||
*/ | ||
readonly messageBody?: string; | ||
} | ||
/** | ||
* Define a new listener rule | ||
@@ -73,2 +110,6 @@ */ | ||
/** | ||
* Add a fixed response | ||
*/ | ||
addFixedResponse(fixedResponse: FixedResponse): void; | ||
/** | ||
* Validate the rule | ||
@@ -75,0 +116,0 @@ */ |
@@ -6,2 +6,13 @@ "use strict"; | ||
/** | ||
* The content type for a fixed response | ||
*/ | ||
var ContentType; | ||
(function (ContentType) { | ||
ContentType["TEXT_PLAIN"] = "text/plain"; | ||
ContentType["TEXT_CSS"] = "text/css"; | ||
ContentType["TEXT_HTML"] = "text/html"; | ||
ContentType["APPLICATION_JAVASCRIPT"] = "application/javascript"; | ||
ContentType["APPLICATION_JSON"] = "application/json"; | ||
})(ContentType = exports.ContentType || (exports.ContentType = {})); | ||
/** | ||
* Define a new listener rule | ||
@@ -17,2 +28,5 @@ */ | ||
} | ||
if (props.targetGroups && props.fixedResponse) { | ||
throw new Error('Cannot combine `targetGroups` with `fixedResponse`.'); | ||
} | ||
this.listener = props.listener; | ||
@@ -32,2 +46,5 @@ const resource = new elasticloadbalancingv2_generated_1.CfnListenerRule(this, 'Resource', { | ||
(props.targetGroups || []).forEach(this.addTargetGroup.bind(this)); | ||
if (props.fixedResponse) { | ||
this.addFixedResponse(props.fixedResponse); | ||
} | ||
this.listenerRuleArn = resource.ref; | ||
@@ -52,2 +69,12 @@ } | ||
/** | ||
* Add a fixed response | ||
*/ | ||
addFixedResponse(fixedResponse) { | ||
validateFixedResponse(fixedResponse); | ||
this.actions.push({ | ||
fixedResponseConfig: fixedResponse, | ||
type: 'fixed-response' | ||
}); | ||
} | ||
/** | ||
* Validate the rule | ||
@@ -75,2 +102,16 @@ */ | ||
exports.ApplicationListenerRule = ApplicationListenerRule; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24tbGlzdGVuZXItcnVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFwcGxpY2F0aW9uLWxpc3RlbmVyLXJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQ0FBcUM7QUFDckMsMEZBQXNFO0FBdUR0RTs7R0FFRztBQUNILE1BQWEsdUJBQXdCLFNBQVEsR0FBRyxDQUFDLFNBQVM7SUFXeEQsWUFBWSxLQUFvQixFQUFFLEVBQVUsRUFBRSxLQUFtQztRQUMvRSxLQUFLLENBQUMsS0FBSyxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBTkYsZUFBVSxHQUEwQyxFQUFFLENBQUM7UUFFdkQsWUFBTyxHQUFVLEVBQUUsQ0FBQztRQU1uQyxJQUFJLENBQUMsS0FBSyxDQUFDLFV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BBcm46IHRhcmdldEdyb3VwLnRhcmdldEdyb3VwQXJuLFxuICAgICAgdHlwZTogJ2ZvcndhcmQnXG4gICAgfSk7XG4gICAgdGFyZ2V0R3JvdXAucmVnaXN0ZXJMaXN0ZW5lcih0aGlzLmxpc3RlbmVyLCB0aGlzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBWYWxpZGF0ZSB0aGUgcnVsZVxuICAgKi9cbiAgcHJvdGVjdGVkIHZhbGlkYXRlKCkge1xuICAgIGlmICh0aGlzLmFjdGlvbnMubGVuZ3RoID09PSAwKSB7XG4gICAgICByZXR1cm4gWydMaXN0ZW5lciBydWxlIG5lZWRzIGF0IGxlYXN0IG9uZSBhY3Rpb24nXTtcbiAgICB9XG4gICAgcmV0dXJuIFtdO1xuICB9XG5cbiAgLyoqXG4gICAqIFJlbmRlciB0aGUgY29uZGl0aW9ucyBmb3IgdGhpcyBydWxlXG4gICAqL1xuICBwcml2YXRlIHJlbmRlckNvbmRpdGlvbnMoKSB7XG4gICAgY29uc3QgcmV0ID0gW107XG4gICAgZm9yIChjb25zdCBbZmllbGQsIHZhbHVlc10gb2YgT2JqZWN0LmVudHJpZXModGhpcy5jb25kaXRpb25zKSkge1xuICAgICAgaWYgKHZhbHVlcyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIHJldC5wdXNoKHsgZmllbGQsIHZhbHVlcyB9KTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHJldDtcbiAgfVxufVxuIl19 | ||
/** | ||
* Validate the status code and message body of a fixed response | ||
* | ||
* @internal | ||
*/ | ||
function validateFixedResponse(fixedResponse) { | ||
if (fixedResponse.statusCode && !/^(2|4|5)\d\d$/.test(fixedResponse.statusCode)) { | ||
throw new Error('`statusCode` must be 2XX, 4XX or 5XX.'); | ||
} | ||
if (fixedResponse.messageBody && fixedResponse.messageBody.length > 1024) { | ||
throw new Error('`messageBody` cannot have more than 1024 characters.'); | ||
} | ||
} | ||
exports.validateFixedResponse = validateF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JldHVybiByZXQ7XG4gIH1cbn1cblxuLyoqXG4gKiBWYWxpZGF0ZSB0aGUgc3RhdHVzIGNvZGUgYW5kIG1lc3NhZ2UgYm9keSBvZiBhIGZpeGVkIHJlc3BvbnNlXG4gKlxuICogQGludGVybmFsXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB2YWxpZGF0ZUZpeGVkUmVzcG9uc2UoZml4ZWRSZXNwb25zZTogRml4ZWRSZXNwb25zZSkge1xuICBpZiAoZml4ZWRSZXNwb25zZS5zdGF0dXNDb2RlICYmICEvXigyfDR8NSlcXGRcXGQkLy50ZXN0KGZpeGVkUmVzcG9uc2Uuc3RhdHVzQ29kZSkpIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoJ2BzdGF0dXNDb2RlYCBtdXN0IGJlIDJYWCwgNFhYIG9yIDVYWC4nKTtcbiAgfVxuXG4gIGlmIChmaXhlZFJlc3BvbnNlLm1lc3NhZ2VCb2R5ICYmIGZpeGVkUmVzcG9uc2UubWVzc2FnZUJvZHkubGVuZ3RoID4gMTAyNCkge1xuICAgIHRocm93IG5ldyBFcnJvcignYG1lc3NhZ2VCb2R5YCBjYW5ub3QgaGF2ZSBtb3JlIHRoYW4gMTAyNCBjaGFyYWN0ZXJzLicpO1xuICB9XG59XG4iXX0= |
@@ -6,2 +6,3 @@ import ec2 = require('@aws-cdk/aws-ec2'); | ||
import { ApplicationProtocol, SslPolicy } from '../shared/enums'; | ||
import { FixedResponse } from './application-listener-rule'; | ||
import { IApplicationLoadBalancer } from './application-load-balancer'; | ||
@@ -118,2 +119,6 @@ import { ApplicationTargetGroup, IApplicationLoadBalancerTarget, IApplicationTargetGroup } from './application-target-group'; | ||
/** | ||
* Add a fixed response | ||
*/ | ||
addFixedResponse(id: string, props: AddFixedResponseProps): void; | ||
/** | ||
* Register that a connectable that has been added to this load balancer. | ||
@@ -315,1 +320,6 @@ * | ||
} | ||
/** | ||
* Properties for adding a fixed response to a listener | ||
*/ | ||
export interface AddFixedResponseProps extends AddRuleProps, FixedResponse { | ||
} |
@@ -59,5 +59,3 @@ "use strict"; | ||
addTargetGroups(id, props) { | ||
if ((props.hostHeader !== undefined || props.pathPattern !== undefined) !== (props.priority !== undefined)) { | ||
throw new Error(`Setting 'pathPattern' or 'hostHeader' also requires 'priority', and vice versa`); | ||
} | ||
checkAddRuleProps(props); | ||
if (props.priority !== undefined) { | ||
@@ -118,2 +116,28 @@ // New rule | ||
/** | ||
* Add a fixed response | ||
*/ | ||
addFixedResponse(id, props) { | ||
checkAddRuleProps(props); | ||
const fixedResponse = { | ||
statusCode: props.statusCode, | ||
contentType: props.contentType, | ||
messageBody: props.messageBody | ||
}; | ||
application_listener_rule_1.validateFixedResponse(fixedResponse); | ||
if (props.priority) { | ||
new application_listener_rule_1.ApplicationListenerRule(this, id + 'Rule', { | ||
listener: this, | ||
priority: props.priority, | ||
fixedResponse, | ||
...props | ||
}); | ||
} | ||
else { | ||
this._addDefaultAction({ | ||
fixedResponseConfig: fixedResponse, | ||
type: 'fixed-response' | ||
}); | ||
} | ||
} | ||
/** | ||
* Register that a connectable that has been added to this load balancer. | ||
@@ -162,3 +186,3 @@ * | ||
this.connections = new ec2.Connections({ | ||
securityGroups: [ec2.SecurityGroup.import(this, 'SecurityGroup', { securityGroupId: props.securityGroupId })], | ||
securityGroups: [ec2.SecurityGroup.fromSecurityGroupId(this, 'SecurityGroup', props.securityGroupId)], | ||
defaultPortRange, | ||
@@ -227,2 +251,7 @@ }); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24tbGlzdGVuZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhcHBsaWNhdGlvbi1saXN0ZW5lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHdDQUF5QztBQUN6QyxvQ0FBcUM7QUFDckMsMkRBQXVEO0FBRXZELDJDQUFpRTtBQUNqRSx5Q0FBMEQ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SB0YXJnZXQgZ3JvdXAuXG4gICAqXG4gICAqIFRoaXMgbmFtZSBtdXN0IGJlIHVuaXF1ZSBwZXIgcmVnaW9uIHBlciBhY2NvdW50LCBjYW4gaGF2ZSBhIG1heGltdW0gb2ZcbiAgICogMzIgY2hhcmFjdGVycywgbXVzdCBjb250YWluIG9ubHkgYWxwaGFudW1lcmljIGNoYXJhY3RlcnMgb3IgaHlwaGVucywgYW5kXG4gICAqIG11c3Qgbm90IGJlZ2luIG9yIGVuZCB3aXRoIGEgaHlwaGVuLlxuICAgKlxuICAgKiBAZGVmYXVsdCBBdXRvbWF0aWNhbGx5IGdlbmVyYXRlZFxuICAgKi9cbiAgcmVhZG9ubHkgdGFyZ2V0R3JvdXBOYW1lPzogc3RyaW5nO1xuXG4gIC8qKlxuICAgKiBUaGUgYW1vdW50IG9mIHRpbWUgZm9yIEVsYXN0aWMgTG9hZCBCYWxhbmNpbmcgdG8gd2FpdCBiZWZvcmUgZGVyZWdpc3RlcmluZyBhIHRhcmdldC5cbiAgICpcbiAgICogVGhlIHJhbmdlIGlzIDDigJMzNjAwIHNlY29uZHMuXG4gICAqXG4gICAqIEBkZWZhdWx0IDMwMFxuICAgKi9cbiAgcmVhZG9ubHkgZGVyZWdpc3RyYXRpb25EZWxheVNlYz86IG51bWJlcjtcblxuICAvKipcbiAgICogSGVhbHRoIGNoZWNrIGNvbmZpZ3VyYXRpb25cbiAgICpcbiAgICogQGRlZmF1bHQgTm8gaGVhbHRoIGNoZWNrXG4gICAqL1xuICByZWFkb25seSBoZWFsdGhDaGVjaz86IEhlYWx0aENoZWNrO1xufVxuIl19 | ||
function checkAddRuleProps(props) { | ||
if ((props.hostHeader !== undefined || props.pathPattern !== undefined) !== (props.priority !== undefined)) { | ||
throw new Error(`Setting 'pathPattern' or 'hostHeader' also requires 'priority', and vice versa`); | ||
} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24tbG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YyBMb2FkIEJhbGFuY2luZyB0byB3YWl0IGJlZm9yZSBkZXJlZ2lzdGVyaW5nIGEgdGFyZ2V0LlxuICAgKlxuICAgKiBUaGUgcmFuZ2UgaXMgMOKAkzM2MDAgc2Vjb25kcy5cbiAgICpcbiAgICogQGRlZmF1bHQgMzAwXG4gICAqL1xuICByZWFkb25seSBkZXJlZ2lzdHJhdGlvbkRlbGF5U2VjPzogbnVtYmVyO1xuXG4gIC8qKlxuICAgKiBIZWFsdGggY2hlY2sgY29uZmlndXJhdGlvblxuICAgKlxuICAgKiBAZGVmYXVsdCBObyBoZWFsdGggY2hlY2tcbiAgICovXG4gIHJlYWRvbmx5IGhlYWx0aENoZWNrPzogSGVhbHRoQ2hlY2s7XG59XG5cbi8qKlxuICogUHJvcGVydGllcyBmb3IgYWRkaW5nIGEgZml4ZWQgcmVzcG9uc2UgdG8gYSBsaXN0ZW5lclxuICovXG5leHBvcnQgaW50ZXJmYWNlIEFkZEZpeGVkUmVzcG9uc2VQcm9wcyBleHRlbmRzIEFkZFJ1bGVQcm9wcywgRml4ZWRSZXNwb25zZSB7XG59XG5cbmZ1bmN0aW9uIGNoZWNrQWRkUnVsZVByb3BzKHByb3BzOiBBZGRSdWxlUHJvcHMpIHtcbiAgaWYgKChwcm9wcy5ob3N0SGVhZGVyICE9PSB1bmRlZmluZWQgfHwgcHJvcHMucGF0aFBhdHRlcm4gIT09IHVuZGVmaW5lZCkgIT09IChwcm9wcy5wcmlvcml0eSAhPT0gdW5kZWZpbmVkKSkge1xuICAgIHRocm93IG5ldyBFcnJvcihgU2V0dGluZyAncGF0aFBhdHRlcm4nIG9yICdob3N0SGVhZGVyJyBhbHNvIHJlcXVpcmVzICdwcmlvcml0eScsIGFuZCB2aWNlIHZlcnNhYCk7XG4gIH1cbn1cbiJdfQ== |
@@ -433,3 +433,3 @@ "use strict"; | ||
this.connections = new ec2.Connections({ | ||
securityGroups: [ec2.SecurityGroup.import(this, 'SecurityGroup', { securityGroupId: props.securityGroupId })] | ||
securityGroups: [ec2.SecurityGroup.fromSecurityGroupId(this, 'SecurityGroup', props.securityGroupId)] | ||
}); | ||
@@ -447,2 +447,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb24tbG9hZC1iYWxhbmNlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFwcGxpY2F0aW9uLWxvYWQtYmFsYW5jZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxzREFBdUQ7QUFDdkQsd0NBQXlDO0FBQ3pDLHdDQUF5QztBQUV6QyxvQ0FBcUM7QUFDckMscUVBQXVGO0FBRXZGLGlFQUEyRjtBQXFDM0Y7O0dBRUc7QUFDSCxNQUFhLHVCQUF3QixTQUFRLHFDQUFnQjtJQUMzRDs7T0FFRztJQUNJLE1BQU0sQ0FBQyxNQUFNLENBQUMsS0FBb0IsRUFBRSxFQUFVLEVBQUUsS0FBeUM7UUFDOUYsT0FBTyxJQUFJLCtCQUErQixDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxDQUFDLENBQUM7SUFDL0QsQ0FBQztJQUtELFlBQVksS0FBb0IsRUFBRSxFQUFVLEVBQUUsS0FBbUM7UUFDL0UsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLEVBQUUsS0FBSyxFQUFFO1lBQ3RCLElBQUksRUFBRSxhQUFhO1lBQ25CLGNBQWMsRUFBRSxJQUFJLEdBQUcsQ0FBQyxLQUFLLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLGVBQWUsQ0FBQyxDQUFDO1lBQ3pFLGFBQWEsRUFBRSxLQUFLLENBQUMsYUFBYTtTQUNuQyxDQUFDLENBQUM7UUFFSCxJQUFJLENBQUMsYUFBYSxHQUFHLEtBQUssQ0FBQyxhQUFhLElBQUksSUFBSSxHQUFHLENB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XG4gICAgfSk7XG4gIH1cbn1cbiJdfQ== |
@@ -28,2 +28,9 @@ "use strict"; | ||
/** | ||
* Add an action to the list of default actions of this listener | ||
* @internal | ||
*/ | ||
_addDefaultAction(action) { | ||
this.defaultActions.push(action); | ||
} | ||
/** | ||
* Add a TargetGroup to the list of default actions of this listener | ||
@@ -33,3 +40,3 @@ * @internal | ||
_addDefaultTargetGroup(targetGroup) { | ||
this.defaultActions.push({ | ||
this._addDefaultAction({ | ||
targetGroupArn: targetGroup.targetGroupArn, | ||
@@ -41,2 +48,2 @@ type: 'forward' | ||
exports.BaseListener = BaseListener; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1saXN0ZW5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImJhc2UtbGlzdGVuZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQ0FBcUM7QUFDckMsMEZBQWtFO0FBR2xFOztHQUVHO0FBQ0gsTUFBc0IsWUFBYSxTQUFRLEdBQUcsQ0FBQyxTQUFTO0lBSXRELFlBQVksS0FBb0IsRUFBRSxFQUFVLEVBQUUsZUFBb0I7UUFDaEUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUhGLG1CQUFjLEdBQVUsRUFBRSxDQUFDO1FBSzFDLE1BQU0sUUFBUSxHQUFHLElBQUksOENBQVcsQ0FBQyxJQUFJLEVBQUUsVUFBVSxFQUFFO1lBQ2pELEdBQUcsZUFBZTtZQUNsQixjQUFjLEVBQUUsSUFBSSxHQUFHLENBQUMsS0FBSyxDQUFDLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUM7U0FDekQsQ0FBQyxDQUFDO1FBRUgsSUFBSSxDQUFDLFdBQVcsR0FBRyxRQUFRLENBQUMsR0FBRyxDQUFDO0lBQ2xDLENBQUM7SUFFRDs7T0FFRztJQUNPL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Y3RlZCB2YWxpZGF0ZSgpOiBzdHJpbmdbXSB7XG4gICAgaWYgKHRoaXMuZGVmYXVsdEFjdGlvbnMubGVuZ3RoID09PSAwKSB7XG4gICAgICByZXR1cm4gWydMaXN0ZW5lciBuZWVkcyBhdCBsZWFzdCBvbmUgZGVmYXVsdCB0YXJnZXQgZ3JvdXAgKGNhbGwgYWRkVGFyZ2V0R3JvdXBzKSddO1xuICAgIH1cbiAgICByZXR1cm4gW107XG4gIH1cblxuICAvKipcbiAgICogQWRkIGFuIGFjdGlvbiB0byB0aGUgbGlzdCBvZiBkZWZhdWx0IGFjdGlvbnMgb2YgdGhpcyBsaXN0ZW5lclxuICAgKiBAaW50ZXJuYWxcbiAgICovXG4gIHByb3RlY3RlZCBfYWRkRGVmYXVsdEFjdGlvbihhY3Rpb246IENmbkxpc3RlbmVyLkFjdGlvblByb3BlcnR5KSB7XG4gICAgdGhpcy5kZWZhdWx0QWN0aW9ucy5wdXNoKGFjdGlvbik7XG4gIH1cblxuICAvKipcbiAgICogQWRkIGEgVGFyZ2V0R3JvdXAgdG8gdGhlIGxpc3Qgb2YgZGVmYXVsdCBhY3Rpb25zIG9mIHRoaXMgbGlzdGVuZXJcbiAgICogQGludGVybmFsXG4gICAqL1xuICBwcm90ZWN0ZWQgX2FkZERlZmF1bHRUYXJnZXRHcm91cCh0YXJnZXRHcm91cDogSVRhcmdldEdyb3VwKSB7XG4gICAgdGhpcy5fYWRkRGVmYXVsdEFjdGlvbih7XG4gICAgICB0YXJnZXRHcm91cEFybjogdGFyZ2V0R3JvdXAudGFyZ2V0R3JvdXBBcm4sXG4gICAgICB0eXBlOiAnZm9yd2FyZCdcbiAgICB9KTtcbiAgfVxufVxuIl19 |
{ | ||
"name": "@aws-cdk/aws-elasticloadbalancingv2", | ||
"version": "0.30.0", | ||
"version": "0.31.0", | ||
"description": "The CDK Construct Library for AWS::ElasticLoadBalancingV2", | ||
@@ -23,3 +23,2 @@ "main": "lib/index.js", | ||
}, | ||
"sphinx": {}, | ||
"python": { | ||
@@ -63,28 +62,28 @@ "distName": "aws-cdk.aws-elasticloadbalancingv2", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.30.0", | ||
"cdk-build-tools": "^0.30.0", | ||
"cdk-integ-tools": "^0.30.0", | ||
"cfn2ts": "^0.30.0", | ||
"pkglint": "^0.30.0" | ||
"@aws-cdk/assert": "^0.31.0", | ||
"cdk-build-tools": "^0.31.0", | ||
"cdk-integ-tools": "^0.31.0", | ||
"cfn2ts": "^0.31.0", | ||
"pkglint": "^0.31.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-certificatemanager": "^0.30.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.30.0", | ||
"@aws-cdk/aws-codedeploy-api": "^0.30.0", | ||
"@aws-cdk/aws-ec2": "^0.30.0", | ||
"@aws-cdk/aws-iam": "^0.30.0", | ||
"@aws-cdk/aws-route53": "^0.30.0", | ||
"@aws-cdk/aws-s3": "^0.30.0", | ||
"@aws-cdk/cdk": "^0.30.0" | ||
"@aws-cdk/aws-certificatemanager": "^0.31.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.31.0", | ||
"@aws-cdk/aws-codedeploy-api": "^0.31.0", | ||
"@aws-cdk/aws-ec2": "^0.31.0", | ||
"@aws-cdk/aws-iam": "^0.31.0", | ||
"@aws-cdk/aws-route53": "^0.31.0", | ||
"@aws-cdk/aws-s3": "^0.31.0", | ||
"@aws-cdk/cdk": "^0.31.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-certificatemanager": "^0.30.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.30.0", | ||
"@aws-cdk/aws-codedeploy-api": "^0.30.0", | ||
"@aws-cdk/aws-ec2": "^0.30.0", | ||
"@aws-cdk/aws-iam": "^0.30.0", | ||
"@aws-cdk/aws-route53": "^0.30.0", | ||
"@aws-cdk/aws-s3": "^0.30.0", | ||
"@aws-cdk/cdk": "^0.30.0" | ||
"@aws-cdk/aws-certificatemanager": "^0.31.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.31.0", | ||
"@aws-cdk/aws-codedeploy-api": "^0.31.0", | ||
"@aws-cdk/aws-ec2": "^0.31.0", | ||
"@aws-cdk/aws-iam": "^0.31.0", | ||
"@aws-cdk/aws-route53": "^0.31.0", | ||
"@aws-cdk/aws-s3": "^0.31.0", | ||
"@aws-cdk/cdk": "^0.31.0" | ||
}, | ||
@@ -91,0 +90,0 @@ "engines": { |
@@ -53,2 +53,13 @@ ## AWS Application and Network Load Balancing Construct Library | ||
Use the `addFixedResponse()` method to add fixed response rules on the listener: | ||
```ts | ||
listener.addFixedResponse('Fixed', { | ||
pathPattern: '/ok', | ||
contentType: elbv2.ContentType.TEXT_PLAIN, | ||
messageBody: 'OK', | ||
statusCode: '200' | ||
}); | ||
``` | ||
#### Conditions | ||
@@ -55,0 +66,0 @@ |
@@ -19,3 +19,9 @@ import { Test } from 'nodeunit'; | ||
'Can add dependency on ListenerRule via TargetGroup'(test: Test): void; | ||
'Can add fixed responses'(test: Test): void; | ||
'Throws with bad fixed responses': { | ||
'status code'(test: Test): void; | ||
'message body'(test: Test): void; | ||
}; | ||
'Throws when specifying both target groups and fixed reponse'(test: Test): void; | ||
}; | ||
export = _default; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1221008
8950
217
+ Added@aws-cdk/assets@0.31.0(transitive)
+ Added@aws-cdk/aws-autoscaling-api@0.31.0(transitive)
+ Added@aws-cdk/aws-certificatemanager@0.31.0(transitive)
+ Added@aws-cdk/aws-cloudformation@0.31.0(transitive)
+ Added@aws-cdk/aws-cloudwatch@0.31.0(transitive)
+ Added@aws-cdk/aws-codedeploy-api@0.31.0(transitive)
+ Added@aws-cdk/aws-ec2@0.31.0(transitive)
+ Added@aws-cdk/aws-events@0.31.0(transitive)
+ Added@aws-cdk/aws-iam@0.31.0(transitive)
+ Added@aws-cdk/aws-kms@0.31.0(transitive)
+ Added@aws-cdk/aws-lambda@0.31.0(transitive)
+ Added@aws-cdk/aws-logs@0.31.0(transitive)
+ Added@aws-cdk/aws-route53@0.31.0(transitive)
+ Added@aws-cdk/aws-s3@0.31.0(transitive)
+ Added@aws-cdk/aws-s3-notifications@0.31.0(transitive)
+ Added@aws-cdk/aws-sns@0.31.0(transitive)
+ Added@aws-cdk/aws-sqs@0.31.0(transitive)
+ Added@aws-cdk/aws-stepfunctions@0.31.0(transitive)
+ Added@aws-cdk/cdk@0.31.0(transitive)
+ Added@aws-cdk/cx-api@0.31.0(transitive)
+ Added@aws-cdk/region-info@0.31.0(transitive)
- Removed@aws-cdk/assets@0.30.0(transitive)
- Removed@aws-cdk/aws-autoscaling-api@0.30.0(transitive)
- Removed@aws-cdk/aws-certificatemanager@0.30.0(transitive)
- Removed@aws-cdk/aws-cloudformation@0.30.0(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.30.0(transitive)
- Removed@aws-cdk/aws-codedeploy-api@0.30.0(transitive)
- Removed@aws-cdk/aws-ec2@0.30.0(transitive)
- Removed@aws-cdk/aws-events@0.30.0(transitive)
- Removed@aws-cdk/aws-iam@0.30.0(transitive)
- Removed@aws-cdk/aws-kms@0.30.0(transitive)
- Removed@aws-cdk/aws-lambda@0.30.0(transitive)
- Removed@aws-cdk/aws-logs@0.30.0(transitive)
- Removed@aws-cdk/aws-route53@0.30.0(transitive)
- Removed@aws-cdk/aws-s3@0.30.0(transitive)
- Removed@aws-cdk/aws-s3-notifications@0.30.0(transitive)
- Removed@aws-cdk/aws-sns@0.30.0(transitive)
- Removed@aws-cdk/aws-sqs@0.30.0(transitive)
- Removed@aws-cdk/aws-stepfunctions@0.30.0(transitive)
- Removed@aws-cdk/cdk@0.30.0(transitive)
- Removed@aws-cdk/cx-api@0.30.0(transitive)
- Removed@aws-cdk/region-info@0.30.0(transitive)
Updated@aws-cdk/aws-ec2@^0.31.0
Updated@aws-cdk/aws-iam@^0.31.0
Updated@aws-cdk/aws-route53@^0.31.0
Updated@aws-cdk/aws-s3@^0.31.0
Updated@aws-cdk/cdk@^0.31.0