@gradientedge/cdk-utils-azure 2.32.0 → 2.34.0
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.
- package/dist/src/common/constants.d.ts +7 -1
- package/dist/src/common/constants.js +7 -1
- package/dist/src/common/construct.d.ts +47 -0
- package/dist/src/common/construct.js +45 -0
- package/dist/src/common/resource-name-formatter.d.ts +5 -0
- package/dist/src/common/resource-name-formatter.js +5 -0
- package/dist/src/common/stack.d.ts +29 -0
- package/dist/src/common/stack.js +29 -0
- package/dist/src/common/types.d.ts +53 -4
- package/dist/src/construct/event-handler/main.d.ts +4 -0
- package/dist/src/construct/event-handler/main.js +4 -0
- package/dist/src/construct/event-handler/types.d.ts +43 -6
- package/dist/src/construct/function-app/main.d.ts +27 -0
- package/dist/src/construct/function-app/main.js +29 -3
- package/dist/src/construct/function-app/types.d.ts +38 -3
- package/dist/src/construct/rest-api/main.d.ts +3 -0
- package/dist/src/construct/rest-api/main.js +3 -0
- package/dist/src/construct/rest-api/types.d.ts +26 -3
- package/dist/src/construct/rest-api-function/main.d.ts +2 -0
- package/dist/src/construct/rest-api-function/main.js +2 -0
- package/dist/src/construct/rest-api-function/types.d.ts +34 -4
- package/dist/src/construct/rest-api-with-cache/main.d.ts +2 -0
- package/dist/src/construct/rest-api-with-cache/main.js +1 -0
- package/dist/src/construct/rest-api-with-cache/types.d.ts +14 -2
- package/dist/src/construct/site-with-webapp/main.d.ts +3 -0
- package/dist/src/construct/site-with-webapp/main.js +3 -0
- package/dist/src/construct/site-with-webapp/types.d.ts +29 -3
- package/dist/src/services/api-management/types.d.ts +110 -17
- package/dist/src/services/app-configuration/types.d.ts +5 -1
- package/dist/src/services/app-service/types.d.ts +10 -2
- package/dist/src/services/application-insights/renderer.d.ts +21 -0
- package/dist/src/services/application-insights/renderer.js +21 -0
- package/dist/src/services/application-insights/types.d.ts +30 -4
- package/dist/src/services/authorisation/constants.d.ts +7 -0
- package/dist/src/services/authorisation/constants.js +7 -0
- package/dist/src/services/authorisation/types.d.ts +5 -1
- package/dist/src/services/cosmosdb/constants.d.ts +14 -2
- package/dist/src/services/cosmosdb/constants.js +14 -2
- package/dist/src/services/cosmosdb/types.d.ts +20 -4
- package/dist/src/services/dns/types.d.ts +20 -4
- package/dist/src/services/eventgrid/types.d.ts +25 -5
- package/dist/src/services/function/types.d.ts +27 -3
- package/dist/src/services/key-vault/types.d.ts +10 -2
- package/dist/src/services/monitor/types.d.ts +5 -1
- package/dist/src/services/operational-insights/types.d.ts +10 -2
- package/dist/src/services/portal/error.d.ts +16 -1
- package/dist/src/services/portal/error.js +16 -1
- package/dist/src/services/portal/renderer.d.ts +44 -1
- package/dist/src/services/portal/renderer.js +44 -1
- package/dist/src/services/portal/types.d.ts +61 -8
- package/dist/src/services/redis/types.d.ts +16 -3
- package/dist/src/services/resource-group/types.d.ts +5 -1
- package/dist/src/services/security-center/types.d.ts +5 -1
- package/dist/src/services/servicebus/types.d.ts +25 -5
- package/dist/src/services/storage/types.d.ts +38 -6
- package/dist/src/types/index.d.ts +5 -1
- package/package.json +3 -3
|
@@ -4,20 +4,45 @@ import appRoot from 'app-root-path';
|
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import { parse } from 'yaml';
|
|
6
6
|
import { TemplateError } from './error.js';
|
|
7
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Renders Azure Portal dashboard templates from YAML pane definitions into JSON
|
|
9
|
+
* - Reads pane templates from a configurable template directory
|
|
10
|
+
* - Compiles templates using Lodash template interpolation with `{{}}` delimiters
|
|
11
|
+
* - Validates required variables and properties before rendering
|
|
12
|
+
* - Assembles multiple panes into a single dashboard JSON structure
|
|
13
|
+
* @category Service
|
|
14
|
+
*/
|
|
8
15
|
export class AzureDashboardRenderer {
|
|
16
|
+
/** Absolute path to the directory containing pane YAML templates */
|
|
9
17
|
paneTemplatePath;
|
|
18
|
+
/** Absolute path to the directory where rendered dashboard files are written */
|
|
10
19
|
outputDir;
|
|
20
|
+
/**
|
|
21
|
+
* @summary Create a new AzureDashboardRenderer
|
|
22
|
+
* @param basePath optional base path for pane templates; defaults to '<appRoot>/template/dashboard'
|
|
23
|
+
* @param outputDir optional output directory for rendered files; defaults to '<appRoot>/.artifacts'
|
|
24
|
+
*/
|
|
11
25
|
constructor(basePath, outputDir) {
|
|
12
26
|
this.paneTemplatePath = basePath ?? path.join(appRoot.path, 'template', 'dashboard');
|
|
13
27
|
this.outputDir = outputDir ?? path.join(appRoot.path, '.artifacts');
|
|
14
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* @summary Load and parse a pane template by its identifier
|
|
31
|
+
* @param id the pane template identifier (corresponds to a YAML filename without extension)
|
|
32
|
+
* @returns the parsed pane template including dimensions, properties, variables, and template content
|
|
33
|
+
*/
|
|
15
34
|
getPaneId(id) {
|
|
16
35
|
const panePath = `${this.paneTemplatePath}/${id}.yaml`;
|
|
17
36
|
const paneFileContent = fs.readFileSync(panePath, 'utf-8');
|
|
18
37
|
const paneTemplate = parse(paneFileContent);
|
|
19
38
|
return paneTemplate;
|
|
20
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* @summary Check for required properties that are missing from the render parameters
|
|
42
|
+
* @param template the pane template defining required properties
|
|
43
|
+
* @param properties the provided properties to check against the template
|
|
44
|
+
* @returns an object indicating which required property keys are missing
|
|
45
|
+
*/
|
|
21
46
|
getMissingProperties(template, properties = []) {
|
|
22
47
|
const keys = Object.keys(template.properties ?? {}).filter(key => !(key in properties));
|
|
23
48
|
return {
|
|
@@ -25,6 +50,12 @@ export class AzureDashboardRenderer {
|
|
|
25
50
|
hasMissingKeys: keys.length !== 0,
|
|
26
51
|
};
|
|
27
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* @summary Check for required variables that are missing from the render parameters
|
|
55
|
+
* @param template the pane template defining required variables
|
|
56
|
+
* @param variables the provided variables to check against the template
|
|
57
|
+
* @returns an object indicating which required variable keys are missing
|
|
58
|
+
*/
|
|
28
59
|
getMissingVariables(template, variables) {
|
|
29
60
|
const keys = Object.keys(template.variables ?? {}).filter(key => !(key in variables));
|
|
30
61
|
return {
|
|
@@ -32,6 +63,12 @@ export class AzureDashboardRenderer {
|
|
|
32
63
|
hasMissingKeys: keys.length !== 0,
|
|
33
64
|
};
|
|
34
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* @summary Render a complete dashboard from multiple pane templates
|
|
68
|
+
* @param params render parameters including panes, variables, properties, and optional filter settings
|
|
69
|
+
* @returns the rendered dashboard JSON string
|
|
70
|
+
* @throws {@link TemplateError} if required variables or properties are missing
|
|
71
|
+
*/
|
|
35
72
|
render(params) {
|
|
36
73
|
_.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
|
|
37
74
|
// if client is used instead of hosts
|
|
@@ -143,6 +180,12 @@ export class AzureDashboardRenderer {
|
|
|
143
180
|
};
|
|
144
181
|
return JSON.stringify(dashboard, null, 2);
|
|
145
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* @summary Render a dashboard and write the output to a template file
|
|
185
|
+
* @param filename the output filename (used as '<filename>.tftpl')
|
|
186
|
+
* @param params render parameters including panes, variables, properties, and optional filter settings
|
|
187
|
+
* @returns the absolute path to the rendered output file
|
|
188
|
+
*/
|
|
146
189
|
renderToFile(filename, params) {
|
|
147
190
|
const templateOutput = this.render(params);
|
|
148
191
|
if (!fs.existsSync(this.outputDir)) {
|
|
@@ -1,48 +1,92 @@
|
|
|
1
1
|
import { DashboardArgs } from '@pulumi/azure-native/portal/index.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Client metadata for dashboard pane rendering
|
|
4
|
+
* @category Interface
|
|
5
|
+
*/
|
|
3
6
|
export type PaneClient = {
|
|
7
|
+
/** Client display name */
|
|
4
8
|
name: string;
|
|
9
|
+
/** Client domain */
|
|
5
10
|
domain: string;
|
|
6
11
|
};
|
|
7
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Template configuration for rendering client rows in a pane
|
|
14
|
+
* @category Interface
|
|
15
|
+
*/
|
|
8
16
|
export type PaneClientTemplate = {
|
|
17
|
+
/** Template string for each row */
|
|
9
18
|
rowTemplate: string;
|
|
19
|
+
/** Optional prefix before the first row */
|
|
10
20
|
prefix?: string;
|
|
21
|
+
/** Separator between rows */
|
|
11
22
|
separator?: string;
|
|
23
|
+
/** Trailing content after the last row */
|
|
12
24
|
trailing?: string;
|
|
25
|
+
/** Optional suffix after all rows */
|
|
13
26
|
suffix?: string;
|
|
14
27
|
};
|
|
15
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* Structure of a parsed YAML pane template file
|
|
30
|
+
* @category Interface
|
|
31
|
+
*/
|
|
16
32
|
export type PaneTemplate = {
|
|
33
|
+
/** Pane dimensions for dashboard layout */
|
|
17
34
|
dimensions: {
|
|
18
35
|
height: number;
|
|
19
36
|
};
|
|
37
|
+
/** Required properties that must be provided for template substitution */
|
|
20
38
|
properties: Record<string, string>;
|
|
39
|
+
/** Required variables that must be provided for template substitution */
|
|
21
40
|
variables: Record<string, string>;
|
|
41
|
+
/** The Lodash-compatible template string */
|
|
22
42
|
template: string;
|
|
23
43
|
};
|
|
24
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Result of checking for missing required keys in a template
|
|
46
|
+
* @category Interface
|
|
47
|
+
*/
|
|
25
48
|
export type MissingKeys = {
|
|
49
|
+
/** List of missing key names */
|
|
26
50
|
keys: Array<string>;
|
|
51
|
+
/** Whether any required keys are missing */
|
|
27
52
|
hasMissingKeys: boolean;
|
|
28
53
|
};
|
|
29
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* Configuration for a single dashboard pane
|
|
56
|
+
* @category Interface
|
|
57
|
+
*/
|
|
30
58
|
export type Pane = {
|
|
59
|
+
/** Pane template identifier (corresponds to a YAML filename) */
|
|
31
60
|
id: string;
|
|
61
|
+
/** Optional pane-specific properties to pass to the template */
|
|
32
62
|
properties?: Record<string, string | number | Array<string | number>>;
|
|
33
63
|
};
|
|
34
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Filter configuration for dashboard time range and locale
|
|
66
|
+
* @category Interface
|
|
67
|
+
*/
|
|
35
68
|
export type Filter = {
|
|
69
|
+
/** Locale for the dashboard display (e.g. 'en-us') */
|
|
36
70
|
locale?: string;
|
|
71
|
+
/** Time format for the dashboard (e.g. 'utc') */
|
|
37
72
|
timeFormat?: string;
|
|
73
|
+
/** Time granularity for the dashboard (e.g. 'auto') */
|
|
38
74
|
timeGranularity?: string;
|
|
75
|
+
/** Relative time range for the dashboard (e.g. '4h') */
|
|
39
76
|
timeRelative?: string;
|
|
40
77
|
};
|
|
41
|
-
/**
|
|
78
|
+
/**
|
|
79
|
+
* Parameters for rendering a dashboard from pane templates
|
|
80
|
+
* @category Interface
|
|
81
|
+
*/
|
|
42
82
|
export type RenderParams = {
|
|
83
|
+
/** List of panes to render in the dashboard */
|
|
43
84
|
panes: Array<Pane>;
|
|
85
|
+
/** Variables to substitute into pane templates */
|
|
44
86
|
variables: Record<string, any>;
|
|
87
|
+
/** Optional properties to pass to pane templates */
|
|
45
88
|
properties?: Record<string, any>;
|
|
89
|
+
/** Optional filter configuration for the dashboard */
|
|
46
90
|
filter?: Filter;
|
|
47
91
|
};
|
|
48
92
|
/** @category Interface */
|
|
@@ -59,11 +103,20 @@ export interface DashboardRenderer {
|
|
|
59
103
|
*/
|
|
60
104
|
renderToFile(filename: string, params: RenderParams): string;
|
|
61
105
|
}
|
|
62
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* Properties for creating an Azure Portal dashboard
|
|
108
|
+
* @see [Pulumi Azure Native Portal Dashboard]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/portal/dashboard/}
|
|
109
|
+
* @category Interface
|
|
110
|
+
*/
|
|
63
111
|
export interface PortalDashboardProps extends DashboardArgs {
|
|
112
|
+
/** Display name shown in the Azure Portal */
|
|
64
113
|
displayName: string;
|
|
114
|
+
/** List of pane configurations to render in the dashboard */
|
|
65
115
|
panes: Array<Pane>;
|
|
116
|
+
/** Variables to substitute into pane templates */
|
|
66
117
|
variables: Record<string, string>;
|
|
118
|
+
/** Optional filter configuration for the dashboard */
|
|
67
119
|
filter?: Filter;
|
|
120
|
+
/** When false, skips dashboard creation */
|
|
68
121
|
enabled?: boolean;
|
|
69
122
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { DatabaseArgs, RedisEnterpriseArgs } from '@pulumi/azure-native/redisenterprise/index.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Properties for creating an Azure Managed Redis (Enterprise) cluster
|
|
4
|
+
* @see [Pulumi Azure Native Redis Enterprise]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/redisenterprise/redisenterprise/}
|
|
5
|
+
* @category Interface
|
|
6
|
+
*/
|
|
3
7
|
export interface RedisEnterpriseClusterProps extends RedisEnterpriseArgs {
|
|
4
8
|
}
|
|
5
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Properties for creating a Redis Enterprise database
|
|
11
|
+
* @see [Pulumi Azure Native Redis Enterprise Database]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/redisenterprise/database/}
|
|
12
|
+
* @category Interface
|
|
13
|
+
*/
|
|
6
14
|
export interface RedisDatabaseProps extends DatabaseArgs {
|
|
7
15
|
}
|
|
8
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Result object containing the provisioned Redis Enterprise cluster and database
|
|
18
|
+
* @category Interface
|
|
19
|
+
*/
|
|
9
20
|
export interface ManagedRedisResult {
|
|
21
|
+
/** The provisioned Redis Enterprise cluster */
|
|
10
22
|
cluster: import('@pulumi/azure-native/redisenterprise/index.js').RedisEnterprise;
|
|
23
|
+
/** The provisioned Redis Enterprise database */
|
|
11
24
|
database: import('@pulumi/azure-native/redisenterprise/index.js').Database;
|
|
12
25
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ResourceGroupArgs } from '@pulumi/azure-native/resources/index.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Properties for creating an Azure Resource Group
|
|
4
|
+
* @see [Pulumi Azure Native Resource Group]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/resources/resourcegroup/}
|
|
5
|
+
* @category Interface
|
|
6
|
+
*/
|
|
3
7
|
export interface ResourceGroupProps extends ResourceGroupArgs {
|
|
4
8
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { DefenderForStorageArgs } from '@pulumi/azure-native/security/index.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Properties for creating a Microsoft Defender for Storage configuration
|
|
4
|
+
* @see [Pulumi Azure Native Defender For Storage]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/security/defenderforstorage/}
|
|
5
|
+
* @category Interface
|
|
6
|
+
*/
|
|
3
7
|
export interface DefenderForStorageProps extends DefenderForStorageArgs {
|
|
4
8
|
}
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
import { GetQueueOutputArgs, NamespaceArgs, QueueArgs, SubscriptionArgs, TopicArgs } from '@pulumi/azure-native/servicebus/index.js';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Properties for creating a Service Bus namespace
|
|
4
|
+
* @see [Pulumi Azure Native Service Bus Namespace]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/servicebus/namespace/}
|
|
5
|
+
* @category Interface
|
|
6
|
+
*/
|
|
3
7
|
export interface ServiceBusNamespaceProps extends NamespaceArgs {
|
|
4
8
|
}
|
|
5
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* Properties for creating a Service Bus topic
|
|
11
|
+
* @see [Pulumi Azure Native Service Bus Topic]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/servicebus/topic/}
|
|
12
|
+
* @category Interface
|
|
13
|
+
*/
|
|
6
14
|
export interface ServiceBusTopicProps extends TopicArgs {
|
|
7
15
|
}
|
|
8
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Properties for creating a Service Bus queue
|
|
18
|
+
* @see [Pulumi Azure Native Service Bus Queue]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/servicebus/queue/}
|
|
19
|
+
* @category Interface
|
|
20
|
+
*/
|
|
9
21
|
export interface ServiceBusQueueProps extends QueueArgs {
|
|
10
22
|
}
|
|
11
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Properties for creating a Service Bus subscription
|
|
25
|
+
* @see [Pulumi Azure Native Service Bus Subscription]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/servicebus/subscription/}
|
|
26
|
+
* @category Interface
|
|
27
|
+
*/
|
|
12
28
|
export interface ServiceBusSubscriptionProps extends SubscriptionArgs {
|
|
13
29
|
}
|
|
14
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Properties for resolving an existing Service Bus queue
|
|
32
|
+
* @see [Pulumi Azure Native Service Bus Queue]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/servicebus/queue/}
|
|
33
|
+
* @category Interface
|
|
34
|
+
*/
|
|
15
35
|
export interface ResolveServicebusQueueProps extends GetQueueOutputArgs {
|
|
16
36
|
}
|
|
@@ -1,28 +1,60 @@
|
|
|
1
1
|
import { BlobArgs, BlobContainerArgs, BlobServicePropertiesArgs, ListStorageAccountSASArgs, ManagementPolicyArgs, StorageAccountArgs, TableArgs } from '@pulumi/azure-native/storage/index.js';
|
|
2
2
|
import { BaseAzureConfigProps } from '../../types/index.js';
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Properties for creating an Azure Storage account
|
|
5
|
+
* @see [Pulumi Azure Native Storage Account]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/storageaccount/}
|
|
6
|
+
* @category Interface
|
|
7
|
+
*/
|
|
4
8
|
export interface StorageAccountProps extends StorageAccountArgs {
|
|
9
|
+
/** Blob service properties (e.g. delete retention policy) */
|
|
5
10
|
blobProperties?: BlobServicePropertiesArgs;
|
|
11
|
+
/** When true, skips creating the default BlobServiceProperties resource */
|
|
6
12
|
skipBlobServiceProperties?: boolean;
|
|
7
13
|
}
|
|
8
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Properties for creating an Azure Storage blob container
|
|
16
|
+
* @see [Pulumi Azure Native Blob Container]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/blobcontainer/}
|
|
17
|
+
* @category Interface
|
|
18
|
+
*/
|
|
9
19
|
export interface StorageContainerProps extends BlobContainerArgs, BaseAzureConfigProps {
|
|
10
20
|
}
|
|
11
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Properties for creating an Azure Storage blob
|
|
23
|
+
* @see [Pulumi Azure Native Blob]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/blob/}
|
|
24
|
+
* @category Interface
|
|
25
|
+
*/
|
|
12
26
|
export interface StorageBlobProps extends BaseAzureConfigProps, BlobArgs {
|
|
27
|
+
/** When true, skips resource name formatting on the blob name */
|
|
13
28
|
skipBlobNameFormatting?: boolean;
|
|
14
29
|
}
|
|
15
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Properties for creating an Azure Storage management policy
|
|
32
|
+
* @see [Pulumi Azure Native Storage Management Policy]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/managementpolicy/}
|
|
33
|
+
* @category Interface
|
|
34
|
+
*/
|
|
16
35
|
export interface ManagementPolicyProps extends ManagementPolicyArgs {
|
|
17
36
|
}
|
|
18
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Properties for creating an Azure Storage table
|
|
39
|
+
* @see [Pulumi Azure Native Storage Table]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/table/}
|
|
40
|
+
* @category Interface
|
|
41
|
+
*/
|
|
19
42
|
export interface StorageTableProps extends TableArgs {
|
|
20
43
|
}
|
|
21
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Properties for generating a container-level SAS token
|
|
46
|
+
* @see [Pulumi Azure Native Storage Account SAS]{@link https://www.pulumi.com/registry/packages/azure-native/api-docs/storage/liststorageaccountsas/}
|
|
47
|
+
* @category Interface
|
|
48
|
+
*/
|
|
22
49
|
export interface ContainerSasTokenProps extends ListStorageAccountSASArgs {
|
|
50
|
+
/** Resource group containing the storage account */
|
|
23
51
|
resourceGroupName: string;
|
|
52
|
+
/** Optional container name for scoping the SAS token */
|
|
24
53
|
containerName?: string;
|
|
54
|
+
/** When false, allows both HTTP and HTTPS protocols; defaults to HTTPS only */
|
|
25
55
|
httpsOnly?: boolean;
|
|
56
|
+
/** SAS start date in 'YYYY-MM-DD' format; defaults to today */
|
|
26
57
|
start?: string;
|
|
58
|
+
/** SAS expiry date in 'YYYY-MM-DD' format; defaults to 7 days from now */
|
|
27
59
|
expiry?: string;
|
|
28
60
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as pulumi from '@pulumi/pulumi';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Base properties shared by Azure configuration interfaces that require a resource group
|
|
4
|
+
* @category Interface
|
|
5
|
+
*/
|
|
3
6
|
export interface BaseAzureConfigProps {
|
|
7
|
+
/** The Azure resource group name in which the resource is deployed */
|
|
4
8
|
resourceGroupName: pulumi.Input<string>;
|
|
5
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils-azure",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.34.0",
|
|
4
4
|
"description": "Azure Pulumi utilities for @gradientedge/cdk-utils",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"app-root-path": "3.1.0",
|
|
23
23
|
"lodash": "4.18.1",
|
|
24
24
|
"uuid": "14.0.0",
|
|
25
|
-
"yaml": "2.
|
|
26
|
-
"@gradientedge/cdk-utils-common": "2.
|
|
25
|
+
"yaml": "2.9.0",
|
|
26
|
+
"@gradientedge/cdk-utils-common": "2.3.0"
|
|
27
27
|
},
|
|
28
28
|
"keywords": [
|
|
29
29
|
"gradientedge",
|