aws-cdk
Version:
CDK Toolkit, the command line tool for CDK apps
24 lines (23 loc) • 1.05 kB
TypeScript
import type { SSMParameterContextQuery } from '@aws-cdk/cloud-assembly-schema';
import { type SdkProvider } from '../api/aws-auth/sdk-provider';
import { ContextProviderPlugin } from '../api/plugin';
/**
* Plugin to read arbitrary SSM parameter names
*/
export declare class SSMContextProviderPlugin implements ContextProviderPlugin {
private readonly aws;
constructor(aws: SdkProvider);
getValue(args: SSMParameterContextQuery): Promise<unknown>;
/**
* Gets the value of an SSM Parameter, while not throwin if the parameter does not exist.
* @param account the account in which the SSM Parameter is expected to be.
* @param region the region in which the SSM Parameter is expected to be.
* @param parameterName the name of the SSM Parameter
* @param lookupRoleArn the ARN of the lookup role.
*
* @returns the result of the ``GetParameter`` operation.
*
* @throws Error if a service error (other than ``ParameterNotFound``) occurs.
*/
private getSsmParameterValue;
}