UNPKG

cdk-monitoring-constructs

Version:

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/cdklabs/cdk-monitoring-constructs) [![NPM version](https://badge.fury.io/js/cdk-monitoring-constructs.svg)](https://badge

38 lines (37 loc) 2.12 kB
import { IResolveContext } from "aws-cdk-lib"; import { ElastiCacheClusterType } from "../../monitoring"; export interface AwsConsoleUrlFactoryProps { readonly awsAccountId: string; readonly awsAccountRegion: string; } export declare class AwsConsoleUrlFactory { protected readonly awsAccountId: string; protected readonly awsAccountRegion: string; constructor(props: AwsConsoleUrlFactoryProps); getAwsConsoleUrl(destinationUrl?: string): string | undefined; getCloudWatchLogGroupUrl(logGroupName: string): string | undefined; getCodeBuildProjectUrl(projectName: string): string | undefined; getSnsTopicUrl(topicArn: string): string | undefined; getSqsQueueUrl(queueUrl: string): string | undefined; getLambdaFunctionUrl(functionName: string): string | undefined; getDynamoTableUrl(tableName: string): string | undefined; getStateMachineUrl(stateMachineArn: string): string | undefined; getKinesisDataStreamUrl(streamName: string): string | undefined; getKinesisFirehoseDeliveryStreamUrl(streamName: string): string | undefined; getKinesisAnalyticsUrl(application: string): string | undefined; getS3BucketUrl(bucketName: string): string | undefined; getApiGatewayUrl(restApiId: string): string | undefined; getRdsClusterUrl(clusterId: string): string | undefined; getRedshiftClusterUrl(clusterId: string): string | undefined; getOpenSearchClusterUrl(domainName: string): string | undefined; getCloudFrontDistributionUrl(distributionId: string): string | undefined; getElastiCacheClusterUrl(clusterId: string, clusterType: ElastiCacheClusterType): string | undefined; getDocumentDbClusterUrl(clusterId: string): string | undefined; /** * Resolves a destination URL within a resolution context. * @param context The resolution context. * @param destinationUrl The destination URL to resolve since it may contain CDK tokens. * @see https://docs.aws.amazon.com/cdk/latest/guide/tokens.html */ protected getResolvedDestinationUrl(context: IResolveContext, destinationUrl: string): string; }