@lafken/common 0.12.21 → 0.12.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -301,5 +301,40 @@ export interface GetResourceProps {
301
301
  * unresolved token values.
302
302
  */
303
303
  token: TerraformToken;
304
+ /**
305
+ * AWS account ID where the stack is being deployed, resolved at deployment
306
+ * time from the caller credentials (e.g. `'123456789012'`).
307
+ *
308
+ * Useful for building ARNs or scoping resource access to the current account.
309
+ *
310
+ * @example
311
+ * // Compose an ARN with the current account
312
+ * fn.format('arn:%s:iam::%s:role/my-role', [partition, accountId])
313
+ */
314
+ accountId: string;
315
+ /**
316
+ * ARN associated with the caller credentials used during deployment.
317
+ */
318
+ callerArn: string;
319
+ /**
320
+ * AWS region name where the stack is being deployed (e.g. `'us-east-1'`).
321
+ *
322
+ * Useful for region-specific configuration or building region-aware ARNs.
323
+ */
324
+ region: string;
325
+ /**
326
+ * AWS partition the stack is deployed in (e.g. `'aws'`, `'aws-cn'`,
327
+ * `'aws-us-gov'`).
328
+ *
329
+ * Required for building ARNs that work across standard, China, and GovCloud
330
+ * partitions.
331
+ */
332
+ partition: string;
333
+ /**
334
+ * Base DNS domain for the current AWS partition (e.g. `'amazonaws.com'`).
335
+ *
336
+ * Useful for building service endpoints that differ across partitions.
337
+ */
338
+ dnsSuffix: string;
304
339
  }
305
340
  export type GetExternalValues = Omit<GetResourceProps, 'getResourceValue'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lafken/common",
3
- "version": "0.12.21",
3
+ "version": "0.12.23",
4
4
  "private": false,
5
5
  "description": "Lafken utilities - TypeScript decorator factories and metadata reflection for infrastructure-as-code decorators",
6
6
  "keywords": [