UNPKG

@aws/cloudfront-hosting-toolkit

Version:

CloudFront Hosting Toolkit offers the convenience of a managed frontend hosting service while retaining full control over the hosting and deployment infrastructure to make it your own.

31 lines (30 loc) 2.09 kB
/********************************************************************************************************************* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance * * with the License. A copy of the License is located at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES * * OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions * * and limitations under the License. * *********************************************************************************************************************/ import { CfnCondition, CfnResource, Resource } from "aws-cdk-lib"; interface CfnNagSuppressRule { id: string; reason: string; } /** * Adds CFN NAG suppress rules to the CDK resource. * @param resource The CDK resource. * @param rules The CFN NAG suppress rules. */ export declare function addCfnSuppressRules(resource: Resource | CfnResource | undefined, rules: CfnNagSuppressRule[]): void; /** * Adds CDK condition to the CDK resource. * @param resource The CDK resource. * @param condition The CDK condition. */ export declare function addCfnCondition(resource: Resource | CfnResource | undefined, condition: CfnCondition): void; export {};