Skip to content

Commit 240d628

Browse files
committed
style(elasticloadbalancingv2): remove trailing whitespace and extra blank lines
- Remove trailing whitespace from application-listener.ts SSL policy calculation - Remove trailing whitespace from network-listener.ts SSL policy calculation - Remove trailing whitespace from enums.ts documentation comments - Remove extra blank lines at end of ApplicationListener class - Remove extra blank lines at end of NetworkListener class - Remove extra blank lines at beginning of enums.ts file - Remove extra blank lines between SslPolicy enum values - Clean up formatting to improve code consistency and readability
1 parent bd8c1a8 commit 240d628

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-listener.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ export class ApplicationListener extends BaseListener implements IApplicationLis
278278
}
279279

280280
// Calculate SSL policy before calling super()
281-
const sslPolicy = props.sslPolicy ?? (protocol === ApplicationProtocol.HTTPS ?
282-
(FeatureFlags.of(scope).isEnabled(cxapi.ELB_USE_POST_QUANTUM_TLS_POLICY) ?
281+
const sslPolicy = props.sslPolicy ?? (protocol === ApplicationProtocol.HTTPS ?
282+
(FeatureFlags.of(scope).isEnabled(cxapi.ELB_USE_POST_QUANTUM_TLS_POLICY) ?
283283
SslPolicy.RECOMMENDED_TLS_PQ : SslPolicy.RECOMMENDED_TLS) : undefined);
284284

285285
super(scope, id, {
@@ -596,8 +596,6 @@ export class ApplicationListener extends BaseListener implements IApplicationLis
596596
action.bind(this, this);
597597
this._setDefaultAction(action);
598598
}
599-
600-
601599
}
602600

603601
/**

packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-listener.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ export class NetworkListener extends BaseListener implements INetworkListener {
206206
}
207207

208208
// Calculate SSL policy before calling super()
209-
const sslPolicy = props.sslPolicy ?? (proto === Protocol.TLS ?
210-
(FeatureFlags.of(scope).isEnabled(cxapi.ELB_USE_POST_QUANTUM_TLS_POLICY) ? SslPolicy.RECOMMENDED_TLS_PQ : SslPolicy.RECOMMENDED_TLS) :
209+
const sslPolicy = props.sslPolicy ?? (proto === Protocol.TLS ?
210+
(FeatureFlags.of(scope).isEnabled(cxapi.ELB_USE_POST_QUANTUM_TLS_POLICY) ? SslPolicy.RECOMMENDED_TLS_PQ : SslPolicy.RECOMMENDED_TLS) :
211211
undefined);
212212

213213
super(scope, id, {
@@ -350,8 +350,6 @@ export class NetworkListener extends BaseListener implements INetworkListener {
350350
action.bind(this, this);
351351
this._setDefaultAction(action);
352352
}
353-
354-
355353
}
356354

357355
/**

packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/enums.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
/**
42
* What kind of addresses to allocate to the load balancer
53
*/
@@ -109,15 +107,15 @@ export enum SslPolicy {
109107
* This is the default policy for listeners created using the AWS Management Console
110108
*
111109
* This policy includes TLS 1.3, and is backwards compatible with TLS 1.2
112-
*
110+
*
113111
* When feature flag @aws-cdk/aws-elasticloadbalancingv2:usePostQuantumTlsPolicy is enabled,
114112
* listeners automatically use the post-quantum policy instead.
115113
*/
116114
RECOMMENDED_TLS = 'ELBSecurityPolicy-TLS13-1-2-2021-06',
117115

118116
/**
119117
* The recommended post-quantum security policy for TLS listeners.
120-
*
118+
*
121119
* This policy includes TLS 1.3 and 1.2 with post-quantum hybrid key exchange using ML-KEM.
122120
* Provides maximum backward compatibility with existing TLS clients while adding quantum resistance.
123121
* This policy is nearly 100% backward compatible with the previous CDK recommended default.
@@ -165,8 +163,6 @@ export enum SslPolicy {
165163
*/
166164
TLS13_13_PQ = 'ELBSecurityPolicy-TLS13-1-3-PQ-2025-09',
167165

168-
169-
170166
/**
171167
* TLS 1.2 and 1.3 with post-quantum hybrid key exchange using ML-KEM
172168
*
@@ -439,4 +435,3 @@ export enum DesyncMitigationMode {
439435
STRICTEST = 'strictest',
440436
}
441437

442-

0 commit comments

Comments
 (0)