@infrascan/aws-cloudfront-scanner
Version:
Infrascan scanner definition for AWS Cloudfront
16 lines (13 loc) • 924 B
text/typescript
import { OriginGroup, CacheBehavior, DefaultCacheBehavior, ListDistributionsCommandInput, ListDistributionsCommandOutput, DistributionSummary } from '@aws-sdk/client-cloudfront';
import { BaseState, TranslatedEntity, State, WithCallContext } from '@infrascan/shared-types';
interface DistributionState {
originGroups?: OriginGroup[];
cacheBehaviours?: CacheBehavior[];
defaultCacheBehaviour?: DefaultCacheBehavior;
}
type CloudfrontDistribution = BaseState<ListDistributionsCommandInput> & {
distribution: DistributionState;
};
type GraphState = CloudfrontDistribution;
declare const CloudfrontDistributionEntity: TranslatedEntity<CloudfrontDistribution, State<ListDistributionsCommandOutput, ListDistributionsCommandInput>, WithCallContext<DistributionSummary, ListDistributionsCommandInput>>;
export { type CloudfrontDistribution, CloudfrontDistributionEntity, type DistributionState, type GraphState };