Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/assertions/lib/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,5 +498,4 @@ class StringLikeRegexpMatch extends Matcher {

return result;
}

}
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/assertions/lib/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Stack, Stage } from '../../core';
* CloudFormation template has expected resources and properties.
*/
export class Template {

/**
* Base your assertions on the CloudFormation template synthesized by a CDK `Stack`.
* @param stack the CDK Stack to run assertions on
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-apigateway/lib/api-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ abstract class ApiKeyBase extends Resource implements IApiKey {
* for Method resources that require an Api Key.
*/
export class ApiKey extends ApiKeyBase {

/**
* Import an ApiKey by its Id
*/
Expand Down
3 changes: 0 additions & 3 deletions packages/aws-cdk-lib/aws-apigateway/lib/authorizers/lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export interface LambdaAuthorizerProps {
}

abstract class LambdaAuthorizer extends Authorizer implements IAuthorizer {

/**
* The id of the authorizer.
* @attribute
Expand Down Expand Up @@ -199,7 +198,6 @@ export interface TokenAuthorizerProps extends LambdaAuthorizerProps {
* @resource AWS::ApiGateway::Authorizer
*/
export class TokenAuthorizer extends LambdaAuthorizer {

public readonly authorizerId: string;

public readonly authorizerArn: string;
Expand Down Expand Up @@ -264,7 +262,6 @@ export interface RequestAuthorizerProps extends LambdaAuthorizerProps {
* @resource AWS::ApiGateway::Authorizer
*/
export class RequestAuthorizer extends LambdaAuthorizer {

public readonly authorizerId: string;

public readonly authorizerArn: string;
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-apigateway/lib/domain-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export interface IDomainName extends IResource {
}

export class DomainName extends Resource implements IDomainName {

/**
* Imports an existing domain name.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,4 @@ export class ResponseType {
private constructor(type: string) {
this.responseType = type;
}

}
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-apigateway/lib/restapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ export interface RestApiAttributes {
* public endpoint.
*/
export class RestApi extends RestApiBase {

/**
* Return whether the given object is a `RestApi`
*/
Expand Down
2 changes: 0 additions & 2 deletions packages/aws-cdk-lib/aws-apigateway/lib/usage-plan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,9 @@ abstract class UsagePlanBase extends Resource implements IUsagePlan {
resource.overrideLogicalId(options?.overrideLogicalId);
}
}

}

export class UsagePlan extends UsagePlanBase {

/**
* Import an externally defined usage plan using its ARN.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export interface HttpLambdaIntegrationProps {
* The Lambda Proxy integration resource for HTTP API
*/
export class HttpLambdaIntegration extends HttpRouteIntegration {

private readonly _id: string;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export interface WebSocketLambdaIntegrationProps {
* Lambda WebSocket Integration
*/
export class WebSocketLambdaIntegration extends WebSocketRouteIntegration {

private readonly _id: string;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export interface WebSocketMockIntegrationProps {
* Mock WebSocket Integration
*/
export class WebSocketMockIntegration extends WebSocketRouteIntegration {

/**
* @param id id of the underlying integration construct
*/
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-apigatewayv2/lib/http/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ export interface AddRoutesOptions extends BatchHttpRouteOptions {
}

abstract class HttpApiBase extends ApiBase implements IHttpApi { // note that this is not exported

public abstract override readonly apiId: string;
public abstract readonly httpApiId: string;
public abstract override readonly apiEndpoint: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export class MappingValue implements IMappingValue {
* Represents a Parameter Mapping.
*/
export class ParameterMapping {

/**
* Creates a mapping from an object.
*/
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-apigatewayv2/lib/websocket/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export interface IWebSocketApi extends IApi {
* Represents the currently available API Key Selection Expressions
*/
export class WebSocketApiKeySelectionExpression {

/**
* The API will extract the key value from the `x-api-key` header in the user request.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export interface ScalableTargetProps {
* Define a scalable target
*/
export class ScalableTarget extends Resource implements IScalableTarget {

public static fromScalableTargetId(scope: Construct, id: string, scalableTargetId: string): IScalableTarget {
class Import extends Resource implements IScalableTarget {
public readonly scalableTargetId = scalableTargetId;
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-appmesh/lib/health-checks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,4 @@ class HealthCheckImpl extends HealthCheck {
},
};
}

}
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-appmesh/lib/shared-interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ export abstract class Backend {
* Represents the properties needed to define a Virtual Service backend
*/
class VirtualServiceBackend extends Backend {

constructor (private readonly virtualService: IVirtualService,
private readonly tlsClientPolicy: TlsClientPolicy | undefined) {
super();
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-appmesh/lib/tls-certificate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export abstract class TlsCertificate {
* Returns TLS certificate based provider.
*/
public abstract bind(_scope: Construct): TlsCertificateConfig;

}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export abstract class VirtualGatewayListener {
* Represents the properties needed to define an HTTP Listener for a VirtualGateway
*/
class VirtualGatewayListenerImpl extends VirtualGatewayListener {

constructor(private readonly protocol: Protocol,
private readonly healthCheck: HealthCheck | undefined,
private readonly port: number = 8080,
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-appsync/lib/graphqlapi-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ export interface IGraphqlApi extends IResource {
* Base Class for GraphQL API
*/
export abstract class GraphqlApiBase extends Resource implements IGraphqlApi {

/**
* an unique AWS AppSync GraphQL API identifier
* i.e. 'lxz775lwdrgcndgz3nurvac7oa'
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-appsync/lib/key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { BaseKeyCondition, BeginsWith, Between, BinaryCondition } from './privat
* Factory class for DynamoDB key conditions.
*/
export class KeyCondition {

/**
* Condition k = arg, true if the key attribute k is equal to the Query argument
*/
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-appsync/lib/mapping-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export abstract class MappingTemplate {
}

class StringMappingTemplate extends MappingTemplate {

constructor(private readonly template: string) {
super();
}
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-appsync/lib/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,4 @@ export class Resolver extends Construct {
ttl: config.ttl?.toSeconds(),
} : undefined;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export interface SourceApiAssociationProps {
* The initial creation of the SourceApiAssociation merges the source API into the Merged API schema.
*/
export class SourceApiAssociation extends Resource implements ISourceApiAssociation {

/**
* Import Appsync Source Api Association from source API, merged api, and merge type.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,6 @@ export abstract class Signals {
},
};
}

}

/**
Expand Down Expand Up @@ -1026,7 +1025,6 @@ export interface RollingUpdateOptions {
* A set of group metrics
*/
export class GroupMetrics {

/**
* Report all group metrics.
*/
Expand All @@ -1048,7 +1046,6 @@ export class GroupMetrics {
* Group metrics that an Auto Scaling group sends to Amazon CloudWatch.
*/
export class GroupMetric {

/**
* The minimum size of the Auto Scaling group
*/
Expand Down Expand Up @@ -1119,7 +1116,6 @@ export enum CapacityDistributionStrategy {
}

abstract class AutoScalingGroupBase extends Resource implements IAutoScalingGroup {

public abstract autoScalingGroupName: string;
public abstract autoScalingGroupArn: string;
public abstract readonly osType: ec2.OperatingSystemType;
Expand Down Expand Up @@ -1273,7 +1269,6 @@ export class AutoScalingGroup extends AutoScalingGroupBase implements
ec2.IConnectable,
elbv2.IApplicationLoadBalancerTarget,
elbv2.INetworkLoadBalancerTarget {

public static fromAutoScalingGroupName(scope: Construct, id: string, autoScalingGroupName: string): IAutoScalingGroup {
class Import extends AutoScalingGroupBase {
public autoScalingGroupName = autoScalingGroupName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ abstract class SlackChannelConfigurationBase extends cdk.Resource implements ISl
* A new Slack channel configuration
*/
export class SlackChannelConfiguration extends SlackChannelConfigurationBase {

/**
* Import an existing Slack channel configuration provided an ARN
* @param scope The parent creating construct
Expand All @@ -224,7 +223,6 @@ export class SlackChannelConfiguration extends SlackChannelConfigurationBase {
}

class Import extends SlackChannelConfigurationBase {

/**
* @attribute
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ describeDeprecated('NestedStack', () => {
test('references to a resource from the parent stack in a nested stack is translated into a cfn parameter', () => {
// WHEN
class MyNestedStack extends NestedStack {

constructor(scope: Construct, id: string, resourceFromParent: CfnResource) {
super(scope, id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export interface HttpOriginProps extends cloudfront.OriginProps {
* An Origin for an HTTP server or S3 bucket configured for website hosting.
*/
export class HttpOrigin extends cloudfront.OriginBase {

constructor(domainName: string, private readonly props: HttpOriginProps = {}) {
super(domainName, props);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ export interface LoadBalancerV2OriginProps extends HttpOriginProps { }
* An Origin for a v2 load balancer.
*/
export class LoadBalancerV2Origin extends HttpOrigin {

constructor(loadBalancer: elbv2.ILoadBalancerV2, props: LoadBalancerV2OriginProps = {}) {
super(loadBalancer.loadBalancerDnsName, { ...props });
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export interface RestApiOriginProps extends cloudfront.OriginProps {
* An Origin for an API Gateway REST API.
*/
export class RestApiOrigin extends cloudfront.OriginBase {

constructor(restApi: apigateway.RestApiBase, private readonly props: RestApiOriginProps = {}) {
// urlForPath() is of the form 'https://<rest-api-id>.execute-api.<region>.amazonaws.com/<stage>'
// Splitting on '/' gives: ['https', '', '<rest-api-id>.execute-api.<region>.amazonaws.com', '<stage>']
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-cloudfront/lib/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ export interface DistributionProps {
* A CloudFront distribution with associated origin(s) and caching behavior(s).
*/
export class Distribution extends Resource implements IDistribution {

/**
* Creates a Distribution construct that represents an external (imported) distribution.
*/
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-cloudfront/lib/endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { PhysicalName } from '../../core';
* Represents the endpoints available for targetting within a realtime log config resource
*/
export abstract class Endpoint {

/**
* Configure a Kinesis Stream Endpoint for Realtime Log Config
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export interface EdgeFunctionProps extends lambda.FunctionProps {
* @resource AWS::Lambda::Function
*/
export class EdgeFunction extends Resource implements lambda.IVersion {

private static readonly EDGE_REGION: string = 'us-east-1';

public readonly edgeArn: string;
Expand Down
4 changes: 0 additions & 4 deletions packages/aws-cdk-lib/aws-cloudfront/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { IResource, Lazy, Names, Resource, Stack } from '../../core';
* Represents the function's source code
*/
export abstract class FunctionCode {

/**
* Inline code for function
* @returns code object with inline code.
Expand Down Expand Up @@ -47,7 +46,6 @@ export interface FileCodeOptions {
* Represents the function's source code as inline code
*/
class InlineCode extends FunctionCode {

constructor(private code: string) {
super();
}
Expand All @@ -61,7 +59,6 @@ class InlineCode extends FunctionCode {
* Represents the function's source code loaded from an external file
*/
class FileCode extends FunctionCode {

constructor(private options: FileCodeOptions) {
super();
}
Expand Down Expand Up @@ -161,7 +158,6 @@ export interface FunctionProps {
* @resource AWS::CloudFront::Function
*/
export class Function extends Resource implements IFunction {

/** Imports a function by its name and ARN */
public static fromFunctionAttributes(scope: Construct, id: string, attrs: FunctionAttributes): IFunction {
return new class extends Resource implements IFunction {
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-cloudfront/lib/geo-restriction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Controls the countries in which content is distributed.
*/
export class GeoRestriction {

/**
* Allow specific countries which you want CloudFront to distribute your content.
*
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-cloudfront/lib/key-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export interface KeyGroupProps {
* @resource AWS::CloudFront::KeyGroup
*/
export class KeyGroup extends Resource implements IKeyGroup {

/** Imports a Key Group from its id. */
public static fromKeyGroupId(scope: Construct, id: string, keyGroupId: string): IKeyGroup {
return new class extends Resource implements IKeyGroup {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export interface OriginRequestPolicyProps {
* @resource AWS::CloudFront::OriginRequestPolicy
*/
export class OriginRequestPolicy extends Resource implements IOriginRequestPolicy {

/** This policy includes only the User-Agent and Referer headers. It doesn’t include any query strings or cookies. */
public static readonly USER_AGENT_REFERER_HEADERS = OriginRequestPolicy.fromManagedOriginRequestPolicy('acba4595-bd28-49b8-b9fe-13317c0390fa');
/** This policy includes the header that enables cross-origin resource sharing (CORS) requests when the origin is a custom origin. */
Expand Down
1 change: 0 additions & 1 deletion packages/aws-cdk-lib/aws-cloudfront/lib/public-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export interface PublicKeyProps {
* @resource AWS::CloudFront::PublicKey
*/
export class PublicKey extends Resource implements IPublicKey {

/** Imports a Public Key from its id. */
public static fromPublicKeyId(scope: Construct, id: string, publicKeyId: string): IPublicKey {
return new class extends Resource implements IPublicKey {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export interface ResponseHeadersPolicyProps {
* @resource AWS::CloudFront::ResponseHeadersPolicy
*/
export class ResponseHeadersPolicy extends Resource implements IResponseHeadersPolicy {

/** Use this managed policy to allow simple CORS requests from any origin. */
public static readonly CORS_ALLOW_ALL_ORIGINS = ResponseHeadersPolicy.fromManagedResponseHeadersPolicy('60669652-455b-4ae9-85a4-c4c02393f86c');
/** Use this managed policy to allow CORS requests from any origin, including preflight requests. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,6 @@ export interface CloudFrontWebDistributionAttributes {
* @deprecated Use `Distribution` instead
*/
export class CloudFrontWebDistribution extends cdk.Resource implements IDistribution {

/**
* Creates a construct that represents an external (imported) distribution.
*/
Expand Down
Loading
Loading