@pepperize/cdk-ssm-parameters-cross-region
Version:
Store, read and lookup AWS SSM Parameters cross-region
45 lines (44 loc) • 1.23 kB
TypeScript
import { Resource } from "aws-cdk-lib";
import * as iam from "aws-cdk-lib/aws-iam";
import * as ssm from "aws-cdk-lib/aws-ssm";
/**
* Properties needed to create a new SSM Parameter.
*
* @internal
*/
export interface ParameterOptions {
/**
* A regular expression used to validate the parameter value.
*
* @default - undefined, no validation is performed
*/
readonly allowedPattern?: string;
/**
* Information about the parameter that you want to add to the system.
*
* @default - undefined
*/
readonly description?: string;
/**
* The name of the parameter.
*/
readonly parameterName: string;
/**
* The tier of the string parameter.
*
* @default - undefined
*/
readonly tier?: ssm.ParameterTier;
}
/**
* Basic features shared across all types of SSM Parameters cross region.
*
* @internal
*/
export declare abstract class ParameterBase extends Resource implements ssm.IParameter {
abstract readonly parameterArn: string;
abstract readonly parameterName: string;
abstract readonly parameterType: string;
grantRead(grantee: iam.IGrantable): iam.Grant;
grantWrite(grantee: iam.IGrantable): iam.Grant;
}