1 | import { Construct } from 'constructs';
|
2 | import { CfnElement } from './cfn-element';
|
3 | import { IResolvable, IResolveContext } from './resolvable';
|
4 | export interface CfnParameterProps {
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 | readonly type?: string;
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | readonly default?: any;
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 | readonly allowedPattern?: string;
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 | readonly allowedValues?: string[];
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | readonly constraintDescription?: string;
|
40 | |
41 |
|
42 |
|
43 |
|
44 |
|
45 | readonly description?: string;
|
46 | |
47 |
|
48 |
|
49 |
|
50 |
|
51 | readonly maxLength?: number;
|
52 | |
53 |
|
54 |
|
55 |
|
56 |
|
57 | readonly maxValue?: number;
|
58 | |
59 |
|
60 |
|
61 |
|
62 |
|
63 | readonly minLength?: number;
|
64 | |
65 |
|
66 |
|
67 |
|
68 |
|
69 | readonly minValue?: number;
|
70 | |
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 | readonly noEcho?: boolean;
|
77 | }
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 | export declare class CfnParameter extends CfnElement {
|
86 | private _type;
|
87 | private _default?;
|
88 | private _allowedPattern?;
|
89 | private _allowedValues?;
|
90 | private _constraintDescription?;
|
91 | private _description?;
|
92 | private _maxLength?;
|
93 | private _maxValue?;
|
94 | private _minLength?;
|
95 | private _minValue?;
|
96 | private _noEcho?;
|
97 | |
98 |
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 |
|
105 | constructor(scope: Construct, id: string, props?: CfnParameterProps);
|
106 | /**
|
107 | * The data type for the parameter (DataType).
|
108 | *
|
109 | * @default String
|
110 | */
|
111 | get type(): string;
|
112 | set type(type: string);
|
113 | /**
|
114 | * A value of the appropriate type for the template to use if no value is specified
|
115 | * when a stack is created. If you define constraints for the parameter, you must specify
|
116 | * a value that adheres to those constraints.
|
117 | *
|
118 | * @default - No default value for parameter.
|
119 | */
|
120 | get default(): any;
|
121 | set default(value: any);
|
122 | /**
|
123 | * A regular expression that represents the patterns to allow for String types.
|
124 | *
|
125 | * @default - No constraints on patterns allowed for parameter.
|
126 | */
|
127 | get allowedPattern(): string | undefined;
|
128 | set allowedPattern(pattern: string | undefined);
|
129 | /**
|
130 | * An array containing the list of values allowed for the parameter.
|
131 | *
|
132 | * @default - No constraints on values allowed for parameter.
|
133 | */
|
134 | get allowedValues(): string[] | undefined;
|
135 | set allowedValues(values: string[] | undefined);
|
136 | /**
|
137 | * A string that explains a constraint when the constraint is violated.
|
138 | * For example, without a constraint description, a parameter that has an allowed
|
139 | * pattern of [A-Za-z0-9]+ displays the following error message when the user specifies
|
140 | * an invalid value:
|
141 | *
|
142 | * @default - No description with customized error message when user specifies invalid values.
|
143 | */
|
144 | get constraintDescription(): string | undefined;
|
145 | set constraintDescription(desc: string | undefined);
|
146 | /**
|
147 | * A string of up to 4000 characters that describes the parameter.
|
148 | *
|
149 | * @default - No description for the parameter.
|
150 | */
|
151 | get description(): string | undefined;
|
152 | set description(desc: string | undefined);
|
153 | /**
|
154 | * An integer value that determines the largest number of characters you want to allow for String types.
|
155 | *
|
156 | * @default - None.
|
157 | */
|
158 | get maxLength(): number | undefined;
|
159 | set maxLength(len: number | undefined);
|
160 | /**
|
161 | * An integer value that determines the smallest number of characters you want to allow for String types.
|
162 | *
|
163 | * @default - None.
|
164 | */
|
165 | get minLength(): number | undefined;
|
166 | set minLength(len: number | undefined);
|
167 | /**
|
168 | * A numeric value that determines the largest numeric value you want to allow for Number types.
|
169 | *
|
170 | * @default - None.
|
171 | */
|
172 | get maxValue(): number | undefined;
|
173 | set maxValue(len: number | undefined);
|
174 | /**
|
175 | * A numeric value that determines the smallest numeric value you want to allow for Number types.
|
176 | *
|
177 | * @default - None.
|
178 | */
|
179 | get minValue(): number | undefined;
|
180 | set minValue(len: number | undefined);
|
181 | /**
|
182 | * Indicates if this parameter is configured with "NoEcho" enabled.
|
183 | */
|
184 | get noEcho(): boolean;
|
185 | set noEcho(echo: boolean);
|
186 | /**
|
187 | * The parameter value as a Token
|
188 | */
|
189 | get value(): IResolvable;
|
190 | /**
|
191 | * The parameter value, if it represents a string.
|
192 | */
|
193 | get valueAsString(): string;
|
194 | /**
|
195 | * The parameter value, if it represents a string list.
|
196 | */
|
197 | get valueAsList(): string[];
|
198 | /**
|
199 | * The parameter value, if it represents a number.
|
200 | */
|
201 | get valueAsNumber(): number;
|
202 | /**
|
203 | * @internal
|
204 | */
|
205 | _toCloudFormation(): object;
|
206 | resolve(_context: IResolveContext): any;
|
207 | }
|